bug
lu
5 天以前 6b7f640c7952a3948b896d4c585d416f546788a1
DevApp/Gs.DevApp/UserControl/SelectDeleteBar.cs
@@ -16,11 +16,14 @@
        private readonly string _webServiceName = "VArrivalBarcodeManager/";
        private string aboutGuid = "";
        private string aboutType = "";//后盖码
        /// <summary>
        /// 父亲guid
        ///
        /// </summary>
        /// <param name="_aboutGuid"></param>
        public SelectDeleteBar(string _aboutGuid, string _aboutType)
        /// <param name="_aboutGuid">父亲guid</param>
        /// <param name="_aboutType">类别(后盖码,追溯码,受托入库等)</param>
        /// <param name="_qcGuid">qcGuid,在返工重条的时候</param>
        public SelectDeleteBar(string _aboutGuid, string _aboutType,string _qcGuid="")
        {
            InitializeComponent();
            this.gridView1.CustomDrawColumnHeader += (s, e) => { Gs.DevApp.ToolBox.UtilityHelper.CustomDrawColumnHeader(s, e); };
@@ -34,8 +37,10 @@
            this.Text = "批量操作【" + this.aboutType + "】,【" + this.aboutGuid + "】";
            switch (aboutType)
            {
                case "采购入库":
                    btnDelete.Visible = false;
                    break;
                case "后盖码":
                    btnDelete.Visible = true;
                    colT1.Caption = "绑定托板码";
                    colT2.Caption = "绑定追溯码";
                    break;
@@ -72,7 +77,7 @@
                }
                if (sb.Length <= 0)
                {
                    MsgHelper.Warning("请勾选你要删除的条码!");
                    MsgHelper.ShowError("请勾选你要删除的条码!");
                    return;
                }
                var _obj = new
@@ -103,7 +108,7 @@
                    MsgHelper.ShowError("提示:" + ex.Message);
                    return;
                }
                UpdateParent?.Invoke(this, new UpdateParentEventArgs { StringSingle = strMsg }); Close();
                UpdateParent?.Invoke(this, new UpdateParentEventArgs { StringSingle = strMsg, Data="delete" }); Close();
            };
            btnPrint.Click += (s, e) =>
            {
@@ -126,11 +131,11 @@
                }
                if (sb.Length <= 0)
                {
                    MsgHelper.Warning("请勾选你要打印的条码!");
                    MsgHelper.ShowError("请勾选你要打印的条码!");
                    return;
                }
                UpdateParent?.Invoke(this, new UpdateParentEventArgs { StringSingle = sb.ToString() }); Close();
                UpdateParent?.Invoke(this, new UpdateParentEventArgs { StringSingle = sb.ToString() ,Data = "print" }); Close();
            };
        }