IRecipeService.cs 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ServiceModel;
  4. using MECF.Framework.Common.Equipment;
  5. namespace MECF.Framework.Common.RecipeCenter
  6. {
  7. [ServiceContract]
  8. public interface IRecipeService
  9. {
  10. [OperationContract]
  11. string LoadRecipe(ModuleName chamId, string recipeName);
  12. /// <summary>
  13. ///
  14. /// </summary>
  15. /// <param name="chamId"></param>
  16. /// <returns> recipeName + recipeContent </returns>
  17. [OperationContract]
  18. Tuple<string, string> LoadRunTimeRecipeInfo(ModuleName chamId);
  19. [OperationContract]
  20. IEnumerable<string> GetRecipes(ModuleName chamId, bool includeUsedRecipe);
  21. [OperationContract]
  22. string GetXmlRecipeList(ModuleName chamId, bool includeUsedRecipe);
  23. [OperationContract]
  24. bool DeleteRecipe(ModuleName chamId, string recipeName);
  25. [OperationContract]
  26. bool DeleteFolder(ModuleName chamId, string folderName);
  27. [OperationContract]
  28. bool SaveAsRecipe(ModuleName chamId, string recipeName, string recipeContent);
  29. [OperationContract]
  30. bool SaveAsRecipe2(ModuleName chamId,string type, 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 MoveRecipeFile(ModuleName chamId, string folderName, string tragetFolderName);
  37. [OperationContract]
  38. bool RenameRecipe(ModuleName chamId, string oldName, string newName);
  39. [OperationContract]
  40. bool RenameFolder(ModuleName chamId, string oldName, string newName);
  41. [OperationContract]
  42. string GetRecipeFormatXml(ModuleName chamId);
  43. [OperationContract]
  44. string GetRecipeTemplate(ModuleName chamId);
  45. [OperationContract]
  46. string GetRecipeByBarcode(ModuleName chamId, string barcode);
  47. #region Sequence
  48. [OperationContract]
  49. string GetXmlSequenceList(ModuleName chamId);
  50. [OperationContract]
  51. string GetSequence(string sequenceName);
  52. [OperationContract]
  53. List<string> GetSequenceNameList();
  54. [OperationContract]
  55. bool DeleteSequence(string sequenceName);
  56. [OperationContract]
  57. bool SaveSequence(string sequenceName, string sequenceContent);
  58. [OperationContract]
  59. bool SaveAsSequence(string sequenceName, string sequenceContent);
  60. [OperationContract]
  61. bool RenameSequence(string oldName, string newName);
  62. [OperationContract]
  63. string GetSequenceFormatXml();
  64. [OperationContract]
  65. bool RenameSequenceFolder(string oldName, string newName);
  66. [OperationContract]
  67. bool CreateSequenceFolder(string folderName);
  68. [OperationContract]
  69. bool DeleteSequenceFolder(string folderName);
  70. #endregion
  71. #region extended recipe interface
  72. [OperationContract]
  73. string LoadRecipeByPath(string path);
  74. [OperationContract]
  75. Tuple<string, string> LoadRunTimeRecipeInfoByPath(string pathName);
  76. [OperationContract]
  77. IEnumerable<string> GetRecipesByPath(string pathName, bool includeUsedRecipe);
  78. [OperationContract]
  79. string GetXmlRecipeListByPath(string pathName, bool includeUsedRecipe);
  80. [OperationContract]
  81. bool DeleteRecipeByPath(string pathName, string recipeName);
  82. [OperationContract]
  83. bool DeleteFolderByPath(string pathName, string folderName);
  84. [OperationContract]
  85. bool SaveAsRecipeByPath(string pathName, string recipeName, string recipeContent);
  86. [OperationContract]
  87. bool SaveRecipeByPath(string pathName, string recipeName, string recipeContent);
  88. [OperationContract]
  89. bool CreateFolderByPath(string pathName, string folderName);
  90. [OperationContract]
  91. bool RenameRecipeByPath(string pathName, string oldName, string newName);
  92. [OperationContract]
  93. bool RenameFolderByPath(string pathName, string oldName, string newName);
  94. [OperationContract]
  95. string GetRecipeFormatXmlByPath(string pathName);
  96. [OperationContract]
  97. string GetRecipeTemplateByPath(string pathName);
  98. [OperationContract]
  99. string GetRecipeByBarcodeByPath(string pathName, string barcode);
  100. #endregion
  101. }
  102. }