Esempio n. 1
0
 protected void SelSupplier_SelectedSupplier(object sender, SelectedSupplierEventArgs e)
 {
     if (e.Supplier != null)
     {
         Page.ViewState["SupplierId"] = e.Supplier.SupplierId;
     }
 }
Esempio n. 2
0
    protected void OnSelectedSupplier(object sender, SelectedSupplierEventArgs e)
    {
        supplier = e.Supplier;

        if (SelectedSupplier != null)
            SelectedSupplier(sender, e);
    }
Esempio n. 3
0
 protected void SelSupplier_SelectedSupplier(object sender, SelectedSupplierEventArgs e)
 {
     if (e.Supplier != null)
     {
         Page.ViewState["SupplierId"] = e.Supplier.SupplierId;
         Page.ViewState["customerId"] = null;
         ResetcboSaleAndOs();
     }
 }
Esempio n. 4
0
    protected void SelSupplier_SelectedSupplier(object sender, SelectedSupplierEventArgs e)
    {
        if (e.Supplier == null)
        {
            return;
        }

        var contactManager = new ContactManager(this);

        cboSupplierContacts.DataSource = contactManager.GetContactsBySupplier(Page.Company.CompanyId, e.Supplier.SupplierId);
        cboSupplierContacts.DataBind();
        pnlSupplierContacts.Visible = cboSupplierContacts.Items.Count > 0;
    }
Esempio n. 5
0
        protected void selSupplier_OnSelectedSupplier(object sender, SelectedSupplierEventArgs e)
        {
            grdProductsQuotation.DataBind();

            var quotation = Page.Manager.GetQuotation(Page.PurchaseOrder.PurchaseOrderId, selSuppllier.Supplier.SupplierId);

            if (quotation != null)
            {
                grdProductsQuotation.FooterRow.FindControl <CurrencyField>("ucTotalAmount").CurrencyValue = quotation.TotalPrice;
                datDeliveryDate.DateTime = quotation.DeliveryDate;
                var ucTotalAmount = grdProductsQuotation.FooterRow.FindControl <CurrencyField>("ucTotalAmount");
                ucTotalAmount.CurrencyValue = quotation.TotalPrice ?? quotation.QuotationItems.Sum(x => x.Price * x.PurchaseOrderItem.QuantityOrdered);
            }
        }
 protected void SelSupplier_SelectedSupplier(object sender, SelectedSupplierEventArgs e)
 {
     if (e.Supplier != null)
     {
         Page.ViewState["SupplierId"] = e.Supplier.SupplierId;
         Page.ViewState["customerId"] = null;
         ResetcboSaleAndOs();
     }
 }
 protected void selSupplier_SelectedSupplier(object sender, SelectedSupplierEventArgs e)
 {
     if (e.Supplier != null)
         Page.ViewState["SupplierId"] = e.Supplier.SupplierId;
 }