Exemplo n.º 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                if (Session["Account"] == null)
                {
                    Response.Write(" <script> parent.document.location= 'logout.aspx' </script> ");
                    Response.End();
                }
                else
                {
                    setup auth = new setup();
                    //庫存調整(查詢)
                    if (auth.checkAuthority("adjuststock"))
                    {
                        HL_stockAdjust.Visible = true;
                    }
                    else
                    {
                        HL_stockAdjust.Visible = false;
                    }
                    //無貨刪單
                    if (auth.checkAuthority("del_noproduct"))
                    {
                        HL_noProduct.Visible = true;
                    }
                    else
                    {
                        HL_noProduct.Visible = false;
                    }
                    //撿貨誤差(2013-0510新增)
                    if (auth.checkAuthority("mistake_report"))
                    {
                        HL_MistakeReport.Visible = true;
                    }
                    else
                    {
                        HL_MistakeReport.Visible = false;
                    }

                    //HL_storage.NavigateUrl += "?Account=" + Session["Account"].ToString() + "&Name=" + Session["Name"].ToString();
                }
            }
            catch (Exception ex)
            {
                Response.Write("系統發生錯誤 " + ex.Message);
            }
        }
Exemplo n.º 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                setup auth = new setup();

                if (Session["Account"] == null)
                {
                    Response.Write(" <script> parent.document.location= 'logout.aspx' </script> ");
                    Response.End();
                }
                else
                {
                }
            }
            catch (Exception ex)
            {
                Response.Write("系統發生錯誤 " + ex.Message);
            }
        }
Exemplo n.º 3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                setup auth = new setup();

                if (Session["Account"] == null)
                {
                    Response.Write(" <script> parent.document.location= 'logout.aspx' </script> ");
                    Response.End();
                }
                else
                {
                    HL_pos_check_out2.Visible = auth.checkAuthorityPro("15") && (Session["ClerkID"] != null);
                }
            }
            catch (Exception ex)
            {
                Response.Write("系統發生錯誤 " + ex.Message);
            }
        }
Exemplo n.º 4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            try
            {
                if (Session["Account"] == null)
                {
                    Response.Write(" <script> parent.document.location= 'logout.aspx' </script> ");
                    Response.End();
                }
                else
                {
                    setup auth = new setup();

                    if (auth.checkAuthorityPro("需求單審核"))
                    {
                        HL_RequireCheck.Visible = true;
                    }
                }
            }
            catch (Exception ex)
            {
                Response.Write("系統發生錯誤 " + ex.Message);
            }
        }