Ejemplo n.º 1
0
 async Task CheckPJDuplicated(AskLoadStatusRequest tx) {
     var s16f20 = await EAP.SendAsync(EAP.SecsMessages[16, 19, "GetAllPJ"]);
     foreach (var pj in tx.ProcessJobs)
         foreach (var item in s16f20.SecsItem.Items)
             if ((string)item.Items[0] == pj.Id)
                 throw new ScenarioException("CheckPJDuplicated Error: ProcessJobID(\'" + pj.Id + "\') is exist!");
 }
Ejemplo n.º 2
0
        async Task CheckRecipe(AskLoadStatusRequest tx) {
            var s7f20 = await EAP.SendAsync(EAP.SecsMessages[7, 19, "GetRecipeList"]);
            var recipeList = from item in s7f20.SecsItem.Items
                             select (string)item;

            foreach (var pj in tx.ProcessJobs)
                if (!recipeList.Any(ppid => ppid == pj.RecipeId))
                    throw new ScenarioException("PPID(\'" + pj.RecipeId + "\') Not Found.");
        }
Ejemplo n.º 3
0
 async Task HandleTCS(AskLoadStatusRequest tx) {
     await CheckPJDuplicated(tx);
     await CheckPJSpace();
     await CheckCJSpace();
     await CheckRecipe(tx);
 }
Ejemplo n.º 4
0
 async Task TCS_AskLoadtStatus(AskLoadStatusRequest tx) {
     await CheckPJDuplicated(tx);
     await CheckPJSpace();
     await CheckCJSpace();
     await CheckRecipe(tx);
 }