public ActionResult Step4() { var shop = ShopApplication.GetShop(CurrentSellerManager.ShopId, true); string viewName; if (shop.ShopStatus == Entities.ShopInfo.ShopAuditStatus.WaitAudit) { viewName = "step4"; ViewBag.Text = "已成功提交申请入驻信息,审核通过后将通过短信及邮件通知您,请您关注。"; } else if (shop.ShopStatus == Entities.ShopInfo.ShopAuditStatus.Refuse) { ViewBag.Step = 1; ViewBag.MenuStep = 1; ViewBag.Frame = "Step1"; ViewBag.Manager = CurrentSellerManager; var step1 = new ShopProfileStep1(); return(View("EditProfile", step1)); } else { return(RedirectToAction("Finish")); } return(View(viewName)); }
public JsonResult EditProfile1(ShopProfileStep1 shopProfileStep1) { ShopInfo shopInfo = new ShopInfo() { Id = base.CurrentSellerManager.ShopId, CompanyName = shopProfileStep1.CompanyName, CompanyAddress = shopProfileStep1.Address, CompanyRegionId = shopProfileStep1.CityRegionId, CompanyRegionAddress = shopProfileStep1.Address, CompanyPhone = shopProfileStep1.Phone, CompanyEmployeeCount = shopProfileStep1.EmployeeCount, CompanyRegisteredCapital = shopProfileStep1.RegisterMoney, ContactsName = shopProfileStep1.ContactName, ContactsPhone = shopProfileStep1.ContactPhone, ContactsEmail = shopProfileStep1.Email, BusinessLicenceNumber = shopProfileStep1.BusinessLicenceNumber, BusinessLicenceRegionId = shopProfileStep1.BusinessLicenceArea, BusinessLicenceStart = new DateTime?(shopProfileStep1.BusinessLicenceValidStart), BusinessLicenceEnd = new DateTime?(shopProfileStep1.BusinessLicenceValidEnd), BusinessSphere = shopProfileStep1.BusinessSphere, BusinessLicenceNumberPhoto = shopProfileStep1.BusinessLicenceNumberPhoto, OrganizationCode = shopProfileStep1.OrganizationCode, OrganizationCodePhoto = shopProfileStep1.OrganizationCodePhoto, GeneralTaxpayerPhot = shopProfileStep1.GeneralTaxpayerPhoto, Stage = new ShopInfo.ShopStage?(ShopInfo.ShopStage.FinancialInfo), BusinessLicenseCert = base.Request.Form["BusinessLicenseCert"], ProductCert = base.Request.Form["ProductCert"], OtherCert = base.Request.Form["OtherCert"], legalPerson = shopProfileStep1.legalPerson, CompanyFoundingDate = new DateTime?(shopProfileStep1.CompanyFoundingDate) }; ServiceHelper.Create <IShopService>().UpdateShop(shopInfo); return(Json(new { success = true })); }
public JsonResult EditProfile1(ShopProfileStep1 shopProfileStep1) { ShopInfo shopInfo = new ShopInfo(); shopInfo.Id = base.CurrentSellerManager.ShopId; shopInfo.CompanyName = shopProfileStep1.CompanyName; shopInfo.ECompanyName = shopProfileStep1.ECompanyName; shopInfo.CompanyAddress = shopProfileStep1.Address; shopInfo.ECompanyAddress = shopProfileStep1.ECompanyAddress; shopInfo.CompanyRegionId = shopProfileStep1.CityRegionId; shopInfo.CompanyRegionAddress = shopProfileStep1.Address; shopInfo.CompanyPhone = shopProfileStep1.Phone; shopInfo.CompanyEmployeeCount = shopProfileStep1.EmployeeCount; //CompanyRegisteredCapital = shopProfileStep1.RegisterMoney, shopInfo.ContactsName = shopProfileStep1.ContactName; shopInfo.EContactsName = shopProfileStep1.EContactsName; shopInfo.ContactsPhone = shopProfileStep1.ContactPhone; shopInfo.ContactsEmail = shopProfileStep1.Email; shopInfo.BusinessLicenceNumber = shopProfileStep1.BusinessLicenceNumber; shopInfo.TaxpayerId = shopProfileStep1.TaxpayerId; shopInfo.TaxRegistrationCertificate = shopProfileStep1.TaxRegistrationCertificate; shopInfo.TaxRegistrationCertificatePhoto = shopProfileStep1.TaxRegistrationCertificatePhoto; //BusinessLicenceRegionId = shopProfileStep1.BusinessLicenceArea, //BusinessLicenceStart = new DateTime?(shopProfileStep1.BusinessLicenceValidStart), //BusinessLicenceEnd = new DateTime?(shopProfileStep1.BusinessLicenceValidEnd), //BusinessSphere = shopProfileStep1.BusinessSphere, shopInfo.BusinessLicenceNumberPhoto = shopProfileStep1.BusinessLicenceNumberPhoto; shopInfo.OrganizationCode = shopProfileStep1.OrganizationCode; shopInfo.OrganizationCodePhoto = shopProfileStep1.OrganizationCodePhoto; shopInfo.GeneralTaxpayerPhot = shopProfileStep1.GeneralTaxpayerPhoto; shopInfo.CertificatePhoto = shopProfileStep1.CertificatePhoto; shopInfo.Stage = new ShopInfo.ShopStage?(ShopInfo.ShopStage.FinancialInfo); shopInfo.BusinessLicenseCert = base.Request.Form["BusinessLicenseCert"]; shopInfo.ProductCert = base.Request.Form["ProductCert"]; shopInfo.OtherCert = base.Request.Form["OtherCert"]; //legalPerson = shopProfileStep1.legalPerson, shopInfo.CompanyType = shopProfileStep1.CompanyType ?? "生产企业"; //ProductsNumberIng shopInfo.ZipCode = shopProfileStep1.ZipCode; shopInfo.Fax = shopProfileStep1.Fax; shopInfo.URL = shopProfileStep1.URL; shopInfo.Logo = base.Request.Form["Logo"]; shopInfo.ChemicalsBusinessLicense = base.Request.Form["ChemicalsBusinessLicense"]; shopInfo.ChemNumber = shopProfileStep1.ChemNumber; shopInfo.ShopName = shopProfileStep1.CompanyName; shopInfo.GMPPhoto = base.Request.Form["GMPPhoto"]; shopInfo.FDAPhoto = base.Request.Form["FDAPhoto"]; shopInfo.ISOPhoto = base.Request.Form["ISOPhoto"]; //{ // //CompanyFoundingDate = new DateTime?(shopProfileStep1.CompanyFoundingDate) //}; ServiceHelper.Create <IShopService>().UpdateShop(shopInfo); return(Json(new { success = true })); }
public ActionResult EditProfile1() { ViewBag.Step = 1; ViewBag.MenuStep = 1; ViewBag.Frame = "Step1"; ViewBag.Manager = base.CurrentUser; ViewBag.Email = base.CurrentUser.UserName; ViewBag.SellerAdminAgreement = GetSellerAgreement(); ShopProfileStep1 Step = new ShopProfileStep1(); return(View("EditProfile", Step)); }
public ActionResult EditProfile1() { var model = ShopApplication.GetShop(CurrentSellerManager.ShopId); ViewBag.Step = 1; ViewBag.MenuStep = 1; if (model.BusinessType.Equals(Mall.CommonModel.ShopBusinessType.Personal)) { ViewBag.Frame = "Steps1"; } else { ViewBag.Frame = "Step1"; } ViewBag.Manager = CurrentUser; ViewBag.SellerAdminAgreement = ShopApplication.GetSellerAgreement(); var step1 = new ShopProfileStep1(); return(View("EditProfile", step1)); }
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 Step1() { ShopInfo shop = ServiceHelper.Create <IShopService>().GetShop(base.CurrentSellerManager.ShopId, false); ShopProfileStep1 shopProfileStep1 = new ShopProfileStep1() { Address = shop.CompanyAddress, BusinessLicenceArea = shop.BusinessLicenceRegionId, BusinessLicenceNumber = shop.BusinessLicenceNumber, BusinessLicenceNumberPhoto = shop.BusinessLicenceNumberPhoto }; if (shop.BusinessLicenceEnd.HasValue) { shopProfileStep1.BusinessLicenceValidEnd = shop.BusinessLicenceEnd.Value; } if (shop.BusinessLicenceStart.HasValue) { shopProfileStep1.BusinessLicenceValidStart = shop.BusinessLicenceStart.Value; } string empty = string.Empty; for (int i = 1; i < 4; i++) { if (System.IO.File.Exists(Server.MapPath(string.Concat(shop.BusinessLicenseCert, string.Format("{0}.png", i))))) { empty = string.Concat(empty, shop.BusinessLicenseCert, string.Format("{0}.png", i), ","); } } char[] chrArray = new char[] { ',' }; shopProfileStep1.BusinessLicenseCert = empty.TrimEnd(chrArray); shopProfileStep1.BusinessSphere = shop.BusinessSphere; shopProfileStep1.CityRegionId = shop.CompanyRegionId; if (shop.CompanyFoundingDate.HasValue) { shopProfileStep1.CompanyFoundingDate = shop.CompanyFoundingDate.Value; } shopProfileStep1.CompanyName = shop.CompanyName; shopProfileStep1.ContactName = shop.ContactsName; shopProfileStep1.ContactPhone = shop.ContactsPhone; shopProfileStep1.Email = shop.ContactsEmail; shopProfileStep1.EmployeeCount = shop.CompanyEmployeeCount; shopProfileStep1.GeneralTaxpayerPhoto = shop.GeneralTaxpayerPhot; shopProfileStep1.legalPerson = shop.legalPerson; shopProfileStep1.OrganizationCode = shop.OrganizationCode; shopProfileStep1.OrganizationCodePhoto = shop.OrganizationCodePhoto; string str = string.Empty; for (int j = 1; j < 4; j++) { if (System.IO.File.Exists(Server.MapPath(string.Concat(shop.OtherCert, string.Format("{0}.png", j))))) { str = string.Concat(str, shop.OtherCert, string.Format("{0}.png", j), ","); } } char[] chrArray1 = new char[] { ',' }; shopProfileStep1.OtherCert = str.TrimEnd(chrArray1); shopProfileStep1.Phone = shop.CompanyPhone; string empty1 = string.Empty; for (int k = 1; k < 4; k++) { if (System.IO.File.Exists(Server.MapPath(string.Concat(shop.ProductCert, string.Format("{0}.png", k))))) { empty1 = string.Concat(empty1, shop.ProductCert, string.Format("{0}.png", k), ","); } } char[] chrArray2 = new char[] { ',' }; shopProfileStep1.ProductCert = empty1.TrimEnd(chrArray2); shopProfileStep1.RegisterMoney = shop.CompanyRegisteredCapital; shopProfileStep1.taxRegistrationCert = shop.TaxRegistrationCertificate; ViewBag.CompanyRegionIds = ServiceHelper.Create <IRegionService>().GetRegionIdPath(shop.CompanyRegionId); ViewBag.BusinessLicenceRegionIds = ServiceHelper.Create <IRegionService>().GetRegionIdPath(shop.BusinessLicenceRegionId); string refuseReason = ""; if (shop.ShopStatus == ShopInfo.ShopAuditStatus.Refuse) { refuseReason = shop.RefuseReason; } ViewBag.RefuseReason = refuseReason; return(View(shopProfileStep1)); }
/// <summary> /// 商家入驻第二部 /// </summary> /// <param name="id"></param> /// <returns></returns> public static ShopProfileStep1 GetShopProfileStep1(long id, out long CompanyRegionId, out long BusinessLicenceRegionId, out string RefuseReason) { var shop = Service.GetShop(id); var step1 = new ShopProfileStep1(); step1.Address = shop.CompanyAddress; step1.BusinessLicenceArea = shop.BusinessLicenceRegionId; step1.BusinessLicenceNumber = shop.BusinessLicenceNumber; step1.BusinessLicenceNumberPhoto = shop.BusinessLicenceNumberPhoto; if (shop.BusinessLicenceEnd.HasValue) { step1.BusinessLicenceValidEnd = shop.BusinessLicenceEnd.Value; } if (shop.BusinessLicenceStart.HasValue) { step1.BusinessLicenceValidStart = shop.BusinessLicenceStart.Value; } string BusinessLicenseCert = string.Empty; for (int i = 1; i < 4; i++) { if (HimallIO.ExistFile(shop.BusinessLicenseCert + string.Format("{0}.png", i))) { BusinessLicenseCert += shop.BusinessLicenseCert + string.Format("{0}.png", i) + ","; } } step1.BusinessLicenseCert = BusinessLicenseCert.TrimEnd(','); step1.BusinessSphere = shop.BusinessSphere; step1.CityRegionId = shop.CompanyRegionId; if (shop.CompanyFoundingDate.HasValue) { step1.CompanyFoundingDate = shop.CompanyFoundingDate.Value; } step1.CompanyName = shop.CompanyName; step1.ContactName = shop.ContactsName; step1.ContactPhone = shop.ContactsPhone; step1.Email = shop.ContactsEmail; step1.EmployeeCount = shop.CompanyEmployeeCount; step1.GeneralTaxpayerPhoto = shop.GeneralTaxpayerPhot; step1.legalPerson = shop.legalPerson; step1.OrganizationCode = shop.OrganizationCode; step1.OrganizationCodePhoto = shop.OrganizationCodePhoto; step1.BusinessType = shop.BusinessType; string OtherCert = string.Empty; for (int i = 1; i < 4; i++) { if (HimallIO.ExistFile(shop.OtherCert + string.Format("{0}.png", i))) { OtherCert += shop.OtherCert + string.Format("{0}.png", i) + ","; } } step1.OtherCert = OtherCert.TrimEnd(','); step1.Phone = shop.CompanyPhone; string ProductCert = string.Empty; for (int i = 1; i < 4; i++) { if (HimallIO.ExistFile(shop.ProductCert + string.Format("{0}.png", i))) { ProductCert += shop.ProductCert + string.Format("{0}.png", i) + ","; } } step1.ProductCert = ProductCert.TrimEnd(','); step1.RegisterMoney = shop.CompanyRegisteredCapital; step1.taxRegistrationCert = shop.TaxRegistrationCertificate; step1.Settled = GetSettled(); CompanyRegionId = shop.CompanyRegionId; BusinessLicenceRegionId = shop.BusinessLicenceRegionId; RefuseReason = null; if (shop.ShopStatus == Entities.ShopInfo.ShopAuditStatus.Refuse) { RefuseReason = shop.RefuseReason; } return(step1); }
public JsonResult EditProfile1(ShopProfileStep1 shopProfileStep1) { string item = base.Request.Params["CompanyName"] ?? ""; string str = base.Request.Params["CompanyAddress"] ?? ""; string item1 = base.Request.Params["CompanyRegionId"] ?? ""; item1 = (string.IsNullOrWhiteSpace(item1) ? base.Request.Params["NewCompanyRegionId"] : item1); int num = 0; if (!int.TryParse(item1, out num)) { num = 0; } string str1 = base.Request.Params["CompanyRegionAddress"] ?? ""; string item2 = base.Request.Params["CompanyPhone"] ?? ""; string str2 = base.Request.Params["CompanyEmployeeCount"] ?? ""; string item3 = base.Request.Params["CompanyRegisteredCapital"] ?? ""; string str3 = base.Request.Params["ContactsName"] ?? ""; string item4 = base.Request.Params["ContactsPhone"] ?? ""; string str4 = base.Request.Params["ContactsEmail"] ?? ""; string item5 = base.Request.Params["BusinessLicenseCert"] ?? ""; string str5 = base.Request.Params["ProductCert"] ?? ""; string item6 = base.Request.Params["OtherCert"] ?? ""; string ECompanyName = base.Request.Params["ECompanyName"] ?? ""; string ECompanyAddress = base.Request.Params["ECompanyAddress"] ?? ""; string EContactsName = base.Request.Params["EContactsName"] ?? ""; string ZipCode = base.Request.Params["ZipCode"] ?? ""; string Fax = base.Request.Params["Fax"] ?? ""; string URL = shopProfileStep1.URL ?? ""; string ChemNumber = base.Request.Params["ChemNumber"] ?? ""; string ChemicalsBusinessLicense = base.Request.Params["ChemicalsBusinessLicense"] ?? ""; string GMPPhoto = base.Request.Params["GMPPhoto"] ?? ""; string FDAPhoto = base.Request.Params["FDAPhoto"] ?? ""; string ISOPhoto = base.Request.Params["ISOPhoto"] ?? ""; string BusinessLicenceNumber = base.Request.Params["BusinessLicenceNumber"] ?? ""; string BusinessSphere = base.Request.Params["BusinessSphere"] ?? ""; string legalPerson = base.Request.Params["legalPerson"] ?? ""; string OrganizationCode = base.Request.Params["OrganizationCode"] ?? ""; string BankAccountName = base.Request.Params["BankAccountName"] ?? ""; string BankAccountNumber = base.Request.Params["BankAccountNumber"] ?? ""; string BankCode = base.Request.Params["BankCode"] ?? ""; string BankName = base.Request.Params["BankName"] ?? ""; string BankPhoto = base.Request.Params["BankPhoto"] ?? ""; string item7 = base.Request.Params["CompanyRegionId"] ?? ""; string logo = base.Request.Params["Logo"] ?? ""; item7 = (string.IsNullOrWhiteSpace(item2) ? base.Request.Params["NewCompanyRegionId"] : item7); int num1 = 0; if (!int.TryParse(item7, out num)) { num1 = 0; } string BeneficiaryBankName = base.Request.Params["BeneficiaryBankName"]; string SWiftBic = base.Request.Params["SWiftBic"]; string BeneficiaryName = base.Request.Params["BeneficiaryName"]; string BeneficiaryAccountNum = base.Request.Params["BeneficiaryAccountNum"]; string CompanysAddress = base.Request.Params["CompanysAddress"]; string BeneficiaryBankBranchAddress = base.Request.Params["BeneficiaryBankBranchAddress"]; string AbaRoutingNumber = base.Request.Params["AbaRoutingNumber"]; ShopInfo shopInfo = new ShopInfo() { Id = base.CurrentSellerManager.ShopId, CompanyName = item, CompanyAddress = str, CompanyRegionId = num, CompanyRegionAddress = str1, CompanyPhone = item2, CompanyEmployeeCount = (CompanyEmployeeCount)int.Parse(str2), //CompanyRegisteredCapital = decimal.Parse(item3), ContactsName = str3, ContactsPhone = item4, ContactsEmail = str4, BusinessLicenseCert = item5, ProductCert = str5, ECompanyName = ECompanyName, ECompanyAddress = ECompanyAddress, EContactsName = EContactsName, ZipCode = ZipCode, Fax = Fax, URL = URL, ChemNumber = ChemNumber, ChemicalsBusinessLicense = ChemicalsBusinessLicense, GMPPhoto = GMPPhoto, FDAPhoto = FDAPhoto, ISOPhoto = ISOPhoto, BusinessLicenceNumber = BusinessLicenceNumber, BusinessSphere = BusinessSphere, legalPerson = legalPerson, OrganizationCode = OrganizationCode, OtherCert = item6, BankAccountName = BankAccountName, BankAccountNumber = BankAccountNumber, BankCode = BankCode, BankName = BankName, BankPhoto = BankPhoto, Logo = logo, BankRegionId = num1, BeneficiaryBankName = BeneficiaryBankName, SWiftBic = SWiftBic, BeneficiaryName = BeneficiaryName, BeneficiaryAccountNum = BeneficiaryAccountNum, CompanysAddress = CompanysAddress, BeneficiaryBankBranchAddress = BeneficiaryBankBranchAddress, AbaRoutingNumber = AbaRoutingNumber }; ServiceHelper.Create <IShopService>().UpdateShop(shopInfo); return(Json(new { success = true })); }
public ActionResult Step1() { DateTime now = DateTime.Now; ManagerInfo managerInfo = ServiceHelper.Create <IManagerService>().GetSellerManager(base.CurrentUser.UserName); string str1 = UserCookieEncryptHelper.Encrypt(managerInfo.Id, "SellerAdmin"); WebHelper.SetCookie("ChemCloud-SellerManager", str1, now.AddDays(7)); ShopInfo shop = ServiceHelper.Create <IShopService>().GetShop(base.CurrentSellerManager.ShopId, false); ShopProfileStep1 shopProfileStep1 = new ShopProfileStep1() { Address = shop.CompanyAddress, BusinessLicenceArea = shop.BusinessLicenceRegionId, BusinessLicenceNumber = shop.BusinessLicenceNumber, BusinessLicenceNumberPhoto = shop.BusinessLicenceNumberPhoto }; if (shop.BusinessLicenceEnd.HasValue) { shopProfileStep1.BusinessLicenceValidEnd = shop.BusinessLicenceEnd.Value; } if (shop.BusinessLicenceStart.HasValue) { shopProfileStep1.BusinessLicenceValidStart = shop.BusinessLicenceStart.Value; } string empty = string.Empty; for (int i = 1; i < 4; i++) { if (System.IO.File.Exists(Server.MapPath(string.Concat(shop.BusinessLicenseCert, string.Format("{0}.png", i))))) { empty = string.Concat(empty, shop.BusinessLicenseCert, string.Format("{0}.png", i), ","); } } char[] chrArray = new char[] { ',' }; shopProfileStep1.BusinessLicenseCert = empty.TrimEnd(chrArray); shopProfileStep1.BusinessSphere = shop.BusinessSphere; shopProfileStep1.CityRegionId = shop.CompanyRegionId; if (shop.CompanyFoundingDate.HasValue) { shopProfileStep1.CompanyFoundingDate = shop.CompanyFoundingDate.Value; } shopProfileStep1.CompanyName = shop.CompanyName; shopProfileStep1.ContactName = shop.ContactsName; shopProfileStep1.ContactPhone = shop.ContactsPhone; shopProfileStep1.Email = shop.ContactsEmail; shopProfileStep1.EmployeeCount = shop.CompanyEmployeeCount; shopProfileStep1.GeneralTaxpayerPhoto = shop.GeneralTaxpayerPhot; shopProfileStep1.legalPerson = shop.legalPerson; shopProfileStep1.OrganizationCode = shop.OrganizationCode; shopProfileStep1.OrganizationCodePhoto = shop.OrganizationCodePhoto; shopProfileStep1.ECompanyName = shop.ECompanyName; shopProfileStep1.EContactsName = shop.EContactsName; shopProfileStep1.ECompanyAddress = shop.ECompanyAddress; shopProfileStep1.CompanyType = shop.CompanyType; shopProfileStep1.ZipCode = shop.ZipCode; shopProfileStep1.Fax = shop.Fax; shopProfileStep1.URL = shop.URL; shopProfileStep1.ChemNumber = shop.ChemNumber; shopProfileStep1.ChemicalsBusinessLicense = shop.ChemicalsBusinessLicense; shopProfileStep1.GMPPhoto = shop.GMPPhoto; shopProfileStep1.FDAPhoto = shop.FDAPhoto; shopProfileStep1.ISOPhoto = shop.ISOPhoto; shopProfileStep1.TaxpayerId = shop.TaxpayerId; shopProfileStep1.Logo = shop.Logo; shopProfileStep1.TaxRegistrationCertificate = shop.TaxRegistrationCertificate; shopProfileStep1.TaxRegistrationCertificatePhoto = shop.TaxRegistrationCertificatePhoto; shopProfileStep1.CertificatePhoto = shop.CertificatePhoto; shopProfileStep1.OtherCert = shop.OtherCert; //string str = string.Empty; //for (int j = 1; j < 4; j++) //{ // if (System.IO.File.Exists(Server.MapPath(string.Concat(shop.OtherCert, string.Format("{0}.png", j))))) // { // str = string.Concat(str, shop.OtherCert, string.Format("{0}.png", j), ","); // } //} char[] chrArray1 = new char[] { ',' }; //shopProfileStep1.OtherCert = str.TrimEnd(chrArray1); shopProfileStep1.Phone = shop.CompanyPhone; string empty1 = string.Empty; for (int k = 1; k < 4; k++) { if (System.IO.File.Exists(Server.MapPath(string.Concat(shop.ProductCert, string.Format("{0}.png", k))))) { empty1 = string.Concat(empty1, shop.ProductCert, string.Format("{0}.png", k), ","); } } char[] chrArray2 = new char[] { ',' }; shopProfileStep1.ProductCert = empty1.TrimEnd(chrArray2); shopProfileStep1.RegisterMoney = shop.CompanyRegisteredCapital; shopProfileStep1.taxRegistrationCert = shop.TaxRegistrationCertificate; ViewBag.CompanyRegionIds = ServiceHelper.Create <IRegionService>().GetRegionIdPath(shop.CompanyRegionId); ViewBag.BusinessLicenceRegionIds = ServiceHelper.Create <IRegionService>().GetRegionIdPath(shop.BusinessLicenceRegionId); string refuseReason = ""; if (shop.ShopStatus == ShopInfo.ShopAuditStatus.Refuse) { refuseReason = shop.RefuseReason; } ViewBag.RefuseReason = refuseReason; ViewBag.CompanyType = shopProfileStep1.CompanyType; return(View(shopProfileStep1)); }