Browse Source

去除字符串截取

callm 1 week ago
parent
commit
d52fe58eb9

+ 1 - 2
UAS_MES_YDCY/FunctionCode/Make/Make_ColorBoxLoadPrint.cs

@@ -454,8 +454,7 @@ namespace UAS_MES_NEW.Make
             SPID.Add(sp_id);
             OperateResult.AppendText(">>物料" + sp_soncode + "采集成功,条码" + code.Text + "\n", Color.Green);
             LabelDataGridView.Rows[RemainIndex].Cells["BarCode"].Value = code.Text;
-            //if (code.Text.Length > 80)
-            //    OperateResult.AppendText(">>采集条码" + code.Text + "程度超过长度限制80,内容截取前80位进行采集\n", Color.Red);
+          
             code.Clear();
             RemainIndex = RemainIndex + 1;
             //如果+1后不小于B序列的长度,则已采集完成,不需要进行提示了

+ 0 - 2
UAS_MES_YDCY/FunctionCode/Make/Make_ColorBoxLoadPrintBZ.cs

@@ -453,8 +453,6 @@ namespace UAS_MES_NEW.Make
             SPID.Add(sp_id);
             OperateResult.AppendText(">>物料" + sp_soncode + "采集成功,条码" + code.Text + "\n", Color.Green);
             LabelDataGridView.Rows[RemainIndex].Cells["BarCode"].Value = code.Text;
-            //if (code.Text.Length > 80)
-            //    OperateResult.AppendText(">>采集条码" + code.Text + "程度超过长度限制80,内容截取前80位进行采集\n", Color.Red);
             code.Clear();
             RemainIndex = RemainIndex + 1;
             //如果+1后不小于B序列的长度,则已采集完成,不需要进行提示了

+ 0 - 2
UAS_MES_YDCY/FunctionCode/Make/Make_FeedingCollection.cs

@@ -563,8 +563,6 @@ namespace UAS_MES_NEW.Make
             OperateResult.AppendText(">>物料" + sp_soncode + "采集成功,条码" + code.Text + "\n", Color.Green);
             LabelDataGridView.Rows[RemainIndex].Cells["BarCode"].Value = code.Text;
             LabelDataGridView.Rows[RemainIndex].Cells["BarCode"].Style.BackColor= Color.Green;
-            //if (code.Text.Length > 80)
-            //    OperateResult.AppendText(">>采集条码" + code.Text + "程度超过长度限制80,内容截取前80位进行采集\n", Color.Red);
             code.Clear();
             RemainIndex = RemainIndex + 1;
             //如果+1后不小于B序列的长度,则已采集完成,不需要进行提示了

+ 0 - 2
UAS_MES_YDCY/FunctionCode/Make/Make_FeedingCollectionBadOnly.cs

@@ -555,8 +555,6 @@ namespace UAS_MES_NEW.Make
             OperateResult.AppendText(">>物料" + sp_soncode + "采集成功,条码" + code.Text + "\n", Color.Green);
             LabelDataGridView.Rows[RemainIndex].Cells["BarCode"].Value = code.Text;
             LabelDataGridView.Rows[RemainIndex].Cells["BarCode"].Style.BackColor = Color.Green;
-            if (code.Text.Length > 80)
-                OperateResult.AppendText(">>采集条码" + code.Text + "程度超过长度限制80,内容截取前80位进行采集\n", Color.Red);
             code.Clear();
             RemainIndex = RemainIndex + 1;
             //如果+1后不小于B序列的长度,则已采集完成,不需要进行提示了

+ 0 - 2
UAS_MES_YDCY/FunctionCode/Make/Make_FeedingCollectionBadOnlyNEW.cs

@@ -582,8 +582,6 @@ namespace UAS_MES_NEW.Make
             LabelDataGridView.Rows[RemainIndex].Cells["BarCode"].Value = code.Text;
             LabelDataGridView.Rows[RemainIndex].Cells["BarCode"].Style.BackColor = Color.Green;
             LabelDataGridView.Rows[RemainIndex].Cells["sp_sntype"].Value = sp_sntype;
-            if (code.Text.Length > 80)
-                OperateResult.AppendText(">>采集条码" + code.Text + "程度超过长度限制80,内容截取前80位进行采集\n", Color.Red);
             code.Clear();
             RemainIndex = RemainIndex + 1;
             //如果+1后不小于B序列的长度,则已采集完成,不需要进行提示了

+ 0 - 2
UAS_MES_YDCY/FunctionCode/Make/Make_FeedingCollectionCombine.cs

@@ -439,8 +439,6 @@ namespace UAS_MES_NEW.Make
             SPID.Add(sp_id);
             OperateResult.AppendText(">>物料" + sp_soncode + "采集成功,条码" + code.Text + "\n", Color.Green);
             LabelDataGridView.Rows[RemainIndex].Cells["BarCode"].Value = code.Text;
-            //if (code.Text.Length > 80)
-            //    OperateResult.AppendText(">>采集条码" + code.Text + "程度超过长度限制80,内容截取前80位进行采集\n", Color.Red);
             code.Clear();
             RemainIndex = RemainIndex + 1;
             //如果+1后不小于B序列的长度,则已采集完成,不需要进行提示了

+ 0 - 2
UAS_MES_YDCY/FunctionCode/Make/Make_FeedingCollectionCombineFix.cs

@@ -586,8 +586,6 @@ namespace UAS_MES_NEW.Make
             SPID.Add(sp_id);
             OperateResult.AppendText(">>物料" + sp_soncode + "采集成功,条码" + code.Text + "\n", Color.Green);
             LabelDataGridView.Rows[RemainIndex].Cells["BarCode"].Value = code.Text;
-            //if (code.Text.Length > 80)
-            //    OperateResult.AppendText(">>采集条码" + code.Text + "程度超过长度限制80,内容截取前80位进行采集\n", Color.Red);
             code.Clear();
             RemainIndex = RemainIndex + 1;
             //如果+1后不小于B序列的长度,则已采集完成,不需要进行提示了

+ 1 - 3
UAS_MES_YDCY/FunctionCode/Make/Make_FeedingCollectionNEW.cs

@@ -593,10 +593,8 @@ namespace UAS_MES_NEW.Make
             SPID.Add(sp_id);
             OperateResult.AppendText(">>物料" + sp_soncode + "采集成功,条码" + code.Text + "\n", Color.Green);
             LabelDataGridView.Rows[RemainIndex].Cells["BarCode"].Value = code.Text;
-            LabelDataGridView.Rows[RemainIndex].Cells["BarCode"].Style.BackColor=Color.Green;
+            LabelDataGridView.Rows[RemainIndex].Cells["BarCode"].Style.BackColor = Color.Green;
             LabelDataGridView.Rows[RemainIndex].Cells["sp_sntype"].Value = sp_sntype;
-            if (code.Text.Length > 80)
-                OperateResult.AppendText(">>采集条码" + code.Text + "程度超过长度限制80,内容截取前80位进行采集\n", Color.Red);
             code.Clear();
             RemainIndex = RemainIndex + 1;
             //如果+1后不小于B序列的长度,则已采集完成,不需要进行提示了

+ 0 - 2
UAS_MES_YDCY/FunctionCode/Make/Make_FeedingCollectionReCall.cs

@@ -573,8 +573,6 @@ namespace UAS_MES_NEW.Make
             SPID.Add(sp_id);
             OperateResult.AppendText(">>物料" + sp_fsoncode + "采集成功,条码" + code.Text + "\n", Color.Green);
             LabelDataGridView.Rows[RemainIndex].Cells["BarCode"].Value = code.Text;
-            if (code.Text.Length > 80)
-                OperateResult.AppendText(">>采集条码" + code.Text + "程度超过长度限制80,内容截取前80位进行采集\n", Color.Red);
             code.Clear();
             RemainIndex = RemainIndex + 1;
             //如果+1后不小于B序列的长度,则已采集完成,不需要进行提示了