產(chǎn)量分配系統(tǒng)_第1頁
產(chǎn)量分配系統(tǒng)_第2頁
產(chǎn)量分配系統(tǒng)_第3頁
產(chǎn)量分配系統(tǒng)_第4頁
產(chǎn)量分配系統(tǒng)_第5頁
已閱讀5頁,還剩8頁未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

1、煤礦綜采工作面產(chǎn)量分配管理系統(tǒng)一、前言綜采工作面產(chǎn)量分配管理系統(tǒng),介紹了在 .net 環(huán)境下開發(fā)一個(gè)管理信息系統(tǒng)的過程。通過分析傳統(tǒng)的人工管理工作面產(chǎn)量分配不足,創(chuàng)建了一套行之有效的綜采工作面產(chǎn)量分配管理的方案。 文章詳細(xì)介紹了產(chǎn)量分配管理系統(tǒng)的系統(tǒng)分析部分,包括可行性分析、組織機(jī)構(gòu)分析、管理職能分析、業(yè)務(wù)流程分析、數(shù)據(jù)流程分析、處理描述等等;系統(tǒng)設(shè)計(jì)部分主要介紹了系統(tǒng)界面設(shè)計(jì), 系統(tǒng)功能設(shè)計(jì)和數(shù)據(jù)庫設(shè)計(jì);系統(tǒng)實(shí)現(xiàn)部分列出了幾個(gè)主要的程序框圖,并附帶了一些主要的窗口和程序。本系統(tǒng)界面友好,操作簡單,比較實(shí)用。二、系統(tǒng)需求分析根據(jù)礦領(lǐng)導(dǎo)的要求, 使綜采工作面產(chǎn)量分配發(fā)布到網(wǎng)上,并要求每天進(jìn)行實(shí)時(shí)

2、的更新,要求管理發(fā)布便捷、操作簡單,查詢方便。能實(shí)現(xiàn)對數(shù)據(jù)的增、刪、改。三、系統(tǒng)目標(biāo)設(shè)計(jì)系統(tǒng)開發(fā)的總目標(biāo)是實(shí)現(xiàn)內(nèi)部產(chǎn)量分配管理的系統(tǒng)化、規(guī)范化和自動(dòng)化。123能夠?qū)γ咳?產(chǎn)量進(jìn)行預(yù)先存入數(shù)據(jù)庫中,供以后檢索。能對讀者信息進(jìn)行修改和增加、查詢。提供方便的查詢方法。按日期查詢。4提供較完善的差錯(cuò)控制、與友好的用戶界面,盡量避免誤操作。四、系統(tǒng)功能分析根據(jù)以上功能,將該系統(tǒng)的數(shù)據(jù)分為:數(shù)據(jù)輸入部分:主要包括產(chǎn)量的基本信息的輸入。以及值班人員的錄入。數(shù)據(jù)輸出部分:主要是各種查詢。以日期為主要查詢方法數(shù)據(jù)處理部分:主要涉及數(shù)據(jù)的存儲(chǔ)、刪除。五、系統(tǒng)模塊設(shè)計(jì)1數(shù)據(jù)輸入頁面:( info.aspx )實(shí)現(xiàn)數(shù)

3、據(jù)向數(shù)據(jù)庫的插入。所需變量: / 申請主要使用變量,根據(jù)需求進(jìn)行計(jì)算/驗(yàn)收產(chǎn)量: yscl 核子稱產(chǎn)量: hc 核定日計(jì)產(chǎn)量: hdclday核定月產(chǎn)量:hdclmonth/yscl :textystotal=text35ycsl+text36yscl+textcryscl+textcsyscl+textzyyscl+textjjyscl/hc:texthtotal=text35hcl+text36hc+textcrhc+textcshc+textzyhc+textjjhc/hdclday:textdaytotal=textchday+text36chday+textcrchday+textc

4、shday+textzyhday+textjjhday/hdclmonth:textmontotal=textchmonth+text36chmonth+textcrchmonth+textcshmonth+textzyhmonth+textjjhmonth/程序設(shè)計(jì): DY主要執(zhí)行代碼 :Boolean bl;bl = by.ExecSQL( insert into info values(+ Text35id.Text +,+ Text35long.Text+ , + Txtcyhight.Text+ , + Text35jd.Text+ , +Text35yscl.Text +, +Tx

5、t35hcl.Text + , + Txtcday.Text +, + Txtcmonth.Text +, + Txtchday.Text + , + Textchmonth.Text +, + Text36id.Text +, +Text36long.Text + , +Text36hight.Text+,+Text36jd.Text+,+Text36yscl.Text+,+ Text36hc.Text+, +Text36chday.Text+,+Text36chmonth.Text +, + Textcrid.Text +, +Textcrlong.Text+,+Textcrhight.T

6、ext+,+Textcrjd.Text +,+Textcryscl.Text+,+Textcrhc.Text+,+Textcrchday.Text + , + Textcrchmonth.Text +, +Textcsid.Text+,+Textcslong.Text+,+Textcshight.Text+,+ Textcsjd.Text+,+Textcsyscl.Text+,+Textcshc.Text +, + Textcshday.Text +, +Textcshmonth.Text+,+Textzyid.Text+,+Textzylong.Text+,+ Textzyhight.Tex

7、t+,+ Textzyjd.Text+,+Textzyyscl.Text +, + Textzyhc.Text +, +Textzyday.Text+,+Textzymonth.Text+,+Textzyhday.Text+,+ Textzyhmonth.Text+,+ Textjjid.Text+,+Textjjlong.Text +, + Textjjhight.Text +, +Textjjjd.Text + ,+ Textjjyscl.Text+ ,+Textjjhc.Text+, + Textjjday.Text +, + Textjjmonth.Text +, + Textjjhd

8、ay.Text +, +Textjjhmonth.Text +, +Textystotal.Text+,+Texthtontal.Text+,+Textdaytotal.Text +, + Textmontotal.Text +,+ Textms.Text +,+ worktime.Text+ );if(bl)Response.Write( alert( );location=info.aspx );基礎(chǔ)信息添加成功elseResponse.Write(by.MessageBox( 基礎(chǔ)信息添加失敗 );2更新數(shù)據(jù)頁面( update.aspx )主要實(shí)現(xiàn)數(shù)據(jù)的更新。主要執(zhí)行代碼: strin

9、g id = (string)Sessionid;yscl = Convert.ToDouble(Text35yscl.Text) +Convert.ToDouble(Text36yscl.Text) + Convert.ToDouble(Textcryscl.Text) +Convert.ToDouble(Textcsyscl.Text) + Convert.ToDouble(Textzyyscl.Text) +Convert.ToDouble(Textjjyscl.Text);Textystotal.Text = yscl.ToString();/核定產(chǎn)量: hchc = Convert.

10、ToDouble(Txt35hcl.Text) +Convert.ToDouble(Text36hc.Text) + Convert.ToDouble(Textcrhc.Text) +Convert.ToDouble(Textcshc.Text) + Convert.ToDouble(Textzyhc.Text) +Convert.ToDouble(Textjjhc.Text);Texthtontal.Text = hc.ToString();/核定日累計(jì)產(chǎn)量Boolean bl;bl = by.ExecSQL(update Info set text35id= + , Txtcyhight=

11、 + ,text35jd= + ,text35long= +,text35yscl=+,txt35hcl=+,txtcday=+,txtcmonth=+,txtchday=+,textchmonth=+,text36id=+,text36long=+,text36hight=+,text36jd=+,text36yscl=+,text36hc=+,text36chday=+,text36chmonth=+,textcrid=+,textcrlong=+,textcrhight=+,textcryscl=+,textcrjd=+,textcrhc=+,textcrchday=+,textcrch

12、month=+,textcsid=+,textcslong=+,textcshight=+,textcsjd=+,textcsyscl=+,textcshc=+,textcshday=+,textcshmonth=+,textzyid=+,textzylong=+,textzyhight=+,textzyjd=+,textzyyscl=+,textzyhc=+,textzyhday=+,textzyhmonth=+,textjjid=+,textjjlong=+,textjjhight=+,textjjjd=+,textjjyscl=+,textjjhc=+,textjjhday=+,text

13、jjhmonth=+,textystotal=+,texthtontal=+,textdaytotal=+,textmontotal=+,textms=+,worktime=+where id=+id+);if (bl)Response.Write(alert(基礎(chǔ)信息更新成功! );location=javascript:history.go(-2);elseResponse.Write(by.MessageBox(基礎(chǔ)信息更新失敗! );3數(shù)據(jù)刪除頁面:( update.aspx )實(shí)現(xiàn)了對數(shù)據(jù)庫的刪除。主要執(zhí)行代碼: protected void del_Click(object sen

14、der, EventArgs e)string id = (string)Sessionid;string sql = delete from info where id= + id + ;string constr =ConfigurationManager.AppSettingsConnectionString;SqlConnection con = new SqlConnection(constr);con.Open();SqlCommand cmd = new SqlCommand(sql, con);cmd.ExecuteNonQuery();con.Close();Response

15、.Redirect(xiangxi.aspx);4數(shù)據(jù)顯示頁面( xingxi.aspx )實(shí)現(xiàn)了對數(shù)據(jù)的綁定并顯示在客戶端。主要執(zhí)行代碼: protectedvoid Grid1_PageIndexChanging(objectsender,GridViewPageEventArgs e)stringconstr=ConfigurationManager.AppSettingsConnectionString;SqlConnection con = new SqlConnection(constr);string sql = select * from Info order by workt

16、ime asc ;SqlDataAdapter sdr = new SqlDataAdapter(sql, con);DataSet ds = new DataSet();sdr.Fill(ds);con.Close();Grid1.DataSource = ds.Tables0.DefaultView;= e.NewPageIndex;5產(chǎn)量日報(bào)表顯示頁面( Default2.aspx )根據(jù)獲得日期傳值,進(jìn)行數(shù)據(jù)的綁定。主要執(zhí)行代碼: private void bond()string worktime= Request.QueryStringdate ;string sql = sele

17、ct * from info where worktime=+worktime+ ;stringconstr=ConfigurationManager .AppSettings ConnectionString ;SqlConnectioncon = new SqlConnection (constr);con.Open();SqlCommand cmd = new SqlCommand (sql, con);SqlDataReadermyread = cmd.ExecuteReader();if (myread.Read()Label1.Text = myreadLabel2.Text =

18、myreadLabel8.Text = myreadLabel9.Text = myreadLabel10.Text = myreadLabel11.Text = myreadLabel12.Text = myreadLabel13.Text = myreadLabel14.Text = myreadLabel15.Text = myreadLabel3.Text = myreadtext35id .ToString();text35long .ToString();txtcyhight .ToString();text35jd .ToString();text35yscl .ToString

19、();txt35hcl .ToString();txtcday .ToString();txtcmonth .ToString();txtchday .ToString();textchmonth .ToString();text36id .ToString();Label20.Text = myreadLabel19.Text = myreadLabel18.Text = myreadLabel17.Text = myreadLabel16.Text = myreadLabel31.Text = myreadLabel32.Text = myreadLabel4.Text = myreadL

20、abel21.Text = myreadLabel23.Text = myreadLabel25.Text = myreadLabel27.Text = myreadLabel30.Text = myreadLabel33.Text = myreadLabel34.Text = myreadLabel5.Text = myreadLabel22.Text = myreadLabel24.Text = myreadLabel26.Text = myreadLabel28.Text = myreadLabel29.Text = myreadLabel35.Text = myreadtext36lo

21、ng .ToString();text36hight .ToString();text36jd .ToString();text36yscl .ToString();text36hc .ToString();text36chday .ToString();text36chmonth .ToString();textcrid .ToString();textcrlong .ToString();textcrhight .ToString();textcrjd .ToString();textcryscl .ToString();textcrhc .ToString();textcrchday .

22、ToString();textcrchmonth .ToString();textcsid .ToString();textcslong .ToString();textcshight .ToString();textcsjd .ToString();textcsyscl .ToString();textcshc .ToString();textcshday .ToString();Label36.Text = myreadLabel6.Text = myreadLabel37.Text = myreadLabel38.Text = myreadLabel39.Text = myreadLab

23、el40.Text = myreadLabel41.Text = myreadLabel42.Text = myreadLabel43.Text = myreadLabel44.Text = myreadLabel45.Text = myreadLabel7.Text = myreadLabel46.Text = myreadLabel47.Text = myreadLabel48.Text = myreadLabel49.Text = myreadLabel50.Text = myreadLabel51.Text = myreadLabel52.Text = myreadLabel53.Te

24、xt = myreadLabel54.Text = myreadLabel55.Text = myreadtextcshmonth .ToString();textzyid .ToString();textzylong .ToString();textzyhight .ToString();textzyjd .ToString();textzyyscl .ToString();textzyhc .ToString();textzyday .ToString();textzymonth .ToString();textzyhday .ToString();textzyhmonth .ToStri

25、ng();textjjid .ToString();textjjlong .ToString();textjjhight .ToString();textjjjd .ToString();textjjyscl .ToString();textjjhc .ToString();textjjday .ToString();textjjmonth .ToString();textjjhday .ToString();textjjhmonth .ToString();textystotal .ToString();Label56.Text = myreadtexthtontal .ToString()

26、;Label57.Text = myreadtextdaytotal .ToString();Label58.Text = myreadtextmontotal .ToString();Labtime.Text = myreadworktime .ToString();Label59.Text = myreadtextms .ToString();6主頁面( index2.aspx ) 實(shí)現(xiàn)了以日期控件綁定數(shù)據(jù)的技術(shù)。主要執(zhí)行代碼:protected void Calendar1_SelectionChanged(object sender,EventArgs e)DateTime date = Calendar1.SelectedDate;Response.R

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論