private HoaDonForm() { InitializeComponent(); _hoaDonService = UnityConfig.GetContainer().Resolve <IHoaDonService>(); _khachHangService = UnityConfig.GetContainer().Resolve <IKhachHangService>(); _sanPhamService = UnityConfig.GetContainer().Resolve <ISanPhamService>(); }
public khFormAdd() { if (_khService == null) { _khService = new KhachHangService(new ModelStateWrapper(this.ModelState)); } InitializeComponent(); InitData(); }
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)); }
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; }
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; }
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(); }
public KhachHangController(IKhachHangService khachHangService) { this.khachHangService = khachHangService; }
private void InitData() { ModelState = new ModelStateDictionary(); _khService = new KhachHangService(new ModelStateWrapper(this.ModelState)); }
public khFormAdd(IKhachHangService khService) : this() { _khService = khService; }
public KHACHHANGsController(IKhachHangService service) { this.service = service; }
public KhachHangController(IKhachHangService _khachHang) { khachHang = _khachHang; }
public FormMain(IKhachHangService khService) : this() { _khService = khService; }
public HoaDonService(IUnitOfWorkAsync unitOfWork, IKhachHangService khachHangService) : base(unitOfWork.RepositoryAsync <HoaDon>()) { _unitOfWork = unitOfWork; _khachHangService = khachHangService; }
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); }
public VEsController(IVeService service, IKhachHangService khService) { this.service = service; this.khService = khService; }
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; }
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; }
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; }
public KhachHangController(IKhachHangService service) { _service = service; }
public KhachHangController(IKhachHangService _khachHangService, IMapper _mapper) { this._khachHangService = _khachHangService; this._mapper = _mapper; }