Ejemplo n.º 1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (WebLoginHelper.IsLogin())
     {
         if (WebLoginHelper.IsAuthority(AdminAuth.AdminManage))
         {
             hMainTitle.InnerHtml = WebLoginHelper.GetAdminName();
         }
         if (WebLoginHelper.IsAuthority(AdminAuth.BackgroundManage))
         {
             hMainTitle.InnerHtml = WebLoginHelper.GetAdminName();;
         }
         if (WebLoginHelper.IsAuthority(AdminAuth.GoodsManage))
         {
             hMainTitle.InnerHtml = WebLoginHelper.GetAdminName();;
         }
         string hrefUrl         = string.Empty;
         string hrefUrl_1       = string.Empty;
         int    order_Count     = GetOrderInfoToDelivery(out hrefUrl);
         int    backOrder_Count = GetReBackOrderToChangeGoods(out hrefUrl_1);
         int    theMsgCount     = 0;//提醒事件总和
         deliveryOrder.Attributes.Add("href", hrefUrl);
         orderCount.InnerHtml = Convert.ToString(order_Count);
         deliverReBack.Attributes.Add("href", hrefUrl_1);
         changeGoods.InnerHtml = Convert.ToString(backOrder_Count);
         theMsgCount          += order_Count > 0 ? 1 : 0;
         theMsgCount          += backOrder_Count > 0 ? 1 : 0;
         msgCount.InnerHtml    = Convert.ToString(theMsgCount);
     }
     aExit.HRef = "javascript:;";
     aExit.Attributes.Add("data-toggle", "modal");
     aExit.Attributes.Add("data-target", "#confirmModal");
     aExit.Attributes.Add("onclick", "ExitConfirm()");
 }
Ejemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (WebLoginHelper.IsLogin())
     {
         if (WebLoginHelper.IsAuthority(AdminAuth.AdminManage))
         {
             hMainTitle.InnerHtml = WebLoginHelper.GetAdminName();
         }
         if (WebLoginHelper.IsAuthority(AdminAuth.BackgroundManage))
         {
             hMainTitle.InnerHtml = WebLoginHelper.GetAdminName();;
         }
         if (WebLoginHelper.IsAuthority(AdminAuth.GoodsManage))
         {
             hMainTitle.InnerHtml = WebLoginHelper.GetAdminName();;
         }
         string hrefUrl     = string.Empty;
         int    order_Count = GetOrderInfoToDelivery(out hrefUrl);
         deliveryOrder.Attributes.Add("href", hrefUrl);
         orderCount.InnerHtml = Convert.ToString(order_Count);
         if (order_Count > 0)
         {
             msgCount.InnerHtml = "1";
         }
         else
         {
             msgCount.InnerHtml = "0";
         }
     }
     aExit.HRef = "javascript:;";
     aExit.Attributes.Add("data-toggle", "modal");
     aExit.Attributes.Add("data-target", "#confirmModal");
     aExit.Attributes.Add("onclick", "ExitConfirm()");
 }