private void DisplayAllSuppliers()
    {
        IDaoFactory  daoFactory  = new NHibernateDaoFactory();
        ISupplierDao supplierDao = daoFactory.GetSupplierDao();

        grdSuppliers.DataSource = supplierDao.GetAll();
        grdSuppliers.DataBind();
    }
Beispiel #2
0
 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;
 }
Beispiel #3
0
 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;
 }
Beispiel #5
0
 public SupplierManager()
 {
     supplierDao = DAOFactory.GetInstance().GetSupplierDao();
 }
Beispiel #6
0
 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;
 }
Beispiel #8
0
 public SupplierBaseMgr(ISupplierDao entityDao)
 {
     this.entityDao = entityDao;
 }
 public SupplierBaseMgr(ISupplierDao entityDao)
 {
     this.entityDao = entityDao;
 }