protected void Page_Load(object sender, EventArgs e)
    {
        Page.Title = "Create SalesRep Territory";
        Franchisor_FranchisorMaster obj = (Franchisor_FranchisorMaster)Master;

        obj.SetBreadCrumbRoot = "<a href=\"/App/Franchisor/Dashboard.aspx\">DashBoard</a>";
        obj.hideucsearch();

        if (Request.QueryString["TerritoryID"] != null)
        {
            Page.Title        = "Edit SalesRep Territory";
            dvTitle.InnerText = "Edit SalesRep Territory";
            obj.settitle("Edit Territory");
        }
        else
        {
            Page.Title        = "Create SalesRep Territory";
            dvTitle.InnerText = "Create SalesRep Territory";
            obj.settitle("Create SalesRep Territory");
        }

        if (!IsPostBack)
        {
            if (Request.QueryString["ParentTerritoryID"] != null)
            {
                fillZipDetails(Request.QueryString["ParentTerritoryID"].ToString());
            }
            if (Request.QueryString["TerritoryID"] != null && Request.QueryString["TerritoryID"].ToString().Trim().Length > 0)
            {
                FillTerritoryDetails(Request.QueryString["TerritoryID"].ToString());
            }
        }
    }
Пример #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Page.Title = "Contact EIP";
        Franchisor_FranchisorMaster obj = (Franchisor_FranchisorMaster)this.Master;

        obj.settitle("Contact EIP");
        obj.SetBreadCrumbRoot = "<a href=\"#\">Details</a>";
        obj.hideucsearch();
        if (!IsPostBack)
        {
            ViewState["SortContact"] = SortDirection.Ascending;
            GetContactEIP();
        }
    }
Пример #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        this.Title = "Edit Customer";
        Franchisor_FranchisorMaster objMaster = (Franchisor_FranchisorMaster)this.Master;

        objMaster.SetBreadCrumbRoot = "<a href=\"/App/Franchisor/Dashboard.aspx\">DashBoard</a>";
        objMaster.settitle("Customer Profile");
        objMaster.hideucsearch();
        if (!IsPostBack)
        {
            if (Request.QueryString["UserID"] != null)
            {
                UCEditCustomer1.UserID = Convert.ToInt32(Request.QueryString["UserID"].ToString());
            }
            else if (Request.QueryString["CustomerID"] != null)
            {
                var otherDal = new OtherDAL();

                Int64 returnresult = otherDal.GetUid(Convert.ToInt32(Request.QueryString["CustomerID"]));
                UCEditCustomer1.UserID = Convert.ToInt32(returnresult);
            }
        }
    }
Пример #4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Page.Title = "Manage Email Templates";

        Franchisor_FranchisorMaster obj = (Franchisor_FranchisorMaster)this.Master;

        obj.settitle("Manage Email Templates");
        obj.SetBreadCrumbRoot = "<a href=\"#\">DashBoard</a>";
        obj.hideucsearch();

        if (!IsPostBack)
        {
            if (!string.IsNullOrEmpty(Request["mode"]))
            {
                ViewState["TemplateType"]    = 0;
                ViewState["CoverLetterType"] = 0;
                if (Session["EmailSubject"] != null && (string)Session["EmailSubject"] != "")
                {
                    txtEmailSubject.Text        = Session["EmailSubject"].ToString();
                    ViewState["EmailSubject"]   = Session["EmailSubject"].ToString();
                    ViewState["SearchStatus"]   = "No";
                    ViewState["SortExpression"] = "EmailSubject";
                    ViewState["SortDir"]        = "asc";
                }
                else
                {
                    ViewState["EmailSubject"]   = txtEmailSubject.Text;
                    ViewState["SearchStatus"]   = "No";
                    ViewState["SortExpression"] = "EmailSubject";
                    ViewState["SortDir"]        = "asc";
                }
            }
            else
            {
                ViewState["EmailSubject"]    = txtEmailSubject.Text;
                ViewState["SearchStatus"]    = "No";
                ViewState["SortExpression"]  = "EmailSubject";
                ViewState["SortDir"]         = "asc";
                ViewState["TemplateType"]    = rbtLstTemplateType.SelectedValue;
                ViewState["CoverLetterType"] = rbtLstCoverLetterType.SelectedValue;
            }
            grdManageEmailTemplate.PageSize = Convert.ToInt32(ddlRecords.SelectedValue);
            GetEmailTemplate("", 0, 0);
        }
        if (Page.IsPostBack)
        {
            string eventArg = Request["__EVENTARGUMENT"];
            if (eventArg.Equals("Reset"))
            {
                ViewState["EmailSubject"]   = txtEmailSubject.Text;
                ViewState["SearchStatus"]   = "No";
                ViewState["SortExpression"] = "EmailSubject";
                ViewState["SortDir"]        = "asc";
                txtEmailSubject.Text        = "";
                GetEmailTemplate("", 0, 0);
                Session["EmailSubject"]             = null;
                ViewState["TemplateType"]           = rbtLstTemplateType.SelectedValue;
                ViewState["CoverLetterType"]        = rbtLstCoverLetterType.SelectedValue;
                rbtLstTemplateType.SelectedValue    = "0";
                rbtLstCoverLetterType.SelectedValue = "0";
            }
        }
    }