Esempio n. 1
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (this.dgv_accept.SelectedRows.Count > 0)
            {
                if (this.dgv_accept.SelectedRows[0].Cells["sysid"].Value == null)
                {
                    return;
                }

                //if (this.dgv_accept.SelectedRows[0].Cells["客户代号"].Value == null) return;
                //if (this.dgv_accept.SelectedRows[0].Cells["机型"].Value == null) return;
                //if (this.dgv_accept.SelectedRows[0].Cells["机号"].Value == null) return;

                string sysid = this.dgv_accept.SelectedRows[0].Cells["sysid"].Value.ToString().Trim();
                //string mtype_ = this.dgv_accept.SelectedRows[0].Cells["机型"].Value.ToString().Trim();
                //string mc_ = this.dgv_accept.SelectedRows[0].Cells["机号"].Value.ToString().Trim();

                if (sysid == "")
                {
                    return;
                }

                CustomerCallAdd cca = new CustomerCallAdd();
                cca.CurrentUser              = this.CurrentUser;
                cca.type                     = "edit";
                cca.CallId                   = sysid;
                cca.customerCallFormChange_ += new CustomerCallAdd.CustomerCallFormChange(customerCallFormChange_);
                cca.ShowDialog();
            }
        }
Esempio n. 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (this.dgv_CustMac.SelectedRows.Count > 0)
            {
                if (this.dgv_CustMac.SelectedRows[0].Cells["sysid"].Value == null)
                {
                    return;
                }
                string cmsysid_ = this.dgv_CustMac.SelectedRows[0].Cells["sysid"].Value.ToString().Trim();
                if (cmsysid_ == "")
                {
                    return;
                }

                CustomerCallAdd cca = new CustomerCallAdd();
                cca.customerCallFormChange_ += new CustomerCallAdd.CustomerCallFormChange(customerCallFormChange_);
                cca.CurrentUser              = this.CurrentUser;
                cca.cmsysid = cmsysid_;
                cca.type    = "add";
                cca.ShowDialog();
            }
        }
Esempio n. 3
0
        private void button1_Click(object sender, EventArgs e)
        {
            if (this.dgv_CustMac.SelectedRows.Count > 0)
            {
                if (this.dgv_CustMac.SelectedRows[0].Cells["sysid"].Value == null) return;
                string cmsysid_ = this.dgv_CustMac.SelectedRows[0].Cells["sysid"].Value.ToString().Trim();
                if (cmsysid_ == "") return;

                CustomerCallAdd cca = new CustomerCallAdd();
                cca.customerCallFormChange_ += new CustomerCallAdd.CustomerCallFormChange(customerCallFormChange_);
                cca.CurrentUser = this.CurrentUser;
                cca.cmsysid = cmsysid_;
                cca.type = "add";
                cca.ShowDialog();
            }
        }
Esempio n. 4
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (this.dgv_accept.SelectedRows.Count > 0)
            {
                if (this.dgv_accept.SelectedRows[0].Cells["sysid"].Value == null) return;

                //if (this.dgv_accept.SelectedRows[0].Cells["客户代号"].Value == null) return;
                //if (this.dgv_accept.SelectedRows[0].Cells["机型"].Value == null) return;
                //if (this.dgv_accept.SelectedRows[0].Cells["机号"].Value == null) return;

                string sysid = this.dgv_accept.SelectedRows[0].Cells["sysid"].Value.ToString().Trim();
                //string mtype_ = this.dgv_accept.SelectedRows[0].Cells["机型"].Value.ToString().Trim();
                //string mc_ = this.dgv_accept.SelectedRows[0].Cells["机号"].Value.ToString().Trim();

                if (sysid== "") return;

                CustomerCallAdd cca = new CustomerCallAdd();
                cca.CurrentUser = this.CurrentUser;
                cca.type = "edit";
                cca.CallId = sysid;
                cca.customerCallFormChange_ += new CustomerCallAdd.CustomerCallFormChange(customerCallFormChange_);
                cca.ShowDialog();
            }
        }