Пример #1
0
        public bool Check_ExchangeRatesAreCurrent()
        {
            using (new SharedConnection(dbConnection))
            {
                var result = dbConnection.Query <ExchangeRate>(SqlLoader.GetSql("Check_ExchangeRatesAreCurrent"));

                return(result.Any() ? false : true);
            }
        }
Пример #2
0
        public IEnumerable <InvoiceHeader_DataModel> Fetch_ConsignmentInvoiceHeaders(int consignment_Number)
        {
            using (new SharedConnection(dbConnection))
            {
                var result = dbConnection.Query <InvoiceHeader_DataModel>(SqlLoader.GetSql("Fetch_ConsignmentInvoiceHeader"),
                                                                          consignment_Number
                                                                          );

                return(result.Any() ? result : null);
            }
        }
Пример #3
0
        public IEnumerable <Consignment_DataModel> Fetch_AllActiveConsignments(string inlandDepotList)
        {
            using (new SharedConnection(dbConnection))
            {
                var result = dbConnection.Query <Consignment_DataModel>(SqlLoader.GetSql("Fetch_AllActiveConsignments"),
                                                                        inlandDepotList,
                                                                        DateParameter
                                                                        );

                return(result.Any() ? result : null);
            }
        }