コード例 #1
0
ファイル: HoaDonForm.cs プロジェクト: vansang1706/qt-project
 private HoaDonForm()
 {
     InitializeComponent();
     _hoaDonService    = UnityConfig.GetContainer().Resolve <IHoaDonService>();
     _khachHangService = UnityConfig.GetContainer().Resolve <IKhachHangService>();
     _sanPhamService   = UnityConfig.GetContainer().Resolve <ISanPhamService>();
 }
コード例 #2
0
 public SanPhamController(
     ISanPhamService spService,
     ILoaiSanPhamService lspService
     )
 {
     this._spService  = spService;
     this._lspService = lspService;
 }
コード例 #3
0
 public hhFormAdd()
 {
     if (_spService == null)
     {
         _spService = new SanPhamService(new ModelStateWrapper(this.ModelState));
     }
     InitializeComponent();
     InitData();
 }
コード例 #4
0
 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));
 }
コード例 #5
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));
 }
コード例 #6
0
 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;
 }
コード例 #7
0
 public hhFormEdit(FormMain main)
 {
     if (_spService == null)
     {
         _spService = new SanPhamService(new ModelStateWrapper(this.ModelState));
     }
     InitializeComponent();
     InitData();
     _main = main;
 }
コード例 #8
0
 public GioHangController(
     ISanPhamService spService,
     IKhachHangService khService,
     IDonDatHangService ddhService,
     IChiTietDonDatHangService ctddhService
     )
 {
     this._spService    = spService;
     this._khService    = khService;
     this._ddhService   = ddhService;
     this._ctddhService = ctddhService;
 }
コード例 #9
0
 public SanPhamController(
     INhaCungCapService nccService,
     INhaSanXuatService nsxService,
     ILoaiSanPhamService lspService,
     ISanPhamService spService
     )
 {
     this._nccService = nccService;
     this._nsxService = nsxService;
     this._lspService = lspService;
     this._spService  = spService;
 }
コード例 #10
0
 /// <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);
 }
コード例 #11
0
 public PhieuNhapController(
     INhaCungCapService nccService,
     ISanPhamService spService,
     IPhieuNhapService pnService,
     IChiTietPhieuNhapService ctpnService
     )
 {
     this._nccService  = nccService;
     this._spService   = spService;
     this._pnService   = pnService;
     this._ctpnService = ctpnService;
 }
コード例 #12
0
 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;
 }
コード例 #13
0
 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;
 }
コード例 #14
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;
 }
コード例 #15
0
        /// <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);
        }
コード例 #16
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();
        }
コード例 #17
0
 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;
 }
コード例 #18
0
 public hhFormAdd(ISanPhamService spService) : this()
 {
     _spService = spService;
 }
コード例 #19
0
 public ChiTietSanPham(ISanPhamService sanPhamService, IDanhMucService danhMucService)
 {
     _sanPhamService = sanPhamService;
     _danhMucService = danhMucService;
     InitializeComponent();
 }
コード例 #20
0
 public SanPhamController(IErrorService errorService, ISanPhamService sanPhamService, IHinhAnhSanPhamService hinhAnhSanPhamService)
     : base(errorService)
 {
     _sanPhamService        = sanPhamService;
     _hinhAnhSanPhamService = hinhAnhSanPhamService;
 }
コード例 #21
0
 public SanPhamController(ISanPhamService sanPhamService, IMapper mapper)
 {
     this.sanPhamService = sanPhamService;
     this.mapper         = mapper;
 }
コード例 #22
0
 public SanPhamController(ISanPhamService sanphamService)
 {
     this.sanphamService = sanphamService;
 }
コード例 #23
0
 public SanPhamController(IErrorService errorService, ISanPhamService sanPhamService)
     : base(errorService)
 {
     this._sanPhamService = sanPhamService;
 }
コード例 #24
0
ファイル: SanPhamForm.cs プロジェクト: vansang1706/qt-project
 private SanPhamForm()
 {
     InitializeComponent();
     _sanPhamService = UnityConfig.GetContainer().Resolve <ISanPhamService>();
 }
コード例 #25
0
 public SanPhamController(ISanPhamService _sanPham)
 {
     sanPham = _sanPham;
 }
コード例 #26
0
 private void InitData()
 {
     ModelState = new ModelStateDictionary();
     _spService = new SanPhamService(new ModelStateWrapper(this.ModelState));
 }
コード例 #27
0
 public pnFormAdd(ISanPhamService spService) : this()
 {
     _spService = spService;
     //btnThemTiep.Hide();
     //btnShowKH.Enabled = true;
 }
コード例 #28
0
 public SanPhamController(IMobileShopRepository shopRepo, ISanPhamService sanPhamService, IThongSoKiThuatService thongSoKiThuatService)
 {
     _shopRepo              = shopRepo;
     _sanPhamService        = sanPhamService;
     _thongSoKiThuatService = thongSoKiThuatService;
 }
コード例 #29
0
 public SanPhamsController(ISanPhamService sanPhamService)
 {
     _sanPhamService = sanPhamService;
 }
コード例 #30
0
 public DanhSachSanPham(ISanPhamService sanPhamService, IServiceProvider serviceProvider)
 {
     _sanPhamService  = sanPhamService;
     _serviceProvider = serviceProvider;
     InitializeComponent();
 }