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

正文內(nèi)容

基于企事業(yè)人事管理系統(tǒng)的設(shè)計(jì)與實(shí)現(xiàn)畢業(yè)論文-資料下載頁(yè)

2025-06-19 12:44本頁(yè)面
  

【正文】 n_Load(object sender, EventArgs e){ = true。//設(shè)置狀態(tài)欄的信息顯示 = ()。 = 操作員: + 。//讀取登錄用戶(hù)的權(quán)限,并根據(jù)權(quán)限設(shè)定相關(guān)菜單項(xiàng)與按鈕是否可用//設(shè)置權(quán)限switch (){case 系統(tǒng)管理員://所有功能均可用{ = true。 = true。break。}case 普通用戶(hù)://與系統(tǒng)管理、設(shè)置相關(guān)的功能不可用{ = false。 = false。 = false。 = false。 = false。break。}default://其他情況按普通用戶(hù)處理{ = false。 = false。 = false。 = false。 = false。break。}}}private void 人事檔案管理ToolStripMenuItem_Click(object sender, EventArgs e){//判斷是否為人事檔案管理窗體if ((FormEmpInfo) == true){return。}else{//實(shí)例化一個(gè)人事檔案管理窗體 emp = new ()。//設(shè)置該窗體為當(dāng)前父窗體的一個(gè)子窗體 = this。//顯示窗體()。} }:public void DBDataGrid(){//構(gòu)造初始化查詢(xún)語(yǔ)句string SqlText = select uId as 用戶(hù)ID ,uName as 用戶(hù)名稱(chēng),uPower as 用戶(hù)權(quán)限from UserInfo。DataAccess DA = new DataAccess()。 = (SqlText)。//將查詢(xún)到的結(jié)果返回到dt表中//清空當(dāng)前DataGridView控件()。 //bobox數(shù)據(jù)源。DataTable dt = new DataTable()。(new DataColumn(權(quán)限, typeof(string)))。DataRow row = ()。row[0] = 系統(tǒng)管理員。(row)。DataRow row2 = ()。row2[0] = 普通用戶(hù)。(row2)。()。//DataGridView列DataGridViewComboBoxColumn cbc = new DataGridViewComboBoxColumn()。 = dt。 = 權(quán)限。 = 權(quán)限。 = 權(quán)限。 = 權(quán)限。DataGridViewTextBoxColumn cid = new DataGridViewTextBoxColumn()。 = 用戶(hù)ID。 = 用戶(hù)ID。DataGridViewTextBoxColumn ame = new DataGridViewTextBoxColumn()。 = 用戶(hù)名稱(chēng)。 = 用戶(hù)名稱(chēng)。//為DataGridView控件構(gòu)造列(new [] { cid, ame, cbc })。//DataGridView數(shù)據(jù)源DataTable dtSource = new DataTable()。(用戶(hù)ID, typeof(Int32))。(用戶(hù)名稱(chēng), typeof(string))。(權(quán)限, typeof(string))。foreach (DataRow forrow in ){DataRow r1 = ()。r1[0] = forrow[0]。r1[1] = forrow[1]。r1[2] = forrow[2]。(r1)。()。} = dtSource。//設(shè)定DataGridView控件的前兩列不可修改[0].ReadOnly = true。[1].ReadOnly = true。//設(shè)定DataGridView控件隔行顯示不同的顏色if ( != 0){for (int i = 0。 i 。 ){[i]. = 。i += 2。}}}private void dataGrid1_CellValueChanged(object sender, DataGridViewCellEventArgs e){//構(gòu)造修改SQL字符串([].Cells[].())。string SqlText = update UserInfo set uPower = 39。 + [].Cells[].()+39。 where uId = + [].Cells[0].Value 。//執(zhí)行修改操作DataAccess DA = new DataAccess()。(SqlText)。//刷新數(shù)顯示據(jù)DBDataGrid()。}:public void DBDataGrid(){//構(gòu)造SQL查詢(xún)語(yǔ)句,實(shí)現(xiàn)查詢(xún)員工檔案工作string SqlText = select distinct as 員工編號(hào), as 員工姓名, as 性別, as 民族, as 婚姻狀況,。SqlText += as 黨派, as 出生日期, as 身份證號(hào), as 籍貫, as 聯(lián)系電話(huà), as 聯(lián)系地址,。SqlText += as 學(xué)歷, as 專(zhuān)業(yè), as 學(xué)位, as 畢業(yè)學(xué)校, as 畢業(yè)時(shí)間,。SqlText += as 聘用時(shí)間, as 聘用方式, as 聘用來(lái)源, as 員工狀態(tài),。SqlText += as 所在部門(mén), as 所任職務(wù), as 所獲職稱(chēng), as 養(yǎng)老保險(xiǎn)號(hào),。SqlText += , as 醫(yī)療保險(xiǎn)號(hào), as 工資號(hào)。SqlText += from EmployInfo,RaceInfo,SectionInfo,JobInfo,Title,EndowmentInfo,MedicalInfo,WagesInfo 。SqlText += where = and = and = and = and 。SqlText += = and = and = order by eId asc。//實(shí)例化一個(gè)DataAccess對(duì)象DataAccess dd = new DataAccess()。//執(zhí)行查詢(xún)操作,將返回的結(jié)果存入當(dāng)前窗體類(lèi)的table成員中 = (SqlText)。//查詢(xún)結(jié)果綁定輸出 = 。 = (CurrencyManager)[]。//隔行顯示不同的顏色if ( != 0){for (int i = 0。 i 。 ){[i]. = 。i += 2。}}}private void toolStripButton1_Click(object sender, EventArgs e){if ( != 0){foreach (DataGridViewRow dvrow in ){ = false。}[0].Selected = true。 = 0。}}private void InsertEmp(object sender, e){//設(shè)定操作類(lèi)型為插入一個(gè)員工檔案 = insert。//設(shè)置當(dāng)前窗體(FormEmpInfo)不可用 = false。//判斷當(dāng)前窗體是否為插入窗體if ((FormAddEmp) == true) {return。}else//實(shí)例化FormAddEmp窗體{ addemp = new FormAddEmp()。 = 。//指定所屬關(guān)系()。//顯示}}private void DeleteEmp(object sender, e){//確認(rèn)刪除提示DialogResult result = (是否刪除此記錄?, 提示!, , )。if (result == ){//構(gòu)造刪除字符串?dāng)?shù)組string[] SqlText = new string[12]。//獲取所選員工的ID,構(gòu)造刪除SQL字符串SqlText[0] = delete from EmployInfo where eId= + ([, 0].())。SqlText[1] = delete from EndowmentInfo where endId= + ([, 0].())。SqlText[2] = delete from HolidayInfo where hId= + ([, 0].())。SqlText[3] = delete from MedicalInfo where meId= + ([, 0].())。//類(lèi)似代碼SqlText[11] = delete from WorkInfo where wId= + ([, 0].())。//實(shí)例化DataAccess對(duì)象DataAccess DA = new DataAccess()。//批量執(zhí)行SQL刪除操作(SqlText)。(刪除成功!)。}if (result == ){return。}//刷新刪除后的數(shù)據(jù)顯示()。}private void Search(object sender, e){ = true。 = 。 = new Point(128, 128)。 = new Size(808, 328)。}private void button1_Click(object sender, EventArgs e){//首先構(gòu)造無(wú)添加查詢(xún)字符串,string SqlText = 。//判斷查詢(xún)指標(biāo)ID是否有數(shù)據(jù),若無(wú)則不把該條件作為查詢(xún)條件if ( != ){//用戶(hù)指定了目標(biāo)ID,將查詢(xún)條件ID附加到查詢(xún)字符串中SqlText += and = + (())。//實(shí)例化DataAccess對(duì)象DataAccess DA = new DataAccess()。 // Base bb = new Base()。//執(zhí)行查詢(xún)字符串 = (SqlText)。//查詢(xún)結(jié)果顯示 = 。 = (CurrencyManager)[]。//(, 1, )。}//判斷查詢(xún)指標(biāo)Nameif ( != ){//附加查詢(xún)條件,把Name作為查詢(xún)指標(biāo)SqlText += and like 39。%[ + + ]%39。//實(shí)例化DataAccess對(duì)象DataAccess DA = new DataAccess()。 // Base bb = new Base()。//執(zhí)行查詢(xún)字符串 = (SqlText)。//查詢(xún)結(jié)果顯示 = 。 = (CurrencyManager)[]。//(, 1, )。}}private void treeView1_AfterSelect(object sender, e){//根據(jù)所選節(jié)點(diǎn)的Text屬性進(jìn)行判斷switch (){case 全部:{//執(zhí)行無(wú)條件查詢(xún),并顯示()。break。}case 群眾:{//構(gòu)造查詢(xún)語(yǔ)句,其中查詢(xún)條件是政治面貌為群眾string SqlText = 無(wú)條件查詢(xún)語(yǔ)句and =39。 + 群眾39。 DataAccess DA = new DataAccess()。 = (SqlText)。 = 。 = (CurrencyManager)[]。if ( != 0){for (int i = 0。 i 。 ){[i]. = 。i += 2。}}break。}//政治面貌為團(tuán)員的員工信息case 團(tuán)員:{string SqlText = 無(wú)條件查詢(xún)語(yǔ)句and =39。 + 團(tuán)員39。DataAccess DA = new DataAccess()。 = (SqlText)。 = 。 = (CurrencyManager)[]。break。}//其他分類(lèi)查詢(xún)條件case ******:}}:private void FormAddEmp_Load(object sender, EventArgs e){ = true。//判斷操作標(biāo)志位if ( == insert) {//插入操作,僅需要初始化特定列表框即可InitNational()。//初始化名族InitSection()。//初始化部門(mén)InitJob()。//初始化職務(wù)InitTitle()。//初始化職稱(chēng) = 添加員工。//初始化標(biāo)題}if ( == update){//修改操作,根據(jù)所選內(nèi)容初始化各控件值InitChange()。//初始化特定列表框InitNational()。InitSection()。InitJob()。InitTitle()。DataAccess DA = new DataAccess()。 ((), )。 = 修改員工信息。}}private void InitNational(){//構(gòu)造SQL語(yǔ)句string str = select * from RaceInfo。DataTable dt = new DataTable()。DataAcce
點(diǎn)擊復(fù)制文檔內(nèi)容
規(guī)章制度相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1