示例#1
0
 private void toolStripButton1_Click(object sender, EventArgs e)
 {
     BargainsBindAdd bba = new BargainsBindAdd();
     bba.BargainsBindAddChg_ += new BargainsBindAdd.BargainsBindAddChg(BargainsBindAddChg_);
     bba.type = "add";
     bba.ShowDialog();
 }
示例#2
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            BargainsBindAdd bba = new BargainsBindAdd();

            bba.BargainsBindAddChg_ += new BargainsBindAdd.BargainsBindAddChg(BargainsBindAddChg_);
            bba.type = "add";
            bba.ShowDialog();
        }
示例#3
0
 private void toolStripButton2_Click(object sender, EventArgs e)
 {
     if (this.dgv_lst.SelectedRows.Count <= 0) return;
     if (this.dgv_lst.SelectedRows[0].Cells["编号"].Value == null) return;
     string djh_ = this.dgv_lst.SelectedRows[0].Cells["编号"].Value.ToString().Trim();
     if (djh_ == "") return;
     BargainsBindAdd bba = new BargainsBindAdd();
     bba.BargainsBindAddChg_ += new BargainsBindAdd.BargainsBindAddChg(BargainsBindAddChg_);
     bba.bdid = djh_;
     bba.type = "edit";
     bba.ShowDialog();
 }
示例#4
0
        private void toolStripButton2_Click(object sender, EventArgs e)
        {
            if (this.dgv_lst.SelectedRows.Count <= 0)
            {
                return;
            }
            if (this.dgv_lst.SelectedRows[0].Cells["编号"].Value == null)
            {
                return;
            }
            string djh_ = this.dgv_lst.SelectedRows[0].Cells["编号"].Value.ToString().Trim();

            if (djh_ == "")
            {
                return;
            }
            BargainsBindAdd bba = new BargainsBindAdd();

            bba.BargainsBindAddChg_ += new BargainsBindAdd.BargainsBindAddChg(BargainsBindAddChg_);
            bba.bdid = djh_;
            bba.type = "edit";
            bba.ShowDialog();
        }