Beispiel #1
0
 private TorqueRepair GetTorqueRepair(TorqueFault trqFault)
 {
     TorqueRepair trqRepair = new TorqueRepair
     {
         StationId = trqFault.StationId,
         Repaired = false,
         TorquesMissing = trqFault.TorquesMissing,
         TorquesRequired = trqFault.TorquesMissing,
         TorquesPresent = trqFault.TorquesRequired - trqFault.TorquesMissing,
         ControllerName = trqFault.RepairControllerName,
         Pset = trqFault.RepairPsetNum,
         Description = trqFault.Description,
     };
     return trqRepair;
 }
Beispiel #2
0
        public List<RepairRecipe> GetTorqueFaultRecipes(TorqueFault trqFault)
        {
            List<RepairRecipe> recipes = new List<RepairRecipe>();
            List<TorqueRepair> trqRepairs = new List<TorqueRepair>();

            trqRepairs.Add(GetTorqueRepair(trqFault));

            recipes.Add(new RepairRecipe {
                Title = "MISSING: PSET " + trqFault.PsetNum + " " + trqFault.TorquesMissing + " torques(s)",
                TorqueRepairs = trqRepairs,
                BarcodeRepairs = new List<BarcodeRepair>(),
                Repaired = false,
                RequireRepaired = true,
                Priority = 1,
                RecipeId = 100
            });

            return recipes;
        }
 public List<RepairFaultDetail> GetTorqueRepairFaultDetail(TorqueFault fault)
 {
     List<RepairFaultDetail> faultList = new List<RepairFaultDetail>();
     faultList.Add(new RepairFaultDetail
     {
         FaultTypeId = 4,
         Station = fault.StationId.Trim(),
         Description = "Missing: " + fault.Description + " " + fault.TorquesMissing + " torque(s) PSET " + fault.PsetNum
     });
     return faultList;
 }