Ejemplo n.º 1
0
        private void toolAdd_Click(object sender, EventArgs e)
        {
            if (tvCustomer.SelectedNode != null)
            {
                if (tvCustomer.SelectedNode.Tag != null)
                {
                    if (tcMain.SelectedTab.Equals(tpSell)) //判断当前选择的选项卡
                    {
                        FormCUSellChance formCUSellChance = new FormCUSellChance();
                        formCUSellChance.Tag   = "Add";
                        formCUSellChance.Owner = this;
                        formCUSellChance.ShowDialog();
                    }

                    if (tcMain.SelectedTab.Equals(tpRel)) //判断当前选择的选项卡
                    {
                        FormCURelRecord formCURelRecord = new FormCURelRecord();
                        formCURelRecord.Tag   = "Add";
                        formCURelRecord.Owner = this;
                        formCURelRecord.ShowDialog();
                    }

                    if (tcMain.SelectedTab.Equals(tpAfter)) //判断当前选择的选项卡
                    {
                        FormCUAfterService formCUAfterService = new FormCUAfterService();
                        formCUAfterService.Tag   = "Add";
                        formCUAfterService.Owner = this;
                        formCUAfterService.ShowDialog();
                    }
                }
            }
        }
Ejemplo n.º 2
0
        private void toolAdd_Click(object sender, EventArgs e)
        {
            if (tvCustomer.SelectedNode != null)
            {
                if (tvCustomer.SelectedNode.Tag != null)
                {
                    if (tcMain.SelectedTab.Equals(tpSell)) //判断当前选择的选项卡
                    {
                        FormCUSellChance formCUSellChance = new FormCUSellChance();
                        formCUSellChance.Tag = "Add";
                        formCUSellChance.Owner = this;
                        formCUSellChance.ShowDialog();
                    }

                    if (tcMain.SelectedTab.Equals(tpRel)) //判断当前选择的选项卡
                    {
                        FormCURelRecord formCURelRecord = new FormCURelRecord();
                        formCURelRecord.Tag = "Add";
                        formCURelRecord.Owner = this;
                        formCURelRecord.ShowDialog();
                    }

                    if (tcMain.SelectedTab.Equals(tpAfter)) //判断当前选择的选项卡
                    {
                        FormCUAfterService formCUAfterService = new FormCUAfterService();
                        formCUAfterService.Tag = "Add";
                        formCUAfterService.Owner = this;
                        formCUAfterService.ShowDialog();
                    }
                }
            }
        }