示例#1
0
        public async Task <int> RemainingCarsAsync()
        {
            var sql    = "SELECT [dbo].[fnGetRemainingCars]()";
            var result = await SCObjects.ReturnTextAsync(sql, Properties.Settings.Default.UserConnectionString);

            return(int.Parse(result));
        }
示例#2
0
        public async Task <decimal> TodaySalesAsync(DateTime date)
        {
            var sql    = string.Format("SELECT [dbo].[fnGetTodaySales]('{0}')", date.ToString("MM/dd/yyyy"));
            var result = await SCObjects.ReturnTextAsync(sql, Properties.Settings.Default.UserConnectionString);

            return(decimal.Parse(result));
        }
示例#3
0
        public async Task <decimal> WeeklyTotalSalesAsync()
        {
            var sql    = "EXEC [dbo].[spWeeklySalesDecimal]";
            var result = await SCObjects.ReturnTextAsync(sql, Properties.Settings.Default.UserConnectionString);

            return(decimal.Parse(result));
        }
示例#4
0
        public async Task <int> ProcessedTicketsAsync(DateTime date)
        {
            var sql    = string.Format("SELECT [dbo].[fnGetProcessedTickets]('{0}')", date.ToString("MM/dd/yyyy"));
            var result = await SCObjects.ReturnTextAsync(sql, Properties.Settings.Default.UserConnectionString);

            return(int.Parse(result));
        }