예제 #1
0
        internal static int CerrarManifiesto(long idmanifiesto)
        {
            CerrarOperacionCommand command = new CerrarOperacionCommand();

            command.idmanifiesto = idmanifiesto;
            command.Execute();
            return(1);
        }
예제 #2
0
 internal static bool CerrarOperaciones(IEnumerable <OrdenTrabajoModel> ordenes)
 {
     try
     {
         foreach (var orden in ordenes)
         {
             var command = new CerrarOperacionCommand {
                 cierreoperativo = true, idorden = orden.idordentrabajo
             };
             command.Execute();
         }
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }