コード例 #1
0
        protected void SearchBind()
        {
            List <OrderItem> orderItemList = new List <OrderItem>();

            orderItemList           = OrderItemDAO.SearchOrderItem(txtProdName.Text, txtOrdNum.Text, txtUnitPrice.Text, txtQnt.Text);
            grdOrderItem.DataSource = orderItemList;
            grdOrderItem.DataBind();
        }
コード例 #2
0
        /*** FINE CLICK EVENT ***/

        /******* HELPERS *******/
        protected void BindGrid()
        {
            List <OrderItem> orderItemList = new List <OrderItem>();

            orderItemList           = OrderItemDAO.GetOrderItemList();
            grdOrderItem.DataSource = orderItemList;
            grdOrderItem.DataBind();
        }
コード例 #3
0
        public event EventHandler <OrderCreatedEventArgs> OrderCreated;              //event delegate for when order is created

        public NewOrderCreator()
        {
            _inventoryService  = new InventoryService();
            _orderDAO          = new OrderDAO();
            _orderItemDAO      = new OrderItemDAO();
            _productService    = new ProductService();
            _newOrderNotifier  = new NewOrderCreationNotificationService(this);
            _newOrderProcessor = new NewOrderProcessor(this);
        }
コード例 #4
0
 public InformationBatender()
 {
     this._orderDAO             = (OrderDAO) new OrderDAOImpl();
     this._orderItemDAO         = (OrderItemDAO) new OrderItemDAOImpl();
     this._recipeDAO            = (RecipeDAO) new RecipeDAOImpl();
     this._recipeDetailDAO      = (RecipeDetailDAO) new RecipeDetailDAOImpl();
     this._foodAndDrinkDAO      = (FoodAndDrinkDAO) new FoodAndDrinkDAOImpl();
     this._ingredientDAO        = (IngredientDAO) new IngredientDAOImpl();
     this._ingredientMessageDAO = (IngredientMessageDAO) new IngredientMessageDAOImpl();
     this._ingreExchangeDAO     = (IngreExchangeDAO) new IngreExchangeDAOImpl();
 }
コード例 #5
0
 public InformationService()
 {
     this._foodAndDrinkDAO   = (FoodAndDrinkDAO) new FoodAndDrinkDAOImpl();
     this._orderDAO          = (OrderDAO) new OrderDAOImpl();
     this._orderItemDAO      = (OrderItemDAO) new OrderItemDAOImpl();
     this._orderPromotionDAO = (OrderPromotionDAO) new OrderPromotionDAOImpl();
     this._positionDAO       = (PositionDAO) new PositionDAOImpl();
     this._accountDAO        = (AccountDAO) new AccountDAOImpl();
     this._shipDAO           = (ShipDAO) new ShipDAOImpl();
     this._shipDetailDAO     = (ShipDetailDAO) new ShipDetailDAOImpl();
 }
コード例 #6
0
 public InformationAccountant()
 {
     this._orderDAO           = (OrderDAO) new OrderDAOImpl();
     this._orderItemDAO       = (OrderItemDAO) new OrderItemDAOImpl();
     this._receiptDAO         = (ReceiptDAO) new ReceiptDAOImpl();
     this._receiptDetailDAO   = (ReceiptDetailDAO) new ReceiptDetailDAOImpl();
     this._timeSheetDAO       = (TimeSheetDAO) new TimeSheetDAOImpl();
     this._timeSheetDetailDAO = (TimeSheetDetailDAO) new TimeSheetDetailDAOImpl();
     this._payrollDAO         = (PayrollDAO) new PayrollDAOImpl();
     this._accDAO             = (AccountDAO) new AccountDAOImpl();
     this._employeeDAO        = (EmployeeDAO) new EmployeeDAOImpl();
 }