using System.Text; using CoreFS.CA06; using System.Data; using System.Collections; using Core.Mes.Client.Common; using Core.LgMes.Client.lgDbMgt; namespace Core.LgMes.Client.lgServiceMgt.BaseService { public class LgBaseService { private Core.LgMes.Client.lgDbMgt.IDbCommand _dbCommond = DbCommandFactory.createDbCommand(DbCommandType.Ejgz); /// /// 默认ejgzxt的执行命令 /// protected Core.LgMes.Client.lgDbMgt.IDbCommand dbCommond { get { return this._dbCommond; } } /// /// 返回执行命令 /// /// /// protected Core.LgMes.Client.lgDbMgt.IDbCommand ReturnDbCommondByCommondType(DbCommandType dbType) { return DbCommandFactory.createDbCommand(dbType); } /// /// 返回ejgz 数据集 /// /// /// protected DataSet GetEjDataSet(DbClientParam param) { return dbCommond.ExecuteReader(param); } /// /// 三期 数据集 /// /// /// protected DataSet GetSqDataSet(DbClientParam param) { return ReturnDbCommondByCommondType(DbCommandType.TqMes).ExecuteReader(param); } } }