| | |
| | | try |
| | | { |
| | | //根据采购订单号查询物料信息,供应商信息 |
| | | sql = @"select B.rownumber, B.materiel_code as partcode,M.partname,M.partspec,M.is_batchno, |
| | | sql = @"select B.rownumber, B.materiel_code as partcode,M.partname,M.partspec,M.is_batchno,M.is_incheck, |
| | | B.quantity,B.customercode,C.name as customername,A.departmentcode,T.org_name as departmentname,U.code as uomcode,U.name as uomname, |
| | | A.ordercode,B.countarrivalquantity,A.acceptdate |
| | | from T_PurchaseOrder A |
| | |
| | | for (int j = 0; j < json[i].children.Count; j++) |
| | | { |
| | | //写入条码档案表 |
| | | sql = @"insert into T_BarCodeBill(rightcode,hbillno,hbilltype,hbarcode,hbarcodestatus,hbarcodetype,hmaterialcode,hqty,hbatchno,hcustomercode,hdeptcode,hsourcebillno,hsourcebilltype,lm_user,lm_date) |
| | | values(@rightcode,hbillno,@hbilltype,@hbarcode,@hbarcodestatus,@hbarcodetype,@hmaterialcode,@hqty,@hbatchno,@hcustomercode,@hdeptcode,@hsourcebillno,@hsourcebilltype,@lm_user,@lm_date)"; |
| | | sql = @"insert into T_BarCodeBill(rightcode,hbillno,hbilltype,hbarcode,hbarcodestatus,hbarcodetype,hmaterialcode,hqty,hbatchno,hcustomercode,hdeptcode,hsourcebillno,hsourcebilltype,barcodeposition,lm_user,lm_date) |
| | | values(@rightcode,hbillno,@hbilltype,@hbarcode,@hbarcodestatus,@hbarcodetype,@hmaterialcode,@hqty,@hbatchno,@hcustomercode,@hdeptcode,@hsourcebillno,@hsourcebilltype,@barcodeposition,@lm_user,@lm_date)"; |
| | | list.Add(new |
| | | { |
| | | str = sql, |
| | |
| | | hdeptcode = dpartment, |
| | | hsourcebillno = purordercode, |
| | | hsourcebilltype = "1102", |
| | | barcodeposition="2060;采购到货", |
| | | lm_user = username, |
| | | lm_date = DateTime.Now.ToString() |
| | | } |