Exemplo n.º 1
0
        private void btnAcquisisceMisure_Click(object sender, EventArgs e)
        {
            List <UploadMeasuresElementRequest> measures = new List <UploadMeasuresElementRequest>();
            UploadMeasuresElementRequest        e1       = new UploadMeasuresElementRequest();

            e1.Material = txtMaterial1.Text;
            e1.Measure  = nMeasure1.Value;
            if (!String.IsNullOrEmpty(txtMaterial1.Text))
            {
                measures.Add(e1);
            }

            UploadMeasuresElementRequest e2 = new UploadMeasuresElementRequest();

            e2.Material = txtMaterial2.Text;
            e2.Measure  = nMeasure2.Value;
            if (!String.IsNullOrEmpty(txtMaterial2.Text))
            {
                measures.Add(e2);
            }

            UploadMeasuresElementRequest e3 = new UploadMeasuresElementRequest();

            e3.Material = txtMaterial3.Text;
            e3.Measure  = nMeasure3.Value;
            if (!String.IsNullOrEmpty(txtMaterial3.Text))
            {
                measures.Add(e3);
            }

            string json = JSonSerializer.Serialize <List <UploadMeasuresElementRequest> >(measures);

            CertixWS.CertixServicesSoapClient client = new CertixWS.CertixServicesSoapClient();
            txtMessaggio.Text = client.UploadMeasures((int)nIdMeasure.Value, json);
        }
Exemplo n.º 2
0
 private void btnAcquisiceCodice_Click(object sender, EventArgs e)
 {
     if (string.IsNullOrEmpty(txtCode.Text))
     {
         txtMessaggio.Text = "Il campo code non può essere vuoto";
         return;
     }
     CertixWS.CertixServicesSoapClient client = new CertixWS.CertixServicesSoapClient();
     txtMessaggio.Text = client.UploadCode((int)nIdLine.Value, txtCode.Text);
 }
Exemplo n.º 3
0
 private void btnMetodoTest_Click(object sender, EventArgs e)
 {
     CertixWS.CertixServicesSoapClient client = new CertixWS.CertixServicesSoapClient();
     txtMessaggio.Text = client.TestMethod();
 }