소스 검색

修改标签打印界面

callm 3 주 전
부모
커밋
09959927f5
2개의 변경된 파일3개의 추가작업 그리고 13개의 파일을 삭제
  1. 1 11
      UAS_MES_YDCY/CustomControl/TextBoxWithIcon/SnCollectionBox.cs
  2. 2 2
      UAS_MES_YDCY/FunctionCode/Make/Make_SNLabelCheck.cs

+ 1 - 11
UAS_MES_YDCY/CustomControl/TextBoxWithIcon/SnCollectionBox.cs

@@ -1,19 +1,9 @@
-using System;
-using System.Collections.Generic;
-using System.ComponentModel;
-using System.Drawing;
+using System.Drawing;
 using System.Data;
-using System.Linq;
-using System.Text;
 using System.Windows.Forms;
 using UAS_MES_NEW.Entity;
 using UAS_MES_NEW.PublicMethod;
-using DevExpress.XtraBars;
 using UAS_MES_NEW.PublicForm;
-using DevExpress.XtraBars.Docking2010.Views.Widget;
-using DevExpress.XtraSpellChecker;
-using HslCommunication.Profinet.Knx;
-using HslCommunication;
 
 namespace UAS_MES_NEW.CustomControl.TextBoxWithIcon
 {

+ 2 - 2
UAS_MES_YDCY/FunctionCode/Make/Make_SNLabelCheck.cs

@@ -256,7 +256,7 @@ namespace UAS_MES_NEW.Make
                                 dh.BatchInsert(sql.GetString(), new string[] { "LCL_LABELTYPE", "lcl_prefix", "lcl_length", "LCL_LABELVALUE" },
                                     labeltype_list.ToArray(), prefix_list.ToArray(), length_list.ToArray(), value.ToArray());
                                 LogicHandler.DoCommandLog(Tag.ToString(), User.UserCode, oMakeCode, User.UserLineCode, User.UserSourceCode, "上料采集", "上料成功", sn_code.Text, "");
-                                if (!Print.BarTender(Tag.ToString(), ref engine, PrintLabel.Text, PrintLabel.SelectedValue.ToString(), Printer.Text, sn_code.Text, int.Parse(PrintNum.Text == "" ? "1" : PrintNum.Text), ma_code.Text, ma_prodcode.Text, "机身标", "0", out ErrorMessage))
+                                if (!Print.BarTender(Tag.ToString(), ref engine, PrintLabel.Text, PrintLabel.SelectedValue.ToString(), Printer.Text, sn_code.Text, int.Parse(PrintNum.Text == "" ? "1" : PrintNum.Text), ma_code.Text, ma_prodcode.Text, "售后卡", "0", out ErrorMessage))
                                 {
                                     OperateResult.AppendText(ErrorMessage + "\n", Color.Red);
                                 }
@@ -431,7 +431,7 @@ namespace UAS_MES_NEW.Make
 
         private void ma_prodcode_TextChanged(object sender, EventArgs e)
         {
-            DataTable _dt = (DataTable)dh.ExecuteSql("select la_id,la_url,la_isdefault from label where la_prodcode='" + ma_prodcode.Text + "' and la_templatetype='机身标' and la_statuscode='AUDITED' order by la_isdefault", "select");
+            DataTable _dt = (DataTable)dh.ExecuteSql("select la_id,la_url,la_isdefault from label where la_prodcode='" + ma_prodcode.Text + "' and la_templatetype='售后卡' and la_statuscode='AUDITED' order by la_isdefault", "select");
             PrintLabel.DataSource = _dt;
             PrintLabel.DisplayMember = "la_url";
             PrintLabel.ValueMember = "la_id";