Ejemplo n.º 1
0
        /// <summary>
        /// 账号申诉
        /// </summary>
        /// <param name="lossReport">申诉实体</param>
        public void SaveLossReport(LossReport lossReport)
        {
            DataRow dr = aideLossReport.NewRow();

            dr[LossReport._ReportNo]      = lossReport.ReportNo;
            dr[LossReport._ReportEmail]   = lossReport.ReportEmail;
            dr[LossReport._Accounts]      = lossReport.Accounts;
            dr[LossReport._RegisterDate]  = lossReport.RegisterDate;
            dr[LossReport._Compellation]  = lossReport.Compellation;
            dr[LossReport._PassportID]    = lossReport.PassportID;
            dr[LossReport._MobilePhone]   = lossReport.MobilePhone;
            dr[LossReport._OldNickName1]  = lossReport.OldNickName1;
            dr[LossReport._OldNickName2]  = lossReport.OldNickName2;
            dr[LossReport._OldNickName3]  = lossReport.OldNickName3;
            dr[LossReport._OldLogonPass1] = lossReport.OldLogonPass1;
            dr[LossReport._OldLogonPass2] = lossReport.OldLogonPass2;
            dr[LossReport._OldLogonPass3] = lossReport.OldLogonPass3;
            dr[LossReport._ReportIP]      = lossReport.ReportIP;
            dr[LossReport._Random]        = lossReport.Random;
            dr[LossReport._GameID]        = lossReport.GameID;
            dr[LossReport._UserID]        = lossReport.UserID;
            dr[LossReport._OldQuestion1]  = lossReport.OldQuestion1;
            dr[LossReport._OldResponse1]  = lossReport.OldResponse1;
            dr[LossReport._OldQuestion2]  = lossReport.OldQuestion2;
            dr[LossReport._OldResponse2]  = lossReport.OldResponse2;
            dr[LossReport._OldQuestion3]  = lossReport.OldQuestion3;
            dr[LossReport._OldResponse3]  = lossReport.OldResponse3;
            dr[LossReport._SuppInfo]      = lossReport.SuppInfo;
            dr[LossReport._FixedPhone]    = lossReport.FixedPhone;
            dr[LossReport._ProcessStatus] = lossReport.ProcessStatus;
            dr[LossReport._OverDate]      = lossReport.OverDate;
            dr[LossReport._ReportDate]    = lossReport.ReportDate;
            dr[LossReport._SendCount]     = lossReport.SendCount;
            aideLossReport.Insert(dr);
        }
Ejemplo n.º 2
0
        private void btnLossRequest_Click(object sender, EventArgs e)
        {
            if (string.Equals(CheckInput(), "") == true || String.Equals(CheckInput(), "사진 링크") == true)
            {
                LossReport lossReport = new LossReport();
                lossReport.UserId       = userId;
                lossReport.Place        = txbPlace.Text;
                lossReport.LossReportId = DataRepository.LossReport.GetMaxId() + 1;
                lossReport.Date         = dteDate.DateTime.Date;
                lossReport.AnimalName   = tbxName.Text;
                lossReport.Species      = (int)((SpeciesType)Enum.Parse(typeof(SpeciesType), cbxSpecies.Text));
                lossReport.Picture      = ConvertImageToBinary(Image.FromFile(txbPictureLink.Text));
                // lossReport.PictureLink = txbPictureLink.Text;

                DataRepository.LossReport.Insert(lossReport);
                if (String.Equals(txbPictureLink.Text, "") == true)
                {
                    MessageBox.Show("사진 링크를 입력하지 않으셨습니다.\n");
                }
                MessageBox.Show("신고되었습니다.");
                Close();
                return;
            }
            MessageBox.Show($"{CheckInput().Remove(CheckInput().Length - 2)}을(를) 입력해주세요.");
        }
 public void SaveLossReport(LossReport lossReport)
 {
     System.Data.DataRow dataRow = this.aideLossReport.NewRow();
     dataRow["ReportNo"]      = lossReport.ReportNo;
     dataRow["ReportEmail"]   = lossReport.ReportEmail;
     dataRow["Accounts"]      = lossReport.Accounts;
     dataRow["RegisterDate"]  = lossReport.RegisterDate;
     dataRow["Compellation"]  = lossReport.Compellation;
     dataRow["PassportID"]    = lossReport.PassportID;
     dataRow["MobilePhone"]   = lossReport.MobilePhone;
     dataRow["OldNickName1"]  = lossReport.OldNickName1;
     dataRow["OldNickName2"]  = lossReport.OldNickName2;
     dataRow["OldNickName3"]  = lossReport.OldNickName3;
     dataRow["OldLogonPass1"] = lossReport.OldLogonPass1;
     dataRow["OldLogonPass2"] = lossReport.OldLogonPass2;
     dataRow["OldLogonPass3"] = lossReport.OldLogonPass3;
     dataRow["ReportIP"]      = lossReport.ReportIP;
     dataRow["Random"]        = lossReport.Random;
     dataRow["GameID"]        = lossReport.GameID;
     dataRow["UserID"]        = lossReport.UserID;
     dataRow["OldQuestion1"]  = lossReport.OldQuestion1;
     dataRow["OldResponse1"]  = lossReport.OldResponse1;
     dataRow["OldQuestion2"]  = lossReport.OldQuestion2;
     dataRow["OldResponse2"]  = lossReport.OldResponse2;
     dataRow["OldQuestion3"]  = lossReport.OldQuestion3;
     dataRow["OldResponse3"]  = lossReport.OldResponse3;
     dataRow["SuppInfo"]      = lossReport.SuppInfo;
     dataRow["FixedPhone"]    = lossReport.FixedPhone;
     dataRow["ProcessStatus"] = lossReport.ProcessStatus;
     dataRow["OverDate"]      = lossReport.OverDate;
     dataRow["ReportDate"]    = lossReport.ReportDate;
     dataRow["SendCount"]     = lossReport.SendCount;
     this.aideLossReport.Insert(dataRow);
 }
Ejemplo n.º 4
0
        private void ExcuteInsert()
        {
            LossReport lossReport = new LossReport();

            lossReport.LossReportId = DataRepository.LossReport.GetMaxId() + 1;

            LossReportAdminForm form = new LossReportAdminForm(lossReport);
            form.ShowDialog();
        }
        public bool UpdateLossReport(LossReport lossReport)
        {
            string commandText = string.Format("UPDATE LossReport SET ProcessStatus={0},SendCount=SendCount+1,SolveDate='{1}',OverDate='{2}' WHERE ReportID={3}", lossReport.ProcessStatus, DateTime.Now, DateTime.Now.AddHours(24.0), lossReport.ReportID);

            if (base.Database.ExecuteNonQuery(commandText) > 0)
            {
                return(true);
            }
            return(false);
        }
Ejemplo n.º 6
0
        private void ExecuteEdit()
        {
            LossReport lossReport = lossReportBindingSource.Current as LossReport;

            if (lossReport == null)
                return;

            LossReportAdminForm form = new LossReportAdminForm(lossReport);
            form.ShowDialog();
        }
        public bool UpdateLossReport(LossReport lossReport)
        {
            string commandText = string.Format("UPDATE LossReport SET ProcessStatus={0},SendCount=SendCount+1,SolveDate='{1}',OverDate='{2}' WHERE ReportID={3}", new object[]
            {
                lossReport.ProcessStatus,
                System.DateTime.Now,
                System.DateTime.Now.AddHours(24.0),
                lossReport.ReportID
            });

            return(base.Database.ExecuteNonQuery(commandText) > 0);
        }
Ejemplo n.º 8
0
        private void ExecuteDelete()
        {
            LossReport lossReport = lossReportBindingSource.Current as LossReport;

            if (Helpers.Helpers.SureToDelete() == false)
                return;
            if (lossReport == null)
                return;

            DataRepository.LossReport.Delete(lossReport);
            lossReportBindingSource.Remove(lossReport);
        }
        /// <summary>
        /// 发送重置密码邮件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void LinkButton1_Click(object sender, EventArgs e)
        {
            AuthUserOperationPermission(Permission.SendMail);
            int reportid = IntParam;

            if (reportid != 0)
            {
                LossReport   report  = FacadeManage.aideNativeWebFacade.GetLossReport(reportid);
                AccountsInfo account = FacadeManage.aideAccountsFacade.GetAccountInfoByUserID(report.UserID);
                string       site    = FacadeManage.aideNativeWebFacade.GetConfigInfo(EnumerationList.SiteConfigKey.SiteConfig.ToString()).Field2;
                string       sign    = TextEncrypt.MD5EncryptPassword(report.ReportNo + report.UserID + report.ReportDate.ToString().Trim() + report.Random + ApplicationSettings.Get("ReportForgetPasswordKey"));
                string       url     = Game.Utils.Utility.UrlEncode(site + string.Format("/Member/Complaint-Setp-4.aspx?param={0}&sign={1}&test=test", report.ReportNo, sign));

                //邮箱配置
                ConfigInfo     mail       = FacadeManage.aideNativeWebFacade.GetConfigInfo(EnumerationList.SiteConfigKey.EmailConfig.ToString());
                MailConfigInfo mailConfig = new MailConfigInfo();
                mailConfig.Accounts        = mail.Field1.Trim();
                mailConfig.Password        = mail.Field2.Trim();
                mailConfig.Port            = Convert.ToInt32(mail.Field4);
                mailConfig.SmtpServer      = mail.Field3.Trim();
                mailConfig.SmtpSenderEmail = mail.Field1.Trim();
                mailConfig.LossreportUrl   = "";

                Dictionary <string, string> renderVals = new Dictionary <string, string>();
                renderVals.Add("reportNO", report.ReportNo);
                renderVals.Add("userName", report.Accounts);
                renderVals.Add("url", url);
                renderVals.Add("mail", mail.Field1);
                renderVals.Add("sitename", FacadeManage.aideNativeWebFacade.GetConfigInfo(EnumerationList.SiteConfigKey.SiteConfig.ToString()).Field1);
                renderVals.Add("reason", "");
                string file = TextUtility.GetFullPath("/Config/lossReportSuccess.config");
                TMLForgetConfigManager.ConfigFilePath = file;
                MailTMLConfigInfo tmlMail = new MailTMLConfigInfo(TMLForgetConfigManager.LoadConfig().MailContent.Text, TMLForgetConfigManager.LoadConfig().MailTitle);
                Game.Facade.Mail.EmailForgetPassword emailFoget = new Game.Facade.Mail.EmailForgetPassword(mailConfig, tmlMail, renderVals);

                //发送邮件
                try
                {
                    emailFoget.Send(report.ReportEmail);
                    report.ProcessStatus = 1;
                    FacadeManage.aideNativeWebFacade.UpdateLossReport(report);
                    MessageBox("成功发送“申诉成功”邮件");
                }
                catch (Exception ex)
                {
                    MessageBox("邮件发送失败" + ex.ToString());
                }
            }
        }
        protected void btnSend_Click(object sender, EventArgs e)
        {
            AuthUserOperationPermission(Permission.SendMail);
            int reportid = IntParam;

            if (reportid != 0)
            {
                LossReport   report  = FacadeManage.aideNativeWebFacade.GetLossReport(reportid);
                AccountsInfo account = FacadeManage.aideAccountsFacade.GetAccountInfoByUserID(report.UserID);
                string       site    = FacadeManage.aideNativeWebFacade.GetConfigInfo(EnumerationList.SiteConfigKey.SiteConfig.ToString()).Field2;

                //邮箱配置
                ConfigInfo     mail       = FacadeManage.aideNativeWebFacade.GetConfigInfo(EnumerationList.SiteConfigKey.EmailConfig.ToString());
                MailConfigInfo mailConfig = new MailConfigInfo();
                mailConfig.Accounts        = mail.Field1.Trim();
                mailConfig.Password        = mail.Field2.Trim();
                mailConfig.Port            = Convert.ToInt32(mail.Field4);
                mailConfig.SmtpServer      = mail.Field3.Trim();
                mailConfig.SmtpSenderEmail = mail.Field1.Trim();
                mailConfig.LossreportUrl   = "";

                Dictionary <string, string> renderVals = new Dictionary <string, string>();
                renderVals.Add("reportNO", report.ReportNo);
                renderVals.Add("userName", report.Accounts);
                renderVals.Add("mail", mail.Field1);
                renderVals.Add("url", "");
                renderVals.Add("sitename", FacadeManage.aideNativeWebFacade.GetConfigInfo(EnumerationList.SiteConfigKey.SiteConfig.ToString()).Field1);
                renderVals.Add("reason", txtContent.Text);
                string file = TextUtility.GetFullPath("/Config/lossReportFailure.config");
                TMLForgetConfigManager.ConfigFilePath = file;
                MailTMLConfigInfo tmlMail = new MailTMLConfigInfo(TMLForgetConfigManager.LoadConfig().MailContent.Text, TMLForgetConfigManager.LoadConfig().MailTitle);
                Game.Facade.Mail.EmailForgetPassword emailFoget = new Game.Facade.Mail.EmailForgetPassword(mailConfig, tmlMail, renderVals);

                //发送邮件
                try
                {
                    emailFoget.Send(report.ReportEmail);
                    report.ProcessStatus = 2;
                    FacadeManage.aideNativeWebFacade.UpdateLossReport(report);
                    MessageBox("成功发送“申诉失败”邮件");
                }
                catch (Exception ex)
                {
                    MessageBox("邮件发送失败" + ex.ToString());
                }
            }
        }
Ejemplo n.º 11
0
        protected string pageName = string.Empty;               //页标签名

        protected void Page_Load(object sender, EventArgs e)
        {
            SwitchStep(1);

            sign   = Utils.GameRequest.GetQueryString("sign");
            number = Utils.GameRequest.GetQueryString("param");
            LossReport accountsLossReport = FacadeManage.aideNativeWebFacade.GetLossReport(number);

            if (accountsLossReport == null)
            {
                Response.Redirect("AccountAppeals.aspx");
                Response.End();
            }

            //申诉状态
            if (Convert.ToInt32(accountsLossReport.ProcessStatus) == 3)
            {
                RenderAlertInfo2(true, "申诉链接已被处理,不能重复操作");
                return;
            }

            //签名验证
            string reportkey         = AppConfig.ReportForgetPasswordKey;
            string confirmReportSign = Utility.MD5(number + accountsLossReport.UserID + accountsLossReport.ReportDate.ToString() + accountsLossReport.Random + reportkey);

            if (sign != confirmReportSign)
            {
                RenderAlertInfo2(true, "该申诉链接无效,签名错误");
                return;
            }

            //有效期验证
            if (DateTime.Now > accountsLossReport.OverDate)
            {
                RenderAlertInfo2(true, "该申诉链接已经过期,链接有效期为24个小时");
                return;
            }
        }
Ejemplo n.º 12
0
        /// <summary>
        /// 通过申诉重置密码
        /// </summary>
        /// <param name="context"></param>
        public void ResetPwdByReport(HttpContext context)
        {
            Message       msg          = new Message();
            AjaxJsonValid ajaxJson     = new AjaxJsonValid();
            int           userId       = 0;
            string        validateCode = GameRequest.GetFormString("txtCode");

            //验证码验证
            if (!validateCode.Equals(Fetch.GetVerifyCode(), StringComparison.InvariantCultureIgnoreCase))
            {
                ajaxJson.msg = "验证码不正确";
                context.Response.Write(ajaxJson.SerializeToJson());
                return;
            }

            //链接验证
            string     number     = Utils.GameRequest.GetFormString("number");
            string     sign       = Utils.GameRequest.GetFormString("sign");
            LossReport lossReport = FacadeManage.aideNativeWebFacade.GetLossReport(number);

            if (lossReport == null)
            {
                ajaxJson.msg = "重置失败,非法操作";
                context.Response.Write(ajaxJson.SerializeToJson());
                return;
            }
            if (lossReport.ProcessStatus == 3)
            {
                ajaxJson.msg = "重置失败,该申诉号已被处理,不能重复操作";
                context.Response.Write(ajaxJson.SerializeToJson());
                return;
            }
            string key         = AppConfig.ReportForgetPasswordKey;
            string confirmSign = Utility.MD5(number + lossReport.UserID + lossReport.ReportDate.ToString() + lossReport.Random + key);

            if (sign != confirmSign)
            {
                ajaxJson.msg = "重置失败,签名错误";
                context.Response.Write(ajaxJson.SerializeToJson());
                return;
            }
            if (DateTime.Now > lossReport.OverDate)
            {
                ajaxJson.msg = "重置失败,该申诉链接已经过期,链接有效期为24个小时";
                context.Response.Write(ajaxJson.SerializeToJson());
                return;
            }
            userId = lossReport.UserID;

            string password        = GameRequest.GetFormString("txtPassword");
            string confirmPassword = GameRequest.GetFormString("txtConfirmPassword");

            //验证密码
            if (password != confirmPassword)
            {
                ajaxJson.msg = "两次输入的密码不一直";
                context.Response.Write(ajaxJson.SerializeToJson());
                return;
            }
            msg = InputDataValidate.CheckingPasswordFormat(password);
            if (!msg.Success)
            {
                ajaxJson.msg = msg.Content;
                context.Response.Write(ajaxJson.SerializeToJson());
                return;
            }

            //验证帐号
            UserInfo userInfo = FacadeManage.aideAccountsFacade.GetUserBaseInfoByUserID(userId);

            if (!msg.Success)
            {
                ajaxJson.msg = msg.Content;
                context.Response.Write(ajaxJson.SerializeToJson());
                return;
            }

            //重置密码
            string oldPass = userInfo.LogonPass;

            userInfo.LogonPass = Utility.MD5(password);
            msg          = FacadeManage.aideAccountsFacade.ResetLoginPasswdByLossReport(userInfo, number);
            ajaxJson.msg = msg.Content;
            ajaxJson.SetValidDataValue(msg.Success);
            context.Response.Write(ajaxJson.SerializeToJson());
        }
Ejemplo n.º 13
0
        /// <summary>
        /// 查询申诉状态
        /// </summary>
        /// <param name="context"></param>
        public void ReportState(HttpContext context)
        {
            Message       msg      = new Message();
            AjaxJsonValid ajaxJson = new AjaxJsonValid();

            string account    = GameRequest.GetFormString("account");                 //申诉帐号
            string reportNo   = GameRequest.GetFormString("reportNo");                //申诉编号
            string verifyCode = GameRequest.GetFormString("code");                    //验证码

            //验证验证码
            if (!verifyCode.Equals(Fetch.GetVerifyCode(), StringComparison.InvariantCultureIgnoreCase))
            {
                ajaxJson.msg = "验证码输入有误";
                context.Response.Write(ajaxJson.SerializeToJson());
                return;
            }

            //验证申诉帐号
            msg = InputDataValidate.CheckingUserNameFormat(account);
            if (!msg.Success)
            {
                ajaxJson.msg = "申诉帐号输入有误";
                context.Response.Write(ajaxJson.SerializeToJson());
                return;
            }

            //验证申诉流失号
            msg = InputDataValidate.CheckingReportNo(reportNo, false);
            if (!msg.Success)
            {
                ajaxJson.msg = msg.Content;
                context.Response.Write(ajaxJson.SerializeToJson());
                return;
            }

            //查询申诉号
            LossReport lossReport = FacadeManage.aideNativeWebFacade.GetLossReport(reportNo, account);

            if (lossReport == null)
            {
                ajaxJson.msg = "帐号的申诉号不存在";
                context.Response.Write(ajaxJson.SerializeToJson());
                return;
            }

            //返回数据
            string state = string.Empty;

            switch (lossReport.ProcessStatus)
            {
            case 0:
                state = "客服处理中";
                break;

            case 1:
                state = "审核成功,注意查看邮件并重置密码";
                break;

            case 2:
                state = "审核失败,您的资料填写不正确或者不够详细,请重新申诉";
                break;

            case 3:
                state = "更新密码成功";
                break;
            }
            ajaxJson.AddDataItem("acount", account);
            ajaxJson.AddDataItem("reportNo", reportNo);
            ajaxJson.AddDataItem("state", state);
            ajaxJson.SetValidDataValue(true);
            context.Response.Write(ajaxJson.SerializeToJson());
        }
Ejemplo n.º 14
0
        public string AccountReport()
        {
            Message       message       = new Message();
            AjaxJsonValid ajaxJsonValid = new AjaxJsonValid();
            int           num           = 0;
            string        formString    = GameRequest.GetFormString("reportEmail");
            string        formString2   = GameRequest.GetFormString("txtUser");
            string        formString3   = GameRequest.GetFormString("regDate");
            string        formString4   = GameRequest.GetFormString("realName");
            string        formString5   = GameRequest.GetFormString("idCard");
            string        formString6   = GameRequest.GetFormString("mobile");
            string        formString7   = GameRequest.GetFormString("nicknameOne");
            string        formString8   = GameRequest.GetFormString("nicknameTwo");
            string        formString9   = GameRequest.GetFormString("nicknameThree");
            string        formString10  = GameRequest.GetFormString("passwordOne");
            string        formString11  = GameRequest.GetFormString("passwordTwo");
            string        formString12  = GameRequest.GetFormString("passwordThree");
            string        formString13  = GameRequest.GetFormString("questionOne");
            string        formString14  = GameRequest.GetFormString("answerOne");
            string        formString15  = GameRequest.GetFormString("questionTwo");
            string        formString16  = GameRequest.GetFormString("answerTwo");
            string        formString17  = GameRequest.GetFormString("questionThree");
            string        formString18  = GameRequest.GetFormString("answerThree");
            string        formString19  = GameRequest.GetFormString("suppInfo");

            message = InputDataValidate.CheckingEmail(formString);
            string result;

            if (!message.Success)
            {
                ajaxJsonValid.msg = "申诉结果接受邮箱输入有误";
                result            = ajaxJsonValid.SerializeToJson();
            }
            else
            {
                message = InputDataValidate.CheckingUserNameFormat(formString2);
                if (!message.Success)
                {
                    ajaxJsonValid.msg = "申诉帐号输入有误";
                    result            = ajaxJsonValid.SerializeToJson();
                }
                else
                {
                    if (!string.IsNullOrEmpty(formString3))
                    {
                        if (!Validate.IsShortDate(formString3))
                        {
                            ajaxJsonValid.msg = "注册日期输入有误";
                            result            = ajaxJsonValid.SerializeToJson();
                            return(result);
                        }
                        num++;
                    }
                    if (!string.IsNullOrEmpty(formString4))
                    {
                        message = InputDataValidate.CheckingRealNameFormat(formString4, true);
                        if (!message.Success)
                        {
                            ajaxJsonValid.msg = "真实姓名输入有误";
                            result            = ajaxJsonValid.SerializeToJson();
                            return(result);
                        }
                        num++;
                    }
                    if (!string.IsNullOrEmpty(formString5))
                    {
                        message = InputDataValidate.CheckingIDCardFormat(formString5, true);
                        if (!message.Success)
                        {
                            ajaxJsonValid.msg = "身份证号输入有误";
                            result            = ajaxJsonValid.SerializeToJson();
                            return(result);
                        }
                        num++;
                    }
                    if (!string.IsNullOrEmpty(formString6))
                    {
                        message = InputDataValidate.CheckingMobilePhoneNumFormat(formString6, true);
                        if (!message.Success)
                        {
                            ajaxJsonValid.msg = "移动电话输入有误";
                            result            = ajaxJsonValid.SerializeToJson();
                            return(result);
                        }
                        num++;
                    }
                    if (!string.IsNullOrEmpty(formString7))
                    {
                        message = InputDataValidate.CheckingNickNameFormat(formString7);
                        if (!message.Success)
                        {
                            ajaxJsonValid.msg = "历史昵称1输入有误";
                            result            = ajaxJsonValid.SerializeToJson();
                            return(result);
                        }
                        num++;
                    }
                    if (!string.IsNullOrEmpty(formString8))
                    {
                        message = InputDataValidate.CheckingNickNameFormat(formString8);
                        if (!message.Success)
                        {
                            ajaxJsonValid.msg = "历史昵称2输入有误";
                            result            = ajaxJsonValid.SerializeToJson();
                            return(result);
                        }
                        if (formString8 == formString7)
                        {
                            ajaxJsonValid.msg = "历史昵称不能相同";
                            result            = ajaxJsonValid.SerializeToJson();
                            return(result);
                        }
                        num++;
                    }
                    if (!string.IsNullOrEmpty(formString9))
                    {
                        message = InputDataValidate.CheckingNickNameFormat(formString9);
                        if (!message.Success)
                        {
                            ajaxJsonValid.msg = "历史昵称3输入有误";
                            result            = ajaxJsonValid.SerializeToJson();
                            return(result);
                        }
                        if (formString9 == formString7 || formString9 == formString8)
                        {
                            ajaxJsonValid.msg = "历史昵称不能相同";
                            result            = ajaxJsonValid.SerializeToJson();
                            return(result);
                        }
                        num++;
                    }
                    if (!string.IsNullOrEmpty(formString10))
                    {
                        num++;
                    }
                    if (!string.IsNullOrEmpty(formString11))
                    {
                        if (formString11 == formString10)
                        {
                            ajaxJsonValid.msg = "历史密码不能相同";
                            result            = ajaxJsonValid.SerializeToJson();
                            return(result);
                        }
                        num++;
                    }
                    if (!string.IsNullOrEmpty(formString12))
                    {
                        if (formString12 == formString11 || formString12 == formString10)
                        {
                            ajaxJsonValid.msg = "历史密码不能相同";
                            result            = ajaxJsonValid.SerializeToJson();
                            return(result);
                        }
                        num++;
                    }
                    if (formString13 != "0")
                    {
                        message = InputDataValidate.CheckingProtectAnswer(formString14, 1, false);
                        if (!message.Success)
                        {
                            ajaxJsonValid.msg = message.Content;
                            result            = ajaxJsonValid.SerializeToJson();
                            return(result);
                        }
                        num++;
                    }
                    if (formString15 != "0")
                    {
                        if (formString13 == formString15)
                        {
                            ajaxJsonValid.msg = "密保问题不能相同";
                            result            = ajaxJsonValid.SerializeToJson();
                            return(result);
                        }
                        message = InputDataValidate.CheckingProtectAnswer(formString14, 2, false);
                        if (!message.Success)
                        {
                            ajaxJsonValid.msg = message.Content;
                            result            = ajaxJsonValid.SerializeToJson();
                            return(result);
                        }
                        num++;
                    }
                    if (formString17 != "0")
                    {
                        if (formString17 == formString13 || formString17 == formString15)
                        {
                            ajaxJsonValid.msg = "密保问题不能相同";
                            result            = ajaxJsonValid.SerializeToJson();
                            return(result);
                        }
                        message = InputDataValidate.CheckingProtectAnswer(formString14, 3, false);
                        if (!message.Success)
                        {
                            ajaxJsonValid.msg = message.Content;
                            result            = ajaxJsonValid.SerializeToJson();
                            return(result);
                        }
                        num++;
                    }
                    message = InputDataValidate.CheckingProtectAnswer(formString19, true);
                    if (!message.Success)
                    {
                        ajaxJsonValid.msg = "补全资料太长,最长不能超过200个字符";
                        result            = ajaxJsonValid.SerializeToJson();
                    }
                    else
                    {
                        if (num < 4)
                        {
                            ajaxJsonValid.msg = "为了保证您的申诉请求审核通过,请输入至少4项资料,不包括补充资料";
                            result            = ajaxJsonValid.SerializeToJson();
                        }
                        else
                        {
                            Message userGlobalInfo = FacadeManage.aideAccountsFacade.GetUserGlobalInfo(0, 0, formString2);
                            if (!userGlobalInfo.Success)
                            {
                                ajaxJsonValid.msg = "您所申诉的帐号不存在";
                                result            = ajaxJsonValid.SerializeToJson();
                            }
                            else
                            {
                                UserInfo userInfo = userGlobalInfo.EntityList[0] as UserInfo;
                                if (userInfo == null)
                                {
                                    ajaxJsonValid.msg = "您所申诉的帐号不存在";
                                    result            = ajaxJsonValid.SerializeToJson();
                                }
                                else
                                {
                                    LossReport lossReport = new LossReport();
                                    lossReport.ReportNo     = Fetch.GetForgetPwdNumber();
                                    lossReport.ReportEmail  = formString;
                                    lossReport.Accounts     = formString2;
                                    lossReport.RegisterDate = formString3;
                                    lossReport.Compellation = formString4;
                                    lossReport.PassportID   = formString5;
                                    lossReport.MobilePhone  = formString6;
                                    lossReport.OldNickName1 = formString7;
                                    lossReport.OldNickName2 = formString8;
                                    lossReport.OldNickName3 = formString9;
                                    if (!string.IsNullOrEmpty(formString10))
                                    {
                                        lossReport.OldLogonPass1 = Utility.MD5(formString10);
                                    }
                                    if (!string.IsNullOrEmpty(formString11))
                                    {
                                        lossReport.OldLogonPass2 = Utility.MD5(formString11);
                                    }
                                    if (!string.IsNullOrEmpty(formString12))
                                    {
                                        lossReport.OldLogonPass3 = Utility.MD5(formString12);
                                    }
                                    lossReport.ReportIP     = GameRequest.GetUserIP();
                                    lossReport.Random       = TextUtility.CreateRandom(4, 1, 0, 0, 0, "");
                                    lossReport.GameID       = userInfo.GameID;
                                    lossReport.UserID       = userInfo.UserID;
                                    lossReport.OldQuestion1 = formString13;
                                    lossReport.OldResponse1 = formString14;
                                    lossReport.OldQuestion2 = formString15;
                                    lossReport.OldResponse2 = formString16;
                                    lossReport.OldQuestion3 = formString17;
                                    lossReport.OldResponse3 = formString18;
                                    lossReport.SuppInfo     = formString19;
                                    try
                                    {
                                        FacadeManage.aideNativeWebFacade.SaveLossReport(lossReport);
                                        ajaxJsonValid.SetValidDataValue(true);
                                        string value = string.Format("Complaint-Setp-2.aspx?number={0}&account={1}", lossReport.ReportNo, formString2);
                                        ajaxJsonValid.AddDataItem("uri", value);
                                        ajaxJsonValid.msg = "申诉成功,系统将在2个工作日内处理,申诉结果将会以邮件的形式通知您!请注意查收邮件";
                                    }
                                    catch (System.Exception ex)
                                    {
                                        ajaxJsonValid.msg = ex.ToString();
                                    }
                                    result = ajaxJsonValid.SerializeToJson();
                                }
                            }
                        }
                    }
                }
            }
            return(result);
        }
Ejemplo n.º 15
0
 public LossReportForm(LossReport lossReport) : this()
 {
     _lossReport = lossReport;
 }
Ejemplo n.º 16
0
        public LossReportForm()
        {
            InitializeComponent();

            _lossReport = new LossReport();
        }
        /// <summary>
        /// 绑定数据
        /// </summary>
        protected void BindData()
        {
            int reportId = IntParam;

            if (reportId != 0)
            {
                StringBuilder   sb      = new StringBuilder();
                LossReport      report  = FacadeManage.aideNativeWebFacade.GetLossReport(reportId);
                AccountsInfo    account = FacadeManage.aideAccountsFacade.GetAccountInfoByUserID(report.UserID);
                IndividualDatum datum   = FacadeManage.aideAccountsFacade.GetAccountDetailByUserID(report.UserID);
                AccountsProtect prote   = FacadeManage.aideAccountsFacade.GetAccountsProtectByUserID(report.UserID);

                userID = report.UserID;

                #region 绑定申诉资料
                string right = "(&nbsp;<font class=\"lanse fontTip\"><strong>√</strong></font>&nbsp;)";
                string error = "(&nbsp;<font class=\"hong fontTip\"><strong>×</strong></font>&nbsp;)";
                int    rightNum = 0, emptNum = 0;

                this.lblAccounts.Text = report.Accounts;

                ///判断身份证号
                if (string.IsNullOrEmpty(report.PassportID))
                {
                    emptNum            = emptNum + 1;
                    lblPassportID.Text = "";
                    sb.Append("身份证号(未填写)<br/>");
                }
                else
                {
                    if (report.PassportID == account.PassPortID)
                    {
                        lblPassportID.Text = right + report.PassportID;
                        rightNum           = rightNum + 1;
                        sb.Append("身份证号(正确)<br/>");
                    }
                    else
                    {
                        lblPassportID.Text = error + report.PassportID;
                        sb.Append("身份证号(错误)<br/>");
                    }
                }

                ///判断移动电话
                if (string.IsNullOrEmpty(report.MobilePhone))
                {
                    emptNum           = emptNum + 1;
                    lblLinkPhone.Text = "";
                    sb.Append("移动电话(未填写)<br/>");
                }
                else
                {
                    //if( report.MobilePhone == datum.MobilePhone )
                    //{
                    //    lblLinkPhone.Text = right + report.MobilePhone;
                    //    rightNum = rightNum + 1;
                    //    sb.Append( "移动电话(正确)<br/>" );
                    //}
                    //else
                    //{
                    //    lblLinkPhone.Text = error + report.MobilePhone;
                    //    sb.Append( "移动电话(错误)<br/>" );
                    //}
                    if (datum == null || report.MobilePhone != datum.MobilePhone)
                    {
                        lblLinkPhone.Text = error + report.MobilePhone;
                        sb.Append("移动电话(错误)<br/>");
                    }
                    else
                    {
                        lblLinkPhone.Text = right + report.MobilePhone;
                        rightNum          = rightNum + 1;
                        sb.Append("移动电话(正确)<br/>");
                    }
                }

                ///判断真实姓名
                if (string.IsNullOrEmpty(report.Compellation))
                {
                    emptNum = emptNum + 1;
                    lblCompellation.Text = "";
                    sb.Append("移动电话(未填写)<br/>");
                }
                else
                {
                    if (report.Compellation == account.Compellation)
                    {
                        lblCompellation.Text = right + report.Compellation;
                        rightNum             = rightNum + 1;
                        sb.Append("移动电话(正确)<br/>");
                    }
                    else
                    {
                        lblCompellation.Text = error + report.Compellation;
                        sb.Append("移动电话(错误)<br/>");
                    }
                }
                if (string.IsNullOrEmpty(report.RegisterDate))
                {
                    emptNum = emptNum + 1;
                    lblRegisterTime.Text = "";
                    sb.Append("注册时间(未填写)<br/>");
                }
                else
                {
                    if (Convert.ToDateTime(report.RegisterDate).Date == account.RegisterDate.Date)
                    {
                        lblRegisterTime.Text = right + report.RegisterDate;
                        rightNum             = rightNum + 1;
                        sb.Append("注册时间(正确)<br/>");
                    }
                    else
                    {
                        lblRegisterTime.Text = error + report.RegisterDate;
                        sb.Append("注册时间(错误)<br/>");
                    }
                }

                //判断密保1
                if (string.IsNullOrEmpty(report.OldQuestion1) && string.IsNullOrEmpty(report.OldResponse1))
                {
                    emptNum             = emptNum + 1;
                    lblOldProtect1.Text = "";
                    sb.Append("申诉密保1(未填写)<br/>");
                }
                else
                {
                    if ((report.OldQuestion1 == prote.Question1 && report.OldResponse1 == prote.Response1) ||
                        (report.OldQuestion1 == prote.Question2 && report.OldResponse1 == prote.Response2) ||
                        (report.OldQuestion1 == prote.Question3 && report.OldResponse1 == prote.Response3))
                    {
                        lblOldProtect1.Text = right + "问:" + report.OldQuestion1 + " 答:" + report.OldResponse1;
                        rightNum            = rightNum + 1;
                        sb.Append("申诉密保1(正确)<br/>");
                    }
                    else
                    {
                        lblOldProtect1.Text = error + "问:" + report.OldQuestion1 + " 答:" + report.OldResponse1;
                        sb.Append("申诉密保1(错误)<br/>");
                    }
                }

                //判断密保2
                if (string.IsNullOrEmpty(report.OldQuestion2) && string.IsNullOrEmpty(report.OldResponse2))
                {
                    emptNum             = emptNum + 1;
                    lblOldProtect2.Text = "";
                    sb.Append("申诉密保2(未填写)<br/>");
                }
                else
                {
                    if ((report.OldQuestion2 == prote.Question1 && report.OldResponse2 == prote.Response1) ||
                        (report.OldQuestion2 == prote.Question2 && report.OldResponse2 == prote.Response2) ||
                        (report.OldQuestion2 == prote.Question3 && report.OldResponse2 == prote.Response3))
                    {
                        lblOldProtect2.Text = right + "问:" + report.OldQuestion2 + " 答:" + report.OldResponse2;
                        rightNum            = rightNum + 1;
                        sb.Append("申诉密保2(正确)<br/>");
                    }
                    else
                    {
                        lblOldProtect2.Text = error + "问:" + report.OldQuestion2 + " 答:" + report.OldResponse2;
                        sb.Append("申诉密保2(错误)<br/>");
                    }
                }

                //判断密保3
                if (string.IsNullOrEmpty(report.OldQuestion3) && string.IsNullOrEmpty(report.OldResponse3))
                {
                    emptNum             = emptNum + 1;
                    lblOldProtect2.Text = "";
                    sb.Append("申诉密保3(未填写)<br/>");
                }
                else
                {
                    if ((report.OldQuestion3 == prote.Question1 && report.OldResponse3 == prote.Response1) ||
                        (report.OldQuestion3 == prote.Question2 && report.OldResponse3 == prote.Response2) ||
                        (report.OldQuestion3 == prote.Question3 && report.OldResponse3 == prote.Response3))
                    {
                        lblOldProtect3.Text = right + "问:" + report.OldQuestion3 + " 答:" + report.OldResponse3;
                        rightNum            = rightNum + 1;
                        sb.Append("申诉密保3(正确)<br/>");
                    }
                    else
                    {
                        lblOldProtect3.Text = error + "问:" + report.OldQuestion3 + " 答:" + report.OldResponse3;
                        sb.Append("申诉密保3(错误)<br/>");
                    }
                }

                #region 判断历史昵称
                //判断历史昵称
                Dictionary <int, string> dic = FacadeManage.aideRecordFacade.GetOldNickNameOrAccountsList(report.UserID, 1);
                if (string.IsNullOrEmpty(report.OldNickName1))
                {
                    emptNum = emptNum + 1;
                    lblOldNickName1.Text = "";
                    sb.Append("绑定历史昵称1(未填写)<br/>");
                }
                else
                {
                    if (dic.ContainsValue(report.OldNickName1))
                    {
                        lblOldNickName1.Text = right + report.OldNickName1;
                        rightNum             = rightNum + 1;
                        sb.Append("绑定历史昵称1(正确)<br/>");
                    }
                    else
                    {
                        lblOldNickName1.Text = error + report.OldNickName1;
                        sb.Append("绑定历史昵称1(错误)<br/>");
                    }
                }
                if (string.IsNullOrEmpty(report.OldNickName2))
                {
                    emptNum = emptNum + 1;
                    lblOldNickName2.Text = "";
                    sb.Append("绑定历史昵称2(未填写)<br/>");
                }
                else
                {
                    if (dic.ContainsValue(report.OldNickName2))
                    {
                        lblOldNickName2.Text = right + report.OldNickName2;
                        rightNum             = rightNum + 1;
                        sb.Append("绑定历史昵称2(正确)<br/>");
                    }
                    else
                    {
                        lblOldNickName2.Text = error + report.OldNickName2;
                        sb.Append("绑定历史昵称2(错误)<br/>");
                    }
                }

                if (string.IsNullOrEmpty(report.OldNickName3))
                {
                    emptNum = emptNum + 1;
                    lblOldNickName3.Text = "";
                    sb.Append("绑定历史昵称3(未填写)<br/>");
                }
                else
                {
                    if (dic.ContainsValue(report.OldNickName3))
                    {
                        lblOldNickName3.Text = right + report.OldNickName3;
                        rightNum             = rightNum + 1;
                        sb.Append("绑定历史昵称3(正确)<br/>");
                    }
                    else
                    {
                        lblOldNickName3.Text = error + report.OldNickName3;
                        sb.Append("绑定历史昵称3(错误)<br/>");
                    }
                }
                #endregion

                #region 判断历史登陆密码
                //判断历史登录密码
                dic = FacadeManage.aideRecordFacade.GetOldLogonPassList(report.UserID);
                if (string.IsNullOrEmpty(report.OldLogonPass1))
                {
                    emptNum = emptNum + 1;
                    lblOldLogonPass1.Text = "";
                    sb.Append("绑定历史登录密码1(未填写)<br/>");
                }
                else
                {
                    if (dic.ContainsValue(report.OldLogonPass1))
                    {
                        lblOldLogonPass1.Text = right + report.OldLogonPass1;
                        rightNum = rightNum + 1;
                        sb.Append("绑定历史登录密码1(正确)<br/>");
                    }
                    else
                    {
                        lblOldLogonPass1.Text = error + report.OldLogonPass1;
                        sb.Append("绑定历史登录密码1(错误)<br/>");
                    }
                }

                if (string.IsNullOrEmpty(report.OldLogonPass2))
                {
                    emptNum = emptNum + 1;
                    lblOldLogonPass2.Text = "";
                    sb.Append("绑定历史登录密码2(未填写)<br/>");
                }
                else
                {
                    if (dic.ContainsValue(report.OldLogonPass2))
                    {
                        lblOldLogonPass2.Text = right + report.OldLogonPass2;
                        rightNum = rightNum + 1;
                        sb.Append("绑定历史登录密码2(正确)<br/>");
                    }
                    else
                    {
                        lblOldLogonPass2.Text = error + report.OldLogonPass2;
                        sb.Append("绑定历史登录密码2(错误)<br/>");
                    }
                }

                if (string.IsNullOrEmpty(report.OldLogonPass3))
                {
                    emptNum = emptNum + 1;
                    lblOldLogonPass3.Text = "";
                    sb.Append("绑定历史登录密码3(未填写)<br/>");
                }
                else
                {
                    if (dic.ContainsValue(report.OldLogonPass3))
                    {
                        lblOldLogonPass3.Text = right + report.OldLogonPass3;
                        rightNum = rightNum + 1;
                        sb.Append("绑定历史登录密码3(正确)<br/>");
                    }
                    else
                    {
                        lblOldLogonPass3.Text = error + report.OldLogonPass3;
                        sb.Append("绑定历史登录密码3(错误)<br/>");
                    }
                }
                #endregion

                #endregion

                this.lblReportDate.Text = report.ReportDate.ToString();
                this.lblReportIP.Text   = report.ReportIP;
                this.lblReportNo.Text   = report.ReportNo;
                this.lblSuppInfo.Text   = report.SuppInfo;


                #region 绑定密保资料
                string html = prote != null?string.Format("<a href=\"#\" class=\"l\" onclick=\"javascript:openWindowOwn('AccountsProtectInfo.aspx?param={0}','{1}',660,320);\">已申请密码保护</a>",
                                                          account.ProtectID, "密码保护") : "<font class=\"hong\">未申请密码保护</font>";

                PassProtect.InnerHtml = html;
                #endregion

                #region 获取失败原因

                reason  = "<div class=\"reasonSS\"><strong>在您提供的17笔证明材料中:</strong><br/>其中," + (14 - emptNum - rightNum) + "项(错误)," + emptNum + "项(未填写)," + rightNum + "项(正确)<br/>";
                reason += sb.ToString() + "</div>";
                CheckInfo.InnerHtml = reason;
                WHCache.Default.Save <SessionCache>("reason", reason, 5);
                #endregion
            }
        }
Ejemplo n.º 18
0
        public string AccountReport()
        {
            Message       msg       = new Message();
            AjaxJsonValid ajaxJson  = new AjaxJsonValid();
            int           inputItem = 0;                                              //输入项数

            string reportEmail   = GameRequest.GetFormString("reportEmail");          //申诉邮箱
            string account       = GameRequest.GetFormString("txtUser");              //申诉帐号
            string regDate       = GameRequest.GetFormString("regDate");              //注册日期
            string realName      = GameRequest.GetFormString("realName");             //真实姓名
            string idCard        = GameRequest.GetFormString("idCard");               //身份证号
            string mobile        = GameRequest.GetFormString("mobile");               //手机号码
            string nicknameOne   = GameRequest.GetFormString("nicknameOne");          //历史昵称1
            string nicknameTwo   = GameRequest.GetFormString("nicknameTwo");          //历史昵称2
            string nicknameThree = GameRequest.GetFormString("nicknameThree");        //历史昵称3
            string passwordOne   = GameRequest.GetFormString("passwordOne");          //历史密码1
            string passwordTwo   = GameRequest.GetFormString("passwordTwo");          //历史密码2
            string passwordThree = GameRequest.GetFormString("passwordThree");        //历史密码3
            string questionOne   = GameRequest.GetFormString("questionOne");          //密保问题1
            string answerOne     = GameRequest.GetFormString("answerOne");            //密保答案1
            string questionTwo   = GameRequest.GetFormString("questionTwo");          //密保问题2
            string answerTwo     = GameRequest.GetFormString("answerTwo");            //密保答案2
            string questionThree = GameRequest.GetFormString("questionThree");        //密保问题3
            string answerThree   = GameRequest.GetFormString("answerThree");          //密保答案3
            string suppInfo      = GameRequest.GetFormString("suppInfo");             //补充资料

            #region 参数验证
            //验证申诉邮箱
            msg = InputDataValidate.CheckingEmail(reportEmail);
            if (!msg.Success)
            {
                ajaxJson.msg = "申诉结果接受邮箱输入有误";
                return(ajaxJson.SerializeToJson());
            }

            //验证申诉帐号
            msg = InputDataValidate.CheckingUserNameFormat(account);
            if (!msg.Success)
            {
                ajaxJson.msg = "申诉帐号输入有误";
                return(ajaxJson.SerializeToJson());
            }

            //验证注册日期
            if (!string.IsNullOrEmpty(regDate))
            {
                if (!Utils.Validate.IsShortDate(regDate))
                {
                    ajaxJson.msg = "注册日期输入有误";
                    return(ajaxJson.SerializeToJson());
                }
                inputItem++;
            }

            //验证真实姓名
            if (!string.IsNullOrEmpty(realName))
            {
                msg = InputDataValidate.CheckingRealNameFormat(realName, true);
                if (!msg.Success)
                {
                    ajaxJson.msg = "真实姓名输入有误";
                    return(ajaxJson.SerializeToJson());
                }
                inputItem++;
            }

            //验证身份证号
            if (!string.IsNullOrEmpty(idCard))
            {
                msg = InputDataValidate.CheckingIDCardFormat(idCard, true);
                if (!msg.Success)
                {
                    ajaxJson.msg = "身份证号输入有误";
                    return(ajaxJson.SerializeToJson());
                }
                inputItem++;
            }

            //验证移动电话
            if (!string.IsNullOrEmpty(mobile))
            {
                msg = InputDataValidate.CheckingMobilePhoneNumFormat(mobile, true);
                if (!msg.Success)
                {
                    ajaxJson.msg = "移动电话输入有误";
                    return(ajaxJson.SerializeToJson());
                }
                inputItem++;
            }

            //验证历史昵称
            if (!string.IsNullOrEmpty(nicknameOne))
            {
                msg = InputDataValidate.CheckingNickNameFormat(nicknameOne);
                if (!msg.Success)
                {
                    ajaxJson.msg = "历史昵称1输入有误";
                    return(ajaxJson.SerializeToJson());
                }
                inputItem++;
            }
            if (!string.IsNullOrEmpty(nicknameTwo))
            {
                msg = InputDataValidate.CheckingNickNameFormat(nicknameTwo);
                if (!msg.Success)
                {
                    ajaxJson.msg = "历史昵称2输入有误";
                    return(ajaxJson.SerializeToJson());
                }
                if (nicknameTwo == nicknameOne)
                {
                    ajaxJson.msg = "历史昵称不能相同";
                    return(ajaxJson.SerializeToJson());
                }
                inputItem++;
            }
            if (!string.IsNullOrEmpty(nicknameThree))
            {
                msg = InputDataValidate.CheckingNickNameFormat(nicknameThree);
                if (!msg.Success)
                {
                    ajaxJson.msg = "历史昵称3输入有误";
                    return(ajaxJson.SerializeToJson());
                }
                if (nicknameThree == nicknameOne || nicknameThree == nicknameTwo)
                {
                    ajaxJson.msg = "历史昵称不能相同";
                    return(ajaxJson.SerializeToJson());
                }
                inputItem++;
            }

            //验证密码
            if (!string.IsNullOrEmpty(passwordOne))
            {
                inputItem++;
            }
            if (!string.IsNullOrEmpty(passwordTwo))
            {
                if (passwordTwo == passwordOne)
                {
                    ajaxJson.msg = "历史密码不能相同";
                    return(ajaxJson.SerializeToJson());
                }
                inputItem++;
            }
            if (!string.IsNullOrEmpty(passwordThree))
            {
                if (passwordThree == passwordTwo || passwordThree == passwordOne)
                {
                    ajaxJson.msg = "历史密码不能相同";
                    return(ajaxJson.SerializeToJson());
                }
                inputItem++;
            }

            //验证密保
            if (questionOne != "0")
            {
                msg = InputDataValidate.CheckingProtectAnswer(answerOne, 1, false);
                if (!msg.Success)
                {
                    ajaxJson.msg = msg.Content;
                    return(ajaxJson.SerializeToJson());
                }
                inputItem++;
            }
            if (questionTwo != "0")
            {
                if (questionOne == questionTwo)
                {
                    ajaxJson.msg = "密保问题不能相同";
                    return(ajaxJson.SerializeToJson());
                }
                msg = InputDataValidate.CheckingProtectAnswer(answerOne, 2, false);
                if (!msg.Success)
                {
                    ajaxJson.msg = msg.Content;
                    return(ajaxJson.SerializeToJson());
                }
                inputItem++;
            }
            if (questionThree != "0")
            {
                if (questionThree == questionOne || questionThree == questionTwo)
                {
                    ajaxJson.msg = "密保问题不能相同";
                    return(ajaxJson.SerializeToJson());
                }
                msg = InputDataValidate.CheckingProtectAnswer(answerOne, 3, false);
                if (!msg.Success)
                {
                    ajaxJson.msg = msg.Content;
                    return(ajaxJson.SerializeToJson());
                }
                inputItem++;
            }

            //验证补充资料
            msg = InputDataValidate.CheckingProtectAnswer(suppInfo, true);
            if (!msg.Success)
            {
                ajaxJson.msg = "补全资料太长,最长不能超过200个字符";
                return(ajaxJson.SerializeToJson());
            }

            //申诉项数验证
            if (inputItem < 4)
            {
                ajaxJson.msg = "为了保证您的申诉请求审核通过,请输入至少4项资料,不包括补充资料";
                return(ajaxJson.SerializeToJson());
            }
            #endregion

            //检测帐号
            Message userMsg = FacadeManage.aideAccountsFacade.GetUserGlobalInfo(0, 0, account);
            if (!userMsg.Success)
            {
                ajaxJson.msg = "您所申诉的帐号不存在";
                return(ajaxJson.SerializeToJson());
            }
            UserInfo userInfo = userMsg.EntityList[0] as UserInfo;
            if (userInfo == null)
            {
                ajaxJson.msg = "您所申诉的帐号不存在";
                return(ajaxJson.SerializeToJson());
            }

            //申诉实体信息
            LossReport lossReport = new LossReport();
            lossReport.ReportNo     = Fetch.GetForgetPwdNumber();
            lossReport.ReportEmail  = reportEmail;
            lossReport.Accounts     = account;
            lossReport.RegisterDate = regDate;
            lossReport.Compellation = realName;
            lossReport.PassportID   = idCard;
            lossReport.MobilePhone  = mobile;
            lossReport.OldNickName1 = nicknameOne;
            lossReport.OldNickName2 = nicknameTwo;
            lossReport.OldNickName3 = nicknameThree;
            if (!string.IsNullOrEmpty(passwordOne))
            {
                lossReport.OldLogonPass1 = Utility.MD5(passwordOne);
            }
            if (!string.IsNullOrEmpty(passwordTwo))
            {
                lossReport.OldLogonPass2 = Utility.MD5(passwordTwo);
            }
            if (!string.IsNullOrEmpty(passwordThree))
            {
                lossReport.OldLogonPass3 = Utility.MD5(passwordThree);
            }
            lossReport.ReportIP     = GameRequest.GetUserIP();
            lossReport.Random       = Utils.TextUtility.CreateRandom(4, 1, 0, 0, 0, "");
            lossReport.GameID       = userInfo.GameID;
            lossReport.UserID       = userInfo.UserID;
            lossReport.OldQuestion1 = questionOne;
            lossReport.OldResponse1 = answerOne;
            lossReport.OldQuestion2 = questionTwo;
            lossReport.OldResponse2 = answerTwo;
            lossReport.OldQuestion3 = questionThree;
            lossReport.OldResponse3 = answerThree;
            lossReport.SuppInfo     = suppInfo;

            //保存数据
            try
            {
                FacadeManage.aideNativeWebFacade.SaveLossReport(lossReport);
                ajaxJson.SetValidDataValue(true);
                string url = string.Format("Complaint-Setp-2.aspx?number={0}&account={1}", lossReport.ReportNo, account);
                ajaxJson.AddDataItem("uri", url);
                ajaxJson.msg = "申诉成功,系统将在2个工作日内处理,申诉结果将会以邮件的形式通知您!请注意查收邮件";
            }
            catch (Exception ex)
            {
                ajaxJson.msg = ex.ToString();
            }
            return(ajaxJson.SerializeToJson());
        }
Ejemplo n.º 19
0
 /// <summary>
 /// 更新申诉实体
 /// </summary>
 /// <param name="lossReport">申诉实体</param>
 /// <returns>成功返回True,失败返回False</returns>
 public bool UpdateLossReport(LossReport lossReport)
 {
     return(aideNativeWebData.UpdateLossReport(lossReport));
 }
Ejemplo n.º 20
0
 public PictureSaveForm(LossReport _lossReport) : this()
 {
     check      = 3;
     lossReport = _lossReport;
 }
Ejemplo n.º 21
0
 public void SaveLossReport(LossReport lossReport)
 {
     this.webData.SaveLossReport(lossReport);
 }
Ejemplo n.º 22
0
 public PictureSaveForm(LossReport _lossReport, bool split) : this()
 {
     check      = 4;
     split      = false;
     lossReport = _lossReport;
 }