Exemplo n.º 1
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);
 }
Exemplo n.º 2
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;
 }
        /// <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);
        }
Exemplo n.º 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="KichCoController"/> class.
 /// </summary>
 /// <param name="currentService">The chat lieu service.</param>
 public KichCoController(IKichCoService currentService)
 {
     this.currentService = currentService;
     view = new KichCoView(this);
 }