コード例 #1
0
        public int AgregarCirugiaPaquete(CirugiaPqtFinanciero cirugiaPaquete)
        {
            try
            {
                ServicioCirugiaPaqueteFinanciero servicio = new ServicioCirugiaPaqueteFinanciero();
                CirugiaPqtFinancieroServicio cirugiaPaqueteServicio = new CirugiaPqtFinancieroServicio();
                cirugiaPaqueteServicio.Cirugia = new Proxy.ProxyCirugiaPaqueteFinanciero.Cirugia();
                cirugiaPaqueteServicio.Cirugia.Id = cirugiaPaquete.Cirugia.Id;
                cirugiaPaqueteServicio.Cirujano = new Proxy.ProxyCirugiaPaqueteFinanciero.Cirujano();
                cirugiaPaqueteServicio.Cirujano.Id = cirugiaPaquete.Id;
                cirugiaPaqueteServicio.Descuento = cirugiaPaquete.Descuento;
                cirugiaPaqueteServicio.FechaOperacion = cirugiaPaquete.FechaOperacion;
                cirugiaPaqueteServicio.MontoCirujano = cirugiaPaqueteServicio.MontoCirujano;
                cirugiaPaqueteServicio.Nombre = cirugiaPaquete.Nombre;
                cirugiaPaqueteServicio.Protesis = cirugiaPaquete.Protesis;
                return servicio.AgregarCirugiaPaquete(cirugiaPaqueteServicio);

            }
            catch (Exception)
            {
                return -1;
            }
        }
コード例 #2
0
 /// <remarks/>
 public System.IAsyncResult BeginAgregarCirugiaPaquete(CirugiaPqtFinanciero cirugiaPqtFinanciero, System.AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("AgregarCirugiaPaquete", new object[] {
                                                                       cirugiaPqtFinanciero}, callback, asyncState);
 }
コード例 #3
0
 /// <remarks/>
 public void AgregarCirugiaPaqueteAsync(CirugiaPqtFinanciero cirugiaPqtFinanciero)
 {
     this.AgregarCirugiaPaqueteAsync(cirugiaPqtFinanciero, null);
 }
コード例 #4
0
 /// <remarks/>
 public void AgregarCirugiaPaqueteAsync(CirugiaPqtFinanciero cirugiaPqtFinanciero, object userState)
 {
     if ((this.AgregarCirugiaPaqueteOperationCompleted == null)) {
         this.AgregarCirugiaPaqueteOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAgregarCirugiaPaqueteOperationCompleted);
     }
     this.InvokeAsync("AgregarCirugiaPaquete", new object[] {
                                                                cirugiaPqtFinanciero}, this.AgregarCirugiaPaqueteOperationCompleted, userState);
 }
コード例 #5
0
 public int AgregarCirugiaPaquete(CirugiaPqtFinanciero cirugiaPqtFinanciero)
 {
     object[] results = this.Invoke("AgregarCirugiaPaquete", new object[] {
                                                                              cirugiaPqtFinanciero});
     return ((int)(results[0]));
 }