| | |
| | | using Newtonsoft.Json.Linq; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Configuration; |
| | | using System.Data; |
| | | using System.Net; |
| | | using System.Threading.Tasks; |
| | | using System.Windows.Forms; |
| | | |
| | |
| | | }, (value) => |
| | | { |
| | | getPageList(this.pageBar1.CurrentPage); |
| | | },lbGuid); |
| | | }, lbGuid); |
| | | getPageList(1); |
| | | pageBar1.PagerEvent += PageBar1_PagerEvent; |
| | | txtJianYan.KeyDown += TxtJianYan_KeyDown; |
| | |
| | | private void BtnIpt_Click(object sender, EventArgs e) |
| | | { |
| | | bool bl = btnLoad.Enabled; |
| | | Frm_MesQaItemsDetect01Input frm = new Frm_MesQaItemsDetect01Input(this.lbGuid.Text.Trim(),bl); |
| | | Frm_MesQaItemsDetect01Input frm = new Frm_MesQaItemsDetect01Input(this.lbGuid.Text.Trim(), bl); |
| | | frm.ShowDialog(); |
| | | } |
| | | |
| | |
| | | private void ToolBarMenu1_btnSaveClick(object sender, EventArgs e) |
| | | { |
| | | toolBarMenu1.isSetBtn = false; |
| | | if ( txt_fcheckResu.Text.Trim()== "N:不合格" && string.IsNullOrEmpty(txt_remarks.Text.Trim())) |
| | | if (txt_fcheckResu.Text.Trim() == "N:不合格" && string.IsNullOrEmpty(txt_remarks.Text.Trim())) |
| | | { |
| | | Gs.DevApp.ToolBox.MsgHelper.Warning("当检验结果不合格时,请填写备注说明!"); |
| | | txt_remarks.Focus(); |
| | |
| | | private void getPageList(int curPage) |
| | | { |
| | | var _sbSqlWhere = UtilityHelper.GetSearchWhere(_filterList); |
| | | // _sbSqlWhere += " and isnull(fsubmit,0)=0"; |
| | | // _sbSqlWhere += " and isnull(fsubmit,0)=0"; |
| | | PageQueryModel pgq = new PageQueryModel(curPage, this.pageBar1.RowsCount, "release_no", "asc", "", _sbSqlWhere.ToString()); |
| | | string json = JsonConvert.SerializeObject(pgq); |
| | | try |
| | |
| | | ucUpFileList1.getFileList(); |
| | | } |
| | | } |
| | | |
| | | |
| | | /// <summary> |
| | | /// 根据检验项目读取抽样结果 |
| | | /// </summary> |
| | |
| | | MsgHelper.Warning("提示:" + ex.Message); |
| | | } |
| | | } |
| | | |
| | | private void setEable(bool bl) { |
| | | |
| | | private void setEable(bool bl) |
| | | { |
| | | |
| | | txtJianYan.ReadOnly = !bl; |
| | | btnLoad.Enabled = bl; |
| | | btnIpt.Text = ( bl==true?"录入样本":"查看样本"); |
| | | btnIpt.Text = (bl == true ? "录入样本" : "查看样本"); |
| | | } |
| | | } |
| | | } |