Manage/Accounts_User.aspx.cs

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System; 
using System.Collections;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Web;
using System.Web.SessionState;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using OI.DatabaseOper ;

namespace OI.Manage
{
	/// <summary>
	/// Accounts_User 的摘要说明。
	/// </summary>
	public partial class Accounts_User : OI.PageBase
	{
		private DatabaseConnect dc =new DatabaseConnect ();
	    public string displaySign;
		protected void Page_Load(object sender, System.EventArgs e)
		{
			// 在此处放置用户代码以初始化页面
			if (Session["userid"]==null)
			{
				Response.Write ("<script>alert('超时,请重新登录');top.location.href='../userpass.aspx';</script>");
				return ;
			}
			int intUserID=Convert.ToInt32 (Request.Params ["ID"]);
			dc=new DatabaseConnect ();
			string sql="select username,Sex,School,Speciality,IsMarried,Nationality,NativePlace,PoliticalFeature,IDCard,Birthday,Telephone,Mobile,Email,Address,State,Content,DepartmentName,[Description],ProfessionalLevelName ,Unitid,ZipCode from VIEWAccounts_Users where UserID="+intUserID+"";
			DataSet ds=new DataSet();
			ds=dc.getBinding(sql,"Accounts_User");
         


			
			LabelUserName.Text =ds.Tables[0].Rows[0]["UserName"].ToString();
			if(Convert.ToBoolean (ds.Tables[0].Rows[0]["Sex"]))
				LabelSex.Text="男";
			else
				LabelSex.Text ="女";				
			LabelNationality.Text =ds.Tables[0].Rows[0]["Nationality"].ToString();
			LabelNativePlace.Text =ds.Tables[0].Rows[0]["NativePlace"].ToString();
			if (ds.Tables[0].Rows[0]["IsMarried"].ToString()=="0")
				LabelIsMarried.Text="未婚";
			else
				LabelIsMarried.Text ="已婚";	
			LabelPoliticalFeature.Text =ds.Tables[0].Rows[0]["PoliticalFeature"].ToString();
			LabelSchool.Text =ds.Tables[0].Rows[0]["School"].ToString();
			LabelSpeciality.Text =ds.Tables[0].Rows[0]["Speciality"].ToString();
			LabelIDCard.Text =ds.Tables[0].Rows[0]["IDCard"].ToString();
			LabelDepartmentID.Text =ds.Tables[0].Rows[0]["DepartmentName"].ToString();
			LabelProfessionalLevelID.Text=ds.Tables[0].Rows[0]["ProfessionalLevelName"].ToString();
			LabelJobLevelID.Text =ds.Tables[0].Rows[0]["Description"].ToString();
			if (Convert.ToBoolean(ds.Tables[0].Rows[0]["state"]))
				LabelState.Text="<font color=red>离职</font>";
			else
				LabelState.Text ="在职";	
后面还有 60 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。