Esempio n. 1
0
 public SaveTransHelper(ITSalesRepository tSalesRepository, ITSalesDetRepository tSalesDetRepository, IMGameRepository mGameRepository, IMAgentRepository mAgentRepository, ITMsgRepository tMsgRepository)
 {
     _tSalesRepository    = tSalesRepository;
     _tSalesDetRepository = tSalesDetRepository;
     _mGameRepository     = mGameRepository;
     _mAgentRepository    = mAgentRepository;
     _tMsgRepository      = tMsgRepository;
 }
Esempio n. 2
0
 public Form1(ITSalesRepository tSalesRepository, ITSalesDetRepository tSalesDetRepository, IMGameRepository mGameRepository, IMAgentRepository mAgentRepository, ITMsgRepository tMsgRepository)
 {
     _tSalesRepository    = tSalesRepository;
     _tSalesDetRepository = tSalesDetRepository;
     _mGameRepository     = mGameRepository;
     _mAgentRepository    = mAgentRepository;
     _tMsgRepository      = tMsgRepository;
     InitializeComponent();
 }
Esempio n. 3
0
        public ReportController(IMAgentRepository mAgentRepository, ITSalesDetRepository tSalesDetRepository, IMGameRepository mGameRepository)
        {
            Check.Require(mAgentRepository != null, "mAgentRepository may not be null");
            Check.Require(tSalesDetRepository != null, "tSalesDetRepository may not be null");
            Check.Require(mGameRepository != null, "mGameRepository may not be null");

            this._mAgentRepository    = mAgentRepository;
            this._tSalesDetRepository = tSalesDetRepository;
            this._mGameRepository     = mGameRepository;
        }
Esempio n. 4
0
        public AgentController(IMAgentRepository mAgentRepository, IMAgentCommRepository mAgentCommRepository, IMGameRepository mGameRepository)
        {
            Check.Require(mAgentRepository != null, "mAgentRepository may not be null");
            Check.Require(mAgentCommRepository != null, "mAgentCommRepository may not be null");
            Check.Require(mGameRepository != null, "mGameRepository may not be null");

            this._mAgentRepository     = mAgentRepository;
            this._mAgentCommRepository = mAgentCommRepository;
            this._mGameRepository      = mGameRepository;
        }
Esempio n. 5
0
        public FormServerMain(ITSalesRepository tSalesRepository, ITSalesDetRepository tSalesDetRepository, IMGameRepository mGameRepository, IMAgentRepository mAgentRepository, ITMsgRepository tMsgRepository)
        {
            _tSalesRepository    = tSalesRepository;
            _tSalesDetRepository = tSalesDetRepository;
            _mGameRepository     = mGameRepository;
            _mAgentRepository    = mAgentRepository;
            _tMsgRepository      = tMsgRepository;
            InitializeComponent();

            btnStart.Click += new EventHandler(btnStart_Click);
            btnEnd.Click   += new EventHandler(btnEnd_Click);
            timer1.Tick    += new EventHandler(timer1_Tick);
        }
Esempio n. 6
0
        public static SalesViewModel Create(IMAgentRepository mAgentRepository)
        {
            SalesViewModel viewModel = new SalesViewModel();

            viewModel.SalesDate = DateTime.Today;

            IList <MAgent> list  = mAgentRepository.GetAll();
            MAgent         agent = new MAgent();

            agent.AgentName = "-Pilih Agen-";
            list.Insert(0, agent);
            viewModel.AgentList = new SelectList(list, "Id", "AgentName");
            viewModel.SalesId   = Guid.NewGuid().ToString();
            return(viewModel);
        }
Esempio n. 7
0
        public static ReportParamViewModel Create(IMAgentRepository mAgentRepository, IMGameRepository mGameRepository)
        {
            ReportParamViewModel viewModel = new ReportParamViewModel();

            IList <MAgent> list       = mAgentRepository.GetAll();
            MAgent         costCenter = new MAgent();

            costCenter.AgentName = "-Semua Agen-";
            list.Insert(0, costCenter);
            viewModel.AgentList = new SelectList(list, "Id", "AgentName");

            IList <MGame> listGame = mGameRepository.GetAll();
            MGame         game     = new MGame();

            game.GameName = "-Semua Game-";
            listGame.Insert(0, game);
            viewModel.GameList = new SelectList(listGame, "Id", "GameName");

            viewModel.DateFrom = DateTime.Today;
            viewModel.DateTo   = DateTime.Today;
            return(viewModel);
        }