软件工程专业毕业论文--基于uml仓库管理系统设计与实现课程设计内容摘要:

Sdata2[n][0] 1 .toString .trim。 Sdata2[n][1] 2 .toString .trim。 Sdata2[n][2] 3 .toString .trim。 Sdata2[n][3] 4 .toString .trim。 Sdata2[n][4] 5 .toString .trim。 Sdata2[n][5] 6 .toString .trim。 n++。 return Sdata2。 catch Exception e。 return Sdata2。 //先判断库存表中是否存在要出库的商品编号 public boolean isExistsGid String gid boolean flags false。 try int count 0。 String sql3 select count 商品编号 from StoreManage where 商品编号 ?。 PreparedStatement ps sql3。 1, gid。 ResultSet result。 while count++。 if count 0 flags true。 return flags。 else return flags。 catch Exception e。 return flags。 //判断库存表中的库存量是否满足出库的笨条件 public boolean lookNumber String gid,int number boolean flags false。 try int num 0。 String sql4 select 库存量 from StoreManage where 商品编号 ?。 PreparedStatement ps sql4。 1, gid。 ResultSet result。 while num 1。 if number num flags true。 else flags false。 return flags。 catch Exception e。 return flags。 //商品出库向出库表写入一条数据的出库记录 public void newStoreOuput String outgid,String outgname,int outgnum try String sql5 insert into OutStore 商品编号 ,商品名称 ,出库数量 ,出库人 ,出库时间 values ?,?,?,?,getdate。 PreparedStatement ps sql5。 1, outgid。 2, outgname。 3, outgnum。 4, outpeople。 catch Exception e。 //这是要修改库存表中的库存量 public void updateStoreManage String outgid ,int num try String sql6 update StoreManage set 库存量 select 库存量 from StoreManage where 商品编号 ? ? where 商品编号 ?。 PreparedStatement ps sql6。 1,outgid。 2, num。 3, outgid。 catch Exception e。 //向出库表模型中添加一条新一出库记录 public Object addOutStoreToTable String outgid try String sql7 select * from OutStore where 商品编号 ? and 出库编号 select count * from OutStore。 PreparedStatement ps sql7。 1, outgid。 ResultSet result。 while newStoreOfOut[0] new Integer 1。 newStoreOfOut[1] 2 .toString .trim。 newStoreOfOut[2] 3 .toString .trim。 newStoreOfOut[3] new Integer 4。 newStoreOfOut[4] 5 .toString .trim。 newStoreOfOut[5] 6 .toString .trim。 return newStoreOfOut。 catch Exception e。 return newStoreOfOut。 入库界面 public Object setSdata try String sq2 select * from InStore。 Statement st。 ResultSet result sq2。 Sdata new Object[Row][Column]。 int n 0。 while Sdata[n][0] 1 .toString .trim。 Sdata[n][1] 2 .toString .trim。 Sdata[n][2] 3 .toString .trim。 Sdata[n][3] 4 .toString .trim。 Sdata[n][4] 5 .toString .trim。 Sdata[n][5] 6 .toString .trim。 n++。 return Sdata。 catch Exception e。 return Sdata。 //向入库表中插入新的数据 public void goodsInserData String gid,String gname,int gnum try String sql3 insert into InStore 商品编号 ,商品名称 ,入库。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。