예제 #1
0
        public JsonResult EditProfile1()
        {
            string CompanyName        = Request.Params["CompanyName"] ?? "";
            string CompanyAddress     = Request.Params["CompanyAddress"] ?? "";
            string strCompanyRegionId = Request.Params["CompanyRegionId"] ?? "";

            strCompanyRegionId = string.IsNullOrWhiteSpace(strCompanyRegionId) ? Request.Params["NewCompanyRegionId"] : strCompanyRegionId;
            int CompanyRegionId = 0;

            if (!int.TryParse(strCompanyRegionId, out CompanyRegionId))
            {
                CompanyRegionId = 0;
            }

            string CompanyEmployeeCount = Request.Params["CompanyEmployeeCount"] ?? "";
            string BusinessLicenseCert  = Request.Params["BusinessLicenseCert"] ?? "";
            string ProductCert          = Request.Params["ProductCert"] ?? "";
            string OtherCert            = Request.Params["OtherCert"] ?? "";

            var info = new ShopCompanyInfo
            {
                ShopId               = CurrentSellerManager.ShopId,
                CompanyName          = CompanyName,
                CompanyAddress       = CompanyAddress,
                CompanyRegionId      = CompanyRegionId,
                CompanyEmployeeCount = (CompanyEmployeeCount)int.Parse(CompanyEmployeeCount)
            };
            var cert = new ShopLicenseCert
            {
                ShopId = CurrentSellerManager.ShopId,
                BusinessLicenseCert = BusinessLicenseCert,
                ProductCert         = ProductCert,
                OtherCert           = OtherCert
            };

            ShopApplication.SetCompanyInfo(info);
            ShopApplication.SetLicenseCert(cert);
            return(Json(new { success = true }));
        }
예제 #2
0
 public JsonResult SetCompanyInfo(ShopCompanyInfo info)
 {
     info.ShopId = CurrentSellerManager.ShopId;
     ShopApplication.SetCompanyInfo(info);
     return(Json(new { success = true }));
 }
예제 #3
0
 /// <summary>
 /// 设置店铺公司信息
 /// </summary>
 /// <param name="info"></param>
 public static void SetCompanyInfo(ShopCompanyInfo info)
 {
     Service.SetCompnayInfo(info);
     ClearCacheShop(info.ShopId);
 }