Пример #1
0
        public ActionResult GridTR01B(int?TR01A_ID)
        {
            if (TR01A_ID.HasValue)
            {
                return(PartialView("_GridTR01B", TR01Business.FromEntity(_Service.GetB(x => x.TR01A_ID == TR01A_ID).ToList())));
            }

            return(PartialView("_GridTR01B"));
        }
Пример #2
0
        private List <TR01BViewModel> GetTR01BList(int TR01A_ID)
        {
            var dataList = _Service.GetB(TR01A_ID);

            if (TR01A_ID > 0)
            {
                ViewData["TaxRate"] = _Service.GetA(TR01A_ID).TAX_RT;
            }
            return(TR01Business.FromEntity(dataList));
        }