public StockRecordDTO LoadData(string fileName)
        {
            StockRecordDAO stockRecordDAO = new StockRecordDAO();

            if (fileName == "")
            {
                throw new Exception("Invalid file name!");
            }
            return(stockRecordDAO.LoadData(fileName));
        }
Esempio n. 2
0
 public StoreSupervisorController()
 {
     this._stockRecordDAO          = new StockRecordDAO();
     this._itemDAO                 = new ItemDAO();
     this._purchaseOrderDAO        = new PurchaseOrderDAO();
     this._purchaseOrderDetailsDAO = new PurchaseOrderDetailsDAO();
     _notificationChannelDAO       = new NotificationChannelDAO();
     _categoryDAO   = new CategoryDAO();
     _departmentDAO = new DepartmentDAO();
 }
Esempio n. 3
0
 public StoreManagerController()
 {
     _itemDAO                 = new ItemDAO();
     _supplieritemDAO         = new SupplierItemDAO();
     _purchaseOrderDAO        = new PurchaseOrderDAO();
     _purchaseOrderDetailsDAO = new PurchaseOrderDetailsDAO();
     _disbursementDAO         = new DisbursementDAO();
     _disbursementItemDAO     = new DisbursementItemDAO();
     _stockRecordDAO          = new StockRecordDAO();
     _notificationChannelDAO  = new NotificationChannelDAO();
     _requisitionDAO          = new RequisitionDAO();
     _requisitionItemDAO      = new RequisitionItemDAO();
     _categoryDAO             = new CategoryDAO();
     _departmentDAO           = new DepartmentDAO();
 }
Esempio n. 4
0
 //private readonly NotificationChannelDAO _notificationChannelDAO;
 //private readonly EmployeeDAO _employeeDAO;
 public StoreClerkController()
 {
     this._disbursementDAO         = new DisbursementDAO();
     this._requisitionDAO          = new RequisitionDAO();
     this._requisitionItemDAO      = new RequisitionItemDAO();
     this._stockRecordDAO          = new StockRecordDAO();
     this._disbursementItemDAO     = new DisbursementItemDAO();
     this._purchaseOrderDAO        = new PurchaseOrderDAO();
     this._itemDAO                 = new ItemDAO();
     this._statusDAO               = new StatusDAO();
     this._purchaseOrderDetailsDAO = new PurchaseOrderDetailsDAO();
     this._employeeDAO             = new EmployeeDAO();
     this._collectionpointDAO      = new CollectionPointDAO();
     this._notificationChannelDAO  = new NotificationChannelDAO();
     this._notificationDAO         = new NotificationDAO();
     this._supplierItemDAO         = new SupplierItemDAO();
     //this._notificationChannelDAO = new NotificationChannelDAO();
     //this._employeeDAO = new EmployeeDAO();
 }