static SaleDO() { _validator = new RowValidator(); _validator.Add(new NotNullRule("SaleNumber", "Sale", "SaleNumber is Required")); _validator.Add(new FieldValidator("Region", "Sale", "Invalid Region", double.MinValue, double.MinValue, true, "01 02 03 04 05 06 07 08 09 10 11 12")); _validator.Add(new NotNullRule("Forest", "Sale", "Forest is Required")); _validator.Add(new NotNullRule("District", "Sale", "District is Required")); _validator.Add(new FieldValidator("CalendarYear", "Sale", "Year Out of Range", 1000, 9999, false, null)); }
static UOMCodesDO() { _validator = new RowValidator(); }
static PRODO() { _validator = new RowValidator(); _validator.Add(new NotNullRule("CutLeave", "PRO", "CutLeave is Required")); _validator.Add(new NotNullRule("Stratum", "PRO", "Stratum is Required")); _validator.Add(new NotNullRule("CuttingUnit", "PRO", "CuttingUnit is Required")); _validator.Add(new NotNullRule("SampleGroup", "PRO", "SampleGroup is Required")); _validator.Add(new NotNullRule("PrimaryProduct", "PRO", "PrimaryProduct is Required")); _validator.Add(new NotNullRule("SecondaryProduct", "PRO", "SecondaryProduct is Required")); _validator.Add(new NotNullRule("UOM", "PRO", "UOM is Required")); }
static LCDDO() { _validator = new RowValidator(); _validator.Add(new NotNullRule("CutLeave", "LCD", "CutLeave is Required")); _validator.Add(new NotNullRule("Stratum", "LCD", "Stratum is Required")); _validator.Add(new NotNullRule("SampleGroup", "LCD", "SampleGroup is Required")); _validator.Add(new NotNullRule("Species", "LCD", "Species is Required")); _validator.Add(new NotNullRule("PrimaryProduct", "LCD", "PrimaryProduct is Required")); _validator.Add(new NotNullRule("SecondaryProduct", "LCD", "SecondaryProduct is Required")); _validator.Add(new NotNullRule("UOM", "LCD", "UOM is Required")); _validator.Add(new NotNullRule("LiveDead", "LCD", "LiveDead is Required")); _validator.Add(new NotNullRule("Yield", "LCD", "Yield is Required")); _validator.Add(new NotNullRule("ContractSpecies", "LCD", "ContractSpecies is Required")); _validator.Add(new NotNullRule("TreeGrade", "LCD", "TreeGrade is Required")); }
static ReportsDO() { _validator = new RowValidator(); _validator.Add(new NotNullRule("ReportID", "Reports", "ReportID is Required")); }
static ValueEquationDO() { _validator = new RowValidator(); _validator.Add(new NotNullRule("Species", "ValueEquation", "Species is Required")); _validator.Add(new NotNullRule("PrimaryProduct", "ValueEquation", "PrimaryProduct is Required")); }
static StratumDO() { _validator = new RowValidator(); _validator.Add(new NotNullRule("Code", "Stratum", "Code is Required")); _validator.Add(new NotNullRule("Method", "Stratum", "Method is Required")); _validator.Add(new FieldValidator("BasalAreaFactor", "Stratum", "BAF Out of Range", 0, 99.9899978637695, false, null)); _validator.Add(new FieldValidator("FixedPlotSize", "Stratum", "Fixed Plot Size Out of Range", 0, 9999, false, null)); _validator.Add(new FieldValidator("Month", "Stratum", "Month Out of Range", 1, 12, false, null)); _validator.Add(new FieldValidator("Year", "Stratum", "Year Out of Range", 1900, 2199, false, null)); }
static FixCNTTallyClassDO() { _validator = new RowValidator(); _validator.Add(new NotNullRule("Stratum_CN", "FixCNTTallyClass", "Stratum_CN is Required")); }
static TreeDefaultValueDO() { _validator = new RowValidator(); _validator.Add(new NotNullRule("PrimaryProduct", "TreeDefaultValue", "PrimaryProduct is Required")); _validator.Add(new NotNullRule("Species", "TreeDefaultValue", "Species is Required")); _validator.Add(new FieldValidator("LiveDead", "TreeDefaultValue", "Invalid Live Dead Value", double.MinValue, double.MinValue, true, "L D")); _validator.Add(new FieldValidator("FIAcode", "TreeDefaultValue", "Three digit FIA code", double.MinValue, double.MinValue, false, null)); _validator.Add(new FieldValidator("CullPrimary", "TreeDefaultValue", "Cull Primary Out of Range", 0, 100, false, null)); _validator.Add(new FieldValidator("HiddenPrimary", "TreeDefaultValue", "Hidden Primary Out of Range", 0, 100, false, null)); _validator.Add(new FieldValidator("CullSecondary", "TreeDefaultValue", "Cull Secondary Out of Range", 0, 100, false, null)); _validator.Add(new FieldValidator("HiddenSecondary", "TreeDefaultValue", "Hidden Secondary Out of Range", 0, 100, false, null)); _validator.Add(new FieldValidator("Recoverable", "TreeDefaultValue", "Recoverable Out of Range", 0, 100, false, null)); _validator.Add(new FieldValidator("TreeGrade", "TreeDefaultValue", "Invalid Tree Grade", double.MinValue, double.MinValue, false, "0 1 2 3 4 5 6 7 8 9")); _validator.Add(new FieldValidator("MerchHeightLogLength", "TreeDefaultValue", "Merch Height Log Length Out of Range", 0, 50, false, null)); _validator.Add(new FieldValidator("FormClass", "TreeDefaultValue", "Form Class Out of Range", 0, 99, false, null)); _validator.Add(new FieldValidator("BarkThicknessRatio", "TreeDefaultValue", "Bark Thickness Ratio Out of Range", 0, 100, false, null)); _validator.Add(new FieldValidator("AverageZ", "TreeDefaultValue", "Average Z Out of Range", -10, 10, false, null)); }
static ComponentDO() { _validator = new RowValidator(); }
static GlobalsDO() { _validator = new RowValidator(); }
static MessageLogDO() { _validator = new RowValidator(); }
static ErrorLogDO() { _validator = new RowValidator(); _validator.Add(new NotNullRule("TableName", "ErrorLog", "TableName is Required")); _validator.Add(new NotNullRule("CN_Number", "ErrorLog", "CN_Number is Required")); _validator.Add(new NotNullRule("ColumnName", "ErrorLog", "ColumnName is Required")); _validator.Add(new NotNullRule("Level", "ErrorLog", "Level is Required")); }
static ForestsDO() { _validator = new RowValidator(); }
static RegionsDO() { _validator = new RowValidator(); }
static TallyDO() { _validator = new RowValidator(); _validator.Add(new NotNullRule("Hotkey", "Tally", "Hotkey is Required")); _validator.Add(new NotNullRule("Description", "Tally", "Description is Required")); }
static TreeEstimateDO() { _validator = new RowValidator(); _validator.Add(new NotNullRule("KPI", "TreeEstimate", "KPI is Required")); }
static SampleGroupTreeDefaultValueDO() { _validator = new RowValidator(); }
static FixCNTTallyPopulationDO() { _validator = new RowValidator(); _validator.Add(new NotNullRule("FixCNTTallyClass_CN", "FixCNTTallyPopulation", "FixCNTTallyClass_CN is Required")); _validator.Add(new NotNullRule("SampleGroup_CN", "FixCNTTallyPopulation", "SampleGroup_CN is Required")); _validator.Add(new NotNullRule("TreeDefaultValue_CN", "FixCNTTallyPopulation", "TreeDefaultValue_CN is Required")); }
static PlotDO() { _validator = new RowValidator(); _validator.Add(new NotNullRule("Stratum_CN", "Plot", "Stratum_CN is Required")); _validator.Add(new NotNullRule("CuttingUnit_CN", "Plot", "CuttingUnit_CN is Required")); _validator.Add(new NotNullRule("PlotNumber", "Plot", "PlotNumber is Required")); }
static BiomassEquationDO() { _validator = new RowValidator(); _validator.Add(new NotNullRule("Species", "BiomassEquation", "Species is Required")); _validator.Add(new NotNullRule("Product", "BiomassEquation", "Product is Required")); _validator.Add(new NotNullRule("Component", "BiomassEquation", "Component is Required")); _validator.Add(new NotNullRule("LiveDead", "BiomassEquation", "LiveDead is Required")); _validator.Add(new NotNullRule("FIAcode", "BiomassEquation", "FIAcode is Required")); }
static TreeDO() { _validator = new RowValidator(); _validator.Add(new NotNullRule("Stratum_CN", "Tree", "Stratum_CN is Required")); _validator.Add(new NotNullRule("CuttingUnit_CN", "Tree", "CuttingUnit_CN is Required")); _validator.Add(new NotNullRule("TreeNumber", "Tree", "TreeNumber is Required")); _validator.Add(new FieldValidator("DBH", "Tree", "DBH Out of range", 0, double.MinValue, false, null)); }
static QualityAdjEquationDO() { _validator = new RowValidator(); _validator.Add(new NotNullRule("Species", "QualityAdjEquation", "Species is Required")); }
static CuttingUnitDO() { _validator = new RowValidator(); _validator.Add(new NotNullRule("Code", "CuttingUnit", "Code is Required")); _validator.Add(new FieldValidator("Area", "CuttingUnit", "Area Out of Range", 0, 9999999, true, null)); }
static TreeCalculatedValuesDO() { _validator = new RowValidator(); _validator.Add(new NotNullRule("Tree_CN", "TreeCalculatedValues", "Tree_CN is Required")); }
static StemDO() { _validator = new RowValidator(); }
static CuttingUnitStratumDO() { _validator = new RowValidator(); _validator.Add(new NotNullRule("CuttingUnit_CN", "CuttingUnitStratum", "CuttingUnit_CN is Required")); _validator.Add(new NotNullRule("Stratum_CN", "CuttingUnitStratum", "Stratum_CN is Required")); }
static CountTreeDO() { _validator = new RowValidator(); _validator.Add(new NotNullRule("SampleGroup_CN", "CountTree", "SampleGroup_CN is Required")); _validator.Add(new NotNullRule("CuttingUnit_CN", "CountTree", "CuttingUnit_CN is Required")); }
static LogStockDO() { _validator = new RowValidator(); _validator.Add(new NotNullRule("Tree_CN", "LogStock", "Tree_CN is Required")); _validator.Add(new NotNullRule("LogNumber", "LogStock", "LogNumber is Required")); }
static ProductCodesDO() { _validator = new RowValidator(); }