private void LoadStageList()
        {
            try
            {
                string           OCODE         = ((SessionUser)Session["SessionUser"]).OCode;
                List <MRK_Stage> MRK_StageList = new List <MRK_Stage>();

                MRK_StageList = aStageBLL.GetAllStagesList(OCODE);

                if (MRK_StageList.Count > 0)
                {
                    stageDropDownList.DataSource     = MRK_StageList;
                    stageDropDownList.DataTextField  = "StageName";
                    stageDropDownList.DataValueField = "StageId";
                    stageDropDownList.DataBind();
                    stageDropDownList.Items.Insert(0, new ListItem("--Select--", "0"));
                }
            }
            catch (Exception ex)
            {
                string EID = Convert.ToString(((SessionUser)Session["SessionUser"]).EID);
                //LogController<employeeSetup>.SetLog(ex, EID);
                ScriptManager.RegisterStartupScript(this.Page, Page.GetType(), "text", "func('" + ex.Message + "')", true);
            }
        }
Beispiel #2
0
        protected void stageRadioButton_CheckedChanged(object sender, EventArgs e)
        {
            lblMarketingPersonOrStage.Visible = true;
            mpsDropDownList.Visible           = true;
            mpsDropDownList.Items.Clear();

            try
            {
                string           OCODE         = ((SessionUser)Session["SessionUser"]).OCode;
                List <MRK_Stage> MRK_StageList = new List <MRK_Stage>();

                MRK_StageList = aStageBLL.GetAllStagesList(OCODE);



                if (MRK_StageList.Count > 0)
                {
                    mpsDropDownList.DataSource     = MRK_StageList;
                    mpsDropDownList.DataTextField  = "StageName";
                    mpsDropDownList.DataValueField = "StageId";
                    mpsDropDownList.DataBind();
                    mpsDropDownList.Items.Insert(0, new ListItem("--Select--", "0"));
                }
            }
            catch (Exception ex)
            {
                string EID = Convert.ToString(((SessionUser)Session["SessionUser"]).EID);
                //LogController<employeeSetup>.SetLog(ex, EID);
                ScriptManager.RegisterStartupScript(this.Page, Page.GetType(), "text", "func('" + ex.Message + "')", true);
            }
        }