public void InitData(MES_PD_SCRW_LIST list) { MES_TM_CZR rymodel = new MES_TM_CZR(); rymodel.GC = list.GC; rymodel.RWBH = list.RWBH; rymodel.CZLB = 1; dateTimePicker1.Text = list.ZPRQ; _czrList = ServicModel.TM_CZR.SELECT_CZR_NOW(rymodel, getToken()); _bomList = ServicModel.PD_GD.SAP_GET_GDJGXX(list.RWBH, list.ZPRQ, list.GC, getToken()); unRequireArr = new List <int>(); MES_SY_TYPEMX bcmodel = new MES_SY_TYPEMX(); bcmodel.GC = Convert.ToString(getGC("value")); bcmodel.TYPEID = 5; List <MES_SY_TYPEMXLIST> bcArr = new List <MES_SY_TYPEMXLIST>(); MES_SY_TYPEMXLIST[] bclist = ServicModel.SY_TYPEMX.SELECT(bcmodel, getToken()); gzzxtextBox.Text = list.GZZXBH + "-" + list.GZZXNAME; czrytextBox.Text = _czrList.CZR; gctextBox.Text = list.GC; sbhtextBox.Text = list.SBH; pctextBox.Text = list.PC; MES_SY_TYPEMXLIST bcmodel1 = new MES_SY_TYPEMXLIST(); bcmodel1.ID = 0; bcmodel1.MXNAME = q(Msg_Type.titlechoice);//"==请选择=="; bcArr = bclist.ToList(); bcArr.Insert(0, bcmodel1); bccomboBox.DisplayMember = "MXNAME"; bccomboBox.ValueMember = "ID"; bccomboBox.DataSource = bcArr; bccomboBox.SelectedValue = list.BC; MESlabel.Text = q(Msg_Type.titlemesgd) + list.GDDH; //"MES工单:" GDHlabel.Text = q(Msg_Type.titlegd) + list.ERPNO; //"工单号:" WLXXlabel.Text = q(Msg_Type.titlewlxx) + list.WLH + "/" + list.WLMS; //"物料信息:" WLLBlabel1.Text = q(Msg_Type.titlewllb) + list.WLLBNAME; //"物料类别:" rwdlabel.Text = q(Msg_Type.titlerwd) + list.RWBH; //"任务单:" if (_bomList.MES_RETURN.TYPE.Equals("S")) { BOMdataGridView.DataSource = getBomList(_bomList); BOMdataGridView.ClearSelection(); } else { ShowMeg(_bomList.MES_RETURN.MESSAGE); //this.Close(); BOMdataGridView.DataSource = new List <BomDataGrid>(); } LSdataGridView.ReadOnly = true; LastDate = dateTimePicker1.Text.Trim(); if (RigthType == Rigth_Type.mfqqingxi) { GDHlabel.Visible = false; WLXXlabel.Location = GDHlabel.Location; } }
public void configUI(MES_PD_SCRW_LIST list) { MES_PD_SCRW_LIST = list; MES_TM_CZR rymodel = new MES_TM_CZR(); rymodel.GC = list.GC; rymodel.RWBH = list.RWBH; rymodel.CZLB = 1; _czrList = ServicModel.TM_CZR.SELECT_CZR_NOW(rymodel, getToken()); dateTimePicker1.Text = list.ZPRQ; _bomList = ServicModel.PD_GD.SAP_GET_GDJGXX(list.RWBH, list.ZPRQ, list.GC, getToken()); gzzxtextBox.Text = list.GZZXBH + "-" + list.GZZXNAME; czrytextBox.Text = _czrList.CZR; gctextBox.Text = list.GC; sbhtextBox.Text = list.SBH; pctextBox.Text = list.PC; MESlabel.Text = q(Msg_Type.titlemesgd) + list.GDDH; //"MES工单:" GDHlabel.Text = q(Msg_Type.titlegd) + list.ERPNO; //"工单号:" WLXXlabel.Text = q(Msg_Type.titlewlxx) + list.WLH + "/" + list.WLMS; //"物料信息:" WLLBlabel1.Text = q(Msg_Type.titlewllb) + list.WLLBNAME; //"物料类别:" rwdlabel.Text = q(Msg_Type.titlerwd) + list.RWBH; //"任务单:" dcdjlabel.Text = q(Msg_Type.titledcdj) + list.DCDJNAME; //"电池等级:" dcxhlabel1.Text = q(Msg_Type.titledcdj) + list.DCXHNAME; //电池型号: if (string.IsNullOrEmpty(list.XSNOBILL)) { tskclabel1.Text = q(Msg_Type.titletskc);//"特殊库存:"; } else { tskclabel1.Text = q(Msg_Type.titletskc) + list.XSNOBILL + "-" + list.XSNOBILLMX; } if (_bomList.MES_RETURN.TYPE.Equals("S")) { BOMdataGridView.DataSource = getBomList(_bomList); } else { ShowMeg(_bomList.MES_RETURN.MESSAGE); BOMdataGridView.DataSource = new List <BomDataGrid>(); } LSdataGridView.ReadOnly = true; for (int i = 0; i < BOMdataGridView.Rows.Count; i++) { BOMdataGridView.Rows[i].Cells[q(Msg_Type.fieldstatus)].Style.BackColor = Color.Red; for (int j = 0; j < unRequireArr.Count; j++) { if (i == unRequireArr[j]) { BOMdataGridView.Rows[i].Cells[q(Msg_Type.fieldstatus)].Style.BackColor = Color.White; } } } BOMdataGridView.ClearSelection(); }
private void qhgdbutton_Click(object sender, EventArgs e) { //if (string.IsNullOrEmpty(scrqtextBox.Text.Trim())) //{ // ShowMeg("生产日期不能为空"); // return; //} //if (judge.IsDate(scrqtextBox.Text.Trim()) == false) //{ // ShowMeg("生产日期格式不正确"); // return; //} string tm = SMtextBox.Text.Trim().ToUpper(); MES_PD_SCRW model = new MES_PD_SCRW(); model.SBBH = _MES_PD_SCRW_LIST.SBBH; model.ZPRQ = dateTimePicker1.Text.Trim(); SELECT_MES_PD_SCRW Smodel = ServicModel.PD_SCRW.SELECT(model, getToken()); if (Smodel.MES_PD_SCRW_LIST.Length <= 1) { //MessageBox.Show(_MES_PD_SCRW_LIST.SBH + "没有可切换的任务", "消息框"); ShowMeg(_MES_PD_SCRW_LIST.SBH + q(Msg_Type.msgnoreplacerw)); return; } else { frmChange_GD form = new frmChange_GD(Smodel.MES_PD_SCRW_LIST, model.SBBH, RigthType); form.block = RefreshRW; show(form); //show(form); } //SMtextBox.Select(); for (int i = 0; i < BOMdataGridView.Rows.Count; i++) { BOMdataGridView.Rows[i].Cells[q(Msg_Type.fieldstatus)].Style.BackColor = Color.Red;//"状态" //for (int j = 0; j < unRequireArr.Count; j++) //{ // if (i == unRequireArr[j]) // { // BOMdataGridView.Rows[i].Cells["状态"].Style.BackColor = Color.White; // } //} } BOMdataGridView.ClearSelection(); //BOMdataGridView.Columns["状态"].DefaultCellStyle.BackColor = Color.Red; Tmlist = new List <TMDataGrid>(); LSdataGridView.DataSource = Tmlist; LSdataGridView.Columns[q(Msg_Type.fielddelete)].DisplayIndex = 4;//"删除" SMtextBox.Select(); }
private void frmZX_TL_Shown(object sender, EventArgs e) { MES_TM_CZR rymodel = new MES_TM_CZR(); rymodel.GC = MES_PD_SCRW_LIST.GC; rymodel.RWBH = MES_PD_SCRW_LIST.RWBH; rymodel.CZLB = 1; dateTimePicker1.Text = MES_PD_SCRW_LIST.ZPRQ; _czrList = ServicModel.TM_CZR.SELECT_CZR_NOW(rymodel, getToken()); _bomList = ServicModel.PD_GD.SAP_GET_GDJGXX(MES_PD_SCRW_LIST.RWBH, MES_PD_SCRW_LIST.ZPRQ, MES_PD_SCRW_LIST.GC, getToken()); unRequireArr = new List <int>(); MES_SY_TYPEMX bcmodel = new MES_SY_TYPEMX(); bcmodel.GC = Convert.ToString(getGC("value")); bcmodel.TYPEID = 5; List <MES_SY_TYPEMXLIST> bcArr = new List <MES_SY_TYPEMXLIST>(); MES_SY_TYPEMXLIST[] bclist = ServicModel.SY_TYPEMX.SELECT(bcmodel, getToken()); gzzxtextBox.Text = MES_PD_SCRW_LIST.GZZXBH + "-" + MES_PD_SCRW_LIST.GZZXNAME; gctextBox.Text = MES_PD_SCRW_LIST.GC; sbhtextBox.Text = MES_PD_SCRW_LIST.SBH; MESlabel.Text = q(Msg_Type.titlemesgd) + MES_PD_SCRW_LIST.GDDH; //"MES工单:" GDHlabel.Text = q(Msg_Type.titlegd) + MES_PD_SCRW_LIST.ERPNO; //"工单号:" WLXXlabel.Text = q(Msg_Type.titlewlxx) + MES_PD_SCRW_LIST.WLH + "/" + MES_PD_SCRW_LIST.WLMS; //"物料信息:" WLLBlabel1.Text = q(Msg_Type.titlewllb) + MES_PD_SCRW_LIST.WLLBNAME; //"物料类别:" dclabel.Text = q(Msg_Type.titledcdjandxh) + MES_PD_SCRW_LIST.DCXHNAME + "/" + MES_PD_SCRW_LIST.DCDJNAME; //"电池型号/等级:" rwdlabel.Text = q(Msg_Type.titlerwd) + MES_PD_SCRW_LIST.RWBH; //"任务单:" configBom(); if (_bomList.MES_RETURN.TYPE.Equals("S")) { BOMdataGridView.DataSource = getBomList(_bomList); } else { ShowMeg(_bomList.MES_RETURN.MESSAGE); //this.Close(); BOMdataGridView.DataSource = new List <BomDataGrid>(); } BOMdataGridView.ClearSelection(); LSdataGridView.ReadOnly = true; LastDate = dateTimePicker1.Text.Trim(); ConfigJsDataGridView(); LSdataGridView.ClearSelection(); BOMdataGridView.ClearSelection(); button3.Text = q(Msg_Type.fieldhidden);// "隐藏"; IShidden(true); }
public void RefreshRW(MES_PD_SCRW_LIST list, string shebeihaoID) { //monthCalendar1.Visible = false; //scrqtextBox.Text = DateTime.Now.ToString("yyyy-MM-dd"); SMtextBox.Select(); SBHID = shebeihaoID; Tmlist = new List <TMDataGrid>(); this._MES_PD_SCRW_LIST = list; MES_TM_CZR rymodel = new MES_TM_CZR(); rymodel.GC = list.GC; rymodel.RWBH = list.RWBH; rymodel.CZLB = 1; _czrList = ServicModel.TM_CZR.SELECT_CZR_NOW(rymodel, getToken()); _bomList = ServicModel.PD_GD.SAP_GET_GDJGXX(list.RWBH, list.ZPRQ, list.GC, getToken()); unRequireArr = new List <int>(); MES_SY_TYPEMX bcmodel = new MES_SY_TYPEMX(); bcmodel.GC = Convert.ToString(getGC("value")); bcmodel.TYPEID = 5; List <MES_SY_TYPEMXLIST> bcArr = new List <MES_SY_TYPEMXLIST>(); MES_SY_TYPEMXLIST[] bclist = ServicModel.SY_TYPEMX.SELECT(bcmodel, getToken()); gzzxtextBox.Text = list.GZZXBH + "-" + list.GZZXNAME; gctextBox.Text = list.GC; sbhtextBox.Text = list.SBH; MESlabel.Text = q(Msg_Type.titlemesgd) + list.GDDH; //"MES工单:" GDHlabel.Text = q(Msg_Type.titlegd) + list.ERPNO; //"工单号:" WLXXlabel.Text = q(Msg_Type.titlewlxx) + list.WLH + "/" + list.WLMS; //"物料信息:" WLLBlabel1.Text = q(Msg_Type.titlewllb) + list.WLLBNAME; //"物料类别:" rwdlabel.Text = q(Msg_Type.titlerwd) + list.RWBH; //"任务单:" if (_bomList.MES_RETURN.TYPE.Equals("S")) { BOMdataGridView.DataSource = getBomList(_bomList); } else { ShowMeg(_bomList.MES_RETURN.MESSAGE); //this.Close(); BOMdataGridView.DataSource = new List <BomDataGrid>(); } BOMdataGridView.ClearSelection(); LSdataGridView.ReadOnly = true; UpdateJSDataGrid(MES_PD_SCRW_LIST.RWBH); //getTMList(ServicModel.TM_TMINFO.SELECT_TL_LAST(MES_PD_SCRW_LIST.RWBH, getToken())); }
public void re() { SMtextBox.Select(); Tmlist = new List <TMDataGrid>(); LSdataGridView.DataSource = Tmlist; LSdataGridView.Columns[q(Msg_Type.fielddelete)].DisplayIndex = 4; for (int i = 0; i < BOMdataGridView.Rows.Count; i++) { BOMdataGridView.Rows[i].Cells[q(Msg_Type.fieldstatus)].Style.BackColor = Color.Red; for (int j = 0; j < unRequireArr.Count; j++) { if (i == unRequireArr[j]) { BOMdataGridView.Rows[i].Cells[q(Msg_Type.fieldstatus)].Style.BackColor = Color.White; } } } BOMdataGridView.ClearSelection(); //IsGD = false; }
public void ChangeRW() { MES_PD_SCRW model = new MES_PD_SCRW(); model.RWBH = SMtextBox.Text.Trim().ToUpper(); model.GC = getGC("value"); model.SBBH = SBHID; SELECT_MES_PD_SCRW res = ServicModel.PD_SCRW.SELECT(model, getToken()); if (res.MES_RETURN.TYPE.Equals("S")) { MES_PD_SCRW_LIST list = res.MES_PD_SCRW_LIST[0]; Tmlist = new List <TMDataGrid>(); LSdataGridView.DataSource = Tmlist; LSdataGridView.Columns[q(Msg_Type.fielddelete)].DisplayIndex = 4;//"删除" this._MES_PD_SCRW_LIST = list; MES_TM_CZR rymodel = new MES_TM_CZR(); rymodel.GC = list.GC; rymodel.RWBH = list.RWBH; rymodel.CZLB = 1; _czrList = ServicModel.TM_CZR.SELECT_CZR_NOW(rymodel, getToken()); _bomList = ServicModel.PD_GD.SAP_GET_GDJGXX(list.RWBH, dateTimePicker1.Text.Trim(), list.GC, getToken()); unRequireArr = new List <int>(); MES_SY_TYPEMX bcmodel = new MES_SY_TYPEMX(); bcmodel.GC = Convert.ToString(getGC("value")); bcmodel.TYPEID = 5; List <MES_SY_TYPEMXLIST> bcArr = new List <MES_SY_TYPEMXLIST>(); MES_SY_TYPEMXLIST[] bclist = ServicModel.SY_TYPEMX.SELECT(bcmodel, getToken()); gzzxtextBox.Text = list.GZZXBH + "-" + list.GZZXNAME; czrytextBox.Text = _czrList.CZR; gctextBox.Text = list.GC; sbhtextBox.Text = list.SBH; pctextBox.Text = list.PC; bcArr = bclist.ToList(); MES_SY_TYPEMXLIST bcmodel1 = new MES_SY_TYPEMXLIST(); bcmodel1.ID = 0; bcmodel1.MXNAME = q(Msg_Type.titlechoice);//"==请选择=="; bcArr.Insert(0, bcmodel1); bccomboBox.DisplayMember = "MXNAME"; bccomboBox.ValueMember = "ID"; bccomboBox.DataSource = bcArr; bccomboBox.SelectedValue = list.BC; MESlabel.Text = q(Msg_Type.titlemesgd) + list.GDDH; //"MES工单:" GDHlabel.Text = q(Msg_Type.titlegd) + list.ERPNO; //"工单号:" WLXXlabel.Text = q(Msg_Type.titlewlxx) + list.WLH + "/" + list.WLMS; //"物料信息:" WLLBlabel1.Text = q(Msg_Type.titlewllb) + list.WLLBNAME; //"物料类别:" rwdlabel.Text = q(Msg_Type.titlerwd) + list.RWBH; //"任务单:" if (_bomList.MES_RETURN.TYPE.Equals("S")) { BOMdataGridView.DataSource = getBomList(_bomList); } else { ShowMeg(_bomList.MES_RETURN.MESSAGE); BOMdataGridView.DataSource = new List <BomDataGrid>(); } //scrqtextBox.Text = DateTime.Now.ToString("yyyy-MM-dd"); LSdataGridView.ReadOnly = true; BOMdataGridView.Columns[q(Msg_Type.fieldstatus)].DefaultCellStyle.BackColor = Color.Red;//"状态" for (int i = 0; i < unRequireArr.Count; i++) { BOMdataGridView.Rows[unRequireArr[i]].Cells[q(Msg_Type.fieldstatus)].Style.BackColor = Color.White;//"状态" } //SELECT_MES_TM_TMINFO_BYTM r = ServicModel.TM_TMINFO.SELECT_TL_LAST(MES_PD_SCRW_LIST.RWBH, getToken()); //if (r.MES_RETURN.TYPE.Equals("S")) //{ // getTMList(r, 0); //} Tmlist = new List <TMDataGrid>(); LSdataGridView.DataSource = new List <TMDataGrid>(); LSdataGridView.ClearSelection(); LSdataGridView.Columns[q(Msg_Type.fielddelete)].DisplayIndex = 4;//"删除" BOMdataGridView.ClearSelection(); if (RigthType == Rigth_Type.mfqqingxi) { GDHlabel.Visible = false; WLXXlabel.Location = GDHlabel.Location; } } else { //MessageBox.Show(SMtextBox.Text + res.MES_RETURN.MESSAGE, "消息框"); ShowMeg(SMtextBox.Text + res.MES_RETURN.MESSAGE); } SMtextBox.Clear(); SMtextBox.Select(); }
private void frmTL2_Load(object sender, EventArgs e) { //dataGridView1.ClearSelection(); BOMdataGridView.ClearSelection(); LSdataGridView.ClearSelection(); }
private void LSdataGridView_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex != -1) { if (this.LSdataGridView.CurrentCell.OwningColumn.Name == q(Msg_Type.fielddelete)) { int tmtmid = Convert.ToInt32(this.LSdataGridView.CurrentRow.Cells[q(Msg_Type.fieldtltmdm)].Value); //MES_RETURN_UI res = ServicModel.PD_TLGL.DELETE(tmtmid, getToken()); //if (res.TYPE.Equals("S")) //{ int id = Convert.ToInt32(this.LSdataGridView.CurrentRow.Cells[q(Msg_Type.fieldxh)].Value); Tmlist.RemoveAt(id - 1); for (int i = 0; i < Tmlist.Count; i++) { Tmlist[i].Xh = (i + 1).ToString(); } int a = LSdataGridView.Columns.Count; if (Tmlist.Count == 0) { LSdataGridView.DataSource = new List <TMDataGrid>(); LSdataGridView.Columns[q(Msg_Type.fielddelete)].DisplayIndex = 4; } else { LSdataGridView.DataSource = Tmlist.ToArray(); LSdataGridView.Columns[q(Msg_Type.fielddelete)].DisplayIndex = 4; } for (int i = 0; i < BOMdataGridView.Rows.Count; i++) { BOMdataGridView.Rows[i].Cells[q(Msg_Type.fieldstatus)].Style.BackColor = Color.Red; for (int j = 0; j < unRequireArr.Count; j++) { if (i == unRequireArr[j]) { BOMdataGridView.Rows[i].Cells[q(Msg_Type.fieldstatus)].Style.BackColor = Color.White; } } } for (int i = 0; i < _bomList.ET_BOM.Length; i++) { for (int j = 0; j < Tmlist.Count; j++) { //if (_bomList.ET_BOM[i].ZSBS.Equals("Y")) //{ // if (_bomList.ET_BOM[i].IDNRK == Tmlist[j].Wlxx.Split('/')[0]) // { // BOMdataGridView.Rows[i].Cells["状态"].Style.BackColor = Color.FromArgb(187, 255, 102); // } //} //else //{ if (_bomList.ET_BOM[i].WLLB == Tmlist[j].Wllbdm) { BOMdataGridView.Rows[i].Cells[q(Msg_Type.fieldstatus)].Style.BackColor = Color.FromArgb(187, 255, 102); } //} } } LSdataGridView.ClearSelection(); BOMdataGridView.ClearSelection(); //} //else //{ // MessageBox.Show(res.MESSAGE, "消息框"); //} } } }
public void CHANGERWD() { MES_PD_SCRW model = new MES_PD_SCRW(); model.RWBH = SMtextBox.Text.Trim().ToUpper();//.Text.Trim().ToUpper(); model.WLLBNAME = "素电"; model.STAFFID = Convert.ToInt32(getUserInfo("staffid")); //model.ZPRQ = DateTime.Now.ToString("yyyy-MM-dd"); SELECT_MES_PD_SCRW res = ServicModel.PD_SCRW.SELECT_BY_ROLE(model, getToken()); if (res.MES_RETURN.TYPE.Equals("S")) { if (res.MES_PD_SCRW_LIST.Length == 1) { MES_PD_SCRW_LIST = res.MES_PD_SCRW_LIST[0]; MES_SY_GC gc_model = new MES_SY_GC(); gc_model.GC = res.MES_PD_SCRW_LIST[0].GC; MES_SY_GC[] gc_res = ServicModel.SY_GC.read(gc_model, getToken()); ini.IniWriteValue(ini.Section_UserInfo, "gzzxvalue", res.MES_PD_SCRW_LIST[0].GZZXBH); ini.IniWriteValue(ini.Section_UserInfo, "gzzxtext", res.MES_PD_SCRW_LIST[0].GZZXNAME); ini.IniWriteValue(ini.Section_GC, "value", res.MES_PD_SCRW_LIST[0].GC); ini.IniWriteValue(ini.Section_GC, "text", gc_res[0].GCMS); } else { ShowMeg(q(Msg_Type.msgrwexcept));//"任务异常请联系管理员" SMtextBox.Select(); return; } } else { ShowMeg(res.MES_RETURN.MESSAGE); SMtextBox.Select(); return; } SBHID = MES_PD_SCRW_LIST.SBBH; Tmlist = new List <TMDataGrid>(); MES_TM_CZR rymodel = new MES_TM_CZR(); rymodel.GC = MES_PD_SCRW_LIST.GC; rymodel.RWBH = MES_PD_SCRW_LIST.RWBH; rymodel.CZLB = 1; _czrList = ServicModel.TM_CZR.SELECT_CZR_NOW(rymodel, getToken()); _bomList = ServicModel.PD_GD.SAP_GET_GDJGXX(MES_PD_SCRW_LIST.RWBH, MES_PD_SCRW_LIST.ZPRQ, MES_PD_SCRW_LIST.GC, getToken()); unRequireArr = new List <int>(); MES_SY_TYPEMX bcmodel = new MES_SY_TYPEMX(); bcmodel.GC = Convert.ToString(getGC("value")); bcmodel.TYPEID = 5; List <MES_SY_TYPEMXLIST> bcArr = new List <MES_SY_TYPEMXLIST>(); MES_SY_TYPEMXLIST[] bclist = ServicModel.SY_TYPEMX.SELECT(bcmodel, getToken()); gzzxtextBox.Text = MES_PD_SCRW_LIST.GZZXBH + "-" + MES_PD_SCRW_LIST.GZZXNAME; gctextBox.Text = MES_PD_SCRW_LIST.GC; sbhtextBox.Text = MES_PD_SCRW_LIST.SBH; MESlabel.Text = q(Msg_Type.titlemesgd) + MES_PD_SCRW_LIST.GDDH; //"MES工单:" GDHlabel.Text = q(Msg_Type.titlegd) + MES_PD_SCRW_LIST.ERPNO; //"工单号:" WLXXlabel.Text = q(Msg_Type.titlewlxx) + MES_PD_SCRW_LIST.WLH + "/" + MES_PD_SCRW_LIST.WLMS; //"物料信息:" WLLBlabel1.Text = q(Msg_Type.titlewllb) + MES_PD_SCRW_LIST.WLLBNAME; //"物料类别:" dclabel.Text = q(Msg_Type.titledcdjandxh) + MES_PD_SCRW_LIST.DCXHNAME + "/" + MES_PD_SCRW_LIST.DCDJNAME; //"电池型号/等级:" rwdlabel.Text = q(Msg_Type.titlerwd) + MES_PD_SCRW_LIST.RWBH; //"任务单:" //configBom(); if (_bomList.MES_RETURN.TYPE.Equals("S")) { BOMdataGridView.DataSource = getBomList(_bomList); } else { ShowMeg(_bomList.MES_RETURN.MESSAGE); //this.Close(); BOMdataGridView.DataSource = new List <BomDataGrid>(); } //BOMdataGridView.DataSource = getBomList(_bomList); BOMdataGridView.ClearSelection(); LSdataGridView.ReadOnly = true; dateTimePicker1.Text = MES_PD_SCRW_LIST.ZPRQ; LastDate = dateTimePicker1.Text.Trim(); ConfigJsDataGridView(); }