| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 | 
							- using System;
 
- using System.Collections.Generic;
 
- using MECF.Framework.Common.Equipment;
 
- using MECF.Framework.Common.RecipeCenter;
 
- namespace VirgoUI.Client.Models.PMs
 
- {
 
-     class UiRecipeManager : IUiRecipeManager
 
-     {
 
-         public string LoadRecipe(string chamId, string receipeName)
 
-         {
 
-             return RecipeClient.Instance.Service.LoadRecipeByPath(chamId, receipeName);
 
-         }
 
-         public Tuple<string, string> LoadRunTimeRecipeInfo(string chamId)
 
-         {
 
-             return RecipeClient.Instance.Service.LoadRunTimeRecipeInfoByPath(chamId);
 
-         }
 
-         public IEnumerable<string> GetRecipes(string chamId, bool includeUsedRecipe)
 
-         {
 
-             return RecipeClient.Instance.Service.GetRecipesByPath(chamId, includeUsedRecipe);
 
-         }
 
-         public bool DeleteRecipe(string chamId, string recipeName)
 
-         {
 
-             return RecipeClient.Instance.Service.DeleteRecipeByPath(chamId, recipeName);
 
-         }
 
-         public bool SaveAsRecipe(string chamId, string recipeName, string recipeContent)
 
-         {
 
-             return RecipeClient.Instance.Service.SaveAsRecipeByPath(chamId, recipeName, recipeContent);
 
-         }
 
-         public bool SaveRecipe(string chamId, string recipeName, string recipeContent)
 
-         {
 
-             return RecipeClient.Instance.Service.SaveRecipeByPath(chamId, recipeName, recipeContent);
 
-         }
 
-         public bool RenameRecipe(string chamId, string oldName, string newName)
 
-         {
 
-             return RecipeClient.Instance.Service.RenameRecipeByPath(chamId, oldName, newName);
 
-         }
 
-         public bool CreateFolder(string chamId, string folderName)
 
-         {
 
-             return RecipeClient.Instance.Service.CreateFolderByPath(chamId, folderName);
 
-         }
 
-         public bool MoveRecipeFile(string chamId, string folderName, string tragetFolderName)
 
-         {
 
-             return RecipeClient.Instance.Service.MoveRecipeFile(ModuleNameString.ToEnum(chamId), folderName, tragetFolderName);
 
-         }
 
-         public bool DeleteFolder(string chamId, string foldName)
 
-         {
 
-             return RecipeClient.Instance.Service.DeleteFolderByPath(chamId, foldName);
 
-         }
 
-         public string GetXmlRecipeList(string chamId, bool includingUsedRecipe)
 
-         {
 
-             return RecipeClient.Instance.Service.GetXmlRecipeListByPath(chamId, includingUsedRecipe);
 
-         }
 
-         public bool RenameFolder(string chamId, string oldName, string newName)
 
-         {
 
-             return RecipeClient.Instance.Service.RenameFolderByPath(chamId, oldName, newName);
 
-         }
 
-         public string GetRecipeFormatXml(string chamId)
 
-         {
 
-             return RecipeClient.Instance.Service.GetRecipeFormatXmlByPath(chamId);
 
-         }
 
-         public string GetRecipeTemplate(string chamId)
 
-         {
 
-             return RecipeClient.Instance.Service.GetRecipeTemplateByPath(chamId);
 
-         }
 
-     }
 
- }
 
 
  |