示例#1
0
        private void lkpEdtSalesPersonID_EditValueChanged(object sender, EventArgs e)
        {
            if (myPOS.NCategoryID == 36 || myPOS.NCategoryID == 37)
            {
                ACMSDAL.TblEmployee emp = new ACMSDAL.TblEmployee();

                if (lkpEdtSalesPersonID.Text != "")
                {
                    if (emp.IsSaleDivisionFit(ACMS.Convert.ToInt32(lkpEdtSalesPersonID.EditValue)))
                    {
                        if (lkpEdtTherapist.Visible)
                        {
                            lkpEdtTherapist.EditValue = null;
                            lkpEdtTherapist.Text      = "";
                            label1.Visible            = false;
                            lkpEdtTherapist.Visible   = false;
                            this.Text = "Add Sales Person";
                        }
                    }
                    else
                    {
                        label1.Visible          = true;
                        lkpEdtTherapist.Visible = true;
                        this.Text = "Add Sales Person And Therapist";
                    }
                }
                emp.Dispose();
            }
        }
        private void lkpEdtSalesPersonID_EditValueChanged(object sender, EventArgs e)
        {
            if (myPOS.NCategoryID == 36 || myPOS.NCategoryID == 37)
            {
                ACMSDAL.TblEmployee emp = new ACMSDAL.TblEmployee();

                if (lkpEdtSalesPersonID.Text != "")
                {
                    if (emp.IsSaleDivisionFit(ACMS.Convert.ToInt32(lkpEdtSalesPersonID.EditValue)))
                    {
                        if (lkpEdtTherapist.Visible)
                        {
                            lkpEdtTherapist.EditValue = null;
                            lkpEdtTherapist.Text = "";
                            label1.Visible = false;
                            lkpEdtTherapist.Visible = false;
                            this.Text = "Add Sales Person";
                        }
                    }
                    else
                    {
                        label1.Visible = true;
                        lkpEdtTherapist.Visible = true;
                        this.Text = "Add Sales Person And Therapist";
                    }
                }
                emp.Dispose();
            }
        }