/// <summary> /// 获得实体 /// </summary> /// <returns></returns> private CompanyAccount EntityGet() { CompanyAccount entity = new CompanyAccount(); entity.ID = HTDataID; entity.SelectByID(); entity.CompanyID = SysConvert.ToInt32(drpCompanyID.EditValue); entity.Bank = txtBank.Text.Trim(); entity.Account = txtAccount.Text.Trim(); entity.SwifCode = txtSwifCode.Text.Trim(); entity.Remark = txtRemark.Text.Trim(); return(entity); }
/// <summary> /// 设置 /// </summary> public override void EntitySet() { CompanyAccount entity = new CompanyAccount(); entity.ID = HTDataID; bool findFlag = entity.SelectByID(); drpCompanyID.EditValue = entity.CompanyID; txtBank.Text = entity.Bank.ToString(); txtAccount.Text = entity.Account.ToString(); txtSwifCode.Text = entity.SwifCode.ToString(); txtRemark.Text = entity.Remark.ToString(); if (!findFlag) { } }