修改
This commit is contained in:
		
							parent
							
								
									6b51f7315b
								
							
						
					
					
						commit
						ca898f934d
					
				@ -180,7 +180,15 @@ namespace APT.BaseData.Services.Services.FM
 | 
			
		||||
                document.VALID_TIME = VALID_TIME;
 | 
			
		||||
                if (document.Nav_Details != null)
 | 
			
		||||
                {
 | 
			
		||||
                    versionNum = document.Nav_Details.OrderByDescending(t => t.VERSION).FirstOrDefault().VERSION;
 | 
			
		||||
                    var version = document.Nav_Details.OrderByDescending(t => t.VERSION).FirstOrDefault();
 | 
			
		||||
                    if (version != null)
 | 
			
		||||
                    {
 | 
			
		||||
                        versionNum = version.VERSION;
 | 
			
		||||
                    }
 | 
			
		||||
                    else
 | 
			
		||||
                    {
 | 
			
		||||
                        versionNum = 0;
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
                foreach (var item in document.Nav_Details)
 | 
			
		||||
                {
 | 
			
		||||
 | 
			
		||||
@ -58,13 +58,13 @@ namespace APT.MS.Domain.Enums
 | 
			
		||||
    }
 | 
			
		||||
    public enum EvaluateLevelEnum
 | 
			
		||||
    {
 | 
			
		||||
        [Description("1级")]
 | 
			
		||||
        [Description("重大风险")]
 | 
			
		||||
        一级 = 10,
 | 
			
		||||
        [Description("2级")]
 | 
			
		||||
        [Description("较大风险")]
 | 
			
		||||
        二级 = 20,
 | 
			
		||||
        [Description("3级")]
 | 
			
		||||
        [Description("一般风险")]
 | 
			
		||||
        三级 = 30,
 | 
			
		||||
        [Description("4级")]
 | 
			
		||||
        [Description("低风险")]
 | 
			
		||||
        四级 = 40,
 | 
			
		||||
    }
 | 
			
		||||
    public enum HazardLevelEnum
 | 
			
		||||
 | 
			
		||||
@ -363,9 +363,10 @@ namespace APT.HM.WebApi.Controllers.Api
 | 
			
		||||
                {
 | 
			
		||||
                    item.RISK_PLACE = dtSource.Rows[i][6].ToString().Trim();
 | 
			
		||||
                }
 | 
			
		||||
                if (!string.IsNullOrEmpty(dtSource.Rows[i][7].ToString().Trim()))//L
 | 
			
		||||
                var scoreL = dtSource.Rows[i][7].ToString().Trim();
 | 
			
		||||
                if (!string.IsNullOrEmpty(scoreL))//L
 | 
			
		||||
                {
 | 
			
		||||
                    item.EVALUATE_L = decimal.Parse(dtSource.Rows[i][7].ToString().Trim());
 | 
			
		||||
                    item.EVALUATE_L = decimal.Parse(scoreL);
 | 
			
		||||
                }
 | 
			
		||||
                if (!string.IsNullOrEmpty(dtSource.Rows[i][8].ToString().Trim()))//E
 | 
			
		||||
                {
 | 
			
		||||
@ -381,19 +382,19 @@ namespace APT.HM.WebApi.Controllers.Api
 | 
			
		||||
                }
 | 
			
		||||
                if (!string.IsNullOrEmpty(dtSource.Rows[i][11].ToString().Trim()))//风险等级
 | 
			
		||||
                {
 | 
			
		||||
                    if (dtSource.Rows[i][11].ToString().Trim() == "一级")
 | 
			
		||||
                    if (dtSource.Rows[i][11].ToString().Trim() == "重大风险")
 | 
			
		||||
                    {
 | 
			
		||||
                        item.EVALUATE_LEVEL = EvaluateLevelEnum.一级;
 | 
			
		||||
                    }
 | 
			
		||||
                    else if (dtSource.Rows[i][11].ToString().Trim() == "二级")
 | 
			
		||||
                    else if (dtSource.Rows[i][11].ToString().Trim() == "较大风险")
 | 
			
		||||
                    {
 | 
			
		||||
                        item.EVALUATE_LEVEL = EvaluateLevelEnum.二级;
 | 
			
		||||
                    }
 | 
			
		||||
                    else if (dtSource.Rows[i][11].ToString().Trim() == "三级")
 | 
			
		||||
                    else if (dtSource.Rows[i][11].ToString().Trim() == "一般风险")
 | 
			
		||||
                    {
 | 
			
		||||
                        item.EVALUATE_LEVEL = EvaluateLevelEnum.三级;
 | 
			
		||||
                    }
 | 
			
		||||
                    else if (dtSource.Rows[i][11].ToString().Trim() == "四级")
 | 
			
		||||
                    else if (dtSource.Rows[i][11].ToString().Trim() == "低风险")
 | 
			
		||||
                    {
 | 
			
		||||
                        item.EVALUATE_LEVEL = EvaluateLevelEnum.四级;
 | 
			
		||||
                    }
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user