407基于c的windows应用程序设计------电话计费管理系统的设计与实现课程设计完整源代码联系本人设计报告内容摘要:

egrated security=true。 SqlCommand cmd = new SqlCommand()。 = conn。 =。 = SELECT 手机号码 , 姓名 , 帐户余额 FROM 收款额表 where(手机号码=@id)。 SqlParameter p1 = new SqlParameter()。 = @id。 =。 =。 (p1)。 ()。 SqlDataAdapter da1 = new SqlDataAdapter()。 DataSet ds1 = new DataSet()。 = cmd。 (ds1, 话费信息库表)。 = [话费信息库表]。 ()。 ()。 }private void button4_Click(object sender, EventArgs e) { SqlConnection conn = new SqlConnection()。 = data source=(local)。 initial catalog=电话计费系统。 integrated security=true。 SqlCommand cmd = new SqlCommand()。 = conn。 =。 = SELECT 手机号码 , 姓名 , 套餐名称 FROM 话费信息库表 where(手机号码=@id)。 SqlParameter p1 = new SqlParameter()。 = @id。 =。 =。 (p1)。 ()。 SqlDataAdapter da2 = new SqlDataAdapter()。 DataSet ds2 = new DataSet()。 = cmd。 (ds2, 话费信息库表)。 = [话费信息库表]。 ()。 ()。 } 办理业务业务办理窗口主要是系统管理员根据客户需求为客户办理各种业务,如办理新帐户、套餐、更新、删除客户业务等信息。 业务办理using。 SqlConnection conn。 SqlDataAdapter da。 DataSet ds。 CurrencyManager cm。 public partial class 办理业务 : Form { SqlConnection conn。 SqlDataAdapter da。 DataSet ds。 CurrencyManager cm。 private void Bangding() { DataRow dr = [0].Rows[BindingContext[[0]].Position]。 = dr[帐户编号].ToString()。 = dr[手机号码].ToString()。 = dr[姓名].ToString()。 = dr[受理类型].ToString()。 = dr[受理时间].ToString()。 } private void Display() { SqlConnection conn = new SqlConnection()。 = data source=(local)。 initial catalog=电话计费系统。 integrated security=true。 SqlCommand cmd = new SqlCommand()。 = conn。 =。 = select * from 客户受理表 where(手机号码=@id)。 SqlParameter p1 = new SqlParameter()。 = @id。 =。 =。 (p1)。 ()。 SqlDataAdapter da = new SqlDataAdapter()。 DataSet ds = new DataSet()。 = cmd。 (ds, 客户受理表)。 = [客户受理表]。 ()。 } private void 办理业务_Load(object sender, EventArgs e) { conn = new SqlConnection()。 = data source=.。 initial catalog=电话计费系统。 integrated security=true。 da = new SqlDataAdapter(select *from 客户受理表, conn)。 ds = new DataSet()。 (ds)。 cm = (CurrencyManager)BindingContext[[0]]。 Bangding()。 } private void button2_Click(object sender, EventArgs e) { if ( = 1)。 Bangding()。 } private void button3_Click(object sender, EventArgs e) { if ( = 0) ++。 Bangding()。 } private void button5_Click(object sender, EventArgs e) { conn = new SqlConnection()。 = data source=.。 initial catalog=电话计费系统。 integrated security=true。 da = new SqlDataAdapter(select *from 客户受理表, conn)。 ()。 SqlCommand cmd = new SqlCommand()。 = conn。 =。 = Insert into 客户受理表 values(@zhbh,@sjhm,@xm,@sllx,@slsj)。 SqlParameter p1 = new SqlParameter()。 = @zhbh。 =。 =。 (p1)。 SqlParameter p2 = new SqlParameter()。 = @sjhm。 =。 =。 (p2)。 SqlParameter p3 = new SqlParameter()。 = @xm。 =。 =。 (p3)。 SqlParameter p4= new SqlParameter()。 = @sllx。 =。 =。 (p4)。 SqlParameter p5 = new SqlParameter()。 = @slsj。 =。 =。 (p5)。 ()。 Bangding()。 (开户成功)。 Display()。 } priv。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。