Esempio n. 1
0
        //static DataTable cataTable = null;
        //DataTable denyTable = null;

        //protected void GetCataTable()
        //{
        //    if (cataTable == null)
        //    {
        //        cataTable = QJVRMS.Business.Catalog.GetAllCatalog();
        //    }
        //}

        protected void Page_Load(object sender, EventArgs e)
        {



            xmlFile = Server.MapPath("/xml/IndexFlashImages.xml");
            this.imgString = this.GetImageString();

            //   Guid groupId = CurrentUser.UserGroupId;
            if (!this.IsPostBack)
            {

                this.GetStatData();


                //最新公告
                QJVRMS.Business.NoticeFactory noticeFactory = new QJVRMS.Business.NoticeFactory();
                this.NoticesUL.InnerHtml = noticeFactory.ShowNoticesContent();
                
                //个人事务
                //QJVRMS.Business.CalendarFactory calendarFactory = new QJVRMS.Business.CalendarFactory();
                //this.CalendarUL.InnerHtml = calendarFactory.ShowCalendars(DateTime.Now.ToString(), CurrentUser.UserLoginName);
                
                //订单管理
                QJVRMS.Business.Orders orders = new QJVRMS.Business.Orders();
                //this.CalendarUL.InnerHtml = orders.ShowDefaultOrders(CurrentUser.UserLoginName);
               // if (Request.IsAuthenticated)
             //   {
         //           this.lblLoginName.Text = CurrentUser.UserName;
                  //  this.notLogin.Visible = false;
           //         this.logged.Visible = true;
           //     }
            //    else
        //        {
             //       this.notLogin.Visible = true;
          //          this.logged.Visible = false;
          //      }
                //GetCataTable();
                //if (cataTable.Rows.Count == 0) return;


                //#region 权限判定

                //// QJVRMS.Business.CatalogWS.CatalogService cs = new QJVRMS.Business.CatalogWS.CatalogService();
                //denyTable = QJVRMS.Business.Catalog.GetCatalogByMethod(CurrentUser.UserId, QJVRMS.Business.SecurityControl.OperatorMethod.Deny);


                //#endregion

                //DataRow[] firstNodes = cataTable.Select("parentid is null", "CatalogOrder");
                //GetCatalog(cataTable, firstNodes, null);

            }
        }
Esempio n. 2
0
        //static DataTable cataTable = null;
        //DataTable denyTable = null;

        //protected void GetCataTable()
        //{
        //    if (cataTable == null)
        //    {
        //        cataTable = QJVRMS.Business.Catalog.GetAllCatalog();
        //    }
        //}

        protected void Page_Load(object sender, EventArgs e)
        {
            xmlFile        = Server.MapPath("/xml/IndexFlashImages.xml");
            this.imgString = this.GetImageString();

            //   Guid groupId = CurrentUser.UserGroupId;
            if (!this.IsPostBack)
            {
                this.GetStatData();


                //最新公告
                QJVRMS.Business.NoticeFactory noticeFactory = new QJVRMS.Business.NoticeFactory();
                this.NoticesUL.InnerHtml = noticeFactory.ShowNoticesContent();

                //个人事务
                //QJVRMS.Business.CalendarFactory calendarFactory = new QJVRMS.Business.CalendarFactory();
                //this.CalendarUL.InnerHtml = calendarFactory.ShowCalendars(DateTime.Now.ToString(), CurrentUser.UserLoginName);

                //订单管理
                QJVRMS.Business.Orders orders = new QJVRMS.Business.Orders();
                //this.CalendarUL.InnerHtml = orders.ShowDefaultOrders(CurrentUser.UserLoginName);
                // if (Request.IsAuthenticated)
                //   {
                //           this.lblLoginName.Text = CurrentUser.UserName;
                //  this.notLogin.Visible = false;
                //         this.logged.Visible = true;
                //     }
                //    else
                //        {
                //       this.notLogin.Visible = true;
                //          this.logged.Visible = false;
                //      }
                //GetCataTable();
                //if (cataTable.Rows.Count == 0) return;


                //#region 权限判定

                //// QJVRMS.Business.CatalogWS.CatalogService cs = new QJVRMS.Business.CatalogWS.CatalogService();
                //denyTable = QJVRMS.Business.Catalog.GetCatalogByMethod(CurrentUser.UserId, QJVRMS.Business.SecurityControl.OperatorMethod.Deny);


                //#endregion

                //DataRow[] firstNodes = cataTable.Select("parentid is null", "CatalogOrder");
                //GetCatalog(cataTable, firstNodes, null);
            }
        }