Esempio n. 1
0
 private HoaDonForm()
 {
     InitializeComponent();
     _hoaDonService    = UnityConfig.GetContainer().Resolve <IHoaDonService>();
     _khachHangService = UnityConfig.GetContainer().Resolve <IKhachHangService>();
     _sanPhamService   = UnityConfig.GetContainer().Resolve <ISanPhamService>();
 }
Esempio n. 2
0
 public khFormAdd()
 {
     if (_khService == null)
     {
         _khService = new KhachHangService(new ModelStateWrapper(this.ModelState));
     }
     InitializeComponent();
     InitData();
 }
Esempio n. 3
0
 private void InitData()
 {
     ModelState  = new ModelStateDictionary();
     _spService  = new SanPhamService(new ModelStateWrapper(this.ModelState));
     _nvService  = new NhanVienService(new ModelStateWrapper(this.ModelState));
     _nccService = new NhaCungCapService(new ModelStateWrapper(this.ModelState));
     _khService  = new KhachHangService(new ModelStateWrapper(this.ModelState));
     _hdService  = new HoaDonService(new ModelStateWrapper(this.ModelState));
     _pnService  = new PhieuNhapService(new ModelStateWrapper(this.ModelState));
 }
Esempio n. 4
0
 public khFormEdit(FormMain main)
 {
     if (_khService == null)
     {
         _khService = new KhachHangService(new ModelStateWrapper(this.ModelState));
     }
     InitializeComponent();
     InitData();
     _main = main;
 }
 public GioHangController(
     ISanPhamService spService,
     IKhachHangService khService,
     IDonDatHangService ddhService,
     IChiTietDonDatHangService ctddhService
     )
 {
     this._spService    = spService;
     this._khService    = khService;
     this._ddhService   = ddhService;
     this._ctddhService = ctddhService;
 }
Esempio n. 6
0
 public BaoCaoController(IHoaDonNhapService hoaDonNhapService, ITheLoaiService theLoaiService, IKichCoService kichCoService, IChatLieuService chatLieuService, IMauService mauService, IMuaService muaService, IDoiTuongService doiTuongService, INuocSanXuatService nuocSxService, ISanPhamService sanPhamService, IChiTietHDBService chiTietHdbService, INhanVienService nhanVienService, IKhachHangService khachHangService, IHoaDonBanService hoaDonBanService)
 {
     this.hoaDonNhapService = hoaDonNhapService;
     this.theLoaiService    = theLoaiService;
     this.kichCoService     = kichCoService;
     this.chatLieuService   = chatLieuService;
     this.mauService        = mauService;
     this.muaService        = muaService;
     this.doiTuongService   = doiTuongService;
     this.nuocSxService     = nuocSxService;
     this.sanPhamService    = sanPhamService;
     this.chiTietHdbService = chiTietHdbService;
     this.nhanVienService   = nhanVienService;
     this.khachHangService  = khachHangService;
     this.hoaDonBanService  = hoaDonBanService;
 }
Esempio n. 7
0
        public FormMain(FormLogin login)
        {
            hh      = new hhFormAdd(this);
            nv      = new nvFormAdd(this);
            kh      = new khFormAdd(this);
            ncc     = new nccFormAdd(this);
            pn      = new pnFormAdd(this);
            hd      = new hdFormAdd(this);
            hhEdit  = new hhFormEdit(this);
            nvEdit  = new nvFormEdit(this);
            nccEdit = new nccFormEdit(this);
            khEdit  = new khFormEdit(this);
            hdEdit  = new hdFormEdit(this);
            //pnEdit = new pnFormEdit(this);

            if (_spService == null)
            {
                _spService = new SanPhamService(new ModelStateWrapper(this.ModelState));
            }
            if (_nvService == null)
            {
                _nvService = new NhanVienService(new ModelStateWrapper(this.ModelState));
            }
            if (_nccService == null)
            {
                _nccService = new NhaCungCapService(new ModelStateWrapper(this.ModelState));
            }
            if (_khService == null)
            {
                _khService = new KhachHangService(new ModelStateWrapper(this.ModelState));
            }
            if (_hdService == null)
            {
                _hdService = new HoaDonService(new ModelStateWrapper(this.ModelState));
            }
            if (_pnService == null)
            {
                _pnService = new PhieuNhapService(new ModelStateWrapper(this.ModelState));
            }
            InitializeComponent();
            InitData();
            InitControls();
            this.login = login;
            this.login.Hide();
        }
Esempio n. 8
0
 public KhachHangController(IKhachHangService khachHangService)
 {
     this.khachHangService = khachHangService;
 }
Esempio n. 9
0
 private void InitData()
 {
     ModelState = new ModelStateDictionary();
     _khService = new KhachHangService(new ModelStateWrapper(this.ModelState));
 }
Esempio n. 10
0
 public khFormAdd(IKhachHangService khService) : this()
 {
     _khService = khService;
 }
Esempio n. 11
0
 public KHACHHANGsController(IKhachHangService service)
 {
     this.service = service;
 }
Esempio n. 12
0
 public KhachHangController(IKhachHangService _khachHang)
 {
     khachHang = _khachHang;
 }
Esempio n. 13
0
 public FormMain(IKhachHangService khService) : this()
 {
     _khService = khService;
 }
Esempio n. 14
0
 public HoaDonService(IUnitOfWorkAsync unitOfWork, IKhachHangService khachHangService) : base(unitOfWork.RepositoryAsync <HoaDon>())
 {
     _unitOfWork       = unitOfWork;
     _khachHangService = khachHangService;
 }
Esempio n. 15
0
 private KhachHangForm()
 {
     InitializeComponent();
     _khachHangService = UnityConfig.GetContainer().Resolve <IKhachHangService>();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="KhachHangController"/> class.
 /// </summary>
 /// <param name="currentService">The chat lieu service.</param>
 public KhachHangController(IKhachHangService currentService)
 {
     this.currentService = currentService;
     view = new KhachHangView(this);
 }
Esempio n. 17
0
 public VEsController(IVeService service, IKhachHangService khService)
 {
     this.service   = service;
     this.khService = khService;
 }
Esempio n. 18
0
 public GiaBanService(IUnitOfWorkAsync unitOfWork, ISanPhamService sanPhamService, IKhachHangService khachHangService) : base(unitOfWork.RepositoryAsync <GiaBan>())
 {
     _unitOfWork       = unitOfWork;
     _sanPhamService   = sanPhamService;
     _khachHangService = khachHangService;
 }
 public KhachHangController(IKhachHangService khachHangService,
                            ICaptchaSettings captchaSettings)
 {
     _khachHangService = khachHangService;
     _captchaSettings  = captchaSettings;
 }
Esempio n. 20
0
 public KhachHangController(IKhachHangService khachHangService, IMapper mapper)
 {
     this.khachHangService = khachHangService;
     this.mapper           = mapper;
 }
 public ChiTietKhachHangController(IKhachHangService khachHangService, IChiTietKhachHangService chitietKhachHangService, IErrorService errorService) : base(errorService)
 {
     this._chitietKhachHangService = chitietKhachHangService;
     this._khachHangService        = khachHangService;
 }
 public KhachHangController(
     IKhachHangService khachhangService)
 {
     _khachhangService = khachhangService;
 }
Esempio n. 23
0
 public KhachHangController(IKhachHangService khachHangService, IErrorService errorService) : base(errorService)
 {
     this._khachHangService = khachHangService;
 }
 public KhachHangController(ErrorService error, IKhachHangService iKhachHangService) : base(error)
 {
     this._ikhachHangService = iKhachHangService;
 }
 public ChiTietSuaChuaController(IKhachHangService khachhangService, IMayTinhService maytinhService, IChiTietSuaChuaService chitietSuaChuaService, IErrorService errorService) : base(errorService)
 {
     this._chitietSuaChuaService = chitietSuaChuaService;
     this._maytinhService        = maytinhService;
     this._khachhangService      = khachhangService;
 }
Esempio n. 26
0
 public KhachHangController(IKhachHangService service)
 {
     _service = service;
 }
Esempio n. 27
0
 public KhachHangController(IKhachHangService _khachHangService, IMapper _mapper)
 {
     this._khachHangService = _khachHangService;
     this._mapper           = _mapper;
 }