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) }" + $"{ SERVERPART_CODE.Substring(2, 4) })后4位+" + $"月({curDate:MM})分({curDate:mm})" + $"时({curDate:HH})日({curDate:dd})"; //注册遮罩式窗口关闭脚本 SetControlClosePopDialog(ButtonClose); } } }