Exemplo n.º 1
0
        public static ScanAuditDS GetScanAudit(DateTime routeDate, string routeClass, string driverName)
        {
            //
            ScanAuditDS scans = null;

            try {
                scans = new ScanAuditDS();
                ScanAuditDS _scans = GetScanAudit(routeDate, routeClass);
                if (driverName != "All")
                {
                    scans.Merge(_scans.ScanAuditTable.Select("Driver ='" + driverName + "'"));
                }
                else
                {
                    scans.Merge(_scans);
                }
            }
            catch (Exception ex) { throw new ApplicationException("Unexpected error while reading scan audit.", ex); }
            return(scans);
        }
Exemplo n.º 2
0
        public static ScanAuditDS GetScanAudit(DateTime routeDate, string routeClass)
        {
            //
            ScanAuditDS scans = null;

            try {
                scans = new ScanAuditDS();
                DataSet ds = App.Mediator.FillDataset(USP_SCANAUDIT, TBL_SCANAUDIT, new object[] { routeDate, routeClass });
                if (ds != null)
                {
                    scans.Merge(ds);
                }
            }
            catch (Exception ex) { throw new ApplicationException("Unexpected error while reading scan audit.", ex); }
            return(scans);
        }