Пример #1
0
        /// <summary>
        /// 获得实体
        /// </summary>
        /// <returns></returns>
        private CLSList EntityGet()
        {
            CLSList entity = new CLSList();

            entity.ID = HTDataID;
            entity.SelectByID();
            entity.CLSA    = txtCLSA.Text.Trim();
            entity.CLSB    = txtCLSB.Text.Trim();
            entity.CLSDESC = txtCLSDESC.Text.Trim();

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

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

            txtCLSA.Text    = entity.CLSA.ToString();
            txtCLSB.Text    = entity.CLSB.ToString();
            txtCLSDESC.Text = entity.CLSDESC.ToString();
            if (!findFlag)//处理默认值
            {
            }
        }