public void OnGet(string guid) { shopList = _shopsService.GetPagesAsync(new Service.DtoModel.PageParm() { limit = 2000 }).Result.data.Items; codeList = _codeService.GetPagesAsync(new Service.DtoModel.SysCodePostPage() { limit = 10000, guid = "7b664e3e-f58a-4e66-8c0f-be1458541d14" }).Result.data?.Items; sizeCodeList = _codeService.GetPagesAsync(new Service.DtoModel.SysCodePostPage() { limit = 10000, guid = "e86cf108-dc4d-4532-8cce-fdb041363902" }).Result.data?.Items; }
public void OnGet(string guid) { Purchase = _purchaseService.GetByGuidAsync(guid).Result.data; if (string.IsNullOrEmpty(Purchase.Guid)) { Purchase.AdminGuid = User.Identities.First(u => u.IsAuthenticated).FindFirst(ClaimTypes.Sid).Value; } else { var goodsList = _goodsService.GetPagesAsync(new Service.DtoModel.PageParm() { limit = 1000, guid = guid }).Result.data?.Items .OrderBy(m => m.Number) .Select(m => new { m.Number, m.Name, m.Specification, m.Unit, m.Quantity, m.Price, m.Summary }); if (goodsList.Any()) { GoodsJson = JsonConvert.SerializeObject(goodsList); } } codeList = _codeService.GetPagesAsync(new Service.DtoModel.SysCodePostPage() { limit = 10000, guid = "7088d9b9-6692-4fc7-a83c-da580f1407c3" }).Result.data?.Items; }
public void OnGet(string guid, string shop) { codeList = _codeService.GetPagesAsync(new SysCodePostPage() { limit = 10000, guid = "7b664e3e-f58a-4e66-8c0f-be1458541d14" }).Result.data?.Items; activityModel = _activityService.GetByGuidAsync(guid).Result.data; if (!string.IsNullOrEmpty(shop)) { activityModel.ShopGuid = shop; } if (string.IsNullOrEmpty(guid)) { activityModel.BeginDate = DateTime.Now; activityModel.EndDate = DateTime.Now.AddMonths(1); } else { //将满减活动Json字符串转换成对象 if (activityModel.Method == 2) { shopActivity = JsonConvert.DeserializeObject <List <ShopActivity> >(activityModel.FullBack); } } }
public void OnGet(string guid) { codeList = _codeService.GetPagesAsync(new Service.DtoModel.SysCodePostPage() { limit = 10000, guid = "7b664e3e-f58a-4e66-8c0f-be1458541d14" }).Result.data?.Items; }
public void OnGet(ByGuidPost parm) { codeList = _sysCodeService.GetPagesAsync(new SysCodePostPage() { limit = 1000, page = 1 }).Result.data.Items; Person = _sysPersonService.GetByGuidAsync(parm).Result.data ?? new SysPersonDto(); }
public void OnGet(string guid) { skuModel = _skuService.GetByGuidAsync(guid).Result.data; codeList = _codeService.GetPagesAsync(new Service.DtoModel.SysCodePostPage() { limit = 10000 }).Result.data?.Items; }
public void OnGet(string transferGuid) { AdminGuid = User.Identities.First(u => u.IsAuthenticated).FindFirst(ClaimTypes.Sid).Value; TransferModel = _transferService.GetByGuidAsync(transferGuid).Result.data; codeList = _codeService.GetPagesAsync(new Service.DtoModel.SysCodePostPage() { limit = 10000, guid = "7b664e3e-f58a-4e66-8c0f-be1458541d14" }).Result.data?.Items; }
public void OnGet(string guid) { codeList = _codeService.GetPagesAsync(new Service.DtoModel.SysCodePostPage() { limit = 10000, guid = "7b664e3e-f58a-4e66-8c0f-be1458541d14" }).Result.data?.Items; yearCodeList = _codeService.GetPagesAsync(new Service.DtoModel.SysCodePostPage() { limit = 10000, guid = "1942d4fd-3203-42b1-a955-4a84a532b2a2" }).Result.data?.Items; seasonCodeList = _codeService.GetPagesAsync(new Service.DtoModel.SysCodePostPage() { limit = 10000, guid = "8cb134d5-979b-40e2-b453-aeee265f4ab2" }).Result.data?.Items; sizeCodeList = _codeService.GetPagesAsync(new Service.DtoModel.SysCodePostPage() { limit = 10000, guid = "e86cf108-dc4d-4532-8cce-fdb041363902" }).Result.data?.Items; }
public JsonResult GetBrank() { var res = _codeService.GetPagesAsync(new Service.DtoModel.SysCodePostPage() { limit = 10000, guid = "7b664e3e-f58a-4e66-8c0f-be1458541d14" }) .Result.data?.Items .Select(m => new { m.Guid, m.Name }); return(Json(new { statusCode = 200, data = res })); }
public void OnGet(ByGuidPost parm) { codeList = _sysCodeService.GetPagesAsync(new SysCodePostPage() { limit = 1000, page = 1 }).Result.data.Items.Where(m => m.status).ToList(); Educate = _sysPersonEducateService.GetByGuidAsync(parm).Result.data; if (Educate == null) { Educate = new SysPersonEducateDto() { PersonGuid = parm.guid, AdmissionTime = null, GraduateTime = null }; } }
public async Task <IActionResult> GetPages([FromQuery] SysCodePostPage request) { var res = await _sysCodeService.GetPagesAsync(request); return(Ok(new { code = 0, msg = "success", count = res.data.TotalItems, data = res.data.Items })); }
public async Task <JsonResult> GetPages(PageParm pageParm) { var res = await _sysCodeService.GetPagesAsync(pageParm); return(Json(new { code = 0, msg = "success", count = res.data.TotalItems, data = res.data.Items })); }