Esempio n. 1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //判断权限
            if (!CheckMasterGrant(YuYingPermission.统计分析_管理该栏目, YuYingPermission.统计分析_收费MQ到期统计))
            {
                Utils.ResponseNoPermit(YuYingPermission.统计分析_收费MQ到期统计, true);
                return;
            }
            userBll   = EyouSoft.BLL.SystemStructure.SystemUser.CreateInstance();
            pageIndex = Utils.GetInt(Request.QueryString["Page"], 1);             //获取当前页
            itemIndex = (pageIndex - 1) * pageSize + 1;
            int      pId         = Utils.GetInt(Request.QueryString["province"]); //省份
            int      cId         = Utils.GetInt(Request.QueryString["city"]);     //城市
            int?     provinceId  = pId == 0 ? new Nullable <int>() : pId;
            int?     cityId      = cId == 0 ? new Nullable <int>() : cId;
            string   companyName = Utils.GetQueryStringValue("companyname");                          //公司名称
            DateTime?overSDate   = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("oversdate")); //到期开始时间
            DateTime?overEDate   = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("overedate")); //到期结束时间
            //绑定数据
            IList <EyouSoft.Model.SystemStructure.SysApplyServiceInfo> serviceList = EyouSoft.BLL.SystemStructure.SysApplyService.CreateInstance().GetComingExpireApplys(pageSize, pageIndex, ref recordCount, EyouSoft.Model.CompanyStructure.SysService.MQ, provinceId, cityId, companyName, overSDate, overEDate);

            if (serviceList != null && serviceList.Count > 0)
            {
                ama_rpt_applyList.DataSource = serviceList;
                ama_rpt_applyList.DataBind();
                BindPage();
            }
            else
            {
                this.ExporPageInfoSelect1.Visible = false;
                ama_rpt_applyList.EmptyText       = "暂无MQ到期信息";
            }
        }
Esempio n. 2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!CheckMasterGrant(YuYingPermission.高级网店申请审核_管理该栏目))
            {
                Utils.ResponseNoPermit(YuYingPermission.高级网店申请审核_审核, true);
                return;
            }
            userBll   = EyouSoft.BLL.SystemStructure.SystemUser.CreateInstance();
            pageIndex = Utils.GetInt(Request.QueryString["Page"], 1);
            itemIndex = (pageIndex - 1) * pageSize + 1;
            int      pId             = Utils.GetInt(Utils.GetQueryStringValue("province"));
            int      cId             = Utils.GetInt(Utils.GetQueryStringValue("city"));
            int?     provinceId      = pId == 0 ? new Nullable <int>() : pId;
            int?     cityId          = cId == 0 ? new Nullable <int>() : cId;
            string   companyName     = Utils.GetQueryStringValue("companyname");
            string   state           = Utils.GetQueryStringValue("state");
            DateTime?applyStartDate  = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("applysdate"));
            DateTime?applyFinishDate = Utils.GetDateTimeNullable(Utils.GetQueryStringValue("applyfdate"));

            EyouSoft.Model.SystemStructure.ApplyServiceState?          applyState  = state == "" ? new Nullable <EyouSoft.Model.SystemStructure.ApplyServiceState>() : (EyouSoft.Model.SystemStructure.ApplyServiceState)(Utils.GetInt(state));
            IList <EyouSoft.Model.SystemStructure.SysApplyServiceInfo> serviceList = EyouSoft.BLL.SystemStructure.SysApplyService.CreateInstance().GetApplys(pageSize, pageIndex, ref recordCount, EyouSoft.Model.CompanyStructure.SysService.HighShop, provinceId, cityId, companyName, applyStartDate, applyFinishDate, applyState);

            if (serviceList != null && serviceList.Count > 0)
            {
                ama_rpt_applyList.DataSource = serviceList;
                ama_rpt_applyList.DataBind();
                BindPage();
            }
            else
            {
                ama_rpt_applyList.EmptyText  = "<div style=\"text-align:center;  margin-top:75px; margin-bottom:75px;\">暂无高级网店审核信息</span></div>";
                ExporPageInfoSelect1.Visible = false;
            }
        }
Esempio n. 3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            string method = Utils.GetQueryStringValue("method");

            userName = MasterUserInfo.UserName;
            if (!CheckMasterGrant(YuYingPermission.帐户管理_管理该栏目, YuYingPermission.帐户管理_修改密码))
            {
                Utils.ResponseNoPermit(YuYingPermission.帐户管理_修改密码, true);
                return;
            }
            if (!CheckMasterGrant(YuYingPermission.帐户管理_管理该栏目, YuYingPermission.帐户管理_修改密码))
            {
                haveUpdate = false;
            }

            if (method == "update")
            {
                if (!haveUpdate)
                {
                    Utils.ResponseMeg(false, "对不起,你没有修改密码的权限!");
                    return;
                }
                string oldPass  = Utils.GetQueryStringValue("oldpass");
                string newPass1 = Utils.GetQueryStringValue("newpass1");
                string newPass2 = Utils.GetQueryStringValue("newpass2");
                if (oldPass == "" || newPass1 == "" || newPass2 == "")
                {
                    Utils.ResponseMegNoComplete();
                    return;
                }
                if (newPass1 != newPass2)
                {
                    Utils.ResponseMeg(false, "前后两次密码不匹配!");
                    return;
                }
                EyouSoft.IBLL.SystemStructure.ISystemUser userBll   = EyouSoft.BLL.SystemStructure.SystemUser.CreateInstance();
                EyouSoft.Model.SystemStructure.SystemUser userModel = userBll.GetSystemUserModel(MasterUserInfo.ID);
                if (userModel != null && userModel.PassWordInfo.NoEncryptPassword == oldPass)
                {
                    if (userBll.UpdateUserPassWord(MasterUserInfo.ID, newPass1) > 0)
                    {
                        Utils.ResponseMeg(true, "密码已修改,请妥善保管!");
                    }
                    else
                    {
                        Utils.ResponseMegError();
                    }
                }
                else
                {
                    Utils.ResponseMeg(false, "原密码不正确!");
                }
            }
        }
Esempio n. 4
0
        protected void AddUser()
        {
            EyouSoft.Model.SystemStructure.SystemUser userModel = new EyouSoft.Model.SystemStructure.SystemUser();
            userModel.UserName = Utils.GetFormValue(us_txtUserName1.UniqueID, 16);
            string pass1 = Utils.GetFormValue(us_txtPass1.UniqueID);
            string pass2 = Utils.GetFormValue(us_txtPass2.UniqueID);

            userModel.PassWordInfo.NoEncryptPassword = pass1;
            userModel.ContactName = Utils.GetFormValue(us_txtRealName.UniqueID, 16);
            userModel.ContactTel  = Utils.GetFormValue(us_txtTel.UniqueID);
            if (userModel.UserName == "" || pass1 == "" || pass2 == "" || userModel.ContactName == "" || userModel.ContactTel == "")
            {
                MessageBox.Show(this, "数据请填写完整!");
                return;
            }


            if (pass1 != pass2)
            {
                MessageBox.Show(this, "两次密码不一致!");
                return;
            }
            EyouSoft.IBLL.SystemStructure.ISystemUser sysUserBll = EyouSoft.BLL.SystemStructure.SystemUser.CreateInstance();
            if (sysUserBll.ExistsByUserName(userModel.UserName))
            {
                MessageBox.Show(this, "用户名已存在!");
                return;
            }
            string areaIds = Utils.GetFormValue("ckSellCity");

            userModel.ContactMobile  = Utils.GetFormValue(us_txtMoible.UniqueID);
            userModel.ContactFax     = Utils.GetFormValue(us_txtFax.UniqueID, 30);
            userModel.PermissionList = Utils.GetFormValue("chk_Permit");
            if (areaIds != "")
            {
                userModel.AreaId = areaIds.Split(',').Select(i => Utils.GetInt(i)).ToList <int>();
            }
            //获取绑定的用户类型
            IList <int> custTypeList = Utils.GetFormValues("chkCustType").Select(i => int.Parse(i)).ToList();

            userModel.CustomerTypeIds = custTypeList;

            if (EyouSoft.BLL.SystemStructure.SystemUser.CreateInstance().AddSystemUser(userModel) > 0)
            {
                MessageBox.ShowAndRedirect(this, "保存成功!", "UserListManage.aspx");
            }
            else
            {
                MessageBox.Show(this, "保存失败!");
            }
        }
Esempio n. 5
0
        protected void SetUserState()
        {
            EyouSoft.IBLL.SystemStructure.ISystemUser userBll = EyouSoft.BLL.SystemStructure.SystemUser.CreateInstance();
            int    userId = Utils.GetInt(Request.QueryString["id"]);
            string state  = Utils.GetQueryStringValue("state");

            if (userBll.SetIsDisable(userId, state == "unforbid"))
            {
                Utils.ResponseMegSuccess();
            }
            else
            {
                Utils.ResponseMegError();
            }
        }
Esempio n. 6
0
        IList <int> userTypes;         //用户类别
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!CheckMasterGrant(YuYingPermission.帐户管理_管理该栏目, YuYingPermission.帐户管理_子帐号管理))
            {
                Utils.ResponseNoPermit(YuYingPermission.帐户管理_子帐号管理, true);
                return;
            }
            int userId = Utils.GetInt(Request.QueryString["userid"]);//获取账户编号

            userBll = EyouSoft.BLL.SystemStructure.SystemUser.CreateInstance();
            if (Page.IsPostBack)
            {
                if (userId == 0)//添加账户
                {
                    AddUser();
                }
                else//修改账户
                {
                    UpdateUser(userId);
                }
            }
            else
            {
                us_txtPass1.Attributes.Add("custom", "UserSet.checkPass");
                us_txtPass1.Attributes.Add("min", "6");
                us_txtPass1.Attributes.Add("max", "16");
                if (userId != 0)//初始化账户信息
                {
                    LoadUserInfo(userId);
                    us_txtPass1.Attributes.Add("valid", "limit|custom");
                    us_txtPass1.Attributes.Add("errmsg", "密码长度为6-16个字符|密码不能单独使用数字,字母或特殊字符");
                }
                else
                {
                    isAdd = true;
                    us_txtPass1.Attributes.Add("valid", "required|limit|custom");
                    us_txtPass1.Attributes.Add("errmsg", "请填写密码|密码长度为6-16个字符|密码不能单独使用数字,字母或特殊字符");
                }
                BindPermit();       //绑定权限列表
                BindCustomerType(); //绑定类型
            }
        }