示例#1
0
        public bool ModificarDB(ba_Archivo_Transferencia_Info info)
        {
            try
            {
                bool res = false;

                if (oData.ModificarDB(info))
                {
                    if (oData_det.EliminarDB(info.IdEmpresa, info.IdArchivo))
                    {
                        foreach (var item in info.Lst_Archivo_Transferencia_Det)
                        {
                            item.IdArchivo            = info.IdArchivo;
                            item.IdEstadoRegistro_cat = "REG_EMITI";
                            item.IdProceso_bancario   = info.IdProceso_bancario;
                        }
                        res = oData_det.GrabarDB(info.Lst_Archivo_Transferencia_Det);
                    }
                    info_procesos_x_empresa = bus_procesos_x_empresa.Get_info_proceso_bancario_x_empresa(info.IdEmpresa, info.IdProceso_bancario);
                }

                return(res);
            }
            catch (Exception ex)
            {
                Core.Erp.Info.Log_Exception.LoggingManager.Logger.Log(Core.Erp.Info.Log_Exception.LoggingCategory.Error, ex.Message);
                throw new Core.Erp.Info.Log_Exception.DalException(string.Format("", "Get_List_Archivo_transferencia", ex.Message), ex)
                      {
                          EntityType = typeof(ba_Archivo_Transferencia_Bus)
                      };
            }
        }
示例#2
0
 public bool ModificarDB(ba_Archivo_Transferencia_Info info)
 {
     try
     {
         return(odata.ModificarDB(info));
     }
     catch (Exception ex)
     {
         tb_LogError_Bus LogData = new tb_LogError_Bus();
         LogData.GuardarDB(new tb_LogError_Info {
             Descripcion = ex.Message, InnerException = ex.InnerException == null ? null : ex.InnerException.Message, Clase = "ba_Archivo_Transferencia_Bus", Metodo = "ModificarDB", IdUsuario = info.IdUsuario
         });
         return(false);
     }
 }