예제 #1
0
        /// <summary>
        /// Поиск накладных продаж за период
        /// </summary>
        /// <param name="firstDate">Дата начало периода</param>
        /// <param name="lastDate">Дата конца периода</param>
        /// <returns>Список накладных продаж</returns>
        public static IEnumerable <SalesInvoice> SalesInvoices(DateTime firstDate, DateTime lastDate)
        {
            var x = from m in SalesInvoiceMethods.Outpoot()
                    where (m.Date.Value.Date >= firstDate.Date && m.Date.Value.Date <= lastDate.Date)
                    select m;

            return(x);
        }
예제 #2
0
        /// <summary>
        /// Поиск накладных продаж по дате
        /// </summary>
        /// <param name="date">Дата</param>
        /// <returns>Список накладных продаж</returns>
        public static IEnumerable <SalesInvoice> SalesInvoices(DateTime date)
        {
            var x = from m in SalesInvoiceMethods.Outpoot() where m.Date.Value.Date == date.Date select m;

            return(x);
        }
예제 #3
0
 // GET: SalesInvoice
 public ActionResult Index()
 {
     return(View(SalesInvoiceMethods.Outpoot().ToList()));
 }