private void 除本条_Click(object sender, EventArgs e) { memberToUpModel model = Alllist[dataGridView1.SelectedRows[0].Index]; caocuofrom caozuo = caocuofrom.Create(deletePassword, model.czId.ToString()); caozuo.Show(); }
private void 除寄存ToolStripMenuItem_Click(object sender, EventArgs e) { JCInfoModel model = (JCInfoModel)dataGridView1.SelectedRows[0].DataBoundItem; caocuofrom caozuo = caocuofrom.Create(deletePassword, model.jcID.ToString()); caozuo.Show(); }
public static caocuofrom Create(caozuoyanzheng action, string cardNo) { action1 = action; cardNo1 = cardNo; if (_danli == null) { _danli = new caocuofrom(); } return(_danli); }
private void 除会员ToolStripMenuItem_Click(object sender, EventArgs e) { if (dataGridView1.SelectedRows.Count == 0) { MessageBox.Show("请选择会员!"); return; } memberInfoModel model = (memberInfoModel)dataGridView1.SelectedRows[0].DataBoundItem; caocuofrom chongzhi = caocuofrom.Create(deletePassword, model.ID.ToString().Trim()); chongzhi.Show(); chongzhi.Focus(); }
private void 取消取走ToolStripMenuItem_Click(object sender, EventArgs e) { JCInfoModel model = (JCInfoModel)dataGridView1.SelectedRows[0].DataBoundItem; if (model.jcZT == "未取走") { MessageBox.Show("该物品并未取走,不能执行此操作!"); return; } caocuofrom caozuo = caocuofrom.Create(updateZT, model.jcID.ToString()); caozuo.Show(); }
private void caocuofrom_FormClosing(object sender, FormClosingEventArgs e) { _danli = null; }
private void button1_Click(object sender, EventArgs e) { caocuofrom from = caocuofrom.Create(deletePassword, "1"); from.Show(); }