/// <summary> /// 账务成员名称获得 /// </summary> /// <param name="value"></param> /// <param name="targetType"></param> /// <param name="parameter"></param> /// <param name="culture"></param> /// <returns></returns> public object Convert(object value, Type targetType, object parameter, CultureInfo culture) { int mbrId = 0; int.TryParse(value.ToString(), out mbrId); if (mbrId <= 0) { return("未知成员"); } return(MemberTsit.GetName(mbrId)); }
/// <summary> /// 设定详细信息内容项 /// </summary> private void SetDetailed() { txtId.Text = string.Format("{0}", AccountEntity.AccId); txtState.Text = string.Format("{0}", StatusTsit.StatusConvert(AccountEntity.AccStatus)); txtTime.Text = string.Format("{0}", AccountEntity.AccAddTime.ToString("yyyy-MM-dd HH:mm:ss")); txtMember.Text = string.Format("{0}", MemberTsit.GetName(AccountEntity.MbrId)); txtName.Text = string.Format("{0}", AccountEntity.AccName); txtCode.Text = string.Format("{0}", AccountEntity.AccCode); txtCard.Text = string.Format("{0}", AccountEntity.AccCard); txtPurpose.Text = string.Format("{0}", AccountEntity.AccPurpose); txtDescription.Text = string.Format("{0}", AccountEntity.AccDescription); }
/// <summary> /// 设定详细信息内容项 /// </summary> private void SetDetailed() { txtId.Text = string.Format("{0}", IaeDetailedEntity.DetId); txtMember.Text = string.Format("{0}", MemberTsit.GetName(IaeDetailedEntity.MbrId)); txtAccount.Text = string.Format("{0}", AccountTsit.GetName(IaeDetailedEntity.AccId)); txtCategory.Text = string.Format("{0}", IaeCategoryTsit.GetName(IaeDetailedEntity.CatId)); txtTime.Text = string.Format("{0}", IaeDetailedEntity.DetAddTime.ToString("yyyy-MM-dd HH:mm:ss")); txtName.Text = string.Format("{0}", IaeDetailedEntity.DetName); txtMoney.Text = string.Format("{0}", IaeDetailedEntity.DetMoney); txtAddress.Text = string.Format("{0}", IaeDetailedEntity.DetAddress); txtDescription.Text = string.Format("{0}", IaeDetailedEntity.DetDescription); txtMemo.Text = string.Format("{0}", IaeDetailedEntity.DetMemo); }