IRecipeService.cs 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Collections.ObjectModel;
  4. using System.ServiceModel;
  5. using MECF.Framework.Common.CommonData;
  6. using MECF.Framework.Common.Equipment;
  7. namespace MECF.Framework.Common.RecipeCenter
  8. {
  9. [ServiceContract]
  10. public interface IRecipeService
  11. {
  12. [OperationContract]
  13. string LoadRecipe(ModuleName chamId, string recipeName);
  14. /// <summary>
  15. ///
  16. /// </summary>
  17. /// <param name="chamId"></param>
  18. /// <returns> recipeName + recipeContent </returns>
  19. [OperationContract]
  20. Tuple<string, string> LoadRunTimeRecipeInfo(ModuleName chamId);
  21. [OperationContract]
  22. IEnumerable<string> GetRecipes(ModuleName chamId, bool includeUsedRecipe);
  23. [OperationContract]
  24. string GetXmlRecipeList(ModuleName chamId, bool includeUsedRecipe);
  25. [OperationContract]
  26. bool DeleteRecipe(ModuleName chamId, string recipeName);
  27. [OperationContract]
  28. bool DeleteFolder(ModuleName chamId, string folderName);
  29. [OperationContract]
  30. bool SaveAsRecipe(ModuleName chamId, string recipeName, string recipeContent);
  31. [OperationContract]
  32. bool SaveRecipe(ModuleName chamId, string recipeName, string recipeContent);
  33. [OperationContract]
  34. bool CreateFolder(ModuleName chamId, string folderName);
  35. [OperationContract]
  36. bool RenameRecipe(ModuleName chamId, string oldName, string newName);
  37. [OperationContract]
  38. bool BackupRecipe(string fileOriginalPath, string fileDestinationPath, bool isSaveLinkRecipe, List<string> recipeNames);
  39. [OperationContract]
  40. bool CheckBackRecipeIsLinkRecipe(string fileOriginalPath, List<string> recipeNames);
  41. [OperationContract]
  42. string GetXmlRestoreRecipeList(string fileType, bool includeUsedRecipe);
  43. [OperationContract]
  44. string LoadRestoreRecipe(string pathName, string recipeName);
  45. [OperationContract]
  46. List<string> RestoreRecipeFolderList();
  47. [OperationContract]
  48. bool RestoreRecipe(string chamId,bool isSaveLink, List<string> recipeNames);
  49. [OperationContract]
  50. bool CheckRestoreRecipeIsLinkRecipe(string fileOriginalPath, List<string> recipeNames);
  51. [OperationContract]
  52. bool SigRestoreRecipe(string chamId, List<string> recipeNames);
  53. [OperationContract]
  54. bool RenameFolder(ModuleName chamId, string oldName, string newName);
  55. [OperationContract]
  56. string GetRecipeFormatXml(ModuleName chamId);
  57. [OperationContract]
  58. Dictionary<string, ObservableCollection<RecipeTemplateColumnBase>> GetGroupRecipeTemplate();
  59. [OperationContract]
  60. string GetRecipeTemplate(ModuleName chamId);
  61. [OperationContract]
  62. string GetRecipeByBarcode(ModuleName chamId, string barcode);
  63. [OperationContract]
  64. List<string> CheckRecipe(string prefix, string recipeName);
  65. [OperationContract]
  66. bool GetRecipeChecked(string prefix, string recipeName);
  67. [OperationContract]
  68. List<FileNodeItem> GetFileNodeParameterListByPath(string pathName);
  69. #region Sequence
  70. [OperationContract]
  71. string GetXmlSequenceList(ModuleName chamId);
  72. [OperationContract]
  73. string GetSequence(string sequenceName);
  74. [OperationContract]
  75. List<string> GetSequenceNameList();
  76. [OperationContract]
  77. bool DeleteSequence(string sequenceName);
  78. [OperationContract]
  79. bool SaveSequence(string sequenceName, string sequenceContent);
  80. [OperationContract]
  81. bool SaveAsSequence(string sequenceName, string sequenceContent);
  82. [OperationContract]
  83. bool RenameSequence(string oldName, string newName);
  84. [OperationContract]
  85. string GetSequenceFormatXml();
  86. [OperationContract]
  87. bool RenameSequenceFolder(string oldName, string newName);
  88. [OperationContract]
  89. bool CreateSequenceFolder(string folderName);
  90. [OperationContract]
  91. bool DeleteSequenceFolder(string folderName);
  92. #endregion
  93. #region extended recipe interface
  94. [OperationContract]
  95. string LoadRecipeByPath(string pathName, string recipeName);
  96. [OperationContract]
  97. Tuple<string, string> LoadRunTimeRecipeInfoByPath(string pathName);
  98. [OperationContract]
  99. IEnumerable<string> GetRecipesByPath(string pathName, bool includeUsedRecipe);
  100. [OperationContract]
  101. string GetXmlRecipeListByPath(string pathName, bool includeUsedRecipe);
  102. [OperationContract]
  103. bool DeleteRecipeByPath(string pathName, string recipeName);
  104. [OperationContract]
  105. bool DeleteFolderByPath(string pathName, string folderName);
  106. [OperationContract]
  107. bool SaveAsRecipeByPath(string pathName, string recipeName, string recipeContent);
  108. [OperationContract]
  109. bool SaveRecipeByPath(string pathName, string recipeName, string recipeContent);
  110. [OperationContract]
  111. bool CreateFolderByPath(string pathName, string folderName);
  112. [OperationContract]
  113. string LoadRecipeByFullPath(string fullPath);
  114. [OperationContract]
  115. bool RenameRecipeByPath(string pathName, string oldName, string newName);
  116. [OperationContract]
  117. bool RenameFolderByPath(string pathName, string oldName, string newName);
  118. [OperationContract]
  119. string GetRecipeFormatXmlByPath(string pathName);
  120. [OperationContract]
  121. string GetRecipeTemplateByPath(string pathName);
  122. [OperationContract]
  123. string GetRecipeByBarcodeByPath(string pathName, string barcode);
  124. [OperationContract]
  125. List<RecipeFileNode> GetRecipeByPathFileNodes(string prefix, string recipeName);
  126. #endregion
  127. }
  128. }