Exemple #1
0
        private void button7_Click(object sender, EventArgs e)
        {
            if (this.dgv_worksheet.SelectedRows.Count <= 0) return;
            if (this.dgv_worksheet.SelectedRows[0].Cells["系统编号"].Value == null) return;
            string sysid_ = this.dgv_worksheet.SelectedRows[0].Cells["系统编号"].Value.ToString().Trim();

            AddWorkForm awf = new AddWorkForm();
            awf.type = "edit";  //新增时传入"客户编码"
            awf.sysid_ = sysid_;
            awf.ShowDialog();
        }
Exemple #2
0
 private void button6_Click(object sender, EventArgs e)
 {
     if (dgv_CustMac.SelectedRows.Count <= 0) return;
     if (dgv_CustMac.SelectedRows[0].Cells["sysid"].Value == null) return;
     if (dgv_CustMac.SelectedRows[0].Cells["sysid"].Value.ToString().Trim() == "") return;
     string machineid_ = dgv_CustMac.SelectedRows[0].Cells["sysid"].Value.ToString().Trim();
     AddWorkForm awf = new AddWorkForm();
     awf.type = "add";  //新增时传入"客户编码"
     awf.machineid = machineid_;
     awf.ShowDialog();
 }