/// <summary> /// 商家入驻协议 /// </summary> /// <returns></returns> public ActionResult Step1() { ViewBag.SellerAdminAgreement = ShopApplication.GetSellerAgreement(); var model = ShopApplication.GetSettled(); if (CurrentSellerManager != null) { var shop = ShopApplication.GetShop(CurrentSellerManager.ShopId); if (null != shop && shop.ShopStatus == Entities.ShopInfo.ShopAuditStatus.HasExpired) { throw new HimallException("抱歉,您的店铺已过期"); } if (null != shop && shop.ShopStatus == Entities.ShopInfo.ShopAuditStatus.Freeze) { throw new HimallException("抱歉,您的店铺已冻结"); } if (shop != null) { if (shop.ShopStatus == Entities.ShopInfo.ShopAuditStatus.Refuse) { return(RedirectToAction("step3")); } ViewBag.IsSeller = shop.Stage == Entities.ShopInfo.ShopStage.Finish && shop.ShopStatus == Entities.ShopInfo.ShopAuditStatus.Open; ViewBag.WaitAudit = shop.ShopStatus == Entities.ShopInfo.ShopAuditStatus.WaitAudit; } } return(View(model)); }
public ActionResult Step0() { ViewBag.SellerAdminAgreement = ShopApplication.GetSellerAgreement(); var model = ShopApplication.GetSettled(); return(View(model)); }
public ActionResult Step0() { if (CurrentSellerManager != null) { var shop = ShopApplication.GetShop(CurrentSellerManager.ShopId); ViewBag.ShopType = shop.BusinessType.HasValue ? (int)shop.BusinessType.Value : 99; } ViewBag.SellerAdminAgreement = ShopApplication.GetSellerAgreement(); var model = ShopApplication.GetSettled(); return(View(model)); }
public ActionResult Step6() { Cache.Remove(CacheKeyCollection.CACHE_SHOPDTO(CurrentSellerManager.ShopId, true)); var shop = ShopApplication.GetShop(CurrentSellerManager.ShopId, true); if (shop.ShopStatus == ShopInfo.ShopAuditStatus.Refuse) { ViewBag.SellerAdminAgreement = ShopApplication.GetSellerAgreement(); var model = ShopApplication.GetSettled(); return(View("step1", model)); } return(View()); }
public ActionResult Step6() { ShopApplication.ClearCacheShop(CurrentSellerManager.ShopId); var shop = ShopApplication.GetShop(CurrentSellerManager.ShopId, true); if (shop.ShopStatus == Entities.ShopInfo.ShopAuditStatus.Refuse) { ViewBag.SellerAdminAgreement = ShopApplication.GetSellerAgreement(); var model = ShopApplication.GetSettled(); return(View("step1", model)); } return(View()); }
public JsonResult Auditing(long shopId, int status, string comment = "") { Himall.DTO.Settled mSettled = ShopApplication.GetSettled(); _iShopService.UpdateShopStatus(shopId, (Entities.ShopInfo.ShopAuditStatus)status, comment, mSettled.TrialDays); _iOperationLogService.AddPlatformOperationLog(new Entities.LogInfo { Date = DateTime.Now, Description = string.Format("开店审核页面,店铺Id={0},状态为:{1}, 说明是:{2}", shopId, ((ShopInfo.ShopAuditStatus)status).ToString(), comment), IPAddress = Request.UserHostAddress, PageUrl = "/Shop/Auditing/" + shopId, UserName = CurrentManager.UserName, ShopId = 0 }); return(Json(new { success = true })); }
/// <summary> /// 诊所入驻协议 /// </summary> /// <returns></returns> public ActionResult Step1() { ViewBag.SellerAdminAgreement = ShopApplication.GetSellerAgreement(); var model = ShopApplication.GetSettled(); if (CurrentSellerManager != null) { var shop = ShopApplication.GetShop(CurrentSellerManager.ShopId); if (shop != null) { if (shop.ShopStatus == ShopInfo.ShopAuditStatus.Refuse) { return(RedirectToAction("step3")); } ViewBag.IsSeller = shop.Stage == ShopInfo.ShopStage.Finish && shop.ShopStatus == ShopInfo.ShopAuditStatus.Open; ViewBag.WaitAudit = shop.ShopStatus == ShopInfo.ShopAuditStatus.WaitAudit; } } return(View(model)); }
public JsonResult EditProfiles1(ShopProfileSteps1 shopProfileStep1) { //公司信息 Mall.DTO.Shop shopInfo = ShopApplication.GetShop(CurrentSellerManager.ShopId); shopInfo.Id = CurrentSellerManager.ShopId; shopInfo.CompanyName = shopProfileStep1.CompanyName; shopInfo.CompanyAddress = shopProfileStep1.Address; shopInfo.CompanyRegionId = shopProfileStep1.CityRegionId; shopInfo.CompanyRegionAddress = shopProfileStep1.Address; shopInfo.Stage = Entities.ShopInfo.ShopStage.CompanyInfo; shopInfo.BusinessLicenseCert = Request.Form["BusinessLicenseCert"]; shopInfo.ProductCert = Request.Form["ProductCert"]; shopInfo.OtherCert = Request.Form["OtherCert"]; shopInfo.IDCard = shopProfileStep1.IDCard; shopInfo.IDCardUrl = shopProfileStep1.IDCardUrl; shopInfo.IDCardUrl2 = shopProfileStep1.IDCardUrl2; ShopApplication.UpdateShop(shopInfo); long uid = ShopApplication.GetShopManagers(CurrentSellerManager.ShopId); //管理员信息 var mTheme = ShopApplication.GetSettled(); var model = MemberApplication.GetMemberAccountSafety(uid); if (!mTheme.SelfVerificationType.Equals(Mall.CommonModel.VerificationType.VerifyEmail) && shopProfileStep1.MemberPhone.Equals("")) { return(Json(new { success = false, msg = "必须认证手机!" })); } if (!mTheme.SelfVerificationType.Equals(Mall.CommonModel.VerificationType.VerifyPhone) && shopProfileStep1.MemberEmail.Equals("")) { return(Json(new { success = false, msg = "必须认证邮箱!" })); } //修改真实姓名 var member = MemberApplication.GetMembers(uid); member.RealName = shopProfileStep1.RealName; MemberApplication.UpdateMember(member); //手机认证 if (shopProfileStep1.MemberPhone != null && !shopProfileStep1.MemberPhone.Equals(model.Phone)) { string pluginId = "Mall.Plugin.Message.SMS"; int result = MemberApplication.CheckMemberCode(pluginId, shopProfileStep1.PhoneCode, shopProfileStep1.MemberPhone, uid); string strMsg = ""; switch (result) { case 0: strMsg = "手机验证码错误!"; break; case -1: strMsg = "此手机号已绑定!"; break; } if (!strMsg.Equals("")) { return(Json(new { success = false, msg = strMsg })); } } //邮箱认证 if (shopProfileStep1.MemberEmail != null && !shopProfileStep1.MemberEmail.ToString().Equals(model.Email)) { string pluginId = "Mall.Plugin.Message.Email"; int result = MemberApplication.CheckMemberCode(pluginId, shopProfileStep1.EmailCode, shopProfileStep1.MemberEmail, uid); string strMsg = ""; switch (result) { case 0: strMsg = "邮箱验证码错误!"; break; case -1: strMsg = "此邮箱已绑定!"; break; } if (!strMsg.Equals("")) { return(Json(new { success = false, msg = strMsg })); } } ShopApplication.SetShopStage(Entities.ShopInfo.ShopStage.FinancialInfo, CurrentSellerManager.ShopId);//设置成功,则才是进入财务信息 return(Json(new { success = true, msg = "成功!" })); }
public JsonResult EditProfile1(ShopProfileStep1 shopProfileStep1) { if (ShopApplication.ExistCompanyName(shopProfileStep1.CompanyName, CurrentSellerManager.ShopId)) { return(Json(new { success = false, msg = "该公司名已存在!" })); } if (ShopApplication.ExistBusinessLicenceNumber(shopProfileStep1.BusinessLicenceNumber, CurrentSellerManager.ShopId)) { return(Json(new { success = false, msg = "该营业执照号已存在!" })); } //公司信息 Mall.DTO.Shop shopInfo = ShopApplication.GetShop(CurrentSellerManager.ShopId); shopInfo.Id = CurrentSellerManager.ShopId; shopInfo.CompanyName = shopProfileStep1.CompanyName; shopInfo.CompanyAddress = shopProfileStep1.Address; shopInfo.CompanyRegionId = shopProfileStep1.CityRegionId; shopInfo.CompanyRegionAddress = shopProfileStep1.Address; shopInfo.CompanyPhone = shopProfileStep1.Phone; shopInfo.CompanyEmployeeCount = shopProfileStep1.EmployeeCount; shopInfo.CompanyRegisteredCapital = shopProfileStep1.RegisterMoney; shopInfo.ContactsName = shopProfileStep1.ContactName; shopInfo.ContactsPhone = shopProfileStep1.ContactPhone; shopInfo.ContactsEmail = shopProfileStep1.Email; shopInfo.BusinessLicenceNumber = shopProfileStep1.BusinessLicenceNumber; shopInfo.BusinessLicenceRegionId = shopProfileStep1.BusinessLicenceArea; shopInfo.BusinessLicenceStart = shopProfileStep1.BusinessLicenceValidStart; shopInfo.BusinessLicenceEnd = shopProfileStep1.BusinessLicenceValidEnd; shopInfo.BusinessSphere = shopProfileStep1.BusinessSphere; shopInfo.BusinessLicenceNumberPhoto = shopProfileStep1.BusinessLicenceNumberPhoto; shopInfo.OrganizationCode = shopProfileStep1.OrganizationCode; shopInfo.OrganizationCodePhoto = shopProfileStep1.OrganizationCodePhoto; shopInfo.GeneralTaxpayerPhot = shopProfileStep1.GeneralTaxpayerPhoto; shopInfo.Stage = Entities.ShopInfo.ShopStage.CompanyInfo; shopInfo.BusinessLicenseCert = Request.Form["BusinessLicenseCert"]; shopInfo.ProductCert = Request.Form["ProductCert"]; shopInfo.OtherCert = Request.Form["OtherCert"]; shopInfo.legalPerson = shopProfileStep1.legalPerson; shopInfo.CompanyFoundingDate = shopProfileStep1.CompanyFoundingDate; ShopApplication.UpdateShop(shopInfo); //管理员信息 long uid = ShopApplication.GetShopManagers(CurrentSellerManager.ShopId); var mTheme = ShopApplication.GetSettled(); var model = MemberApplication.GetMemberAccountSafety(uid); if (!mTheme.CompanyVerificationType.Equals(VerificationType.VerifyEmail) && shopProfileStep1.MemberPhone.Equals("")) { return(Json(new { success = false, msg = "必须认证手机!" })); } if (!mTheme.CompanyVerificationType.Equals(Mall.CommonModel.VerificationType.VerifyPhone) && shopProfileStep1.MemberEmail.Equals("")) { return(Json(new { success = false, msg = "必须认证邮箱!" })); } //修改真实姓名 var member = MemberApplication.GetMembers(uid); member.RealName = shopProfileStep1.RealName; MemberApplication.UpdateMember(member); //手机认证 if (!shopProfileStep1.MemberPhone.Equals(model.Phone)) { string pluginId = "Mall.Plugin.Message.SMS"; int result = MemberApplication.CheckMemberCode(pluginId, shopProfileStep1.PhoneCode, shopProfileStep1.MemberPhone, uid); string strMsg = ""; switch (result) { case 0: strMsg = "手机验证码错误!"; break; case -1: strMsg = "此手机号已绑定!"; break; } if (!strMsg.Equals("")) { return(Json(new { success = false, msg = strMsg })); } } //邮箱认证 if (!shopProfileStep1.MemberEmail.Equals(model.Email)) { string pluginId = "Mall.Plugin.Message.Email"; int result = MemberApplication.CheckMemberCode(pluginId, shopProfileStep1.EmailCode, shopProfileStep1.MemberEmail, uid); string strMsg = ""; switch (result) { case 0: strMsg = "邮箱验证码错误!"; break; case -1: strMsg = "此邮箱已绑定!"; break; } if (!strMsg.Equals("")) { return(Json(new { success = false, msg = strMsg })); } } ShopApplication.SetShopStage(Entities.ShopInfo.ShopStage.FinancialInfo, CurrentSellerManager.ShopId);//设置成功,则才是进入财务信息 return(Json(new { success = true, msg = "成功!" })); }
public ActionResult Settled() { var model = ShopApplication.GetSettled(); return(View(model)); }