c酒店管理系统课程设计设计论文(编辑修改稿)内容摘要:
()。 } } 2. 经理登陆界面 经理登陆界面,经理负责管理用户模块,查看财务信息,以及营业额统计。 ( 1) 单击用户管理弹出如下界面 11 1 下面就是修改按钮弹出的模块和实现功能所使用的代码 点击用户修改按钮之后,进入修改用户界面。 在修改用户模块直接输入需要修改后的资料,再点击修改即可完成 首先输入用户名、员工姓名和员工类型,三者有一个是空的则会弹出信 12 息框“请正确填写”。 用户名和员工姓名信息框必须和数据库的信息有一项是相同的,否则也是弹出信息框“请正确填写”。 如果正确填写你再按确定就会弹出一个消息框用户“信息修改成功”。 可以进行查询全部(刷新)。 可以看用户管理模块数据信息里看到 XX 用户信息修改了。 下面是修改用户界面的部分代码 namespace 实训酒店管理 { public partial class Modyfrom : Form { public Modyfrom() { InitializeComponent()。 } OleDbConnection conn = new OleDbConnection()。 OleDbCommand cmd。 private void Modyfrom_Load(object sender, EventArgs e) { ()。 ( )。 ()。 string[] typename = { 经理 , 服务员 }。 for (int i = 0。 i。 i++ ) (typename[i])。 = 0。 } private void button1_Click(object sender, EventArgs e) { DialogResult dr = (是否要修改此用户。 , 警告 , , )。 if (dr == ) { try { if ( == || == || == )//若没有填满三行信息 { 13 (请正确输入信息 )。 } else { string modystr = update userinfo set userid=39。 + + 39。 ,username=39。 + + 39。 ,usertype=39。 + () + 39。 where userid=39。 + + 39。 cmd = new OleDbCommand()。 = modystr。 =。 ()。 int count = ()。 if (count 0) { (修改成功。 )。 ()。 } else { (修改失败 )。 } } } catch (Exception exx) { ()。 } finally { ()。 } } else if (dr == ) { // =。 =。 =。 =。 ()。 } }以上,用户修改模块的全部内容 14 2 下面就是添加按钮弹出的模块和实现功能所使用的代码 这 是点击添加后进去的添加用户的页面 首先输入用户名、员工姓名和员工类型,三者有一个是空的则会弹出信息框“请正确填写”。 按确定就会弹出一个消息框用户“ XX 已添加成功”。 按确定以后用户“ XX 已添加成功”,可以进行查询全部(刷新)。 可以看用户管理模块数据信息里看到 XX 用户出现了。 以下是做添加用户用到的 Button 事件 代码 private void button1_Click(object sender, EventArgs e) { DialogResult dr = (是否添加此用户 , 警告, , )。 if (dr == ) { try { if ( == || == || == )//若没有填满三行信息 { (请正确输入信息 )。 } 15 else { string modystr = insert into userinfo(userid,userpsw,username,usertype)values(@userid,@userpsw,@username,@usertype)。 cmd = new OleDbCommand()。 = modystr。 OleDbParameter[] par = new OleDbParameter[4]。 par[0] = new OleDbParameter(@userid, )。 par[1] = new OleDbParameter(@userpsw, )。 par[2] = new OleDbParameter(@username, )。 par[3] = new OleDbParameter(@usertype, )。 (par[0])。 (par[1])。 (par[2])。 (par[3])。 =。 ()。 //dr = ()。 int count = ()。 if (count 0) { (修改成功。 )。 // ()。 ()。 } else { (修改失败 )。 } } } catch (Exception exx) { ()。 } finally { ()。 } } 16 else if (dr == ) { =。 =。 =。 =。 ()。 } } 3 下面就是 删除按钮 实现功能所使用的代码 点击用户删除按钮之后就会弹出一个消息框。 之后就会提示你“ 是否删除此用户 ”。 按确定就会弹出一个消息框用户“ XX 已成功删除”。 按确定以后用户“ XX 已成功删除”,可以进行查询全部(刷新)。 可以看用户管理模块数据信息里看到 XX 用户已经没有了。 需要用到的代码是: private void button4_Click(object sender, EventArgs e) { try { 17 string deluser = [0].Cells[0].()。 DialogResult dr1 = (是否删除此用户。 + deluser, 警告 , , )。 if (dr1 == ) { String delstr = delete from userinfo where userid=39。 + deluser + 39。 cmd = new OleDbCommand()。 = delstr。 =。 ()。 int count = ()。 if (count 0) { (删除成功。 )。 ()。 string constr = select userid,username,usertype from userinfo。 adp = new OleDbDataAdapter(constr, )。 (ds, 001)。 = [001].DefaultView。c酒店管理系统课程设计设计论文(编辑修改稿)
相关推荐
=。 其中,“ +”用于拉伸时,“ — ”用于压缩时。 CA6140 普通车床的数控改造 11 Δ P0 = 177。 177。 = AE PF m = 177。 106cm 滚珠丝杠受转矩引起的导程变化量Δ P1 很小,可以忽略不计,即Δ P1 =Δ P0,所以导程变形总量误差 Δ P 总 =00 ΔΔ PP P总 式中 Δ P 总 —— 纵向最大行程,由《机床说明书》可知, P 总
o realize the purposes of tourism texts translation, the translated text must meet the conventions of the target language. This paper lays emphasis on the application of the functionalist theory in
池分配内存函数 by 风清扬 song 130728 *****************************************/ void CMemePool::AllocPoolMemeroy() { //计算 需要的链表节点数目 CalLinkNodeNum()。 //计算真正要分配的内存大小 CalMemeSize()。 m_AllNumber = m_AllNumber +
o W Z, et al . A parison of geic maps constructed from haploid and BC1 mapping populations from the same crossing between Gossypium hirsutum L. G. barbadense L. [ J] . Genome, 20xx, 48: 378~ 390.
()。 = new ()。 =()。 ()。 =()。 19 =()。 =()。 =()。 ()。 = true。 = new (69, 51)。 = radioButton1。 = new (59, 16)。 = 1。 = true。 = 管理员。 = true。 +=(on1_CheckedChanged)。 = true。 = new (197, 51)。 = radioButton2。
Tao Yuanming possessed great aspirations in their youthful days. When Wordsworth was prepared to dedicate himself to the struggle, his relatives recalled him to England to face the ugly specter of