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
46
47
48
49
50
51
52
53
54
55
56
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
using CY.Model;
using CY.BLL;
using CY.Infrastructure.Common;
using CY.Infrastructure.Query;
 
namespace CY.WebForm.Pages.soft
{
    //吴辉
    //软件激活码明细
    public partial class KeyCodeDetail : BasePage
    {
        Soft_KeyCodeBLL bll_Soft_KeyCodeBLL = null;
 
        //初始化
        public KeyCodeDetail()
        {
            bll_Soft_KeyCodeBLL = new Soft_KeyCodeBLL();
        }
 
        //页面加载
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                InitData();
            }
        }
 
        //数据加载
        public void InitData()
        {
            Soft_KeyCode m_Soft_KeyCode = bll_Soft_KeyCodeBLL.GetModelByKeyid(Request["keyid"].ToInt32());
            if (m_Soft_KeyCode != null)
            {
                this.spanKeyCode.InnerText = m_Soft_KeyCode.KeyCode.ToString2();
                this.spanKeyStatus.InnerText = m_Soft_KeyCode.KeyStatus.ToString2();
                this.spanKeyProxyId.InnerText = m_Soft_KeyCode.KeyProxyId.ToString2();
                this.spanKeyCreatTime.InnerText = m_Soft_KeyCode.KeyCreatTime.ToString2();
                this.spanKeyOutTime.InnerText = m_Soft_KeyCode.KeyOutTime.ToString2();
                this.spanKeyUseTime.InnerText = m_Soft_KeyCode.KeyUseTime.ToString2();
                this.spanKeyUseIP.InnerText = m_Soft_KeyCode.KeyUseIP.ToString2();
                this.spanKeyClientId.InnerText = m_Soft_KeyCode.KeyClientId.ToString2();
                this.spanLastUpdateTime.InnerText = m_Soft_KeyCode.LastUpdateTime.ToString2();
                this.spanOperator.InnerText = m_Soft_KeyCode.Operator.ToString2();
            }
        }
    }
}