NF-ERP之采購(gòu)管理子系統(tǒng)-詳細(xì)設(shè)計(jì)說(shuō)明書_第1頁(yè)
NF-ERP之采購(gòu)管理子系統(tǒng)-詳細(xì)設(shè)計(jì)說(shuō)明書_第2頁(yè)
NF-ERP之采購(gòu)管理子系統(tǒng)-詳細(xì)設(shè)計(jì)說(shuō)明書_第3頁(yè)
NF-ERP之采購(gòu)管理子系統(tǒng)-詳細(xì)設(shè)計(jì)說(shuō)明書_第4頁(yè)
NF-ERP之采購(gòu)管理子系統(tǒng)-詳細(xì)設(shè)計(jì)說(shuō)明書_第5頁(yè)
已閱讀5頁(yè),還剩62頁(yè)未讀, 繼續(xù)免費(fèi)閱讀

下載本文檔

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

文檔簡(jiǎn)介

1、PAGE 66項(xiàng)目名稱詳細(xì)設(shè)計(jì)說(shuō)明書PAGE NF-ERP之采購(gòu)管理子系統(tǒng)詳細(xì)設(shè)計(jì)說(shuō)明書V1.0(版本號(hào))班 級(jí):S3SN20班 組 名:第一小組 指 導(dǎo):張果老師 組 員:黃燕,游夢(mèng)云,蘭軍,謝萬(wàn)林二零一二年五月十七日詳細(xì)設(shè)計(jì)說(shuō)明書1.引言1.1編寫目的 采購(gòu)系統(tǒng)幫助采購(gòu)人員控制并完成從采購(gòu)計(jì)劃、采購(gòu)執(zhí)行到到采購(gòu)質(zhì)檢等全部過(guò)程管理??捎行У乇O(jiān)控采購(gòu)計(jì)劃的實(shí)施、采購(gòu)成本的變動(dòng)及供應(yīng)商交貨情況,從而幫助采購(gòu)人員選擇最優(yōu)秀的供應(yīng)商和采購(gòu)計(jì)劃,確保采購(gòu)工作高質(zhì)量、高效率及低成本地執(zhí)行,使企業(yè)具有最佳的供貨狀態(tài),重點(diǎn)實(shí)現(xiàn)的目標(biāo)如下:實(shí)現(xiàn)對(duì)供應(yīng)商信息的動(dòng)態(tài)管理和維護(hù);科學(xué)、準(zhǔn)確、靈活的制定采購(gòu)計(jì)劃,指導(dǎo)

2、和規(guī)范企業(yè)日常的采購(gòu)經(jīng)營(yíng)活動(dòng);保證采購(gòu)產(chǎn)品的及時(shí)與準(zhǔn)確,確保生產(chǎn)的持續(xù)進(jìn)行;對(duì)企業(yè)采購(gòu)計(jì)劃的制定、審核、下達(dá)進(jìn)行監(jiān)督和控制,對(duì)物資采購(gòu)的制定,企業(yè)日常到貨、到貨檢驗(yàn)、付款結(jié)算進(jìn)行跟蹤和追溯。1.2背景項(xiàng)目名稱:NF-ERP采購(gòu)管理子系統(tǒng)本項(xiàng)目的任務(wù)提出者:黃燕、游夢(mèng)云、蘭軍、謝萬(wàn)林 開(kāi)發(fā)者:黃燕、游夢(mèng)云、蘭軍、謝萬(wàn)林 用戶:公司采購(gòu)部的所有員工1.3定義到貨通知單:是采購(gòu)物料到達(dá)時(shí),通知質(zhì)檢部門檢驗(yàn)、地磅過(guò)磅、倉(cāng)庫(kù)收料入庫(kù)的依據(jù)。在途發(fā)票:凡是沒(méi)有進(jìn)行采購(gòu)結(jié)算的采購(gòu)發(fā)票,都是在途發(fā)票1.4參考資料 恩信云計(jì)算機(jī)ERP系統(tǒng)2. 系統(tǒng)的結(jié)構(gòu)NF-ERP采購(gòu)管理系統(tǒng)客戶化設(shè)置貨品檔案供應(yīng)商推薦供應(yīng)商

3、檔案登記貨品檔案計(jì)劃管理調(diào)度管理質(zhì)檢管理發(fā)票管理報(bào)表管理貨品I級(jí)設(shè)置貨品II級(jí)設(shè)置貨品III級(jí)設(shè)置貨品用途設(shè)置審核貨品檔案查詢貨品檔案變更貨品檔案登記供應(yīng)商檔案審核供應(yīng)商檔案查詢供應(yīng)商推薦變更供應(yīng)商檔案登記供應(yīng)商推薦審核供應(yīng)商推薦查詢供應(yīng)商推薦變更供應(yīng)商推薦制定采購(gòu)計(jì)劃審核采購(gòu)計(jì)劃查詢采購(gòu)計(jì)劃制定采購(gòu)執(zhí)行單審核采購(gòu)執(zhí)行單查詢采購(gòu)執(zhí)行單登記質(zhì)檢結(jié)果審核質(zhì)檢結(jié)果查詢質(zhì)檢結(jié)果登記發(fā)票信息審核發(fā)票信息查詢發(fā)票信息采購(gòu)價(jià)預(yù)覽質(zhì)檢詳情發(fā)票詳情3客戶化設(shè)置設(shè)計(jì)說(shuō)明 3.1模塊描述本模塊主要是對(duì)產(chǎn)品的添加,主要是貨品I級(jí)的添加,貨品II級(jí)的添加,貨品III的添加,I級(jí)的添加可以結(jié)合符合規(guī)定寫,但I(xiàn)I級(jí)貨品要根

4、據(jù)I級(jí) 類型類型來(lái)添加,三級(jí)類型是根據(jù)II級(jí)中的類型來(lái)添加;還有對(duì)貨品用途的設(shè)置,主要是用途的添加;還有權(quán)限的管理,分為管理員和采購(gòu)員,能夠?qū)Ω髯缘墓芾矸秶龀鲆?guī)定和調(diào)整。3.2功能本模塊主要是對(duì)貨品的分類進(jìn)行添加,主要是對(duì)貨品I級(jí)進(jìn)行添加,對(duì)貨品II級(jí)進(jìn)行添加,對(duì)貨品III進(jìn)行添加;還有對(duì)貨品的用途進(jìn)行添加;管理員和采購(gòu)人員對(duì)該系統(tǒng)的管理權(quán)限進(jìn)行授權(quán)3.3流程邏輯客戶化設(shè)置權(quán)限設(shè)置貨品用途設(shè)置貨品II級(jí)設(shè)置貨品III級(jí)設(shè)置貨品I級(jí)設(shè)置3.4 UI展示界面圖3.1 查詢貨品I級(jí)圖 3.2 添加貨品I級(jí)圖 3.3 貨品II級(jí)查詢圖 3.4 貨品II添加圖 3.5 貨品III查詢圖 3.6 貨品I

5、II添加圖 3.7 貨品用途查詢圖 3.8 貨品用途添加圖 3.9 權(quán)限設(shè)置3.5核心代碼/獲取角色列表 public void GetList() List st = au.Find(p = true).ToList(); for (int i = 0; i p.parentNode = null).ToList(); this.Repeater1.DataBind(); /獲取父節(jié)點(diǎn)之下的資源 public void GetChild(object sender, EventArgs e) foreach (RepeaterItem item in Repeater1.Items) if

6、(item.ItemType = ListItemType.Item | item.ItemType = ListItemType.AlternatingItem) CheckBox cbk = item.FindControl(ee) as CheckBox; /cbk.Checked = false; if (cbk.Checked) Repeater repea = item.FindControl(Repeater2) as Repeater; repea.DataSource = re.Find(p = p.parentNode = Convert.ToInt32(cbk.CssCl

7、ass).ToList(); repea.DataBind(); else Repeater repea = item.FindControl(Repeater2) as Repeater; repea.DataSource = null; repea.DataBind(); /角色按鈕改變時(shí)改變 protected void RadioButtonList1_SelectedIndexChanged(object sender, EventArgs e) ClearCh(); List listr = GetSRP(Convert.ToInt32(this.RadioButtonList1.

8、SelectedValue); /父節(jié)點(diǎn)選中的 和 展開(kāi)子節(jié)點(diǎn) for (int i = 0; i listr.Count; i+) foreach (RepeaterItem item in Repeater1.Items) if (item.ItemType = ListItemType.Item | item.ItemType = ListItemType.AlternatingItem) CheckBox cbk = item.FindControl(ee) as CheckBox; if (Convert.ToInt32(cbk.CssClass) = listri.nodeId)

9、cbk.Checked = true; GetChild(null, null); /選擇子節(jié)點(diǎn)選中的 for (int i = 0; i listr.Count; i+) foreach (RepeaterItem item in Repeater1.Items) if (item.ItemType = ListItemType.Item | item.ItemType = ListItemType.AlternatingItem) CheckBox cbk = item.FindControl(ee) as CheckBox; if (Convert.ToInt32(cbk.CssClas

10、s) = listri.nodeId) Repeater repea = item.FindControl(Repeater2) as Repeater; for (int j = 0; j listr.Count; j+) foreach (RepeaterItem item2 in repea.Items) if (item2.ItemType = ListItemType.Item | item2.ItemType = ListItemType.AlternatingItem) CheckBox cb = item2.FindControl(cc) as CheckBox; if (Co

11、nvert.ToInt32(cb.CssClass) = listrj.nodeId) cb.Checked = true; /清空CHeckBox public void ClearCh() foreach (RepeaterItem item in Repeater1.Items) if (item.ItemType = ListItemType.Item | item.ItemType = ListItemType.AlternatingItem) CheckBox cbk = item.FindControl(ee) as CheckBox; cbk.Checked = false;

12、/獲取角色資源表的list public List GetSRP(int id) return str.Find(p = p.rolesId = Convert.ToInt32(id).ToList(); /修改角色資源 protected void Button1_Click(object sender, EventArgs e) int count = 0; List intli = new List();/CHeckBox全部選中資源id foreach (RepeaterItem item in Repeater1.Items) if (item.ItemType = ListItem

13、Type.Item | item.ItemType = ListItemType.AlternatingItem) CheckBox cbk = item.FindControl(ee) as CheckBox; if (cbk.Checked) intli.Add(Convert.ToInt32(cbk.CssClass); Repeater repea = item.FindControl(Repeater2) as Repeater; foreach (RepeaterItem item2 in repea.Items) if (item2.ItemType = ListItemType

14、.Item | item2.ItemType = ListItemType.AlternatingItem) CheckBox cb = item2.FindControl(cc) as CheckBox; if (cb.Checked) intli.Add(Convert.ToInt32(cb.CssClass); else count+; if (count = Repeater1.Items.Count) ClientScript.RegisterStartupScript(GetType(), Guid.NewGuid().ToString(), alert(你并沒(méi)選擇任何權(quán)限!);

15、else int id = Convert.ToInt32(RadioButtonList1.SelectedValue); List listr = GetSRP(id); str.Delete(listr); for (int i = 0; i intli.Count; i+) RolesNodeInfo rolesnode = new RolesNodeInfo(); rolesnode.rolesId = id; rolesnode.nodeId = intlii; str.Add(rolesnode); ClientScript.RegisterStartupScript(GetTy

16、pe(), Guid.NewGuid().ToString(), alert(修改成功!); 3.6尚未解決的問(wèn)題 無(wú)4貨品檔案 模塊設(shè)計(jì)說(shuō)明4.1模塊描述本模塊主要包括四個(gè)子模塊,主要是:登記貨品檔案,審核貨品檔案,查詢貨品檔案,變更貨品檔案;主要流程是:登記貨品檔案對(duì)登記的貨品檔案進(jìn)行審核-審核通過(guò)的貨品檔案進(jìn)行查詢對(duì)于貨品的檔案進(jìn)行更改4.2功能登記貨品檔案:登記貨品檔案審核貨品檔案:對(duì)登記的貨品檔案進(jìn)行審核查詢貨品檔案:對(duì)已經(jīng)通過(guò)審核的貨品進(jìn)行條件查詢變更貨品檔案:對(duì)已經(jīng)通過(guò)審核的貨品進(jìn)行變更4.3流程邏輯用圖表輔以必要的說(shuō)明來(lái)表示本模塊的邏輯流程。貨品檔案審核貨品檔案查詢貨品檔案變更

17、貨品檔案登記貨品檔案4.4 UI展示功能模塊所對(duì)應(yīng)的表示界面如:圖4.1 貨品登記圖 4.2 等待審核圖 4.3 貨品審核圖 4.4 查詢貨品圖 4.5 貨品變更圖 4.6 變更貨品4.5核心代碼針對(duì)該模塊的核心代碼/接收傳過(guò)來(lái)的ProId int proId = Convert.ToInt32(RequestproId.ToString(); ProductInfoDA proiDA = new ProductInfoDA(); var pro = proiDA.Find(p = ductId = proId).FirstOrDefault(); this.txtproductName.Te

18、xt = ductName; /下拉列表框顯示所有的用途 var resert = proDA.Find(p = p.typeFather = 0).ToList(); dropproductTypeI.DataSource = resert; dropproductTypeI.DataValueField = typeId; dropproductTypeI.DataTextField = typeName; dropproductTypeI.DataBind();/保存變更的貨品信息 ProductInfoDA proDA = new ProductInfoDA(); int proId

19、= Convert.ToInt32(RequestproId.ToString(); var pro = proDA.Find(p = ductId = proId).FirstOrDefault(); ductName = this.txtproductName.Text.Trim(); pro.Cess = string.IsNullOrEmpty(this.txtCess.Text.Trim() ? null : new Nullable(Convert.ToDecimal(this.txtCess.Text.Trim(); pro.useId = Convert.ToInt32(thi

20、s.dropproductUse.SelectedItem.Value.Trim(); pro.typeId = Convert.ToInt32(this.dropproductTypeIII.SelectedItem.Value.Trim(); ductBreed = this.txtproductBreed.Text.Trim(); ductSpec = this.txtproductSpec.Text.Trim(); pro.barCode = this.txtbarCode.Text.Trim(); pro.Unit = this.txtUnit.Text.Trim(); pro.in

21、Price = Convert.ToDecimal(this.txtinPrice.Text.Trim(); pro.outPrice = Convert.ToDecimal(this.txtoutPrice.Text.Trim(); pro.upperLimit = this.txtupperLimit.Text.Trim(); pro.lowerLimit = this.txtlowerLimit.Text.Trim(); pro.employeeId = Convert.ToInt32(this.dropemployeeName.SelectedItem.Value.Trim(); pr

22、o.registerDate = Convert.ToDateTime(this.txtregisterDate.Text.Trim(); pro.Remark = this.txtRemark.Text.Trim(); proDA.Save(); Response.Redirect(ProductEdit.aspx); /當(dāng)選擇I級(jí)貨品II級(jí)貨品自動(dòng)變?yōu)镮級(jí)貨品的子類 protected void dropproductTypeI_SelectedIndexChanged(object sender, EventArgs e) int id2 = Convert.ToInt32(droppr

23、oductTypeI.SelectedItem.Value); var ret = proDA.Find(p = p.typeFather = id2).ToList(); this.dropproductTypeII.DataSource = ret; this.dropproductTypeII.DataValueField = typeId; this.dropproductTypeII.DataTextField = typeName; this.dropproductTypeII.DataBind(); /當(dāng)選擇II級(jí)貨品時(shí),III級(jí)貨品自動(dòng)變味II級(jí)貨品的子類 protected

24、void dropproductTypeII_SelectedIndexChanged(object sender, EventArgs e) int id3 = Convert.ToInt32(dropproductTypeII.SelectedItem.Value); var ret = proDA.Find(p = p.typeFather = id3).ToList(); this.dropproductTypeIII.DataSource = ret; this.dropproductTypeIII.DataTextField = typeName; this.dropproduct

25、TypeIII.DataValueField = typeId; this.dropproductTypeIII.DataBind(); 4.6尚未解決的問(wèn)題 無(wú)5供應(yīng)商檔案 模塊設(shè)計(jì)說(shuō)明5.1模塊描述本模塊主要是分為四個(gè)子模塊:登記供應(yīng)商檔案,審核供應(yīng)商檔案,查詢供應(yīng)商檔案,更新供應(yīng)商檔案;主要流程是:登記供應(yīng)商檔案-審核供應(yīng)商檔案-查詢供應(yīng)商檔案-更新供應(yīng)商檔案;每個(gè)子模塊對(duì)自身的功能都能順利的進(jìn)行,簡(jiǎn)單易懂5.2功能說(shuō)明該基本模塊應(yīng)具有的功能。登記供應(yīng)商檔案:主要是對(duì)供應(yīng)商的添加進(jìn)行登記審核供應(yīng)商檔案:對(duì)已經(jīng)登記的供應(yīng)商檔案信息但未審核的供應(yīng)商檔案信息進(jìn)行審核查詢供應(yīng)商檔案:對(duì)已經(jīng)審核通

26、過(guò)的供應(yīng)商檔案進(jìn)行查詢,并且查看其詳細(xì)信息更新供應(yīng)商檔案:對(duì)已經(jīng)審核通過(guò)的供應(yīng)商檔案進(jìn)行更新5.3流程邏輯用圖表輔以必要的說(shuō)明來(lái)表示本模塊的邏輯流程。供應(yīng)商檔案變更供應(yīng)商檔案查詢供應(yīng)商檔案審核供應(yīng)商檔案登記供應(yīng)商檔案5.4 UI展示功能模塊所對(duì)應(yīng)的表示界面如:圖5.1 登記供應(yīng)商檔案圖 5.2 供應(yīng)商信息審核圖 5.3 供應(yīng)商信息審核圖 5.4 查詢供應(yīng)商信息圖 5.5 供應(yīng)商詳細(xì)信息圖 5.6 更新供應(yīng)商信息圖 5.7 修改供應(yīng)商信息5.5核心代碼針對(duì)該模塊的核心代碼/根據(jù)ID查找數(shù)據(jù) int id = Convert.ToInt32(RequestsupID); var sup = sup

27、Infoda.Find(p = p.supplyId = id).FirstOrDefault(); txtSupplyName.Text = sup.supplyName; txtsupplyRelation.Text = sup.supplyRelation; txtrelationPhone.Text = sup.relationPhone; txtphotoNumber.Text = sup.photoNumber; txtEmail.Text = sup.Email; txtpostalCode.Text = sup.postalCode; txtfaxNumber.Text = s

28、up.faxNumber; /登記人 ddlemployee.DataSource = empInfoda.Find(p = true).ToList(); ddlemployee.DataValueField = employeeId; ddlemployee.DataTextField = employeeName; ddlemployee.DataBind(); var rs = empInfoda.Find(p = p.employeeId = sup.employeeId).FirstOrDefault(); ddlemployee.Items.FindByText(rs.emplo

29、yeeName).Selected = true; txtbankName.Text = sup.bankName; txtbankNumber.Text = sup.bankNumber; txtlinkAddress.Text = sup.linkAddress; txtwebSite.Text = sup.webSite; /貨品類型 var type1 = protypeda.Find(p = p.typeFather = 0); ddltype1.DataSource = type1; ddltype1.DataTextField = typeName; ddltype1.DataV

30、alueField = typeId; ddltype1.DataBind(); int id1 = Convert.ToInt32(ddltype1.SelectedItem.Value); var type2 = protypeda.Find(p = p.typeFather = id1); ddltype2.DataSource = type2; ddltype2.DataTextField = typeName; ddltype2.DataValueField = typeId; ddltype2.DataBind(); int id2 = Convert.ToInt32(ddltyp

31、e2.SelectedItem.Value); var type3 = protypeda.Find(p = p.typeFather = id2); ddltype3.DataSource = type3; ddltype3.DataTextField = typeName; ddltype3.DataValueField = typeId; ddltype3.DataBind(); txtregisterDate.Text = sup.registerDate + ; txtTax.Text = sup.Tax; txtRemark.Text = sup.Remark;/把修改好的信息保存

32、,isCheck為0 int id = Convert.ToInt32(RequestsupID); var info = supInfoda.Find(p = p.supplyId = id).FirstOrDefault(); info.supplyName = txtSupplyName.Text.Trim(); info.supplyRelation = txtsupplyRelation.Text.Trim(); info.relationPhone = txtrelationPhone.Text.Trim(); info.photoNumber = txtphotoNumber.T

33、ext.Trim(); info.Email = txtEmail.Text.Trim(); info.postalCode = txtpostalCode.Text.Trim(); info.faxNumber = txtfaxNumber.Text.Trim(); int empId = Convert.ToInt32(this.ddlemployee.SelectedItem.Value); info.employeeId = empId; info.bankNumber = txtbankNumber.Text.Trim(); info.linkAddress = txtlinkAdd

34、ress.Text.Trim(); info.webSite = txtwebSite.Text.Trim(); info.Bank = ddlBank.SelectedItem.Text.Trim(); ProductTypeInfo protypeinfo = new ProductTypeInfo(); int typeId = Convert.ToInt32(this.ddltype1.SelectedItem.Value); protypeinfo.typeId = typeId; info.Tax = txtTax.Text.Trim(); info.Remark = txtRem

35、ark.Text.Trim(); info.typeId = Convert.ToInt32(ddltype3.SelectedItem.Value); info.registerDate = Convert.ToDateTime(txtregisterDate.Text); info.ischeck = 0; supInfoda.Save();/根據(jù)貨品I級(jí)查找II級(jí)貨品,再根據(jù)II級(jí)貨品查找III貨品 protected void ddltype1_SelectedIndexChanged(object sender, EventArgs e) int id1 = Convert.ToIn

36、t32(ddltype1.SelectedItem.Value); var type2 = protypeda.Find(p = p.typeFather = id1).ToList(); ddltype2.DataSource = type2; ddltype2.DataTextField = typeName; ddltype2.DataValueField = typeId; ddltype2.DataBind(); int id2 = Convert.ToInt32(ddltype2.SelectedItem.Value); var type3 = protypeda.Find(p =

37、 p.typeFather = id2).ToList(); ddltype3.DataSource = type3; ddltype3.DataTextField = typeName; ddltype3.DataValueField = typeId; ddltype3.DataBind(); protected void ddltype2_SelectedIndexChanged(object sender, EventArgs e) int id2 = Convert.ToInt32(ddltype2.SelectedItem.Value); var type3 = protypeda

38、.Find(p = p.typeFather = id2).ToList(); ddltype3.DataSource = type3; ddltype3.DataTextField = typeName; ddltype3.DataValueField = typeId; ddltype3.DataBind(); 5.6尚未解決的問(wèn)題說(shuō)明在本模塊的設(shè)計(jì)中尚未解決而設(shè)計(jì)者認(rèn)為在系統(tǒng)完成之前應(yīng)解決的問(wèn)題。無(wú)6供應(yīng)商推薦設(shè)計(jì)說(shuō)明6.1模塊描述本模塊主要包括四個(gè)子模塊:登記供應(yīng)商推薦,審核供應(yīng)商商推薦,查詢供應(yīng)商推薦,變更供應(yīng)商推薦;主要的流程是:登記供應(yīng)商推薦審核供應(yīng)商推薦-查詢供應(yīng)商推薦-變更供

39、應(yīng)商推薦;本模塊的特點(diǎn)是簡(jiǎn)單的操作方式,但功能齊全6.2功能說(shuō)明該基本模塊應(yīng)具有的功能。登記供應(yīng)商推薦:要采購(gòu)某種貨品,先要找到供應(yīng)這中貨品的供應(yīng)商,再?gòu)闹刑暨x中意的供應(yīng)商進(jìn)行登記添加;審核供應(yīng)商推薦:對(duì)登記的供應(yīng)商推薦進(jìn)行審核查詢供應(yīng)商推薦:對(duì)已經(jīng)審核通過(guò)的供應(yīng)商推薦進(jìn)行條件查詢變更供應(yīng)商推薦:對(duì)已經(jīng)審核通過(guò)的供應(yīng)商推薦信息進(jìn)行更改6.3流程邏輯用圖表輔以必要的說(shuō)明來(lái)表示本模塊的邏輯流程。供應(yīng)商推薦變更供應(yīng)商推薦查詢供應(yīng)商推薦審核供應(yīng)商推薦登記貨品供應(yīng)商推薦6.4 UI展示功能模塊所對(duì)應(yīng)的表示界面如:圖 6.1 供應(yīng)商推薦登記圖 6.2 供應(yīng)商推薦登記圖 6.3 推薦供應(yīng)商圖 6.4 供應(yīng)商

40、推薦審核 圖 6.5 供應(yīng)商推薦審核6.5核心代碼針對(duì)該模塊的核心代碼/審核并調(diào)用方法,把狀態(tài)該為通過(guò)審核 if (e.CommandName = shenhe) int id = Convert.ToInt32(e.CommandArgument); /List ui = su.Find(p = p.supplyId = id).ToList(); Getbyid(id); BindData(); Response.Redirect(Text.aspx); if (e.CommandName = delete) SupplyInfoDA userinfoDA = new SupplyInfo

41、DA (); int id = Convert.ToInt32(e.CommandArgument); List ui = userinfoDA.Find(p = p.supplyId = id).ToList(); /userinfoDA.Delete(ui); BindData(); /查詢所有的數(shù)據(jù),并且把狀態(tài)改為1 StockSystemDataDataContext sd = new StockSystemDataDataContext(); var result = (from c in sd.GetTable() where c.supplyId = id select c).F

42、irstOrDefault(); result.ischeck = 1; sd.SubmitChanges();/獲取選中復(fù)選框的值,并且存儲(chǔ)在回話里面 int count = 0; List intli = new List(); foreach (RepeaterItem item in Repeater1.Items) if (item.ItemType = ListItemType.Item | item.ItemType = ListItemType.AlternatingItem) CheckBox cbk = item.FindControl(chkOrder) as Check

43、Box; if (cbk.Checked) int id = Convert.ToInt32(cbk.CssClass); intli.Add(id); else count+; if (count = Repeater1.Items.Count) ClientScript.RegisterStartupScript(GetType(), Guid.NewGuid().ToString(), alert(請(qǐng)?選?擇?供?應(yīng)|商!?); Sessionlin = intli; Response.Redirect(SupplyRecom.aspx); / ClientScript.Register

44、StartupScript(GetT/請(qǐng)求會(huì)話不為空時(shí),執(zhí)行這些語(yǔ)句 if (Requestids != null) int ids = Convert.ToInt32(Requestids); SupplyInfoDA productdas = new SupplyInfoDA(); repsupply.DataSource = productdas.Find(p = p.supplyId = ids).ToList(); repsupply.DataBind(); if (Sessionss != null) RecommendInfo u = Sessionss as Recommend

45、Info; if (u.isCheck = 1) RecommendInfoDA uss = new RecommendInfoDA(); /綁定供應(yīng)商 private void BindGongYingShang() if (Sessionlin != null) SupplyInfoDA sda = new SupplyInfoDA(); List list = Sessionlin as List; List result = new List(); for (int i = 0; i s.supplyId = listi).FirstOrDefault(); repsupply.Dat

46、aSource = result; repsupply.DataBind(); 6.6尚未解決的問(wèn)題說(shuō)明在本模塊的設(shè)計(jì)中尚未解決而設(shè)計(jì)者認(rèn)為在系統(tǒng)完成之前應(yīng)解決的問(wèn)題。子模塊 更改供應(yīng)商推薦還為開(kāi)發(fā)成功7計(jì)劃管理 模塊設(shè)計(jì)說(shuō)明7.1模塊描述本模塊主要分為3個(gè)子模塊,主要是:制定采購(gòu)計(jì)劃,審核采購(gòu)計(jì)劃,查詢采購(gòu)計(jì)劃;主要的流程是:制定采購(gòu)計(jì)劃-審核采購(gòu)計(jì)劃-查詢采購(gòu)計(jì)劃;本模塊主要的功能是來(lái)制定并且下達(dá)采購(gòu)計(jì)劃,讓采購(gòu)人員能夠按照采購(gòu)計(jì)劃來(lái)進(jìn)行采購(gòu)7.2功能說(shuō)明該基本模塊應(yīng)具有的功能。制定采購(gòu)計(jì)劃:先生成采購(gòu)計(jì)劃單,再進(jìn)行提交審核采購(gòu)計(jì)劃:把已經(jīng)制定的采購(gòu)計(jì)劃單進(jìn)行審核查詢采購(gòu)計(jì)劃:把已經(jīng)通過(guò)審

47、核的采購(gòu)計(jì)劃進(jìn)行條件查詢7.3流程邏輯用圖表輔以必要的說(shuō)明來(lái)表示本模塊的邏輯流程。計(jì)劃管理查詢采購(gòu)計(jì)劃審核采購(gòu)計(jì)劃制定采購(gòu)計(jì)劃7.4 UI展示功能模塊所對(duì)應(yīng)的表示界面如:圖 7.1 生成計(jì)劃單圖 7.2 制定采購(gòu)計(jì)劃圖 7.3 審核采購(gòu)計(jì)劃圖 7.4 查詢采購(gòu)計(jì)劃7.5核心代碼針對(duì)該模塊的核心代碼/獲取repeater中控件的值 int count = 0; foreach (RepeaterItem item in reporder.Items) if (item.ItemType = ListItemType.Item | item.ItemType = ListItemType.Alte

48、rnatingItem) CheckBox cbk = item.FindControl(chkOrder) as CheckBox; if (cbk.Checked) int id = Convert.ToInt32(cbk.CssClass); SessionOrderId = id; Response.Redirect(Plan.aspx); break; else count+; if (count = reporder.Items.Count) ClientScript.RegisterStartupScript(GetType(), Guid.NewGuid().ToString(

49、), alert(請(qǐng)?選?擇?訂?單!?); /獲取傳過(guò)來(lái)的pid int id = Convert.ToInt32(Requestpid); labPlanId.Text = id+; EmployeeInfoDA emp = new EmployeeInfoDA(); var res = emp.Find(em = true).ToList(); ddlEmp.DataSource = res; ddlEmp.DataTextField = employeeName; ddlEmp.DataValueField = employeeId; ddlEmp.DataBind(); labtim

50、e.Text = DateTime.Now + ; DetailPlanInfoDA dplanda = new DetailPlanInfoDA(); var result= dplanda.Find(p = p.planId = id).FirstOrDefault(); ProductInfoDA product = new ProductInfoDA(); var rs = product.Find(p = ductId = ductId).FirstOrDefault(); labId.Text = result.dpId + ; labPId.Text = ductId + ; l

51、abPName.Text = ductName; labPDesc.Text = result.Remark; labPNum.Text = result.Quantity + ; 7.6尚未解決的問(wèn)題說(shuō)明在本模塊的設(shè)計(jì)中尚未解決而設(shè)計(jì)者認(rèn)為在系統(tǒng)完成之前應(yīng)解決的問(wèn)題。無(wú)8調(diào)度管理 模塊設(shè)計(jì)說(shuō)明8.1模塊描述給出對(duì)該基本模塊的簡(jiǎn)要描述,主要說(shuō)明安排設(shè)計(jì)本模塊的目的意義,并且,還要說(shuō)明本模塊的特點(diǎn)。本模塊主要包括3個(gè)子模塊,分別是:制定采購(gòu)執(zhí)行單,審核采購(gòu)執(zhí)行單,查詢采購(gòu)執(zhí)行單;流程為:制定采購(gòu)執(zhí)行單-審核采購(gòu)執(zhí)行單-查詢采購(gòu)執(zhí)行單;本模塊流程清晰,易操作,易維護(hù)。8.2功能說(shuō)明該基本模塊應(yīng)具有

52、的功能。制定采購(gòu)執(zhí)行單:把采購(gòu)計(jì)劃生成采購(gòu)執(zhí)行單審核采購(gòu)執(zhí)行單:把生成的采購(gòu)執(zhí)行單進(jìn)行審核查詢采購(gòu)執(zhí)行單:把已經(jīng)通過(guò)審核的采購(gòu)執(zhí)行單進(jìn)行查詢8.3流程邏輯用圖表輔以必要的說(shuō)明來(lái)表示本模塊的邏輯流程。調(diào)度管理查詢采購(gòu)執(zhí)行單審核采購(gòu)執(zhí)行單制定采購(gòu)執(zhí)行單8.4 UI展示功能模塊所對(duì)應(yīng)的表示界面如:圖 8.1 制定采購(gòu)執(zhí)行單圖 8.2 制定采購(gòu)執(zhí)行單圖 8.3 查詢采購(gòu)執(zhí)行單圖 8.4 審核采購(gòu)執(zhí)行單圖 8.5 查詢采購(gòu)執(zhí)行單8.5核心代碼針對(duì)該模塊的核心代碼 /獲取repeater中的值 int pid = Convert.ToInt32(SessionPlanId); ExecteInfoDA e

53、da = new ExecteInfoDA(); ExecteInfo ex = new ExecteInfo(); ex.planId = pid; ductId =Convert.ToInt32( labpid.Text); ex.makeUser = ddlEmp.SelectedItem.Text; ex.makeTime =Convert.ToDateTime(labetime.Text); ex.sumNumber =Convert.ToInt32(labnumsum.Text); ex.isCheck = 0; ex.execteState = 0; ex.checkState

54、= 0; ex.ticketState = 0; eda.Add(ex); decimal s = 0; /獲取repeater中控件的值 foreach (RepeaterItem item in repsupply.Items) if (item.ItemType = ListItemType.Item | item.ItemType = ListItemType.AlternatingItem) Label supplyid = item.FindControl(labsid) as Label; TextBox number = item.FindControl(txtnum) as

55、TextBox; TextBox price = item.FindControl(txtprice) as TextBox; TextBox sum = item.FindControl(txtSum) as TextBox; TextBox time = item.FindControl(txtptime) as TextBox; TextBox man = item.FindControl(txtman) as TextBox; TextBox phone = item.FindControl(txtphone) as TextBox;/總計(jì)? s=Convert.ToDecimal(s

56、um.Text); s+=s; DetailExecteInfoDA deda = new DetailExecteInfoDA(); DetailExecteInfo de = new DetailExecteInfo(); de.execteId = ex.ExecteId; de.supplyId =Convert.ToInt32(supplyid.Text); de.Quantity =Convert.ToInt32( number.Text); de.Price =Convert.ToDecimal( price.Text); de.payTime=Convert.ToDateTim

57、e(time.Text); de.subTotal = Convert.ToDecimal(sum.Text); de.linkMam = man.Text + ; de.Phone = phone.Text+; de.Remark = ; deda.Add(de); Sessiontotal = s; Response.Redirect(ExecteOrderList.aspx?id=+ex.ExecteId); 8.6尚未解決的問(wèn)題 說(shuō)明在本模塊的設(shè)計(jì)中尚未解決而設(shè)計(jì)者認(rèn)為在系統(tǒng)完成之前應(yīng)解決的問(wèn)題。無(wú)9質(zhì)檢管理 模塊設(shè)計(jì)說(shuō)明9.1模塊描述給出對(duì)該基本模塊的簡(jiǎn)要描述,主要說(shuō)明安排設(shè)計(jì)本模塊

58、的目的意義,并且,還要說(shuō)明本模塊的特點(diǎn)。本模塊主要包括3個(gè)子模塊,分別是:登記質(zhì)檢結(jié)果,審核質(zhì)檢結(jié)果,查詢質(zhì)檢結(jié)果;流程為:登記質(zhì)檢結(jié)果-審核質(zhì)檢結(jié)果-查詢質(zhì)檢結(jié)果;本模塊管理9.2功能說(shuō)明該基本模塊應(yīng)具有的功能。登記質(zhì)檢結(jié)果:把采購(gòu)執(zhí)行單中采購(gòu)的貨品進(jìn)行質(zhì)檢,并進(jìn)行登記審核質(zhì)檢結(jié)果:把質(zhì)檢登記的結(jié)果進(jìn)行審核查詢質(zhì)檢結(jié)果:把已經(jīng)通過(guò)審核的質(zhì)檢結(jié)果進(jìn)行時(shí)間段的查詢9.3流程邏輯用圖表輔以必要的說(shuō)明來(lái)表示本模塊的邏輯流程。質(zhì)檢管理查詢質(zhì)檢結(jié)果審核質(zhì)檢結(jié)果登記質(zhì)檢結(jié)果9.4 UI展示功能模塊所對(duì)應(yīng)的表示界面如:圖 9.1 質(zhì)檢結(jié)果登記圖 9.2 質(zhì)檢結(jié)果登記圖 9.3 等待審核圖 9.4 審核圖 9

59、.5 查詢審核結(jié)果圖 9.6 質(zhì)檢詳情9.5核心代碼針對(duì)該模塊的核心代碼/審核通過(guò) protected void btnreset_Click(object sender, EventArgs e) CheckInfoDA checkDA = new CheckInfoDA(); int ID = Convert.ToInt32(lblcheckId.Text.Trim(); var ret = checkDA.Find(p = p.checkId = ID).FirstOrDefault(); if (radout.Checked) ret.checkUser = dropcheckUser

60、.Text.Trim(); ret.checkTime = Convert.ToDateTime(lblcheckTime.Text.Trim(); ret.isCheck = -1; checkDA.Save(); if (ret.isCheck = -1) JScript.Alert(未通過(guò)y審核?!?); else JScript.Alert(未審核?!?); if (radok.Checked) ret.checkUser = dropcheckUser.Text.Trim(); ret.checkTime = Convert.ToDateTime(lblcheckTime.Text.

溫馨提示

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

評(píng)論

0/150

提交評(píng)論