| | |
| | | }; |
| | | btnGood.Click += (s, e) => |
| | | { |
| | | getModel(lbGuid.Text.Trim(), txt_badDescription.TextTxt, txt_badReson.TextTxt, txt_repairMethd.TextTxt, goodTag); |
| | | getModel(lbGuid.Text.Trim(), txt_badDescription.TextTxt, txt_repairReson.TextTxt.Trim(), txt_repairMethd.TextTxt.Trim(), goodTag); |
| | | }; |
| | | btnBad.Click += (s, e) => |
| | | { |
| | | getModel(lbGuid.Text.Trim(), txt_badDescription.TextTxt, txt_badReson.TextTxt, txt_repairMethd.TextTxt, badTag); |
| | | |
| | | getModel(lbGuid.Text.Trim(), txt_badDescription.TextTxt, txt_repairReson.TextTxt.Trim(), txt_repairMethd.TextTxt.Trim(), badTag); |
| | | }; |
| | | } |
| | | /// <summary> |
| | |
| | | /// <param name="_checkResult"></param> |
| | | private void getModel(string strGuid, string _badXx, string _badYy, string _badDc, string _checkResult) |
| | | { |
| | | if (!string.IsNullOrEmpty(_checkResult)) { |
| | | string _reason = txt_repairReson.TextTxt.Trim(); |
| | | if (string.IsNullOrEmpty(_reason)) |
| | | { |
| | | Toast vm = new Toast(0, "不良原因不能为空!"); |
| | | vm.Show(); |
| | | return; |
| | | }; |
| | | string _meth = txt_repairMethd.TextTxt.Trim(); |
| | | if (string.IsNullOrEmpty(_meth)) |
| | | { |
| | | Toast vm = new Toast(0, "不良对策不能为空!"); |
| | | vm.Show(); |
| | | return; |
| | | }; |
| | | } |
| | | |
| | | string _barCode = txt_barCode.Text.Trim(); |
| | | var _obj = new |
| | | { |
| | |
| | | lbSum3.Text = dy.lbSum3; |
| | | prog1.Position = dy.jd; |
| | | txt_barCode.ReadOnly = false; |
| | | txt_badReson.IsReadly = false; |
| | | txt_repairReson.IsReadly = false; |
| | | txt_repairMethd.IsReadly = false; |
| | | JObject _job = JObject.Parse(strJson); |
| | | JArray array = new JArray(); |