IRecipeService.cs 5.3 KB

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