|
|
|
@ -41,7 +41,7 @@ public partial class TabControlDemo : Window |
|
|
|
|
return grades; |
|
|
|
|
} |
|
|
|
|
public class GradeInfo |
|
|
|
|
{ |
|
|
|
|
{ |
|
|
|
|
public string SHAPE_ID { get; set; } |
|
|
|
|
|
|
|
|
|
public string RULE_ID { get; set; } |
|
|
|
@ -51,18 +51,83 @@ public partial class TabControlDemo : Window |
|
|
|
|
public string GRADE_EN_S_NAME { get; set; } |
|
|
|
|
|
|
|
|
|
public int GRADE_ORDER { get; set; } |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public class StandardInfo |
|
|
|
|
{ |
|
|
|
|
{ |
|
|
|
|
public string GRADE_ID { get; set; } |
|
|
|
|
public string TEST_ITEM_ID { get; set; } |
|
|
|
|
public string STANDARD_ID { get; set; } |
|
|
|
|
public string STANDARD_NAME { get; set; } |
|
|
|
|
public string STANDARD_MIN { get; set; } |
|
|
|
|
public string STANDARD_MAX { get; set; } |
|
|
|
|
public string IS_MIN_EXIST { get; set; } = "0"; |
|
|
|
|
public string IS_MAX_EXIST { get; set; } = "0"; |
|
|
|
|
private string _standardMin; |
|
|
|
|
public string STANDARD_MIN |
|
|
|
|
{ |
|
|
|
|
get { return _standardMin; } |
|
|
|
|
set |
|
|
|
|
{ |
|
|
|
|
if (!string.IsNullOrEmpty(value) && !double.TryParse(value, out double result)) |
|
|
|
|
{ |
|
|
|
|
_standardMin = ""; // 或者可以设置为 null 或其他默认值 |
|
|
|
|
MessageBox.Show("最小值不是数字"); |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
_standardMin = value; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
private string _standardMax; |
|
|
|
|
public string STANDARD_MAX |
|
|
|
|
{ |
|
|
|
|
get { return _standardMax; } |
|
|
|
|
set |
|
|
|
|
{ |
|
|
|
|
if (!string.IsNullOrEmpty(value) && !double.TryParse(value, out double result)) |
|
|
|
|
{ |
|
|
|
|
_standardMax = ""; MessageBox.Show("最大值不是数字"); |
|
|
|
|
} |
|
|
|
|
else { |
|
|
|
|
_standardMax = value; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private string _isMinExist = "0"; |
|
|
|
|
private string _isMaxExist = "0"; |
|
|
|
|
|
|
|
|
|
public string IS_MIN_EXIST |
|
|
|
|
{ |
|
|
|
|
get { return _isMinExist; } |
|
|
|
|
set |
|
|
|
|
{ |
|
|
|
|
if (value != "0" && value != "1") |
|
|
|
|
{ |
|
|
|
|
_isMinExist = "0"; // 设置为默认值 |
|
|
|
|
MessageBox.Show("最小值包含 的值必须是 0 或 1"); |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
_isMinExist = value; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public string IS_MAX_EXIST |
|
|
|
|
{ |
|
|
|
|
get { return _isMaxExist; } |
|
|
|
|
set |
|
|
|
|
{ |
|
|
|
|
if (value != "0" && value != "1") |
|
|
|
|
{ |
|
|
|
|
_isMaxExist = "0"; // 设置为默认值 |
|
|
|
|
MessageBox.Show("最大值包含 的值必须是 0 或 1"); |
|
|
|
|
} |
|
|
|
|
else |
|
|
|
|
{ |
|
|
|
|
_isMaxExist = value; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
public string UNIT { get; set; } |
|
|
|
|
public string MIN_PREFIX { get; set; } |
|
|
|
|
public string MIN_SUFFIX { get; set; } |
|
|
|
@ -71,7 +136,7 @@ public partial class TabControlDemo : Window |
|
|
|
|
public string MIN_NULL_REPALCE { get; set; } = "←"; |
|
|
|
|
public string MAX_NULL_REPALCE { get; set; } = "→"; |
|
|
|
|
public int SORT { get; set; } |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void AddGrade_Click(object sender, RoutedEventArgs e) |
|
|
|
|
{ |
|
|
|
|