版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
目录绪 课题背 目录绪 课题背 需求分 需求陈 业务流 系统设 系统实 系统首 系统功 用户登 出入库模 入库功 出库功 4.5公用类 234结 1随着我国经济的飞速发展,各种类型规模的公司企业迅速崛起,许多从事生产和经营管理的企业都有自己生产的销售的产品,而这些产品都要储存在仓库中,对于每个企业来现在国内外对于此类系统的开发与研究也是很有实用性的,基本上能满足各企业自身特点,来进行仓库方面的管理。同时,该类系统又都在不断地深入与发展,来适用更多的1随着我国经济的飞速发展,各种类型规模的公司企业迅速崛起,许多从事生产和经营管理的企业都有自己生产的销售的产品,而这些产品都要储存在仓库中,对于每个企业来现在国内外对于此类系统的开发与研究也是很有实用性的,基本上能满足各企业自身特点,来进行仓库方面的管理。同时,该类系统又都在不断地深入与发展,来适用更多的图123451234567891234123451234567891234123456781234567891234567812345678944usingnamespace{publicpartialclass{:publicusingnamespace{publicpartialclass{:public{}sender,EventArgsprivatevoid{}privatevoidbtnReturn_Click(objectsender,EventArgs{frmLoginfLogin=newfrmLogin();}privatevoidbtnUpdatePwd_Click(objectsender,{frmUpdatePwdfUpdatePwd=newfUpdatePwd.UserName=this.UserName;fUpdatePwd.UserPwd=this.UserPwd;}privatevoidbtnUpdateRight_Click(objectsender,EventArgs{frmUpdateRightfUpdatePwd.UserName=this.UserName;fUpdatePwd.UserPwd=this.UserPwd;}privatevoidbtnUpdateRight_Click(objectsender,EventArgs{frmUpdateRightfUpdateRight=new}privatevoidbtnInSM_Click(objectsender,EventArgs{frmInStorageManagefInStorageManage=newfrmInStorageManage();}privatevoidbtnAboutUs_Click(objectsender,EventArgs{frmAboutUsfAboutUs=newfrmAboutUs();}privatevoidbtnOutSM_Click(objectsender,EventArgs{frmOutStorageManagefOutStorageManage=newfrmOutStorageManage();}privatevoidbutton9_Click(objectsender,EventArgs{frmUserManagefUserManage=newfrmUserManage();}privatevoidbutton13_Click(objectsender,EventArgs{frmQueryGoodsInfoprivatevoidbutton9_Click(objectsender,EventArgs{frmUserManagefUserManage=newfrmUserManage();}privatevoidbutton13_Click(objectsender,EventArgs{frmQueryGoodsInfofQueryGoodsInfo=newfrmQueryGoodsInfo();}privatevoidbtnQueryIS_Click(objectsender,{=}privatevoidbtnQueryOS_Click(objectsender,{=}}}namespace{publicpartialclassfrmLogin:{publicnamespace{publicpartialclassfrmLogin:{public{}privatevoidbtnLogin_Click(object{if(txtUserName.Text.Trim()=={}if(txtUserPwd.Text.Trim()=={}DBConnectdb=newstringQuery="select*fromSMUser+"SMUserName='"+"+"'andSMUserPwd='"+txtUserPwd.Text+SqlDataReaderdr={MessageBox.ShowstringQuery1="selectSMUserRightfromSMUserwhere+"SMUserName='"+"'andSMUserPwd='"+txtUserPwd.Text+SqlDataReaderdr={MessageBox.ShowstringQuery1="selectSMUserRightfromSMUserwhere+"SMUserName='"+txtUserName.Text+"'";SqlDataReaderdr1=db.MyQuery(Query1);{if(dr1["SMUserRight"].ToString().Trim(){Main.frmMainfMain=newMain.frmMain();fMain.UserName=txtUserName.Text;fMain.UserPwd=txtUserPwd.Text;}{MessageBox.Show}}}{MessageBox.Show}}privatevoid{}}privatevoid{}}}4.3namespace{class:publicnamespace{class:public{intintdecimalGIPrice;decimalnow={}EventArgsprivatevoidbtnReturn_Click(object{frmMainfMain=newfrmMain();}privatevoidtxtGIPrice_TextChanged(object{{}privatevoidtxtGIPrice_TextChanged(object{{}catch(Exception{=*MessageBox.Show(ex.Message,"警告",MessageBoxButtons.OK,}}privatevoidbtnIn_Click(objectsender,{if(txtISGID.Text.Trim()=={}if(txtISGName.Text.Trim()=={}if(cboxSName.Text.Trim()=={if(txtPName.Text.Trim()==}{if(txtGSpec.Text.Trim()==}{MessageBox.Show(if(txtGUnit.Text.Trim()==if(txtPName.Text.Trim()==}{if(txtGSpec.Text.Trim()==}{MessageBox.Show(if(txtGUnit.Text.Trim()==}{MessageBox.Show(if(txtISGNum.Text.Trim()==}{if(txtGIPrice.Text.Trim()==}{if(txtHPeople.Text.Trim()==}{}GoodsID=GoodsNum=GIPrice=GSPricedb=newstringQuery="select*fromtb_InStorewhere+txtISGID.Text+"'";SqlDataReaderdr=}GoodsID=GoodsNum=GIPrice=GSPricedb=newstringQuery="select*fromtb_InStorewhere+txtISGID.Text+"'";SqlDataReaderdr=db.MyQuery(Query);if(dr.Read()){=++"values("+GoodsID+",'"+txtISGName.Text.Trim()++cboxSName.Text.Trim()+"','"+txtPName.Text.Trim()+"','"+txtGSpec.Text.Trim()+"','"+txtGUnit.Text.Trim()+"',"+GoodsNum+","+","+GSPrice++now"','"txtHPeople.Text.Trim()"+txtISRemark.Text.Trim()+DBConnectdb1=newDialogResultresultMessageBox.Show("确认入库?",if(result=={stringQuery1=*fromtb_GoodsInfoGoodsID="++"andGoodsName='"StoreName='"+cboxSName.Text.Trim()+"'andGoodsSpec='"andGoodsUnit='"+txtGUnit.Text.Trim()+"'";+txtISGName.TextstringQuery1=*fromtb_GoodsInfoGoodsID="++"andGoodsName='"StoreName='"+cboxSName.Text.Trim()+"'andGoodsSpec='"andGoodsUnit='"+txtGUnit.Text.Trim()+"'";+txtISGName.Text+"'+txtGSpec.Text.Trim()+SqlDataReaderdr1=if{=+values("+GoodsID+",'"+txtISGName.Text.Trim()+"+cboxSName.Text.Trim()+"','"++"','"+txtGUnit.Text.Trim()+"null++GoodsNum+","+GIPrice+",'"+}{=GoodsNum=GoodsNum+OldNum;stringUpdateGoodsNum=GoodsNum="++"whereGoodsID="++"andGoodsName='"+txtISGName.Text+"'StoreName='"+cboxSName.Text.Trim()+"'andGoodsSpec='"+txtGSpec.Text.Trim()+andGoodsUnit='"+txtGUnit.Text.Trim()+"'";}MessageBox.Show}{}}}privatevoidfrmInStorageManage_Load(objectsender,EventArgs{SqlConnectionconn=newSqlConnection();conn.ConnectionString=DBConnect.getConnectionString();SqlDataAdapterda=newSqlDataAdapter("selectGoodsID}{}}}privatevoidfrmInStorageManage_Load(objectsender,EventArgs{SqlConnectionconn=newSqlConnection();conn.ConnectionString=DBConnect.getConnectionString();SqlDataAdapterda=newSqlDataAdapter("selectGoodsIDas编号,GoodsNameas+"StoreNameas仓库名称,PrNameas供应商名称,GoodsSpec+"GoodsUnitas计量单位,GoodsNumas入库数量,GoodsPrice+进货总金额 期,HandlePeopleas"ISRemarkasfromtb_InStoreconn);DataSetds=newDataSet();da.Fill(ds,"tb_InStore");dgvISManage.DataSource=ds.Tables[0];}privatevoidbtnDel_Click(objectsender,EventArgs{DBConnectdb=newstringQuery="select*fromtb_InStorewhere+txtISGID.Text+SqlDataReaderdr=db.MyQuery(Query);if(dr.Read()){DialogResultresultMessageBox.Show("是否删除该条记录的信息?","提示",MessageBoxButtons.YesNo,==if{=+SqlDataReaderdr=db.MyQuery(Query);if(dr.Read()){DialogResultresultMessageBox.Show("是否删除该条记录的信息?","提示",MessageBoxButtons.YesNo,==if{=+dgvISManage.CurrentCell.RowIndex].Value).Trim()+frmInStorageManage_Load(sender,}{}}{MessageBox.Show}}DataGridViewCellEventArgs{===========}EventArgsprivatevoidgroupBox1_Enter(object=========}EventArgsprivatevoidgroupBox1_Enter(object{}}}击出库,将会自动生成出库记录。出库的信息会影响到仓库内货物的信击出库,将会自动生成出库记录。出库的信息会影响到仓库内货物的信usingnamespace库存管理系统{publicpartialclassfrmOutStorageManage:{{intGoodsID;now=}usingnamespace库存管理系统{publicpartialclassfrmOutStorageManage:{{intGoodsID;now=}EventArgsprivatevoidbtnReturn_Click(object{frmMainfMain=newfrmMain();}privatevoidfrmOutStorageManage_Load(objectsender,{SqlConnectionconn=newconn.ConnectionStringSqlDataAdapterda=newSqlDataAdapter("selectOSIDas编号,GoodsIDas货物编号,StoreName仓库名称,"+"GoodsNameas货物名称,GoodsSpec,GoodsPrice期,PGProvider,GoodsUnitas计量单位,"+"GoodsNumas出库数价格,GoodsAPriceas总金额,"+"OSDateas出库日提货单位,PGPeopleas提货人,"+"OSRemarkas备注tb_OutStore",DataSetds=newda.Fill(ds,dgvOSManage.DataSource=SqlCommandcmd=cmd.Connectionnew=tb_GoodsInfoSqlDataReaderdrwhile{=}}DataGridViewCellEventArgs{====da.Fill(ds,dgvOSManage.DataSource=SqlCommandcmd=cmd.Connectionnew=tb_GoodsInfoSqlDataReaderdrwhile{=}}DataGridViewCellEventArgs{===========}{DBConnectdb=new=}{DBConnectdb=newDBConnect();stringQuery="selectdistinctGoodsNamefrom"+"whereStoreName='"+cboxSName.Text.Trim()+"'";SqlDataReaderdr=db.MyQuery(Query);while{}}{combboxItemDBConnectdb=newstringQuery="selectdistinctGoodsSpec,GoodsUnit,GoodsIDfromtb_GoodsInfo"+"whereStoreName='"++"'andGoodsName='"+cboxGName.Text.Trim()+"'";SqlDataReaderdr=db.MyQuery(Query);while{}}privatevoidbtnDel_Click(objectsender,EventArgs{DBConnectdbnew"select*fromtb_OutStorewhere{}}privatevoidbtnDel_Click(objectsender,EventArgs{DBConnectdbnew"select*fromtb_OutStorewhere=string+dgvOSManage.CurrentCell.RowIndex].Value).Trim()+"'";SqlDataReaderdr=db.MyQuery(Query);if(dr.Read()){DialogResultresultMessageBox.Show("是否删除该条记录的信息?","提示",MessageBoxButtons.YesNo,==if{stringnonQuery="deletefromtb_OutStore+dgvOSManage.CurrentCell.RowIndex].Value).Trim()+}{}}{MessageBox.Show}}privatevoidbtnOut_Click(objectsender,{{(cboxSName.Text.Trim()==MessageBox.Show}{(cboxGName.Text.Trim()=={MessageBox.Show}}privatevoidbtnOut_Click(objectsender,{{(cboxSName.Text.Trim()==MessageBox.Show}{(cboxGName.Text.Trim()==MessageBox.Show}{(cboxGSpec.Text.Trim()==MessageBox.Show}{(cboxGUnit.Text.Trim()==MessageBox.Show}{(txtOSGNum.Text.Trim()==MessageBox.Show}(txtOSPeople.Text.Trim()=={MessageBox.Show}{(txtOSUnit.Text.Trim()==MessageBox.Show(}{(cboxOSGID.Text.Trim()==MessageBox.Show(}DBConnectdb=newstringQuery="selectGoodsNumfrom{MessageBox.Show}{(txtOSUnit.Text.Trim()==MessageBox.Show(}{(cboxOSGID.Text.Trim()==MessageBox.Show(}DBConnectdb=newstringQuery="selectGoodsNumfrom"+"whereStoreName='"+cboxSName.Text.Trim()+and+cboxGName.Text.Trim()+"'andGoodsSpec='"+"'andGoodsID="++SqlDataReaderdr=db.MyQuery(Query);if(dr.Read()){>{MessageBox.Show}{=++"values('"+++++++cboxGUnit.Text.Trim()++txtGOPrice.Text.Trim()++++++txtOSPeople.Text.Trim()++txtGSPrice.Text.Trim()++++now+"','"+txtOSRemark.Text.Trim()+"')";DBConnectdb1=new++"values('"+++++++cboxGUnit.Text.Trim()++txtGOPrice.Text.Trim()++++++txtOSPeople.Text.Trim()++txtGSPrice.Text.Trim()++++now+"','"+txtOSRemark.Text.Trim()+"')";DBConnectdb1=newstringQuery1="select*fromtb_GoodsInfo++++"'andGoodsSpec='"++++Convert.ToInt32(cboxOSGID.Text.Trim())+SqlDataReaderdr1=db1.MyQuery(Query1);if(dr1.Read()){==GoodsNum=-=GoodsOutPrice="+Convert.ToDecimal(txtGOPrice.Text.Trim())"whereGoodsName='"+cboxGName.Text.Trim()"'andStoreName='"+cboxSName.Text.Trim()+"'andGoodsSpec='"+"'andGoodsUnit='"+++++Convert.ToInt32(cboxOSGID.Text.Trim())+"whereGoodsName='"+cboxGName.Text.Trim()"'andStoreName='"+cboxSName.Text.Trim()+"'andGoodsSpec='"+"'andGoodsUnit='"+++++Convert.ToInt32(cboxOSGID.Text.Trim())+stringsetGoodsNum="updatetb_GoodsInfoGoodsNum="++"whereGoodsName='"+cboxGName.Text.Trim()+"'andGoodsSpec='"++"'andStoreName='"+"'andGoodsUnit='"++Convert.ToInt32(cboxOSGID.Text.Trim())+}{}}}}privatevoidtxtGOPrice_TextChanged(object{{}=catch(Exception{"警告}}}catch(Exception{"警告}}}}namespace{publicpartialclassnamespace{publicpartialclass{public{}:EventArgsprivatevoid{if{==frmQueryGoodsInfo_Load(sender,}{if(cboxQueryTerm.Text.Trim(){SqlConnectionconn=newSqlConnection();=SqlDataAdapterda=newas,StoreNameas+规格,GoodsUnitas进货价+"GoodsNumasSqlDataAdapterda=newas,StoreNameas+规格,GoodsUnitas进货价+"GoodsNumas出库数量,GoodsInprice格,GoodsOutPriceas+"fromtb_GoodsInfowhereGoodsIDliketxtQueryString.Text.Trim()+"%'",conn);DataSetds=newda.Fill(ds,"tb_GoodsInfo");dataGridView1.DataSource=}if(cboxQueryTerm.Text.Trim(){SqlConnectionconn=newSqlConnection();'%"=SqlDataAdapterda=as,StoreNameas+规格,GoodsUnitas进货价+"GoodsNumas出库数量,GoodsInprice格,GoodsOutPriceas+"fromtb_GoodsInfowhereGoodsNameliketxtQueryString.Text.Trim()+"%'",conn);DataSetds=newDataSet();da.Fill(ds,dataGridView1.DataSource=}if(cboxQueryTerm.Text.Trim(){SqlConnectionconn=newSqlConnection();'%"=SqlDataAdapterda=newas,StoreNameas+货物名SqlDataAdapterda=newas,StoreNameas+货物名称 规格,GoodsUnitas进货价+"GoodsNumas出库数量,GoodsInprice格,GoodsOutPriceas+"fromtb_GoodsInfowhereStoreNamelike'%"+txtQueryString.Text.Trim()+"%'",conn);DataSetds=newda.Fill(ds,"tb_GoodsInfo");dataGridView1.DataSource=ds.Tables[0];}}}privatevoidfrmQueryGoodsInfo_Load(objectsender,EventArgs{SqlConnectionconn=newSqlConnection();conn.ConnectionString=DBConnect.getConnectionString();SqlDataAdapterdanewSqlDataAdapter("selectGoodsIDas编号,StoreNameas仓库名称,"+"GoodsNameas货
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 江苏省淮安市第四中学高二物理上学期期末试卷含解析
- 个人中长期借款合同
- 2022年安徽省宣城市洪林镇中学高二物理下学期摸底试题含解析
- 2022-2023学年江苏省泰州市迎幸中学高一英语上学期摸底试题含解析
- 2022-2023学年河南省许昌市禹州第一高级中学高二物理月考试题含解析
- 安徽省六安市金寨县斑竹园中学高二物理联考试卷含解析
- 浙江省杭州市留下中学2022-2023学年高二物理摸底试卷含解析
- 2024劳务派遣合作协议书合同
- 2024全新种植协议合同书下载
- 通风与空调主要设备安装
- EBZ掘进机截割部结构设计 悬臂式掘进机截割机构设计
- 2019新外研版高中英语必修三全册课文及翻译(中英文对照)
- 2006 年全国高校俄语专业四级水平测试试卷
- 校园二手交易系统的设计与实现
- 双黄连口服液工艺流程图
- 常用钢种成份表
- 100-200吨垃圾焚烧炉工艺方案、投资预算、运行成本分析
- 滚动轴承故障诊断(附MATLAB程序)
- 抵押物清单模板
- 涂装厂PFMEA模版
- [精品]鞍山市千山区工矿废弃地复垦利用专项规划(20122015年)
评论
0/150
提交评论