Song.Site/Manage/Personal/View.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 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.Personal
{
public partial class View : Extend.CustomPage
{
EmpAccount currentUser;
protected void Page_Load(object sender, EventArgs e)
{
currentUser = Extend.LoginState.Admin.CurrentUser;
if (!this.IsPostBack)
{
fill();
}
}
private void fill()
{
try
{
EmpAccount ea = this.currentUser;
//员工帐号
this.lbAcc.Text = ea.Acc_AccName;
//员工名称
this.lbName.Text = ea.Acc_Name;
this.lbEmpCode.Text = ea.Acc_EmpCode;
this.lbEmail.Text = ea.Acc_Email;
this.lbRegTime.Text = ((DateTime)ea.Acc_RegTime).ToString("yyyy年M月d日");
//部门
Song.Entities.Depart depart = Business.Do<IDepart>().GetSingle((int)ea.Dep_Id);
if (depart != null)
{
lbDepart.Text = depart.Dep_CnName;
}
//角色
Song.Entities.Position posi = Business.Do<IPosition>().GetSingle((int)ea.Posi_Id);
if (posi != null)
{
lbPosi.Text = posi.Posi_Name;
}
//用户组
Song.Entities.EmpGroup[] egs = Business.Do<IEmpGroup>().GetAll4Emp(ea.Acc_Id);
if (egs != null)
{
for (int i = 0; i < egs.Length; i++)
{
if (i == egs.Length - 1)
后面还有 18 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
