示例#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;
 }