| | |
| | | _type = "工序G003:水检不良描述"; |
| | | if (txt_gx.Text.Trim() == fGxZhongJian) |
| | | _type = "工序G004:终检不良描述"; |
| | | UcDictionarySelect frm = new UcDictionarySelect(_type, " a.s_type='" + _type + "' and pid<>'00000000-0000-0000-0000-000000000000'", _msg); |
| | | string condition = $" pid<>'00000000-0000-0000-0000-000000000000' " ; |
| | | if(txt_orgId.Text.Trim() == "104554") // 电器 |
| | | { |
| | | condition += $" and a.s_type = '{_type}' "; |
| | | } |
| | | if (txt_orgId.Text.Trim() == "104540") // 魔凡 |
| | | { |
| | | condition += $" and a.s_type = '魔凡{_type}' "; |
| | | } |
| | | |
| | | UcDictionarySelect frm = new UcDictionarySelect(_type, condition, _msg); |
| | | frm.UpdateParent += (ss, ee) => |
| | | { |
| | | System.Text.StringBuilder stringBuilder = new System.Text.StringBuilder(); |
| | |
| | | if (!string.IsNullOrEmpty(_msg)) |
| | | { |
| | | // Toast vm = new Toast((goodTag == "√" ? 1 : -1), _msg); 2025-08-20 修改提示外观 |
| | | Toast vm = new Toast(1, _rtn.rtnMsg); |
| | | Toast vm; |
| | | if (_msg.EndsWith(".")) |
| | | vm = new Toast(-1, _rtn.rtnMsg); |
| | | else |
| | | vm = new Toast(1, _rtn.rtnMsg); |
| | | vm.Show(); |
| | | } |
| | | } |