Ejemplo n.º 1
0
        private void bntOK_Click(object sender, EventArgs e)
        {
            if (treeView1.SelectedNode.Text != "")
            {
                //if (intFalg == 1)//添加客户信息时调用
                //{
                //    frmCustomerAdd cusAdd = (frmCustomerAdd)this.Owner;
                //    cusAdd.cmbkuChangPi.Text = treeView1.SelectedNode.Text;

                //    intFalg = 0;
                //    this.Close();
                //}
                if (intFalg == 2)//修改客户信息时调用
                {
                    frmCustomerUpdate frmUpdate = (frmCustomerUpdate)this.Owner;
                    frmUpdate.cmbkuChangPi.Text = treeView1.SelectedNode.Text;
                    intFalg = 0;
                    this.Close();
                }
            }
            else
            {
                MessageBox.Show("请选择产品信息!", "提示");
            }
        }
Ejemplo n.º 2
0
        private void tlsKuMenuItemDelete_Click(object sender, EventArgs e)
        {
            frmCustomerUpdate CustomerUpdate3 = new frmCustomerUpdate(3);

            CustomerUpdate3.Owner = this;
            CustomerUpdate3.ShowDialog();
        }
Ejemplo n.º 3
0
        private void tlsKuMenuItemUpdate_Click(object sender, EventArgs e)
        {
            frmCustomerUpdate CustomerUpdate2 = new frmCustomerUpdate(2);

            CustomerUpdate2.Owner = this;
            CustomerUpdate2.ShowDialog();
        }
Ejemplo n.º 4
0
        private void tlsKuMenuItemAdd_Click(object sender, EventArgs e)
        {
            frmCustomerUpdate CustomerUpdate1 = new frmCustomerUpdate(1);//添加

            CustomerUpdate1.Owner = this;
            CustomerUpdate1.ShowDialog();
        }
Ejemplo n.º 5
0
 private void listView1_Click(object sender, EventArgs e)
 {
     if (lvQs.SelectedItems[0].Text == "产品信息")
     {
         frmtbProduction frmProd1 = new frmtbProduction();
         frmProd1.Owner = this;
         frmProd1.ShowDialog();
     }
     if (lvQs.SelectedItems[0].Text == "产品分类")
     {
         frmtbProPath frmpath1 = new frmtbProPath();
         frmpath1.Owner = this;
         frmpath1.ShowDialog();
     }
     if (lvQs.SelectedItems[0].Text == "通话信息")
     {
         frmDai dai = new frmDai();
         dai.Owner = this;
         dai.ShowDialog();
     }
     if (lvQs.SelectedItems[0].Text == "电话查询")
     {
         frmTel tel = new frmTel();
         tel.Owner = this;
         tel.ShowDialog();
     }
     if (lvQs.SelectedItems[0].Text == "添加员工信息")
     {
         frmEmployeeInfo frmInfo11 = new frmEmployeeInfo(1);
         frmInfo11.Owner = this;
         frmInfo11.ShowDialog();
     }
     if (lvQs.SelectedItems[0].Text == "删除员工信息")
     {
         frmEmployeeInfo frmInfo33 = new frmEmployeeInfo(3);
         frmInfo33.Owner = this;
         frmInfo33.ShowDialog();
     }
     if (lvQs.SelectedItems[0].Text == "修改员工信息")
     {
         frmEmployeeInfo frmInfo11 = new frmEmployeeInfo(2);
         frmInfo11.Owner = this;
         frmInfo11.ShowDialog();
     }
     if (lvQs.SelectedItems[0].Text == "查询员工信息")
     {
         frmEmployeeInfo frmInfo22 = new frmEmployeeInfo(4);
         frmInfo22.Owner = this;
         frmInfo22.ShowDialog();
     }
     if (lvQs.SelectedItems[0].Text == "添加客户信息")
     {
         frmCustomerUpdate CustomerUpdate11 = new frmCustomerUpdate(1);
         CustomerUpdate11.Owner = this;
         CustomerUpdate11.ShowDialog();
     }
     if (lvQs.SelectedItems[0].Text == "修改客户信息")
     {
         frmCustomerUpdate CustomerUpdate22 = new frmCustomerUpdate(2);
         CustomerUpdate22.Owner = this;
         CustomerUpdate22.ShowDialog();
     }
     if (lvQs.SelectedItems[0].Text == "删除客户信息")
     {
         frmCustomerUpdate CustomerUpdate33 = new frmCustomerUpdate(3);
         CustomerUpdate33.Owner = this;
         CustomerUpdate33.ShowDialog();
     }
     if (lvQs.SelectedItems[0].Text == "查询客户信息")
     {
         frmCustomer CustomerF = new frmCustomer();
         CustomerF.Owner = this;
         CustomerF.ShowDialog();
     }
 }