コード例 #1
0
 public bool guardarDB(fa_pre_facturacion_det_otros_Info info)
 {
     try
     {
         using (Entity_Facturacion_FJ Context = new Entity_Facturacion_FJ())
         {
             fa_pre_facturacion_det_otros Entity = new fa_pre_facturacion_det_otros();
             Entity.IdEmpresa        = info.IdEmpresa;
             Entity.IdPreFacturacion = info.IdPreFacturacion;
             Entity.Secuencia        = info.Secuencia;
             Entity.IdCentroCosto_sub_centro_costo = info.IdCentroCosto_sub_centro_costo;
             Entity.IdCentroCosto = info.IdCentroCosto;
             Entity.IdActivoFijo  = info.IdActivoFijo;
             Entity.observacion   = info.observacion;
             Entity.valor         = info.valor;
             Context.fa_pre_facturacion_det_otros.Add(Entity);
             Context.SaveChanges();
         }
         return(true);
     }
     catch (Exception ex)
     {
         string MensajeError = "";
         string arreglo      = ToString();
         tb_sis_Log_Error_Vzen_Data oDataLog      = new tb_sis_Log_Error_Vzen_Data();
         tb_sis_Log_Error_Vzen_Info Log_Error_sis = new tb_sis_Log_Error_Vzen_Info(ex.ToString(), "", arreglo, "", "", "", "", "", DateTime.Now);
         oDataLog.Guardar_Log_Error(Log_Error_sis, ref MensajeError);
         MensajeError = ex.ToString();
         throw new Exception(ex.ToString());
     }
 }
コード例 #2
0
 public bool guardarDB(fa_pre_facturacion_det_otros_Info info)
 {
     try
     {
         return(oData.guardarDB(info));
     }
     catch (Exception)
     {
         throw;
     }
 }