using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Web;
|
using System.Web.UI;
|
using System.Web.UI.WebControls;
|
using CY.BLL;
|
using CY.Model;
|
using CY.Infrastructure.Query;
|
using CY.Infrastructure.Common;
|
using CY.BLL.OA;
|
namespace CY.WebForm.Pages.financial
|
{
|
public partial class FirmAccountDetail : BasePage
|
{
|
protected void Page_Load(object sender, EventArgs e)
|
{
|
if (!IsPostBack)
|
{
|
BindAccountSet();
|
}
|
}
|
/// <summary>
|
/// 绑定对象的详细信息
|
/// </summary>
|
public void BindAccountSet()
|
{
|
OA_FirmAccountBLL _OA_FirmAccountBLL = new OA_FirmAccountBLL();
|
OA_FirmAccount firmAccrount = _OA_FirmAccountBLL.getSingleSubject(Request["Keyid"].ToInt32());
|
this.SpanAccountName.InnerText = firmAccrount.AccountName.ToString2();
|
this.SpanUserName.InnerText = firmAccrount.UserName.ToString2();
|
this.SpanStatus.InnerText = true.Equals(firmAccrount.Status) ? "启用" : "停用";
|
this.SpanResponsiblePerson.InnerText = firmAccrount.ResponsiblePerson.ToString2();
|
this.SpanRemark.InnerText = firmAccrount.Remark.ToString2();
|
this.SpanOperator.InnerText = firmAccrount.Operator.ToString2();
|
this.SpanLastUpdateTime.InnerText = firmAccrount.LastUpdateTime.ToString2();
|
this.SpanCreateTime.InnerText = firmAccrount.CreateTime.ToString2();
|
this.SpanBalance.InnerText = (firmAccrount.Balance ?? 0).ToString("0.00") + " 元";
|
this.SpanAccountName.InnerText = firmAccrount.AccountName.ToString2();
|
this.SpanAllExpenses.InnerText = (firmAccrount.AllExpenses ?? 0).ToString("0.00") + " 元";
|
this.SpanAllIncome.InnerText = (firmAccrount.AllIncome ?? 0).ToString("0.00") + " 元";
|
this.SpanAccountType.InnerText = firmAccrount.AccountType.ToString2();
|
}
|
}
|
}
|