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

            //entity.ID = HTDataID;
            entity.SelectByID();
            entity.ID     = Convert.ToInt32(txtID.Text.Trim());
            entity.Code   = txtCode.Text.Trim();   //编码
            entity.Name   = txtName.Text.Trim();   //名称
            entity.Remark = txtRemark.Text.Trim(); //备注

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

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

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


            if (!findFlag)
            {
            }
            BindGridDts();
        }