private void ShowInfo(int ApproveID) { Maticsoft.Model.Members.UsersApprove model = new Maticsoft.BLL.Members.UsersApprove().GetModel(ApproveID); this.lblApproveID.Text = model.ApproveID.ToString(); this.lblUserID.Text = this.GetUserName(model.UserID); this.lblTrueName.Text = model.TrueName; this.lblIDCardNum.Text = model.IDCardNum; this.ImageFrontView.ImageUrl = model.FrontView; this.ImageRearView.ImageUrl = model.RearView; this.lblDueDate.Text = model.DueDate.ToString(); this.lblStatus.Text = model.Status.ToString(); this.lblApproveUserID.Text = this.GetUserName(model.ApproveUserID); this.lblUserType.Text = model.UserType.ToString(); this.lblCreatedDate.Text = model.CreatedDate.ToString(); this.lblApproveDate.Text = model.ApproveDate.ToString(); }
public ActionResult UserApprove(int? Id) { ((dynamic) base.ViewBag).Title = "实名认证"; Maticsoft.BLL.Members.UsersApprove approve = new Maticsoft.BLL.Members.UsersApprove(); Maticsoft.Model.Members.UsersApprove model = new Maticsoft.Model.Members.UsersApprove(); model = approve.GetModelByUserID(base.CurrentUser.UserID); if (model != null) { return this.Redirect(string.Format("/UserCenter/SubmitSucc/{0}", model.Status)); } if (Id.HasValue) { if (base.Session["USERAPPROVE"] != null) { model = (Maticsoft.Model.Members.UsersApprove) base.Session["USERAPPROVE"]; } ((dynamic) base.ViewBag).UserID = base.CurrentUser.UserID; return base.View(model); } base.Session["USERAPPROVE"] = null; ((dynamic) base.ViewBag).UserID = base.CurrentUser.UserID; model = new Maticsoft.Model.Members.UsersApprove { UserID = base.CurrentUser.UserID }; return base.View(model); }
public void SubmitSucc() { ((dynamic) base.ViewBag).Title = "实名认证"; JsonObject obj2 = new JsonObject(); Maticsoft.BLL.Members.UsersApprove approve = new Maticsoft.BLL.Members.UsersApprove(); if (approve.DeleteByUserId(base.CurrentUser.UserID)) { obj2.Accumulate("STATUS", "SUCCESS"); } else { obj2.Accumulate("STATUS", "FAILE"); } base.Response.Write(obj2.ToString()); }
public void SubmitApprove(FormCollection collection) { JsonObject obj2 = new JsonObject(); if (base.Session["USERAPPROVE"] != null) { Maticsoft.BLL.Members.UsersApprove approve = new Maticsoft.BLL.Members.UsersApprove(); Maticsoft.Model.Members.UsersApprove model = new Maticsoft.Model.Members.UsersApprove(); model = (Maticsoft.Model.Members.UsersApprove) base.Session["USERAPPROVE"]; string oldValue = string.Format("/Upload/Temp/{0}/", DateTime.Now.ToString("yyyyMMdd")); string newValue = "/Upload/SNS/Images/ApproveImage/"; ArrayList fileNameList = new ArrayList(); fileNameList.Add(model.FrontView.Replace(oldValue, "")); fileNameList.Add(model.RearView.Replace(oldValue, "")); model.FrontView = model.FrontView.Replace(oldValue, newValue); model.RearView = model.RearView.Replace(oldValue, newValue); if (approve.Add(model) > 0) { FileManage.MoveFile(base.Server.MapPath(oldValue), base.Server.MapPath(newValue), fileNameList); base.Session["USERAPPROVE"] = null; obj2.Accumulate("STATUS", "SUCCESS"); } else { obj2.Accumulate("STATUS", "FAILE"); } } else { obj2.Accumulate("STATUS", "FAILE"); } base.Response.Write(obj2.ToString()); }