| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 | using System;using System.Collections.Generic;using System.Collections.ObjectModel;using System.ServiceModel;using MECF.Framework.Common.CommonData;using MECF.Framework.Common.Equipment;namespace MECF.Framework.Common.ParameterCenter{    [ServiceContract]    public interface IParameterService    {        [OperationContract]        string LoadParameter(ModuleName chamId, string parameterName);        /// <summary>        ///         /// </summary>        /// <param name="chamId"></param>        /// <returns> recipeName + recipeContent </returns>        [OperationContract]        Tuple<string, string> LoadRunTimeParameterInfo(ModuleName chamId);        [OperationContract]        IEnumerable<string> GetParameters(ModuleName chamId, bool includeUsedParameter);        [OperationContract]        string GetXmlParameterList(ModuleName chamId, bool includeUsedParameter);        [OperationContract]        bool DeleteParameter(ModuleName chamId, string parameterName);        [OperationContract]        bool DeleteFolder(ModuleName chamId, string folderName);        [OperationContract]        bool SaveAsParameter(ModuleName chamId, string parameterName, string parameterContent);        [OperationContract]        bool SaveParameter(ModuleName chamId, string parameterName, string parameterContent);        [OperationContract]        bool CreateFolder(ModuleName chamId, string folderName);        [OperationContract]        bool RenameParameter(ModuleName chamId, string oldName, string newName);        [OperationContract]        bool BackupParameter(string fileOriginalPath, string fileDestinationPath, bool isSaveLinkParameter, List<string> parameterNames);        [OperationContract]        bool CheckBackParameterIsLinkParameter(string fileOriginalPath, List<string> parameterNames);        [OperationContract]        string GetXmlRestoreParameterList(string fileType, bool includeUsedParameter);        [OperationContract]        string LoadRestoreParameter(string pathName, string parameterName);        [OperationContract]        List<string> RestoreParameterFolderList();        [OperationContract]        bool RestoreParameter(string chamId,bool isSaveLink, List<string> parameterNames);        [OperationContract]        bool SigRestoreParameter(string chamId, List<string> parameterNames);        [OperationContract]        bool RenameFolder(ModuleName chamId, string oldName, string newName);        [OperationContract]        string GetParameterFormatXml(string chamId);        [OperationContract]        Dictionary<string, ObservableCollection<ParameterTemplateColumnBase>> GetGroupParameterTemplate();        [OperationContract]        string GetParameterTemplate(ModuleName chamId);        [OperationContract]        string GetParameterByBarcode(ModuleName chamId, string barcode);        [OperationContract]        List<string> CheckParameter(string prefix, string parameterName);        [OperationContract]        bool GetParameterChecked(string prefix, string parameterName);        #region extended Parameter interface        [OperationContract]        string LoadParameterByPath(string pathName, string parameterName);        [OperationContract]        Tuple<string, string> LoadRunTimeParameterInfoByPath(string pathName);        [OperationContract]        IEnumerable<string> GetParametersByPath(string pathName, bool includeUsedParameter);        [OperationContract]        string GetXmlParameterListByPath(string pathName, bool includeUsedRecipe);        [OperationContract]        List<FileNodeItem> GetFileNodeParameterListByPath(string pathName);        [OperationContract]        bool DeleteParameterByPath(string pathName, string parameterName);        [OperationContract]        bool DeleteFolderByPath(string pathName, string folderName);        [OperationContract]        bool SaveAsParameterByPath(string pathName, string parameterName, string parameterContent);        [OperationContract]        bool SaveParameterByPath(string pathName, string parameterName, string parameterContent);        [OperationContract]        bool CreateFolderByPath(string pathName, string folderName);        [OperationContract]        bool RenameParameterByPath(string pathName, string oldName, string newName);        [OperationContract]        bool RenameFolderByPath(string pathName, string oldName, string newName);        [OperationContract]        string GetParameterFormatXmlByPath(string pathName);        [OperationContract]        string GetParameterTemplateByPath(string pathName);        [OperationContract]        string GetParameterByBarcodeByPath(string pathName, string barcode);        #endregion    }}
 |