2025-03-27 15:05:14 +08:00

29 lines
1.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace SuperMap.RealEstate.HighWay.Modules.EditServerPart
{
public partial class SecretKey : Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (IsPostBack) return;
DateTime curDate = DateTime.Now;
string SERVERPART_CODE = Request["SERVERPART_CODE"].ToDecrypt();
//载入数据
SwitchSecret.Text = SERVERPART_CODE.Substring(2, 4) + curDate.ToString("MMmmHHdd");
SwitchSecret.DescriptionText = $"规则:服务区编码({ SERVERPART_CODE.Substring(0, 2) }" +
$"<a style='color: red;'>{ SERVERPART_CODE.Substring(2, 4) }</a>)后4位+" +
$"月(<a style='color: red;'>{curDate:MM}</a>)分(<a style='color: red;'>{curDate:mm}</a>)" +
$"时(<a style='color: red;'>{curDate:HH}</a>)日(<a style='color: red;'>{curDate:dd}</a>)";
//注册遮罩式窗口关闭脚本
SetControlClosePopDialog(ButtonClose);
}
}
}