From 0731d102ee6904c8ac6f8fafb09151f8f34c2ad8 Mon Sep 17 00:00:00 2001 From: yusijie <ysj@hz-kingdee.com> Date: 星期四, 03 八月 2023 10:20:21 +0800 Subject: [PATCH] 工序委外派工单,供应商询价单,供应商报价单,首件检验单 --- DAL/质检管理/ClsQC_FirstPieceCheckBill.cs | 46 ++++++++++++++++++++++++++++++++++++++++++---- 1 files changed, 42 insertions(+), 4 deletions(-) diff --git "a/DAL/\350\264\250\346\243\200\347\256\241\347\220\206/ClsQC_FirstPieceCheckBill.cs" "b/DAL/\350\264\250\346\243\200\347\256\241\347\220\206/ClsQC_FirstPieceCheckBill.cs" index c249a76..5cf2b7d 100644 --- "a/DAL/\350\264\250\346\243\200\347\256\241\347\220\206/ClsQC_FirstPieceCheckBill.cs" +++ "b/DAL/\350\264\250\346\243\200\347\256\241\347\220\206/ClsQC_FirstPieceCheckBill.cs" @@ -143,7 +143,7 @@ try { //寰楀埌mainid - omodel.HInterID = DBUtility.ClsPub.CreateBillID(BillType, ref DBUtility.ClsPub.sExeReturnInfo); + //omodel.HInterID = DBUtility.ClsPub.CreateBillID(BillType, ref DBUtility.ClsPub.sExeReturnInfo); //鑻AINDI閲嶅鍒欓噸鏂拌幏鍙� oCn.BeginTran(); //涓昏〃 @@ -168,15 +168,20 @@ ",HEntryCloseDate,HCloseType,HRemark,HSourceInterID" + ",HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" + ",HQCCheckItemID,HQCStd,HUnit,HQCNote,HResult" + - ",HMax,HMin,HAvg" + + ",HMax,HMin,HAvg,HSampleSchemeID,HSampleQty,HSampleDamageQty,HAcceptQty" + + ",HRejectQty,HSampleUnRightQty,HStatus,HUnitID,HInspectVal,HTargetVal" + + ",HUpLimit,HDownLimit,HUpOffSet,HDownOffSet" + ") values(" + omodel.HInterID.ToString() + ",'" + oSub.HBillNo_bak + "'," + oSub.HEntryID.ToString() + ",'" + oSub.HCloseMan + "'" + ",getdate()," + Convert.ToString(oSub.HCloseType ? 1 : 0) + ",'" + oSub.HRemark + "'," + oSub.HSourceInterID.ToString() + "," + oSub.HSourceEntryID.ToString() + ",'" + oSub.HSourceBillNo + "','" + oSub.HSourceBillType + "'," + oSub.HRelationQty.ToString() + "," + oSub.HRelationMoney.ToString() + "," + oSub.HQCCheckItemID.ToString() + ",'" + oSub.HQCStd + "','" + oSub.HUnit + "','" + oSub.HQCNote + "','" + oSub.HResult + "'" + - ",'" + oSub.HMax + "','" + oSub.HMin + "','" + oSub.HAvg + "'" + + ",'" + oSub.HMax + "','" + oSub.HMin + "','" + oSub.HAvg + "'" + "," + oSub.HSampleSchemeID + "," + oSub.HSampleQty + + "," + oSub.HSampleDamageQty + "," + oSub.HAcceptQty + "," + oSub.HRejectQty + "," + oSub.HSampleUnRightQty + ",'" + oSub.HStatus + + "'," + oSub.HUnitID + ",'" + oSub.HInspectVal + "','" + oSub.HTargetVal + "','" + oSub.HUpLimit + "','" + oSub.HDownLimit + + "','" + oSub.HUpOffSet + "','" + oSub.HDownOffSet + "'" + ") "); - } + } //foreach (Model.ClsQC_FirstPieceCheckBillSub_Item oSub2 in DetailColl1) //{ // oCn.RunProc("Insert into QC_FirstPieceCheckBillSub_Item " + @@ -216,6 +221,39 @@ throw (e); } } + + //鏂板妫�楠屽�� + public virtual bool AddValue(ref string sReturn,ref long HInterID, ref long HEntryID) + { + try + { + oCn.BeginTran(); + + oCn.RunProc("delete from QC_FirstPieceCheckBillSub_ValueGrid where HInterID = " + HInterID + " and HEntryID = " + HEntryID); + + //鎻掑叆瀛愯〃 + foreach (Model.ClsQC_FirstPieceCheckBillSub_ValueGrid value in DetailColl_Value) + { + oCn.RunProc("Insert into QC_FirstPieceCheckBillSub_ValueGrid " + + " (HInterID,HEntryID,HSEQ,HInSpectResult" + + ",HInSpectValue,HInSpectValueB,HInSpectValueT" + + ") values(" + + HInterID + "," + HEntryID + "," + value.HSEQ + ",'" + value.HInSpectResult + "'," + + value.HInSpectValue + "," + value.HInSpectValueB + ",'" + value.HInSpectValueT + "'" + + ") "); + } + sReturn = "鏂板妫�楠屽�兼垚鍔燂紒"; + oCn.Commit(); + return true; + } + catch (Exception e) + { + sReturn = e.Message; + oCn.RollBack(); + throw (e); + } + } + //鏄剧ず鍗曟嵁 public override bool ShowBill(Int64 lngBillKey, ref string sReturn) { -- Gitblit v1.9.1