From 0dff055a40cc40d0d97202f544d22ad5423045ef Mon Sep 17 00:00:00 2001 From: zgq <519541279@qq.com> Date: 星期一, 16 八月 2021 22:38:17 +0800 Subject: [PATCH] 编码 --- PlanM/数据导入/Gy_DataIn_RoutingBill.cs | 32 ++++++++++++++++---------------- 1 files changed, 16 insertions(+), 16 deletions(-) diff --git "a/PlanM/\346\225\260\346\215\256\345\257\274\345\205\245/Gy_DataIn_RoutingBill.cs" "b/PlanM/\346\225\260\346\215\256\345\257\274\345\205\245/Gy_DataIn_RoutingBill.cs" index 784c1ca..3488207 100644 --- "a/PlanM/\346\225\260\346\215\256\345\257\274\345\205\245/Gy_DataIn_RoutingBill.cs" +++ "b/PlanM/\346\225\260\346\215\256\345\257\274\345\205\245/Gy_DataIn_RoutingBill.cs" @@ -10,7 +10,7 @@ namespace PlanM { - public partial class Gy_DataIn_RoutingBill :BLL.Gy_DataInTmp + public partial class Gy_DataIn_RoutingBill : BLL.Gy_DataInTmp { public Gy_DataIn_RoutingBill() { @@ -54,7 +54,7 @@ { base.sSheetName = txtHSheetName.Text; return base.OpenExcelData(); - } + } /// <summary> /// 初始化界面 @@ -62,7 +62,7 @@ public override void initData() { base.initData(); - base.sSheetName = txtHSheetName.Text ; + base.sSheetName = txtHSheetName.Text; base.ModRightName = "Gy_DataIn_RoutingBill"; base.ModRightNameCheck = base.ModRightName + base.ModRightNameCheck; base.ModRightNameClose = base.ModRightName + base.ModRightNameClose; @@ -290,7 +290,7 @@ b = BillNew.AddBill(ref ClsPub.sExeReturnInfo); if (b == false) { - MessageBox.Show("第" + i.ToString() + "行,物料" + BillNew.omodel.HMaterNumber + "新增工艺路线失败!代码293行中,原因:"+ ClsPub.sExeReturnInfo); + MessageBox.Show("第" + i.ToString() + "行,物料" + BillNew.omodel.HMaterNumber + "新增工艺路线失败!代码293行中,原因:" + ClsPub.sExeReturnInfo); return; } c++; @@ -378,7 +378,7 @@ } catch (Exception e) { - MessageBox.Show("导入失败!原因:" + e.Message, "提示"); + MessageBox.Show("导入失败!原因:" + e.Message, "提示"); } } @@ -386,7 +386,7 @@ private bool WriteClass(int row) { string sHNumber = ""; - string sHNamePoc = ""; + string sHNamePoc = ""; string sHNumberCen = ""; Single sWorkQty = 0; Single sBeginDayQty = 0; @@ -394,7 +394,7 @@ Single sHPassRate = 0; //long HItemID = 0; // - sHNumber = DBUtility.ClsPub.isStrNull(grdMain.Rows[row].Cells[HMaterNumberCol].Value); + sHNumber = DBUtility.ClsPub.isStrNull(grdMain.Rows[row].Cells[HMaterNumberCol].Value); sHNumberCen = DBUtility.ClsPub.isStrNull(grdMain.Rows[row].Cells[HWorkCenterNameCol].Value); sHNamePoc = DBUtility.ClsPub.isStrNull(grdMain.Rows[row].Cells[HProcNameCol].Value); @@ -404,7 +404,7 @@ sHPassRate = DBUtility.ClsPub.isSingle(grdMain.Rows[row].Cells[HPassRateCol].Value); //判断是否允许 保存 - Model.ClsGy_RoutingBillSub oSub=new Model.ClsGy_RoutingBillSub(); + Model.ClsGy_RoutingBillSub oSub = new Model.ClsGy_RoutingBillSub(); //得到工序内码 if (oProcHlp.GetInfoByName(sHNamePoc)) @@ -430,14 +430,14 @@ oSub.HQueueTime = 0; oSub.HMoveTime = 0; // - + // oSub.HCloseMan = ""; oSub.HCloseType = false; oSub.HSourceInterID = 0; oSub.HSourceEntryID = 0; oSub.HSourceBillType = ""; - oSub.HSourceBillNo =""; + oSub.HSourceBillNo = ""; oSub.HRelationQty = 0; oSub.HRelationMoney = 0; @@ -460,13 +460,13 @@ //检查物料 private bool Checkdata() { - bool b=false; + bool b = false; string sErrMsg = ""; string sMsg = ""; for (int i = 0; i <= grdMain.Rows.Count - 1; i++) { string sHNumber = ""; - string sHNamePoc = ""; + string sHNamePoc = ""; string sHNumberCen = ""; Single sWorkQty = 0; Single sHPassRate = 0; @@ -477,7 +477,7 @@ sHNamePoc = DBUtility.ClsPub.isStrNull(grdMain.Rows[i].Cells[HProcNameCol].Value); sWorkQty = DBUtility.ClsPub.isSingle(grdMain.Rows[i].Cells[HWorkQtyCol].Value); sHPassRate = DBUtility.ClsPub.isSingle(grdMain.Rows[i].Cells[HPassRateCol].Value); - if (sHNumber != "" ) + if (sHNumber != "") { // int index = i + 1; @@ -504,9 +504,9 @@ if (!oMaterHlp.GetInfoByNumber(sHNumber)) { sMsg = "[" + sHNumber + "]物料不存在"; - if (sErrMsg.Contains(sMsg)==false) + if (sErrMsg.Contains(sMsg) == false) { - sErrMsg = sErrMsg + "[" + sHNumber + "]物料不存在\r\n" ; + sErrMsg = sErrMsg + "[" + sHNumber + "]物料不存在\r\n"; } b = true; } @@ -533,7 +533,7 @@ } - } + } } if (b == true) { -- Gitblit v1.9.1