コード例 #1
0
        //private string curDateString;

        protected void Page_Load(object sender, EventArgs e)
        {
            contentInfo = ContentDB.GetInfo(ConvertUtility.ToInt32(Request.QueryString["contentid"]));
            if (contentInfo == null)
            {
                Response.Redirect(AppEnv.ADMIN_ACCESSDENY);
            }
            //curDateString = contentInfo.Content_CreateDate.Year + "_" + contentInfo.Content_CreateDate.Month + "_" + contentInfo.Content_CreateDate.Day;

            isManager  = RoleDB.CheckRole(CurrentAdminInfo.User_ID, (int)AppEnv.CMSRole.Manager);
            isDeployer = RoleDB.CheckRole(CurrentAdminInfo.User_ID, (int)AppEnv.CMSRole.Deployer);
            isCreater  = RoleDB.CheckRole(CurrentAdminInfo.User_ID, (int)AppEnv.CMSRole.Creater);

            //string userUploadPath = Constants.UploadPath + contentInfo.Content_UserID + "/" + curDateString;
            //Editor1.UploadDir = userUploadPath;
            //txtAttachFile.fpUploadDir = userUploadPath;
            //txtAvatar.fpUploadDir = userUploadPath;

            //Editor1.UploadDir = Constants.UploadContent;
            //txtAttachFile.fpUploadDir = Constants.UploadAvatar;
            //txtAvatar.fpUploadDir = Constants.UploadAvatar;

            if (!IsPostBack)
            {
                LoadZones();
            }
            lblStatusUpdate.Text = string.Empty;
        }
コード例 #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     isManager  = RoleDB.CheckRole(CurrentAdminInfo.User_ID, (int)AppEnv.CMSRole.Manager);
     isDeployer = RoleDB.CheckRole(CurrentAdminInfo.User_ID, (int)AppEnv.CMSRole.Deployer);
     if (!IsPostBack)
     {
         LoadZones();
     }
     lblStatusUpdate.Text = string.Empty;
 }
コード例 #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            contentInfo = ContentDB.GetInfo(ConvertUtility.ToInt32(Request.QueryString["contentid"]));
            if (contentInfo == null)
            {
                Response.Redirect(AppEnv.ADMIN_ACCESSDENY);
            }

            isManager  = RoleDB.CheckRole(CurrentAdminInfo.User_ID, (int)AppEnv.CMSRole.Manager);
            isDeployer = RoleDB.CheckRole(CurrentAdminInfo.User_ID, (int)AppEnv.CMSRole.Deployer);
            isCreater  = RoleDB.CheckRole(CurrentAdminInfo.User_ID, (int)AppEnv.CMSRole.Creater);

            lblStatusUpdate.Text = string.Empty;

            if (!IsPostBack)
            {
                LoadZones();
            }
        }