Exemple #1
0
        /// <summary>
        /// 获得实体
        /// </summary>
        /// <returns></returns>
        private CLSForm EntityGet()
        {
            CLSForm entity = new CLSForm();

            entity.ID = HTDataID;
            entity.SelectByID();
            entity.CLSA      = txtCLSA.Text.Trim();
            entity.CLSB      = txtCLSB.Text.Trim();
            entity.CLSListID = SysConvert.ToInt32(drpCLSListID.EditValue);
            entity.Remark    = txtRemark.Text.Trim();

            return(entity);
        }
Exemple #2
0
        /// <summary>
        /// 设置
        /// </summary>
        public override void EntitySet()
        {
            CLSForm entity = new CLSForm();

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

            txtCLSA.Text           = entity.CLSA.ToString();
            txtCLSB.Text           = entity.CLSB.ToString();
            drpCLSListID.EditValue = entity.CLSListID;
            txtRemark.Text         = entity.Remark.ToString();


            if (!findFlag)
            {
            }
        }