private void DisplayAllSuppliers() { IDaoFactory daoFactory = new NHibernateDaoFactory(); ISupplierDao supplierDao = daoFactory.GetSupplierDao(); grdSuppliers.DataSource = supplierDao.GetAll(); grdSuppliers.DataBind(); }
public SupplierMgr(ISupplierDao entityDao, IAddressMgr addressMgr, IWorkCenterMgr workCenterMgr, ICriteriaMgr criteriaMgr, IPermissionMgr permissionMgr, IPermissionCategoryMgr permissionCategoryMgr, IUserPermissionMgr userPermissionMgr, IPartyDao partyDao, IUserMgr userMgr, ISqlHelperDao sqlHelperDao) : base(entityDao) { this.addressMgr = addressMgr; this.workCenterMgr = workCenterMgr; this.criteriaMgr = criteriaMgr; this.permissionMgr = permissionMgr; this.permissionCategoryMgr = permissionCategoryMgr; this.userPermissionMgr = userPermissionMgr; this.userMgr = userMgr; this.partyDao = partyDao; this.sqlHelperDao = sqlHelperDao; }
public SupplierController(SqlSupplier supRepository) { this._supRepository = supRepository; }
public SupplierManager() { supplierDao = DAOFactory.GetInstance().GetSupplierDao(); }
public ISupplierDao GetSupplierDao() { if (supplierDao == null) { if (!DataCache.Instance.OpenMySqlDb) { //this.productDao = new ProductDaoMysql(dbHelper); } else { this.supplierDao = new SuplierDaoMysql(MySqlDbHelper); } } return supplierDao; }
public SupplierService(ISupplierDao supplierDao) { _supplierDao = supplierDao; }
public SupplierBaseMgr(ISupplierDao entityDao) { this.entityDao = entityDao; }