啊鑫
2024-11-05 584e342f240f37c2a1f58483c6d5a39c4f1ffd4e
DevApp/Gs.DevApp/DevFrm/QC/Frm_MesQaMj.cs
@@ -54,8 +54,38 @@
            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>
        /// 双击事件
        /// </summary>