Esempio n. 1
0
        /// <summary>
        /// 获得实体
        /// </summary>
        /// <returns></returns>
        private Duty EntityGet()
        {
            Duty entity = new Duty();

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

            return(entity);
        }
Esempio n. 2
0
        /// <summary>
        /// 设置
        /// </summary>
        public override void EntitySet()
        {
            Duty entity = new Duty();

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

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


            if (!findFlag)
            {
            }
        }