| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using CoreFS.CA06;
- using System.Data;
- using System.Collections;
- using Core.Mes.Client.Common;
- namespace Core.LgMes.Client.lgDbMgt
- {
- /// <summary>
- /// 2.5级数据库调用
- /// </summary>
- class DbLgEjgz : IDbCommand
- {
- public DataSet ExecuteReader(DbClientParam param)
- {
- DataSet ds = new DataSet();
- try
- {
- CoreFS.CA06.FrmBase fr = new FrmBase();
- fr.ob = param.ob;
- DataTable dt = new DataTable();
- CoreClientParam Ccp_Query = CoreClientParamMgt.ReturnCoreClientParamForQuery(param.sqlStr, dt);
- fr.ExecuteQueryToDataTable(Ccp_Query, CoreInvokeType.Internal);
- ds.Tables.Add(dt);
- }
- catch
- {
- }
- return ds;
- }
- public string ExecuteNonQuery(DbClientParam param)
- {
- string strErr = "";
- try
- {
- CoreFS.CA06.FrmBase fr = new FrmBase();
- fr.ob = param.ob;
- CoreClientParam ccp_Exe = CoreClientParamMgt.ReturnCoreClientParamForExecuteNoQuery(param.sqlStr);
- try
- {
- fr.ExecuteNonQuery(ccp_Exe, CoreInvokeType.Internal);
- }
- catch
- {
- }
- strErr = ccp_Exe.ReturnInfo.ToString();
- return ccp_Exe.ReturnInfo.ToString();
- }
- catch
- {
- }
- return strErr;
- }
- }
- }
|