| | |
| | | #region æäº¤ä¿åï¼å主å表åæç»è¡¨ |
| | | [Route("Sc_QualityReportBill/set_SaveBill")] |
| | | [HttpGet] |
| | | public object set_SaveBill(long HInterID,string HBillNo, string HChecker) |
| | | public object set_SaveBill(long HInterID,string HBillNo, string HChecker,string HBillSubType) |
| | | { |
| | | try |
| | | { |
| | |
| | | ds = oCN.RunProcReturn(sql, "Sc_QualityReportBillSub"); |
| | | if (ds.Tables[0].Rows.Count>0) |
| | | { |
| | | oCN.RunProc("exec h_p_save_Sc_QualityReportBillSum " + HInterID + ""); |
| | | oCN.RunProc("exec h_p_save_Sc_QualityReportBillSum '" + HInterID + "','" + HBillSubType +"'"); |
| | | } |
| | | else |
| | | { |
| | | oCN.RunProc("exec h_p_save_Sc_QualityReportBill " + HInterID + ""); |
| | | oCN.RunProc("exec h_p_save_Sc_QualityReportBill '" + HInterID + "','" + HBillSubType + "'"); |
| | | } |
| | | |
| | | //夿æ¯å¦å
许ä¿åï¼ä¸å
许ååæ» |
| | |
| | | string subSql = "Insert into Sc_QualityReportBillSub " + |
| | | " (HInterID,HEntryID,HBillNo_bak,HRemark" + |
| | | ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + |
| | | ",HMaterID,HUnitID,HQty,HResult,HEmpID,HSourceID,HProcID,HBadReasonID,HBadReasonNumber,HGroupID" + |
| | | ",HMaterID,HUnitID,HQty,HResult,HEmpID,HSourceID,HProcID,HBadReasonID,HBadReasonNumber,HBadPhenomenaID,HGroupID" + |
| | | ",HICMOInterID,HICMOEntryID,HICMOBillNo,HProcExchInterID,HProcExchEntryID,HProcExchBillNo" + |
| | | ",HBarCode,HReportType" + |
| | | ",HAddr,HMaker,HMakeDate" + |
| | |
| | | "," + oSub.HProcID.ToString() + "" + |
| | | "," + oSub.HBadReasonID.ToString() + "" + |
| | | ",'" + oSub.HBadReasonNumber.ToString() + "'" + |
| | | "," + oSub.HBadPhenomenaID.ToString() + "" + |
| | | ",'" + oSub.HGroupID.ToString() + "'" + |
| | | |
| | | "," + oSub.HICMOInterID.ToString() + "" + |