public S35MenuSanXuatLogic(BSContext context)
 {
     this.Context           = context;
     this.S35MenuSanXuatDAO = new S35MenuSanXuatDAO(this.Context);
     //Detail của hóa đơn bán ra
     this.S35MenuDetailSanXuatDAO = new S35MenuDetailSanXuatDAO(this.Context);
 }
예제 #2
0
 public ReportLogic(BSContext context) : base(context)
 {
     this.ReportDAO        = new ReportDAO(this.Context);
     this.ItemsDAO         = new ItemsDAO(this.Context);
     this.WareHouseListDAO = new WareHouseListDAO(this.Context);
     this.BalanceLogic     = new BalanceLogic(this.Context);
 }
 public InvoiceS35Logic(BSContext context)
 {
     this.Context       = context;
     this.InvoiceS35DAO = new InvoiceS35DAO(this.Context);
     //Detail của hóa đơn bán ra
     this.InvoiceS35DetailDAO = new InvoiceS35DetailDAO(this.Context);
 }
 public S35MenuFinalLogic(BSContext context)
 {
     this.Context           = context;
     this.S35MenuFinalDAO   = new S35MenuFinalDAO(this.Context);
     this.S35MenuFinalExDAO = new S35MenuFinalExDAO(this.Context);
     this.S35MenuFinalWHDAO = new S35MenuFinalWHDAO(this.Context);
 }
예제 #5
0
 public WareHouseLogic(BSContext context)
 {
     this.Context            = context;
     this.WareHouseDAO       = new WareHouseDAO(this.Context);
     this.WareHouseDetailDAO = new WareHouseDetailDAO(this.Context);
     this.DUTOANCONGTRINHDAO = new DUTOANCONGTRINHDAO(this.Context);
 }
 public S35MenuDetailSanXuatFinalLogic(BSContext context)
 {
     this.Context = context;
     this.ItemDetailS35MenuSXDAO       = new ItemDetailS35MenuSXDAO(this.Context);
     this.S35MenuDetailSanXuatFinalDAO = new S35MenuDetailSanXuatFinalDAO(this.Context);
     this.S35MenuSanXuatWHDAO          = new S35MenuSanXuatWHDAO(this.Context);
     this.S35MenuSXConnectDTDAO        = new S35MenuSXConnectDTDAO(this.Context);
     this.ThanhPhamKeyDAO = new ThanhPhamKeyDAO(this.Context);
 }
예제 #7
0
 public ItemsLogic(BSContext context) : base(context)
 {
     this.Context        = context;
     this.ItemsDAO       = new ItemsDAO(this.Context);
     this.ItemUnitDAO    = new ItemUnitDAO(this.Context);
     this.ItemTypeDAO    = new ItemTypeDAO(this.Context);
     this.ItemDetailDAO  = new ItemDetailDAO(this.Context);
     this.ItemConvertDAO = new ItemConvertDAO(this.Context);
 }
예제 #8
0
 public long GetMaxSEQ(string type)
 {
     //@DateClient
     return(this.Context.ExecuteScalar(
                "SP_GetMaxSEQ",
                new SqlParameter("@Type", type),
                new SqlParameter("@UserID", UserInfo.UserID),
                new SqlParameter("@CompanyID", CommonInfo.CompanyInfo.CompanyID),
                new SqlParameter("@Macaddress", BSContext.GetMacAddress().ToString()),
                new SqlParameter("@DateClient", DateTime.Now.Date)
                ));
 }
예제 #9
0
        public ADALTokenCache(string signedInUserId, IBSContextContextManager contextManager)
        {
            _context = contextManager.GetContext();

            // associate the cache to the current user of the web app
            userId            = signedInUserId;
            this.AfterAccess  = AfterAccessNotification;
            this.BeforeAccess = BeforeAccessNotification;
            this.BeforeWrite  = BeforeWriteNotification;
            // look up the entry in the database
            Cache = _context.UserTokenCacheList.FirstOrDefault(c => c.webUserUniqueId == userId);
            // place the entry in memory
            this.Deserialize((Cache == null) ? null : MachineKey.Unprotect(Cache.cacheBits, "ADALCache"));
        }
예제 #10
0
        public UnitOfWork(BSContext db)
        {
            _db       = db;
            Category  = new CategoryRepository(_db);
            CoverType = new CoverTypeRepository(_db);
            Product   = new ProductRepository(_db);

            Company         = new CompanyRepository(_db);
            ApplicationUser = new ApplicationUserRepository(_db);

            ShoppingCart = new ShoppingCartRepository(_db);
            OrderDetails = new OrderDetailsRepository(_db);
            OrderHeader  = new OrderHeaderRepository(_db);

            SP_Call = new SP_Call(_db);
        }
예제 #11
0
 public Repository(BSContext db)
 {
     _db        = db;
     this.dbSet = _db.Set <T>();  //Phuong thuc Set dang ky 1 Dbset kieu T cho _db de thao tac
 }
 public InvoiceS35DetailDAO(BSContext context) : base(context)
 {
 }
 public BSGCURRENTVERSIONDAO(BSContext context) : base(context)
 {
 }
 public DUTOANCONGTRINHDAO(BSContext context) : base(context)
 {
 }
예제 #15
0
 public ProductRepository(BSContext db) : base(db)
 {
     _db = db;
 }
예제 #16
0
 public DMQLConnectQLDAO(BSContext context) : base(context)
 {
 }
 public DMQLConnectQLLogic(BSContext context)
 {
     this.Context          = context;
     this.DMQLConnectQLDAO = new DMQLConnectQLDAO(this.Context);
 }
예제 #18
0
 public CompanyDAO(BSContext context) : base(context)
 {
 }
예제 #19
0
 public OrderDetailsRepository(BSContext db) : base(db)
 {
     _db = db;
 }
예제 #20
0
 public VoucherDetailDAO(BSContext context) : base(context)
 {
 }
예제 #21
0
 public NoteInfoLogic(BSContext context) : base(context)
 {
     this.NoteInfoDAO       = new NoteInfoDAO(this.Context);
     this.NoteInfoDetailDAO = new NoteInfoDetailDAO(this.Context);
 }
예제 #22
0
 public CoverTypeRepository(BSContext db) : base(db)
 {
     _db = db;
 }
 public S35MenuSXConnectDTDAO(BSContext context) : base(context)
 {
 }
 public S35MenuSelectedLogic(BSContext context)
 {
     this.Context            = context;
     this.S35MenuSelectedDAO = new S35MenuSelectedDAO(this.Context);
 }
예제 #25
0
 public CustomerDAO(BSContext context) : base(context)
 {
 }
 public KichBanKetChuyentableDAO(BSContext context) : base(context)
 {
 }
예제 #27
0
 public ItemsDAO(BSContext context) : base(context)
 {
 }
 public VoucherCoverLogic(BSContext context) : base(context)
 {
     this.VoucherCoverDAO       = new VoucherCoverDAO(this.Context);
     this.VoucherCoverDetailDAO = new VoucherCoverDetailDAO(this.Context);
 }
 public WareHouseListLogic(BSContext context)
 {
     this.Context          = context;
     this.WareHouseListDAO = new WareHouseListDAO(this.Context);
 }
예제 #30
0
 public WareHouseListDAO(BSContext context) : base(context)
 {
 }