Exemplo n.º 1
0
        private void 物料寿命_Click(object sender, EventArgs e)
        {
            if (this.dataGridView1.SelectedRows.Count <= 0)
            {
                return;
            }
            if (this.dataGridView1.SelectedRows[0].Cells["物料编号"].Value == null)
            {
                return;
            }
            if (this.dataGridView1.SelectedRows[0].Cells["物料编号"].Value.ToString().Trim() == "")
            {
                return;
            }

            string           matid   = this.dataGridView1.SelectedRows[0].Cells["物料编号"].Value.ToString().Trim();
            string           matname = this.dataGridView1.SelectedRows[0].Cells["物料名称"].Value.ToString().Trim();
            EditMatBasicInfo form    = new EditMatBasicInfo("add", matid, matname);

            form.ShowDialog();
        }
Exemplo n.º 2
0
        private void 物料寿命_Click(object sender, EventArgs e)
        {
            if (this.dataGridView1.SelectedRows.Count <= 0) return;
            if (this.dataGridView1.SelectedRows[0].Cells["物料编号"].Value == null) return;
            if (this.dataGridView1.SelectedRows[0].Cells["物料编号"].Value.ToString().Trim() == "") return;

            string matid = this.dataGridView1.SelectedRows[0].Cells["物料编号"].Value.ToString().Trim();
            string matname=this.dataGridView1.SelectedRows[0].Cells["物料名称"].Value.ToString().Trim();
            EditMatBasicInfo form = new EditMatBasicInfo("add",matid,matname);
            form.ShowDialog();
        }