Exemple #1
0
 private void 修改ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (this.dataGridView1.CurrentCell != null)
     {
         WarehouseModel s     = new WarehouseModel(Convert.ToInt32(this.dataGridView1.Rows[this.dataGridView1.CurrentCell.RowIndex].Cells["id"].Value), this.dataGridView1.Rows[this.dataGridView1.CurrentCell.RowIndex].Cells["num"].Value.ToString(), this.dataGridView1.Rows[this.dataGridView1.CurrentCell.RowIndex].Cells["name"].Value.ToString());
         WarehousePopup popup = new WarehousePopup(this, "ck", wId, s);
         popup.Show();
     }
 }
Exemple #2
0
 private void 修改ToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     if (this.dataGridView2.CurrentCell != null)
     {
         PositionModel  p     = new PositionModel(Convert.ToInt32(this.dataGridView2.Rows[this.dataGridView2.CurrentCell.RowIndex].Cells["id"].Value), this.dataGridView2.Rows[this.dataGridView2.CurrentCell.RowIndex].Cells["num"].Value.ToString(), this.dataGridView2.Rows[this.dataGridView2.CurrentCell.RowIndex].Cells["name"].Value.ToString());
         WarehousePopup popup = new WarehousePopup(this, "cw", wId, p);
         popup.Show();
     }
     else
     {
         MessageBox.Show("请选择一行。");
     }
 }
Exemple #3
0
        private void 新建ToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            WarehousePopup popup = new WarehousePopup(this, "cw", wId, null);

            popup.Show();
        }