Exemple #1
0
        public static void WoPickUpCommand_Execute(CorrigoService service, int workOrderId)
        {
            var command = new WoPickUpCommand
            {
                Comment     = "running pick up command",
                WorkOrderId = workOrderId,
            };

            service.ExecuteAndPrintResponse(command);
        }
Exemple #2
0
        public static void WoCancelCommand_Execute(CorrigoService service, int workOrderId, int actionReasonId)
        {
            var command = new WoCancelCommand
            {
                Comment        = "running cancel command",
                WorkOrderId    = workOrderId,
                ActionReasonId = actionReasonId,                        //is taken from database table [WOActionReasonLookup]
            };

            service.ExecuteAndPrintResponse(command);
        }
Exemple #3
0
        public static void WoCompleteCommand_Execute(CorrigoService service, int workOrderId, int repairCodeId)
        {
            var command = new WoCompleteCommand
            {
                Comment      = "running complete command",
                WorkOrderId  = workOrderId,
                RepairCodeId = repairCodeId,
            };

            service.ExecuteAndPrintResponse(command);
        }
Exemple #4
0
        public static void WoAssignCommand_Execute(CorrigoService service, int workOrderId)
        {
            var command = new WoAssignCommand
            {
                WorkOrderId = workOrderId,
                Comment     = "test assignment",
                Mode        = WoChangeAssigmentMode.Primary,
                Assignees   = new int[] { 3 }                              // is taken from Eployee db table
            };

            service.ExecuteAndPrintResponse(command);
        }