Beispiel #1
0
        public IEnumerable <ReportDto> ReportAll(ReportDto reportdto)
        {
            try
            {
                ReportEntity reportEntity = new ReportEntity
                {
                    pONumber      = reportdto.pONumber,
                    storeNumber   = reportdto.storeNumber,
                    vendorCode    = reportdto.vendorCode,
                    receivingDate = reportdto.receivingDate,
                    cancelDate    = reportdto.cancelDate,
                    login_entity  = new LoginEntity
                    {
                        servername = reportdto.login_dto.servername,
                        username   = reportdto.login_dto.username,
                        password   = reportdto.login_dto.password,
                        dBname     = reportdto.login_dto.dBname
                    },
                };

                return(_mapper.Map <IEnumerable <ReportEntity>, IEnumerable <ReportDto> >
                           (_reportRepository.GetReport(reportEntity)));
            }
            catch (Exception ex)
            {
                logCentral.Error("BusinessUnitAll", ex);
                throw;
            }
        }
Beispiel #2
0
 public IEnumerable <BusinessUnitDto> BusinessUnitAll()
 {
     try
     {
         return(_mapper.Map <IEnumerable <BusinessUnitEntity>, IEnumerable <BusinessUnitDto> >
                    (_businessUnitRepository.GetAll().Where(a => a.jda_ip_address.Trim() != "")));
     }
     catch (Exception ex)
     {
         logCentral.Error("BusinessUnitAll", ex);
         throw;
     }
 }
Beispiel #3
0
 protected void Application_Error(object sender, EventArgs e)
 {
     logCentral.Error(HttpContext.Current.Error.Message, HttpContext.Current.Error.GetBaseException());
 }