Exemplo n.º 1
0
        public JsonResult GetAdvanceDetail(string EODDate, string EmpName)
        {
            List <clsAdvance> listAdvance = new List <clsAdvance>();;

            GetStoreId();

            if (string.IsNullOrEmpty(EmpName))
            {
                if (!string.IsNullOrEmpty(EODDate))
                {
                    listAdvance = objDal.GetAdvanceList(StoreId, EODDate.Replace("%20", " "));
                }
                else
                {
                    listAdvance = objDal.GetAdvanceList(StoreId);
                }
            }
            else
            {
                listAdvance = objDal.GeMonthWisePaymentReportDl(StoreId, EmpName.Replace("%20", " "), EODDate.Replace("%20", " "));
            }

            var Result = new
            {
                page    = 1,
                records = listAdvance.Count(),
                rows    = listAdvance,
                total   = 1
            };

            return(Json(Result, JsonRequestBehavior.AllowGet));
        }