/// <summary>
        /// 设置
        /// </summary>
        public override void EntitySet()
        {
            VendorTrackRecord entity = new VendorTrackRecord();

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

            txtFormNo.Text       = entity.FormNo.ToString();
            txtFormDate.DateTime = entity.FormDate;

            drpVendorID.EditValue    = entity.VendorID.ToString();
            txtSaleOPID.Tag          = entity.SaleOPID.ToString();
            txtSaleOPID.Text         = entity.SaleOPID + " " + Common.GetOPName(entity.SaleOPID);
            drpTrackType.Text        = entity.TrackType.ToString();
            txtTrackTitle.Text       = entity.TrackTitle.ToString();
            txtTrackContext.RichText = entity.TrackContextRtf;
            chkTrackFlag.Checked     = SysConvert.ToBoolean(entity.TrackFlag);
            txtRemark.Text           = entity.Remark.ToString();


            if (!findFlag)
            {
            }
        }
        /// <summary>
        /// 获得实体
        /// </summary>
        /// <returns></returns>
        private VendorTrackRecord EntityGet()
        {
            VendorTrackRecord entity = new VendorTrackRecord();

            entity.ID = HTDataID;
            entity.SelectByID();
            entity.FormNo   = txtFormNo.Text.Trim();
            entity.FormDate = txtFormDate.DateTime.Date;
            if (HTFormStatus == FormStatus.新增)
            {
                entity.MakeOPID = FParamConfig.LoginID;
                entity.MakeDate = DateTime.Now.Date;
            }
            entity.VendorID        = SysConvert.ToString(drpVendorID.EditValue);
            entity.SaleOPID        = SysConvert.ToString(txtSaleOPID.Tag);
            entity.TrackType       = drpTrackType.Text.Trim();
            entity.TrackTitle      = txtTrackTitle.Text.Trim();
            entity.TrackContext    = txtTrackContext.Text;
            entity.TrackContextRtf = txtTrackContext.RichText;
            entity.TrackFlag       = SysConvert.ToInt32(chkTrackFlag.Checked);
            entity.Remark          = txtRemark.Text.Trim();

            return(entity);
        }