86 lines
2.6 KiB
C#
86 lines
2.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Web;
|
|
using System.Web.UI;
|
|
using System.Web.UI.WebControls;
|
|
using BLL;
|
|
|
|
namespace FineUIPro.Web.WeldMat.UsingSentMat
|
|
{
|
|
public partial class WelderConfirm : PageBase
|
|
{
|
|
|
|
public string welderCode
|
|
{
|
|
get
|
|
{
|
|
return (string)ViewState["welderCode"];
|
|
}
|
|
set
|
|
{
|
|
ViewState["welderCode"] = value;
|
|
}
|
|
}
|
|
#region 加载
|
|
/// <summary>
|
|
/// 加载页面
|
|
/// </summary>
|
|
/// <param name="sender"></param>
|
|
/// <param name="e"></param>
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
if (!IsPostBack)
|
|
{
|
|
welderCode = Request.Params["welderCode"];
|
|
|
|
|
|
var person = BLL.HJGL_PersonManageService.GetWelderByWedCode(welderCode);
|
|
if (person != null)
|
|
{
|
|
|
|
//this.drpEducation.Items.Clear();
|
|
//this.drpEducation.DataTextField = "TeamGroupName";
|
|
//this.drpEducation.DataValueField = "TeamGroupId";
|
|
//this.drpEducation.DataSource = BLL.Base_TeamGroupService.GetTeamGroupByUnit(drpUnit.SelectedValue);
|
|
//this.drpEducation.DataBind();
|
|
//Funs.FineUIPleaseSelect(this.drpEducation);
|
|
|
|
//if (!String.IsNullOrEmpty(person.EDU_ID))
|
|
//{
|
|
// var q = BLL.Base_TeamGroupService.GetTeamGroupByTeamGroupId(person.EDU_ID);
|
|
// if (q != null)
|
|
// {
|
|
// this.drpEducation.SelectedValue = person.EDU_ID;
|
|
// }
|
|
//}
|
|
|
|
this.txtName.Text = person.WED_Name;
|
|
this.txtCode.Text = person.WED_Code;
|
|
this.txtWorkCode.Text = person.WED_WorkCode;
|
|
this.txtClass.Text = person.WED_Class;
|
|
|
|
|
|
this.txtLimitDate.Text = string.Format("{0:yyyy-MM-dd}", person.LimitDate);
|
|
this.txtIdentityCard.Text = person.IdentityCard;
|
|
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
|
|
protected void btnClose_Click(object sender, EventArgs e)
|
|
{
|
|
PageContext.RegisterStartupScript(ActiveWindow.GetHidePostBackReference());
|
|
}
|
|
|
|
|
|
}
|
|
} |