Exemplo n.º 1
0
        /// <summary>
        /// PageLoad Event Handler
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                Response.Expires = -1;

                if (Session["UserId"] != null && Session["CompanyID"] != null && Session["UserName"] != null)
                {
                    UserSession objUserSession = new UserSession();
                    objUserSession.InsertSession(Session["UserId"].ToString(), Session["CompanyID"].ToString(), Session["UserName"].ToString());

                    // Fill Authorized branches in Session
                    SalesReportUtils salesReport = new SalesReportUtils();
                    salesReport.FillBranchesAndChainSession(Session["UserID"].ToString());
                }
                else if (Session["SessionID"] == null)
                {
                    HttpContext.Current.Response.Redirect(PFC.Intranet.Global.IntranetSiteURL + "/SystemFrameSet/SessionOut.aspx");
                }
            }

            catch (Exception ex)
            {
                throw;
            }
        }
Exemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         SalesReportUtils salesReport = new SalesReportUtils();
         //salesReport.FillBranchesAndChainSession(Session["UserID"].ToString());
     }
 }