IRecipeService.cs 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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 SaveRecipe(ModuleName chamId, string recipeName, string recipeContent);
  31. [OperationContract]
  32. bool CreateFolder(ModuleName chamId, string folderName);
  33. [OperationContract]
  34. bool MoveRecipeFile(ModuleName chamId, string folderName, string tragetFolderName);
  35. [OperationContract]
  36. bool RenameRecipe(ModuleName chamId, string oldName, string newName);
  37. [OperationContract]
  38. bool RenameFolder(ModuleName chamId, string oldName, string newName);
  39. [OperationContract]
  40. string GetRecipeFormatXml(ModuleName chamId);
  41. [OperationContract]
  42. string GetRecipeTemplate(ModuleName chamId);
  43. [OperationContract]
  44. string GetRecipeByBarcode(ModuleName chamId, string barcode);
  45. #region Sequence
  46. [OperationContract]
  47. string GetXmlSequenceList(ModuleName chamId);
  48. [OperationContract]
  49. string GetSequence(string sequenceName);
  50. [OperationContract]
  51. List<string> GetSequenceNameList();
  52. [OperationContract]
  53. bool DeleteSequence(string sequenceName);
  54. [OperationContract]
  55. bool SaveSequence(string sequenceName, string sequenceContent);
  56. [OperationContract]
  57. bool SaveAsSequence(string sequenceName, string sequenceContent);
  58. [OperationContract]
  59. bool RenameSequence(string oldName, string newName);
  60. [OperationContract]
  61. string GetSequenceFormatXml();
  62. [OperationContract]
  63. bool RenameSequenceFolder(string oldName, string newName);
  64. [OperationContract]
  65. bool CreateSequenceFolder(string folderName);
  66. [OperationContract]
  67. bool DeleteSequenceFolder(string folderName);
  68. #endregion
  69. #region extended recipe interface
  70. [OperationContract]
  71. string LoadRecipeByPath(string pathName, string recipeName);
  72. [OperationContract]
  73. Tuple<string, string> LoadRunTimeRecipeInfoByPath(string pathName);
  74. [OperationContract]
  75. IEnumerable<string> GetRecipesByPath(string pathName, bool includeUsedRecipe);
  76. [OperationContract]
  77. string GetXmlRecipeListByPath(string pathName, bool includeUsedRecipe);
  78. [OperationContract]
  79. bool DeleteRecipeByPath(string pathName, string recipeName);
  80. [OperationContract]
  81. bool DeleteFolderByPath(string pathName, string folderName);
  82. [OperationContract]
  83. bool SaveAsRecipeByPath(string pathName, string recipeName, string recipeContent);
  84. [OperationContract]
  85. bool SaveRecipeByPath(string pathName, string recipeName, string recipeContent);
  86. [OperationContract]
  87. bool CreateFolderByPath(string pathName, string folderName);
  88. [OperationContract]
  89. bool RenameRecipeByPath(string pathName, string oldName, string newName);
  90. [OperationContract]
  91. bool RenameFolderByPath(string pathName, string oldName, string newName);
  92. [OperationContract]
  93. string GetRecipeFormatXmlByPath(string pathName);
  94. [OperationContract]
  95. string GetRecipeTemplateByPath(string pathName);
  96. [OperationContract]
  97. string GetRecipeByBarcodeByPath(string pathName, string barcode);
  98. #endregion
  99. }
  100. }