| | |
| | | txt_itemId.EditChanged += (s, e) => |
| | | { |
| | | txt_itemNo.Text = this.txt_itemId.GetCode(); |
| | | var ItemId = this.txt_itemId.GetId(); |
| | | var ItemName = this.txt_itemId.GetName(); |
| | | GetCount(ItemId, ItemName); |
| | | }; |
| | | } |
| | | |
| | | private void GetCount(string ItemId,string ItemName) |
| | | { |
| | | //string rowGuid = "", rowName = ""; |
| | | //(rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, lbGuid, txt_itemNo, gridView1); |
| | | //if (string.IsNullOrEmpty(rowGuid)) |
| | | //{ |
| | | // ToolBox.MsgHelper.Warning("请先选择你要操作的行!"); |
| | | // return; |
| | | //} |
| | | |
| | | try |
| | | { |
| | | string strJson = UtilityHelper.HttpPost("", _webServiceName + "GetCount", JsonConvert.SerializeObject(ItemId)); |
| | | ReturnModel<dynamic> _rtn = ToolBox.UtilityHelper.ReturnToDynamic(strJson); |
| | | if (_rtn.rtnCode > 0) |
| | | { |
| | | UtilityHelper.JumpToTab(xtraTabControl1, 0); |
| | | MsgHelper.Warning("提示:"+ ItemName+"这个物料已经维护了免检数据"); |
| | | } |
| | | |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | ToolBox.MsgHelper.Warning("提示:" + ex.Message); |
| | | } |
| | | } |
| | | /// <summary> |
| | | /// 双击事件 |
| | |
| | | /// <param name="e"></param> |
| | | private void ToolBarMenu1_btnLoadClick(object sender, EventArgs e) |
| | | { |
| | | UtilityHelper.JumpToTab(xtraTabControl1, 0); |
| | | getPageList(1, UtilityHelper.GetPageSize()); |
| | | if (xtraTabControl1.SelectedTabPageIndex == 1) |
| | | getModel(lbGuid.Text.Trim(), false, 999); |
| | | else |
| | | getPageList(1, UtilityHelper.GetPageSize()); |
| | | } |
| | | /// <summary> |
| | | /// 修改事件 |