From 60600714709204a02b3ffd476af96fd35fb67370 Mon Sep 17 00:00:00 2001
From: zgq <519541279@qq.com>
Date: 星期三, 13 一月 2021 10:34:23 +0800
Subject: [PATCH] 增加裁切报表

---
 NETSCM/ClsShowMod.cs |  327 +++++++++++++++++++++++++++++------------------------
 1 files changed, 178 insertions(+), 149 deletions(-)

diff --git a/NETSCM/ClsShowMod.cs b/NETSCM/ClsShowMod.cs
index f5c9855..d90e461 100644
--- a/NETSCM/ClsShowMod.cs
+++ b/NETSCM/ClsShowMod.cs
@@ -55,8 +55,8 @@
                     //Zxxymk_ZPCJ(gnsy, gnmc, oMain);
                     break;
                 case "cj":
-                    //车间管理
-                    //Zxxymk_CJGL(gnsy, gnmc, oMain);
+                    //车间管理
+                    Zxxymk_CJGL(gnsy, gnmc, oMain);
                     break;
                 case "pa":
                     //工资管理
@@ -161,152 +161,166 @@
                 default:
                     break;
             }
-        }
-
-
-        //#region 车间管理
-        //public void Zxxymk_CJGL(string gnsy, string gnmc, Form oMain)
-        //{
-        //    ////
-        //    MDIMain oMainForm;
-        //    oMainForm = (MDIMain)oMain;
-        //    ////
-        //    if (gnsy.Length == 0)
-        //        return;
-        //    try
-        //    {
-        //        switch (gnsy.ToLower())
-        //        {
-                  
-        //            case "sc_processreport":
-        //                Sc_ProcessReport oSc_ProcessReport = new Sc_ProcessReport();
-        //                oSc_ProcessReport.MdiParent = oMain;
-        //                oSc_ProcessReport.ModCaption = gnmc;
-        //                oSc_ProcessReport.Show();
-        //                oMainForm.AddTabPage(oSc_ProcessReport);
-        //                break;
-        //            case "sc_processreportcheck":
-        //                Sc_ProcessReportCheck oSc_ProcessReportCheck = new Sc_ProcessReportCheck();
-        //                oSc_ProcessReportCheck.MdiParent = oMain;
-        //                oSc_ProcessReportCheck.ModCaption = gnmc;
-        //                oSc_ProcessReportCheck.Show();
-        //                oMainForm.AddTabPage(oSc_ProcessReportCheck);
-        //                break;
-        //            case "sc_processreportdel":
-        //                Sc_ProcessReportDel oSc_ProcessReportDel = new Sc_ProcessReportDel();
-        //                oSc_ProcessReportDel.MdiParent = oMain;
-        //                oSc_ProcessReportDel.ModCaption = gnmc;
-        //                oSc_ProcessReportDel.Show();
-        //                oMainForm.AddTabPage(oSc_ProcessReportDel);
-        //                break;
-        //            case "sc_processreportlist":
-        //                Sc_ProcessReportList oSc_ProcessReportList = new Sc_ProcessReportList();
-        //                oSc_ProcessReportList.MdiParent = oMain;
-        //                oSc_ProcessReportList.ModCaption = gnmc;
-        //                oSc_ProcessReportList.Show();
-        //                oMainForm.AddTabPage(oSc_ProcessReportList);
-        //                break;
-        //            case "jit_calljinjibill":
-        //                //
-        //                JIT_CallJinJiBill oJIT_CallJinJiBill = new JIT_CallJinJiBill();
-        //                oJIT_CallJinJiBill.BillStatus = Pub_Class.ClsPub.Enum_BillStatus.BillStatus_AddNew;
-        //                oJIT_CallJinJiBill.ShowDialog();
-        //                break;
-        //            case "jit_callgoodsbill":
-        //                //
-        //                JIT_CallGoodsBill oJIT_CallGoodsBill = new JIT_CallGoodsBill();
-        //                oJIT_CallGoodsBill.BillStatus = Pub_Class.ClsPub.Enum_BillStatus.BillStatus_AddNew;
-        //                oJIT_CallGoodsBill.ShowDialog();
-        //                break;
-        //            case "jit_callflgoodsbill":
-        //                //
-        //                JIT_CallFLGoodsBill oJIT_CallFLGoodsBill = new JIT_CallFLGoodsBill();
-        //                oJIT_CallFLGoodsBill.BillStatus = Pub_Class.ClsPub.Enum_BillStatus.BillStatus_AddNew;
-        //                oJIT_CallFLGoodsBill.ShowDialog();
-        //                break;
-        //            case "jit_complementgoodslist":
-        //                //
-        //                JIT_ComplementGoodsList oJIT_ComplementGoodsList = new JIT_ComplementGoodsList();
-        //                oJIT_ComplementGoodsList.BillStatus = Pub_Class.ClsPub.Enum_BillStatus.BillStatus_AddNew;
-        //                oJIT_ComplementGoodsList.ShowDialog();
-        //                break;
-        //            case "jit_complementgoodsbill":
-        //                //
-        //                JIT_ComplementGoodsBill oJIT_ComplementGoodsBill = new JIT_ComplementGoodsBill();
-        //                oJIT_ComplementGoodsBill.MdiParent = oMain;
-        //                oJIT_ComplementGoodsBill.ModCaption = gnmc;
-        //                oJIT_ComplementGoodsBill.Show();
-        //                oMainForm.AddTabPage(oJIT_ComplementGoodsBill);
-        //                break;
-        //            case "jit_complementbfredgoodslist":
-        //                //
-        //                JIT_ComplementBFRedGoodsList oJIT_ComplementBFRedGoodsList = new JIT_ComplementBFRedGoodsList();
-        //                oJIT_ComplementBFRedGoodsList.BillStatus = Pub_Class.ClsPub.Enum_BillStatus.BillStatus_AddNew;
-        //                oJIT_ComplementBFRedGoodsList.ShowDialog();
-        //                break;
-        //            case "jit_complementbfredgoodsbill":
-        //                //
-        //                JIT_ComplementBFRedGoodsBill oJIT_ComplementBFRedGoodsBill = new JIT_ComplementBFRedGoodsBill();
-        //                oJIT_ComplementBFRedGoodsBill.MdiParent = oMain;
-        //                oJIT_ComplementBFRedGoodsBill.ModCaption = gnmc;
-        //                oJIT_ComplementBFRedGoodsBill.Show();
-        //                oMainForm.AddTabPage(oJIT_ComplementBFRedGoodsBill);
-        //                break;
-        //            case "jit_complementylredgoodslist":
-        //                //
-        //                JIT_ComplementYLRedGoodsList oJIT_ComplementYLRedGoodsList = new JIT_ComplementYLRedGoodsList();
-        //                oJIT_ComplementYLRedGoodsList.BillStatus = Pub_Class.ClsPub.Enum_BillStatus.BillStatus_AddNew;
-        //                oJIT_ComplementYLRedGoodsList.ShowDialog();
-        //                break;
-        //            case "jit_complementylredgoodsbill":
-        //                //
-        //                JIT_ComplementYLRedGoodsBill oJIT_ComplementYLRedGoodsBill = new JIT_ComplementYLRedGoodsBill();
-        //                oJIT_ComplementYLRedGoodsBill.MdiParent = oMain;
-        //                oJIT_ComplementYLRedGoodsBill.ModCaption = gnmc;
-        //                oJIT_ComplementYLRedGoodsBill.Show();
-        //                oMainForm.AddTabPage(oJIT_ComplementYLRedGoodsBill);
-        //                break;
-        //            case "jit_complementgoodbill":
-        //                //
-        //                JIT_ComplementGoodBill oJIT_ComplementGoodBill = new JIT_ComplementGoodBill();
-        //                oJIT_ComplementGoodBill.MdiParent = oMain;
-        //                oJIT_ComplementGoodBill.ModCaption = gnmc;
-        //                oJIT_ComplementGoodBill.Show();
-        //                oMainForm.AddTabPage(oJIT_ComplementGoodBill);
-        //                break;
-        //            case "jit_complementgoodlist":
-        //                //
-        //                JIT_ComplementGoodList oJIT_ComplementGoodList = new JIT_ComplementGoodList();
-        //                oJIT_ComplementGoodList.MdiParent = oMain;
-        //                oJIT_ComplementGoodList.ModCaption = gnmc;
-        //                oJIT_ComplementGoodList.Show();
-        //                oMainForm.AddTabPage(oJIT_ComplementGoodList);
-        //                break;
-
-        //            case "sc_planbill":
-        //                //
-        //                Sc_PlanBill oSc_PlanBill = new Sc_PlanBill();
-        //                oSc_PlanBill.BillStatus = Pub_Class.ClsPub.Enum_BillStatus.BillStatus_AddNew;
-        //                oSc_PlanBill.ShowDialog();
-        //                break;
-        //            case "sc_planbilldr":
-        //                //
-        //                Sc_PlanBillDR oSc_PlanBillDR = new Sc_PlanBillDR();
-        //                oSc_PlanBillDR.MdiParent = oMain;
-        //                oSc_PlanBillDR.ModCaption = gnmc;
-        //                oSc_PlanBillDR.Show();
-        //                oMainForm.AddTabPage(oSc_PlanBillDR);
-        //                break;
-        //            default:
-        //                break;
-        //        }
-        //    }
-        //    catch (Exception e)
-        //    {
-        //        MessageBox.Show(e.Message);
-        //    }
-        //}
-        //#endregion
+        }
+
+
+        #region 车间管理
+        public void Zxxymk_CJGL(string gnsy, string gnmc, Form oMain)
+        {
+            ////
+            MDIMain oMainForm;
+            oMainForm = (MDIMain)oMain;
+            ////
+            if (gnsy.Length == 0)
+                return;
+            try
+            {
+                switch (gnsy.ToLower())
+                {
+                    case "gy_barcodemain":
+                        Gy_BarCodeMain oGy_BarCodeMain = new Gy_BarCodeMain();
+                        oGy_BarCodeMain.MdiParent = oMain;
+                        oGy_BarCodeMain.ModCaption = gnmc;
+                        oGy_BarCodeMain.Show();
+                        oMainForm.AddTabPage(oGy_BarCodeMain);
+                        break;
+                    case "gy_barcodedetaillist":
+                        Gy_BarCodeDetailList oGy_BarCodeDetailList = new Gy_BarCodeDetailList();
+                        oGy_BarCodeDetailList.MdiParent = oMain;
+                        oGy_BarCodeDetailList.ModCaption = gnmc;
+                        oGy_BarCodeDetailList.Show();
+                        oMainForm.AddTabPage(oGy_BarCodeDetailList);
+                        break;
+
+                    //case "sc_processreport":
+                    //    Sc_ProcessReport oSc_ProcessReport = new Sc_ProcessReport();
+                    //    oSc_ProcessReport.MdiParent = oMain;
+                    //    oSc_ProcessReport.ModCaption = gnmc;
+                    //    oSc_ProcessReport.Show();
+                    //    oMainForm.AddTabPage(oSc_ProcessReport);
+                    //    break;
+                    //case "sc_processreportcheck":
+                    //    Sc_ProcessReportCheck oSc_ProcessReportCheck = new Sc_ProcessReportCheck();
+                    //    oSc_ProcessReportCheck.MdiParent = oMain;
+                    //    oSc_ProcessReportCheck.ModCaption = gnmc;
+                    //    oSc_ProcessReportCheck.Show();
+                    //    oMainForm.AddTabPage(oSc_ProcessReportCheck);
+                    //    break;
+                    //case "sc_processreportdel":
+                    //    Sc_ProcessReportDel oSc_ProcessReportDel = new Sc_ProcessReportDel();
+                    //    oSc_ProcessReportDel.MdiParent = oMain;
+                    //    oSc_ProcessReportDel.ModCaption = gnmc;
+                    //    oSc_ProcessReportDel.Show();
+                    //    oMainForm.AddTabPage(oSc_ProcessReportDel);
+                    //    break;
+                    //case "sc_processreportlist":
+                    //    Sc_ProcessReportList oSc_ProcessReportList = new Sc_ProcessReportList();
+                    //    oSc_ProcessReportList.MdiParent = oMain;
+                    //    oSc_ProcessReportList.ModCaption = gnmc;
+                    //    oSc_ProcessReportList.Show();
+                    //    oMainForm.AddTabPage(oSc_ProcessReportList);
+                    //    break;
+                    //case "jit_calljinjibill":
+                    //    //
+                    //    JIT_CallJinJiBill oJIT_CallJinJiBill = new JIT_CallJinJiBill();
+                    //    oJIT_CallJinJiBill.BillStatus = Pub_Class.ClsPub.Enum_BillStatus.BillStatus_AddNew;
+                    //    oJIT_CallJinJiBill.ShowDialog();
+                    //    break;
+                    //case "jit_callgoodsbill":
+                    //    //
+                    //    JIT_CallGoodsBill oJIT_CallGoodsBill = new JIT_CallGoodsBill();
+                    //    oJIT_CallGoodsBill.BillStatus = Pub_Class.ClsPub.Enum_BillStatus.BillStatus_AddNew;
+                    //    oJIT_CallGoodsBill.ShowDialog();
+                    //    break;
+                    //case "jit_callflgoodsbill":
+                    //    //
+                    //    JIT_CallFLGoodsBill oJIT_CallFLGoodsBill = new JIT_CallFLGoodsBill();
+                    //    oJIT_CallFLGoodsBill.BillStatus = Pub_Class.ClsPub.Enum_BillStatus.BillStatus_AddNew;
+                    //    oJIT_CallFLGoodsBill.ShowDialog();
+                    //    break;
+                    //case "jit_complementgoodslist":
+                    //    //
+                    //    JIT_ComplementGoodsList oJIT_ComplementGoodsList = new JIT_ComplementGoodsList();
+                    //    oJIT_ComplementGoodsList.BillStatus = Pub_Class.ClsPub.Enum_BillStatus.BillStatus_AddNew;
+                    //    oJIT_ComplementGoodsList.ShowDialog();
+                    //    break;
+                    //case "jit_complementgoodsbill":
+                    //    //
+                    //    JIT_ComplementGoodsBill oJIT_ComplementGoodsBill = new JIT_ComplementGoodsBill();
+                    //    oJIT_ComplementGoodsBill.MdiParent = oMain;
+                    //    oJIT_ComplementGoodsBill.ModCaption = gnmc;
+                    //    oJIT_ComplementGoodsBill.Show();
+                    //    oMainForm.AddTabPage(oJIT_ComplementGoodsBill);
+                    //    break;
+                    //case "jit_complementbfredgoodslist":
+                    //    //
+                    //    JIT_ComplementBFRedGoodsList oJIT_ComplementBFRedGoodsList = new JIT_ComplementBFRedGoodsList();
+                    //    oJIT_ComplementBFRedGoodsList.BillStatus = Pub_Class.ClsPub.Enum_BillStatus.BillStatus_AddNew;
+                    //    oJIT_ComplementBFRedGoodsList.ShowDialog();
+                    //    break;
+                    //case "jit_complementbfredgoodsbill":
+                    //    //
+                    //    JIT_ComplementBFRedGoodsBill oJIT_ComplementBFRedGoodsBill = new JIT_ComplementBFRedGoodsBill();
+                    //    oJIT_ComplementBFRedGoodsBill.MdiParent = oMain;
+                    //    oJIT_ComplementBFRedGoodsBill.ModCaption = gnmc;
+                    //    oJIT_ComplementBFRedGoodsBill.Show();
+                    //    oMainForm.AddTabPage(oJIT_ComplementBFRedGoodsBill);
+                    //    break;
+                    //case "jit_complementylredgoodslist":
+                    //    //
+                    //    JIT_ComplementYLRedGoodsList oJIT_ComplementYLRedGoodsList = new JIT_ComplementYLRedGoodsList();
+                    //    oJIT_ComplementYLRedGoodsList.BillStatus = Pub_Class.ClsPub.Enum_BillStatus.BillStatus_AddNew;
+                    //    oJIT_ComplementYLRedGoodsList.ShowDialog();
+                    //    break;
+                    //case "jit_complementylredgoodsbill":
+                    //    //
+                    //    JIT_ComplementYLRedGoodsBill oJIT_ComplementYLRedGoodsBill = new JIT_ComplementYLRedGoodsBill();
+                    //    oJIT_ComplementYLRedGoodsBill.MdiParent = oMain;
+                    //    oJIT_ComplementYLRedGoodsBill.ModCaption = gnmc;
+                    //    oJIT_ComplementYLRedGoodsBill.Show();
+                    //    oMainForm.AddTabPage(oJIT_ComplementYLRedGoodsBill);
+                    //    break;
+                    //case "jit_complementgoodbill":
+                    //    //
+                    //    JIT_ComplementGoodBill oJIT_ComplementGoodBill = new JIT_ComplementGoodBill();
+                    //    oJIT_ComplementGoodBill.MdiParent = oMain;
+                    //    oJIT_ComplementGoodBill.ModCaption = gnmc;
+                    //    oJIT_ComplementGoodBill.Show();
+                    //    oMainForm.AddTabPage(oJIT_ComplementGoodBill);
+                    //    break;
+                    //case "jit_complementgoodlist":
+                    //    //
+                    //    JIT_ComplementGoodList oJIT_ComplementGoodList = new JIT_ComplementGoodList();
+                    //    oJIT_ComplementGoodList.MdiParent = oMain;
+                    //    oJIT_ComplementGoodList.ModCaption = gnmc;
+                    //    oJIT_ComplementGoodList.Show();
+                    //    oMainForm.AddTabPage(oJIT_ComplementGoodList);
+                    //    break;
+
+                    //case "sc_planbill":
+                    //    //
+                    //    Sc_PlanBill oSc_PlanBill = new Sc_PlanBill();
+                    //    oSc_PlanBill.BillStatus = Pub_Class.ClsPub.Enum_BillStatus.BillStatus_AddNew;
+                    //    oSc_PlanBill.ShowDialog();
+                    //    break;
+                    //case "sc_planbilldr":
+                    //    //
+                    //    Sc_PlanBillDR oSc_PlanBillDR = new Sc_PlanBillDR();
+                    //    oSc_PlanBillDR.MdiParent = oMain;
+                    //    oSc_PlanBillDR.ModCaption = gnmc;
+                    //    oSc_PlanBillDR.Show();
+                    //    oMainForm.AddTabPage(oSc_PlanBillDR);
+                    //    break;
+                    default:
+                        break;
+                }
+            }
+            catch (Exception e)
+            {
+                MessageBox.Show(e.Message);
+            }
+        }
+        #endregion
 
 
         //#region 模具管理
@@ -2036,7 +2050,22 @@
         //                oSc_ICMOBill.BillStatus = DBUtility.ClsPub.Enum_BillStatus.BillStatus_AddNew;
         //                oSc_ICMOBill.ModCaption = gnmc;
         //                oSc_ICMOBill.ShowDialog();
-        //                break;
+        //                break;
+                    case "gy_barcodemain":
+                        Gy_BarCodeMain oGy_BarCodeMain = new Gy_BarCodeMain();
+                        oGy_BarCodeMain.MdiParent = oMain;
+                        oGy_BarCodeMain.ModCaption = gnmc;
+                        oGy_BarCodeMain.Show();
+                        oMainForm.AddTabPage(oGy_BarCodeMain);
+                        break;
+                    case "gy_barcodedetaillist":
+                        Gy_BarCodeDetailList oGy_BarCodeDetailList = new Gy_BarCodeDetailList();
+                        oGy_BarCodeDetailList.MdiParent = oMain;
+                        oGy_BarCodeDetailList.ModCaption = gnmc;
+                        oGy_BarCodeDetailList.Show();
+                        oMainForm.AddTabPage(oGy_BarCodeDetailList);
+                        break;
+
                     case "sc_icmobilllist":
                         Sc_ICMOBillList oSc_ICMOBillList = new Sc_ICMOBillList();
                         oSc_ICMOBillList.MdiParent = oMain;

--
Gitblit v1.9.1