Exemplo n.º 1
0
 private SalesOrderService()
 {
     _daoManager = ServiceConfig.GetInstance().DaoManager;
     _orderDao = _daoManager.GetDao(typeof(IOrderDao)) as IOrderDao;
     _orderDetailsDao = _daoManager.GetDao(typeof(IOrderDetailsDao)) as IOrderDetailsDao;
     _orderDiscountDao = _daoManager.GetDao(typeof(IOrderDiscountDao)) as IOrderDiscountDao;
     _orderPayoffDao = _daoManager.GetDao(typeof(IOrderPayoffDao)) as IOrderPayoffDao;
     _dailyStatementDao = _daoManager.GetDao(typeof(IDailyStatementDao)) as IDailyStatementDao;
     _sysConfigDao = _daoManager.GetDao(typeof(ISystemConfigDao)) as ISystemConfigDao;
     _sysDictionary = _daoManager.GetDao(typeof(ISystemDictionaryDao)) as ISystemDictionaryDao;
     _deskDao = _daoManager.GetDao(typeof(IDeskDao)) as IDeskDao;
     _printTaskDao = _daoManager.GetDao(typeof(IPrintTaskDao)) as IPrintTaskDao;
     _goodsDao = _daoManager.GetDao(typeof(IGoodsDao)) as IGoodsDao;
 }
Exemplo n.º 2
0
 private SalesOrderService()
 {
     _daoManager        = ServiceConfig.GetInstance().DaoManager;
     _orderDao          = _daoManager.GetDao(typeof(IOrderDao)) as IOrderDao;
     _orderDetailsDao   = _daoManager.GetDao(typeof(IOrderDetailsDao)) as IOrderDetailsDao;
     _orderDiscountDao  = _daoManager.GetDao(typeof(IOrderDiscountDao)) as IOrderDiscountDao;
     _orderPayoffDao    = _daoManager.GetDao(typeof(IOrderPayoffDao)) as IOrderPayoffDao;
     _dailyStatementDao = _daoManager.GetDao(typeof(IDailyStatementDao)) as IDailyStatementDao;
     _sysConfigDao      = _daoManager.GetDao(typeof(ISystemConfigDao)) as ISystemConfigDao;
     _sysDictionary     = _daoManager.GetDao(typeof(ISystemDictionaryDao)) as ISystemDictionaryDao;
     _deskDao           = _daoManager.GetDao(typeof(IDeskDao)) as IDeskDao;
     _printTaskDao      = _daoManager.GetDao(typeof(IPrintTaskDao)) as IPrintTaskDao;
     _goodsDao          = _daoManager.GetDao(typeof(IGoodsDao)) as IGoodsDao;
 }