| NETSCM/ClsShowMod.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| SCM/SCM.csproj | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| SCM/公用类/ClsPub1.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| SCM/单据资料/Sc_PackUnionCarryUpBillList.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| SCM/单据资料/Sc_PackUnionCarryUpBillList.designer.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| SCM/单据资料/Sc_PackUnionCarryUpBillList.resx | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| SCM/条码打印/Gy_BarCodeBill.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
NETSCM/ClsShowMod.cs
@@ -2072,246 +2072,253 @@ oSc_DoorOutCheckBillList.Show(); oMainForm.AddTabPage(oSc_DoorOutCheckBillList); break; // case "sc_mouldprodoutbill": // // // Sc_MouldProdOutBill oSc_MouldProdOutBill = new Sc_MouldProdOutBill(); // oSc_MouldProdOutBill.ShowDialog(); // break; // case "sc_mouldprodoutbilllist": // //æé // Sc_MouldProdOutBillList oSc_MouldProdOutBillList = new Sc_MouldProdOutBillList(); // oSc_MouldProdOutBillList.MdiParent = oMain; // oSc_MouldProdOutBillList.Show(); // oMainForm.AddTabPage(oSc_MouldProdOutBillList); // break; // case "sc_mouldprodbackbill": // // // Sc_MouldProdBackBill oSc_MouldProdBackBill = new Sc_MouldProdBackBill(); // oSc_MouldProdBackBill.ShowDialog(); // break; // case "sc_mouldprodbackbilllist": // //æé // Sc_MouldProdBackBillList oSc_MouldProdBackBillList = new Sc_MouldProdBackBillList(); // oSc_MouldProdBackBillList.MdiParent = oMain; // oSc_MouldProdBackBillList.Show(); // oMainForm.AddTabPage(oSc_MouldProdBackBillList); // break; // case "sc_mouldprodinbill": // // // Sc_MouldProdInBill oSc_MouldProdInBill = new Sc_MouldProdInBill(); // oSc_MouldProdInBill.ShowDialog(); // break; // case "sc_mouldprodinbilllist": // //æé // Sc_MouldProdInBillList oSc_MouldProdInBillList = new Sc_MouldProdInBillList(); // oSc_MouldProdInBillList.MdiParent = oMain; // oSc_MouldProdInBillList.Show(); // oMainForm.AddTabPage(oSc_MouldProdInBillList); // break; // case "sc_mouldentrustoutplanbill": // // // Sc_MouldEntrustOutPlanBill oSc_MouldEntrustOutPlanBill = new Sc_MouldEntrustOutPlanBill(); // oSc_MouldEntrustOutPlanBill.ShowDialog(); // break; // case "sc_mouldentrustoutplanbilllist": // //æé // Sc_MouldEntrustOutPlanBillList oSc_MouldEntrustOutPlanBillList = new Sc_MouldEntrustOutPlanBillList(); // oSc_MouldEntrustOutPlanBillList.MdiParent = oMain; // oSc_MouldEntrustOutPlanBillList.Show(); // oMainForm.AddTabPage(oSc_MouldEntrustOutPlanBillList); // break; // case "sc_mouldplanbill": // // // Sc_MouldPlanBill oSc_MouldPlanBill = new Sc_MouldPlanBill(); // oSc_MouldPlanBill.ShowDialog(); // break; // case "sc_mouldplanbilllist": // //æé // Sc_MouldPlanBillList oSc_MouldPlanBillList = new Sc_MouldPlanBillList(); // oSc_MouldPlanBillList.MdiParent = oMain; // oSc_MouldPlanBillList.Show(); // oMainForm.AddTabPage(oSc_MouldPlanBillList); // break; // case "sc_moulddesignplanbill": // // // Sc_MouldDesignPlanBill oSc_MouldDesignPlanBill = new Sc_MouldDesignPlanBill(); // oSc_MouldDesignPlanBill.ShowDialog(); // break; // case "sc_moulddesignplanbilllist": // //æé // Sc_MouldDesignPlanBillList oSc_MouldDesignPlanBillList = new Sc_MouldDesignPlanBillList(); // oSc_MouldDesignPlanBillList.MdiParent = oMain; // oSc_MouldDesignPlanBillList.Show(); // oMainForm.AddTabPage(oSc_MouldDesignPlanBillList); // break; // case "sc_moulddesignrequestbill": // // // Sc_MouldDesignRequestBill oSc_MouldDesignRequestBill = new Sc_MouldDesignRequestBill(); // oSc_MouldDesignRequestBill.ShowDialog(); // break; // case "sc_moulddesignrequestbilllist": // //æé // Sc_MouldDesignRequestBillList oSc_MouldDesignRequestBillList = new Sc_MouldDesignRequestBillList(); // oSc_MouldDesignRequestBillList.MdiParent = oMain; // oSc_MouldDesignRequestBillList.Show(); // oMainForm.AddTabPage(oSc_MouldDesignRequestBillList); // break; // case "sc_mouldcostmoneybill": // // // Sc_MouldCostMoneyBill oSc_MouldCostMoneyBill = new Sc_MouldCostMoneyBill(); // oSc_MouldCostMoneyBill.ShowDialog(); // break; // case "sc_mouldcostmoneybilllist": // //æé // Sc_MouldCostMoneyBillList oSc_MouldCostMoneyBillList = new Sc_MouldCostMoneyBillList(); // oSc_MouldCostMoneyBillList.MdiParent = oMain; // oSc_MouldCostMoneyBillList.Show(); // oMainForm.AddTabPage(oSc_MouldCostMoneyBillList); // break; case "sc_packunioncarryupbilllist": Sc_PackUnionCarryUpBillList oSc_PackUnionCarryUpBillList = new Sc_PackUnionCarryUpBillList(); oSc_PackUnionCarryUpBillList.MdiParent = oMain; oSc_PackUnionCarryUpBillList.ModCaption = gnmc; oSc_PackUnionCarryUpBillList.Show(); oMainForm.AddTabPage(oSc_PackUnionCarryUpBillList); break; // case "sc_mouldprodoutbill": // // // Sc_MouldProdOutBill oSc_MouldProdOutBill = new Sc_MouldProdOutBill(); // oSc_MouldProdOutBill.ShowDialog(); // break; // case "sc_mouldprodoutbilllist": // //æé // Sc_MouldProdOutBillList oSc_MouldProdOutBillList = new Sc_MouldProdOutBillList(); // oSc_MouldProdOutBillList.MdiParent = oMain; // oSc_MouldProdOutBillList.Show(); // oMainForm.AddTabPage(oSc_MouldProdOutBillList); // break; // case "sc_mouldprodbackbill": // // // Sc_MouldProdBackBill oSc_MouldProdBackBill = new Sc_MouldProdBackBill(); // oSc_MouldProdBackBill.ShowDialog(); // break; // case "sc_mouldprodbackbilllist": // //æé // Sc_MouldProdBackBillList oSc_MouldProdBackBillList = new Sc_MouldProdBackBillList(); // oSc_MouldProdBackBillList.MdiParent = oMain; // oSc_MouldProdBackBillList.Show(); // oMainForm.AddTabPage(oSc_MouldProdBackBillList); // break; // case "sc_mouldprodinbill": // // // Sc_MouldProdInBill oSc_MouldProdInBill = new Sc_MouldProdInBill(); // oSc_MouldProdInBill.ShowDialog(); // break; // case "sc_mouldprodinbilllist": // //æé // Sc_MouldProdInBillList oSc_MouldProdInBillList = new Sc_MouldProdInBillList(); // oSc_MouldProdInBillList.MdiParent = oMain; // oSc_MouldProdInBillList.Show(); // oMainForm.AddTabPage(oSc_MouldProdInBillList); // break; // case "sc_mouldentrustoutplanbill": // // // Sc_MouldEntrustOutPlanBill oSc_MouldEntrustOutPlanBill = new Sc_MouldEntrustOutPlanBill(); // oSc_MouldEntrustOutPlanBill.ShowDialog(); // break; // case "sc_mouldentrustoutplanbilllist": // //æé // Sc_MouldEntrustOutPlanBillList oSc_MouldEntrustOutPlanBillList = new Sc_MouldEntrustOutPlanBillList(); // oSc_MouldEntrustOutPlanBillList.MdiParent = oMain; // oSc_MouldEntrustOutPlanBillList.Show(); // oMainForm.AddTabPage(oSc_MouldEntrustOutPlanBillList); // break; // case "sc_mouldplanbill": // // // Sc_MouldPlanBill oSc_MouldPlanBill = new Sc_MouldPlanBill(); // oSc_MouldPlanBill.ShowDialog(); // break; // case "sc_mouldplanbilllist": // //æé // Sc_MouldPlanBillList oSc_MouldPlanBillList = new Sc_MouldPlanBillList(); // oSc_MouldPlanBillList.MdiParent = oMain; // oSc_MouldPlanBillList.Show(); // oMainForm.AddTabPage(oSc_MouldPlanBillList); // break; // case "sc_moulddesignplanbill": // // // Sc_MouldDesignPlanBill oSc_MouldDesignPlanBill = new Sc_MouldDesignPlanBill(); // oSc_MouldDesignPlanBill.ShowDialog(); // break; // case "sc_moulddesignplanbilllist": // //æé // Sc_MouldDesignPlanBillList oSc_MouldDesignPlanBillList = new Sc_MouldDesignPlanBillList(); // oSc_MouldDesignPlanBillList.MdiParent = oMain; // oSc_MouldDesignPlanBillList.Show(); // oMainForm.AddTabPage(oSc_MouldDesignPlanBillList); // break; // case "sc_moulddesignrequestbill": // // // Sc_MouldDesignRequestBill oSc_MouldDesignRequestBill = new Sc_MouldDesignRequestBill(); // oSc_MouldDesignRequestBill.ShowDialog(); // break; // case "sc_moulddesignrequestbilllist": // //æé // Sc_MouldDesignRequestBillList oSc_MouldDesignRequestBillList = new Sc_MouldDesignRequestBillList(); // oSc_MouldDesignRequestBillList.MdiParent = oMain; // oSc_MouldDesignRequestBillList.Show(); // oMainForm.AddTabPage(oSc_MouldDesignRequestBillList); // break; // case "sc_mouldcostmoneybill": // // // Sc_MouldCostMoneyBill oSc_MouldCostMoneyBill = new Sc_MouldCostMoneyBill(); // oSc_MouldCostMoneyBill.ShowDialog(); // break; // case "sc_mouldcostmoneybilllist": // //æé // Sc_MouldCostMoneyBillList oSc_MouldCostMoneyBillList = new Sc_MouldCostMoneyBillList(); // oSc_MouldCostMoneyBillList.MdiParent = oMain; // oSc_MouldCostMoneyBillList.Show(); // oMainForm.AddTabPage(oSc_MouldCostMoneyBillList); // break; // case "sc_mouldreportbill": // // // Sc_MouldReportBill oSc_MouldReportBill = new Sc_MouldReportBill(); // oSc_MouldReportBill.ShowDialog(); // break; // case "sc_mouldreportbilllist": // //æé // Sc_MouldReportBillList oSc_MouldReportBillList = new Sc_MouldReportBillList(); // oSc_MouldReportBillList.MdiParent = oMain; // oSc_MouldReportBillList.Show(); // oMainForm.AddTabPage(oSc_MouldReportBillList); // break; // case "sc_mouldentrustoutbill": // // // Sc_MouldEntrustOutBill oSc_MouldEntrustOutBill = new Sc_MouldEntrustOutBill(); // oSc_MouldEntrustOutBill.ShowDialog(); // break; // case "sc_mouldentrustoutbilllist": // //æé // Sc_MouldEntrustOutBillList oSc_MouldEntrustOutBillList = new Sc_MouldEntrustOutBillList(); // oSc_MouldEntrustOutBillList.MdiParent = oMain; // oSc_MouldEntrustOutBillList.Show(); // oMainForm.AddTabPage(oSc_MouldEntrustOutBillList); // break; // case "sb_mouldrepairworkbill": // // // Sb_MouldRepairWorkBill oSb_MouldRepairWorkBill = new Sb_MouldRepairWorkBill(); // oSb_MouldRepairWorkBill.ShowDialog(); // break; // case "sb_mouldrepairworkbilllist": // //æé // Sb_MouldRepairWorkBillList oSb_MouldRepairWorkBillList = new Sb_MouldRepairWorkBillList(); // oSb_MouldRepairWorkBillList.MdiParent = oMain; // oSb_MouldRepairWorkBillList.Show(); // oMainForm.AddTabPage(oSb_MouldRepairWorkBillList); // break; // case "sc_brfhkb": // Sc_BRFHKB oSc_BRFHKB = new Sc_BRFHKB(); // oSc_BRFHKB.ShowDialog(); // break; // case "sc_mouldreportbill": // // // Sc_MouldReportBill oSc_MouldReportBill = new Sc_MouldReportBill(); // oSc_MouldReportBill.ShowDialog(); // break; // case "sc_mouldreportbilllist": // //æé // Sc_MouldReportBillList oSc_MouldReportBillList = new Sc_MouldReportBillList(); // oSc_MouldReportBillList.MdiParent = oMain; // oSc_MouldReportBillList.Show(); // oMainForm.AddTabPage(oSc_MouldReportBillList); // break; // case "sc_mouldentrustoutbill": // // // Sc_MouldEntrustOutBill oSc_MouldEntrustOutBill = new Sc_MouldEntrustOutBill(); // oSc_MouldEntrustOutBill.ShowDialog(); // break; // case "sc_mouldentrustoutbilllist": // //æé // Sc_MouldEntrustOutBillList oSc_MouldEntrustOutBillList = new Sc_MouldEntrustOutBillList(); // oSc_MouldEntrustOutBillList.MdiParent = oMain; // oSc_MouldEntrustOutBillList.Show(); // oMainForm.AddTabPage(oSc_MouldEntrustOutBillList); // break; // case "sb_mouldrepairworkbill": // // // Sb_MouldRepairWorkBill oSb_MouldRepairWorkBill = new Sb_MouldRepairWorkBill(); // oSb_MouldRepairWorkBill.ShowDialog(); // break; // case "sb_mouldrepairworkbilllist": // //æé // Sb_MouldRepairWorkBillList oSb_MouldRepairWorkBillList = new Sb_MouldRepairWorkBillList(); // oSb_MouldRepairWorkBillList.MdiParent = oMain; // oSb_MouldRepairWorkBillList.Show(); // oMainForm.AddTabPage(oSb_MouldRepairWorkBillList); // break; // case "sc_brfhkb": // Sc_BRFHKB oSc_BRFHKB = new Sc_BRFHKB(); // oSc_BRFHKB.ShowDialog(); // break; // case "sc_brslkb": // Sc_BRSLKB oSc_BRSLKB = new Sc_BRSLKB(); // oSc_BRSLKB.ShowDialog(); // break; // case "sc_bjqlfxb": // Sc_BJQLFXB oSc_BJQLFXB = new Sc_BJQLFXB(); // oSc_BJQLFXB.ShowDialog(); // break; // case "sc_hzqlcgkb": // Sc_HZQLCGKB oSc_HZQLCGKB = new Sc_HZQLCGKB(); // oSc_HZQLCGKB.ShowDialog(); // break; // case "sc_brslkb": // Sc_BRSLKB oSc_BRSLKB = new Sc_BRSLKB(); // oSc_BRSLKB.ShowDialog(); // break; // case "sc_bjqlfxb": // Sc_BJQLFXB oSc_BJQLFXB = new Sc_BJQLFXB(); // oSc_BJQLFXB.ShowDialog(); // break; // case "sc_hzqlcgkb": // Sc_HZQLCGKB oSc_HZQLCGKB = new Sc_HZQLCGKB(); // oSc_HZQLCGKB.ShowDialog(); // break; // case "sc_processplanchangelist": // //æé // Sc_ProcessPlanChangeList oSc_ProcessPlanChangeList = new Sc_ProcessPlanChangeList(); // oSc_ProcessPlanChangeList.MdiParent = oMain; // oSc_ProcessPlanChangeList.Show(); // oMainForm.AddTabPage(oSc_ProcessPlanChangeList); // break; // case "sc_processplanchangesec": // // // Sc_ProcessPlanChangeSec oSc_ProcessPlanChangeSec = new Sc_ProcessPlanChangeSec(); // oSc_ProcessPlanChangeSec.ShowDialog(); // break; // case "sc_processplan": // Sc_ProcessPlan oSc_ProcessPlan = new Sc_ProcessPlan(); // oSc_ProcessPlan.BillStatus = DBUtility.ClsPub.Enum_BillStatus.BillStatus_AddNew; // oSc_ProcessPlan.ModCaption = gnmc; // oSc_ProcessPlan.ShowDialog(); // break; // case "sc_processplanlist": // Sc_ProcessPlanList oSc_ProcessPlanList = new Sc_ProcessPlanList(); // oSc_ProcessPlanList.MdiParent = oMain; // oSc_ProcessPlanList.ModCaption = gnmc; // oSc_ProcessPlanList.Show(); // oMainForm.AddTabPage(oSc_ProcessPlanList); // break; // case "sc_processreport": // Sc_ProcessReport oSc_ProcessReport = new Sc_ProcessReport(); // oSc_ProcessReport.BillStatus = DBUtility.ClsPub.Enum_BillStatus.BillStatus_AddNew; // oSc_ProcessReport.ModCaption = gnmc; // oSc_ProcessReport.ShowDialog(); // 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 "sc_assemblybilllist": // //æé // Sc_AssemblyBillList oSc_AssemblyBillList = new Sc_AssemblyBillList(); // oSc_AssemblyBillList.MdiParent = oMain; // oSc_AssemblyBillList.Show(); // oMainForm.AddTabPage(oSc_AssemblyBillList); // break; // case "sc_assemblybill": // // // Sc_AssemblyBill oSc_AssemblyBill = new Sc_AssemblyBill(); // oSc_AssemblyBill.BillStatus = Pub_Class.ClsPub.Enum_BillStatus.BillStatus_AddNew; // oSc_AssemblyBill.ShowDialog(); // break; // case "sc_processbackplan": // Sc_ProcessBackPlan oSc_ProcessBackPlan = new Sc_ProcessBackPlan(); // oSc_ProcessBackPlan.BillStatus = DBUtility.ClsPub.Enum_BillStatus.BillStatus_AddNew; // oSc_ProcessBackPlan.ShowDialog(); // break; // case "sc_processbackplanlist": // Sc_ProcessBackPlanList oSc_ProcessBackPlanList = new Sc_ProcessBackPlanList(); // oSc_ProcessBackPlanList.MdiParent = oMain; // oSc_ProcessBackPlanList.Show(); // oMainForm.AddTabPage(oSc_ProcessBackPlanList); // break; // //======================æ¥è¡¨ // case "sc_monthsource": // //æé // Sc_MonthSource oSc_MonthSource = new Sc_MonthSource(); // oSc_MonthSource.MdiParent = oMain; // oSc_MonthSource.Show(); // oMainForm.AddTabPage(oSc_MonthSource); // break; // case "sc_workprocreport": // //Sc_WorkProcReport oSc_WorkProcReport = new Sc_WorkProcReport(); // //oSc_WorkProcReport.MdiParent = oMain; // //oSc_WorkProcReport.ModCaption = gnmc; // //oSc_WorkProcReport.Show(); // break; // case "sc_workbillreport": // //Sc_WorkBillReport oSc_WorkBillReport = new Sc_WorkBillReport(); // //oSc_WorkBillReport.MdiParent = oMain; // //oSc_WorkBillReport.ModCaption = gnmc; // //oSc_WorkBillReport.Show(); // break; // case "sc_procprogressreport": // Sc_ProcProgressReport oSc_ProcProgressReport = new Sc_ProcProgressReport(); // oSc_ProcProgressReport.MdiParent = oMain; // oSc_ProcProgressReport.ModCaption = gnmc; // oSc_ProcProgressReport.Show(); // oMainForm.AddTabPage(oSc_ProcProgressReport); // break; // case "sc_processplanchangelist": // //æé // Sc_ProcessPlanChangeList oSc_ProcessPlanChangeList = new Sc_ProcessPlanChangeList(); // oSc_ProcessPlanChangeList.MdiParent = oMain; // oSc_ProcessPlanChangeList.Show(); // oMainForm.AddTabPage(oSc_ProcessPlanChangeList); // break; // case "sc_processplanchangesec": // // // Sc_ProcessPlanChangeSec oSc_ProcessPlanChangeSec = new Sc_ProcessPlanChangeSec(); // oSc_ProcessPlanChangeSec.ShowDialog(); // break; // case "sc_processplan": // Sc_ProcessPlan oSc_ProcessPlan = new Sc_ProcessPlan(); // oSc_ProcessPlan.BillStatus = DBUtility.ClsPub.Enum_BillStatus.BillStatus_AddNew; // oSc_ProcessPlan.ModCaption = gnmc; // oSc_ProcessPlan.ShowDialog(); // break; // case "sc_processplanlist": // Sc_ProcessPlanList oSc_ProcessPlanList = new Sc_ProcessPlanList(); // oSc_ProcessPlanList.MdiParent = oMain; // oSc_ProcessPlanList.ModCaption = gnmc; // oSc_ProcessPlanList.Show(); // oMainForm.AddTabPage(oSc_ProcessPlanList); // break; // case "sc_processreport": // Sc_ProcessReport oSc_ProcessReport = new Sc_ProcessReport(); // oSc_ProcessReport.BillStatus = DBUtility.ClsPub.Enum_BillStatus.BillStatus_AddNew; // oSc_ProcessReport.ModCaption = gnmc; // oSc_ProcessReport.ShowDialog(); // 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 "sc_assemblybilllist": // //æé // Sc_AssemblyBillList oSc_AssemblyBillList = new Sc_AssemblyBillList(); // oSc_AssemblyBillList.MdiParent = oMain; // oSc_AssemblyBillList.Show(); // oMainForm.AddTabPage(oSc_AssemblyBillList); // break; // case "sc_assemblybill": // // // Sc_AssemblyBill oSc_AssemblyBill = new Sc_AssemblyBill(); // oSc_AssemblyBill.BillStatus = Pub_Class.ClsPub.Enum_BillStatus.BillStatus_AddNew; // oSc_AssemblyBill.ShowDialog(); // break; // case "sc_processbackplan": // Sc_ProcessBackPlan oSc_ProcessBackPlan = new Sc_ProcessBackPlan(); // oSc_ProcessBackPlan.BillStatus = DBUtility.ClsPub.Enum_BillStatus.BillStatus_AddNew; // oSc_ProcessBackPlan.ShowDialog(); // break; // case "sc_processbackplanlist": // Sc_ProcessBackPlanList oSc_ProcessBackPlanList = new Sc_ProcessBackPlanList(); // oSc_ProcessBackPlanList.MdiParent = oMain; // oSc_ProcessBackPlanList.Show(); // oMainForm.AddTabPage(oSc_ProcessBackPlanList); // break; // //======================æ¥è¡¨ // case "sc_monthsource": // //æé // Sc_MonthSource oSc_MonthSource = new Sc_MonthSource(); // oSc_MonthSource.MdiParent = oMain; // oSc_MonthSource.Show(); // oMainForm.AddTabPage(oSc_MonthSource); // break; // case "sc_workprocreport": // //Sc_WorkProcReport oSc_WorkProcReport = new Sc_WorkProcReport(); // //oSc_WorkProcReport.MdiParent = oMain; // //oSc_WorkProcReport.ModCaption = gnmc; // //oSc_WorkProcReport.Show(); // break; // case "sc_workbillreport": // //Sc_WorkBillReport oSc_WorkBillReport = new Sc_WorkBillReport(); // //oSc_WorkBillReport.MdiParent = oMain; // //oSc_WorkBillReport.ModCaption = gnmc; // //oSc_WorkBillReport.Show(); // break; // case "sc_procprogressreport": // Sc_ProcProgressReport oSc_ProcProgressReport = new Sc_ProcProgressReport(); // oSc_ProcProgressReport.MdiParent = oMain; // oSc_ProcProgressReport.ModCaption = gnmc; // oSc_ProcProgressReport.Show(); // oMainForm.AddTabPage(oSc_ProcProgressReport); // break; default: break; SCM/SCM.csproj
@@ -141,6 +141,12 @@ <Compile Include="å ¬ç¨æ¨¡å\frmHlpBillList_New.designer.cs"> <DependentUpon>frmHlpBillList_New.cs</DependentUpon> </Compile> <Compile Include="åæ®èµæ\Sc_PackUnionCarryUpBillList.cs"> <SubType>Form</SubType> </Compile> <Compile Include="åæ®èµæ\Sc_PackUnionCarryUpBillList.designer.cs"> <DependentUpon>Sc_PackUnionCarryUpBillList.cs</DependentUpon> </Compile> <Compile Include="åæ®èµæ\åºå ¥åºåæ®\Kf_POStockInBillList.cs"> <SubType>Form</SubType> </Compile> @@ -600,6 +606,10 @@ <DependentUpon>frmHlpBillList_New.cs</DependentUpon> <SubType>Designer</SubType> </EmbeddedResource> <EmbeddedResource Include="åæ®èµæ\Sc_PackUnionCarryUpBillList.resx"> <DependentUpon>Sc_PackUnionCarryUpBillList.cs</DependentUpon> <SubType>Designer</SubType> </EmbeddedResource> <EmbeddedResource Include="åæ®èµæ\åºå ¥åºåæ®\Kf_POStockInBillList.resx"> <DependentUpon>Kf_POStockInBillList.cs</DependentUpon> <SubType>Designer</SubType> SCM/¹«ÓÃÀà/ClsPub1.cs
@@ -14,7 +14,7 @@ //public static string WEBSURL = "http://124.70.129.242/WEBS-WMS/WebService1.asmx"; //é çªè¯º //public static string WEBSURL = "http://192.168.1.29/WEBS-WMS/WebService1.asmx"; //å£é¾ å ç½ //public static string WEBSURL = "http://122.227.138.236/WEBS-WMS/WebService1.asmx"; //å£é¾(ä¸ç¨) //public static string WEBSURL = "http://220.189.218.154:8092/WEBS-WMS/WebService1.asmx"; //åç»´å° æ°ä¸é´å± å¤ç½ public static string WEBSURL = "http://220.189.218.154:8092/WEBS-WMS/WebService1.asmx"; //åç»´å° æ°ä¸é´å± å¤ç½ //public static string WEBSURL = "http://192.168.0.178/WEBS-WMS/WebService1.asmx"; //åç»´å° æ°ä¸é´å± å ç½ //public static string WEBSURL = "http://122.227.199.62:5050/LMESWEBS/WebService1.asmx"; //é©çµ å¤ç½JITï¼ä¸ç¨ï¼ //public static string WEBSURL = "http://122.227.199.62:5050/WMSWEBS/WebService1.asmx"; //é©çµ å¤ç½ @@ -22,12 +22,13 @@ //public static string WEBSURL = "http://60.190.50.86:5050/WEBS_CE/WebService1.asmx"; //é£é¾ //public static string WEBSURL = "http://192.192.192.13/WMSWEBS/WebService1.asmx"; //åå //public static string WEBSURL = "http://120.195.29.36:1230/WEBS-WMS/WebService1.asmx"; //æ±èé¾äº¨ public static string WEBSURL = "http://60.191.27.141:8090/WEBS-WMS/WebService1.asmx"; //森楷 //public static string WEBSURL = "http://60.191.27.141:8090/WEBS-WMS/WebService1.asmx"; //森楷 //public static string WEBSURL = "http://192.168.63.195/WEBS-WMS/WebService1.asmx"; //public static string WEBSURL = "http://192.168.2.18/WEBS-WMS/WebService1.asmx"; //å ¬å¸å°å¼æº //public static string WEBSURL = "http://192.168.63.7/WEBS-WMS/WebService1.asmx"; //å ¬å¸å°å¼æº //public static string WEBSURL = "http://192.168.0.107/WEBS-WMS/WebService1.asmx"; //å®¶ //public static string WEBSURL = "http://47.96.97.237/WEBS-WMS/WebService1.asmx"; //å ¬å¸æå¡å¨ //public static string WEBSURL = "http://192.168.0.193/WEBS-WMS/WebService1.asmx"; //åç»´å°(æ¡ç æ°æ®åºè¿ç§»æµè¯) public static long HOrgID = 0; public static string HOrgNumber = ""; public static long HPersonL = 2; // ä»åºäººå为1ï¼è½¦é´äººå为2 SCM/µ¥¾Ý×ÊÁÏ/Sc_PackUnionCarryUpBillList.cs
New file @@ -0,0 +1,428 @@ using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using gregn6Lib; using DBUtility; using System.Threading; using System.IO; namespace SCM { public partial class Sc_PackUnionCarryUpBillList : Form { public Sc_PackUnionCarryUpBillList() { InitializeComponent(); } public frmBillQueryCondition_Base frmCondition; public string ViewName = "h_v_Sc_PackUnionCarryUpBillList"; public string ModCaption = "çäº§è£ ç®±è¿½æº¯åå表"; public const string ModName = "3704"; public const string ModRightName = "Sc_PackUnionCarryUpBill"; public const string ModRightNameDelete = ModRightName + "_Drop"; public string sDlgWhere = ""; //å¤çªä½éå ¥ public int selectRow = 0; Pub_Class.ClsGridListSum oSumGrid = new Pub_Class.ClsGridListSum(); SCM.WMSWeb.WebService1 oWeb = new SCM.WMSWeb.WebService1(); // private void initGrid() { ClsPub1.initGridList(grdMain, this.Name); grdMain.ReadOnly = false; } // private void timer1_Tick(object sender, EventArgs e) { timer1.Enabled = false; initGrid(); Display(); } // private Int32 Fun_GetCol(string sCol) { return DBUtility.Xt_BaseBillFun.Fun_GetCol(sCol, grdMain); } // private void Sc_PackUnionCarryUpBillList_Load(object sender, EventArgs e) { //è®¾ç½®å¨æURL oWeb.Url = SCM.ClsPub1.WEBSURL; // frmCondition = new frmBillQueryCondition_Base(); this.Text = ModCaption; oSumGrid.ogrdMain = grdMain; //åå§å new oSumGrid.oGridsum = grdSum; lblCaption.Text = ModCaption; initGrid(); } private void timer2_Tick(object sender, EventArgs e) { timer2.Enabled = false; frmCondition = new frmBillQueryCondition_Base(); SetCondition(frmCondition, ViewName, this.Name); frmCondition.ShowDialog(); if (frmCondition.Tag.ToString() == "OK") { timer1.Enabled = true; } } private void bclk_Click(object sender, EventArgs e) { //ä¿åå宽 DBUtility.Xt_BaseBillFun.SaveGrid(grdMain, this.Name); } private void mrlk_Click(object sender, EventArgs e) { DBUtility.Xt_BaseBillFun.DefaultGridView(grdMain, this.Name); } // private void GraphicsGrid() { DBUtility.Xt_BaseBillFun.GraphicsGrid(grdMain); } // private void grdMain_Paint(object sender, PaintEventArgs e) { GraphicsGrid(); } //å计 new private void grdMain_ColumnWidthChanged(object sender, DataGridViewColumnEventArgs e) { Total(); } //å计 new private void grdMain_CellMouseUp(object sender, DataGridViewCellMouseEventArgs e) { Total(); } private void grdMain_CellBeginEdit(object sender, DataGridViewCellCancelEventArgs e) { int sHQtyCol = Fun_GetCol("æ°é"); int i = grdMain.CurrentCell.ColumnIndex; if (i != sHQtyCol) { e.Cancel = true; } } //å·æ° private void sx_Click(object sender, EventArgs e) { timer1.Enabled = true; } //éåº private void tc_Click(object sender, EventArgs e) { this.Close(); } #region //å é¤ //å é¤ private void sc_Click(object sender, EventArgs e) { Sub_DeleteBill(); } //å é¤ private void Sub_DeleteBill() { //WEBS if (!oWeb.getSecurity_Log(ModRightNameDelete, DBUtility.ClsPub.CurUserName, ref DBUtility.ClsPub.sExeReturnInfo)) { MessageBox.Show("æ¨æ²¡æå 餿éï¼"); return; } if (AllowRow()) { if (MessageBox.Show("ç¡®å®è¦å é¤å½åæéåæ®ï¼å é¤åä¸è½æ¢å¤ï¼è¯·è°¨æ æä½ï¼", "æç¤º", MessageBoxButtons.OKCancel, MessageBoxIcon.Question) == DialogResult.OK) { long sHInterID; string HBillNo = ""; string HBarCode = ""; sHInterID = DBUtility.ClsPub.isLong(grdMain.Rows[grdMain.CurrentCell.RowIndex].Cells[Fun_GetCol("hmainid")].Value); HBillNo = DBUtility.ClsPub.isStrNull(grdMain.Rows[grdMain.CurrentCell.RowIndex].Cells[Fun_GetCol("åæ®å·")].Value); HBarCode = DBUtility.ClsPub.isStrNull(grdMain.Rows[grdMain.CurrentCell.RowIndex].Cells[Fun_GetCol("HBarCode_Pack")].Value); if (sHInterID == 0) return; try { DataSet DS = oWeb.getDataSetBySQL("exec h_p_Sc_PackUnionCarryUpBill_Delete " + sHInterID + ",'" + HBillNo + "','" + HBarCode + "','" + DBUtility.ClsPub.CurUserName + "','" + DBUtility.ClsPub.ComputerName + "','" + DBUtility.ClsPub.IPAddress + "'", "h_p_Sc_PackUnionCarryUpBill_Delete", ref DBUtility.ClsPub.sExeReturnInfo); if (DS == null || DS.Tables[0].Rows.Count <= 0) { MessageBox.Show("å é¤å¤±è´¥ï¼"); return; } else { if (DBUtility.ClsPub.isLong(DS.Tables[0].Rows[0][0]) == 1) { MessageBox.Show(DBUtility.ClsPub.isStrNull(DS.Tables[0].Rows[0]["HRemark"])); return; } else { MessageBox.Show(DBUtility.ClsPub.isStrNull(DS.Tables[0].Rows[0]["HRemark"])); Display(); } } } catch (Exception e) { throw (e); } } } } //éä¸è¡æ¯å¦æ£å¸¸ private bool AllowRow() { if (grdMain.CurrentRow == null) { return false; } if (grdMain.CurrentRow.Index >= 0 && grdMain.CurrentRow.Index <= grdMain.RowCount - 1) { return true; } else { return false; } } #endregion #region //æ¥è¯¢åè½ //æ¥è¯¢ private void cx_Click(object sender, EventArgs e) { frmCondition = new frmBillQueryCondition_Base(); SetCondition(frmCondition, ViewName, this.Name); frmCondition.ShowDialog(); if (frmCondition.Tag.ToString() == "OK") { Display(); } } public void SetCondition(frmBillQueryCondition_Base frmCondition, string ViewName, string Name) { frmCondition.Tag = ""; frmCondition.ViewName = ViewName; frmCondition.ModName = Name; } private void Display() { DataSet DSet; string sSql = ""; string sWhere = ""; //è¿æ»¤æ¡ä»¶ if (frmCondition.SqlStr.Trim().Length == 0) { sSql = "Select * from " + ViewName + " Where 1=1 " + sWhere + sDlgWhere + " order by åæ®å· desc,hsubid "; } else { sSql = frmCondition.SqlStr + sWhere + sDlgWhere + " order by åæ®å· desc,hsubid "; } // DSet = oWeb.getDataSetBySQL(sSql, ViewName, ref DBUtility.ClsPub.sExeReturnInfo); //çæé¦è¡æ é¢ if (DSet == null) { MessageBox.Show("没æè¿åä»»ä½ç»æ,请å¨è¿æ»¤æ¡ä¸ç¹å»ãæ¢å¤ãæé®,å°è¯å次æ¥è¯¢ï¼" + DBUtility.ClsPub.sExeReturnInfo); return; } // grdMain.DataSource = DSet.Tables[0].DefaultView; ////设置å计å //string sTotalCol = ""; //sTotalCol = DBUtility.Gy_BaseFun.GetTotalCols(DSet); //string[] sT; //sT = sTotalCol.Split(Convert.ToChar(",")); //oSumGrid.BuildTotalCols(sT); //å»ç» int FrCol = DBUtility.ClsPub.isInt(frmCondition.txtFrozenCol.Text); string s = frmCondition.cmbHComplete.Text; ClsPub1.DisplayGrid(grdMain, this.Name, s, FrCol); //ç»çº¿ GraphLine(); //Total(); } private void GraphLine() { //int MainIDCol = Fun_GetCol("hmainid"); //int SubIDCol = Fun_GetCol("hsubid"); //string s = frmCondition.cmbHComplete.Text; //long n = 0; //DBUtility.Xt_BaseBillFun.GraphLine(grdMain, MainIDCol, SubIDCol, s, ref n); ////æ¾ç¤º //lbldj.Text = "æ¥è¯¢åº " + n.ToString() + " å¼ åæ®"; //lbljl.Text = "å ±æ " + grdMain.RowCount.ToString() + " æ¡è®°å½"; } //å计 new private void Total() { if (grdMain.Rows.Count > 0 && grdMain.ColumnCount > 0) { oSumGrid.SetGridsum(); oSumGrid.Total(); } } #endregion #region //å¼åºåè½ private void yc_Click(object sender, EventArgs e) { DataGridViewToExcel2(grdMain, this.Text, this.Text); } /// <summary> /// ç½æ ¼ 导åºEXCEL ç½æ ¼ï¼æä»¶åï¼æ é¢å /// </summary> public static void DataGridViewToExcel2(DataGridView grdMain, string sText, string sBTText) { SaveFileDialog saveFileDialog = new SaveFileDialog(); saveFileDialog.Filter = "Execlæä»¶(*.xls)|*.xls"; saveFileDialog.FilterIndex = 0; saveFileDialog.RestoreDirectory = true; saveFileDialog.CreatePrompt = true; saveFileDialog.Title = "æ°æ®è§å¾å¯¼åºEXCELæä»¶"; saveFileDialog.FileName = sText; //saveFileDialog.ShowDialog(); if (saveFileDialog.ShowDialog() == DialogResult.OK) { Stream myStream; myStream = saveFileDialog.OpenFile(); StreamWriter sw = new StreamWriter(myStream, System.Text.Encoding.GetEncoding("gb2312")); string str = ""; DateTime start = DateTime.Now; try { if (sBTText != "") { sw.WriteLine(sBTText); } //åæ é¢ bool sFirstCol = true; for (int i = 0; i < grdMain.ColumnCount; i++) { if (i > 0 && grdMain.Columns[i].HeaderText.Substring(0, 1) != "h" && grdMain.Columns[i].HeaderText.Substring(0, 1) != "H" && sFirstCol != true) { str += "\t"; } if (grdMain.Columns[i].HeaderText.Substring(0, 1) != "h" && grdMain.Columns[i].HeaderText.Substring(0, 1) != "H") { sFirstCol = false; str += grdMain.Columns[i].HeaderText; } } str = str.Replace("\n", ""); sw.WriteLine(str); //åå 容 for (int j = 0; j < grdMain.Rows.Count; j++) { string tempStr = ""; sFirstCol = true; for (int k = 0; k < grdMain.Columns.Count; k++) { if (k > 0 && grdMain.Columns[k].HeaderText.Substring(0, 1) != "h" && grdMain.Columns[k].HeaderText.Substring(0, 1) != "H" && sFirstCol != true) { tempStr += "\t"; } if (grdMain.Columns[k].HeaderText.Substring(0, 1) != "h" && grdMain.Columns[k].HeaderText.Substring(0, 1) != "H") { sFirstCol = false; if (grdMain.Rows[j].Cells[k].Value == null) { tempStr += string.Empty; } else { tempStr += grdMain.Rows[j].Cells[k].Value.ToString(); } } } tempStr = tempStr.Replace("\n", ""); sw.WriteLine(tempStr); } sw.Close(); myStream.Close(); } catch (Exception ex) { MessageBox.Show(ex.Message); } finally { sw.Close(); myStream.Close(); } MessageBox.Show("å°æ¤å·¥ä½è¡¨å¯¼åºä¸ºexcelå ±èæ¶ï¼" + DateTime.Now.Subtract(start).TotalMilliseconds.ToString() + "毫ç§"); } } //导åºåè½ private void dc_Click(object sender, EventArgs e) { SCM.å ¬ç¨ç±».Xt_BaseBillFun.DataToExcel(this.Text, grdMain); } #endregion //å¿«éæ¥è¯¢ private void btnOK_Click(object sender, EventArgs e) { Sub_FastQuery(); } //å¿«éè¿æ»¤ private void Sub_FastQuery() { string sFastSQL = ""; sFastSQL = sFastSQL + " and (CONVERT(varchar(10),å¶åæ¥æ,120) between '" + dtpHBDate.Value.ToShortDateString() + "' and '" + dtpHEDate.Value.ToShortDateString() + "')"; sFastSQL = sFastSQL + " and (åæ®å· like '%" + txtHBillNo.Text.Trim() + "%')"; sFastSQL = sFastSQL + " and (ç®±æ¡ç like '%" + txtHBarCode_Pack.Text.Trim() + "%')"; sFastSQL = sFastSQL + " and (SNæ¡ç like '%" + txtHBarCode.Text.Trim() + "%')"; if (sFastSQL.Trim() == "") { MessageBox.Show("没æè¾å ¥æ¡ä»¶!"); return; } sDlgWhere = sFastSQL; Display(); sDlgWhere = ""; } } } SCM/µ¥¾Ý×ÊÁÏ/Sc_PackUnionCarryUpBillList.designer.cs
New file @@ -0,0 +1,551 @@ namespace SCM { partial class Sc_PackUnionCarryUpBillList { /// <summary> /// å¿ éç设计å¨åéã /// </summary> private System.ComponentModel.IContainer components = null; /// <summary> /// æ¸ çæææ£å¨ä½¿ç¨çèµæºã /// </summary> /// <param name="disposing">妿åºéæ¾æç®¡èµæºï¼ä¸º trueï¼å¦å为 falseã</param> protected override void Dispose(bool disposing) { if (disposing && (components != null)) { components.Dispose(); } base.Dispose(disposing); } #region Windows çªä½è®¾è®¡å¨çæç代ç /// <summary> /// è®¾è®¡å¨æ¯ææéçæ¹æ³ - ä¸è¦ /// 使ç¨ä»£ç ç¼è¾å¨ä¿®æ¹æ¤æ¹æ³çå 容ã /// </summary> private void InitializeComponent() { this.components = new System.ComponentModel.Container(); System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Sc_PackUnionCarryUpBillList)); this.pPic = new System.Windows.Forms.Panel(); this.panel1 = new System.Windows.Forms.Panel(); this.lbljl = new System.Windows.Forms.Label(); this.lbldj = new System.Windows.Forms.Label(); this.lblCaption = new System.Windows.Forms.Label(); this.Tool = new System.Windows.Forms.ToolStrip(); this.yc = new System.Windows.Forms.ToolStripButton(); this.dc = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); this.cx = new System.Windows.Forms.ToolStripButton(); this.sx = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); this.sc = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator(); this.tc = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator(); this.toolStripSeparator9 = new System.Windows.Forms.ToolStripSeparator(); this.mrlk = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator7 = new System.Windows.Forms.ToolStripSeparator(); this.bclk = new System.Windows.Forms.ToolStripButton(); this.toolStripSeparator8 = new System.Windows.Forms.ToolStripSeparator(); this.timer1 = new System.Windows.Forms.Timer(this.components); this.timer2 = new System.Windows.Forms.Timer(this.components); this.grdMain = new System.Windows.Forms.DataGridView(); this.grdPrint = new System.Windows.Forms.DataGridView(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.txtHBillNo = new System.Windows.Forms.TextBox(); this.label4 = new System.Windows.Forms.Label(); this.btnOK = new System.Windows.Forms.Button(); this.grdSum = new System.Windows.Forms.DataGridView(); this.dtpHBDate = new System.Windows.Forms.DateTimePicker(); this.dtpHEDate = new System.Windows.Forms.DateTimePicker(); this.label5 = new System.Windows.Forms.Label(); this.label6 = new System.Windows.Forms.Label(); this.txtHBarCode_Pack = new System.Windows.Forms.TextBox(); this.label1 = new System.Windows.Forms.Label(); this.txtHBarCode = new System.Windows.Forms.TextBox(); this.label2 = new System.Windows.Forms.Label(); this.pPic.SuspendLayout(); this.panel1.SuspendLayout(); this.Tool.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.grdMain)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.grdPrint)).BeginInit(); this.groupBox1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.grdSum)).BeginInit(); this.SuspendLayout(); // // pPic // this.pPic.BackColor = System.Drawing.Color.White; this.pPic.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("pPic.BackgroundImage"))); this.pPic.BackgroundImageLayout = System.Windows.Forms.ImageLayout.None; this.pPic.Controls.Add(this.panel1); this.pPic.Controls.Add(this.lblCaption); this.pPic.Dock = System.Windows.Forms.DockStyle.Top; this.pPic.Location = new System.Drawing.Point(0, 50); this.pPic.Name = "pPic"; this.pPic.Size = new System.Drawing.Size(1011, 33); this.pPic.TabIndex = 15; // // panel1 // this.panel1.Controls.Add(this.lbljl); this.panel1.Controls.Add(this.lbldj); this.panel1.Dock = System.Windows.Forms.DockStyle.Right; this.panel1.Location = new System.Drawing.Point(875, 0); this.panel1.Name = "panel1"; this.panel1.Size = new System.Drawing.Size(136, 33); this.panel1.TabIndex = 7; // // lbljl // this.lbljl.AutoSize = true; this.lbljl.Location = new System.Drawing.Point(24, 30); this.lbljl.Name = "lbljl"; this.lbljl.Size = new System.Drawing.Size(11, 12); this.lbljl.TabIndex = 1; this.lbljl.Text = " "; // // lbldj // this.lbldj.AutoSize = true; this.lbldj.Location = new System.Drawing.Point(24, 12); this.lbldj.Name = "lbldj"; this.lbldj.Size = new System.Drawing.Size(0, 12); this.lbldj.TabIndex = 0; // // lblCaption // this.lblCaption.AutoSize = true; this.lblCaption.BackColor = System.Drawing.Color.Transparent; this.lblCaption.Cursor = System.Windows.Forms.Cursors.No; this.lblCaption.Font = new System.Drawing.Font("å®ä½", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.lblCaption.Location = new System.Drawing.Point(12, 7); this.lblCaption.Name = "lblCaption"; this.lblCaption.Size = new System.Drawing.Size(98, 21); this.lblCaption.TabIndex = 4; this.lblCaption.Text = "åæ®å表"; this.lblCaption.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // Tool // this.Tool.AutoSize = false; this.Tool.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("Tool.BackgroundImage"))); this.Tool.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Stretch; this.Tool.ImageScalingSize = new System.Drawing.Size(22, 22); this.Tool.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { this.yc, this.dc, this.toolStripSeparator2, this.cx, this.sx, this.toolStripSeparator1, this.sc, this.toolStripSeparator4, this.tc, this.toolStripSeparator3, this.toolStripSeparator9, this.mrlk, this.toolStripSeparator7, this.bclk, this.toolStripSeparator8}); this.Tool.Location = new System.Drawing.Point(0, 0); this.Tool.Name = "Tool"; this.Tool.Padding = new System.Windows.Forms.Padding(0); this.Tool.Size = new System.Drawing.Size(1011, 50); this.Tool.Stretch = true; this.Tool.TabIndex = 16; this.Tool.Text = "toolStrip1"; // // yc // this.yc.AutoSize = false; this.yc.Image = ((System.Drawing.Image)(resources.GetObject("yc.Image"))); this.yc.ImageAlign = System.Drawing.ContentAlignment.BottomCenter; this.yc.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.yc.ImageTransparentColor = System.Drawing.Color.Magenta; this.yc.Name = "yc"; this.yc.Size = new System.Drawing.Size(36, 47); this.yc.Text = "å¼åº"; this.yc.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.yc.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; this.yc.Click += new System.EventHandler(this.yc_Click); // // dc // this.dc.AutoSize = false; this.dc.Image = ((System.Drawing.Image)(resources.GetObject("dc.Image"))); this.dc.ImageAlign = System.Drawing.ContentAlignment.BottomCenter; this.dc.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.dc.ImageTransparentColor = System.Drawing.Color.Magenta; this.dc.Name = "dc"; this.dc.Size = new System.Drawing.Size(36, 47); this.dc.Text = "导åº"; this.dc.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.dc.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; this.dc.Click += new System.EventHandler(this.dc_Click); // // toolStripSeparator2 // this.toolStripSeparator2.Name = "toolStripSeparator2"; this.toolStripSeparator2.Size = new System.Drawing.Size(6, 50); // // cx // this.cx.AutoSize = false; this.cx.Image = ((System.Drawing.Image)(resources.GetObject("cx.Image"))); this.cx.ImageAlign = System.Drawing.ContentAlignment.BottomCenter; this.cx.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.cx.ImageTransparentColor = System.Drawing.Color.White; this.cx.Name = "cx"; this.cx.Size = new System.Drawing.Size(36, 47); this.cx.Text = "æ¥è¯¢"; this.cx.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.cx.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; this.cx.Click += new System.EventHandler(this.cx_Click); // // sx // this.sx.AutoSize = false; this.sx.Image = ((System.Drawing.Image)(resources.GetObject("sx.Image"))); this.sx.ImageAlign = System.Drawing.ContentAlignment.BottomCenter; this.sx.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.sx.ImageTransparentColor = System.Drawing.Color.Magenta; this.sx.Name = "sx"; this.sx.Size = new System.Drawing.Size(36, 47); this.sx.Text = "å·æ°"; this.sx.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.sx.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; this.sx.Click += new System.EventHandler(this.sx_Click); // // toolStripSeparator1 // this.toolStripSeparator1.Name = "toolStripSeparator1"; this.toolStripSeparator1.Size = new System.Drawing.Size(6, 50); // // sc // this.sc.AutoSize = false; this.sc.Image = ((System.Drawing.Image)(resources.GetObject("sc.Image"))); this.sc.ImageAlign = System.Drawing.ContentAlignment.BottomCenter; this.sc.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.sc.ImageTransparentColor = System.Drawing.Color.Magenta; this.sc.Name = "sc"; this.sc.Size = new System.Drawing.Size(36, 47); this.sc.Text = "å é¤"; this.sc.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.sc.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; this.sc.Click += new System.EventHandler(this.sc_Click); // // toolStripSeparator4 // this.toolStripSeparator4.Name = "toolStripSeparator4"; this.toolStripSeparator4.Size = new System.Drawing.Size(6, 50); // // tc // this.tc.AutoSize = false; this.tc.Image = ((System.Drawing.Image)(resources.GetObject("tc.Image"))); this.tc.ImageAlign = System.Drawing.ContentAlignment.BottomCenter; this.tc.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.tc.ImageTransparentColor = System.Drawing.Color.White; this.tc.Name = "tc"; this.tc.Size = new System.Drawing.Size(36, 47); this.tc.Text = "éåº"; this.tc.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.tc.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; this.tc.Click += new System.EventHandler(this.tc_Click); // // toolStripSeparator3 // this.toolStripSeparator3.Name = "toolStripSeparator3"; this.toolStripSeparator3.Size = new System.Drawing.Size(6, 50); // // toolStripSeparator9 // this.toolStripSeparator9.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; this.toolStripSeparator9.Name = "toolStripSeparator9"; this.toolStripSeparator9.Size = new System.Drawing.Size(6, 50); // // mrlk // this.mrlk.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; this.mrlk.Image = ((System.Drawing.Image)(resources.GetObject("mrlk.Image"))); this.mrlk.ImageAlign = System.Drawing.ContentAlignment.BottomCenter; this.mrlk.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.mrlk.ImageTransparentColor = System.Drawing.Color.White; this.mrlk.Name = "mrlk"; this.mrlk.Size = new System.Drawing.Size(60, 47); this.mrlk.Text = "é»è®¤å宽"; this.mrlk.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.mrlk.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; this.mrlk.Click += new System.EventHandler(this.mrlk_Click); // // toolStripSeparator7 // this.toolStripSeparator7.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; this.toolStripSeparator7.Name = "toolStripSeparator7"; this.toolStripSeparator7.Size = new System.Drawing.Size(6, 50); // // bclk // this.bclk.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; this.bclk.Image = ((System.Drawing.Image)(resources.GetObject("bclk.Image"))); this.bclk.ImageAlign = System.Drawing.ContentAlignment.BottomCenter; this.bclk.ImageScaling = System.Windows.Forms.ToolStripItemImageScaling.None; this.bclk.ImageTransparentColor = System.Drawing.Color.White; this.bclk.Name = "bclk"; this.bclk.Size = new System.Drawing.Size(60, 47); this.bclk.Text = "ä¿åå宽"; this.bclk.TextAlign = System.Drawing.ContentAlignment.BottomCenter; this.bclk.TextImageRelation = System.Windows.Forms.TextImageRelation.ImageAboveText; this.bclk.Click += new System.EventHandler(this.bclk_Click); // // toolStripSeparator8 // this.toolStripSeparator8.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; this.toolStripSeparator8.Name = "toolStripSeparator8"; this.toolStripSeparator8.Size = new System.Drawing.Size(6, 50); // // timer1 // this.timer1.Tick += new System.EventHandler(this.timer1_Tick); // // timer2 // this.timer2.Enabled = true; this.timer2.Tick += new System.EventHandler(this.timer2_Tick); // // grdMain // this.grdMain.AllowUserToAddRows = false; this.grdMain.AllowUserToDeleteRows = false; this.grdMain.BackgroundColor = System.Drawing.SystemColors.InactiveCaption; this.grdMain.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.grdMain.Dock = System.Windows.Forms.DockStyle.Fill; this.grdMain.Location = new System.Drawing.Point(0, 126); this.grdMain.Name = "grdMain"; this.grdMain.ReadOnly = true; this.grdMain.RowTemplate.Height = 23; this.grdMain.Size = new System.Drawing.Size(1011, 386); this.grdMain.TabIndex = 19; this.grdMain.CellBeginEdit += new System.Windows.Forms.DataGridViewCellCancelEventHandler(this.grdMain_CellBeginEdit); this.grdMain.CellMouseUp += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.grdMain_CellMouseUp); this.grdMain.ColumnWidthChanged += new System.Windows.Forms.DataGridViewColumnEventHandler(this.grdMain_ColumnWidthChanged); this.grdMain.Paint += new System.Windows.Forms.PaintEventHandler(this.grdMain_Paint); // // grdPrint // this.grdPrint.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.grdPrint.Location = new System.Drawing.Point(772, 146); this.grdPrint.Name = "grdPrint"; this.grdPrint.RowTemplate.Height = 23; this.grdPrint.Size = new System.Drawing.Size(25, 24); this.grdPrint.TabIndex = 8; this.grdPrint.Visible = false; // // groupBox1 // this.groupBox1.BackColor = System.Drawing.Color.Lavender; this.groupBox1.Controls.Add(this.txtHBarCode); this.groupBox1.Controls.Add(this.label2); this.groupBox1.Controls.Add(this.txtHBarCode_Pack); this.groupBox1.Controls.Add(this.label1); this.groupBox1.Controls.Add(this.dtpHBDate); this.groupBox1.Controls.Add(this.dtpHEDate); this.groupBox1.Controls.Add(this.label5); this.groupBox1.Controls.Add(this.label6); this.groupBox1.Controls.Add(this.txtHBillNo); this.groupBox1.Controls.Add(this.label4); this.groupBox1.Controls.Add(this.btnOK); this.groupBox1.Dock = System.Windows.Forms.DockStyle.Top; this.groupBox1.Location = new System.Drawing.Point(0, 83); this.groupBox1.Name = "groupBox1"; this.groupBox1.Size = new System.Drawing.Size(1011, 43); this.groupBox1.TabIndex = 51; this.groupBox1.TabStop = false; // // txtHBillNo // this.txtHBillNo.Location = new System.Drawing.Point(393, 13); this.txtHBillNo.Name = "txtHBillNo"; this.txtHBillNo.Size = new System.Drawing.Size(99, 21); this.txtHBillNo.TabIndex = 12; // // label4 // this.label4.AutoSize = true; this.label4.Location = new System.Drawing.Point(345, 17); this.label4.Name = "label4"; this.label4.Size = new System.Drawing.Size(53, 12); this.label4.TabIndex = 11; this.label4.Text = "åæ®å·ï¼"; // // btnOK // this.btnOK.Location = new System.Drawing.Point(810, 11); this.btnOK.Name = "btnOK"; this.btnOK.Size = new System.Drawing.Size(73, 24); this.btnOK.TabIndex = 6; this.btnOK.Text = "å¿«éæ¥è¯¢"; this.btnOK.UseVisualStyleBackColor = true; this.btnOK.Click += new System.EventHandler(this.btnOK_Click); // // grdSum // this.grdSum.AllowUserToAddRows = false; this.grdSum.AllowUserToDeleteRows = false; this.grdSum.BackgroundColor = System.Drawing.SystemColors.Control; this.grdSum.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.grdSum.Dock = System.Windows.Forms.DockStyle.Bottom; this.grdSum.Location = new System.Drawing.Point(0, 512); this.grdSum.Name = "grdSum"; this.grdSum.ReadOnly = true; this.grdSum.RowTemplate.Height = 23; this.grdSum.ScrollBars = System.Windows.Forms.ScrollBars.None; this.grdSum.Size = new System.Drawing.Size(1011, 19); this.grdSum.TabIndex = 52; // // dtpHBDate // this.dtpHBDate.Format = System.Windows.Forms.DateTimePickerFormat.Short; this.dtpHBDate.Location = new System.Drawing.Point(73, 13); this.dtpHBDate.Name = "dtpHBDate"; this.dtpHBDate.Size = new System.Drawing.Size(99, 21); this.dtpHBDate.TabIndex = 63; // // dtpHEDate // this.dtpHEDate.Format = System.Windows.Forms.DateTimePickerFormat.Short; this.dtpHEDate.Location = new System.Drawing.Point(237, 13); this.dtpHEDate.Name = "dtpHEDate"; this.dtpHEDate.Size = new System.Drawing.Size(99, 21); this.dtpHEDate.TabIndex = 65; // // label5 // this.label5.AutoSize = true; this.label5.BackColor = System.Drawing.Color.Transparent; this.label5.Location = new System.Drawing.Point(12, 17); this.label5.Name = "label5"; this.label5.Size = new System.Drawing.Size(65, 12); this.label5.TabIndex = 62; this.label5.Text = "å¼å§æ¥æï¼"; // // label6 // this.label6.AutoSize = true; this.label6.BackColor = System.Drawing.Color.Transparent; this.label6.Location = new System.Drawing.Point(177, 17); this.label6.Name = "label6"; this.label6.Size = new System.Drawing.Size(65, 12); this.label6.TabIndex = 64; this.label6.Text = "ç»ææ¥æï¼"; // // txtHBarCode_Pack // this.txtHBarCode_Pack.Location = new System.Drawing.Point(549, 13); this.txtHBarCode_Pack.Name = "txtHBarCode_Pack"; this.txtHBarCode_Pack.Size = new System.Drawing.Size(99, 21); this.txtHBarCode_Pack.TabIndex = 67; // // label1 // this.label1.AutoSize = true; this.label1.Location = new System.Drawing.Point(502, 17); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(53, 12); this.label1.TabIndex = 66; this.label1.Text = "ç®±æ¡ç ï¼"; // // txtHBarCode // this.txtHBarCode.Location = new System.Drawing.Point(705, 13); this.txtHBarCode.Name = "txtHBarCode"; this.txtHBarCode.Size = new System.Drawing.Size(99, 21); this.txtHBarCode.TabIndex = 69; // // label2 // this.label2.AutoSize = true; this.label2.Location = new System.Drawing.Point(658, 17); this.label2.Name = "label2"; this.label2.Size = new System.Drawing.Size(53, 12); this.label2.TabIndex = 68; this.label2.Text = "SNæ¡ç ï¼"; // // Sc_PackUnionCarryUpBillList // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(1011, 531); this.Controls.Add(this.grdMain); this.Controls.Add(this.groupBox1); this.Controls.Add(this.pPic); this.Controls.Add(this.Tool); this.Controls.Add(this.grdPrint); this.Controls.Add(this.grdSum); this.Name = "Sc_PackUnionCarryUpBillList"; this.Text = "åæ®å表"; this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.Load += new System.EventHandler(this.Sc_PackUnionCarryUpBillList_Load); this.pPic.ResumeLayout(false); this.pPic.PerformLayout(); this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); this.Tool.ResumeLayout(false); this.Tool.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.grdMain)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.grdPrint)).EndInit(); this.groupBox1.ResumeLayout(false); this.groupBox1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.grdSum)).EndInit(); this.ResumeLayout(false); } #endregion private System.Windows.Forms.Panel pPic; private System.Windows.Forms.Label lblCaption; private System.Windows.Forms.ToolStrip Tool; private System.Windows.Forms.ToolStripSeparator toolStripSeparator2; private System.Windows.Forms.ToolStripButton cx; private System.Windows.Forms.ToolStripSeparator toolStripSeparator1; private System.Windows.Forms.ToolStripButton tc; private System.Windows.Forms.ToolStripSeparator toolStripSeparator3; public System.Windows.Forms.Timer timer1; private System.Windows.Forms.ToolStripButton sx; private System.Windows.Forms.Timer timer2; private System.Windows.Forms.ToolStripSeparator toolStripSeparator9; private System.Windows.Forms.ToolStripButton mrlk; private System.Windows.Forms.ToolStripSeparator toolStripSeparator7; private System.Windows.Forms.ToolStripButton bclk; private System.Windows.Forms.ToolStripSeparator toolStripSeparator8; private System.Windows.Forms.DataGridView grdMain; private System.Windows.Forms.Panel panel1; private System.Windows.Forms.Label lbljl; private System.Windows.Forms.Label lbldj; private System.Windows.Forms.DataGridView grdPrint; private System.Windows.Forms.GroupBox groupBox1; private System.Windows.Forms.Button btnOK; private System.Windows.Forms.TextBox txtHBillNo; private System.Windows.Forms.Label label4; private System.Windows.Forms.ToolStripButton yc; private System.Windows.Forms.DataGridView grdSum; private System.Windows.Forms.ToolStripButton sc; private System.Windows.Forms.ToolStripSeparator toolStripSeparator4; private System.Windows.Forms.ToolStripButton dc; private System.Windows.Forms.DateTimePicker dtpHBDate; private System.Windows.Forms.DateTimePicker dtpHEDate; private System.Windows.Forms.Label label5; private System.Windows.Forms.Label label6; private System.Windows.Forms.TextBox txtHBarCode; private System.Windows.Forms.Label label2; private System.Windows.Forms.TextBox txtHBarCode_Pack; private System.Windows.Forms.Label label1; } } SCM/µ¥¾Ý×ÊÁÏ/Sc_PackUnionCarryUpBillList.resx
New file Diff too large SCM/ÌõÂë´òÓ¡/Gy_BarCodeBill.cs
@@ -169,6 +169,7 @@ public Int16 POOrderBillNo2Col = 71; public Int16 HBarCode_Pack2Col = 72; public Int16 HCustomQty12Col = 73; public Int16 HCusBarCodeCol = 74; // public string ModName = "85"; public string ModCaption = "æ¡ç çæ"; @@ -214,6 +215,10 @@ cmbHBarCodeType.Items.Add("å¯ä¸æ¡ç "); cmbHBarCodeType.Items.Add("åç§æ¡ç "); cmbHBarCodeType.Items.Add("æ¹æ¬¡æ¡ç "); if (CampanyName == "åç»´å°") //ç³»ç»åæ° å®¢æ·å®å¶ååç§° { cmbHBarCodeType.Items.Add("å¥çæ¡ç "); } //cmbHBarCodeType.Items.Add("æçæ¡ç "); cmbHBarCodeType.SelectedIndex = 0; } @@ -776,6 +781,12 @@ string HGroupNumber = ""; //çç»ä»£ç string sTMNumber = ""; //æ¡ç èªå®ä¹åç¼ string sSeOrderNo = ""; // éå®è®¢åå· string HModel = ""; //ç©æè§æ ¼åå· string HCusNumber = ""; //客æ·ä»£ç string HCusBatchNo = ""; //å®¢æ·æ¹æ¬¡ string CusTM = ""; //å®¢æ·æ¡ç string sCusTMNumber = ""; //å®¢æ·æ¡ç èªå®ä¹åç¼ int CusTMLSH = 0; //å®¢æ·æ¡ç æµæ°´å· DataSet Ds; pb1.Value = 0; for (int j = 0; j < grdMain.Rows.Count; j++) @@ -1559,6 +1570,21 @@ #endregion } else if (cmbHBarCodeType.Text == "å¥çæ¡ç ") { //æ¡ç åç¼ = ç»ç»ä»£ç + ç©æå ç + å¹´ + æ + æ¥ sTMNumber = HOrgNumber + HNumber + sYear + sPeriod + sDay; Ds = oWeb.getDataSetBySQL("exec h_p_WMS_GetMaxNo '" + sTMNumber + "'", "h_p_WMS_GetMaxNo", ref DBUtility.ClsPub.sExeReturnInfo);//è·åæå¤§æµæ°´å· LSH = ClsPub.isInt(Ds.Tables[0].Rows[0][0]); HModel = DBUtility.ClsPub.isStrNull(grdMain.Rows[j].Cells[HMaterModelCol].Value); HCusNumber = "8PD"; //ä¾åºå代ç åºå®ä¸º8PD HCusBatchNo = DBUtility.ClsPub.isStrNull(grdMain.Rows[j].Cells[HCustomBatchNoCol].Value); //å®¢æ·æ¡ç åç¼ = 10#è§æ ¼åå·$+11#ä¾åºå代ç $ sCusTMNumber = "10#" + HModel + "$11#" + HCusNumber + "$"; Ds = oWeb.getDataSetBySQL("exec h_p_WMS_GetMaxNo '" + sCusTMNumber + "'", "h_p_WMS_GetMaxNo", ref DBUtility.ClsPub.sExeReturnInfo);//è·åæå¤§æµæ°´å· CusTMLSH = ClsPub.isInt(Ds.Tables[0].Rows[0][0]); } else { MessageBox.Show("éè¯¯çæ¡ç ç±»åï¼ä¸è½çææ¡ç ï¼"); @@ -1623,6 +1649,22 @@ //æ¡ç ç¼å· = æ¡ç åç¼ + æµæ°´å· TM = sTMNumber + LSH2; } else if (cmbHBarCodeType.Text == "å¥çæ¡ç ") { //æ¡ç ç¼å· = æ¡ç åç¼ + æµæ°´å· TM = sTMNumber + LSH2; //å®¢æ·æ¡ç åç¼ = 10#è§æ ¼åå·$+11#ä¾åºå代ç $ //å®¢æ·æ¡ç = å®¢æ·æ¡ç åç¼+17#æå°å è£ æ°é$+18#ä¾åºåæ¹æ¬¡$+æµæ°´å· CusTMLSH = CusTMLSH + 1; CusTM = sCusTMNumber + "17#"+ HMinQty+ "$18#"+ HCusBatchNo+ "$"+ CusTMLSH; if (HCusBatchNo.Trim() == "") { MessageBox.Show("å®¢æ·æ¹æ¬¡å·ä¸å 许为空ï¼"); bc.Enabled = true; return; } } if (CampanyName == "é©çµ" && cmbHBarCodeType.Text != "ç®±åæ¡ç ") //ç³»ç»åæ° å®¢æ·å®å¶ååç§° { @@ -1673,7 +1715,14 @@ grdSub.Rows[i].Cells[HSourceBillType2Col].Value = grdMain.Rows[j].Cells[HBillTypeCol].Value; grdSub.Rows[i].Cells[HPrintCol].Value = "0"; grdSub.Rows[i].Cells[HWeiCol].Value = WeiShu; grdSub.Rows[i].Cells[HBarcodeNoCol].Value = n + 1; if (cmbHBarCodeType.Text == "å¥çæ¡ç ") { grdSub.Rows[i].Cells[HBarcodeNoCol].Value = CusTMLSH; } else { grdSub.Rows[i].Cells[HBarcodeNoCol].Value = n + 1; } grdSub.Rows[i].Cells[HBarcodeQtysCol].Value = grdMain.Rows[j].Cells[HBQtyCol].Value; grdSub.Rows[i].Cells[HSupID2Col].Value = grdMain.Rows[j].Cells[HSupIDCol].Value; grdSub.Rows[i].Cells[HSupNumber2Col].Value = grdMain.Rows[j].Cells[HSupNumberCol].Value; @@ -1717,6 +1766,7 @@ grdSub.Rows[i].Cells[POOrderBillNo2Col].Value = grdMain.Rows[j].Cells[POOrderBillNoCol].Value; grdSub.Rows[i].Cells[HBarCode_Pack2Col].Value = grdMain.Rows[j].Cells[HBarCode_PackCol].Value; grdSub.Rows[i].Cells[HCustomQty12Col].Value = ClsPub.isLong(txtHCaseNo.Text) + i; grdSub.Rows[i].Cells[HCusBarCodeCol].Value = CusTM; k = k + 1; n = n + 1; //oWeb.getRunProc("exec h_p_WMS_SetMaxNo '" + sTMNumber + "'", ref DBUtility.ClsPub.sExeReturnInfo); @@ -1730,6 +1780,16 @@ { MessageBox.Show("æ¡ç çæå¤±è´¥,æ¹éçææµæ°´å·å¤±è´¥ï¼"); return; } if (cmbHBarCodeType.Text == "å¥çæ¡ç ") { string[] sSQLCusNoMul = new string[1]; sSQLCusNoMul[0] = " exec h_p_WMS_SetMaxNo_QTY '" + sCusTMNumber + "'," + nn.ToString() + " "; if (oWeb.getRunProcByMul_Back(sSQLCusNoMul, ref DBUtility.ClsPub.sExeReturnInfo) == false) { MessageBox.Show("æ¡ç çæå¤±è´¥,æ¹éçæå®¢æ·æ¡ç æµæ°´å·å¤±è´¥ï¼"); return; } } // } @@ -1798,6 +1858,8 @@ string HGBBarCode = ""; string POOrderBillNo = ""; long HCustomQty1 = 0; string HCusBarCode = ""; string HBarCodeStatus = ""; string[] sSQLMul = new string[grdSub.Rows.Count]; @@ -1816,16 +1878,25 @@ { HBarCodeType = "å¯ä¸æ¡ç "; HRemark = "å¥¥å æ¯æ¡ç "; HBarCodeStatus = ""; } else if (cmbHBarCodeType.Text == "ç®±åæ¡ç ") { HBarCodeType = "å¯ä¸æ¡ç "; HRemark = "ç®±åæ¡ç "; HBarCodeStatus = ""; } else if (cmbHBarCodeType.Text == "å¥çæ¡ç ") { HBarCodeType = "å¯ä¸æ¡ç "; HRemark = "å¥çæ¡ç "; HBarCodeStatus = "å¾ è£ ç®±"; } else { HBarCodeType = ClsPub.isStrNull(cmbHBarCodeType.Text); HRemark = ClsPub.isStrNull(grdSub.Rows[i].Cells[HRemark2Col].Value); HBarCodeStatus = ""; } HMaterID = ClsPub.isLong(grdSub.Rows[i].Cells[HMaterID2Col].Value); @@ -1869,6 +1940,7 @@ POOrderBillNo = ClsPub.isStrNull(grdSub.Rows[i].Cells[POOrderBillNo2Col].Value); HBarCode_Pack = ClsPub.isStrNull(grdSub.Rows[i].Cells[HBarCode_Pack2Col].Value); HCustomQty1 = ClsPub.isLong(grdSub.Rows[i].Cells[HCustomQty12Col].Value); //ç®±å·ï¼æ£®æ¥·ï¼ HCusBarCode = ClsPub.isStrNull(grdSub.Rows[i].Cells[HCusBarCodeCol].Value); sSQLMul[mm] = "insert into Gy_BarCodeBill (HBarCode,HBarCodeType,HMaterID,HUnitID,HQty" + ",HBatchNo,HSupID,HGroupID,HMaker,HMakeDate,HPrintQty,HinitQty" + ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HEndQty " + @@ -1879,7 +1951,7 @@ ",HSTOCKORGID,HOWNERID,HBeginDate,HSeOrderBillNo,HGBBarCode " + ",POOrderBillNo,HInterID,HInitSourceEntryID,HBarCode_Pack " + ",HMaterName,HMaterModel,HPinfan,HAuxPropID,HMTONo " + ",HCustomQty1 " + ",HCustomQty1,HCusBarCode,HBarCodeStatus " + ") values (" + "'" + HBarCode + "','" + HBarCodeType + "'," + HMaterID.ToString() + "," + HUnitID.ToString() + "," + HQty2.ToString() + ",'" + HBatchNo2 + "'," + HSupID.ToString() + "," + HGroupID.ToString() + ",'" + ClsPub.CurUserName + "',getdate()," + HPrintQty.ToString() + "," + HQty2.ToString() @@ -1891,7 +1963,7 @@ + ", " + HOrgID.ToString() + "," + HOrgID.ToString() + ",'" + HBeginDate.ToShortDateString() + "','" + HSeOrderBillNo + "','" + HGBBarCode + "'" + ",'" + POOrderBillNo + "'," + HInterID.ToString() + "," + HSourceEntryID.ToString() + ",'" + HBarCode_Pack + "'" + ",'" + HMaterName + "','" + HMaterModel + "','" + HPinfan + "'," + HAuxPropID.ToString() + ",'" + HMTONo + "'" + ", " + HCustomQty1.ToString() + ")"; + ", " + HCustomQty1.ToString() + ",'" + HCusBarCode + "','" + HBarCodeStatus + "')"; //oCn.RunProc("exec setLSH '" + ClsPub.GetServerDate(0) + "'"); mm = mm + 1; Application.DoEvents(); @@ -1985,7 +2057,7 @@ grdMain.Columns[HBarCodeTypeCol].HeaderText = "æ¡ç ç±»å"; grdMain.Columns[HBatchManagerCol].HeaderText = "æ¯å¦å¯ç¨æ¹æ¬¡"; grdMain.Columns[HBatchNoCol].HeaderText = "æ¹å·2"; grdMain.Columns[HCustomBatchNoCol].HeaderText = "æ¹å·"; grdMain.Columns[HCustomBatchNoCol].HeaderText = "å®¢æ·æ¹æ¬¡å·"; grdMain.Columns[HGroupIDCol].HeaderText = "ç线ID"; grdMain.Columns[HGroupNumberCol].HeaderText = "ç线代ç "; grdMain.Columns[HGroupNameCol].HeaderText = "ç线"; @@ -2139,6 +2211,7 @@ grdMain.Columns[HPinfanCol].Visible = true; grdMain.Columns[HAuxPropNumberCol].Visible = true; grdMain.Columns[HAuxPropNameCol].Visible = true; grdMain.Columns[HCustomBatchNoCol].Visible = true; } else if (CampanyName == "å£é¾") //ç³»ç»åæ° å®¢æ·å®å¶ååç§° { @@ -2171,6 +2244,7 @@ "," + POOrderBillNoCol.ToString() + "," + HPressModelCol.ToString() + "," + HGBBarCodeCol.ToString() + "," + HCustomBatchNoCol.ToString() + "," + HRemarkCol.ToString(); //设置å计å string sTotalCol = HQtyCol.ToString(); @@ -2179,7 +2253,7 @@ ClsPub1.initGridLast(sAllowCol, sTotalCol, oSumGrid); //---------------------------- grdSub.ColumnCount = 74; //æ»åæ° grdSub.ColumnCount = 75; //æ»åæ° ClsPub1.initGridFst(grdSub, this.Name); grdSub.Columns[HSelectCol].HeaderText = "éæ©"; grdSub.Columns[HTMCol].HeaderText = "æ¡ç ç¼å·"; @@ -2196,7 +2270,7 @@ grdSub.Columns[HPinfan2Col].HeaderText = "åçª"; grdSub.Columns[HPinfanBarCode2Col].HeaderText = "HPinfanBarCode"; grdSub.Columns[HBatchNo2Col].HeaderText = "æ¹å·2"; grdSub.Columns[HCustomBatchNo2Col].HeaderText = "æ¹å·"; grdSub.Columns[HCustomBatchNo2Col].HeaderText = "å®¢æ·æ¹æ¬¡å·"; grdSub.Columns[HUnitID2Col].HeaderText = "计éåä½ID"; grdSub.Columns[HUnitNumber2Col].HeaderText = "计éåä½ä»£ç "; grdSub.Columns[HUnitName2Col].HeaderText = "计éåä½"; @@ -2252,6 +2326,7 @@ grdSub.Columns[HJiaYeL2Col].HeaderText = "å æ¶²é"; grdSub.Columns[POOrderBillNo2Col].HeaderText = "éè´è®¢åå·"; grdSub.Columns[HBarCode_Pack2Col].HeaderText = "ææ¡ç ç¼å·"; grdSub.Columns[HCusBarCodeCol].HeaderText = "å®¢æ·æ¡ç "; //æ ¼å¼å éèå grdSub.Columns[HBarCodeType2Col].Visible = false; @@ -2318,6 +2393,7 @@ grdSub.Columns[POOrderBillNo2Col].Visible = false; grdSub.Columns[HBarCode_Pack2Col].Visible = false; grdSub.Columns[HCustomQty12Col].Visible = false; grdSub.Columns[HCusBarCodeCol].Visible = false; if (CampanyName == "é©çµ") //ç³»ç»åæ° å®¢æ·å®å¶ååç§° { @@ -2359,6 +2435,8 @@ grdSub.Columns[HPinfan2Col].Visible = true; grdSub.Columns[HAuxPropNumber2Col].Visible = true; grdSub.Columns[HAuxPropName2Col].Visible = true; grdSub.Columns[HCustomBatchNo2Col].Visible = true; grdSub.Columns[HCusBarCodeCol].Visible = true; } else if (CampanyName == "å£é¾") //ç³»ç»åæ° å®¢æ·å®å¶ååç§° { @@ -3107,6 +3185,7 @@ "," + HBatchNoCol.ToString() + "," + HSupNumberCol.ToString() + "," + POOrderBillNoCol.ToString() + "," + HCustomBatchNoCol.ToString() + "," + HMinQtyCol.ToString(); } grdMain.Columns[HBillNoCol].ReadOnly = true; @@ -3193,6 +3272,7 @@ "," + POOrderBillNoCol.ToString() + "," + HPressModelCol.ToString() + "," + HGBBarCodeCol.ToString() + "," + HCustomBatchNoCol.ToString() + "," + HMinQtyCol.ToString(); } grdMain.Columns[HBillNoCol].ReadOnly = true;