| | |
| | | /// <param name="_aboutGuid">父亲guid</param> |
| | | /// <param name="_aboutType">类别(后盖码,追溯码,受托入库等)</param> |
| | | /// <param name="_qcGuid">qcGuid,在返工重条的时候</param> |
| | | public SelectDeleteBar(string _aboutGuid, string _aboutType,string _qcGuid="") |
| | | public SelectDeleteBar(string _aboutGuid, string _aboutType, string _qcGuid = "") |
| | | { |
| | | InitializeComponent(); |
| | | this.gridView1.CustomDrawColumnHeader += (s, e) => { Gs.DevApp.ToolBox.UtilityHelper.CustomDrawColumnHeader(s, e); }; |
| | |
| | | this.Text = "批量操作【" + this.aboutType + "】,【" + this.aboutGuid + "】"; |
| | | switch (aboutType) |
| | | { |
| | | case "采购入库": |
| | | case "托板码": |
| | | btnDelete.Visible = false; |
| | | break; |
| | | case "追溯码": |
| | | btnDelete.Visible = false; |
| | | colT1.Caption = "线体编号"; |
| | | colT2.Caption = "线体名称"; |
| | | break; |
| | | case "后盖码": |
| | | colT1.Caption = "绑定托板码"; |
| | | colT2.Caption = "绑定追溯码"; |
| | | break; |
| | | case "追溯码": |
| | | colT1.Caption = "线体编号"; |
| | | colT2.Caption = "线体名称"; |
| | | break; |
| | | |
| | | default: |
| | | colT1.Caption = "入库人"; |
| | | colT2.Caption = "入库日期"; |
| | |
| | | MsgHelper.ShowError("提示:" + ex.Message); |
| | | return; |
| | | } |
| | | UpdateParent?.Invoke(this, new UpdateParentEventArgs { StringSingle = strMsg, Data="delete" }); Close(); |
| | | UpdateParent?.Invoke(this, new UpdateParentEventArgs { StringSingle = strMsg, Data = "delete" }); Close(); |
| | | }; |
| | | btnPrint.Click += (s, e) => |
| | | { |
| | |
| | | return; |
| | | } |
| | | |
| | | UpdateParent?.Invoke(this, new UpdateParentEventArgs { StringSingle = sb.ToString() ,Data = "print" }); Close(); |
| | | UpdateParent?.Invoke(this, new UpdateParentEventArgs { StringSingle = sb.ToString(), Data = "print" }); Close(); |
| | | }; |
| | | } |
| | | |