Exemplo n.º 1
0
        private void LoadDetailControl()
        {
            if (!String.IsNullOrEmpty(CampaignId))
            {
                SlmScr010Biz bz  = new SlmScr010Biz();
                var          ctl = bz.GetControlname(CampaignId, "E");
                if (ctl != "")
                {
                    ctlLead = (Lead_Detail_Master)LoadControl("~/Shared/" + ctl);
                }
                else
                {
                    ctlLead = (Lead_Detail_Master)LoadControl("~/Shared/Lead_Detail_Default.ascx");
                }

                if (ctlLead != null)
                {
                    ctlLead.CommonData = ctlCommon.GetCommonData();
                    plcControl.Controls.Add(ctlLead);
                }
                else
                {
                    AppUtil.ClientAlert(this, "Invalid Control Name, Please contact administrator");
                }
            }
        }
Exemplo n.º 2
0
        private void LoadDetailControl()
        {
            if (pnlLead.Visible == false)
            {
                return;
            }
            if (!String.IsNullOrEmpty(CampaignId))
            {
                SlmScr010Biz bz  = new SlmScr010Biz();
                var          ctl = bz.GetControlname(CampaignId, "V");
                Session[SLMConstant.SessionName.screen_code] = ctl;

                if (ctl != "")
                {
                    ctlLead = (Lead_Detail_Master)LoadControl("~/Shared/" + ctl);
                }
                else
                {
                    ctlLead = (Lead_Detail_Master)LoadControl("~/Shared/Lead_Detail_Default.ascx");
                }

                if (ctlLead != null)
                {
                    if (plcControl.Controls.Count == 0)
                    {
                        ctlLead.CommonData = ctlCommon.GetCommonData();
                        plcControl.Controls.Add(ctlLead);
                    }
                }
                else
                {
                    AppUtil.ClientAlert(this, "Invalid Control Name, Please contact administrator");
                }
            }
        }