| | |
| | | string sql = "insert into Gy_BarCodeBill (HInterID, HEntryID, HBarCode, HBarCodeType, HBarCodeSubType, HMaterID, HUnitID, HQty, HBatchNo, HSupID, HGroupID, HMaker, HMakeDate, " + |
| | | "HPrintQty, HSourceInterID, HSourceEntryID, HSourceBillNo, HSourceBillType, HinitQty, HEndQty, HBarcodeQtys, HBarcodeNo, HDeptID, HWhID, HSPID, HRemark, " + |
| | | "HCusID, HCusType, HEndDate, HWorkLineName, HBarCodeDate, HSTOCKORGID, HOWNERID, HSeOrderBillNo, HGiveAwayFlag, HMaterName, HMaterModel, " + |
| | | "HPinfan, HAuxPropID, HMTONo, HInnerBillNo, HCoilNO, HFurnaceNO, HFactory, HAuxQty, HheatNO, HProduceDate, HExpiryDate, HEmpID, HCusModel, HCusMaterName, HCheckEmpName, HZZRQ" + |
| | | "HPinfan, HAuxPropID, HMTONo, HInnerBillNo, HCoilNO, HFurnaceNO, HFactory, HAuxQty, HheatNO, HProduceDate, HExpiryDate, HEmpID, HCusModel, HCusMaterName, HCheckEmpName, HZZRQ,HSupMaterNumber,HSupBatchNo" + |
| | | ") values (" + |
| | | "'" + ds.Tables[0].Rows[0]["HInterID"].ToString() + "', " + |
| | | "'" + (int.Parse(ds.Tables[0].Rows[0]["HEntryID"].ToString()) + 1).ToString() + "', " + |
| | |
| | | "'" + ds.Tables[0].Rows[0]["HCusModel"].ToString() + "', " + |
| | | "'" + ds.Tables[0].Rows[0]["HCusMaterName"].ToString() + "', " + |
| | | "'" + ds.Tables[0].Rows[0]["HCheckEmpName"].ToString() + "', " + |
| | | "'" + ds.Tables[0].Rows[0]["HZZRQ"].ToString() + "'" + |
| | | "'" + ds.Tables[0].Rows[0]["HZZRQ"].ToString() + "', " + |
| | | "'" + ds.Tables[0].Rows[0]["HSupBatchNo"].ToString() + "', " + |
| | | "'" + ds.Tables[0].Rows[0]["HSupMaterNumber"].ToString() + "'" + |
| | | ")"; |
| | | //æå
¥æåæ¡ç |
| | | oCN.RunProc(sql); |
| | |
| | | } |
| | | #endregion |
| | | |
| | | #region [app æ¡ç æç è·åæç æå°æ°æ®] |
| | | [Route("Sc_BarCode/GetSplitBarCode_SubList")] |
| | | [HttpGet] |
| | | public object GetSplitBarCode_SubList(string HBarCodeNo) |
| | | { |
| | | try |
| | | { |
| | | if (string.IsNullOrWhiteSpace(HBarCodeNo)) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "请è¾å
¥æ¡ç ç¼å·"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | SQLHelper.ClsCN oCn = new SQLHelper.ClsCN(); |
| | | |
| | | |
| | | var sql = "select * from h_v_Gy_BarCodeBillList_APP where æ¡ç ç¼å·='"+ HBarCodeNo + "'"; |
| | | |
| | | DataSet ds = oCn.RunProcReturn(sql, "h_v_Gy_BarCodeBillList_APP"); |
| | | |
| | | //夿æ¡ç æ¯å¦å卿¡ç æ¡£æ¡ |
| | | if (ds.Tables[0].Rows.Count > 0) |
| | | { |
| | | objJsonResult.code = "1"; |
| | | objJsonResult.count = 1; |
| | | objJsonResult.Message = "[0000-1-037]æ¥è¯¢æå"; |
| | | objJsonResult.data = ds.Tables[0]; |
| | | return objJsonResult; |
| | | } |
| | | else |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "[0000-1-010]没æè¿åä»»ä½è®°å½ï¼å½åæ¡ç ä¸å卿¡ç æ¡£æ¡"; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | |
| | | return objJsonResult; |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | objJsonResult.code = "0"; |
| | | objJsonResult.count = 0; |
| | | objJsonResult.Message = "å¼å¸¸ï¼" + ex.Message; |
| | | objJsonResult.data = null; |
| | | return objJsonResult; |
| | | } |
| | | } |
| | | #endregion |
| | | |
| | | #region [æ¡ç çææ¥å£_å°å«ééç ] |
| | | [Route("Sc_BarCode/SaveSNByICMO_XW")] |
| | | [HttpGet] |