/// <summary>
 /// Gets the data context for the report to be generated
 /// </summary>
 /// <returns></returns>
 private IEnumerable<AddressStickerRow> GetDataContext()
 {
     var reportTemplateName = Request.Params["TEMPLATE_NAME"];
     var ReportNumber = Request.Params["REPORT_NUMBER"];
     var cellNo = Request.Params["CELL_NO"];
     var service = new RadiographyService();
     return service.GetAddressStickers(ReportNumber, Int32.Parse(cellNo));
 }
        /// <summary>
        /// Gets the data context for the report to be generated
        /// </summary>
        /// <returns></returns>
        private IEnumerable <AddressStickerRow> GetDataContext()
        {
            var reportTemplateName = Request.Params["TEMPLATE_NAME"];
            var ReportNumber       = Request.Params["REPORT_NUMBER"];
            var cellNo             = Request.Params["CELL_NO"];
            var service            = new RadiographyService();

            return(service.GetAddressStickers(ReportNumber, Int32.Parse(cellNo)));
        }
        /// <summary>
        /// Gets the data context for the report to be generated
        /// </summary>
        /// <returns></returns>
        private FinalRTReport GetDataContext()
        {
            string rtNo = Request.Params["RTNo"];
            string Filter = Request.Params["Filter"];

            if (String.IsNullOrEmpty(rtNo))
                return null;

            RadiographyService service = new RadiographyService();
            return service.GetFinalRTReport(rtNo, Filter);
        }
        /// <summary>
        /// Gets the data context for the report to be generated
        /// </summary>
        /// <returns></returns>
        private IEnumerable <DummyAddressStickerRow> GetDataContext()
        {
            var reportTemplateName = Request.Params["TEMPLATE_NAME"];
            var fpNo       = Request.Params["FP_NO"];
            var coverageId = Request.Params["COVERAGE_ID"];
            var rtNo       = Request.Params["RT_NO"];
            var cellNo     = Request.Params["CELL_NO"];

            var service = new RadiographyService();

            return(service.GetDummyAddressStickers(fpNo, Convert.ToInt32(coverageId), rtNo, Int32.Parse(cellNo)));
        }
Пример #5
0
        /// <summary>
        /// Gets the data context for the report to be generated
        /// </summary>
        /// <returns></returns>
        private FinalRTReport GetDataContext()
        {
            string rtNo   = Request.Params["RTNo"];
            string Filter = Request.Params["Filter"];

            if (String.IsNullOrEmpty(rtNo))
            {
                return(null);
            }

            RadiographyService service = new RadiographyService();

            return(service.GetFinalRTReport(rtNo, Filter));
        }
        /// <summary>
        /// Gets the data context for the report to be generated
        /// </summary>
        /// <returns></returns>
        private IEnumerable <Change> GetDataContext()
        {
            var foundryName    = Request.Params["FOUNDRY_NAME"];
            var fromDateString = Request.Params["FROM_DATE"];
            var toDateString   = Request.Params["TO_DATE"];

            //date will be present in dd/MM/yyyy
            var fromDate = fromDateString == null ? null : (DateTime?)DateTime.Parse(fromDateString, CustomCulture);
            var toDate   = toDateString == null ? null : (DateTime?)DateTime.Parse(toDateString, CustomCulture);

            var service = new RadiographyService();

            if (foundryName == "")
            {
                foundryName = null;
            }
            return(service.GetChanges(foundryName, fromDate, toDate));
        }
        /// <summary>
        /// Gets the data context for the report to be generated
        /// </summary>
        /// <returns></returns>
        private IEnumerable<Change> GetDataContext()
        {
            var foundryName = Request.Params["FOUNDRY_NAME"];
            var fromDateString = Request.Params["FROM_DATE"];
            var toDateString = Request.Params["TO_DATE"];

            //date will be present in dd/MM/yyyy
            var fromDate = fromDateString == null ? null : (DateTime?)DateTime.Parse(fromDateString, CustomCulture);
            var toDate = toDateString == null ? null : (DateTime?)DateTime.Parse(toDateString, CustomCulture);

            var service = new RadiographyService();
            if (foundryName == "") foundryName = null;
            return service.GetChanges(foundryName, fromDate, toDate);
        }