基线 SVN r240
SVN-Revision: r240
This commit is contained in:
@@ -0,0 +1,202 @@
|
||||
/******************************
|
||||
* 说明:报表模块相关接口
|
||||
* 创建人:龚宇超
|
||||
* 创建日期:2017-11-21
|
||||
* 修改人:
|
||||
* 修改日期:
|
||||
* 修改备注:
|
||||
* 版本:1.0.0.0
|
||||
******************************/
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Lskj.Core;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using Lskj.Model;
|
||||
|
||||
namespace Lskj.Business.Impl
|
||||
{
|
||||
/// <summary>
|
||||
/// 报表模块相关接口
|
||||
/// </summary>
|
||||
public class ReportImpl : BaseImpl
|
||||
{
|
||||
/// <summary>
|
||||
/// <para>说明:获取报表明细数据</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-11-22 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="menuCode">The menu code.</param>
|
||||
/// <returns>DataTable.</returns>
|
||||
/// <exception cref="System.NotImplementedException"></exception>
|
||||
public static DataTable GetReportDetailPages(string menuCode)
|
||||
{
|
||||
string sqlValue = "select * from p_systemDlltabDetail where tab=@tab and isVisible=0 order by orderid";
|
||||
return SqlHelper.ExecuteDataTable(sqlValue, new SqlParameter[] { new SqlParameter("@tab", menuCode) });
|
||||
}
|
||||
/// <summary>
|
||||
/// <para>说明:获取报表明细列</para>
|
||||
/// <para>创建人:龚宇超</para>
|
||||
/// <para>创建日期:2017-11-22 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
/// <param name="menuCode">The menu code.</param>
|
||||
/// <param name="detailId">The detail identifier.</param>
|
||||
/// <returns>DataTable.</returns>
|
||||
/// <exception cref="System.NotImplementedException"></exception>
|
||||
public static DataTable GetReportDetailColumns(string menuCode, string detailId)
|
||||
{
|
||||
SqlParameter[] param =
|
||||
{
|
||||
new SqlParameter("@modid",SqlDbType.VarChar,50),
|
||||
new SqlParameter("@detailid",SqlDbType.Int,4),
|
||||
new SqlParameter("@operatorname",SqlDbType.VarChar,20)
|
||||
};
|
||||
param[0].Value = menuCode;
|
||||
param[1].Value = detailId;
|
||||
param[2].Value = ERPInfo.Instance.UserName;
|
||||
|
||||
return SqlHelper.ExecuteDataSet(CommandType.StoredProcedure, "p_getBaseModuleDetailField", "temp", param).Tables[0];
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:报表加载 </para>
|
||||
/// <para>创建人:曹屹峰</para>
|
||||
/// <para>创建日期:2020-8-16 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
public static DataSet GetNewDesignPlatform(int moduleId, string menuCode, string settingTableName, out int _baseType, out int _errCode)
|
||||
{
|
||||
SqlParameter baseType = new SqlParameter("@baseType", SqlDbType.Int, 4);
|
||||
baseType.Direction = ParameterDirection.Output;
|
||||
SqlParameter errCode = new SqlParameter("@errCode", SqlDbType.Int, 4);
|
||||
errCode.Direction = ParameterDirection.Output;
|
||||
SqlParameter[] param =
|
||||
{
|
||||
new SqlParameter("@userId",SqlDbType.Int,4),
|
||||
new SqlParameter("@operatorName",SqlDbType.VarChar,20),
|
||||
new SqlParameter("@moduleId",SqlDbType.Int,4),
|
||||
new SqlParameter("@moduleCode",SqlDbType.VarChar,50),
|
||||
new SqlParameter("@gridColumnStruct",SqlDbType.VarChar,50),
|
||||
new SqlParameter("@baseDetailGridView",SqlDbType.VarChar,50),
|
||||
new SqlParameter("@settingTableName",SqlDbType.VarChar,50),
|
||||
baseType,
|
||||
errCode
|
||||
};
|
||||
param[0].Value = ERPInfo.Instance.UserId;
|
||||
param[1].Value = ERPInfo.Instance.UserName;
|
||||
param[2].Value = moduleId;
|
||||
param[3].Value = menuCode;
|
||||
param[4].Value = GridCustomColumnStruct.BaseMainGridView;
|
||||
param[5].Value = GridCustomColumnStruct.BaseDetailGridView;
|
||||
param[6].Value = settingTableName;
|
||||
|
||||
DataSet ds = SqlHelper.ExecuteDataSet(CommandType.StoredProcedure, "p_Get_NewDesignPlatform_BasicFile", "cacheSYSConfig", param);
|
||||
|
||||
|
||||
_baseType = (int)baseType.Value;
|
||||
_errCode = (int)errCode.Value;
|
||||
|
||||
return ds;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:基础模块加载 </para>
|
||||
/// <para>创建人:曹屹峰</para>
|
||||
/// <para>创建日期:2020-8-16 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
public static DataSet GetNewDesignPlatformPubModule(int moduleId, string menuCode, string settingTableName, out int _baseType, out int _errCode)
|
||||
{
|
||||
SqlParameter baseType = new SqlParameter("@baseType", SqlDbType.Int, 4);
|
||||
baseType.Direction = ParameterDirection.Output;
|
||||
SqlParameter errCode = new SqlParameter("@errCode", SqlDbType.Int, 4);
|
||||
errCode.Direction = ParameterDirection.Output;
|
||||
SqlParameter[] param =
|
||||
{
|
||||
new SqlParameter("@userId",SqlDbType.Int,4),
|
||||
new SqlParameter("@operatorName",SqlDbType.VarChar,20),
|
||||
new SqlParameter("@moduleId",SqlDbType.Int,4),
|
||||
new SqlParameter("@moduleCode",SqlDbType.VarChar,50),
|
||||
new SqlParameter("@gridColumnStruct",SqlDbType.VarChar,50),
|
||||
new SqlParameter("@baseDetailGridView",SqlDbType.VarChar,50),
|
||||
new SqlParameter("@settingTableName",SqlDbType.VarChar,50),
|
||||
baseType,
|
||||
errCode
|
||||
};
|
||||
param[0].Value = ERPInfo.Instance.UserId;
|
||||
param[1].Value = ERPInfo.Instance.UserName;
|
||||
param[2].Value = moduleId;
|
||||
param[3].Value = menuCode;
|
||||
param[4].Value = GridCustomColumnStruct.BaseMainGridView;
|
||||
param[5].Value = GridCustomColumnStruct.BaseDetailGridView;
|
||||
param[6].Value = settingTableName;
|
||||
|
||||
DataSet ds = SqlHelper.ExecuteDataSet(CommandType.StoredProcedure, "p_Get_NewDesignPlatform_PubModule", "cacheSYSConfig", param);
|
||||
|
||||
|
||||
_baseType = (int)baseType.Value;
|
||||
_errCode = (int)errCode.Value;
|
||||
|
||||
return ds;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// <para>说明:基础审核加载</para>
|
||||
/// <para>创建人:曹屹峰</para>
|
||||
/// <para>创建日期:2020-8-26 </para>
|
||||
/// <para>修改人:</para>
|
||||
/// <para>修改日期:</para>
|
||||
/// <para>修改备注:</para>
|
||||
/// <para>版本:1.0</para>
|
||||
/// </summary>
|
||||
public static DataSet GetNewDesignPlatformBasicFileAudit(DynamicBaseAccraditionPopModel SysModel, string SettingTableName)
|
||||
{
|
||||
DataSet ds = new DataSet();
|
||||
SqlParameter[] param =
|
||||
{
|
||||
new SqlParameter("@userId",SqlDbType.Int,4),
|
||||
new SqlParameter("@operatorName",SqlDbType.VarChar,20),
|
||||
new SqlParameter("@moduleId",SqlDbType.Int,4),
|
||||
new SqlParameter("@moduleCode",SqlDbType.VarChar,50),
|
||||
new SqlParameter("@Privilege",SqlDbType.Int,4),
|
||||
new SqlParameter("@StepCode",SqlDbType.VarChar,50),
|
||||
new SqlParameter("@PrimaryValue",SqlDbType.VarChar,50),
|
||||
new SqlParameter("@settingTableName",SqlDbType.VarChar,50),
|
||||
new SqlParameter("@ConfirmId",SqlDbType.VarChar,50),
|
||||
};
|
||||
param[0].Value = ERPInfo.Instance.UserId;
|
||||
param[1].Value = ERPInfo.Instance.UserName;
|
||||
param[2].Value = SysModel.ModuleId;
|
||||
param[3].Value = SysModel.ModuleCode;
|
||||
param[4].Value = SysModel.Privilege;
|
||||
param[5].Value = SysModel.StepCode;
|
||||
param[6].Value = SysModel.PrimaryValue;
|
||||
param[7].Value = SettingTableName;
|
||||
param[8].Value = SysModel.ConfirmId; ;
|
||||
|
||||
ds = SqlHelper.ExecuteDataSet(CommandType.StoredProcedure, "p_Get_NewDesignPlatform_BasicFileAudit", "cacheSYSConfig", param);
|
||||
|
||||
return ds;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user