Пример #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!CheckGrant(global::Common.Enum.TravelPermission.个人中心_工作交流_工作汇报栏目))
            {
                Utils.ResponseNoPermit(global::Common.Enum.TravelPermission.个人中心_工作交流_工作汇报栏目, true);
            }

            wrBll = new EyouSoft.BLL.PersonalCenterStructure.WorkReport(SiteUserInfo);
            string type = Utils.GetQueryStringValue("type");

            if (!IsPostBack)
            {
                switch (type)
                {
                case "reportdel":
                    ReportDel();
                    break;

                default:
                    DataInit();
                    break;
                }
                BindDepart();
            }
        }
Пример #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            wrBll = new EyouSoft.BLL.PersonalCenterStructure.WorkReport(SiteUserInfo);
            type  = EyouSoft.Common.Utils.GetQueryStringValue("type");
            if (IsPostBack)
            {
                Save();
            }
            else
            {
                switch (type)
                {
                case "modify":
                    Bind();
                    this.Title = "汇报修改_工作汇报_个人中心";
                    break;

                case "check":
                    Check();
                    break;

                default:
                    BindAdd();
                    this.Title = "汇报新增_工作汇报_个人中心";
                    break;
                }
            }
        }
Пример #3
0
        protected bool isshow = false;//是否能查看
        #endregion

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!CheckGrant(global::Common.Enum.TravelPermission.个人中心_工作交流_工作汇报栏目))
            {
                Utils.ResponseNoPermit(global::Common.Enum.TravelPermission.个人中心_工作交流_工作汇报栏目, true);
            }
            wrBll = new EyouSoft.BLL.PersonalCenterStructure.WorkReport(SiteUserInfo);
            dBll  = new EyouSoft.BLL.CompanyStructure.Department();
            if (!IsPostBack)
            {
                Bind();
            }
        }