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

            entity.ID = HTDataID;
            entity.SelectByID();
            entity.Code   = txtCode.Text.Trim();
            entity.Name   = txtName.Text.Trim();
            entity.Remark = txtRemark.Text.Trim();

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

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

            txtCode.Text   = entity.Code.ToString();
            txtName.Text   = entity.Name.ToString();
            txtRemark.Text = entity.Remark.ToString();


            if (!findFlag)
            {
            }
        }