Beispiel #1
0
        private void SalesOrderLog()
        {
            try
            {
                PagerInfo pi = new PagerInfo();
                Business.Models.SalesCodeSearchInput scsi = new Business.Models.SalesCodeSearchInput();
                DateTime dtF            = this.dateTimePicker1.Value;
                DateTime dtT            = this.dateTimePicker2.Value;
                var      salesOrderList = PharmacyDatabaseService.AllSalesOrders(out msg).Where(r => r.BalanceTime > dtF && r.BalanceTime < dtT);

                var c = from i in salesOrderList
                        select new LogContext
                {
                    dt      = i.CreateTime,
                    name    = i.SalerName,
                    context = "开销售单" + i.OrderCode,
                    type    = "销售操作日志"
                };
                this.dataGridView1.DataSource = c.ToList();
            }
            catch (Exception ex)
            {
                MessageBox.Show("日志查询失败!请联系统管理员!");
            }
        }