App_Code/LeaveWordMgr.cs

(开头部分) 5KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Data;
using System.Data.SqlClient;

/// <summary>
/// LeaveWord管理类
/// </summary>
public class LeaveWordMgr
{
	/// <summary>
	/// 初始化管理类
	/// </summary>
	public LeaveWordMgr()
	{
	}

	#region 函数UpdateLeaveWord | 更新LeaveWord信息
	/// <summary>
	/// 更新LeaveWord类信息
	/// </summary>
	/// <param name="leaveWord">留言板类参数</param>
	/// <returns>更新成功返回true 否则返回false</returns>
	public bool UpdateLeaveWord(LeaveWord leaveWord)
	{
		string strSQL = "";
		SqlDataAdapter sa = null;
		SqlCommandBuilder builder = null;
		DataRow row = null;
		DataTable dt = null;
		bool returnValue = false;
		if (leaveWord != null)
		{
			if (leaveWord.LeaveWordID == 0)
			{
				strSQL = "SELECT Top 0 * FROM LeaveWord";
			}
			else
			{
				strSQL = "SELECT * FROM LeaveWord WHERE LeaveWordID = '" + leaveWord.LeaveWordID + "'";
			}

			dt = CMMgr.GetDataTable(strSQL);

			 if (dt.Rows.Count > 0)
			{
				row = dt.Rows[0];
			}
			else
			{
				row = dt.NewRow();
			}
			row["Caption"] = leaveWord.Caption;
			row["Content"] = leaveWord.Content;
			if (leaveWord.PubDate == DateTime.MaxValue)
			{
				row["PubDate"] = System.DBNull.Value;
			}
			else
			{
				row["PubDate"] = leaveWord.PubDate;
后面还有 140 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。