예제 #1
0
 public NhapController(INhapHangService nhap, IQlNhapXuatService qlNx, UserManager user, INccService ncc)
 {
     _nhap = nhap;
     _qlNx = qlNx;
     _user = user;
     _ncc  = ncc;
 }
예제 #2
0
 public NccController(INccService nccService, ICompanyService companyService, UserAppService appService)
 {
     //_idCty = int.Parse(Request.Cookies["id"].ToString());
     _nccService     = nccService;
     _companyService = companyService;
     _appService     = appService;
 }
예제 #3
0
        public MainViewModel(IConfigReaderService configReaderService, ILogService logService, INccService nccService)
        {
            _configReaderService = configReaderService;
            _nccService          = nccService;
            _logService          = logService;

            try
            {
                NCCConfig = configReaderService.ReadNccConfig();
            }
            catch (Exception e)
            {
                _logService.LogError("WRONG CONFIG: " + e.Message);
            }



            BindingOperations.EnableCollectionSynchronization(Logs, _lock);

            if (NCCConfig.DomainSlave == false)
            {
                _nccService.StartListening("127.0.0.1", NCCConfig.ServerPort);
            }
            else
            {
                _nccService.ConnectToNcc("127.0.0.1", NCCConfig.ClientPort, NCCConfig.Name);
                _nccService.StartListening("127.0.0.1", NCCConfig.ServerPort);
            }
        }
예제 #4
0
 public NccController(INccService nccService, ICompanyService companyService, UserAppService appService, UserManager userManager, IGetIdService getIdService)
 {
     _nccService     = nccService;
     _companyService = companyService;
     _appService     = appService;
     _userManager    = userManager;
     _getIdService   = getIdService;
     _idCty          = (long)_userManager.AbpSession.UserId;
 }
예제 #5
0
 public NhapController(INhapService nhap, IQlNhapXuatService qlNx, UserManager user, INccService ncc, IGetIdService getIdService
                       , IHostingEnvironment hostingEnvironment)
 {
     _nhap               = nhap;
     _qlNx               = qlNx;
     _user               = user;
     _ncc                = ncc;
     _getIdService       = getIdService;
     _hostingEnvironment = hostingEnvironment;
 }