private HoaDonForm() { InitializeComponent(); _hoaDonService = UnityConfig.GetContainer().Resolve <IHoaDonService>(); _khachHangService = UnityConfig.GetContainer().Resolve <IKhachHangService>(); _sanPhamService = UnityConfig.GetContainer().Resolve <ISanPhamService>(); }
public SanPhamController( ISanPhamService spService, ILoaiSanPhamService lspService ) { this._spService = spService; this._lspService = lspService; }
public hhFormAdd() { if (_spService == null) { _spService = new SanPhamService(new ModelStateWrapper(this.ModelState)); } InitializeComponent(); InitData(); }
private void InitData() { //btnShowKH.Enabled = true; //btnThemTiep.Text = "Tiếp tục"; info = new DialogToGetInfo(this); ModelState = new ModelStateDictionary(); _pnService = new PhieuNhapService(new ModelStateWrapper(this.ModelState)); _spService = new SanPhamService(new ModelStateWrapper(this.ModelState)); }
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 AdminController(ISanPhamService sanPhamService, IDonHangService donHangService, INhaCungCapService nhaCungCapService, INhaSanXuatService nhaSanXuatService, IThongSoService thongSoService, IAnhSanPhamService anh, IThongSoKiThuatService thongSoKiThuatService) { _spService = sanPhamService; _dhService = donHangService; _nccService = nhaCungCapService; _nsxService = nhaSanXuatService; _tsService = thongSoService; _aspService = anh; _tsktService = thongSoKiThuatService; }
public hhFormEdit(FormMain main) { if (_spService == null) { _spService = new SanPhamService(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 SanPhamController( INhaCungCapService nccService, INhaSanXuatService nsxService, ILoaiSanPhamService lspService, ISanPhamService spService ) { this._nccService = nccService; this._nsxService = nsxService; this._lspService = lspService; this._spService = spService; }
/// <summary> /// Initializes a new instance of the <see cref="SanPhamController" /> class. /// </summary> /// <param name="SanPhamService">The chat lieu service.</param> public SanPhamController(ISanPhamService sanPhamService, ITheLoaiService theLoaiService, IKichCoService kichCoService, IChatLieuService chatLieuService, IMauService mauService, IMuaService muaService, IDoiTuongService doiTuongService, INuocSanXuatService nuocSxService) { this.sanPhamService = sanPhamService; this.theLoaiService = theLoaiService; this.kichCoService = kichCoService; this.chatLieuService = chatLieuService; this.mauService = mauService; this.muaService = muaService; this.doiTuongService = doiTuongService; nuocSXService = nuocSxService; sanPhamView = new SanPhamView(this); }
public PhieuNhapController( INhaCungCapService nccService, ISanPhamService spService, IPhieuNhapService pnService, IChiTietPhieuNhapService ctpnService ) { this._nccService = nccService; this._spService = spService; this._pnService = pnService; this._ctpnService = ctpnService; }
public TrangchuController( ILoaiSanPhamService loaiSanPhamService, ISanPhamService sanPhamService, IThanhVienService thanhVienService, ILoaiThanhVien_QuyenService ltv_quyenService ) { this._loaiSanPhamService = loaiSanPhamService; this._sanPhamService = sanPhamService; this._tvService = thanhVienService; this._ltv_quyenService = ltv_quyenService; }
public HoaDonController( IErrorService errorService, IHoaDonService hoaDonService, IChiTietHoaDonService chiTietHoaDonService, ISanPhamService sanPhamService, INguoiDungService nguoiDungService, ITaiKhoanService taiKhoanService ) : base(errorService) { _hoaDonService = hoaDonService; _chiTietHoaDonService = chiTietHoaDonService; _sanPhamService = sanPhamService; _nguoiDungService = nguoiDungService; _taiKhoanService = taiKhoanService; }
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; }
/// <summary> /// Initializes a new instance of the <see cref="HoaDonNhapController" /> class. /// </summary> /// <param name="hoaDonNhapService">The hoa don nhap service.</param> /// <param name="theLoaiService">The loai service.</param> /// <param name="kichCoService">The kich co service.</param> /// <param name="chatLieuService">The chat lieu service.</param> /// <param name="mauService">The mau service.</param> /// <param name="muaService">The mua service.</param> /// <param name="doiTuongService">The doi tuong service.</param> /// <param name="nuocSxService">The nuoc sx service.</param> public HoaDonNhapController(IHoaDonNhapService hoaDonNhapService, ITheLoaiService theLoaiService, IKichCoService kichCoService, IChatLieuService chatLieuService, IMauService mauService, IMuaService muaService, IDoiTuongService doiTuongService, INuocSanXuatService nuocSxService, ISanPhamService sanPhamService, IChiTietHDNService chiTietHdnService, INhanVienService nhanVienService, INhaCungCapService nhaCungCapService) { 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.chiTietHdnService = chiTietHdnService; this.nhanVienService = nhanVienService; this.nhaCungCapService = nhaCungCapService; hoaDonNhapView = new HoaDonNhapView(this); }
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 pnFormAdd(FormMain main) { if (_pnService == null) { _pnService = new PhieuNhapService(new ModelStateWrapper(this.ModelState)); } if (_spService == null) { _spService = new SanPhamService(new ModelStateWrapper(this.ModelState)); } InitializeComponent(); InitData(); //txtMaHD.Text = _hdService.SinhMaHoaDon(); txtMaNV.Text = FormLogin.ma; //btnThemTiep.Hide(); //btnShowKH.Enabled = true; _main = main; }
public hhFormAdd(ISanPhamService spService) : this() { _spService = spService; }
public ChiTietSanPham(ISanPhamService sanPhamService, IDanhMucService danhMucService) { _sanPhamService = sanPhamService; _danhMucService = danhMucService; InitializeComponent(); }
public SanPhamController(IErrorService errorService, ISanPhamService sanPhamService, IHinhAnhSanPhamService hinhAnhSanPhamService) : base(errorService) { _sanPhamService = sanPhamService; _hinhAnhSanPhamService = hinhAnhSanPhamService; }
public SanPhamController(ISanPhamService sanPhamService, IMapper mapper) { this.sanPhamService = sanPhamService; this.mapper = mapper; }
public SanPhamController(ISanPhamService sanphamService) { this.sanphamService = sanphamService; }
public SanPhamController(IErrorService errorService, ISanPhamService sanPhamService) : base(errorService) { this._sanPhamService = sanPhamService; }
private SanPhamForm() { InitializeComponent(); _sanPhamService = UnityConfig.GetContainer().Resolve <ISanPhamService>(); }
public SanPhamController(ISanPhamService _sanPham) { sanPham = _sanPham; }
private void InitData() { ModelState = new ModelStateDictionary(); _spService = new SanPhamService(new ModelStateWrapper(this.ModelState)); }
public pnFormAdd(ISanPhamService spService) : this() { _spService = spService; //btnThemTiep.Hide(); //btnShowKH.Enabled = true; }
public SanPhamController(IMobileShopRepository shopRepo, ISanPhamService sanPhamService, IThongSoKiThuatService thongSoKiThuatService) { _shopRepo = shopRepo; _sanPhamService = sanPhamService; _thongSoKiThuatService = thongSoKiThuatService; }
public SanPhamsController(ISanPhamService sanPhamService) { _sanPhamService = sanPhamService; }
public DanhSachSanPham(ISanPhamService sanPhamService, IServiceProvider serviceProvider) { _sanPhamService = sanPhamService; _serviceProvider = serviceProvider; InitializeComponent(); }