| | |
| | | toolBarMenu1.btnDelClick += ToolBarMenu1_btnDelClick1; |
| | | toolBarMenu1.btnEscClick += ToolBarMenu1_btnEscClick; |
| | | toolBarMenu1.btnQueryClick += ToolBarMenu1_btnQueryClick; |
| | | toolBarMenu1.btnChkClick += ToolBarMenu1_btnChkClick; |
| | | toolBarMenu1.btnFChkClick += ToolBarMenu1_btnFChkClick; |
| | | toolBarMenu1.btnPiZhunClick += ToolBarMenu1_btnPiZhunClick; |
| | | gcMain.MouseDoubleClick += GcMain_MouseDoubleClick; |
| | | getPageList(1, UtilityHelper.GetPageSize()); |
| | | pageBar1.PagerEvent += PageBar1_PagerEvent; |
| | |
| | | _filterList = e.FilterList; |
| | | getPageList(1, pageBar1.RowsCount); |
| | | } |
| | | /// <summary> |
| | | /// 批准 |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="e"></param> |
| | | private void ToolBarMenu1_btnPiZhunClick(object sender, EventArgs e) |
| | | { |
| | | string rowGuid, rowName; |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, |
| | | lbGuid, txt_itemNo, gridView1); |
| | | try |
| | | { |
| | | string strJson = UtilityHelper.HttpPost("", _webServiceName + "Approval", JsonConvert.SerializeObject(rowGuid)); |
| | | ReturnModel<dynamic> _rtn = ToolBox.UtilityHelper.ReturnToDynamic(strJson); |
| | | if (_rtn.rtnCode > 0) |
| | | { |
| | | UtilityHelper.JumpToTab(xtraTabControl1, 0); |
| | | getPageList(1, UtilityHelper.GetPageSize()); |
| | | } |
| | | ToolBox.MsgHelper.Warning("提示:" + _rtn.rtnMsg); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | ToolBox.MsgHelper.Warning("提示:" + ex.Message); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 反审核 |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="e"></param> |
| | | /// <exception cref="NotImplementedException"></exception> |
| | | private void ToolBarMenu1_btnFChkClick(object sender, EventArgs e) |
| | | { |
| | | toolBarMenu1.guidKey = ""; |
| | | string rowGuid, rowName; |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, |
| | | lbGuid, txt_itemNo, gridView1); |
| | | toolBarMenu1.guidKey = rowGuid; |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 审核事件 |
| | | /// </summary> |
| | | /// <param name="sender"></param> |
| | | /// <param name="e"></param> |
| | | private void ToolBarMenu1_btnChkClick(object sender, EventArgs e) |
| | | { |
| | | toolBarMenu1.guidKey = ""; |
| | | string rowGuid, rowName; |
| | | (rowGuid, rowName) = UtilityHelper.GetCurrentRow(xtraTabControl1, |
| | | lbGuid, txt_itemNo, gridView1); |
| | | toolBarMenu1.guidKey = rowGuid; |
| | | } |
| | | /// <summary> |
| | | /// 取消事件 |
| | | /// </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> |
| | |
| | | private void ToolBarMenu1_btnSaveClick(object sender, EventArgs e) |
| | | { |
| | | toolBarMenu1.isSetBtn = false; |
| | | string _ItemId = txt_itemId.GetId() |
| | | ; if (string.IsNullOrEmpty(_ItemId)) |
| | | string _ItemId = txt_ItemId.GetId() |
| | | ; if (string.IsNullOrEmpty(_ItemId)) |
| | | { |
| | | MsgHelper.Warning("请选择物料!"); |
| | | // txt_account.Focus(); |
| | | txt_ItemId.Focus(); |
| | | return; |
| | | } |
| | | gvMx1.CloseEditor(); |
| | |
| | | if (row != null) |
| | | lst.Add(new MesQmCheckitemDt |
| | | { |
| | | Guid = null, |
| | | Guid = UtilityHelper.ToGuid(row["guid"].ToString()), |
| | | Forder = 1, |
| | | FcheckItem = row["FcheckItem"].ToString(), |
| | | SampleSizeNo = row["SampleSizeNo"].ToString(), |
| | |
| | | FcheckLevel = row["FcheckLevel"].ToString(), |
| | | Fstand = row["Fstand"].ToString(), |
| | | FacLevel = row["FacLevel"].ToString(), |
| | | FspecRequ = row["FspecRequ"].ToString(), |
| | | Memo = row["memo"].ToString(), |
| | | FupAllow = row["FupAllow"].ToString(), |
| | | FdownAllow = row["FdownAllow"].ToString(), |
| | | }); |
| | | } |
| | | |
| | | var _obj = new MesQmCheckitem |
| | | { |
| | | Guid = UtilityHelper.ToGuid(lbGuid.Text.Trim()), |
| | | ItemId = long.Parse(_ItemId), |
| | | Memo = txt_memo.Text.Trim(), |
| | | ItemNo = txt_itemNo.Text.Trim(), |
| | | IsEnabled = txt_isenabled.Checked, |
| | | Isenabled = txt_isenabled.Checked, |
| | | Ftype = "1", |
| | | Fversion =Gs.DevApp.ToolBox.UtilityHelper.ToLong( txt_fversion.Text.Trim()), |
| | | list = lst |
| | | }; |
| | | |
| | | try |
| | | { |
| | | var strJson = UtilityHelper.HttpPost("", |
| | |
| | | { |
| | | lbGuid.Text = _rtn.rtnData; |
| | | toolBarMenu1.isSetBtn = true; |
| | | UtilityHelper.ChangeEnableByControl(panel1.Controls, |
| | | false); |
| | | var gridViews = new List<GridView>(); |
| | | gridViews.Add(gvMx1); |
| | | UtilityHelper.ChangeEnableByControl(panel1.Controls, false, |
| | | gridViews); |
| | | } |
| | | } |
| | | catch (Exception ex) |
| | |
| | | itm.fileValue + "'"); |
| | | |
| | | var pgq = new PageQueryModel(curPage, pageSize, |
| | | "create_date", "asc", "", _sbSqlWhere.ToString()); |
| | | "a.create_date", "asc", "", _sbSqlWhere.ToString()); |
| | | var json = JsonConvert.SerializeObject(pgq); |
| | | try |
| | | { |
| | | var strReturn = UtilityHelper.HttpPost("", |
| | | _webServiceName + "GetListPageIQC", json); |
| | | // _webServiceName + "GetListPageIQC", json); |
| | | _webServiceName + "GetListPage", json); |
| | | var dd = |
| | | UtilityHelper.ReturnToTablePage(strReturn); |
| | | if (dd.rtnCode > 0) |
| | |
| | | try |
| | | { |
| | | var strJson = UtilityHelper.HttpPost("", |
| | | _webServiceName + "GetModelIQC", |
| | | // _webServiceName + "GetModelIQC", |
| | | _webServiceName + "GetModel", |
| | | JsonConvert.SerializeObject(_obj)); |
| | | var _rtn = |
| | | UtilityHelper.ReturnToDynamic(strJson); |
| | |
| | | |
| | | private void _setIno() |
| | | { |
| | | txt_itemId.KeyFile = "id"; |
| | | txt_itemId.EditChanged += (s, e) => |
| | | txt_ItemId.KeyFile = "id"; |
| | | txt_ItemId.EditChanged += (s, e) => |
| | | { |
| | | txt_itemModel.Text = this.txt_itemId.GetModel(); |
| | | txt_itemNo.Text = this.txt_itemId.GetCode(); |
| | | txt_itemModel.Text = this.txt_ItemId.GetModel(); |
| | | txt_itemNo.Text = this.txt_ItemId.GetCode(); |
| | | }; |
| | | btnSelect.Click += (s, e) => |
| | | { |
| | |
| | | ,"4.特殊检验水平(S1)" |
| | | ,"5.特殊检验水平(S2)" |
| | | ,"6.特殊检验水平(S3)" |
| | | ,"7.特殊检验水平(S4)," |
| | | ,"7.特殊检验水平(S4)" |
| | | }); |
| | | } |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | #endregion |
| | | |
| | | |
| | | |
| | | } |
| | | } |