SQLServerDAL/C_type.cs
(开头部分) 17KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/** 版本信息模板在安装目录下,可自行修改。
* C_type.cs
*
* 功 能: N/A
* 类 名: C_type
*
* Ver 变更日期 负责人 变更内容
* ───────────────────────────────────
* V0.01 2014/8/4 16:54:24 N/A 初版
*
* Copyright (c) 2012 Maticsoft Corporation. All rights reserved.
*┌──────────────────────────────────┐
*│ 此技术信息为本公司机密信息,未经本公司书面同意禁止向第三方披露. │
*│ 版权所有:动软卓越(北京)科技有限公司 │
*└──────────────────────────────────┘
*/
using System;
using System.Data;
using System.Text;
using System.Data.SqlClient;
using Cms.DBUtility;//Please add references
namespace Cms.SQLServerDAL
{
/// <summary>
/// 数据访问类:C_type
/// </summary>
public partial class C_type
{
public C_type()
{}
#region BasicMethod
#region 取得所有类别列表==============================================
/// <summary>
/// 取得所有类别列表
/// </summary>
/// <param name="parent_id">父ID</param>
/// <param name="channel_id">频道ID</param>
/// <returns></returns>
public DataTable GetList(int parent_id, int channel_id, string Where)
{
StringBuilder strSql = new StringBuilder();
strSql.Append("select * from C_type");
strSql.Append(" " + Where + " order by sort_id asc");
DataSet ds = DbHelperSQL.Query(strSql.ToString());
DataTable oldData = ds.Tables[0] as DataTable;
if (oldData == null)
{
return null;
}
//复制结构
DataTable newData = oldData.Clone();
//调用迭代组合成DAGATABLE
GetChilds(oldData, newData, parent_id, channel_id);
return newData;
}
/// <summary>
/// 从内存中取得所有下级类别列表(自身迭代)
/// </summary>
后面还有 468 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
