Exemplo n.º 1
0
 protected void SociosSt_Update(object sender, DirectEventArgs e)
 {
     try
     {
         SociosLogic soc      = new SociosLogic();
         int         anual    = Convert.ToInt32(e.ExtraParams["PRODUCCION_ANUAL"]);
         int         manzanas = Convert.ToInt32(e.ExtraParams["PRODUCCION_MANZANAS_CULTIVADAS"]);
         soc.ActualizarSocio(e.ExtraParams["SOCIOS_ID"],
                             e.ExtraParams["SOCIOS_PRIMER_NOMBRE"],
                             e.ExtraParams["SOCIOS_SEGUNDO_NOMBRE"],
                             e.ExtraParams["SOCIOS_PRIMER_APELLIDO"],
                             e.ExtraParams["SOCIOS_SEGUNDO_APELLIDO"],
                             e.ExtraParams["SOCIOS_RESIDENCIA"],
                             e.ExtraParams["SOCIOS_ESTADO_CIVIL"],
                             e.ExtraParams["SOCIOS_LUGAR_DE_NACIMIENTO"],
                             e.ExtraParams["SOCIOS_FECHA_DE_NACIMIENTO"],
                             e.ExtraParams["SOCIOS_NIVEL_EDUCATIVO"],
                             e.ExtraParams["SOCIOS_IDENTIDAD"],
                             e.ExtraParams["SOCIOS_PROFESION"],
                             e.ExtraParams["SOCIOS_RTN"],
                             e.ExtraParams["SOCIOS_TELEFONO"],
                             e.ExtraParams["SOCIOS_LUGAR_DE_EMISION"],
                             e.ExtraParams["SOCIOS_FECHA_DE_EMISION"],
                             e.ExtraParams["GENERAL_CARNET_IHCAFE"],
                             e.ExtraParams["GENERAL_ORGANIZACION_SECUNDARIA"],
                             e.ExtraParams["GENERAL_NUMERO_CARNET"],
                             e.ExtraParams["GENERAL_EMPRESA_LABORA"],
                             e.ExtraParams["GENERAL_EMPRESA_CARGO"],
                             e.ExtraParams["GENERAL_EMPRESA_DIRECCION"],
                             e.ExtraParams["GENERAL_EMPRESA_TELEFONO"],
                             e.ExtraParams["GENERAL_SEGURO"],
                             e.ExtraParams["GENERAL_FECHA_ACEPTACION"],
                             e.ExtraParams["PRODUCCION_UBICACION_FINCA"],
                             e.ExtraParams["PRODUCCION_AREA"],
                             e.ExtraParams["PRODUCCION_VARIEDAD"],
                             e.ExtraParams["PRODUCCION_ALTURA"],
                             e.ExtraParams["PRODUCCION_DISTANCIA"],
                             anual,
                             e.ExtraParams["PRODUCCION_BENEFICIO_PROPIO"],
                             e.ExtraParams["PRODUCCION_ANALISIS_SUELO"],
                             e.ExtraParams["PRODUCCION_TIPO_INSUMOS"],
                             manzanas, this.LoggedUserHdn.Text
                             );
         this.EditarSocioWin.Hide();
         SociosSt_Reload(null, null);
         SociosGridP.GetView().Refresh(false);
         SociosSt.DataSource = soc.getData();
         SociosSt.DataBind();
         X.Msg.Alert("Socio", "Socio Actualizado Exitosamente.").Show();
     }
     catch (Exception ex)
     {
         log.Fatal("Error fatal al actualizar socio.", ex);
         throw;
     }
 }
Exemplo n.º 2
0
 protected void SociosSt_Reload(object sender, StoreRefreshDataEventArgs e)
 {
     try
     {
         SociosLogic soc    = new SociosLogic();
         var         store1 = this.SociosGridP.GetStore();
         store1.DataSource = soc.getData();
         store1.DataBind();
     }
     catch (Exception ex)
     {
         log.Fatal("Error fatal al cargar socios.", ex);
         throw;
     }
 }