/*******************************************************************************
* Copyright(c) 2014 DongkeSoft All rights reserved. / Confidential
* 类的信息:
* 1.程序名称:ICommonModule.cs
* 2.功能描述:共通处理服务契约。
* 编辑履历:
* 作者 日期 版本 修改内容
* 张国印 2014/09/04 1.00 新建
*******************************************************************************/
using System;
using System.Data;
using System.ServiceModel;
using Dongke.IBOSS.PRD.WCF.DataModels;
namespace Dongke.IBOSS.PRD.WCF.Contracts
{
///
/// 共通处理服务契约
///
[ServiceContract(ConfigurationName = "CommonModuleService.ICommonModule",
Name = "ICommonModule",
Namespace = "Dongke.IBOSS.PRD.WCF.Contracts")]
public interface ICommonModule
{
///
/// 根据配置类型获取配置表中的数据
///
/// 配置类型编码
/// DataSet
[OperationContract]
DataSet GetSysSettingBySettingType(string pSettingType);
///
/// 获取账务日期
///
/// DateTime
[OperationContract]
DateTime GetAccountDate();
///
/// 获取该帐套下的所有职务信息,用于数据选择
///
/// DataSet
[OperationContract]
DataSet GetMSTPostInfo();
///
/// 查询数据字典by类别
///
/// 字典类型
/// DataTable
///
/// 陈冰 2014.09.02 新建
///
[OperationContract]
DataTable GetDataDictionaryByType(string dicType);
///
/// 获取服务器上的模板文件
///
/// 模板文件名称
/// TempletFileEntity实体类
[OperationContract]
TempletFileEntity GetTempletFileContentByUrl(string pFileName);
///
/// 上传附件
///
/// 模块名称
/// 时间
/// 文件类型
/// 文件二进制
/// string
[OperationContract]
string UpLoadFile(string module, DateTime dateTime, string fileType, byte[] fileByte);
///
/// 下载附件
///
/// 附件路径
/// byte[]
[OperationContract]
byte[] DownloadFile(string filePath);
#region 共通接口
///
/// 共通接口
///
///
///
[OperationContract]
ServiceResultEntity DoRequest(ClientRequestEntity cre);
#endregion
}
}