public ActionResult ReportChangeLogs() { ReportChangeLogsViewModel VM = new ReportChangeLogsViewModel() { StartDate = DateTime.Now.AddDays(-30), EndDate = DateTime.Now, }; return(View(VM)); }
public ActionResult ChangeLogs(ReportChangeLogsViewModel VM) { int EmployeeCodeID = VM.EmployeeCodeID.HasValue ? VM.EmployeeCodeID.Value : -1; int BusinssSubCategoryID = VM.BusinssSubCategoryID.HasValue ? VM.BusinssSubCategoryID.Value : -1; string url = string.Format("Reports/ReportViewerASPX.aspx?type={0}&ID={1}&BusinssSubCategoryID={2}&StartDate={3}&EndDate={4}", BusinessSubCategoriesEnum.ChangeLogs.ToString(), EmployeeCodeID, BusinssSubCategoryID, VM.StartDate.ToString(ConfigurationManager.AppSettings["DateFormat"]), VM.EndDate.ToString(ConfigurationManager.AppSettings["DateFormat"])); return(Json(new { url = url }, JsonRequestBehavior.AllowGet)); }