public PartialViewResult DayDataView(string userId, string city, string month, string prodect, string BrandCode) { //prodect = "4"; PSIApp psiApp = new PSIApp(); var ents = psiApp.CmList(prodect, month, city, userId, BrandCode); tagModel model = new tagModel(); model.subModel = new List <qtyModel>(); foreach (var ent in ents.OrderBy(p => p.day)) { model.subModel.Add(new qtyModel() { day = ent.day.Value.ToString("yyyy-MM-dd"), value = ent.cmQty.Value }); } return(PartialView("_PSIDayPartialPage", model)); }
public PartialViewResult TagDataView(string BrandValue, string ProdectValue, string MonthValue, string MonthName, string UserId, string orgId, string porgId, string billNo) { JS5_S12_SALES_TARGET_BILL_DTableAdapter ad = new JS5_S12_SALES_TARGET_BILL_DTableAdapter(); var ents = ad.GetDataBy(BrandValue, orgId, ProdectValue, billNo); tagModel model = new tagModel() { billNo = billNo, Month = MonthValue, MonthName = MonthName, BrandCode = BrandValue, UserId = UserId, OrgId = orgId, Prodect = ProdectValue, PorgId = porgId }; model.subModel = new List <qtyModel>(); foreach (var ent in ents) { model.subModel.Add(new qtyModel() { day = ent.SALES_DATE.ToString("yyyy-MM-dd"), value = (int)ent.TARGET_QTY }); } return(PartialView("_PSITagDayPartialPage", model)); }