Пример #1
0
 protected void SelCustomer_SelectedCustomer(object sender, SelectedCustomerEventArgs e)
 {
     if (e.Customer != null)
     {
         Page.ViewState["CustomerId"] = e.Customer.CustomerId;
     }
 }
Пример #2
0
 protected void OnSelectedCustomer(Object sender, SelectedCustomerEventArgs e)
 {
     if (SelectedCustomer != null)
     {
         SelectedCustomer(sender, e);
     }
 }
Пример #3
0
 protected void SelCustomer_SelectedCustomer(object sender, SelectedCustomerEventArgs e)
 {
     if (e.Customer != null)
     {
         Page.ViewState["CustomerId"] = e.Customer.CustomerId;
     }
 }
Пример #4
0
 protected void SelCustomer_SelectedCustomer(object sender, SelectedCustomerEventArgs e)
 {
     if (e.Customer != null)
     {
         Page.ViewState["customerId"] = e.Customer.CustomerId;
         Page.ViewState["SupplierId"] = null;
         LoadCboSaleAndOs(e.Customer.CustomerId);
     }
 }
 protected void SelCustomer_SelectedCustomer(object sender, SelectedCustomerEventArgs e)
 {
     Page.ViewState["CustomerId"] = e.Customer.CustomerId;
     cboCustomerEquipments.Items.Clear();
     if (e.Customer.CustomerEquipments.Any())
     {
         cboCustomerEquipments.Items.Add(new ListItem("", ""));
         cboCustomerEquipments.DataSource = new CustomerManager(this).GetCustomerEquipments(Company.CompanyId, e.Customer.CustomerId);
         cboCustomerEquipments.DataBind();
     }
 }
Пример #6
0
    protected void SelCustomer_SelectedCustomer(object sender, SelectedCustomerEventArgs e)
    {
        var saleManager = new SaleManager(this);

        if (e.Customer != null)
        {
            Sale sale = saleManager.GetSale(Company.CompanyId, Convert.ToInt32(Page.ViewState["SaleId"]));
            sale.CustomerId = e.Customer.CustomerId;
            saleManager.Update(saleManager.GetSale(Company.CompanyId, Convert.ToInt32(Page.ViewState["SaleId"])), sale);
        }
    }
Пример #7
0
 protected void SelCustomer_SelectedCustomer(object sender, SelectedCustomerEventArgs e)
 {
     Page.ViewState["CustomerId"] = e.Customer.CustomerId;
     cboCustomerEquipments.Items.Clear();
     if (e.Customer.CustomerEquipments.Any())
     {
         cboCustomerEquipments.Items.Add(new ListItem("", ""));
         cboCustomerEquipments.DataSource = new CustomerManager(this).GetCustomerEquipments(Company.CompanyId, e.Customer.CustomerId);
         cboCustomerEquipments.DataBind();
     }
 }
Пример #8
0
    protected void SelCustomer_SelectedCustomer(object sender, SelectedCustomerEventArgs e)
    {
        if (e.Customer != null)
        {
            CustomerManager customerManager = new CustomerManager(this);
            Session["CustomerId"]  = e.Customer.CustomerId;
            lstBudget.DataSourceID = "odsBudgets";
            lstBudget.DataBind();

            lblBudget.Visible = helpToolTipBudget.Visible = lstBudget.Items.Count > 0;
        }
    }
Пример #9
0
    protected void SelCustomer_SelectedCustomer(object sender, SelectedCustomerEventArgs e)
    {
        if (e.Customer != null)
        {
            Page.ViewState["CustomerId"] = e.Customer.CustomerId;
            if (e.Customer.SalesPersonId.HasValue && cboVendors.Items.FindByValue(e.Customer.SalesPersonId.ToString()) != null)
            {
                cboVendors.SelectedValue = e.Customer.SalesPersonId.ToString();
            }

            cboCustomerContracts.Items.Clear();
            cboCustomerContracts.DataBind();
        }
    }
Пример #10
0
    protected void SelCustomer_SelectedCustomer(object sender, SelectedCustomerEventArgs e)
    {
        if (e.Customer != null)
        {
            Page.ViewState["CustomerId"] = e.Customer.CustomerId;
            cboCustomerEquipments.Items.Clear();
            cboCustomerCalls.Items.Clear();
            cboCustomerContracts.Items.Clear();
            cboCustomerContracts.Items.Add(String.Empty);

            cboCustomerEquipments.DataSource = e.Customer.CustomerEquipments;



            cboCustomerEquipments.Items.Add(String.Empty);

            cboCustomerEquipments.DataBind();
            cboCustomerContracts.DataBind();

            if (e.Customer.CustomerEquipments.Any())
            {
                updPanelEquipment.Attributes["style"] = "display:block";
            }
            else
            {
                updPanelEquipment.Attributes["style"] = "display:none";
            }

            if (e.Customer.CustomerCalls.Any())
            {
                LoadCustomerCallsFromCustomer(e.Customer);
                pnlCustomerCalls.Attributes["style"] = "display:block";
            }
            else
            {
                pnlCustomerCalls.Attributes["style"] = "display:none";
            }

            pnlCustomerContracts.Attributes["style"] = "display:block";
        }
    }
Пример #11
0
 protected void SelCustomer_SelectedCustomer(object sender, SelectedCustomerEventArgs e)
 {
     if (e.Customer != null)
     {
         Page.ViewState["customerId"] = e.Customer.CustomerId;
         Page.ViewState["SupplierId"] = null;
         LoadCboSaleAndOs(e.Customer.CustomerId);
     }
 }
 protected void OnSelectedCustomer(Object sender, SelectedCustomerEventArgs e)
 {
     if (SelectedCustomer != null)
         SelectedCustomer(sender, e);
 }
Пример #13
0
 protected void selCustomer_OnSelectedCustomer(object sender, SelectedCustomerEventArgs e)
 {
     Page.ViewState["CustomerId"] = e.Customer.CustomerId;
 }
    protected void SelCustomer_SelectedCustomer(object sender, SelectedCustomerEventArgs e)
    {
        if (e.Customer != null)
        {
            Page.ViewState["CustomerId"] = e.Customer.CustomerId;
            cboCustomerEquipments.Items.Clear();
            cboCustomerCalls.Items.Clear();
            cboCustomerContracts.Items.Clear();
            cboCustomerContracts.Items.Add(String.Empty);

            cboCustomerEquipments.DataSource = e.Customer.CustomerEquipments;



            cboCustomerEquipments.Items.Add(String.Empty);

            cboCustomerEquipments.DataBind();
            cboCustomerContracts.DataBind();

            if (e.Customer.CustomerEquipments.Any())
                updPanelEquipment.Attributes["style"] = "display:block";
            else
                updPanelEquipment.Attributes["style"] = "display:none";

            if (e.Customer.CustomerCalls.Any())
            {
                LoadCustomerCallsFromCustomer(e.Customer);
                pnlCustomerCalls.Attributes["style"] = "display:block";
            }
            else
                pnlCustomerCalls.Attributes["style"] = "display:none";

            pnlCustomerContracts.Attributes["style"] = "display:block";
        }
    }
Пример #15
0
    protected void SelCustomer_SelectedCustomer(object sender, SelectedCustomerEventArgs e)
    {
        if (e.Customer != null)
        {
            CustomerManager customerManager = new CustomerManager(this);
            Session["CustomerId"] = e.Customer.CustomerId;
            lstBudget.DataSourceID = "odsBudgets";
            lstBudget.DataBind();

            lblBudget.Visible = helpToolTipBudget.Visible = lstBudget.Items.Count > 0;
        }

    }
Пример #16
0
 protected void SelCustomer_SelectedCustomer(object sender, SelectedCustomerEventArgs e)
 {
     var saleManager = new SaleManager(this);
     if (e.Customer != null)
     {
         Sale sale = saleManager.GetSale(Company.CompanyId, Convert.ToInt32(Page.ViewState["SaleId"]));
         sale.CustomerId = e.Customer.CustomerId;
         saleManager.Update(saleManager.GetSale(Company.CompanyId, Convert.ToInt32(Page.ViewState["SaleId"])), sale);
     }
 }
Пример #17
0
    protected void SelCustomer_SelectedCustomer(object sender, SelectedCustomerEventArgs e)
    {
        if (e.Customer != null)
        {
            Page.ViewState["CustomerId"] = e.Customer.CustomerId;
            if (e.Customer.SalesPersonId.HasValue && cboVendors.Items.FindByValue(e.Customer.SalesPersonId.ToString()) != null)
                cboVendors.SelectedValue = e.Customer.SalesPersonId.ToString();

            cboCustomerContracts.Items.Clear();
            cboCustomerContracts.DataBind();
        }
    }
 protected void selCustomer_OnSelectedCustomer(object sender, SelectedCustomerEventArgs e)
 {
     Page.ViewState["CustomerId"] = e.Customer.CustomerId;
 }