From 97c43d459cb96e768948a44d9845a0b439bc2adc Mon Sep 17 00:00:00 2001
From: yangle <admin@YINMOU>
Date: 星期四, 29 十二月 2022 10:07:10 +0800
Subject: [PATCH] 设备点检计划 记录  设备保养记录单

---
 DAL/生产管理/模具管理/ClsSc_MouldDotCheckRuleBill.cs |   59 +++++++++++++++++++++++++++++------------------------------
 1 files changed, 29 insertions(+), 30 deletions(-)

diff --git "a/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldDotCheckRuleBill.cs" "b/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldDotCheckRuleBill.cs"
index 7273a94..e69f9f5 100644
--- "a/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldDotCheckRuleBill.cs"
+++ "b/DAL/\347\224\237\344\272\247\347\256\241\347\220\206/\346\250\241\345\205\267\347\256\241\347\220\206/ClsSc_MouldDotCheckRuleBill.cs"
@@ -40,7 +40,6 @@
                 //鏇存柊涓昏〃
                 oCn.RunProc("UpDate Sc_MouldDotCheckRuleBillMain set  " +
                 " HBillNo='" + omodel.HBillNo + "'" +  //鍥哄畾璧嬪��===============
-                ",HDate='" + omodel.HDate + "'" +
                 ",HYear='" + omodel.HYear.ToString() + "'" +
                 ",HPeriod='" + omodel.HPeriod.ToString() + "'" +
                 ",HRemark='" + omodel.HRemark + "'" +
@@ -59,7 +58,7 @@
                 //DeleteRelation(ref sReturn, lngBillKey);
                 ////鍒犻櫎瀛愯〃
                 DeleteBillSub(lngBillKey);
-                oCn.RunProc("delete from Sc_MouldDotCheckRuleBillSub_Item where HInterID=" + lngBillKey);
+                //oCn.RunProc("delete from Sc_MouldDotCheckRuleBillSub_Item where HInterID=" + lngBillKey);
                 ////鎻掑叆瀛愯〃
                 omodel.HInterID = lngBillKey;
                 foreach (Model.ClsSc_MouldDotCheckRuleBillSub oSub in DetailCol)
@@ -76,20 +75,20 @@
                       "," + oSub.HDotCheckItemID.ToString() + ",'" + oSub.HDotCheckItem + "','" + oSub.HDotCheckPart + "','" + oSub.HClaim + "'," + oSub.HManagerID.ToString() +
                       ") ");
                 }
-                foreach (Model.ClsSc_MouldDotCheckRuleBillSub_Item oSub in DetailColl)
-                {
-                    oCn.RunProc("Insert into Sc_MouldDotCheckRuleBillSub_Item " +
-                    " (HInterID,HEntryID,HCloseMan,HEntryCloseDate,HCloseType,HRemark" +
-                    ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" +
-                    ",HMaterID,HUnitID" +
-                    ",HQty,HQtyMust" +
-                    ") values("
-                    + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HCloseMan + "'," + oSub.HEntryCloseDate.ToShortDateString() + "," + 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.HMaterID.ToString() + "," + oSub.HUnitID.ToString() +
-                    "," + oSub.HQty.ToString() + "," + oSub.HQtyMust.ToString() +
-                    ") ");
-                }
+                //foreach (Model.ClsSc_MouldDotCheckRuleBillSub_Item oSub in DetailColl)
+                //{
+                //    oCn.RunProc("Insert into Sc_MouldDotCheckRuleBillSub_Item " +
+                //    " (HInterID,HEntryID,HCloseMan,HEntryCloseDate,HCloseType,HRemark" +
+                //    ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" +
+                //    ",HMaterID,HUnitID" +
+                //    ",HQty,HQtyMust" +
+                //    ") values("
+                //    + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HCloseMan + "'," + oSub.HEntryCloseDate.ToShortDateString() + "," + 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.HMaterID.ToString() + "," + oSub.HUnitID.ToString() +
+                //    "," + oSub.HQty.ToString() + "," + oSub.HQtyMust.ToString() +
+                //    ") ");
+                //}
 
                 sReturn = "淇敼鍗曟嵁鎴愬姛锛�";
                 oCn.Commit();
@@ -137,20 +136,20 @@
                      "," + oSub.HDotCheckItemID.ToString() + ",'" + oSub.HDotCheckItem + "','" + oSub.HDotCheckPart + "','" + oSub.HClaim + "'," + oSub.HManagerID.ToString() +
                      ") ");
                 }
-                foreach (Model.ClsSc_MouldDotCheckRuleBillSub_Item oSub in DetailColl)
-                {
-                    oCn.RunProc("Insert into Sc_MouldDotCheckRuleBillSub_Item " +
-                    " (HInterID,HEntryID,HCloseMan,HEntryCloseDate,HCloseType,HRemark" +
-                    ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" +
-                    ",HMaterID,HUnitID" +
-                    ",HQty,HQtyMust" +
-                    ") values("
-                    + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HCloseMan + "'," + oSub.HEntryCloseDate.ToShortDateString() + "," + 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.HMaterID.ToString() + "," + oSub.HUnitID.ToString() +
-                    "," + oSub.HQty.ToString() + "," + oSub.HQtyMust.ToString() +
-                    ") ");
-                }
+                //foreach (Model.ClsSc_MouldDotCheckRuleBillSub_Item oSub in DetailColl)
+                //{
+                //    oCn.RunProc("Insert into Sc_MouldDotCheckRuleBillSub_Item " +
+                //    " (HInterID,HEntryID,HCloseMan,HEntryCloseDate,HCloseType,HRemark" +
+                //    ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HRelationQty,HRelationMoney" +
+                //    ",HMaterID,HUnitID" +
+                //    ",HQty,HQtyMust" +
+                //    ") values("
+                //    + omodel.HInterID.ToString() + "," + oSub.HEntryID.ToString() + ",'" + oSub.HCloseMan + "'," + oSub.HEntryCloseDate.ToShortDateString() + "," + 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.HMaterID.ToString() + "," + oSub.HUnitID.ToString() +
+                //    "," + oSub.HQty.ToString() + "," + oSub.HQtyMust.ToString() +
+                //    ") ");
+                //}
                 sReturn = "鏂板鍗曟嵁鎴愬姛锛�";
                 oCn.Commit();
                 return true;

--
Gitblit v1.9.1