Song.Site/Manage/Student/Student_Password.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using WeiSha.Common;
using Song.ServiceInterfaces;
using Song.Entities;
namespace Song.Site.Manage.Student
{
public partial class Student_Password : Extend.CustomPage
{
private int id = WeiSha.Common.Request.QueryString["id"].Int32 ?? 0;
protected void Page_Load(object sender, EventArgs e)
{
if (!this.IsPostBack)
{
fill();
}
//密码输入框的显示与否
//this.trPw1.Visible = this.trPw2.Visible = id == 0;
}
private void fill()
{
Song.Entities.Student ea;
if (id == 0) return;
ea = Business.Do<IStudent>().StudentSingle(id);
//员工帐号
this.tbStAcc.Text = ea.St_AccName;
//员工名称
this.lbName.Text = ea.St_Name;
}
/// <summary>
/// 验证账号是否已经存在
/// </summary>
/// <param name="source"></param>
/// <param name="args"></param>
protected void cusv_ServerValidate(object source, ServerValidateEventArgs args)
{
Song.Entities.Organization org = Business.Do<IOrganization>().OrganCurrent();
Song.Entities.Student th = Business.Do<IStudent>().StudentSingle(this.tbStAcc.Text.Trim(), org.Org_ID);
if (th == null) th = new Entities.Student();
th.Org_ID = org.Org_ID;
th.St_AccName = this.tbStAcc.Text.Trim();
//判断是否通过验证
bool isAccess = Business.Do<IStudent>().IsStudentExist(org.Org_ID, th);
args.IsValid = !isAccess;
}
/// <summary>
/// 修改账号信息
后面还有 54 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
