/// <summary> /// 获得实体 /// </summary> /// <returns></returns> private VendorType EntityGet() { VendorType entity = new VendorType(); entity.ID = HTDataID; entity.SelectByID(); entity.ID = SysConvert.ToInt32(txtID.Text.Trim()); entity.Code = txtCode.Text.Trim(); entity.Name = txtName.Text.Trim(); return(entity); }
/// <summary> /// 设置 /// </summary> public override void EntitySet() { VendorType entity = new VendorType(); entity.ID = HTDataID; txtID.Text = entity.ID.ToString(); bool findFlag = entity.SelectByID(); txtCode.Text = entity.Code.ToString(); txtName.Text = entity.Name.ToString(); if (!findFlag) { } }