Exemplo n.º 1
0
 private HoaDonForm()
 {
     InitializeComponent();
     _hoaDonService    = UnityConfig.GetContainer().Resolve <IHoaDonService>();
     _khachHangService = UnityConfig.GetContainer().Resolve <IKhachHangService>();
     _sanPhamService   = UnityConfig.GetContainer().Resolve <ISanPhamService>();
 }
Exemplo n.º 2
0
 public khFormAdd()
 {
     if (_khService == null)
     {
         _khService = new KhachHangService(new ModelStateWrapper(this.ModelState));
     }
     InitializeComponent();
     InitData();
 }
Exemplo 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));
 }
Exemplo n.º 4
0
 public khFormEdit(FormMain main)
 {
     if (_khService == null)
     {
         _khService = new KhachHangService(new ModelStateWrapper(this.ModelState));
     }
     InitializeComponent();
     InitData();
     _main = main;
 }
Exemplo n.º 5
0
 public GioHangController(
     ISanPhamService spService,
     IKhachHangService khService,
     IDonDatHangService ddhService,
     IChiTietDonDatHangService ctddhService
     )
 {
     this._spService    = spService;
     this._khService    = khService;
     this._ddhService   = ddhService;
     this._ctddhService = ctddhService;
 }
Exemplo 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;
 }
Exemplo 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();
        }
Exemplo n.º 8
0
 public KhachHangController(IKhachHangService khachHangService)
 {
     this.khachHangService = khachHangService;
 }
Exemplo n.º 9
0
 private void InitData()
 {
     ModelState = new ModelStateDictionary();
     _khService = new KhachHangService(new ModelStateWrapper(this.ModelState));
 }
Exemplo n.º 10
0
 public khFormAdd(IKhachHangService khService) : this()
 {
     _khService = khService;
 }
Exemplo n.º 11
0
 public KHACHHANGsController(IKhachHangService service)
 {
     this.service = service;
 }
Exemplo n.º 12
0
 public KhachHangController(IKhachHangService _khachHang)
 {
     khachHang = _khachHang;
 }
Exemplo n.º 13
0
 public FormMain(IKhachHangService khService) : this()
 {
     _khService = khService;
 }
Exemplo n.º 14
0
 public HoaDonService(IUnitOfWorkAsync unitOfWork, IKhachHangService khachHangService) : base(unitOfWork.RepositoryAsync <HoaDon>())
 {
     _unitOfWork       = unitOfWork;
     _khachHangService = khachHangService;
 }
Exemplo n.º 15
0
 private KhachHangForm()
 {
     InitializeComponent();
     _khachHangService = UnityConfig.GetContainer().Resolve <IKhachHangService>();
 }
Exemplo n.º 16
0
 /// <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);
 }
Exemplo n.º 17
0
 public VEsController(IVeService service, IKhachHangService khService)
 {
     this.service   = service;
     this.khService = khService;
 }
Exemplo 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;
 }
Exemplo 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;
 }
Exemplo 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;
 }
Exemplo n.º 25
0
 public ChiTietSuaChuaController(IKhachHangService khachhangService, IMayTinhService maytinhService, IChiTietSuaChuaService chitietSuaChuaService, IErrorService errorService) : base(errorService)
 {
     this._chitietSuaChuaService = chitietSuaChuaService;
     this._maytinhService        = maytinhService;
     this._khachhangService      = khachhangService;
 }
Exemplo n.º 26
0
 public KhachHangController(IKhachHangService service)
 {
     _service = service;
 }
Exemplo n.º 27
0
 public KhachHangController(IKhachHangService _khachHangService, IMapper _mapper)
 {
     this._khachHangService = _khachHangService;
     this._mapper           = _mapper;
 }