Beispiel #1
0
        public DataTable GetExportVerify(ExportVerifySearchFilter searchFilter)
        {
            _reportDataAccess = new ReportDataAccess(_context);
            IList <ExportVerifyEntity> exportVerify = _reportDataAccess.GetExportVerify(searchFilter);
            DataTable dt = DataTableHelpers.ConvertTo(exportVerify);

            return(dt);
        }
Beispiel #2
0
 /// <summary>
 /// Initialise data access from connection string
 /// </summary>
 /// <param name="connstring">connection string to the database</param>
 public BaseService(string connstring)
 {
     this.clientDataAccess           = new ClientDataAccess(new SqlExecuter <IMSDBLayer.DataModels.Client>(connstring));
     this.districtDataAccess         = new DistrictDataAccess(new SqlExecuter <IMSDBLayer.DataModels.District>(connstring));
     this.interventionDataAccess     = new InterventionDataAccess(new SqlExecuter <IMSDBLayer.DataModels.Intervention>(connstring));
     this.interventionTypeDataAccess = new InterventionTypeDataAccess(new SqlExecuter <IMSDBLayer.DataModels.InterventionType>(connstring));
     this.userDataAccess             = new UserDataAccess(new SqlExecuter <IMSDBLayer.DataModels.User>(connstring));
     this.reportDataAccess           = new ReportDataAccess(new SqlExecuter <IMSDBLayer.DataModels.ReportRow>(connstring));
 }
Beispiel #3
0
 /// <summary>
 /// Initialise data access from connection string
 /// </summary>
 /// <param name="connstring">connection string to the database</param>
 public BaseService()
 {
     this.clientDataAccess           = new ClientDataAccess();
     this.districtDataAccess         = new DistrictDataAccess();
     this.interventionDataAccess     = new InterventionDataAccess();
     this.interventionTypeDataAccess = new InterventionTypeDataAccess();
     this.userDataAccess             = new UserDataAccess();
     this.reportDataAccess           = new ReportDataAccess();
 }
Beispiel #4
0
        public IDictionary <string, string> GetSubscriptTypeSelectList(string textName, int textValue = 0)
        {
            _reportDataAccess = new ReportDataAccess(_context);
            var list = _reportDataAccess.GetActiveSubscriptType();

            if (!string.IsNullOrWhiteSpace(textName))
            {
                list.Insert(0, new SubscriptTypeEntity {
                    SubscriptTypeId = textValue, SubscriptTypeName = textName
                });
            }

            return((from x in list
                    select new
            {
                key = x.SubscriptTypeId.ToString(),
                value = x.SubscriptTypeName
            }).ToDictionary(t => t.key, t => t.value));
        }
 public ReportBusiness(IReportDataAccess reportDataAccess)
 {
     _reportDataAccess = reportDataAccess;
 }
Beispiel #6
0
 public ReportService(IReportDataAccess data)
 {
     this.data = data;
 }
 public LaserReportPrinter(IReportFormatter reportFormatter, IReportDataAccess dataAccess)
 {
     _reportFormatter = reportFormatter;
     _dataAccess      = dataAccess;
 }
Beispiel #8
0
        //public DataTable GetExportVerifyDetail(ExportVerifyDetailSearchFilter searchFilter)
        //{
        //    _reportDataAccess = new ReportDataAccess(_context);
        //    IList<ExportVerifyDetailEntity> exportVerifyDetail = _reportDataAccess.GetExportVerifyDetail(searchFilter);
        //    DataTable dt = DataTableHelpers.ConvertTo(exportVerifyDetail);
        //    return dt;
        //}

        public IList <ExportVerifyDetailEntity> GetExportVerifyDetail(ExportVerifyDetailSearchFilter searchFilter)
        {
            _reportDataAccess = new ReportDataAccess(_context);
            return(_reportDataAccess.GetExportVerifyDetail(searchFilter));
        }
Beispiel #9
0
        //public DataTable GetExportSR(ExportSRSearchFilter searchFilter)
        //{
        //    _reportDataAccess = new ReportDataAccess(_context);
        //    IList<ExportSREntity> exportSR = _reportDataAccess.GetExportSR(searchFilter);
        //    DataTable dt = DataTableHelpers.ConvertTo(exportSR);
        //    return dt;
        //}

        public IList <ExportSREntity> GetExportSR(ExportSRSearchFilter searchFilter)
        {
            _reportDataAccess = new ReportDataAccess(_context);
            return(_reportDataAccess.GetExportSR(searchFilter));
        }
Beispiel #10
0
 public string GetNumOfDaySRReport()
 {
     _reportDataAccess = new ReportDataAccess(_context);
     return(_reportDataAccess.GetNumOfDaySRReport());
 }
Beispiel #11
0
 public string GetTriggerDays()
 {
     _reportDataAccess = new ReportDataAccess(_context);
     return(_reportDataAccess.GetTriggerDays());
 }
Beispiel #12
0
 public string GetReportPath()
 {
     _reportDataAccess = new ReportDataAccess(_context);
     return(_reportDataAccess.GetReportPath());
 }
 public ReportDataBL(IReportDataAccess reportDataDA)
 {
     this._reportDataDA = reportDataDA;
 }
 /// <summary>
 /// Initializes a new instance of the DotMatrixReportPrinter class.
 /// </summary>
 /// <param name="reportFormatter"></param>
 /// <param name="dataAccess"></param>
 public DotMatrixReportPrinter(IReportFormatter reportFormatter, IReportDataAccess dataAccess)
 {
     _reportFormatter = reportFormatter;
     _dataAccess      = dataAccess;
 }