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

            entity.ID = HTDataID;
            entity.SelectByID();
            entity.Code     = txtCode.Text.Trim();
            entity.Name     = txtName.Text.Trim();
            entity.Remark   = txtRemark.Text.Trim();
            entity.PHFlag   = SysConvert.ToInt32(txtPHFlag.Text.Trim());
            entity.DHFlag   = SysConvert.ToInt32(txtDHFlag.Text.Trim());
            entity.IntaFlag = SysConvert.ToInt32(txtIntaFlag.Text.Trim());

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

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

            txtCode.Text     = entity.Code.ToString();
            txtName.Text     = entity.Name.ToString();
            txtRemark.Text   = entity.Remark.ToString();
            txtPHFlag.Text   = entity.PHFlag.ToString();
            txtDHFlag.Text   = entity.DHFlag.ToString();
            txtIntaFlag.Text = entity.IntaFlag.ToString();


            if (!findFlag)
            {
            }
        }