예제 #1
0
        public void LoadByTime()
        {
            DateTime fromDate = UtilityFunction.GetDatetime(dtpFromDate);
            DateTime toDate   = UtilityFunction.GetDatetime(dtpTodate);
            List <Model.Quotation> lstQuotation;

            using (IUnitOfWork uow = new UnitOfWork())
            {
                lstQuotation = uow.QuotationRepository.LookByDate(fromDate, toDate);
                uow.Commit();
            }
            gridUtility.BindingData <Model.Quotation>(lstQuotation);
        }
예제 #2
0
        private void LoadGrid()
        {
            DateTime          fromDate = UtilityFunction.GetDatetime(dtpFromDate);
            DateTime          toDate   = UtilityFunction.GetDatetime(dtpTodate);
            IList <Quotation> lstQuotation;

            using (IUnitOfWork uow = new UnitOfWork())
            {
                lstQuotation = uow.QuotationRepository.LookByDate(fromDate, toDate);
                uow.Commit();
            }
            customGridControl1.BindingData <Quotation>(lstQuotation);
        }