protected void SelSupplier_SelectedSupplier(object sender, SelectedSupplierEventArgs e) { if (e.Supplier != null) { Page.ViewState["SupplierId"] = e.Supplier.SupplierId; } }
protected void OnSelectedSupplier(object sender, SelectedSupplierEventArgs e) { supplier = e.Supplier; if (SelectedSupplier != null) SelectedSupplier(sender, e); }
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) { return; } var contactManager = new ContactManager(this); cboSupplierContacts.DataSource = contactManager.GetContactsBySupplier(Page.Company.CompanyId, e.Supplier.SupplierId); cboSupplierContacts.DataBind(); pnlSupplierContacts.Visible = cboSupplierContacts.Items.Count > 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; }