Exemple #1
0
 public static List<Expediente> buscarExpedientesCerrados(string pAbogado, string pJuzgado)
 {
     DataAccessLayerExpediente oDAL = new SQLExpediente();
     return oDAL.SearchExpedientesCerrados(pAbogado, pJuzgado);
 }
Exemple #2
0
 public static void cerrarExpediente(Expediente pExpediente)
 {
     DataAccessLayerExpediente oDAL = new SQLExpediente();
     oDAL.Close(pExpediente);
 }
Exemple #3
0
 public static List<Escrito> traerEscritos(int pId)
 {
     DataAccessLayerExpediente oDAL = new SQLExpediente();
     return oDAL.GetAllEscritos(pId);
 }
Exemple #4
0
 public static Consulta traerConsultaAsociada(int pId)
 {
     DataAccessLayerExpediente oDAL = new SQLExpediente();
     return oDAL.ConsultaAsociada(pId);
 }
Exemple #5
0
 //EXPEDIENTES
 public static void guardarExpediente(Expediente pExpediente, string pOperacion)
 {
     DataAccessLayerExpediente oDAL = new SQLExpediente();
     if (pOperacion == "Insert")
     {
         oDAL.Insert(pExpediente);
     }
     else if (pOperacion == "Update")
     {
         oDAL.Update(pExpediente);
     }
     else
     {
         throw new Exception();
     }
 }
Exemple #6
0
 public static void agregarEscrito(Escrito pEscrito)
 {
     DataAccessLayerExpediente oDAL = new SQLExpediente();
     oDAL.AddEscrito(pEscrito);
 }
Exemple #7
0
        public static void eliminarExpediente(int pId)
        {
            DataAccessLayerExpediente oDAL = new SQLExpediente();
            try
            {
                oDAL.Delete(pId);
            }
            catch (SqlException)
            {

            }
        }