42 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			C#
		
	
	
	
		
		
			
		
	
	
			42 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			C#
		
	
	
	
| 
								 | 
							
								using System;
							 | 
						|||
| 
								 | 
							
								using System.Linq;
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								namespace FineUIPro.Web.HJGL.BaseInfo
							 | 
						|||
| 
								 | 
							
								{
							 | 
						|||
| 
								 | 
							
								    public partial class TestingView : PageBase
							 | 
						|||
| 
								 | 
							
								    {
							 | 
						|||
| 
								 | 
							
								        #region 加载
							 | 
						|||
| 
								 | 
							
								        /// <summary>
							 | 
						|||
| 
								 | 
							
								        /// 加载页面
							 | 
						|||
| 
								 | 
							
								        /// </summary>
							 | 
						|||
| 
								 | 
							
								        /// <param name="sender"></param>
							 | 
						|||
| 
								 | 
							
								        /// <param name="e"></param>
							 | 
						|||
| 
								 | 
							
								        protected void Page_Load(object sender, EventArgs e)
							 | 
						|||
| 
								 | 
							
								        {
							 | 
						|||
| 
								 | 
							
								            if (!IsPostBack)
							 | 
						|||
| 
								 | 
							
								            {
							 | 
						|||
| 
								 | 
							
								                this.btnClose.OnClientClick = ActiveWindow.GetHideReference();
							 | 
						|||
| 
								 | 
							
								                string DetectionTypeId = Request.Params["DetectionTypeId"];
							 | 
						|||
| 
								 | 
							
								                if (!string.IsNullOrEmpty(DetectionTypeId))
							 | 
						|||
| 
								 | 
							
								                {
							 | 
						|||
| 
								 | 
							
								                    Model.Base_DetectionType getDetectionType = BLL.Base_DetectionTypeService.GetDetectionTypeByDetectionTypeId(DetectionTypeId);
							 | 
						|||
| 
								 | 
							
								                    if (getDetectionType != null)
							 | 
						|||
| 
								 | 
							
								                    {
							 | 
						|||
| 
								 | 
							
								                        this.txtDetectionTypeCode.Text = getDetectionType.DetectionTypeCode;
							 | 
						|||
| 
								 | 
							
								                        this.txtDetectionTypeName.Text = getDetectionType.DetectionTypeName;
							 | 
						|||
| 
								 | 
							
								                        this.txtSecuritySpace.Text = getDetectionType.SecuritySpace.HasValue ? getDetectionType.SecuritySpace.ToString() : "";
							 | 
						|||
| 
								 | 
							
								                        this.txtRemark.Text = getDetectionType.Remark;
							 | 
						|||
| 
								 | 
							
								                        this.txtInjuryDegree.Text = getDetectionType.InjuryDegree;
							 | 
						|||
| 
								 | 
							
								                        this.txtDescriptions.Text = getDetectionType.Descriptions;
							 | 
						|||
| 
								 | 
							
								                        var getSysType = BLL.DropListService.HJGL_GetTestintTypeList().FirstOrDefault(x => x.Value == getDetectionType.SysType);
							 | 
						|||
| 
								 | 
							
								                        if (getSysType != null)
							 | 
						|||
| 
								 | 
							
								                        {
							 | 
						|||
| 
								 | 
							
								                            this.txtSysType.Text = getSysType.Text;
							 | 
						|||
| 
								 | 
							
								                        }
							 | 
						|||
| 
								 | 
							
								                    }
							 | 
						|||
| 
								 | 
							
								                }
							 | 
						|||
| 
								 | 
							
								            }
							 | 
						|||
| 
								 | 
							
								        }
							 | 
						|||
| 
								 | 
							
								        #endregion
							 | 
						|||
| 
								 | 
							
								    }
							 | 
						|||
| 
								 | 
							
								}
							 |