예제 #1
0
    private void DisplayAllSuppliers()
    {
        IDaoFactory  daoFactory  = new NHibernateDaoFactory();
        ISupplierDao supplierDao = daoFactory.GetSupplierDao();

        grdSuppliers.DataSource = supplierDao.GetAll();
        grdSuppliers.DataBind();
    }
예제 #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;
 }
예제 #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;
 }
예제 #5
0
 public SupplierManager()
 {
     supplierDao = DAOFactory.GetInstance().GetSupplierDao();
 }
예제 #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;
 }
예제 #7
0
 public SupplierService(ISupplierDao supplierDao)
 {
     _supplierDao = supplierDao;
 }
예제 #8
0
 public SupplierBaseMgr(ISupplierDao entityDao)
 {
     this.entityDao = entityDao;
 }
예제 #9
0
 public SupplierBaseMgr(ISupplierDao entityDao)
 {
     this.entityDao = entityDao;
 }