Пример #1
0
        /// <summary>
        /// 设置
        /// </summary>
        public override void EntitySet()
        {
            MSGMessage entity = new MSGMessage();

            entity.ID = HTDataID;
            bool findFlag = entity.SelectByID();

            txtContext.Text = entity.Context.ToString();
            //txtMesPhone.Text = entity.MesPhone.ToString();
            //txtMesMakeOPID.Text = entity.MesMakeOPID.ToString();
            txtTargetOPID.Text  = entity.TargetOPID.ToString();
            txtMesTime.DateTime = entity.MesTime;
            //txtMSID.Text = entity.MSID.ToString();

            string sql = "SELECT * FROM SMS_MSGMain WHERE DID=" + SysString.ToDBString(HTDataID);

            sql += " AND MSGSourceID=" + SysString.ToDBString((int)EnumMSGSource.自定义);
            DataTable dt = SysUtils.Fill(sql);

            if (dt.Rows.Count > 0)
            {
                lbSendShow.Text = "已发送";
            }
            else
            {
                lbSendShow.Text = "未发送";
            }

            if (!findFlag)
            {
            }
            BindGridDts();
        }
Пример #2
0
        /// <summary>
        /// 获得实体
        /// </summary>
        /// <returns></returns>
        private MSGMessage EntityGet()
        {
            MSGMessage entity = new MSGMessage();

            entity.ID = HTDataID;
            entity.SelectByID();
            entity.Context = txtContext.Text.Trim();
            //entity.MesPhone = txtMesPhone.Text.Trim();
            //entity.MesMakeOPID = txtMesMakeOPID.Text.Trim();
            entity.TargetOPID = txtTargetOPID.Text.Trim();
            entity.MesTime    = txtMesTime.DateTime.Date;
            //entity.MSID = SysConvert.ToInt32(txtMSID.Text.Trim());

            return(entity);
        }