1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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();
        }
    }
}