c论文通讯录管理系统(编辑修改稿)内容摘要:
修改类别 /// summary /// 修改类别 /// /summary /// returns/returns public bool ClsUpdate() { SqlConnection conn = new SqlConnection()。 SqlCommand cmd = ()。 = update classes set ClassName=39。 + ClassName + 39。 ,orderby= + OrderBy + ,ClassTel=39。 +ClassTel +39。 ,ClassAddress=39。 +ClassAddress +39。 where ClassID= + ClassID。 try { ()。 ()。 return true。 } catch { return false。 通讯录管理系统 11 } finally { ()。 } } endregion region bool ClsDel 删除类别 /// summary /// 删除类别 /// /summary /// returns/returns public bool ClsDel() { SqlConnection conn=new SqlConnection()。 SqlCommand cmd=()。 =delete from classes where classid=+ClassID。 try { ()。 ()。 return true。 } catch { return false。 } finally { ()。 } } endregion 通讯录管理系统 12 region DataSet ClsSelect 查询类别表中的内容 /// summary /// 查询类别表中的内容,返回 dataset /// /summary /// returns/returns public DataSet ClsSelect() { SqlDataAdapter DApt=new SqlDataAdapter(select classid as 编号 ,className as 姓名 ,orderby as 年龄 ,classTel as 电话 ,classAddress as 地址 from Classes order by orderby asc,)。 DataSet ds=new DataSet()。 (ds)。 return ds。 } endregion } } 登录模块的实现 登录模块是系统中重要的组成部分,当用户进入系统时必须先通过身份验证,即验证用户登录时输入的用户名和密码是否与数据库中数据表的相关信息相符,并验证校验码是否正确 .如果通过验证,则将用户对象存入 session 中 . 登陆界面如下: 通讯录管理系统 13 关键代码如下: using System。 using。 using。 using。 using。 using。 using。 using。 namespace 通讯录管理系统 { public partial class FormLogin : Form { public int count = 0。 public FormLogin() { InitializeComponent()。 } private void button2_Click(object sender, EventArgs e) { ()。 通讯录管理系统 14 } private void button1_Click(object sender, EventArgs e) { if (()) { (帐号不能为空 )。 ()。 return。 } else if (()) { (密码不能为空 )。 ()。 return。 } else { string sql = select * from admin where userName=39。 + + 39。 and userPass=39。 + + 39。 SqlConnection conn = new SqlConnection()。 SqlCommand cmd = new SqlCommand(sql, conn)。 ()。 SqlDataReader dr = ()。 if (()) { FormMain fm = new FormMain()。 ()。 ()。c论文通讯录管理系统(编辑修改稿)
相关推荐
ton frmAuAdd = new frmAuton(1,)。 15 = this。 ()。 } public string strNameAuton = null。 private void lvAuton_Click(object sender, EventArgs e) { strNameAuton=[0].SubItems[0].Text。 } private void
platform. Net script and the background database using ACCESS database management system of the entire fixed assets management background. Keywords: Financial Manage ; Ine and Expenses Management;
环境质量现状 .......................................................................................................................... 39 建设项目污染源调查和工程分析结论 .................................................
= new OleDbCommand(sqlstr,conn)。 n = ()。 } catch (Exception ex) { ()。 } finally { ()。 return n。 } } 12 系统主界面模块设计 主界面功能:启动界面后首先设置菜单栏的 enabled 为 false并且在状态栏上显示当前时间,然后密码验证 ,若密码正确则启用菜单栏上的各菜单项
} } 3. 如果 用户 查询到 歌曲 的信息之后,想做一些的修 改 删除,添加之类的修改,如果添加 歌曲 信息的话,则要录入新 歌曲 的详细信息,如修改的 歌曲 信息的话可根据某方面的信息进行相关的修该,如删除 歌曲 信息的话,则要对 歌曲 的信息进行全部的删除,并相应的保存到数据库里面,方便下次 用户 对 歌曲 的信息进行相关的操作,具体修改 ,删除,添加的操作代码如下: region 添加
后方声影不明显或无声影,易与高回声的肾窦相混淆,给诊断带来困难 (图 65)。 较小的结石多积聚于肾小盏处,声像图上表现为圆形或椭圆形或不规则形的点状或团状强回声.后方伴有声影。 结石多伴梗阻引起近端积水,或是在肾盏,或位于肾盂。 积水表现为无回声区。 肾中部或肾上、下极显示点状或团状强回声,多为结石嵌入肾盏内或肾盏颈部,从而导致肾盏积水,引起局部皮质受压变薄。