| | |
| | | public Frm_Work01(string _fGx, string _fBc) |
| | | { |
| | | InitializeComponent(); |
| | | this.Text = "工序采集 - " + _fGx+ " - "+ fBc; |
| | | this.Text = "工序采集 - " + _fGx + " - " + fBc; |
| | | this.fGx = _fGx; |
| | | this.fBc = _fBc; |
| | | txt_gx.Text = fGx; |
| | |
| | | { |
| | | getModel("", "√"); |
| | | }; |
| | | btnBad.Click += (s, e) => { |
| | | btnBad.Click += (s, e) => |
| | | { |
| | | getModel("", "×"); |
| | | }; |
| | | } |
| | |
| | | string _inBz = ""; ; //备注 |
| | | if (string.IsNullOrEmpty(_barCode)) |
| | | { |
| | | Toast vm = new Toast(System.Drawing.Color.DodgerBlue, "请先扫码"); |
| | | Toast vm = new Toast(-1, "~请先扫追溯码~"); |
| | | vm.Show(); |
| | | return; |
| | | } |
| | |
| | | string _msg = _rtn.rtnMsg; |
| | | if (!string.IsNullOrEmpty(_msg)) |
| | | { |
| | | //设置单窗口出现弹出的速度 |
| | | this.alertControl1.FormDisplaySpeed = DevExpress.XtraBars.Alerter.AlertFormDisplaySpeed.Fast; |
| | | //设置显示多少时间窗口会自动关闭 以毫秒为单位 |
| | | this.alertControl1.AutoFormDelay = 3000; |
| | | //设置提出窗口的显示的位置 |
| | | this.alertControl1.FormLocation = DevExpress.XtraBars.Alerter.AlertFormLocation.BottomLeft; |
| | | this.alertControl1.Show(this, "提示!", _msg); |
| | | Toast vm = new Toast(1, _msg); |
| | | vm.Show(); |
| | | }; |
| | | } |
| | | else |
| | | ToolBox.MsgHelper.ShowError("提示:" + _rtn.rtnMsg); |
| | | { |
| | | Toast vm = new Toast(-1, _rtn.rtnMsg); |
| | | vm.Show(); |
| | | } |
| | | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | ToolBox.MsgHelper.ShowError("提示:" + ex.Message); |
| | | Toast vm = new Toast(-1, ex.Message); |
| | | vm.Show(); |
| | | } |
| | | } |
| | | } |