freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

c課程設(shè)計(jì)學(xué)生學(xué)籍管理系統(tǒng)(編輯修改稿)

2025-02-27 11:57 本頁(yè)面
 

【文章內(nèi)容簡(jiǎn)介】 ddRole : Form { public frmAddRole() { InitializeComponent()。 } //添加角色 private void btAdd_Click(object sender, EventArgs e) { if (() != ) { SqlConnection conn = new SqlConnection()。 ()。 string sql = select * from tbRoles where filedRoleName=39。 + () + 39。 SqlCommand cmd = new SqlCommand(sql, conn)。 if (() 0) { (已經(jīng)存在的角色名稱! , 提示 )。 } else { sql = insert into tbRoles (filedRoleName,filedSystemManage,filedSpeciManage,filedClassManage,filedCourseManage,filedScoreManage,filedStudentMange) values (39。 + () + 39。, + + , + + , + + , + + , + + , + + )。 = sql。 ()。 (添加角色成功! )。 } ()。 } else { (角色名稱不能為空! , 提示 )。 } } private void frmAddRole_Load(object sender, EventArgs e) { } } } 專業(yè)信息管理包括專業(yè)信息的瀏覽、刪除、添加、修改等功能, 專業(yè)信息瀏覽 下圖為瀏覽專業(yè)信息的功能實(shí)現(xiàn)窗體。 public partial class frmBrowseSpecialty : Form { //定義 DataSet數(shù)據(jù)集保存查詢結(jié)果集 private DataSet ds。 public frmBrowseSpecialty() { InitializeComponent()。 } /// summary /// 窗體初始化事件 ,在此加入對(duì) dgv的綁定 /// /summary /// param name=sender/param /// param name=e/param private void frmBrowseSpecialty_Load(object sender, EventArgs e) { //實(shí)例化一個(gè) OledbConnection對(duì)象 SqlConnection conn = new SqlConnection()。 ()。 string queryString = select filedSpecialityID as 編號(hào) ,filedSpecialityName as 專業(yè)名稱 ,filedRemark as 專業(yè)描述 from tbSpecialityInfo。 //實(shí)例化一個(gè)數(shù)據(jù)適配器對(duì)象 SqlDataAdapter dap = new SqlDataAdapter(queryString, conn)。 ds = new DataSet()。 (ds, tbSpecialityInfo)。 = [tbSpecialityInfo].DefaultView。 //一下代碼控制各列的寬度 [編號(hào) ].Width = 100。 [專業(yè)名稱 ].Width = 100。 [ 專 業(yè) 描 述 ].Width = ( [專業(yè)名稱 ].Width [編號(hào) ].Width)。 //關(guān)閉數(shù)據(jù)連接 ()。 } /// summary /// 修改按鈕事件 /// /summary /// param name=sender/param /// param name=e/param private void btUpdate_Click(object sender, EventArgs e) { DataGridViewRow dr 。 if ( != null) { dr = 。 string id = [編號(hào) ].()。 string name = [專業(yè)名稱 ].()。 string remark = [專業(yè)描述 ].()。 //打開修改專業(yè)信息窗體 frmUpdateSpecialty frmUpdate = new frmUpdateSpecialty(id, name, remark)。 = 。
點(diǎn)擊復(fù)制文檔內(nèi)容
公司管理相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖片鄂ICP備17016276號(hào)-1