From 4901a4f838dbfa56be1843e36817304ec9feb8d2 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期四, 07 十一月 2024 10:06:07 +0800
Subject: [PATCH] 工艺路线:新增时,若公司为乔一,则判断是否设置为默认工序,设置则调用存储过程将该物料其它工艺路线的默认标记取消

---
 BLL/系统公用CLS/Cls_S_KF_ICInventoryList_IF.cs |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git "a/BLL/\347\263\273\347\273\237\345\205\254\347\224\250CLS/Cls_S_KF_ICInventoryList_IF.cs" "b/BLL/\347\263\273\347\273\237\345\205\254\347\224\250CLS/Cls_S_KF_ICInventoryList_IF.cs"
index 1b5c55b..e49c4aa 100644
--- "a/BLL/\347\263\273\347\273\237\345\205\254\347\224\250CLS/Cls_S_KF_ICInventoryList_IF.cs"
+++ "b/BLL/\347\263\273\347\273\237\345\205\254\347\224\250CLS/Cls_S_KF_ICInventoryList_IF.cs"
@@ -31,7 +31,7 @@
         public bool Refresh(string sWhere)
         {
             string sErr = "";
-            int MainIDCol, SubIDCol, SPIDCol, BatchNoCol, MTONoCol;
+            int MainIDCol, SubIDCol, SPIDCol, BatchNoCol, AuxPropIDCol, MTONoCol, HProduceDateCol, HExpiryDateCol;
             string stmp;
             string tSQL;
             try
@@ -44,7 +44,10 @@
                 SubIDCol = oFrm.Fun_GetCol("hwhid");
                 SPIDCol = oFrm.Fun_GetCol("hspid");
                 BatchNoCol = oFrm.Fun_GetCol("鎵规");
+                AuxPropIDCol = oFrm.Fun_GetCol("HAuxPropID");
                 MTONoCol = oFrm.Fun_GetCol("璁″垝璺熻釜鍙�");
+                HProduceDateCol = oFrm.Fun_GetCol("鐢熶骇鏃ユ湡");
+                HExpiryDateCol = oFrm.Fun_GetCol("鏈夋晥鏈熻嚦");
                 //
                 //寰幆 閫変腑琛�
                 if (oFrm.OKTag == Pub_Class.ClsPub.Enum_OKTag.OKTag_OK)
@@ -56,7 +59,10 @@
                         oSelect.BillSubID = DBUtility.ClsPub.isLong(oFrm.grdMain.Rows[oFrm.grdMain.SelectedRows[i].Index].Cells[SubIDCol].Value);
                         oSelect.SPID = DBUtility.ClsPub.isLong(oFrm.grdMain.Rows[oFrm.grdMain.SelectedRows[i].Index].Cells[SPIDCol].Value);
                         oSelect.BatchNo = DBUtility.ClsPub.isStrNull(oFrm.grdMain.Rows[oFrm.grdMain.SelectedRows[i].Index].Cells[BatchNoCol].Value);
+                        oSelect.HAuxPropID = DBUtility.ClsPub.isLong(oFrm.grdMain.Rows[oFrm.grdMain.SelectedRows[i].Index].Cells[AuxPropIDCol].Value);
                         oSelect.BillNo = DBUtility.ClsPub.isStrNull(oFrm.grdMain.Rows[oFrm.grdMain.SelectedRows[i].Index].Cells[MTONoCol].Value);
+                        oSelect.HProduceDate = DBUtility.ClsPub.isStrNull(oFrm.grdMain.Rows[oFrm.grdMain.SelectedRows[i].Index].Cells[HProduceDateCol].Value);
+                        oSelect.HExpiryDate = DBUtility.ClsPub.isStrNull(oFrm.grdMain.Rows[oFrm.grdMain.SelectedRows[i].Index].Cells[HExpiryDateCol].Value);
                         oSelect.BillTitle = mvarReportTitle;
                         oSelect.BillType = mvarItemKey;
                         oBillSelectColl.Add(oSelect);

--
Gitblit v1.9.1