|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace Kingo.RuleCheck
|
|
|
|
|
{
|
|
|
|
|
public class DCParams
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 行政编码与耕地梯田田坎扣除系数表
|
|
|
|
|
/// </summary>
|
|
|
|
|
public static List<DcTable> XZBMDIC = new List<DcTable>();
|
|
|
|
|
|
|
|
|
|
public static void Init()
|
|
|
|
|
{
|
|
|
|
|
if (XZBMDIC != null && XZBMDIC.Count > 0)
|
|
|
|
|
{
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
//平原
|
|
|
|
|
XZBMDIC.Add(new DcTable { Code = "440103", GradeLevel = "1,2,3,4,5", DeductNumber = 0 });
|
|
|
|
|
XZBMDIC.Add(new DcTable { Code = "440104", GradeLevel = "1,2,3,4,5", DeductNumber = 0 });
|
|
|
|
|
XZBMDIC.Add(new DcTable { Code = "440105", GradeLevel = "1,2,3,4,5", DeductNumber = 0 });
|
|
|
|
|
XZBMDIC.Add(new DcTable { Code = "440106", GradeLevel = "1,2,3,4,5", DeductNumber = 0 });
|
|
|
|
|
XZBMDIC.Add(new DcTable { Code = "440113", GradeLevel = "1,2,3,4,5", DeductNumber = 0 });
|
|
|
|
|
XZBMDIC.Add(new DcTable { Code = "440115", GradeLevel = "1,2,3,4,5", DeductNumber = 0 });
|
|
|
|
|
XZBMDIC.Add(new DcTable { Code = "440402", GradeLevel = "1,2,3,4,5", DeductNumber = 0 });
|
|
|
|
|
XZBMDIC.Add(new DcTable { Code = "440403", GradeLevel = "1,2,3,4,5", DeductNumber = 0 });
|
|
|
|
|
XZBMDIC.Add(new DcTable { Code = "440404", GradeLevel = "1,2,3,4,5", DeductNumber = 0 });
|
|
|
|
|
XZBMDIC.Add(new DcTable { Code = "440507", GradeLevel = "1,2,3,4,5", DeductNumber = 0 });
|
|
|
|
|
XZBMDIC.Add(new DcTable { Code = "440511", GradeLevel = "1,2,3,4,5", DeductNumber = 0 });
|
|
|
|
|
XZBMDIC.Add(new DcTable { Code = "440512", GradeLevel = "1,2,3,4,5", DeductNumber = 0 });
|
|
|
|
|
XZBMDIC.Add(new DcTable { Code = "440515", GradeLevel = "1,2,3,4,5", DeductNumber = 0 });
|
|
|
|
|
XZBMDIC.Add(new DcTable { Code = "440604", GradeLevel = "1,2,3,4,5", DeductNumber = 0 });
|
|
|
|
|
XZBMDIC.Add(new DcTable { Code = "440605", GradeLevel = "1,2,3,4,5", DeductNumber = 0 });
|
|
|
|
|
XZBMDIC.Add(new DcTable { Code = "440606", GradeLevel = "1,2,3,4,5", DeductNumber = 0 });
|
|
|
|
|
XZBMDIC.Add(new DcTable { Code = "440607", GradeLevel = "1,2,3,4,5", DeductNumber = 0 });
|
|
|
|
|
XZBMDIC.Add(new DcTable { Code = "440608", GradeLevel = "1,2,3,4,5", DeductNumber = 0 });
|
|
|
|
|
XZBMDIC.Add(new DcTable { Code = "440703", GradeLevel = "1,2,3,4,5", DeductNumber = 0 });
|
|
|
|
|
XZBMDIC.Add(new DcTable { Code = "440704", GradeLevel = "1,2,3,4,5", DeductNumber = 0 });
|
|
|
|
|
XZBMDIC.Add(new DcTable { Code = "440802", GradeLevel = "1,2,3,4,5", DeductNumber = 0 });
|
|
|
|
|
XZBMDIC.Add(new DcTable { Code = "440803", GradeLevel = "1,2,3,4,5", DeductNumber = 0 });
|
|
|
|
|
XZBMDIC.Add(new DcTable { Code = "440804", GradeLevel = "1,2,3,4,5", DeductNumber = 0 });
|
|
|
|
|
XZBMDIC.Add(new DcTable { Code = "440811", GradeLevel = "1,2,3,4,5", DeductNumber = 0 });
|
|
|
|
|
XZBMDIC.Add(new DcTable { Code = "440883", GradeLevel = "1,2,3,4,5", DeductNumber = 0 });
|
|
|
|
|
XZBMDIC.Add(new DcTable { Code = "440902", GradeLevel = "1,2,3,4,5", DeductNumber = 0 });
|
|
|
|
|
XZBMDIC.Add(new DcTable { Code = "441702", GradeLevel = "1,2,3,4,5", DeductNumber = 0 });
|
|
|
|
|
XZBMDIC.Add(new DcTable { Code = "442000", GradeLevel = "1,2,3,4,5", DeductNumber = 0 });
|
|
|
|
|
|
|
|
|
|
//丘陵
|
|
|
|
|
List<string> hills = new List<string>()
|
|
|
|
|
{ "440111", "440112", "440114","440203", "440204", "440303",
|
|
|
|
|
"440304",
|
|
|
|
|
"440305",
|
|
|
|
|
"440306",
|
|
|
|
|
"440307",
|
|
|
|
|
"440308",
|
|
|
|
|
"440309",
|
|
|
|
|
"440310",
|
|
|
|
|
"440311",
|
|
|
|
|
"440513",
|
|
|
|
|
"440514",
|
|
|
|
|
"440523",
|
|
|
|
|
"440705",
|
|
|
|
|
"440781",
|
|
|
|
|
"440783",
|
|
|
|
|
"440784",
|
|
|
|
|
"440785",
|
|
|
|
|
"440823",
|
|
|
|
|
"440825",
|
|
|
|
|
"440881",
|
|
|
|
|
"440882",
|
|
|
|
|
"440904",
|
|
|
|
|
"440982",
|
|
|
|
|
"441202",
|
|
|
|
|
"441203",
|
|
|
|
|
"441284",
|
|
|
|
|
"441302",
|
|
|
|
|
"441303",
|
|
|
|
|
"441402",
|
|
|
|
|
"441502",
|
|
|
|
|
"441521",
|
|
|
|
|
"441581",
|
|
|
|
|
"441704",
|
|
|
|
|
"441721",
|
|
|
|
|
"441802",
|
|
|
|
|
"441900","445224"};
|
|
|
|
|
List<DcTable> dcTables = new List<DcTable>();
|
|
|
|
|
dcTables.Add(new DcTable { GradeLevel = "1", DeductNumber = 0 });
|
|
|
|
|
dcTables.Add(new DcTable { GradeLevel = "2", DeductNumber = 0.08067 });
|
|
|
|
|
dcTables.Add(new DcTable { GradeLevel = "3", DeductNumber = 0.10562 });
|
|
|
|
|
dcTables.Add(new DcTable { GradeLevel = "4", DeductNumber = 0.11616 });
|
|
|
|
|
dcTables.Add(new DcTable { GradeLevel = "5", DeductNumber = 0.11248 });
|
|
|
|
|
foreach (var item in hills)
|
|
|
|
|
{
|
|
|
|
|
foreach (var data in dcTables)
|
|
|
|
|
{
|
|
|
|
|
DcTable table = new DcTable();
|
|
|
|
|
table.Code = item;
|
|
|
|
|
table.GradeLevel = data.GradeLevel;
|
|
|
|
|
table.DeductNumber = data.DeductNumber;
|
|
|
|
|
XZBMDIC.Add(table);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//山区
|
|
|
|
|
List<string> mountains = new List<string>()
|
|
|
|
|
{ "440117", "440118", "440205","440222", "440224", "440229",
|
|
|
|
|
"440232",
|
|
|
|
|
"440233",
|
|
|
|
|
"440281",
|
|
|
|
|
"440282",
|
|
|
|
|
"440981",
|
|
|
|
|
"440983",
|
|
|
|
|
"441204",
|
|
|
|
|
"441223",
|
|
|
|
|
"441224",
|
|
|
|
|
"441225",
|
|
|
|
|
"441226",
|
|
|
|
|
"441322",
|
|
|
|
|
"441323",
|
|
|
|
|
"441324",
|
|
|
|
|
"441403",
|
|
|
|
|
"441422",
|
|
|
|
|
"441423",
|
|
|
|
|
"441424",
|
|
|
|
|
"441426",
|
|
|
|
|
"441427",
|
|
|
|
|
"441481",
|
|
|
|
|
"441523",
|
|
|
|
|
"441602",
|
|
|
|
|
"441621",
|
|
|
|
|
"441622",
|
|
|
|
|
"441623",
|
|
|
|
|
"441624",
|
|
|
|
|
"441625",
|
|
|
|
|
"441781",
|
|
|
|
|
"441803",
|
|
|
|
|
"441821",
|
|
|
|
|
"441823",
|
|
|
|
|
"441825",
|
|
|
|
|
"441826",
|
|
|
|
|
"441881",
|
|
|
|
|
"441882",
|
|
|
|
|
"445102",
|
|
|
|
|
"445103",
|
|
|
|
|
"445122",
|
|
|
|
|
"445202",
|
|
|
|
|
"445203",
|
|
|
|
|
"445222",
|
|
|
|
|
"445281",
|
|
|
|
|
"445302",
|
|
|
|
|
"445303",
|
|
|
|
|
"445321",
|
|
|
|
|
"445322",
|
|
|
|
|
"445381",
|
|
|
|
|
"449991",
|
|
|
|
|
"449992"};
|
|
|
|
|
List<DcTable> dcmountainsTables = new List<DcTable>();
|
|
|
|
|
dcmountainsTables.Add(new DcTable { GradeLevel = "1", DeductNumber = 0 });
|
|
|
|
|
dcmountainsTables.Add(new DcTable { GradeLevel = "2", DeductNumber = 0.06897 });
|
|
|
|
|
dcmountainsTables.Add(new DcTable { GradeLevel = "3", DeductNumber = 0.09371 });
|
|
|
|
|
dcmountainsTables.Add(new DcTable { GradeLevel = "4", DeductNumber = 0.13306 });
|
|
|
|
|
dcmountainsTables.Add(new DcTable { GradeLevel = "5", DeductNumber = 0.13863 });
|
|
|
|
|
foreach (var item in mountains)
|
|
|
|
|
{
|
|
|
|
|
foreach (var data in dcmountainsTables)
|
|
|
|
|
{
|
|
|
|
|
DcTable table = new DcTable();
|
|
|
|
|
table.Code = item;
|
|
|
|
|
table.GradeLevel = data.GradeLevel;
|
|
|
|
|
table.DeductNumber = data.DeductNumber;
|
|
|
|
|
XZBMDIC.Add(table);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class DcTable
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 行政代码
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Code { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
///坡度等级代码
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string GradeLevel { get; set; }
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 扣除系数
|
|
|
|
|
/// </summary>
|
|
|
|
|
public double? DeductNumber { get; set; } = 0;
|
|
|
|
|
}
|
|
|
|
|
}
|