Ejemplo n.º 1
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            LogisticaSA.ServiceLogisticaSAClient proxy = new LogisticaSA.ServiceLogisticaSAClient();
            Label1.Text = ""+proxy.custo(int.Parse(TextBox1.Text));

               // ShippingAll.servicenamePortTypeClient proxy1 = new ShippingAll.servicenamePortTypeClient();
               // Label2.Text = "" + proxy1.custo(int.Parse(TextBox1.Text));
        }
Ejemplo n.º 2
0
        protected void DropDist_SelectedIndexChanged(object sender, EventArgs e)
        {
            //Calcular quantidade de livros/revistas
            int quantidade = 20;
            if (dropLogistica.SelectedValue.ToString() == "LogisticaSA")
            {
                LogisticaSA.ServiceLogisticaSAClient logisticaSA = new LogisticaSA.ServiceLogisticaSAClient();

                lblpreco.Text = logisticaSA.custo(quantidade).ToString();
            }
            else
            {
                ShippingAll.servicenamePortTypeClient ShippingAll = new ShippingAll.servicenamePortTypeClient();
                lblpreco.Text = ShippingAll.custo(quantidade).ToString();
            }
        }