From 3db477ccda04b391872cbd570b7d1c1253e1f6e0 Mon Sep 17 00:00:00 2001
From: yangle <admin@YINMOU>
Date: 星期二, 23 五月 2023 14:11:00 +0800
Subject: [PATCH] 生产订单备注字段改成白坯要求,底部备注下推流转卡的时候带到流转卡底部备注中去 生产订单 已经下推过  流转卡或 生产入库单 或生产领料单 后,就不能删除; 生产资源新增模块增加   负责人 HEmpID int 字段(gy_Employee) 非必录入,打印的时候打印出来 生产订单列表里增加关闭和反关闭按钮(在生产订单编辑模块里有这个功能,将一样的功能复制出来),列表显示关闭状态 工序流转卡维护列表增加当前工序过滤条件(下拉框形式,取值取工序列表) 网格选中行, 背景行 浅蓝色 显示;(优先改  生产订单列表,流转卡列表,出站单列表,进站单列表)(最好改JS底层方法)

---
 Kanban/Sc_QLKB.cs |   69 ++++++++++++++++++++++++++++++----
 1 files changed, 60 insertions(+), 9 deletions(-)

diff --git a/Kanban/Sc_QLKB.cs b/Kanban/Sc_QLKB.cs
index e41c9fd..64fb0c9 100644
--- a/Kanban/Sc_QLKB.cs
+++ b/Kanban/Sc_QLKB.cs
@@ -144,12 +144,20 @@
                 ////}
                 //// 
                 ///
-                ClsCN clsCN = new ClsCN();
-                ClsIni clsIni = new ClsIni();
-                string text = ClsIni.ReadIni("Dept", "DeptID", Pub_Class.ClsPub.AppPath + "\\HXErp.ini");
-                this.sDeptID = text;
-                string procName = "exec h_p_QLKB " + this.sDeptID;
-                this.DSet = clsCN.RunProcReturn(procName, this.ViewName, ref Pub_Class.ClsPub.sExeReturnInfo);
+                //ClsCN clsCN = new ClsCN();
+                //ClsIni clsIni = new ClsIni();
+                //string text = ClsIni.ReadIni("Dept", "DeptID", Pub_Class.ClsPub.AppPath + "\\HXErp_SY.ini");
+                //this.sDeptID = text;
+                string s = "";
+
+                ClsCN SubCn = new ClsCN();
+                string sSql = "";
+                string sWhere = "";
+                ClsIni oIni = new ClsIni();
+                string sID = ClsIni.ReadIni("Dept", "DeptID", Pub_Class.ClsPub.AppPath + @"\" + "HXErp_SY.ini");
+                sDeptID = sID;
+                string procName = "exec h_p_QLKB_CS " + this.sDeptID;
+                this.DSet = SubCn.RunProcReturn(procName, this.ViewName, ref Pub_Class.ClsPub.sExeReturnInfo);
                 bool flag = this.DSet == null;
                 if (!flag)
                 {
@@ -162,10 +170,25 @@
                     });
                     this.oSumGrid.BuildTotalCols(cols);
                     int frCol = 10;
-                    string s = "鏄�";
+                     s = "鍚�";
                     Xt_BaseBillFun.DisplayGrid(this.grdMain, base.Name, s, frCol);
                 }
-            } 
+                //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;
+                //    }
+                //}
+                s = "鍚�";
+                int MainIDCol = Fun_GetCol("hmainid");
+                int SubIDCol = Fun_GetCol("hsubid");
+                long n = 0;
+                DBUtility.Xt_BaseBillFun.GraphLine_XB(grdMain, MainIDCol, SubIDCol, s, ref n);
+                //Total();
+            }
             catch (Exception e)
             {
                 return;
@@ -300,7 +323,26 @@
 
                     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 MainIDCol = Fun_GetCol("hmainid");
+                int SubIDCol = Fun_GetCol("hsubid");
+                string s = "鍚�";
+                long n = 0;
+                DBUtility.Xt_BaseBillFun.GraphLine_XB(grdMain, MainIDCol, SubIDCol, s, ref n);
+
+
+
 
                 ////-----------棰勮鐘舵�� 灏忎簬绛変簬 鏄剧ず 绾㈣壊锛� 灏忎簬7 姗欒壊锛屽皬浜庣瓑浜�14 榛勮壊 
                 //int HYJDateCol = Fun_GetCol("棰勮鐘舵�侊紙澶╋級");
@@ -465,6 +507,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;
+            //    }
+            //}
         }
 
         private void toolStripButton1_Click(object sender, EventArgs e)

--
Gitblit v1.9.1