示例#1
0
        public List <Import> GetImportsByDate(string today)
        {
            ImportDL      ImportDL = new ImportDL();
            List <Import> imports  = ImportDL.GetImportsByDate(today);

            return(imports);
        }
示例#2
0
        /// <summary>
        /// Lấy danh sách hóa đơn
        /// </summary>
        /// <returns></returns>
        public List <Import> GetImports()
        {
            ImportDL      ImportDL = new ImportDL();
            List <Import> imports  = ImportDL.GetImports();

            return(imports);
        }
示例#3
0
        public List <Import> GetImportStatistical(int type, int value)
        {
            ImportDL      importDL = new ImportDL();
            List <Import> imps;

            imps = importDL.GetImportStatistical(type, value);
            return(imps);
        }
示例#4
0
        public object GetImportsPaging(int pageNumber, string fromDate, string toDate)
        {
            ImportDL      ImportDL  = new ImportDL();
            ImportDL      ImportDL2 = new ImportDL();
            List <Import> Imports   = ImportDL.GetImportsPaging(pageNumber, fromDate, toDate);
            int           totalRow  = ImportDL2.GetTotalImportRow(fromDate, toDate);
            object        obj       = new { data = Imports, totalRow = totalRow };

            return(obj);
        }
示例#5
0
        public int GetTotalImportRow(string fromDate, string toDate)
        {
            ImportDL ImportDL = new ImportDL();

            return(ImportDL.GetTotalImportRow(fromDate, toDate));
        }
示例#6
0
        public void DeleteImport(Guid id)
        {
            ImportDL ImportDL = new ImportDL();

            ImportDL.DeleteImport(id);
        }
示例#7
0
        public Import GetImportByID(Guid id)
        {
            ImportDL ImportDL = new ImportDL();

            return(ImportDL.GetImport(id));
        }
示例#8
0
        public void EditImport(Import import)
        {
            ImportDL ImportDL = new ImportDL();

            ImportDL.EditImport(import);
        }
示例#9
0
        /// <summary>
        /// Lưu hóa đơn
        /// </summary>
        /// <param name="import"></param>
        public void SaveImport(Import import)
        {
            ImportDL ImportDL = new ImportDL();

            ImportDL.SaveImport(import);
        }