DotNet.WinForm/CommonModule/Comment/FrmCommentEdit.cs

(开头部分) 6KB

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

//--------------------------------------------------------------------
// All Rights Reserved , Copyright (C) 2014 , Hairihan TECH, Ltd. 
//--------------------------------------------------------------------

using System;
using System.Data;
using System.Windows.Forms;

namespace DotNet.WinForm
{
    using DotNet.Business;
    using DotNet.Utilities;

    /// <summary>
    /// FrmCommentEdit.cs
    /// 修改评论
    ///	
    /// 修改记录
    /// 
    ///     2012.08.26 版本:1.0 JiRiGaLa  修改功能页面编写。
    ///		
    /// <author>
    ///		<name>JiRiGaLa</name>
    ///		<date>2012.08.26</date>
    /// </author> 
    /// </summary>
    public partial class FrmCommentEdit : BaseForm
    {
        public FrmCommentEdit()
        {
            InitializeComponent();
        }

        public FrmCommentEdit(string id)
            : this()
        {
            this.EntityId = id;
        }

        #region public override void ShowEntity() 显示内容
        /// <summary>
        /// 显示内容
        /// </summary>
        public override void ShowEntity()
        {
            // 获取数据
            SQLBuilder sqlBuilder = new SQLBuilder(this.UserCenterDbHelper);
            sqlBuilder.BeginSelect(BaseCommentEntity.TableName);
            sqlBuilder.SetWhere(BaseCommentEntity.FieldId, this.EntityId);
            DataTable dtComment = sqlBuilder.EndSelect();
            // 显示信息
			BaseCommentEntity commentEntity = BaseEntity.Create<BaseCommentEntity>(dtComment);
            this.txtContents.Text = commentEntity.Contents;
            this.chkWorked.Checked = commentEntity.Worked == 1;

            // 创建修改信息显示部分
            this.txtCreateBy.Text = commentEntity.CreateBy;
            if (commentEntity.CreateOn.HasValue)
            {
                this.txtCreateDate.Text = ((DateTime)commentEntity.CreateOn).ToString(BaseSystemInfo.DateFormat);
后面还有 126 行代码,购买后查看完整代码

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

AI 解读

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

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