Exemple #1
0
 private void UpdateData()
 {
     // update data
     DrugDetailsView.DataBind();
     PendingOrdersGridView.DataBind();
     UpdateSuggestion();
 }
Exemple #2
0
        private void PopulateOrderLists()
        {
            int customerID = Convert.ToInt32(CustomersDropDownList.SelectedValue);
            EntityList <PurchaseOrder> orders = PurchaseOrder.GetPurchaseOrdersByCustomerAndSupplier(customerID, homeCompany.company_id);

            PendingOrdersGridView.DataSource = orders.Where(p => p.is_submitted == true && p.InvoicesBypurchaseorder_.Count == 0);
            PendingOrdersGridView.DataBind();

            FulfilledOrderGridView.DataSource = orders.Where(p => p.InvoicesBypurchaseorder_.Count > 0);
            FulfilledOrderGridView.DataBind();
        }