From 5385bf47d38bc55a707bb302f0c58487fcf23e8f Mon Sep 17 00:00:00 2001
From: 王 垚 <1402714037@qq.com>
Date: 星期二, 29 十一月 2022 10:36:28 +0800
Subject: [PATCH] api新增物料(基础资料)

---
 Kanban/Sc_CJKB.cs |   73 ++++++++++++++++++------------------
 1 files changed, 37 insertions(+), 36 deletions(-)

diff --git a/Kanban/Sc_CJKB.cs b/Kanban/Sc_CJKB.cs
index 055ee65..ecf3747 100644
--- a/Kanban/Sc_CJKB.cs
+++ b/Kanban/Sc_CJKB.cs
@@ -101,15 +101,16 @@
                 //-----------棰勮鐘舵��
                 //寮�宸ユ椂闂村皬浜庡綋澶╂椂闂达紝浣嗘槸浠诲姟鍗曠姸鎬佽繕鏄� 寰呯敓浜э紝绯荤粺鑷姩榛勮壊璀︾ず锛�
                 //瀹屽伐鏃堕棿灏忎簬褰撳ぉ鏃堕棿锛屼絾鏄换鍔″崟杩樻槸寰呯敓浜ф垨鑰呭湪鎵ц鐨勶紝绯荤粺鑷姩绾㈣壊璀︾ず锛�
-                int HEDateCol = Fun_GetCol("璁″垝瀹屽伐鏃ユ湡");
-                DateTime oNow = DateTime.Today.Date;
-                for (int i = 0; i < grdMain.Rows.Count; i++)
-                {
-                    if (DBUtility.ClsPub.isDate(grdMain.Rows[i].Cells[HEDateCol].Value) < oNow)
-                    {
-                        grdMain.Rows[i].DefaultCellStyle.ForeColor = Color.Red;
-                    }
-                }
+
+                //int HEDateCol = Fun_GetCol("璁″垝瀹屽伐鏃ユ湡");
+                //DateTime oNow = DateTime.Today.Date;
+                //for (int i = 0; i < grdMain.Rows.Count; i++)
+                //{
+                //    if (DBUtility.ClsPub.isDate(grdMain.Rows[i].Cells[HEDateCol].Value) < oNow)
+                //    {
+                //        grdMain.Rows[i].DefaultCellStyle.ForeColor = Color.Red;
+                //    }
+                //}
 
                 //璁剧疆鍚堣鍒�
                 string sTotalCol = "";
@@ -277,15 +278,15 @@
                     grdMain.DataSource = null;
                     grdMain.DataSource = DSet.Tables[0].DefaultView;
 
-                int HEDateCol = Fun_GetCol("璁″垝瀹屽伐鏃ユ湡");
-                DateTime oNow = DateTime.Today.Date;
-                for (int i = 0; i < grdMain.Rows.Count; i++)
-                {
-                    if (DBUtility.ClsPub.isDate(grdMain.Rows[i].Cells[HEDateCol].Value) < oNow)
-                    {
-                        grdMain.Rows[i].DefaultCellStyle.ForeColor = Color.Red;
-                    }
-                }
+                //int HEDateCol = Fun_GetCol("璁″垝瀹屽伐鏃ユ湡");
+                //DateTime oNow = DateTime.Today.Date;
+                //for (int i = 0; i < grdMain.Rows.Count; i++)
+                //{
+                //    if (DBUtility.ClsPub.isDate(grdMain.Rows[i].Cells[HEDateCol].Value) < oNow)
+                //    {
+                //        grdMain.Rows[i].DefaultCellStyle.ForeColor = Color.Red;
+                //    }
+                //}
 
                 ////-----------棰勮鐘舵�� 灏忎簬绛変簬 鏄剧ず 绾㈣壊锛� 灏忎簬7 姗欒壊锛屽皬浜庣瓑浜�14 榛勮壊 
                 //int HYJDateCol = Fun_GetCol("棰勮鐘舵�侊紙澶╋級");
@@ -450,15 +451,15 @@
                 HQty = 0;
                 timer1.Enabled = true;
             }
-            int HEDateCol = Fun_GetCol("璁″垝瀹屽伐鏃ユ湡");
-            DateTime oNow = DateTime.Today.Date;
-            for (int i = 0; i < grdMain.Rows.Count; i++)
-            {
-                if (DBUtility.ClsPub.isDate(grdMain.Rows[i].Cells[HEDateCol].Value) < oNow)
-                {
-                    grdMain.Rows[i].DefaultCellStyle.ForeColor = Color.Red;
-                }
-            }
+            //int HEDateCol = Fun_GetCol("璁″垝瀹屽伐鏃ユ湡");
+            //DateTime oNow = DateTime.Today.Date;
+            //for (int i = 0; i < grdMain.Rows.Count; i++)
+            //{
+            //    if (DBUtility.ClsPub.isDate(grdMain.Rows[i].Cells[HEDateCol].Value) < oNow)
+            //    {
+            //        grdMain.Rows[i].DefaultCellStyle.ForeColor = Color.Red;
+            //    }
+            //}
         }
 
         private void toolStripButton1_Click(object sender, EventArgs e)
@@ -516,15 +517,15 @@
             //        grdMain.Rows[i].DefaultCellStyle.ForeColor = Color.Red;
             //    }
             //}
-            int HEDateCol = Fun_GetCol("璁″垝瀹屽伐鏃ユ湡");
-            DateTime oNow = DateTime.Today.Date;
-            for (int i = 0; i < grdMain.Rows.Count; i++)
-            {
-                if (DBUtility.ClsPub.isDate(grdMain.Rows[i].Cells[HEDateCol].Value) < oNow)
-                {
-                    grdMain.Rows[i].DefaultCellStyle.ForeColor = Color.Red;
-                }
-            }
+            //int HEDateCol = Fun_GetCol("璁″垝瀹屽伐鏃ユ湡");
+            //DateTime oNow = DateTime.Today.Date;
+            //for (int i = 0; i < grdMain.Rows.Count; i++)
+            //{
+            //    if (DBUtility.ClsPub.isDate(grdMain.Rows[i].Cells[HEDateCol].Value) < oNow)
+            //    {
+            //        grdMain.Rows[i].DefaultCellStyle.ForeColor = Color.Red;
+            //    }
+            //}
         }
 
 

--
Gitblit v1.9.1