Manage/Accounts_UserAdd.aspx.cs
(开头部分) 11KB这里只显示每个文件的开头 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;
//该源码首发自www.51aspx.com(51aspx.com)
namespace OI.Manage
{
/// <summary>
/// Accounts_User 的摘要说明。
/// </summary>
public partial class Accounts_UserAdd : OI.PageBase
{
private int[] daysCommon={31,28,31,30,31,30,31,31,30,31,30,31};
private int[] daysLeap={31,29,31,30,31,30,31,31,30,31,30,31};
private DatabaseOper.DatabaseConnect dc = new DatabaseOper.DatabaseConnect();
protected void Page_Load(object sender, System.EventArgs e)
{
// 在此处放置用户代码以初始化页面
if (Session["userid"]==null)
{
Response.Write ("<script>alert('超时,请重新登录');top.location.href='../userpass.aspx';</script>");
return ;
}
ImageButtonSave.Attributes ["onclick"]="return check();";
if (!IsPostBack)
{
this.Bind();
this.initDate ();
}
}
/// <summary>
/// 绑定部门、职务、职称下拉列表框,单位
/// </summary>
private void Bind()
{
//databaseConnect dc = new databaseConnect();
string strCom1="select * from ProfessionalLevel";
DataSet ds1=dc.getBinding(strCom1,"ProfessionalLevel");
this.DropDownListProfessionalLevelID.DataSource =ds1.Tables ["ProfessionalLevel"];
DropDownListProfessionalLevelID.DataTextField=ds1.Tables[0].Columns["ProfessionalLevelName"].ToString ();;
DropDownListProfessionalLevelID.DataValueField= ds1.Tables[0].Columns["ProfessionalLevelID"].ToString ();;
this.DropDownListProfessionalLevelID.DataBind ();
string strCom2= "SELECT * FROM JobLevels";
DataSet ds2=dc.getBinding(strCom2,"JobLevels");
this.DropDownListJobLevelID.DataSource =ds2.Tables ["JobLevels"];
DropDownListJobLevelID.DataTextField=ds2.Tables[0].Columns["Description"].ToString ();;
DropDownListJobLevelID.DataValueField= ds2.Tables[0].Columns["JobLevelID"].ToString ();;
this.DropDownListJobLevelID.DataBind ();
string strCom3= "SELECT * FROM departments";
后面还有 290 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。