版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
目录绪 课题背 目录绪 课题背 需求分 需求陈 业务流 系统设 系统实 系统首 系统功 用户登 出入库模 入库功 出库功 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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 泰州职业技术学院《运筹学A(一)》2023-2024学年第一学期期末试卷
- 2023年大健康项目融资计划书
- 二年级品德与社会上册《邻里之间》教学实录 辽师大版
- 中国微型铝塑包装机项目投资可行性研究报告
- 中国经营鞋类项目投资可行性研究报告
- 中国MMC卡外壳项目投资可行性研究报告
- 电力实时监控系统行业深度研究报告
- 2024年五年级英语上册 Unit 3 A Travel Plan Lesson 16 How Can We Go To Beijing教学实录 冀教版(三起)
- 中国直角铝三叉项目投资可行性研究报告
- 泰山职业技术学院《数据库技术与纺织信息系统》2023-2024学年第一学期期末试卷
- 自考02313电力系统微型计算机继电保护历年(12-19)真题试卷
- 马克思主义基本原理智慧树知到答案章节测试2023年重庆工商大学
- 合理性、先进性的证明
- 人教版数学三年级上册分数的初步认识分数的初步认识-课件16
- 选必中第一单元大单元教学设计
- GB/T 34281-2017全民健身活动中心分类配置要求
- GB/T 33322-2016橡胶增塑剂芳香基矿物油
- GB/T 23988-2009涂料耐磨性测定落砂法
- GB/T 1962.2-2001注射器、注射针及其他医疗器械6%(鲁尔)圆锥接头第2部分:锁定接头
- GB/T 15905-1995硫化橡胶湿热老化试验方法
- 中央空调空调年度维保报价单
评论
0/150
提交评论