-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDataexploitation.cs
120 lines (99 loc) · 3.02 KB
/
Dataexploitation.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace xEntry
{
public class Dataexploitation
{
private int _id_dataexp;
public int Id_dataexp
{
get { return _id_dataexp; }
set { _id_dataexp = value; }
}
private string _id_asso;
public string Id_asso
{
get { return _id_asso; }
set {
if(value.ToString().Equals("")) throw new Exception("L\'id association ne peut etre null");
_id_asso = value; }
}
private string _id_season;
public string Id_season
{
get { return _id_season; }
set {
if(value.ToString().Equals("")) throw new Exception("L\'id de la saison ne peut etre null");
_id_season = value; }
}
private double _age_plant;
public double Age_plant
{
get { return _age_plant; }
set { _age_plant = value; }
}
private string _id_agent;
public string Id_agent
{
get { return _id_agent; }
set {
if (value.ToString().Equals("")) throw new Exception("L\'id agent ne peut etre null");
_id_agent = value; }
}
private DateTime? _datefield;
public DateTime? Datefield
{
get { return _datefield; }
set
{
DateTime d = new DateTime(2007, 1, 1);
if (value.HasValue)
{
if (DateTime.Compare(value.Value, d) < 0)
throw new Exception("La date ne peut etre inferieur a 2007 !");
if (DateTime.Compare(value.Value, DateTime.Today) < 0)
throw new Exception("La date de prise ne peut etre superieur a la date /n d'aujourd'hui !");
}
_datefield = value;
}
}
private double _superficie;
public double Superficie
{
get { return _superficie; }
set { _superficie = value; }
}
private int _lignenumero;
public int Lignenumero
{
get { return _lignenumero; }
set { _lignenumero = value; }
}
private double _longueurligne;
public double Longueurligne
{
get { return _longueurligne; }
set { _longueurligne = value; }
}
private string _pentefield;
public string Pentefield
{
get { return _pentefield; }
set { _pentefield = value; }
}
private string _relieffield;
public string Relieffield
{
get { return _relieffield; }
set { _relieffield = value; }
}
private string _solfield;
public string Solfield
{
get { return _solfield; }
set { _solfield = value; }
}
}
}