コード例 #1
0
        private void button6_Click(object sender, EventArgs e)
        {
            FormCustContactAdd fcca = new FormCustContactAdd();

            fcca.type   = "add";
            fcca.custid = this.custid;
            fcca.customerContactFormChange += new FormCustContactAdd.CustomerContactFormChange(init_lxr);
            fcca.ShowDialog();
            init_lxr();
        }
コード例 #2
0
        private void button8_Click(object sender, EventArgs e)
        {
            if (dataGridView_contacts.SelectedRows.Count > 0)
            {
                if (this.dataGridView_contacts.SelectedRows[0].Cells["系统编号"].Value == null)
                {
                    return;
                }
                string sysid_ = dataGridView_contacts.SelectedRows[0].Cells["系统编号"].Value.ToString().Trim();
                if (sysid_ == "")
                {
                    return;
                }
                FormCustContactAdd fcca = new FormCustContactAdd();

                fcca.type = "edit";
                fcca.customerContactFormChange += new FormCustContactAdd.CustomerContactFormChange(init_lxr);
                fcca.custid = this.custid;
                fcca.sysid_ = sysid_;
                fcca.ShowDialog();
                init_lxr();
            }
        }
コード例 #3
0
ファイル: CustomerInfAdd.cs プロジェクト: TGHGH/Warehouse-2
        private void button8_Click(object sender, EventArgs e)
        {
            if (dataGridView_contacts.SelectedRows.Count > 0)
            {
                if (this.dataGridView_contacts.SelectedRows[0].Cells["系统编号"].Value==null) return;
                string sysid_ = dataGridView_contacts.SelectedRows[0].Cells["系统编号"].Value.ToString().Trim();
                if (sysid_ == "") return;
                FormCustContactAdd fcca = new FormCustContactAdd();

                fcca.type = "edit";
                fcca.customerContactFormChange += new FormCustContactAdd.CustomerContactFormChange(init_lxr);
                fcca.custid = this.custid;
                fcca.sysid_ = sysid_;
                fcca.ShowDialog();
                init_lxr();
            }
        }
コード例 #4
0
ファイル: CustomerInfAdd.cs プロジェクト: TGHGH/Warehouse-2
 private void button6_Click(object sender, EventArgs e)
 {
     FormCustContactAdd fcca = new FormCustContactAdd();
     fcca.type = "add";
     fcca.custid = this.custid;
     fcca.customerContactFormChange += new FormCustContactAdd.CustomerContactFormChange(init_lxr);
     fcca.ShowDialog();
     init_lxr();
 }