public ActionResult Step3() { ViewBag.ShopGrades = ServiceHelper.Create <IShopService>().GetShopGrades(); ViewBag.ShopCategories = ServiceHelper.Create <ICategoryService>().GetMainCategory(); ViewBag.Username = base.CurrentSellerManager.UserName; ShopInfo shop = ServiceHelper.Create <IShopService>().GetShop(base.CurrentSellerManager.ShopId, true); List <CategoryKeyVal> categoryKeyVals = new List <CategoryKeyVal>(); foreach (long key in shop.BusinessCategory.Keys) { CategoryKeyVal categoryKeyVal = new CategoryKeyVal() { CommisRate = shop.BusinessCategory[key], Name = ServiceHelper.Create <ICategoryService>().GetCategory(key).Name }; categoryKeyVals.Add(categoryKeyVal); } ShopProfileStep3 shopProfileStep3 = new ShopProfileStep3() { ShopName = shop.ShopName, ShopGrade = shop.GradeId, BusinessCategory = ServiceHelper.Create <IShopService>().GetBusinessCategory(base.CurrentSellerManager.ShopId).ToList() }; return(View(shopProfileStep3)); }
public ActionResult ShopDetail() { long shopId = base.CurrentSellerManager.ShopId; ShopInfo shop = ServiceHelper.Create <IShopService>().GetShop(shopId, true); ShopModel shopModel = new ShopModel(shop) { BusinessCategory = new List <CategoryKeyVal>() }; foreach (long key in shop.BusinessCategory.Keys) { List <CategoryKeyVal> businessCategory = shopModel.BusinessCategory; CategoryKeyVal categoryKeyVal = new CategoryKeyVal() { CommisRate = shop.BusinessCategory[key], Name = ServiceHelper.Create <ICategoryService>().GetCategory(key).Name }; businessCategory.Add(categoryKeyVal); } ViewBag.CompanyRegionIds = ServiceHelper.Create <IRegionService>().GetRegionIdPath(shop.CompanyRegionId); ViewBag.BankRegionIds = ServiceHelper.Create <IRegionService>().GetRegionIdPath(shop.BankRegionId); ViewBag.BusinessLicenseCert = shop.BusinessLicenseCert; ViewBag.Logo = shop.Logo; ViewBag.GMPPhoto = shop.GMPPhoto; ViewBag.ISOPhoto = shop.ISOPhoto; ViewBag.FDAPhoto = shop.FDAPhoto; string[] strArrays = new string[3]; string[] strArrays1 = new string[3]; string[] strArrays2 = new string[3]; if (!string.IsNullOrWhiteSpace(shop.BusinessLicenseCert)) { strArrays = shop.BusinessLicenseCert.Split(new char[] { ',' }); } if (!string.IsNullOrWhiteSpace(shop.ProductCert)) { strArrays1 = shop.ProductCert.Split(new char[] { ',' }); } //if (!string.IsNullOrWhiteSpace(shop.OtherCert)) //{ // strArrays2 = shop.OtherCert.Split(new char[] { ',' }); //} ViewBag.BusinessLicenseCerts = strArrays; ViewBag.ProductCerts = strArrays1; ViewBag.OtherCerts = shop.OtherCert; return(View(shopModel)); }
public ActionResult Step4() { string str; ShopInfo shop = ServiceHelper.Create <IShopService>().GetShop(base.CurrentSellerManager.ShopId, true); //if (shop.ShopStatus != ShopInfo.ShopAuditStatus.Open ) //判断审核是否通过 //{ if (shop.ShopStatus != ShopInfo.ShopAuditStatus.WaitAudit) { if (shop.ShopStatus != ShopInfo.ShopAuditStatus.Refuse) { return(RedirectToAction("Finish")); } ViewBag.Step = 1; ViewBag.MenuStep = 1; ViewBag.Frame = "Step1"; ViewBag.Manager = base.CurrentSellerManager; return(View("EditProfile", new ShopProfileStep1())); } str = "step4"; ViewBag.Text = "企业信息已经提交,请等待管理员审核"; //} //else //{ // str = "step5"; //} ShopModel shopModel = new ShopModel(shop) { BusinessCategory = new List <CategoryKeyVal>() }; foreach (long key in shop.BusinessCategory.Keys) { List <CategoryKeyVal> businessCategory = shopModel.BusinessCategory; CategoryKeyVal categoryKeyVal = new CategoryKeyVal() { CommisRate = shop.BusinessCategory[key], Name = ServiceHelper.Create <ICategoryService>().GetCategory(key).Name }; businessCategory.Add(categoryKeyVal); } return(View(str, shopModel)); }
public ActionResult ShopDetail() { long shopId = base.CurrentSellerManager.ShopId; ShopInfo shop = ServiceHelper.Create <IShopService>().GetShop(shopId, true); ShopModel shopModel = new ShopModel(shop) { BusinessCategory = new List <CategoryKeyVal>() }; foreach (long key in shop.BusinessCategory.Keys) { List <CategoryKeyVal> businessCategory = shopModel.BusinessCategory; CategoryKeyVal categoryKeyVal = new CategoryKeyVal() { CommisRate = shop.BusinessCategory[key], Name = ServiceHelper.Create <ICategoryService>().GetCategory(key).Name }; businessCategory.Add(categoryKeyVal); } ViewBag.CompanyRegionIds = ServiceHelper.Create <IRegionService>().GetRegionIdPath(shop.CompanyRegionId); ViewBag.BusinessLicenseCert = shop.BusinessLicenseCert; string[] strArrays = new string[3]; string[] strArrays1 = new string[3]; string[] strArrays2 = new string[3]; for (int i = 0; i < 3; i++) { if (System.IO.File.Exists(Server.MapPath(string.Concat(shop.BusinessLicenseCert, string.Format("{0}.png", i + 1))))) { strArrays[i] = string.Concat(shop.BusinessLicenseCert, string.Format("{0}.png", i + 1)); } if (System.IO.File.Exists(Server.MapPath(string.Concat(shop.ProductCert, string.Format("{0}.png", i + 1))))) { strArrays1[i] = string.Concat(shop.ProductCert, string.Format("{0}.png", i + 1)); } if (System.IO.File.Exists(Server.MapPath(string.Concat(shop.OtherCert, string.Format("{0}.png", i + 1))))) { strArrays2[i] = string.Concat(shop.OtherCert, string.Format("{0}.png", i + 1)); } } ViewBag.BusinessLicenseCerts = strArrays; ViewBag.ProductCerts = strArrays1; ViewBag.OtherCerts = strArrays2; return(View(shopModel)); }
public ActionResult Auditing(long id) { ShopInfo shop = ServiceHelper.Create <IShopService>().GetShop(id, true); ViewBag.ShopId = id; ViewBag.Status = shop.ShopStatus; ShopModel shopModel = new ShopModel(shop) { BusinessCategory = new List <CategoryKeyVal>() }; foreach (long key in shop.BusinessCategory.Keys) { List <CategoryKeyVal> businessCategory = shopModel.BusinessCategory; CategoryKeyVal categoryKeyVal = new CategoryKeyVal() { CommisRate = shop.BusinessCategory[key], Name = ServiceHelper.Create <ICategoryService>().GetCategory(key).Name }; businessCategory.Add(categoryKeyVal); } return(View(shopModel)); }
public ActionResult Details(long id) { ShopInfo shop = ServiceHelper.Create <IShopService>().GetShop(id, true); ShopModel shopModel = new ShopModel(shop) { BusinessCategory = new List <CategoryKeyVal>() }; foreach (long key in shop.BusinessCategory.Keys) { List <CategoryKeyVal> businessCategory = shopModel.BusinessCategory; CategoryKeyVal categoryKeyVal = new CategoryKeyVal() { CommisRate = shop.BusinessCategory[key], Name = ServiceHelper.Create <ICategoryService>().GetCategory(key).Name }; businessCategory.Add(categoryKeyVal); } ShopInfo shopInfo = ServiceHelper.Create <IShopService>().GetShop(id, false); ViewBag.PassStr = shopInfo.ShopStatus.ToDescription(); return(View(shopModel)); }