public frmDeleteTM(MES_PD_TL_LIST list) { InitializeComponent(); MES_PD_TL_LIST = list; ytmtextBox.Text = list.TM; ytmwllbtextBox.Text = list.WLLBNAME; tlsstextBox.Text = list.TLRQ; }
private void LSdataGridView_CellContentClick(object sender, DataGridViewCellEventArgs e) { if (e.RowIndex != -1) { int index = LSdataGridView.CurrentRow.Index; if (this.LSdataGridView.CurrentCell.OwningColumn.Name == q(Msg_Type.fielddelete))//"删除" { MES_PD_TL_LIST model = JlList[index]; //if (MessageBox.Show("是否删除条码号是" + model.TM + "投料信息", "消息框", MessageBoxButtons.OKCancel) == DialogResult.OK) //{ // MES_RETURN_UI delreturn = ServicModel.PD_TLGL.DELETE(model.ID, getToken()); // if (delreturn.TYPE.Equals("S")) // { // UpdateJSDataGrid(MES_PD_SCRW_LIST.RWBH); // } // else // { // ShowMeg(delreturn.MESSAGE); // } //} frmDeleteTM form = new frmDeleteTM(model); form.block = UpdateJSDataGrid; show(form); } else if (this.LSdataGridView.CurrentCell.OwningColumn.Name == q(Msg_Type.fieldmodify))//"修改" { MES_PD_TL_LIST model = JlList[index]; //if (MessageBox.Show("是否替换条码号是" + model.TM + "投料信息", "消息框", MessageBoxButtons.OKCancel) == DialogResult.OK) //{ frmUpdateTM form = new frmUpdateTM(model); form.block = UpdateJSDataGrid; show(form); //} } } SMtextBox.Select(); }