JobsOnline/Account/frmMain.aspx.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class Account_frmMain : System.Web.UI.Page
{
public string dispayStr = "";
public string dispaytimeStr = "";
protected void Page_Load(object sender, EventArgs e)
{
dispayStr = "black";
dispaytimeStr = "black";
string strper = Session["permiss"] == null ? "" : Session["permiss"].ToString();
if (strper == "个人")
{
dispayStr = "none";
}
else
{
dispaytimeStr = "none";
}
hfType.Value = strper;
}
//private bool CanSelect()
//{
// bool iscan = false;
// DateTime dtbeg, dtend;
// dtbeg = DateTime.Now;
// dtend = DateTime.Now;
// string sqlstr = "select * from sysconfig";
// DataTable dt = DBOperate.SelectFormTable(sqlstr);
// if (dt != null && dt.Rows.Count > 0)
// {
// foreach (DataRow dr in dt.Rows)
// {
// if (dr["syskey"].ToString() == "beginDate")
// dtbeg = Convert.ToDateTime(dr["sysvalue"]);
// else
// dtend = Convert.ToDateTime(dr["sysvalue"]);
// }
// }
// if (dtbeg <= DateTime.Now && DateTime.Now <= dtend) iscan = true;
// return iscan;
//}
protected void btnExit_Click(object sender, EventArgs e)
{
Session["permiss"] = null;
Session["userID"] = null;
ClientScript.RegisterClientScriptBlock(this.GetType(), "s", "<script>window.location.href='../Default.aspx';</script>");
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
