Advertisement
LaughingMan

Untitled

Dec 29th, 2017
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 189.64 KB | None | 0 0
  1.         public class Accessory
  2.         {
  3.                 public Accessory()
  4.                 { }
  5.  
  6.                 public Accessory(int id, double? areaid, string series, string model, string js, string jscustomer, string bplx, string xk, string xkcustomer, string yk, string ykcustomer, string bpxh, string bpxhcustomer, double? isfan, string description)
  7.                 {
  8.                         ID = id;
  9.                         AreaId = areaid;
  10.                         Series = series;
  11.                         Model = model;
  12.                         JS = js;
  13.                         JSCustomer = jscustomer;
  14.                         BPLX = bplx;
  15.                         XK = xk;
  16.                         XKCustomer = xkcustomer;
  17.                         YK = yk;
  18.                         YKCustomer = ykcustomer;
  19.                         BPXH = bpxh;
  20.                         BPXHCustomer = bpxhcustomer;
  21.                         IsFan = isfan;
  22.                         Description = description;
  23.                 }
  24.  
  25.                 public Accessory(DataRow source)
  26.                 {
  27.                         ID = (int)source["ID"];
  28.                         AreaId = source["AreaId"] is DBNull ? null : (double?)source["AreaId"];
  29.                         Series = source["Series"] is DBNull ? null : (string)source["Series"];
  30.                         Model = source["Model"] is DBNull ? null : (string)source["Model"];
  31.                         JS = source["JS"] is DBNull ? null : (string)source["JS"];
  32.                         JSCustomer = source["JSCustomer"] is DBNull ? null : (string)source["JSCustomer"];
  33.                         BPLX = source["BPLX"] is DBNull ? null : (string)source["BPLX"];
  34.                         XK = source["XK"] is DBNull ? null : (string)source["XK"];
  35.                         XKCustomer = source["XKCustomer"] is DBNull ? null : (string)source["XKCustomer"];
  36.                         YK = source["YK"] is DBNull ? null : (string)source["YK"];
  37.                         YKCustomer = source["YKCustomer"] is DBNull ? null : (string)source["YKCustomer"];
  38.                         BPXH = source["BPXH"] is DBNull ? null : (string)source["BPXH"];
  39.                         BPXHCustomer = source["BPXHCustomer"] is DBNull ? null : (string)source["BPXHCustomer"];
  40.                         IsFan = source["IsFan"] is DBNull ? null : (double?)source["IsFan"];
  41.                         Description = source["Description"] is DBNull ? null : (string)source["Description"];
  42.                 }
  43.  
  44.                 public int ID { get; set; }
  45.                 public double? AreaId { get; set; }
  46.                 public string Series { get; set; }
  47.                 public string Model { get; set; }
  48.                 public string JS { get; set; }
  49.                 public string JSCustomer { get; set; }
  50.                 public string BPLX { get; set; }
  51.                 public string XK { get; set; }
  52.                 public string XKCustomer { get; set; }
  53.                 public string YK { get; set; }
  54.                 public string YKCustomer { get; set; }
  55.                 public string BPXH { get; set; }
  56.                 public string BPXHCustomer { get; set; }
  57.                 public double? IsFan { get; set; }
  58.                 public string Description { get; set; }
  59.         }
  60.         public class AHUCheck
  61.         {
  62.                 public AHUCheck()
  63.                 { }
  64.  
  65.                 public AHUCheck(string cap_switch, string model, bool onebymore, int id, bool onebyone)
  66.                 {
  67.                         Cap_Switch = cap_switch;
  68.                         Model = model;
  69.                         OneByMore = onebymore;
  70.                         ID = id;
  71.                         OneByOne = onebyone;
  72.                 }
  73.  
  74.                 public AHUCheck(DataRow source)
  75.                 {
  76.                         Cap_Switch = source["Cap_Switch"] is DBNull ? null : (string)source["Cap_Switch"];
  77.                         Model = source["Model"] is DBNull ? null : (string)source["Model"];
  78.                         OneByMore = (bool)source["OneByMore"];
  79.                         ID = (int)source["ID"];
  80.                         OneByOne = (bool)source["OneByOne"];
  81.                 }
  82.  
  83.                 public string Cap_Switch { get; set; }
  84.                 public string Model { get; set; }
  85.                 public bool OneByMore { get; set; }
  86.                 public int ID { get; set; }
  87.                 public bool OneByOne { get; set; }
  88.         }
  89.         public class Area
  90.         {
  91.                 public Area()
  92.                 { }
  93.  
  94.                 public Area(int id, string area_chinese, string area_english, string remark, double? unit_default, string series_default, string outdoor_default, double? area_id)
  95.                 {
  96.                         ID = id;
  97.                         Area_Chinese = area_chinese;
  98.                         Area_English = area_english;
  99.                         Remark = remark;
  100.                         Unit_Default = unit_default;
  101.                         Series_Default = series_default;
  102.                         OutDoor_Default = outdoor_default;
  103.                         Area_ID = area_id;
  104.                 }
  105.  
  106.                 public Area(DataRow source)
  107.                 {
  108.                         ID = (int)source["ID"];
  109.                         Area_Chinese = source["Area_Chinese"] is DBNull ? null : (string)source["Area_Chinese"];
  110.                         Area_English = source["Area_English"] is DBNull ? null : (string)source["Area_English"];
  111.                         Remark = source["Remark"] is DBNull ? null : (string)source["Remark"];
  112.                         Unit_Default = source["Unit_Default"] is DBNull ? null : (double?)source["Unit_Default"];
  113.                         Series_Default = source["Series_Default"] is DBNull ? null : (string)source["Series_Default"];
  114.                         OutDoor_Default = source["OutDoor_Default"] is DBNull ? null : (string)source["OutDoor_Default"];
  115.                         Area_ID = source["Area_ID"] is DBNull ? null : (double?)source["Area_ID"];
  116.                 }
  117.  
  118.                 public int ID { get; set; }
  119.                 public string Area_Chinese { get; set; }
  120.                 public string Area_English { get; set; }
  121.                 public string Remark { get; set; }
  122.                 public double? Unit_Default { get; set; }
  123.                 public string Series_Default { get; set; }
  124.                 public string OutDoor_Default { get; set; }
  125.                 public double? Area_ID { get; set; }
  126.         }
  127.         public class AttibuteSeting
  128.         {
  129.                 public AttibuteSeting()
  130.                 { }
  131.  
  132.                 public AttibuteSeting(int id, string attributename, string attributezh, string attributeen, double? type, bool ismetric, int? transtype, double? sortnumber, string splitstring)
  133.                 {
  134.                         ID = id;
  135.                         AttributeName = attributename;
  136.                         AttributeZH = attributezh;
  137.                         AttributeEN = attributeen;
  138.                         Type = type;
  139.                         IsMetric = ismetric;
  140.                         TransType = transtype;
  141.                         SortNumber = sortnumber;
  142.                         SplitString = splitstring;
  143.                 }
  144.  
  145.                 public AttibuteSeting(DataRow source)
  146.                 {
  147.                         ID = (int)source["ID"];
  148.                         AttributeName = source["AttributeName"] is DBNull ? null : (string)source["AttributeName"];
  149.                         AttributeZH = source["AttributeZH"] is DBNull ? null : (string)source["AttributeZH"];
  150.                         AttributeEN = source["AttributeEN"] is DBNull ? null : (string)source["AttributeEN"];
  151.                         Type = source["Type"] is DBNull ? null : (double?)source["Type"];
  152.                         IsMetric = (bool)source["IsMetric"];
  153.                         TransType = source["TransType"] is DBNull ? null : (int?)source["TransType"];
  154.                         SortNumber = source["SortNumber"] is DBNull ? null : (double?)source["SortNumber"];
  155.                         SplitString = source["SplitString"] is DBNull ? null : (string)source["SplitString"];
  156.                 }
  157.  
  158.                 public int ID { get; set; }
  159.                 public string AttributeName { get; set; }
  160.                 public string AttributeZH { get; set; }
  161.                 public string AttributeEN { get; set; }
  162.                 public double? Type { get; set; }
  163.                 public bool IsMetric { get; set; }
  164.                 public int? TransType { get; set; }
  165.                 public double? SortNumber { get; set; }
  166.                 public string SplitString { get; set; }
  167.         }
  168.         public class BranchModel
  169.         {
  170.                 public BranchModel()
  171.                 { }
  172.  
  173.                 public BranchModel(int id, double? areaid, string branchmodel, string branchmodelcustomer, string loadmax, string loadmin, int? type, int? splitcount, string odusmodels)
  174.                 {
  175.                         ID = id;
  176.                         AreaID = areaid;
  177.                         BranchModel = branchmodel;
  178.                         BranchModelCustomer = branchmodelcustomer;
  179.                         LoadMax = loadmax;
  180.                         LoadMin = loadmin;
  181.                         Type = type;
  182.                         SplitCount = splitcount;
  183.                         OdusModels = odusmodels;
  184.                 }
  185.  
  186.                 public BranchModel(DataRow source)
  187.                 {
  188.                         ID = (int)source["ID"];
  189.                         AreaID = source["AreaID"] is DBNull ? null : (double?)source["AreaID"];
  190.                         BranchModel = source["BranchModel"] is DBNull ? null : (string)source["BranchModel"];
  191.                         BranchModelCustomer = source["BranchModelCustomer"] is DBNull ? null : (string)source["BranchModelCustomer"];
  192.                         LoadMax = source["LoadMax"] is DBNull ? null : (string)source["LoadMax"];
  193.                         LoadMin = source["LoadMin"] is DBNull ? null : (string)source["LoadMin"];
  194.                         Type = source["Type"] is DBNull ? null : (int?)source["Type"];
  195.                         SplitCount = source["SplitCount"] is DBNull ? null : (int?)source["SplitCount"];
  196.                         OdusModels = source["OdusModels"] is DBNull ? null : (string)source["OdusModels"];
  197.                 }
  198.  
  199.                 public int ID { get; set; }
  200.                 public double? AreaID { get; set; }
  201.                 public string BranchModel { get; set; }
  202.                 public string BranchModelCustomer { get; set; }
  203.                 public string LoadMax { get; set; }
  204.                 public string LoadMin { get; set; }
  205.                 public int? Type { get; set; }
  206.                 public int? SplitCount { get; set; }
  207.                 public string OdusModels { get; set; }
  208.         }
  209.         public class BranchResolutionView
  210.         {
  211.                 public BranchResolutionView()
  212.                 { }
  213.  
  214.                 public BranchResolutionView(int id, string sort, string level, string imagename, string sorten)
  215.                 {
  216.                         ID = id;
  217.                         Sort = sort;
  218.                         Level = level;
  219.                         ImageName = imagename;
  220.                         SortEN = sorten;
  221.                 }
  222.  
  223.                 public BranchResolutionView(DataRow source)
  224.                 {
  225.                         ID = (int)source["ID"];
  226.                         Sort = source["Sort"] is DBNull ? null : (string)source["Sort"];
  227.                         Level = source["Level"] is DBNull ? null : (string)source["Level"];
  228.                         ImageName = source["ImageName"] is DBNull ? null : (string)source["ImageName"];
  229.                         SortEN = source["SortEN"] is DBNull ? null : (string)source["SortEN"];
  230.                 }
  231.  
  232.                 public int ID { get; set; }
  233.                 public string Sort { get; set; }
  234.                 public string Level { get; set; }
  235.                 public string ImageName { get; set; }
  236.                 public string SortEN { get; set; }
  237.         }
  238.         public class BranchSort
  239.         {
  240.                 public BranchSort()
  241.                 { }
  242.  
  243.                 public BranchSort(int id, string sort, string sortcn, string sorten, string level, string imagename, int? displayorder, short? isdisplay)
  244.                 {
  245.                         ID = id;
  246.                         Sort = sort;
  247.                         SortCN = sortcn;
  248.                         SortEN = sorten;
  249.                         Level = level;
  250.                         ImageName = imagename;
  251.                         DisplayOrder = displayorder;
  252.                         IsDisPlay = isdisplay;
  253.                 }
  254.  
  255.                 public BranchSort(DataRow source)
  256.                 {
  257.                         ID = (int)source["ID"];
  258.                         Sort = source["Sort"] is DBNull ? null : (string)source["Sort"];
  259.                         SortCN = source["SortCN"] is DBNull ? null : (string)source["SortCN"];
  260.                         SortEN = source["SortEN"] is DBNull ? null : (string)source["SortEN"];
  261.                         Level = source["Level"] is DBNull ? null : (string)source["Level"];
  262.                         ImageName = source["ImageName"] is DBNull ? null : (string)source["ImageName"];
  263.                         DisplayOrder = source["DisplayOrder"] is DBNull ? null : (int?)source["DisplayOrder"];
  264.                         IsDisPlay = source["IsDisPlay"] is DBNull ? null : (short?)source["IsDisPlay"];
  265.                 }
  266.  
  267.                 public int ID { get; set; }
  268.                 public string Sort { get; set; }
  269.                 public string SortCN { get; set; }
  270.                 public string SortEN { get; set; }
  271.                 public string Level { get; set; }
  272.                 public string ImageName { get; set; }
  273.                 public int? DisplayOrder { get; set; }
  274.                 public short? IsDisPlay { get; set; }
  275.         }
  276.         public class BuildingType
  277.         {
  278.                 public BuildingType()
  279.                 { }
  280.  
  281.                 public BuildingType(int id, string buildingtype_ch, string buildingtype_en, string remark, double? display_order, int? buildingtype_id, int? type)
  282.                 {
  283.                         ID = id;
  284.                         BuildingType_Ch = buildingtype_ch;
  285.                         BuildingType_En = buildingtype_en;
  286.                         Remark = remark;
  287.                         Display_Order = display_order;
  288.                         BuildingType_ID = buildingtype_id;
  289.                         Type = type;
  290.                 }
  291.  
  292.                 public BuildingType(DataRow source)
  293.                 {
  294.                         ID = (int)source["ID"];
  295.                         BuildingType_Ch = source["BuildingType_Ch"] is DBNull ? null : (string)source["BuildingType_Ch"];
  296.                         BuildingType_En = source["BuildingType_En"] is DBNull ? null : (string)source["BuildingType_En"];
  297.                         Remark = source["Remark"] is DBNull ? null : (string)source["Remark"];
  298.                         Display_Order = source["Display_Order"] is DBNull ? null : (double?)source["Display_Order"];
  299.                         BuildingType_ID = source["BuildingType_ID"] is DBNull ? null : (int?)source["BuildingType_ID"];
  300.                         Type = source["Type"] is DBNull ? null : (int?)source["Type"];
  301.                 }
  302.  
  303.                 public int ID { get; set; }
  304.                 public string BuildingType_Ch { get; set; }
  305.                 public string BuildingType_En { get; set; }
  306.                 public string Remark { get; set; }
  307.                 public double? Display_Order { get; set; }
  308.                 public int? BuildingType_ID { get; set; }
  309.                 public int? Type { get; set; }
  310.         }
  311.         public class CalculateParameter
  312.         {
  313.                 public CalculateParameter()
  314.                 { }
  315.  
  316.                 public CalculateParameter(int id, string paravalue, string pararangemin, string pararangemax, string othermin, string othermax, string calculatevalue, string paratype, string otherparavalue)
  317.                 {
  318.                         ID = id;
  319.                         ParaValue = paravalue;
  320.                         ParaRangeMin = pararangemin;
  321.                         ParaRangeMax = pararangemax;
  322.                         OtherMin = othermin;
  323.                         OtherMax = othermax;
  324.                         CalculateValue = calculatevalue;
  325.                         ParaType = paratype;
  326.                         OtherParaValue = otherparavalue;
  327.                 }
  328.  
  329.                 public CalculateParameter(DataRow source)
  330.                 {
  331.                         ID = (int)source["ID"];
  332.                         ParaValue = source["ParaValue"] is DBNull ? null : (string)source["ParaValue"];
  333.                         ParaRangeMin = source["ParaRangeMin"] is DBNull ? null : (string)source["ParaRangeMin"];
  334.                         ParaRangeMax = source["ParaRangeMax"] is DBNull ? null : (string)source["ParaRangeMax"];
  335.                         OtherMin = source["OtherMin"] is DBNull ? null : (string)source["OtherMin"];
  336.                         OtherMax = source["OtherMax"] is DBNull ? null : (string)source["OtherMax"];
  337.                         CalculateValue = source["CalculateValue"] is DBNull ? null : (string)source["CalculateValue"];
  338.                         ParaType = source["ParaType"] is DBNull ? null : (string)source["ParaType"];
  339.                         OtherParaValue = source["OtherParaValue"] is DBNull ? null : (string)source["OtherParaValue"];
  340.                 }
  341.  
  342.                 public int ID { get; set; }
  343.                 public string ParaValue { get; set; }
  344.                 public string ParaRangeMin { get; set; }
  345.                 public string ParaRangeMax { get; set; }
  346.                 public string OtherMin { get; set; }
  347.                 public string OtherMax { get; set; }
  348.                 public string CalculateValue { get; set; }
  349.                 public string ParaType { get; set; }
  350.                 public string OtherParaValue { get; set; }
  351.         }
  352.         public class CentralControl
  353.         {
  354.                 public CentralControl()
  355.                 { }
  356.  
  357.                 public CentralControl(int id, int? areaid, string controlnamecn, string controlnameen, string controlmodel, string remarkcn, string remarken, string description1, string description2, string description3, string description4, string description5, double? maxiduscount, double? maxfloorcount)
  358.                 {
  359.                         ID = id;
  360.                         AreaId = areaid;
  361.                         ControlNameCN = controlnamecn;
  362.                         ControlNameEN = controlnameen;
  363.                         ControlModel = controlmodel;
  364.                         RemarkCN = remarkcn;
  365.                         RemarkEN = remarken;
  366.                         Description1 = description1;
  367.                         Description2 = description2;
  368.                         Description3 = description3;
  369.                         Description4 = description4;
  370.                         Description5 = description5;
  371.                         MaxIdusCount = maxiduscount;
  372.                         MaxFloorCount = maxfloorcount;
  373.                 }
  374.  
  375.                 public CentralControl(DataRow source)
  376.                 {
  377.                         ID = (int)source["ID"];
  378.                         AreaId = source["AreaId"] is DBNull ? null : (int?)source["AreaId"];
  379.                         ControlNameCN = source["ControlNameCN"] is DBNull ? null : (string)source["ControlNameCN"];
  380.                         ControlNameEN = source["ControlNameEN"] is DBNull ? null : (string)source["ControlNameEN"];
  381.                         ControlModel = source["ControlModel"] is DBNull ? null : (string)source["ControlModel"];
  382.                         RemarkCN = source["RemarkCN"] is DBNull ? null : (string)source["RemarkCN"];
  383.                         RemarkEN = source["RemarkEN"] is DBNull ? null : (string)source["RemarkEN"];
  384.                         Description1 = source["Description1"] is DBNull ? null : (string)source["Description1"];
  385.                         Description2 = source["Description2"] is DBNull ? null : (string)source["Description2"];
  386.                         Description3 = source["Description3"] is DBNull ? null : (string)source["Description3"];
  387.                         Description4 = source["Description4"] is DBNull ? null : (string)source["Description4"];
  388.                         Description5 = source["Description5"] is DBNull ? null : (string)source["Description5"];
  389.                         MaxIdusCount = source["MaxIdusCount"] is DBNull ? null : (double?)source["MaxIdusCount"];
  390.                         MaxFloorCount = source["MaxFloorCount"] is DBNull ? null : (double?)source["MaxFloorCount"];
  391.                 }
  392.  
  393.                 public int ID { get; set; }
  394.                 public int? AreaId { get; set; }
  395.                 public string ControlNameCN { get; set; }
  396.                 public string ControlNameEN { get; set; }
  397.                 public string ControlModel { get; set; }
  398.                 public string RemarkCN { get; set; }
  399.                 public string RemarkEN { get; set; }
  400.                 public string Description1 { get; set; }
  401.                 public string Description2 { get; set; }
  402.                 public string Description3 { get; set; }
  403.                 public string Description4 { get; set; }
  404.                 public string Description5 { get; set; }
  405.                 public double? MaxIdusCount { get; set; }
  406.                 public double? MaxFloorCount { get; set; }
  407.         }
  408.         public class CoefficientSH
  409.         {
  410.                 public CoefficientSH()
  411.                 { }
  412.  
  413.                 public CoefficientSH(int id, string serial, double? capacity, double? i_relhumid, double? odoor_dbt, double? indbt_20, double? indbt_21, double? indbt_22, double? indbt_23, double? indbt_24, double? indbt_25, double? indbt_26, double? indbt_27, double? indbt_28, double? indbt_29, double? indbt_30, double? indbt_31, double? indbt_32, double? indbt_33, double? indbt_34)
  414.                 {
  415.                         ID = id;
  416.                         Serial = serial;
  417.                         Capacity = capacity;
  418.                         I_RelHumid = i_relhumid;
  419.                         Odoor_DBT = odoor_dbt;
  420.                         InDBT_20 = indbt_20;
  421.                         InDBT_21 = indbt_21;
  422.                         InDBT_22 = indbt_22;
  423.                         InDBT_23 = indbt_23;
  424.                         InDBT_24 = indbt_24;
  425.                         InDBT_25 = indbt_25;
  426.                         InDBT_26 = indbt_26;
  427.                         InDBT_27 = indbt_27;
  428.                         InDBT_28 = indbt_28;
  429.                         InDBT_29 = indbt_29;
  430.                         InDBT_30 = indbt_30;
  431.                         InDBT_31 = indbt_31;
  432.                         InDBT_32 = indbt_32;
  433.                         InDBT_33 = indbt_33;
  434.                         InDBT_34 = indbt_34;
  435.                 }
  436.  
  437.                 public CoefficientSH(DataRow source)
  438.                 {
  439.                         ID = (int)source["ID"];
  440.                         Serial = source["Serial"] is DBNull ? null : (string)source["Serial"];
  441.                         Capacity = source["Capacity"] is DBNull ? null : (double?)source["Capacity"];
  442.                         I_RelHumid = source["I_RelHumid"] is DBNull ? null : (double?)source["I_RelHumid"];
  443.                         Odoor_DBT = source["Odoor_DBT"] is DBNull ? null : (double?)source["Odoor_DBT"];
  444.                         InDBT_20 = source["InDBT_20"] is DBNull ? null : (double?)source["InDBT_20"];
  445.                         InDBT_21 = source["InDBT_21"] is DBNull ? null : (double?)source["InDBT_21"];
  446.                         InDBT_22 = source["InDBT_22"] is DBNull ? null : (double?)source["InDBT_22"];
  447.                         InDBT_23 = source["InDBT_23"] is DBNull ? null : (double?)source["InDBT_23"];
  448.                         InDBT_24 = source["InDBT_24"] is DBNull ? null : (double?)source["InDBT_24"];
  449.                         InDBT_25 = source["InDBT_25"] is DBNull ? null : (double?)source["InDBT_25"];
  450.                         InDBT_26 = source["InDBT_26"] is DBNull ? null : (double?)source["InDBT_26"];
  451.                         InDBT_27 = source["InDBT_27"] is DBNull ? null : (double?)source["InDBT_27"];
  452.                         InDBT_28 = source["InDBT_28"] is DBNull ? null : (double?)source["InDBT_28"];
  453.                         InDBT_29 = source["InDBT_29"] is DBNull ? null : (double?)source["InDBT_29"];
  454.                         InDBT_30 = source["InDBT_30"] is DBNull ? null : (double?)source["InDBT_30"];
  455.                         InDBT_31 = source["InDBT_31"] is DBNull ? null : (double?)source["InDBT_31"];
  456.                         InDBT_32 = source["InDBT_32"] is DBNull ? null : (double?)source["InDBT_32"];
  457.                         InDBT_33 = source["InDBT_33"] is DBNull ? null : (double?)source["InDBT_33"];
  458.                         InDBT_34 = source["InDBT_34"] is DBNull ? null : (double?)source["InDBT_34"];
  459.                 }
  460.  
  461.                 public int ID { get; set; }
  462.                 public string Serial { get; set; }
  463.                 public double? Capacity { get; set; }
  464.                 public double? I_RelHumid { get; set; }
  465.                 public double? Odoor_DBT { get; set; }
  466.                 public double? InDBT_20 { get; set; }
  467.                 public double? InDBT_21 { get; set; }
  468.                 public double? InDBT_22 { get; set; }
  469.                 public double? InDBT_23 { get; set; }
  470.                 public double? InDBT_24 { get; set; }
  471.                 public double? InDBT_25 { get; set; }
  472.                 public double? InDBT_26 { get; set; }
  473.                 public double? InDBT_27 { get; set; }
  474.                 public double? InDBT_28 { get; set; }
  475.                 public double? InDBT_29 { get; set; }
  476.                 public double? InDBT_30 { get; set; }
  477.                 public double? InDBT_31 { get; set; }
  478.                 public double? InDBT_32 { get; set; }
  479.                 public double? InDBT_33 { get; set; }
  480.                 public double? InDBT_34 { get; set; }
  481.         }
  482.         public class CoolingCoefficient
  483.         {
  484.                 public CoolingCoefficient()
  485.                 { }
  486.  
  487.                 public CoolingCoefficient(int id, double? i_relhumid, double? odoor_dbt, double? indbt_20, double? indbt_21, double? indbt_22, double? indbt_23, double? indbt_24, double? indbt_25, double? indbt_26, double? indbt_27, double? indbt_28, double? indbt_29, double? indbt_30, double? indbt_31, double? indbt_32, double? indbt_33, double? indbt_34)
  488.                 {
  489.                         ID = id;
  490.                         I_RelHumid = i_relhumid;
  491.                         Odoor_DBT = odoor_dbt;
  492.                         InDBT_20 = indbt_20;
  493.                         InDBT_21 = indbt_21;
  494.                         InDBT_22 = indbt_22;
  495.                         InDBT_23 = indbt_23;
  496.                         InDBT_24 = indbt_24;
  497.                         InDBT_25 = indbt_25;
  498.                         InDBT_26 = indbt_26;
  499.                         InDBT_27 = indbt_27;
  500.                         InDBT_28 = indbt_28;
  501.                         InDBT_29 = indbt_29;
  502.                         InDBT_30 = indbt_30;
  503.                         InDBT_31 = indbt_31;
  504.                         InDBT_32 = indbt_32;
  505.                         InDBT_33 = indbt_33;
  506.                         InDBT_34 = indbt_34;
  507.                 }
  508.  
  509.                 public CoolingCoefficient(DataRow source)
  510.                 {
  511.                         ID = (int)source["ID"];
  512.                         I_RelHumid = source["I_RelHumid"] is DBNull ? null : (double?)source["I_RelHumid"];
  513.                         Odoor_DBT = source["Odoor_DBT"] is DBNull ? null : (double?)source["Odoor_DBT"];
  514.                         InDBT_20 = source["InDBT_20"] is DBNull ? null : (double?)source["InDBT_20"];
  515.                         InDBT_21 = source["InDBT_21"] is DBNull ? null : (double?)source["InDBT_21"];
  516.                         InDBT_22 = source["InDBT_22"] is DBNull ? null : (double?)source["InDBT_22"];
  517.                         InDBT_23 = source["InDBT_23"] is DBNull ? null : (double?)source["InDBT_23"];
  518.                         InDBT_24 = source["InDBT_24"] is DBNull ? null : (double?)source["InDBT_24"];
  519.                         InDBT_25 = source["InDBT_25"] is DBNull ? null : (double?)source["InDBT_25"];
  520.                         InDBT_26 = source["InDBT_26"] is DBNull ? null : (double?)source["InDBT_26"];
  521.                         InDBT_27 = source["InDBT_27"] is DBNull ? null : (double?)source["InDBT_27"];
  522.                         InDBT_28 = source["InDBT_28"] is DBNull ? null : (double?)source["InDBT_28"];
  523.                         InDBT_29 = source["InDBT_29"] is DBNull ? null : (double?)source["InDBT_29"];
  524.                         InDBT_30 = source["InDBT_30"] is DBNull ? null : (double?)source["InDBT_30"];
  525.                         InDBT_31 = source["InDBT_31"] is DBNull ? null : (double?)source["InDBT_31"];
  526.                         InDBT_32 = source["InDBT_32"] is DBNull ? null : (double?)source["InDBT_32"];
  527.                         InDBT_33 = source["InDBT_33"] is DBNull ? null : (double?)source["InDBT_33"];
  528.                         InDBT_34 = source["InDBT_34"] is DBNull ? null : (double?)source["InDBT_34"];
  529.                 }
  530.  
  531.                 public int ID { get; set; }
  532.                 public double? I_RelHumid { get; set; }
  533.                 public double? Odoor_DBT { get; set; }
  534.                 public double? InDBT_20 { get; set; }
  535.                 public double? InDBT_21 { get; set; }
  536.                 public double? InDBT_22 { get; set; }
  537.                 public double? InDBT_23 { get; set; }
  538.                 public double? InDBT_24 { get; set; }
  539.                 public double? InDBT_25 { get; set; }
  540.                 public double? InDBT_26 { get; set; }
  541.                 public double? InDBT_27 { get; set; }
  542.                 public double? InDBT_28 { get; set; }
  543.                 public double? InDBT_29 { get; set; }
  544.                 public double? InDBT_30 { get; set; }
  545.                 public double? InDBT_31 { get; set; }
  546.                 public double? InDBT_32 { get; set; }
  547.                 public double? InDBT_33 { get; set; }
  548.                 public double? InDBT_34 { get; set; }
  549.         }
  550.         public class CoolingFallHeightCoefficien
  551.         {
  552.                 public CoolingFallHeightCoefficien()
  553.                 { }
  554.  
  555.                 public CoolingFallHeightCoefficien(int id, double? capacity, double? fallheight, double? coefficien, double? pipelength, double? type)
  556.                 {
  557.                         ID = id;
  558.                         Capacity = capacity;
  559.                         FallHeight = fallheight;
  560.                         Coefficien = coefficien;
  561.                         PipeLength = pipelength;
  562.                         Type = type;
  563.                 }
  564.  
  565.                 public CoolingFallHeightCoefficien(DataRow source)
  566.                 {
  567.                         ID = (int)source["ID"];
  568.                         Capacity = source["Capacity"] is DBNull ? null : (double?)source["Capacity"];
  569.                         FallHeight = source["FallHeight"] is DBNull ? null : (double?)source["FallHeight"];
  570.                         Coefficien = source["Coefficien"] is DBNull ? null : (double?)source["Coefficien"];
  571.                         PipeLength = source["PipeLength"] is DBNull ? null : (double?)source["PipeLength"];
  572.                         Type = source["Type"] is DBNull ? null : (double?)source["Type"];
  573.                 }
  574.  
  575.                 public int ID { get; set; }
  576.                 public double? Capacity { get; set; }
  577.                 public double? FallHeight { get; set; }
  578.                 public double? Coefficien { get; set; }
  579.                 public double? PipeLength { get; set; }
  580.                 public double? Type { get; set; }
  581.         }
  582.         public class CoolingMatchCoefficient
  583.         {
  584.                 public CoolingMatchCoefficient()
  585.                 { }
  586.  
  587.                 public CoolingMatchCoefficient(int id, double? distributionrate, double? odoor_dbt, double? inwbt, double? indbt, double? tc, double? pi)
  588.                 {
  589.                         ID = id;
  590.                         DistributionRate = distributionrate;
  591.                         Odoor_DBT = odoor_dbt;
  592.                         InWBT = inwbt;
  593.                         InDBT = indbt;
  594.                         TC = tc;
  595.                         PI = pi;
  596.                 }
  597.  
  598.                 public CoolingMatchCoefficient(DataRow source)
  599.                 {
  600.                         ID = (int)source["ID"];
  601.                         DistributionRate = source["DistributionRate"] is DBNull ? null : (double?)source["DistributionRate"];
  602.                         Odoor_DBT = source["Odoor_DBT"] is DBNull ? null : (double?)source["Odoor_DBT"];
  603.                         InWBT = source["InWBT"] is DBNull ? null : (double?)source["InWBT"];
  604.                         InDBT = source["InDBT"] is DBNull ? null : (double?)source["InDBT"];
  605.                         TC = source["TC"] is DBNull ? null : (double?)source["TC"];
  606.                         PI = source["PI"] is DBNull ? null : (double?)source["PI"];
  607.                 }
  608.  
  609.                 public int ID { get; set; }
  610.                 public double? DistributionRate { get; set; }
  611.                 public double? Odoor_DBT { get; set; }
  612.                 public double? InWBT { get; set; }
  613.                 public double? InDBT { get; set; }
  614.                 public double? TC { get; set; }
  615.                 public double? PI { get; set; }
  616.         }
  617.         public class DesignCondition
  618.         {
  619.                 public DesignCondition()
  620.                 { }
  621.  
  622.                 public DesignCondition(int id, double? iscooling, string outdbt, string indbt, string outwbt, string inrelativehumidity, string inwbt, double? functype, string outrelativehumidity)
  623.                 {
  624.                         ID = id;
  625.                         IsCooling = iscooling;
  626.                         OutDBT = outdbt;
  627.                         InDBT = indbt;
  628.                         OutWBT = outwbt;
  629.                         InRelativeHumidity = inrelativehumidity;
  630.                         InWBT = inwbt;
  631.                         FuncType = functype;
  632.                         OutRelativeHumidity = outrelativehumidity;
  633.                 }
  634.  
  635.                 public DesignCondition(DataRow source)
  636.                 {
  637.                         ID = (int)source["ID"];
  638.                         IsCooling = source["IsCooling"] is DBNull ? null : (double?)source["IsCooling"];
  639.                         OutDBT = source["OutDBT"] is DBNull ? null : (string)source["OutDBT"];
  640.                         InDBT = source["InDBT"] is DBNull ? null : (string)source["InDBT"];
  641.                         OutWBT = source["OutWBT"] is DBNull ? null : (string)source["OutWBT"];
  642.                         InRelativeHumidity = source["InRelativeHumidity"] is DBNull ? null : (string)source["InRelativeHumidity"];
  643.                         InWBT = source["InWBT"] is DBNull ? null : (string)source["InWBT"];
  644.                         FuncType = source["FuncType"] is DBNull ? null : (double?)source["FuncType"];
  645.                         OutRelativeHumidity = source["OutRelativeHumidity"] is DBNull ? null : (string)source["OutRelativeHumidity"];
  646.                 }
  647.  
  648.                 public int ID { get; set; }
  649.                 public double? IsCooling { get; set; }
  650.                 public string OutDBT { get; set; }
  651.                 public string InDBT { get; set; }
  652.                 public string OutWBT { get; set; }
  653.                 public string InRelativeHumidity { get; set; }
  654.                 public string InWBT { get; set; }
  655.                 public double? FuncType { get; set; }
  656.                 public string OutRelativeHumidity { get; set; }
  657.         }
  658.         public class DisplaySeries
  659.         {
  660.                 public DisplaySeries()
  661.                 { }
  662.  
  663.                 public DisplaySeries(int id, int? type, int? seriesid, int? areaid, int? funtype, bool isenabled)
  664.                 {
  665.                         ID = id;
  666.                         Type = type;
  667.                         SeriesId = seriesid;
  668.                         AreaId = areaid;
  669.                         FunType = funtype;
  670.                         IsEnabled = isenabled;
  671.                 }
  672.  
  673.                 public DisplaySeries(DataRow source)
  674.                 {
  675.                         ID = (int)source["ID"];
  676.                         Type = source["Type"] is DBNull ? null : (int?)source["Type"];
  677.                         SeriesId = source["SeriesId"] is DBNull ? null : (int?)source["SeriesId"];
  678.                         AreaId = source["AreaId"] is DBNull ? null : (int?)source["AreaId"];
  679.                         FunType = source["FunType"] is DBNull ? null : (int?)source["FunType"];
  680.                         IsEnabled = (bool)source["IsEnabled"];
  681.                 }
  682.  
  683.                 public int ID { get; set; }
  684.                 public int? Type { get; set; }
  685.                 public int? SeriesId { get; set; }
  686.                 public int? AreaId { get; set; }
  687.                 public int? FunType { get; set; }
  688.                 public bool IsEnabled { get; set; }
  689.         }
  690.         public class FH_Capacity
  691.         {
  692.                 public FH_Capacity()
  693.                 { }
  694.  
  695.                 public FH_Capacity(int id, int? roomid, int? buildingtypeid, double? capacity, string description, int? type, double? capacitymin, double? capacitymax)
  696.                 {
  697.                         ID = id;
  698.                         RoomID = roomid;
  699.                         BuildingTypeID = buildingtypeid;
  700.                         Capacity = capacity;
  701.                         Description = description;
  702.                         Type = type;
  703.                         CapacityMin = capacitymin;
  704.                         CapacityMax = capacitymax;
  705.                 }
  706.  
  707.                 public FH_Capacity(DataRow source)
  708.                 {
  709.                         ID = (int)source["ID"];
  710.                         RoomID = source["RoomID"] is DBNull ? null : (int?)source["RoomID"];
  711.                         BuildingTypeID = source["BuildingTypeID"] is DBNull ? null : (int?)source["BuildingTypeID"];
  712.                         Capacity = source["Capacity"] is DBNull ? null : (double?)source["Capacity"];
  713.                         Description = source["Description"] is DBNull ? null : (string)source["Description"];
  714.                         Type = source["Type"] is DBNull ? null : (int?)source["Type"];
  715.                         CapacityMin = source["CapacityMin"] is DBNull ? null : (double?)source["CapacityMin"];
  716.                         CapacityMax = source["CapacityMax"] is DBNull ? null : (double?)source["CapacityMax"];
  717.                 }
  718.  
  719.                 public int ID { get; set; }
  720.                 public int? RoomID { get; set; }
  721.                 public int? BuildingTypeID { get; set; }
  722.                 public double? Capacity { get; set; }
  723.                 public string Description { get; set; }
  724.                 public int? Type { get; set; }
  725.                 public double? CapacityMin { get; set; }
  726.                 public double? CapacityMax { get; set; }
  727.         }
  728.         public class FrostingCoefficient
  729.         {
  730.                 public FrostingCoefficient()
  731.                 { }
  732.  
  733.                 public FrostingCoefficient(int id, string odoor_dbt, double? coefficient)
  734.                 {
  735.                         ID = id;
  736.                         Odoor_DBT = odoor_dbt;
  737.                         Coefficient = coefficient;
  738.                 }
  739.  
  740.                 public FrostingCoefficient(DataRow source)
  741.                 {
  742.                         ID = (int)source["ID"];
  743.                         Odoor_DBT = source["Odoor_DBT"] is DBNull ? null : (string)source["Odoor_DBT"];
  744.                         Coefficient = source["Coefficient"] is DBNull ? null : (double?)source["Coefficient"];
  745.                 }
  746.  
  747.                 public int ID { get; set; }
  748.                 public string Odoor_DBT { get; set; }
  749.                 public double? Coefficient { get; set; }
  750.         }
  751.         public class FunType
  752.         {
  753.                 public FunType()
  754.                 { }
  755.  
  756.                 public FunType(int id, double? areaid, double? funtypeid, string funtypenamecn, string funtypenameen, double? isdisplay)
  757.                 {
  758.                         ID = id;
  759.                         AreaId = areaid;
  760.                         FunTypeId = funtypeid;
  761.                         FunTypeNameCN = funtypenamecn;
  762.                         FunTypeNameEN = funtypenameen;
  763.                         IsDisPlay = isdisplay;
  764.                 }
  765.  
  766.                 public FunType(DataRow source)
  767.                 {
  768.                         ID = (int)source["ID"];
  769.                         AreaId = source["AreaId"] is DBNull ? null : (double?)source["AreaId"];
  770.                         FunTypeId = source["FunTypeId"] is DBNull ? null : (double?)source["FunTypeId"];
  771.                         FunTypeNameCN = source["FunTypeNameCN"] is DBNull ? null : (string)source["FunTypeNameCN"];
  772.                         FunTypeNameEN = source["FunTypeNameEN"] is DBNull ? null : (string)source["FunTypeNameEN"];
  773.                         IsDisPlay = source["IsDisPlay"] is DBNull ? null : (double?)source["IsDisPlay"];
  774.                 }
  775.  
  776.                 public int ID { get; set; }
  777.                 public double? AreaId { get; set; }
  778.                 public double? FunTypeId { get; set; }
  779.                 public string FunTypeNameCN { get; set; }
  780.                 public string FunTypeNameEN { get; set; }
  781.                 public double? IsDisPlay { get; set; }
  782.         }
  783.         public class HeatingCoefficient
  784.         {
  785.                 public HeatingCoefficient()
  786.                 { }
  787.  
  788.                 public HeatingCoefficient(int id, double? o_relhumid, double? odoor_dbt, double? indbt_16, double? indbt_17, double? indbt_18, double? indbt_19, double? indbt_20, double? indbt_21, double? indbt_22, double? indbt_23, double? indbt_24)
  789.                 {
  790.                         ID = id;
  791.                         O_RelHumid = o_relhumid;
  792.                         Odoor_DBT = odoor_dbt;
  793.                         InDBT_16 = indbt_16;
  794.                         InDBT_17 = indbt_17;
  795.                         InDBT_18 = indbt_18;
  796.                         InDBT_19 = indbt_19;
  797.                         InDBT_20 = indbt_20;
  798.                         InDBT_21 = indbt_21;
  799.                         InDBT_22 = indbt_22;
  800.                         InDBT_23 = indbt_23;
  801.                         InDBT_24 = indbt_24;
  802.                 }
  803.  
  804.                 public HeatingCoefficient(DataRow source)
  805.                 {
  806.                         ID = (int)source["ID"];
  807.                         O_RelHumid = source["O_RelHumid"] is DBNull ? null : (double?)source["O_RelHumid"];
  808.                         Odoor_DBT = source["Odoor_DBT"] is DBNull ? null : (double?)source["Odoor_DBT"];
  809.                         InDBT_16 = source["InDBT_16"] is DBNull ? null : (double?)source["InDBT_16"];
  810.                         InDBT_17 = source["InDBT_17"] is DBNull ? null : (double?)source["InDBT_17"];
  811.                         InDBT_18 = source["InDBT_18"] is DBNull ? null : (double?)source["InDBT_18"];
  812.                         InDBT_19 = source["InDBT_19"] is DBNull ? null : (double?)source["InDBT_19"];
  813.                         InDBT_20 = source["InDBT_20"] is DBNull ? null : (double?)source["InDBT_20"];
  814.                         InDBT_21 = source["InDBT_21"] is DBNull ? null : (double?)source["InDBT_21"];
  815.                         InDBT_22 = source["InDBT_22"] is DBNull ? null : (double?)source["InDBT_22"];
  816.                         InDBT_23 = source["InDBT_23"] is DBNull ? null : (double?)source["InDBT_23"];
  817.                         InDBT_24 = source["InDBT_24"] is DBNull ? null : (double?)source["InDBT_24"];
  818.                 }
  819.  
  820.                 public int ID { get; set; }
  821.                 public double? O_RelHumid { get; set; }
  822.                 public double? Odoor_DBT { get; set; }
  823.                 public double? InDBT_16 { get; set; }
  824.                 public double? InDBT_17 { get; set; }
  825.                 public double? InDBT_18 { get; set; }
  826.                 public double? InDBT_19 { get; set; }
  827.                 public double? InDBT_20 { get; set; }
  828.                 public double? InDBT_21 { get; set; }
  829.                 public double? InDBT_22 { get; set; }
  830.                 public double? InDBT_23 { get; set; }
  831.                 public double? InDBT_24 { get; set; }
  832.         }
  833.         public class HeatingFallHeightCoefficien
  834.         {
  835.                 public HeatingFallHeightCoefficien()
  836.                 { }
  837.  
  838.                 public HeatingFallHeightCoefficien(int id, string capacity, double? fallheight, double? coefficien, double? pipelength, double? type)
  839.                 {
  840.                         ID = id;
  841.                         Capacity = capacity;
  842.                         FallHeight = fallheight;
  843.                         Coefficien = coefficien;
  844.                         PipeLength = pipelength;
  845.                         Type = type;
  846.                 }
  847.  
  848.                 public HeatingFallHeightCoefficien(DataRow source)
  849.                 {
  850.                         ID = (int)source["ID"];
  851.                         Capacity = source["Capacity"] is DBNull ? null : (string)source["Capacity"];
  852.                         FallHeight = source["FallHeight"] is DBNull ? null : (double?)source["FallHeight"];
  853.                         Coefficien = source["Coefficien"] is DBNull ? null : (double?)source["Coefficien"];
  854.                         PipeLength = source["PipeLength"] is DBNull ? null : (double?)source["PipeLength"];
  855.                         Type = source["Type"] is DBNull ? null : (double?)source["Type"];
  856.                 }
  857.  
  858.                 public int ID { get; set; }
  859.                 public string Capacity { get; set; }
  860.                 public double? FallHeight { get; set; }
  861.                 public double? Coefficien { get; set; }
  862.                 public double? PipeLength { get; set; }
  863.                 public double? Type { get; set; }
  864.         }
  865.         public class HeatingMatchCoefficient
  866.         {
  867.                 public HeatingMatchCoefficient()
  868.                 { }
  869.  
  870.                 public HeatingMatchCoefficient(int id, double? distributionrate, double? indbt, double? odoor_dbt, double? odoor_wbt, double? tc, double? pi)
  871.                 {
  872.                         ID = id;
  873.                         DistributionRate = distributionrate;
  874.                         InDBT = indbt;
  875.                         Odoor_DBT = odoor_dbt;
  876.                         Odoor_WBT = odoor_wbt;
  877.                         TC = tc;
  878.                         PI = pi;
  879.                 }
  880.  
  881.                 public HeatingMatchCoefficient(DataRow source)
  882.                 {
  883.                         ID = (int)source["ID"];
  884.                         DistributionRate = source["DistributionRate"] is DBNull ? null : (double?)source["DistributionRate"];
  885.                         InDBT = source["InDBT"] is DBNull ? null : (double?)source["InDBT"];
  886.                         Odoor_DBT = source["Odoor_DBT"] is DBNull ? null : (double?)source["Odoor_DBT"];
  887.                         Odoor_WBT = source["Odoor_WBT"] is DBNull ? null : (double?)source["Odoor_WBT"];
  888.                         TC = source["TC"] is DBNull ? null : (double?)source["TC"];
  889.                         PI = source["PI"] is DBNull ? null : (double?)source["PI"];
  890.                 }
  891.  
  892.                 public int ID { get; set; }
  893.                 public double? DistributionRate { get; set; }
  894.                 public double? InDBT { get; set; }
  895.                 public double? Odoor_DBT { get; set; }
  896.                 public double? Odoor_WBT { get; set; }
  897.                 public double? TC { get; set; }
  898.                 public double? PI { get; set; }
  899.         }
  900.         public class HW_Generator
  901.         {
  902.                 public HW_Generator()
  903.                 { }
  904.  
  905.                 public HW_Generator(int id, double? functype, string class, string name, string namecn, string namecustomer, double? hwhcap, double? fhcap, string gaspipedia, string lipipedia, string highpressuregasdia, string height, string length, string width, string weight, string grossweight, string volt, double? freq, double? phases, string wateryield, string soundpressure, string waterpumppower, string waterflow, string headdelivery, string waterpipedia, string screwthread, double? hwhcap_im, double? fhcap_im, string gaspipedia_im, string lipipedia_im, string highpressuregasdia_im, string height_im, string length_im, string width_im, string weight_im, string grossweight_im, string volt_im, double? freq_im, double? phases_im, string wateryield_im, string soundpressure_im, string waterpumppower_im, string waterflow_im, string headdelivery_im, string waterpipedia_im, string screwthread_im)
  906.                 {
  907.                         ID = id;
  908.                         FuncType = functype;
  909.                         Class = class;
  910.                         Name = name;
  911.                         NameCN = namecn;
  912.                         NameCustomer = namecustomer;
  913.                         HWHCap = hwhcap;
  914.                         FHCap = fhcap;
  915.                         GasPipeDia = gaspipedia;
  916.                         LiPipeDia = lipipedia;
  917.                         HighPressureGasDia = highpressuregasdia;
  918.                         Height = height;
  919.                         Length = length;
  920.                         Width = width;
  921.                         Weight = weight;
  922.                         GrossWeight = grossweight;
  923.                         Volt = volt;
  924.                         Freq = freq;
  925.                         Phases = phases;
  926.                         WaterYield = wateryield;
  927.                         SoundPressure = soundpressure;
  928.                         WaterPumpPower = waterpumppower;
  929.                         WaterFlow = waterflow;
  930.                         HeadDelivery = headdelivery;
  931.                         WaterPipeDia = waterpipedia;
  932.                         ScrewThread = screwthread;
  933.                         HWHCap_IM = hwhcap_im;
  934.                         FHCap_IM = fhcap_im;
  935.                         GasPipeDia_IM = gaspipedia_im;
  936.                         LiPipeDia_IM = lipipedia_im;
  937.                         HighPressureGasDia_IM = highpressuregasdia_im;
  938.                         Height_IM = height_im;
  939.                         Length_IM = length_im;
  940.                         Width_IM = width_im;
  941.                         Weight_IM = weight_im;
  942.                         GrossWeight_IM = grossweight_im;
  943.                         Volt_IM = volt_im;
  944.                         Freq_IM = freq_im;
  945.                         Phases_IM = phases_im;
  946.                         WaterYield_IM = wateryield_im;
  947.                         SoundPressure_IM = soundpressure_im;
  948.                         WaterPumpPower_IM = waterpumppower_im;
  949.                         WaterFlow_IM = waterflow_im;
  950.                         HeadDelivery_IM = headdelivery_im;
  951.                         WaterPipeDia_IM = waterpipedia_im;
  952.                         ScrewThread_IM = screwthread_im;
  953.                 }
  954.  
  955.                 public HW_Generator(DataRow source)
  956.                 {
  957.                         ID = (int)source["ID"];
  958.                         FuncType = source["FuncType"] is DBNull ? null : (double?)source["FuncType"];
  959.                         Class = source["Class"] is DBNull ? null : (string)source["Class"];
  960.                         Name = source["Name"] is DBNull ? null : (string)source["Name"];
  961.                         NameCN = source["NameCN"] is DBNull ? null : (string)source["NameCN"];
  962.                         NameCustomer = source["NameCustomer"] is DBNull ? null : (string)source["NameCustomer"];
  963.                         HWHCap = source["HWHCap"] is DBNull ? null : (double?)source["HWHCap"];
  964.                         FHCap = source["FHCap"] is DBNull ? null : (double?)source["FHCap"];
  965.                         GasPipeDia = source["GasPipeDia"] is DBNull ? null : (string)source["GasPipeDia"];
  966.                         LiPipeDia = source["LiPipeDia"] is DBNull ? null : (string)source["LiPipeDia"];
  967.                         HighPressureGasDia = source["HighPressureGasDia"] is DBNull ? null : (string)source["HighPressureGasDia"];
  968.                         Height = source["Height"] is DBNull ? null : (string)source["Height"];
  969.                         Length = source["Length"] is DBNull ? null : (string)source["Length"];
  970.                         Width = source["Width"] is DBNull ? null : (string)source["Width"];
  971.                         Weight = source["Weight"] is DBNull ? null : (string)source["Weight"];
  972.                         GrossWeight = source["GrossWeight"] is DBNull ? null : (string)source["GrossWeight"];
  973.                         Volt = source["Volt"] is DBNull ? null : (string)source["Volt"];
  974.                         Freq = source["Freq"] is DBNull ? null : (double?)source["Freq"];
  975.                         Phases = source["Phases"] is DBNull ? null : (double?)source["Phases"];
  976.                         WaterYield = source["WaterYield"] is DBNull ? null : (string)source["WaterYield"];
  977.                         SoundPressure = source["SoundPressure"] is DBNull ? null : (string)source["SoundPressure"];
  978.                         WaterPumpPower = source["WaterPumpPower"] is DBNull ? null : (string)source["WaterPumpPower"];
  979.                         WaterFlow = source["WaterFlow"] is DBNull ? null : (string)source["WaterFlow"];
  980.                         HeadDelivery = source["HeadDelivery"] is DBNull ? null : (string)source["HeadDelivery"];
  981.                         WaterPipeDia = source["WaterPipeDia"] is DBNull ? null : (string)source["WaterPipeDia"];
  982.                         ScrewThread = source["ScrewThread"] is DBNull ? null : (string)source["ScrewThread"];
  983.                         HWHCap_IM = source["HWHCap_IM"] is DBNull ? null : (double?)source["HWHCap_IM"];
  984.                         FHCap_IM = source["FHCap_IM"] is DBNull ? null : (double?)source["FHCap_IM"];
  985.                         GasPipeDia_IM = source["GasPipeDia_IM"] is DBNull ? null : (string)source["GasPipeDia_IM"];
  986.                         LiPipeDia_IM = source["LiPipeDia_IM"] is DBNull ? null : (string)source["LiPipeDia_IM"];
  987.                         HighPressureGasDia_IM = source["HighPressureGasDia_IM"] is DBNull ? null : (string)source["HighPressureGasDia_IM"];
  988.                         Height_IM = source["Height_IM"] is DBNull ? null : (string)source["Height_IM"];
  989.                         Length_IM = source["Length_IM"] is DBNull ? null : (string)source["Length_IM"];
  990.                         Width_IM = source["Width_IM"] is DBNull ? null : (string)source["Width_IM"];
  991.                         Weight_IM = source["Weight_IM"] is DBNull ? null : (string)source["Weight_IM"];
  992.                         GrossWeight_IM = source["GrossWeight_IM"] is DBNull ? null : (string)source["GrossWeight_IM"];
  993.                         Volt_IM = source["Volt_IM"] is DBNull ? null : (string)source["Volt_IM"];
  994.                         Freq_IM = source["Freq_IM"] is DBNull ? null : (double?)source["Freq_IM"];
  995.                         Phases_IM = source["Phases_IM"] is DBNull ? null : (double?)source["Phases_IM"];
  996.                         WaterYield_IM = source["WaterYield_IM"] is DBNull ? null : (string)source["WaterYield_IM"];
  997.                         SoundPressure_IM = source["SoundPressure_IM"] is DBNull ? null : (string)source["SoundPressure_IM"];
  998.                         WaterPumpPower_IM = source["WaterPumpPower_IM"] is DBNull ? null : (string)source["WaterPumpPower_IM"];
  999.                         WaterFlow_IM = source["WaterFlow_IM"] is DBNull ? null : (string)source["WaterFlow_IM"];
  1000.                         HeadDelivery_IM = source["HeadDelivery_IM"] is DBNull ? null : (string)source["HeadDelivery_IM"];
  1001.                         WaterPipeDia_IM = source["WaterPipeDia_IM"] is DBNull ? null : (string)source["WaterPipeDia_IM"];
  1002.                         ScrewThread_IM = source["ScrewThread_IM"] is DBNull ? null : (string)source["ScrewThread_IM"];
  1003.                 }
  1004.  
  1005.                 public int ID { get; set; }
  1006.                 public double? FuncType { get; set; }
  1007.                 public string Class { get; set; }
  1008.                 public string Name { get; set; }
  1009.                 public string NameCN { get; set; }
  1010.                 public string NameCustomer { get; set; }
  1011.                 public double? HWHCap { get; set; }
  1012.                 public double? FHCap { get; set; }
  1013.                 public string GasPipeDia { get; set; }
  1014.                 public string LiPipeDia { get; set; }
  1015.                 public string HighPressureGasDia { get; set; }
  1016.                 public string Height { get; set; }
  1017.                 public string Length { get; set; }
  1018.                 public string Width { get; set; }
  1019.                 public string Weight { get; set; }
  1020.                 public string GrossWeight { get; set; }
  1021.                 public string Volt { get; set; }
  1022.                 public double? Freq { get; set; }
  1023.                 public double? Phases { get; set; }
  1024.                 public string WaterYield { get; set; }
  1025.                 public string SoundPressure { get; set; }
  1026.                 public string WaterPumpPower { get; set; }
  1027.                 public string WaterFlow { get; set; }
  1028.                 public string HeadDelivery { get; set; }
  1029.                 public string WaterPipeDia { get; set; }
  1030.                 public string ScrewThread { get; set; }
  1031.                 public double? HWHCap_IM { get; set; }
  1032.                 public double? FHCap_IM { get; set; }
  1033.                 public string GasPipeDia_IM { get; set; }
  1034.                 public string LiPipeDia_IM { get; set; }
  1035.                 public string HighPressureGasDia_IM { get; set; }
  1036.                 public string Height_IM { get; set; }
  1037.                 public string Length_IM { get; set; }
  1038.                 public string Width_IM { get; set; }
  1039.                 public string Weight_IM { get; set; }
  1040.                 public string GrossWeight_IM { get; set; }
  1041.                 public string Volt_IM { get; set; }
  1042.                 public double? Freq_IM { get; set; }
  1043.                 public double? Phases_IM { get; set; }
  1044.                 public string WaterYield_IM { get; set; }
  1045.                 public string SoundPressure_IM { get; set; }
  1046.                 public string WaterPumpPower_IM { get; set; }
  1047.                 public string WaterFlow_IM { get; set; }
  1048.                 public string HeadDelivery_IM { get; set; }
  1049.                 public string WaterPipeDia_IM { get; set; }
  1050.                 public string ScrewThread_IM { get; set; }
  1051.         }
  1052.         public class HW_WaterBoxVol
  1053.         {
  1054.                 public HW_WaterBoxVol()
  1055.                 { }
  1056.  
  1057.                 public HW_WaterBoxVol(int id, int? waterboxtype, double? waterboxvol_min, double? waterboxvol_max, int? quantity, string waterboxmodel, int? issolar, int? iscollocation)
  1058.                 {
  1059.                         ID = id;
  1060.                         WaterBoxType = waterboxtype;
  1061.                         WaterBoxVol_Min = waterboxvol_min;
  1062.                         WaterBoxVol_Max = waterboxvol_max;
  1063.                         Quantity = quantity;
  1064.                         WaterBoxModel = waterboxmodel;
  1065.                         IsSolar = issolar;
  1066.                         IsCollocation = iscollocation;
  1067.                 }
  1068.  
  1069.                 public HW_WaterBoxVol(DataRow source)
  1070.                 {
  1071.                         ID = (int)source["ID"];
  1072.                         WaterBoxType = source["WaterBoxType"] is DBNull ? null : (int?)source["WaterBoxType"];
  1073.                         WaterBoxVol_Min = source["WaterBoxVol_Min"] is DBNull ? null : (double?)source["WaterBoxVol_Min"];
  1074.                         WaterBoxVol_Max = source["WaterBoxVol_Max"] is DBNull ? null : (double?)source["WaterBoxVol_Max"];
  1075.                         Quantity = source["Quantity"] is DBNull ? null : (int?)source["Quantity"];
  1076.                         WaterBoxModel = source["WaterBoxModel"] is DBNull ? null : (string)source["WaterBoxModel"];
  1077.                         IsSolar = source["IsSolar"] is DBNull ? null : (int?)source["IsSolar"];
  1078.                         IsCollocation = source["IsCollocation"] is DBNull ? null : (int?)source["IsCollocation"];
  1079.                 }
  1080.  
  1081.                 public int ID { get; set; }
  1082.                 public int? WaterBoxType { get; set; }
  1083.                 public double? WaterBoxVol_Min { get; set; }
  1084.                 public double? WaterBoxVol_Max { get; set; }
  1085.                 public int? Quantity { get; set; }
  1086.                 public string WaterBoxModel { get; set; }
  1087.                 public int? IsSolar { get; set; }
  1088.                 public int? IsCollocation { get; set; }
  1089.         }
  1090.         public class HW_WaterContent
  1091.         {
  1092.                 public HW_WaterContent()
  1093.                 { }
  1094.  
  1095.                 public HW_WaterContent(int id, int? buildingtypeid, double? watercontent, int? minwater, int? maxwater, double? maxusagerate)
  1096.                 {
  1097.                         ID = id;
  1098.                         BuildingTypeId = buildingtypeid;
  1099.                         WaterContent = watercontent;
  1100.                         MinWater = minwater;
  1101.                         MaxWater = maxwater;
  1102.                         MaxUsageRate = maxusagerate;
  1103.                 }
  1104.  
  1105.                 public HW_WaterContent(DataRow source)
  1106.                 {
  1107.                         ID = (int)source["ID"];
  1108.                         BuildingTypeId = source["BuildingTypeId"] is DBNull ? null : (int?)source["BuildingTypeId"];
  1109.                         WaterContent = source["WaterContent"] is DBNull ? null : (double?)source["WaterContent"];
  1110.                         MinWater = source["MinWater"] is DBNull ? null : (int?)source["MinWater"];
  1111.                         MaxWater = source["MaxWater"] is DBNull ? null : (int?)source["MaxWater"];
  1112.                         MaxUsageRate = source["MaxUsageRate"] is DBNull ? null : (double?)source["MaxUsageRate"];
  1113.                 }
  1114.  
  1115.                 public int ID { get; set; }
  1116.                 public int? BuildingTypeId { get; set; }
  1117.                 public double? WaterContent { get; set; }
  1118.                 public int? MinWater { get; set; }
  1119.                 public int? MaxWater { get; set; }
  1120.                 public double? MaxUsageRate { get; set; }
  1121.         }
  1122.         public class HW_WaterPipe
  1123.         {
  1124.                 public HW_WaterPipe()
  1125.                 { }
  1126.  
  1127.                 public HW_WaterPipe(int id, string watertankmodel, double? volume, string pipemodel, string pipemodelside)
  1128.                 {
  1129.                         ID = id;
  1130.                         WaterTankModel = watertankmodel;
  1131.                         Volume = volume;
  1132.                         PipeModel = pipemodel;
  1133.                         PipeModelSide = pipemodelside;
  1134.                 }
  1135.  
  1136.                 public HW_WaterPipe(DataRow source)
  1137.                 {
  1138.                         ID = (int)source["ID"];
  1139.                         WaterTankModel = source["WaterTankModel"] is DBNull ? null : (string)source["WaterTankModel"];
  1140.                         Volume = source["Volume"] is DBNull ? null : (double?)source["Volume"];
  1141.                         PipeModel = source["PipeModel"] is DBNull ? null : (string)source["PipeModel"];
  1142.                         PipeModelSide = source["PipeModelSide"] is DBNull ? null : (string)source["PipeModelSide"];
  1143.                 }
  1144.  
  1145.                 public int ID { get; set; }
  1146.                 public string WaterTankModel { get; set; }
  1147.                 public double? Volume { get; set; }
  1148.                 public string PipeModel { get; set; }
  1149.                 public string PipeModelSide { get; set; }
  1150.         }
  1151.         public class HW_WaterTank
  1152.         {
  1153.                 public HW_WaterTank()
  1154.                 { }
  1155.  
  1156.                 public HW_WaterTank(int id, string class, string name, string namecn, string namecustomer, double? heaterpowerinput, double? volume, double? maxtemperature, double? maxwaterpressure, double? safetymaxpressure, string coilpipetype, double? watertankdia, double? watertankheight, double? circularpipedia, double? coldpipedia, double? hotpipedia, string hotwaterpipespec, string coldwaterpipespec, double? height, double? length, double? width, double? weight, double? grossweight, double? heaterpowerinput_im, double? volume_im, double? maxtemperature_im, double? maxwaterpressure_im, double? safetymaxpressure_im, string coilpipetype_im, string watertankdia_im, double? watertankheight_im, string circularpipedia_im, string coldpipedia_im, string hotpipedia_im, string hotwaterpipespec_im, string coldwaterpipespec_im, double? height_im, double? length_im, double? width_im, double? weight_im, double? grossweight_im)
  1157.                 {
  1158.                         ID = id;
  1159.                         Class = class;
  1160.                         Name = name;
  1161.                         NameCN = namecn;
  1162.                         NameCustomer = namecustomer;
  1163.                         HeaterPowerInput = heaterpowerinput;
  1164.                         Volume = volume;
  1165.                         MaxTemperature = maxtemperature;
  1166.                         MaxWaterPressure = maxwaterpressure;
  1167.                         SafetyMaxPressure = safetymaxpressure;
  1168.                         CoilPipeType = coilpipetype;
  1169.                         WaterTankDia = watertankdia;
  1170.                         WaterTankHeight = watertankheight;
  1171.                         CircularPipeDia = circularpipedia;
  1172.                         ColdPipeDia = coldpipedia;
  1173.                         HotPipeDia = hotpipedia;
  1174.                         HotWaterPipeSpec = hotwaterpipespec;
  1175.                         ColdWaterPipeSpec = coldwaterpipespec;
  1176.                         Height = height;
  1177.                         Length = length;
  1178.                         Width = width;
  1179.                         Weight = weight;
  1180.                         GrossWeight = grossweight;
  1181.                         HeaterPowerInput_IM = heaterpowerinput_im;
  1182.                         Volume_IM = volume_im;
  1183.                         MaxTemperature_IM = maxtemperature_im;
  1184.                         MaxWaterPressure_IM = maxwaterpressure_im;
  1185.                         SafetyMaxPressure_IM = safetymaxpressure_im;
  1186.                         CoilPipeType_IM = coilpipetype_im;
  1187.                         WaterTankDia_IM = watertankdia_im;
  1188.                         WaterTankHeight_IM = watertankheight_im;
  1189.                         CircularPipeDia_IM = circularpipedia_im;
  1190.                         ColdPipeDia_IM = coldpipedia_im;
  1191.                         HotPipeDia_IM = hotpipedia_im;
  1192.                         HotWaterPipeSpec_IM = hotwaterpipespec_im;
  1193.                         ColdWaterPipeSpec_IM = coldwaterpipespec_im;
  1194.                         Height_IM = height_im;
  1195.                         Length_IM = length_im;
  1196.                         Width_IM = width_im;
  1197.                         Weight_IM = weight_im;
  1198.                         GrossWeight_IM = grossweight_im;
  1199.                 }
  1200.  
  1201.                 public HW_WaterTank(DataRow source)
  1202.                 {
  1203.                         ID = (int)source["ID"];
  1204.                         Class = source["Class"] is DBNull ? null : (string)source["Class"];
  1205.                         Name = source["Name"] is DBNull ? null : (string)source["Name"];
  1206.                         NameCN = source["NameCN"] is DBNull ? null : (string)source["NameCN"];
  1207.                         NameCustomer = source["NameCustomer"] is DBNull ? null : (string)source["NameCustomer"];
  1208.                         HeaterPowerInput = source["HeaterPowerInput"] is DBNull ? null : (double?)source["HeaterPowerInput"];
  1209.                         Volume = source["Volume"] is DBNull ? null : (double?)source["Volume"];
  1210.                         MaxTemperature = source["MaxTemperature"] is DBNull ? null : (double?)source["MaxTemperature"];
  1211.                         MaxWaterPressure = source["MaxWaterPressure"] is DBNull ? null : (double?)source["MaxWaterPressure"];
  1212.                         SafetyMaxPressure = source["SafetyMaxPressure"] is DBNull ? null : (double?)source["SafetyMaxPressure"];
  1213.                         CoilPipeType = source["CoilPipeType"] is DBNull ? null : (string)source["CoilPipeType"];
  1214.                         WaterTankDia = source["WaterTankDia"] is DBNull ? null : (double?)source["WaterTankDia"];
  1215.                         WaterTankHeight = source["WaterTankHeight"] is DBNull ? null : (double?)source["WaterTankHeight"];
  1216.                         CircularPipeDia = source["CircularPipeDia"] is DBNull ? null : (double?)source["CircularPipeDia"];
  1217.                         ColdPipeDia = source["ColdPipeDia"] is DBNull ? null : (double?)source["ColdPipeDia"];
  1218.                         HotPipeDia = source["HotPipeDia"] is DBNull ? null : (double?)source["HotPipeDia"];
  1219.                         HotWaterPipeSpec = source["HotWaterPipeSpec"] is DBNull ? null : (string)source["HotWaterPipeSpec"];
  1220.                         ColdWaterPipeSpec = source["ColdWaterPipeSpec"] is DBNull ? null : (string)source["ColdWaterPipeSpec"];
  1221.                         Height = source["Height"] is DBNull ? null : (double?)source["Height"];
  1222.                         Length = source["Length"] is DBNull ? null : (double?)source["Length"];
  1223.                         Width = source["Width"] is DBNull ? null : (double?)source["Width"];
  1224.                         Weight = source["Weight"] is DBNull ? null : (double?)source["Weight"];
  1225.                         GrossWeight = source["GrossWeight"] is DBNull ? null : (double?)source["GrossWeight"];
  1226.                         HeaterPowerInput_IM = source["HeaterPowerInput_IM"] is DBNull ? null : (double?)source["HeaterPowerInput_IM"];
  1227.                         Volume_IM = source["Volume_IM"] is DBNull ? null : (double?)source["Volume_IM"];
  1228.                         MaxTemperature_IM = source["MaxTemperature_IM"] is DBNull ? null : (double?)source["MaxTemperature_IM"];
  1229.                         MaxWaterPressure_IM = source["MaxWaterPressure_IM"] is DBNull ? null : (double?)source["MaxWaterPressure_IM"];
  1230.                         SafetyMaxPressure_IM = source["SafetyMaxPressure_IM"] is DBNull ? null : (double?)source["SafetyMaxPressure_IM"];
  1231.                         CoilPipeType_IM = source["CoilPipeType_IM"] is DBNull ? null : (string)source["CoilPipeType_IM"];
  1232.                         WaterTankDia_IM = source["WaterTankDia_IM"] is DBNull ? null : (string)source["WaterTankDia_IM"];
  1233.                         WaterTankHeight_IM = source["WaterTankHeight_IM"] is DBNull ? null : (double?)source["WaterTankHeight_IM"];
  1234.                         CircularPipeDia_IM = source["CircularPipeDia_IM"] is DBNull ? null : (string)source["CircularPipeDia_IM"];
  1235.                         ColdPipeDia_IM = source["ColdPipeDia_IM"] is DBNull ? null : (string)source["ColdPipeDia_IM"];
  1236.                         HotPipeDia_IM = source["HotPipeDia_IM"] is DBNull ? null : (string)source["HotPipeDia_IM"];
  1237.                         HotWaterPipeSpec_IM = source["HotWaterPipeSpec_IM"] is DBNull ? null : (string)source["HotWaterPipeSpec_IM"];
  1238.                         ColdWaterPipeSpec_IM = source["ColdWaterPipeSpec_IM"] is DBNull ? null : (string)source["ColdWaterPipeSpec_IM"];
  1239.                         Height_IM = source["Height_IM"] is DBNull ? null : (double?)source["Height_IM"];
  1240.                         Length_IM = source["Length_IM"] is DBNull ? null : (double?)source["Length_IM"];
  1241.                         Width_IM = source["Width_IM"] is DBNull ? null : (double?)source["Width_IM"];
  1242.                         Weight_IM = source["Weight_IM"] is DBNull ? null : (double?)source["Weight_IM"];
  1243.                         GrossWeight_IM = source["GrossWeight_IM"] is DBNull ? null : (double?)source["GrossWeight_IM"];
  1244.                 }
  1245.  
  1246.                 public int ID { get; set; }
  1247.                 public string Class { get; set; }
  1248.                 public string Name { get; set; }
  1249.                 public string NameCN { get; set; }
  1250.                 public string NameCustomer { get; set; }
  1251.                 public double? HeaterPowerInput { get; set; }
  1252.                 public double? Volume { get; set; }
  1253.                 public double? MaxTemperature { get; set; }
  1254.                 public double? MaxWaterPressure { get; set; }
  1255.                 public double? SafetyMaxPressure { get; set; }
  1256.                 public string CoilPipeType { get; set; }
  1257.                 public double? WaterTankDia { get; set; }
  1258.                 public double? WaterTankHeight { get; set; }
  1259.                 public double? CircularPipeDia { get; set; }
  1260.                 public double? ColdPipeDia { get; set; }
  1261.                 public double? HotPipeDia { get; set; }
  1262.                 public string HotWaterPipeSpec { get; set; }
  1263.                 public string ColdWaterPipeSpec { get; set; }
  1264.                 public double? Height { get; set; }
  1265.                 public double? Length { get; set; }
  1266.                 public double? Width { get; set; }
  1267.                 public double? Weight { get; set; }
  1268.                 public double? GrossWeight { get; set; }
  1269.                 public double? HeaterPowerInput_IM { get; set; }
  1270.                 public double? Volume_IM { get; set; }
  1271.                 public double? MaxTemperature_IM { get; set; }
  1272.                 public double? MaxWaterPressure_IM { get; set; }
  1273.                 public double? SafetyMaxPressure_IM { get; set; }
  1274.                 public string CoilPipeType_IM { get; set; }
  1275.                 public string WaterTankDia_IM { get; set; }
  1276.                 public double? WaterTankHeight_IM { get; set; }
  1277.                 public string CircularPipeDia_IM { get; set; }
  1278.                 public string ColdPipeDia_IM { get; set; }
  1279.                 public string HotPipeDia_IM { get; set; }
  1280.                 public string HotWaterPipeSpec_IM { get; set; }
  1281.                 public string ColdWaterPipeSpec_IM { get; set; }
  1282.                 public double? Height_IM { get; set; }
  1283.                 public double? Length_IM { get; set; }
  1284.                 public double? Width_IM { get; set; }
  1285.                 public double? Weight_IM { get; set; }
  1286.                 public double? GrossWeight_IM { get; set; }
  1287.         }
  1288.         public class HW_WaterTank_Odus
  1289.         {
  1290.                 public HW_WaterTank_Odus()
  1291.                 { }
  1292.  
  1293.                 public HW_WaterTank_Odus(int id, int? waterheatertype, string odusmodel, string watertankmodel, int? issolar, int? iscollocation, string remark)
  1294.                 {
  1295.                         ID = id;
  1296.                         WaterHeaterType = waterheatertype;
  1297.                         OdusModel = odusmodel;
  1298.                         WaterTankModel = watertankmodel;
  1299.                         IsSolar = issolar;
  1300.                         IsCollocation = iscollocation;
  1301.                         Remark = remark;
  1302.                 }
  1303.  
  1304.                 public HW_WaterTank_Odus(DataRow source)
  1305.                 {
  1306.                         ID = (int)source["ID"];
  1307.                         WaterHeaterType = source["WaterHeaterType"] is DBNull ? null : (int?)source["WaterHeaterType"];
  1308.                         OdusModel = source["OdusModel"] is DBNull ? null : (string)source["OdusModel"];
  1309.                         WaterTankModel = source["WaterTankModel"] is DBNull ? null : (string)source["WaterTankModel"];
  1310.                         IsSolar = source["IsSolar"] is DBNull ? null : (int?)source["IsSolar"];
  1311.                         IsCollocation = source["IsCollocation"] is DBNull ? null : (int?)source["IsCollocation"];
  1312.                         Remark = source["Remark"] is DBNull ? null : (string)source["Remark"];
  1313.                 }
  1314.  
  1315.                 public int ID { get; set; }
  1316.                 public int? WaterHeaterType { get; set; }
  1317.                 public string OdusModel { get; set; }
  1318.                 public string WaterTankModel { get; set; }
  1319.                 public int? IsSolar { get; set; }
  1320.                 public int? IsCollocation { get; set; }
  1321.                 public string Remark { get; set; }
  1322.         }
  1323.         public class HW_WaterTankMaxQty
  1324.         {
  1325.                 public HW_WaterTankMaxQty()
  1326.                 { }
  1327.  
  1328.                 public HW_WaterTankMaxQty(int id, string odusmodel, int? watertankmaxqty)
  1329.                 {
  1330.                         ID = id;
  1331.                         OdusModel = odusmodel;
  1332.                         WaterTankMaxQty = watertankmaxqty;
  1333.                 }
  1334.  
  1335.                 public HW_WaterTankMaxQty(DataRow source)
  1336.                 {
  1337.                         ID = (int)source["ID"];
  1338.                         OdusModel = source["OdusModel"] is DBNull ? null : (string)source["OdusModel"];
  1339.                         WaterTankMaxQty = source["WaterTankMaxQty"] is DBNull ? null : (int?)source["WaterTankMaxQty"];
  1340.                 }
  1341.  
  1342.                 public int ID { get; set; }
  1343.                 public string OdusModel { get; set; }
  1344.                 public int? WaterTankMaxQty { get; set; }
  1345.         }
  1346.         public class idus
  1347.         {
  1348.                 public idus()
  1349.                 { }
  1350.  
  1351.                 public idus(int id, string class, string seriesname, string refrigerant, string name, double? coolcap, double? heatcap, double? functype, string comment, string namecn, double? aiheatpower, string namecustomer, string pdf_name, double? aiheat_curr, string fan_power, string fan_curr, string windvol, string windvol_m, string windvol_l, double? stasurpres, double? adjsurpres, string dpipe_unit, double? drpipethickness, string gaspipedia, string gpipe_unit, string drpipeodia, double? highpressure, string lipipedia, string height, string length, string width, string weight, string volt, double? freq, double? phases, double? plinedia, double? plinecount, string anti_electric_shock_protect_type, string breaker, string conmethod, string drain_pipedia, double? drain_pipethic, double? noise, string static_pressure, string pacdim_w, string pacdim_d, string pacdim_h, double? addrefrigerant)
  1352.                 {
  1353.                         ID = id;
  1354.                         Class = class;
  1355.                         SeriesName = seriesname;
  1356.                         Refrigerant = refrigerant;
  1357.                         Name = name;
  1358.                         CoolCap = coolcap;
  1359.                         HeatCap = heatcap;
  1360.                         FuncType = functype;
  1361.                         Comment = comment;
  1362.                         NameCN = namecn;
  1363.                         AiHeatPower = aiheatpower;
  1364.                         NameCustomer = namecustomer;
  1365.                         PDF_Name = pdf_name;
  1366.                         AiHeat_Curr = aiheat_curr;
  1367.                         Fan_Power = fan_power;
  1368.                         Fan_Curr = fan_curr;
  1369.                         WindVol = windvol;
  1370.                         WindVol_M = windvol_m;
  1371.                         WindVol_L = windvol_l;
  1372.                         StaSurPres = stasurpres;
  1373.                         AdjSurPres = adjsurpres;
  1374.                         DPipe_Unit = dpipe_unit;
  1375.                         DrPipeThickness = drpipethickness;
  1376.                         GasPipeDia = gaspipedia;
  1377.                         GPipe_Unit = gpipe_unit;
  1378.                         DrPipeODia = drpipeodia;
  1379.                         HighPressure = highpressure;
  1380.                         LiPipeDia = lipipedia;
  1381.                         Height = height;
  1382.                         Length = length;
  1383.                         Width = width;
  1384.                         Weight = weight;
  1385.                         Volt = volt;
  1386.                         Freq = freq;
  1387.                         Phases = phases;
  1388.                         PLineDia = plinedia;
  1389.                         PLineCount = plinecount;
  1390.                         Anti_electric_shock_protect_type = anti_electric_shock_protect_type;
  1391.                         Breaker = breaker;
  1392.                         ConMethod = conmethod;
  1393.                         Drain_pipeDia = drain_pipedia;
  1394.                         Drain_pipeThic = drain_pipethic;
  1395.                         Noise = noise;
  1396.                         Static_Pressure = static_pressure;
  1397.                         PacDim_W = pacdim_w;
  1398.                         PacDim_D = pacdim_d;
  1399.                         PacDim_H = pacdim_h;
  1400.                         AddRefrigerant = addrefrigerant;
  1401.                 }
  1402.  
  1403.                 public idus(DataRow source)
  1404.                 {
  1405.                         ID = (int)source["ID"];
  1406.                         Class = source["Class"] is DBNull ? null : (string)source["Class"];
  1407.                         SeriesName = source["SeriesName"] is DBNull ? null : (string)source["SeriesName"];
  1408.                         Refrigerant = source["Refrigerant"] is DBNull ? null : (string)source["Refrigerant"];
  1409.                         Name = source["Name"] is DBNull ? null : (string)source["Name"];
  1410.                         CoolCap = source["CoolCap"] is DBNull ? null : (double?)source["CoolCap"];
  1411.                         HeatCap = source["HeatCap"] is DBNull ? null : (double?)source["HeatCap"];
  1412.                         FuncType = source["FuncType"] is DBNull ? null : (double?)source["FuncType"];
  1413.                         Comment = source["Comment"] is DBNull ? null : (string)source["Comment"];
  1414.                         NameCN = source["NameCN"] is DBNull ? null : (string)source["NameCN"];
  1415.                         AiHeatPower = source["AiHeatPower"] is DBNull ? null : (double?)source["AiHeatPower"];
  1416.                         NameCustomer = source["NameCustomer"] is DBNull ? null : (string)source["NameCustomer"];
  1417.                         PDF_Name = source["PDF_Name"] is DBNull ? null : (string)source["PDF_Name"];
  1418.                         AiHeat_Curr = source["AiHeat_Curr"] is DBNull ? null : (double?)source["AiHeat_Curr"];
  1419.                         Fan_Power = source["Fan_Power"] is DBNull ? null : (string)source["Fan_Power"];
  1420.                         Fan_Curr = source["Fan_Curr"] is DBNull ? null : (string)source["Fan_Curr"];
  1421.                         WindVol = source["WindVol"] is DBNull ? null : (string)source["WindVol"];
  1422.                         WindVol_M = source["WindVol_M"] is DBNull ? null : (string)source["WindVol_M"];
  1423.                         WindVol_L = source["WindVol_L"] is DBNull ? null : (string)source["WindVol_L"];
  1424.                         StaSurPres = source["StaSurPres"] is DBNull ? null : (double?)source["StaSurPres"];
  1425.                         AdjSurPres = source["AdjSurPres"] is DBNull ? null : (double?)source["AdjSurPres"];
  1426.                         DPipe_Unit = source["DPipe_Unit"] is DBNull ? null : (string)source["DPipe_Unit"];
  1427.                         DrPipeThickness = source["DrPipeThickness"] is DBNull ? null : (double?)source["DrPipeThickness"];
  1428.                         GasPipeDia = source["GasPipeDia"] is DBNull ? null : (string)source["GasPipeDia"];
  1429.                         GPipe_Unit = source["GPipe_Unit"] is DBNull ? null : (string)source["GPipe_Unit"];
  1430.                         DrPipeODia = source["DrPipeODia"] is DBNull ? null : (string)source["DrPipeODia"];
  1431.                         HighPressure = source["HighPressure"] is DBNull ? null : (double?)source["HighPressure"];
  1432.                         LiPipeDia = source["LiPipeDia"] is DBNull ? null : (string)source["LiPipeDia"];
  1433.                         Height = source["Height"] is DBNull ? null : (string)source["Height"];
  1434.                         Length = source["Length"] is DBNull ? null : (string)source["Length"];
  1435.                         Width = source["Width"] is DBNull ? null : (string)source["Width"];
  1436.                         Weight = source["Weight"] is DBNull ? null : (string)source["Weight"];
  1437.                         Volt = source["Volt"] is DBNull ? null : (string)source["Volt"];
  1438.                         Freq = source["Freq"] is DBNull ? null : (double?)source["Freq"];
  1439.                         Phases = source["Phases"] is DBNull ? null : (double?)source["Phases"];
  1440.                         PLineDia = source["PLineDia"] is DBNull ? null : (double?)source["PLineDia"];
  1441.                         PLineCount = source["PLineCount"] is DBNull ? null : (double?)source["PLineCount"];
  1442.                         Anti_electric_shock_protect_type = source["Anti_electric_shock_protect_type"] is DBNull ? null : (string)source["Anti_electric_shock_protect_type"];
  1443.                         Breaker = source["Breaker"] is DBNull ? null : (string)source["Breaker"];
  1444.                         ConMethod = source["ConMethod"] is DBNull ? null : (string)source["ConMethod"];
  1445.                         Drain_pipeDia = source["Drain_pipeDia"] is DBNull ? null : (string)source["Drain_pipeDia"];
  1446.                         Drain_pipeThic = source["Drain_pipeThic"] is DBNull ? null : (double?)source["Drain_pipeThic"];
  1447.                         Noise = source["Noise"] is DBNull ? null : (double?)source["Noise"];
  1448.                         Static_Pressure = source["Static_Pressure"] is DBNull ? null : (string)source["Static_Pressure"];
  1449.                         PacDim_W = source["PacDim_W"] is DBNull ? null : (string)source["PacDim_W"];
  1450.                         PacDim_D = source["PacDim_D"] is DBNull ? null : (string)source["PacDim_D"];
  1451.                         PacDim_H = source["PacDim_H"] is DBNull ? null : (string)source["PacDim_H"];
  1452.                         AddRefrigerant = source["AddRefrigerant"] is DBNull ? null : (double?)source["AddRefrigerant"];
  1453.                 }
  1454.  
  1455.                 public int ID { get; set; }
  1456.                 public string Class { get; set; }
  1457.                 public string SeriesName { get; set; }
  1458.                 public string Refrigerant { get; set; }
  1459.                 public string Name { get; set; }
  1460.                 public double? CoolCap { get; set; }
  1461.                 public double? HeatCap { get; set; }
  1462.                 public double? FuncType { get; set; }
  1463.                 public string Comment { get; set; }
  1464.                 public string NameCN { get; set; }
  1465.                 public double? AiHeatPower { get; set; }
  1466.                 public string NameCustomer { get; set; }
  1467.                 public string PDF_Name { get; set; }
  1468.                 public double? AiHeat_Curr { get; set; }
  1469.                 public string Fan_Power { get; set; }
  1470.                 public string Fan_Curr { get; set; }
  1471.                 public string WindVol { get; set; }
  1472.                 public string WindVol_M { get; set; }
  1473.                 public string WindVol_L { get; set; }
  1474.                 public double? StaSurPres { get; set; }
  1475.                 public double? AdjSurPres { get; set; }
  1476.                 public string DPipe_Unit { get; set; }
  1477.                 public double? DrPipeThickness { get; set; }
  1478.                 public string GasPipeDia { get; set; }
  1479.                 public string GPipe_Unit { get; set; }
  1480.                 public string DrPipeODia { get; set; }
  1481.                 public double? HighPressure { get; set; }
  1482.                 public string LiPipeDia { get; set; }
  1483.                 public string Height { get; set; }
  1484.                 public string Length { get; set; }
  1485.                 public string Width { get; set; }
  1486.                 public string Weight { get; set; }
  1487.                 public string Volt { get; set; }
  1488.                 public double? Freq { get; set; }
  1489.                 public double? Phases { get; set; }
  1490.                 public double? PLineDia { get; set; }
  1491.                 public double? PLineCount { get; set; }
  1492.                 public string Anti_electric_shock_protect_type { get; set; }
  1493.                 public string Breaker { get; set; }
  1494.                 public string ConMethod { get; set; }
  1495.                 public string Drain_pipeDia { get; set; }
  1496.                 public double? Drain_pipeThic { get; set; }
  1497.                 public double? Noise { get; set; }
  1498.                 public string Static_Pressure { get; set; }
  1499.                 public string PacDim_W { get; set; }
  1500.                 public string PacDim_D { get; set; }
  1501.                 public string PacDim_H { get; set; }
  1502.                 public double? AddRefrigerant { get; set; }
  1503.         }
  1504.         public class idus_im
  1505.         {
  1506.                 public idus_im()
  1507.                 { }
  1508.  
  1509.                 public idus_im(int id, string class, string seriesname, string refrigerant, string name, string coolcap, string heatcap, string functype, string comment, string namecn, string aiheatpower, string namecustomer, string pdf_name, string aiheat_curr, string fan_power, string fan_curr, string windvol, string windvol_m, string windvol_l, string adjsurpres, string dpipe_unit, string drpipethickness, string drpipeodia, string gaspipedia, string gpipe_unit, string height, string highpressure, string lipipedia, string length, string width, string weight, string volt, string freq, string phases, string plinedia, string plinecount, string anti_electric_shock_protect_type, string breaker, string conmethod, string drain_pipedia, string drain_pipethic, string noise, string static_pressure, string stasurpres, string pacdim_w, string pacdim_d, string pacdim_h, string addrefrigerant)
  1510.                 {
  1511.                         ID = id;
  1512.                         Class = class;
  1513.                         SeriesName = seriesname;
  1514.                         Refrigerant = refrigerant;
  1515.                         Name = name;
  1516.                         CoolCap = coolcap;
  1517.                         HeatCap = heatcap;
  1518.                         FuncType = functype;
  1519.                         Comment = comment;
  1520.                         NameCN = namecn;
  1521.                         AiHeatPower = aiheatpower;
  1522.                         NameCustomer = namecustomer;
  1523.                         PDF_Name = pdf_name;
  1524.                         AiHeat_Curr = aiheat_curr;
  1525.                         Fan_Power = fan_power;
  1526.                         Fan_Curr = fan_curr;
  1527.                         WindVol = windvol;
  1528.                         WindVol_M = windvol_m;
  1529.                         WindVol_L = windvol_l;
  1530.                         AdjSurPres = adjsurpres;
  1531.                         DPipe_Unit = dpipe_unit;
  1532.                         DrPipeThickness = drpipethickness;
  1533.                         DrPipeODia = drpipeodia;
  1534.                         GasPipeDia = gaspipedia;
  1535.                         GPipe_Unit = gpipe_unit;
  1536.                         Height = height;
  1537.                         HighPressure = highpressure;
  1538.                         LiPipeDia = lipipedia;
  1539.                         Length = length;
  1540.                         Width = width;
  1541.                         Weight = weight;
  1542.                         Volt = volt;
  1543.                         Freq = freq;
  1544.                         Phases = phases;
  1545.                         PLineDia = plinedia;
  1546.                         PLineCount = plinecount;
  1547.                         Anti_electric_shock_protect_type = anti_electric_shock_protect_type;
  1548.                         Breaker = breaker;
  1549.                         ConMethod = conmethod;
  1550.                         Drain_pipeDia = drain_pipedia;
  1551.                         Drain_pipeThic = drain_pipethic;
  1552.                         Noise = noise;
  1553.                         Static_Pressure = static_pressure;
  1554.                         StaSurPres = stasurpres;
  1555.                         PacDim_W = pacdim_w;
  1556.                         PacDim_D = pacdim_d;
  1557.                         PacDim_H = pacdim_h;
  1558.                         AddRefrigerant = addrefrigerant;
  1559.                 }
  1560.  
  1561.                 public idus_im(DataRow source)
  1562.                 {
  1563.                         ID = (int)source["ID"];
  1564.                         Class = source["Class"] is DBNull ? null : (string)source["Class"];
  1565.                         SeriesName = source["SeriesName"] is DBNull ? null : (string)source["SeriesName"];
  1566.                         Refrigerant = source["Refrigerant"] is DBNull ? null : (string)source["Refrigerant"];
  1567.                         Name = source["Name"] is DBNull ? null : (string)source["Name"];
  1568.                         CoolCap = source["CoolCap"] is DBNull ? null : (string)source["CoolCap"];
  1569.                         HeatCap = source["HeatCap"] is DBNull ? null : (string)source["HeatCap"];
  1570.                         FuncType = source["FuncType"] is DBNull ? null : (string)source["FuncType"];
  1571.                         Comment = source["Comment"] is DBNull ? null : (string)source["Comment"];
  1572.                         NameCN = source["NameCN"] is DBNull ? null : (string)source["NameCN"];
  1573.                         AiHeatPower = source["AiHeatPower"] is DBNull ? null : (string)source["AiHeatPower"];
  1574.                         NameCustomer = source["NameCustomer"] is DBNull ? null : (string)source["NameCustomer"];
  1575.                         PDF_Name = source["PDF_Name"] is DBNull ? null : (string)source["PDF_Name"];
  1576.                         AiHeat_Curr = source["AiHeat_Curr"] is DBNull ? null : (string)source["AiHeat_Curr"];
  1577.                         Fan_Power = source["Fan_Power"] is DBNull ? null : (string)source["Fan_Power"];
  1578.                         Fan_Curr = source["Fan_Curr"] is DBNull ? null : (string)source["Fan_Curr"];
  1579.                         WindVol = source["WindVol"] is DBNull ? null : (string)source["WindVol"];
  1580.                         WindVol_M = source["WindVol_M"] is DBNull ? null : (string)source["WindVol_M"];
  1581.                         WindVol_L = source["WindVol_L"] is DBNull ? null : (string)source["WindVol_L"];
  1582.                         AdjSurPres = source["AdjSurPres"] is DBNull ? null : (string)source["AdjSurPres"];
  1583.                         DPipe_Unit = source["DPipe_Unit"] is DBNull ? null : (string)source["DPipe_Unit"];
  1584.                         DrPipeThickness = source["DrPipeThickness"] is DBNull ? null : (string)source["DrPipeThickness"];
  1585.                         DrPipeODia = source["DrPipeODia"] is DBNull ? null : (string)source["DrPipeODia"];
  1586.                         GasPipeDia = source["GasPipeDia"] is DBNull ? null : (string)source["GasPipeDia"];
  1587.                         GPipe_Unit = source["GPipe_Unit"] is DBNull ? null : (string)source["GPipe_Unit"];
  1588.                         Height = source["Height"] is DBNull ? null : (string)source["Height"];
  1589.                         HighPressure = source["HighPressure"] is DBNull ? null : (string)source["HighPressure"];
  1590.                         LiPipeDia = source["LiPipeDia"] is DBNull ? null : (string)source["LiPipeDia"];
  1591.                         Length = source["Length"] is DBNull ? null : (string)source["Length"];
  1592.                         Width = source["Width"] is DBNull ? null : (string)source["Width"];
  1593.                         Weight = source["Weight"] is DBNull ? null : (string)source["Weight"];
  1594.                         Volt = source["Volt"] is DBNull ? null : (string)source["Volt"];
  1595.                         Freq = source["Freq"] is DBNull ? null : (string)source["Freq"];
  1596.                         Phases = source["Phases"] is DBNull ? null : (string)source["Phases"];
  1597.                         PLineDia = source["PLineDia"] is DBNull ? null : (string)source["PLineDia"];
  1598.                         PLineCount = source["PLineCount"] is DBNull ? null : (string)source["PLineCount"];
  1599.                         Anti_electric_shock_protect_type = source["Anti_electric_shock_protect_type"] is DBNull ? null : (string)source["Anti_electric_shock_protect_type"];
  1600.                         Breaker = source["Breaker"] is DBNull ? null : (string)source["Breaker"];
  1601.                         ConMethod = source["ConMethod"] is DBNull ? null : (string)source["ConMethod"];
  1602.                         Drain_pipeDia = source["Drain_pipeDia"] is DBNull ? null : (string)source["Drain_pipeDia"];
  1603.                         Drain_pipeThic = source["Drain_pipeThic"] is DBNull ? null : (string)source["Drain_pipeThic"];
  1604.                         Noise = source["Noise"] is DBNull ? null : (string)source["Noise"];
  1605.                         Static_Pressure = source["Static_Pressure"] is DBNull ? null : (string)source["Static_Pressure"];
  1606.                         StaSurPres = source["StaSurPres"] is DBNull ? null : (string)source["StaSurPres"];
  1607.                         PacDim_W = source["PacDim_W"] is DBNull ? null : (string)source["PacDim_W"];
  1608.                         PacDim_D = source["PacDim_D"] is DBNull ? null : (string)source["PacDim_D"];
  1609.                         PacDim_H = source["PacDim_H"] is DBNull ? null : (string)source["PacDim_H"];
  1610.                         AddRefrigerant = source["AddRefrigerant"] is DBNull ? null : (string)source["AddRefrigerant"];
  1611.                 }
  1612.  
  1613.                 public int ID { get; set; }
  1614.                 public string Class { get; set; }
  1615.                 public string SeriesName { get; set; }
  1616.                 public string Refrigerant { get; set; }
  1617.                 public string Name { get; set; }
  1618.                 public string CoolCap { get; set; }
  1619.                 public string HeatCap { get; set; }
  1620.                 public string FuncType { get; set; }
  1621.                 public string Comment { get; set; }
  1622.                 public string NameCN { get; set; }
  1623.                 public string AiHeatPower { get; set; }
  1624.                 public string NameCustomer { get; set; }
  1625.                 public string PDF_Name { get; set; }
  1626.                 public string AiHeat_Curr { get; set; }
  1627.                 public string Fan_Power { get; set; }
  1628.                 public string Fan_Curr { get; set; }
  1629.                 public string WindVol { get; set; }
  1630.                 public string WindVol_M { get; set; }
  1631.                 public string WindVol_L { get; set; }
  1632.                 public string AdjSurPres { get; set; }
  1633.                 public string DPipe_Unit { get; set; }
  1634.                 public string DrPipeThickness { get; set; }
  1635.                 public string DrPipeODia { get; set; }
  1636.                 public string GasPipeDia { get; set; }
  1637.                 public string GPipe_Unit { get; set; }
  1638.                 public string Height { get; set; }
  1639.                 public string HighPressure { get; set; }
  1640.                 public string LiPipeDia { get; set; }
  1641.                 public string Length { get; set; }
  1642.                 public string Width { get; set; }
  1643.                 public string Weight { get; set; }
  1644.                 public string Volt { get; set; }
  1645.                 public string Freq { get; set; }
  1646.                 public string Phases { get; set; }
  1647.                 public string PLineDia { get; set; }
  1648.                 public string PLineCount { get; set; }
  1649.                 public string Anti_electric_shock_protect_type { get; set; }
  1650.                 public string Breaker { get; set; }
  1651.                 public string ConMethod { get; set; }
  1652.                 public string Drain_pipeDia { get; set; }
  1653.                 public string Drain_pipeThic { get; set; }
  1654.                 public string Noise { get; set; }
  1655.                 public string Static_Pressure { get; set; }
  1656.                 public string StaSurPres { get; set; }
  1657.                 public string PacDim_W { get; set; }
  1658.                 public string PacDim_D { get; set; }
  1659.                 public string PacDim_H { get; set; }
  1660.                 public string AddRefrigerant { get; set; }
  1661.         }
  1662.         public class IdusBranchTubeTie
  1663.         {
  1664.                 public IdusBranchTubeTie()
  1665.                 { }
  1666.  
  1667.                 public IdusBranchTubeTie(int id, float? minenergy, float? maxenergy, string ltubediameter, string gtubediameter1, string gtubediameter2, int? areaid, int? type)
  1668.                 {
  1669.                         ID = id;
  1670.                         MinEnergy = minenergy;
  1671.                         MaxEnergy = maxenergy;
  1672.                         LTubeDiameter = ltubediameter;
  1673.                         GTubeDiameter1 = gtubediameter1;
  1674.                         GTubeDiameter2 = gtubediameter2;
  1675.                         AreaId = areaid;
  1676.                         Type = type;
  1677.                 }
  1678.  
  1679.                 public IdusBranchTubeTie(DataRow source)
  1680.                 {
  1681.                         ID = (int)source["ID"];
  1682.                         MinEnergy = source["MinEnergy"] is DBNull ? null : (float?)source["MinEnergy"];
  1683.                         MaxEnergy = source["MaxEnergy"] is DBNull ? null : (float?)source["MaxEnergy"];
  1684.                         LTubeDiameter = source["LTubeDiameter"] is DBNull ? null : (string)source["LTubeDiameter"];
  1685.                         GTubeDiameter1 = (string)source["GTubeDiameter1"];
  1686.                         GTubeDiameter2 = source["GTubeDiameter2"] is DBNull ? null : (string)source["GTubeDiameter2"];
  1687.                         AreaId = source["AreaId"] is DBNull ? null : (int?)source["AreaId"];
  1688.                         Type = source["Type"] is DBNull ? null : (int?)source["Type"];
  1689.                 }
  1690.  
  1691.                 public int ID { get; set; }
  1692.                 public float? MinEnergy { get; set; }
  1693.                 public float? MaxEnergy { get; set; }
  1694.                 public string LTubeDiameter { get; set; }
  1695.                 public string GTubeDiameter1 { get; set; }
  1696.                 public string GTubeDiameter2 { get; set; }
  1697.                 public int? AreaId { get; set; }
  1698.                 public int? Type { get; set; }
  1699.         }
  1700.         public class IdusCapacity
  1701.         {
  1702.                 public IdusCapacity()
  1703.                 { }
  1704.  
  1705.                 public IdusCapacity(int id, int? area_id, double? maxcapacity, double? iduscapacity, double? mincapacity, double? conductingsectional, double? groundsectional, double? type)
  1706.                 {
  1707.                         ID = id;
  1708.                         Area_ID = area_id;
  1709.                         MaxCapacity = maxcapacity;
  1710.                         IdusCapacity = iduscapacity;
  1711.                         MinCapacity = mincapacity;
  1712.                         ConductingSectional = conductingsectional;
  1713.                         GroundSectional = groundsectional;
  1714.                         Type = type;
  1715.                 }
  1716.  
  1717.                 public IdusCapacity(DataRow source)
  1718.                 {
  1719.                         ID = (int)source["ID"];
  1720.                         Area_ID = source["Area_ID"] is DBNull ? null : (int?)source["Area_ID"];
  1721.                         MaxCapacity = source["MaxCapacity"] is DBNull ? null : (double?)source["MaxCapacity"];
  1722.                         IdusCapacity = source["IdusCapacity"] is DBNull ? null : (double?)source["IdusCapacity"];
  1723.                         MinCapacity = source["MinCapacity"] is DBNull ? null : (double?)source["MinCapacity"];
  1724.                         ConductingSectional = source["ConductingSectional"] is DBNull ? null : (double?)source["ConductingSectional"];
  1725.                         GroundSectional = source["GroundSectional"] is DBNull ? null : (double?)source["GroundSectional"];
  1726.                         Type = source["Type"] is DBNull ? null : (double?)source["Type"];
  1727.                 }
  1728.  
  1729.                 public int ID { get; set; }
  1730.                 public int? Area_ID { get; set; }
  1731.                 public double? MaxCapacity { get; set; }
  1732.                 public double? IdusCapacity { get; set; }
  1733.                 public double? MinCapacity { get; set; }
  1734.                 public double? ConductingSectional { get; set; }
  1735.                 public double? GroundSectional { get; set; }
  1736.                 public double? Type { get; set; }
  1737.         }
  1738.         public class IdusImportParameter
  1739.         {
  1740.                 public IdusImportParameter()
  1741.                 { }
  1742.  
  1743.                 public IdusImportParameter(int id, string idusname, string picturename)
  1744.                 {
  1745.                         ID = id;
  1746.                         IdusName = idusname;
  1747.                         PictureName = picturename;
  1748.                 }
  1749.  
  1750.                 public IdusImportParameter(DataRow source)
  1751.                 {
  1752.                         ID = (int)source["ID"];
  1753.                         IdusName = source["IdusName"] is DBNull ? null : (string)source["IdusName"];
  1754.                         PictureName = source["PictureName"] is DBNull ? null : (string)source["PictureName"];
  1755.                 }
  1756.  
  1757.                 public int ID { get; set; }
  1758.                 public string IdusName { get; set; }
  1759.                 public string PictureName { get; set; }
  1760.         }
  1761.         public class IdusPressure
  1762.         {
  1763.                 public IdusPressure()
  1764.                 { }
  1765.  
  1766.                 public IdusPressure(int id, double? display, double? indoorserialid, string description, int? area, int? type)
  1767.                 {
  1768.                         ID = id;
  1769.                         DisPlay = display;
  1770.                         IndoorSerialId = indoorserialid;
  1771.                         Description = description;
  1772.                         Area = area;
  1773.                         Type = type;
  1774.                 }
  1775.  
  1776.                 public IdusPressure(DataRow source)
  1777.                 {
  1778.                         ID = (int)source["ID"];
  1779.                         DisPlay = source["DisPlay"] is DBNull ? null : (double?)source["DisPlay"];
  1780.                         IndoorSerialId = source["IndoorSerialId"] is DBNull ? null : (double?)source["IndoorSerialId"];
  1781.                         Description = source["Description"] is DBNull ? null : (string)source["Description"];
  1782.                         Area = source["Area"] is DBNull ? null : (int?)source["Area"];
  1783.                         Type = source["Type"] is DBNull ? null : (int?)source["Type"];
  1784.                 }
  1785.  
  1786.                 public int ID { get; set; }
  1787.                 public double? DisPlay { get; set; }
  1788.                 public double? IndoorSerialId { get; set; }
  1789.                 public string Description { get; set; }
  1790.                 public int? Area { get; set; }
  1791.                 public int? Type { get; set; }
  1792.         }
  1793.         public class IdusPressureItem
  1794.         {
  1795.                 public IdusPressureItem()
  1796.                 { }
  1797.  
  1798.                 public IdusPressureItem(int id, string defaultpressure, double? iduspressureid, string model, string pressure_optional, double? capacitymin, string desctiption, double? capacitymax)
  1799.                 {
  1800.                         ID = id;
  1801.                         DefaultPressure = defaultpressure;
  1802.                         IdusPressureId = iduspressureid;
  1803.                         Model = model;
  1804.                         Pressure_Optional = pressure_optional;
  1805.                         CapacityMin = capacitymin;
  1806.                         Desctiption = desctiption;
  1807.                         CapacityMax = capacitymax;
  1808.                 }
  1809.  
  1810.                 public IdusPressureItem(DataRow source)
  1811.                 {
  1812.                         ID = (int)source["ID"];
  1813.                         DefaultPressure = source["DefaultPressure"] is DBNull ? null : (string)source["DefaultPressure"];
  1814.                         IdusPressureId = source["IdusPressureId"] is DBNull ? null : (double?)source["IdusPressureId"];
  1815.                         Model = source["Model"] is DBNull ? null : (string)source["Model"];
  1816.                         Pressure_Optional = source["Pressure_Optional"] is DBNull ? null : (string)source["Pressure_Optional"];
  1817.                         CapacityMin = source["CapacityMin"] is DBNull ? null : (double?)source["CapacityMin"];
  1818.                         Desctiption = source["Desctiption"] is DBNull ? null : (string)source["Desctiption"];
  1819.                         CapacityMax = source["CapacityMax"] is DBNull ? null : (double?)source["CapacityMax"];
  1820.                 }
  1821.  
  1822.                 public int ID { get; set; }
  1823.                 public string DefaultPressure { get; set; }
  1824.                 public double? IdusPressureId { get; set; }
  1825.                 public string Model { get; set; }
  1826.                 public string Pressure_Optional { get; set; }
  1827.                 public double? CapacityMin { get; set; }
  1828.                 public string Desctiption { get; set; }
  1829.                 public double? CapacityMax { get; set; }
  1830.         }
  1831.         public class IdusPressureItem_im
  1832.         {
  1833.                 public IdusPressureItem_im()
  1834.                 { }
  1835.  
  1836.                 public IdusPressureItem_im(int id, string defaultpressure, int? iduspressureitemid, short? iduspressureid, string model, string pressure_optional, double? capacitymin, string desctiption, double? capacitymax)
  1837.                 {
  1838.                         ID = id;
  1839.                         DefaultPressure = defaultpressure;
  1840.                         IdusPressureItemID = iduspressureitemid;
  1841.                         IdusPressureId = iduspressureid;
  1842.                         Model = model;
  1843.                         Pressure_Optional = pressure_optional;
  1844.                         CapacityMin = capacitymin;
  1845.                         Desctiption = desctiption;
  1846.                         CapacityMax = capacitymax;
  1847.                 }
  1848.  
  1849.                 public IdusPressureItem_im(DataRow source)
  1850.                 {
  1851.                         ID = (int)source["ID"];
  1852.                         DefaultPressure = source["DefaultPressure"] is DBNull ? null : (string)source["DefaultPressure"];
  1853.                         IdusPressureItemID = source["IdusPressureItemID"] is DBNull ? null : (int?)source["IdusPressureItemID"];
  1854.                         IdusPressureId = source["IdusPressureId"] is DBNull ? null : (short?)source["IdusPressureId"];
  1855.                         Model = source["Model"] is DBNull ? null : (string)source["Model"];
  1856.                         Pressure_Optional = source["Pressure_Optional"] is DBNull ? null : (string)source["Pressure_Optional"];
  1857.                         CapacityMin = source["CapacityMin"] is DBNull ? null : (double?)source["CapacityMin"];
  1858.                         Desctiption = source["Desctiption"] is DBNull ? null : (string)source["Desctiption"];
  1859.                         CapacityMax = source["CapacityMax"] is DBNull ? null : (double?)source["CapacityMax"];
  1860.                 }
  1861.  
  1862.                 public int ID { get; set; }
  1863.                 public string DefaultPressure { get; set; }
  1864.                 public int? IdusPressureItemID { get; set; }
  1865.                 public short? IdusPressureId { get; set; }
  1866.                 public string Model { get; set; }
  1867.                 public string Pressure_Optional { get; set; }
  1868.                 public double? CapacityMin { get; set; }
  1869.                 public string Desctiption { get; set; }
  1870.                 public double? CapacityMax { get; set; }
  1871.         }
  1872.         public class IdusRecommend
  1873.         {
  1874.                 public IdusRecommend()
  1875.                 { }
  1876.  
  1877.                 public IdusRecommend(int id, int? areaid, int? roomid, int? indoorserialid, short? display)
  1878.                 {
  1879.                         ID = id;
  1880.                         AreaId = areaid;
  1881.                         RoomId = roomid;
  1882.                         IndoorSerialId = indoorserialid;
  1883.                         DisPlay = display;
  1884.                 }
  1885.  
  1886.                 public IdusRecommend(DataRow source)
  1887.                 {
  1888.                         ID = (int)source["ID"];
  1889.                         AreaId = source["AreaId"] is DBNull ? null : (int?)source["AreaId"];
  1890.                         RoomId = source["RoomId"] is DBNull ? null : (int?)source["RoomId"];
  1891.                         IndoorSerialId = source["IndoorSerialId"] is DBNull ? null : (int?)source["IndoorSerialId"];
  1892.                         DisPlay = source["DisPlay"] is DBNull ? null : (short?)source["DisPlay"];
  1893.                 }
  1894.  
  1895.                 public int ID { get; set; }
  1896.                 public int? AreaId { get; set; }
  1897.                 public int? RoomId { get; set; }
  1898.                 public int? IndoorSerialId { get; set; }
  1899.                 public short? DisPlay { get; set; }
  1900.         }
  1901.         public class ImperialUnit
  1902.         {
  1903.                 public ImperialUnit()
  1904.                 { }
  1905.  
  1906.                 public ImperialUnit(int id, double? metric, string imperial, double? type, double? areaid)
  1907.                 {
  1908.                         Id = id;
  1909.                         metric = metric;
  1910.                         imperial = imperial;
  1911.                         Type = type;
  1912.                         AreaId = areaid;
  1913.                 }
  1914.  
  1915.                 public ImperialUnit(DataRow source)
  1916.                 {
  1917.                         Id = (int)source["Id"];
  1918.                         metric = source["metric"] is DBNull ? null : (double?)source["metric"];
  1919.                         imperial = source["imperial"] is DBNull ? null : (string)source["imperial"];
  1920.                         Type = source["Type"] is DBNull ? null : (double?)source["Type"];
  1921.                         AreaId = source["AreaId"] is DBNull ? null : (double?)source["AreaId"];
  1922.                 }
  1923.  
  1924.                 public int Id { get; set; }
  1925.                 public double? metric { get; set; }
  1926.                 public string imperial { get; set; }
  1927.                 public double? Type { get; set; }
  1928.                 public double? AreaId { get; set; }
  1929.         }
  1930.         public class IndoorSerial
  1931.         {
  1932.                 public IndoorSerial()
  1933.                 { }
  1934.  
  1935.                 public IndoorSerial(int id, string serial, string subserial, string subserialen, string remark, string imagename, string level, string outdoorid, int? displayorder, short? isdisplay)
  1936.                 {
  1937.                         ID = id;
  1938.                         Serial = serial;
  1939.                         SubSerial = subserial;
  1940.                         SubSerialEN = subserialen;
  1941.                         Remark = remark;
  1942.                         ImageName = imagename;
  1943.                         Level = level;
  1944.                         OutdoorId = outdoorid;
  1945.                         DisplayOrder = displayorder;
  1946.                         IsDisPlay = isdisplay;
  1947.                 }
  1948.  
  1949.                 public IndoorSerial(DataRow source)
  1950.                 {
  1951.                         ID = (int)source["ID"];
  1952.                         Serial = source["Serial"] is DBNull ? null : (string)source["Serial"];
  1953.                         SubSerial = source["SubSerial"] is DBNull ? null : (string)source["SubSerial"];
  1954.                         SubSerialEN = source["SubSerialEN"] is DBNull ? null : (string)source["SubSerialEN"];
  1955.                         Remark = source["Remark"] is DBNull ? null : (string)source["Remark"];
  1956.                         ImageName = source["ImageName"] is DBNull ? null : (string)source["ImageName"];
  1957.                         Level = source["Level"] is DBNull ? null : (string)source["Level"];
  1958.                         OutdoorId = source["OutdoorId"] is DBNull ? null : (string)source["OutdoorId"];
  1959.                         DisplayOrder = source["DisplayOrder"] is DBNull ? null : (int?)source["DisplayOrder"];
  1960.                         IsDisPlay = source["IsDisPlay"] is DBNull ? null : (short?)source["IsDisPlay"];
  1961.                 }
  1962.  
  1963.                 public int ID { get; set; }
  1964.                 public string Serial { get; set; }
  1965.                 public string SubSerial { get; set; }
  1966.                 public string SubSerialEN { get; set; }
  1967.                 public string Remark { get; set; }
  1968.                 public string ImageName { get; set; }
  1969.                 public string Level { get; set; }
  1970.                 public string OutdoorId { get; set; }
  1971.                 public int? DisplayOrder { get; set; }
  1972.                 public short? IsDisPlay { get; set; }
  1973.         }
  1974.         public class InResolutionView
  1975.         {
  1976.                 public InResolutionView()
  1977.                 { }
  1978.  
  1979.                 public InResolutionView(int id, string level, string serial, string subserial, string subserialen, string remark, string imagename)
  1980.                 {
  1981.                         ID = id;
  1982.                         Level = level;
  1983.                         Serial = serial;
  1984.                         SubSerial = subserial;
  1985.                         SubSerialEN = subserialen;
  1986.                         Remark = remark;
  1987.                         ImageName = imagename;
  1988.                 }
  1989.  
  1990.                 public InResolutionView(DataRow source)
  1991.                 {
  1992.                         ID = (int)source["ID"];
  1993.                         Level = source["Level"] is DBNull ? null : (string)source["Level"];
  1994.                         Serial = source["Serial"] is DBNull ? null : (string)source["Serial"];
  1995.                         SubSerial = source["SubSerial"] is DBNull ? null : (string)source["SubSerial"];
  1996.                         SubSerialEN = source["SubSerialEN"] is DBNull ? null : (string)source["SubSerialEN"];
  1997.                         Remark = source["Remark"] is DBNull ? null : (string)source["Remark"];
  1998.                         ImageName = source["ImageName"] is DBNull ? null : (string)source["ImageName"];
  1999.                 }
  2000.  
  2001.                 public int ID { get; set; }
  2002.                 public string Level { get; set; }
  2003.                 public string Serial { get; set; }
  2004.                 public string SubSerial { get; set; }
  2005.                 public string SubSerialEN { get; set; }
  2006.                 public string Remark { get; set; }
  2007.                 public string ImageName { get; set; }
  2008.         }
  2009.         public class InSerialView
  2010.         {
  2011.                 public InSerialView()
  2012.                 { }
  2013.  
  2014.                 public InSerialView(int id, string serial, string subserial, string subserialen, string expr1004, string remark, string imagename, string level, string outdoorid, int? displayorder)
  2015.                 {
  2016.                         ID = id;
  2017.                         Serial = serial;
  2018.                         SubSerial = subserial;
  2019.                         SubSerialEN = subserialen;
  2020.                         Expr1004 = expr1004;
  2021.                         Remark = remark;
  2022.                         ImageName = imagename;
  2023.                         Level = level;
  2024.                         OutdoorId = outdoorid;
  2025.                         DisplayOrder = displayorder;
  2026.                 }
  2027.  
  2028.                 public InSerialView(DataRow source)
  2029.                 {
  2030.                         ID = (int)source["ID"];
  2031.                         Serial = source["Serial"] is DBNull ? null : (string)source["Serial"];
  2032.                         SubSerial = source["SubSerial"] is DBNull ? null : (string)source["SubSerial"];
  2033.                         SubSerialEN = source["SubSerialEN"] is DBNull ? null : (string)source["SubSerialEN"];
  2034.                         Expr1004 = source["Expr1004"] is DBNull ? null : (string)source["Expr1004"];
  2035.                         Remark = source["Remark"] is DBNull ? null : (string)source["Remark"];
  2036.                         ImageName = source["ImageName"] is DBNull ? null : (string)source["ImageName"];
  2037.                         Level = source["Level"] is DBNull ? null : (string)source["Level"];
  2038.                         OutdoorId = source["OutdoorId"] is DBNull ? null : (string)source["OutdoorId"];
  2039.                         DisplayOrder = source["DisplayOrder"] is DBNull ? null : (int?)source["DisplayOrder"];
  2040.                 }
  2041.  
  2042.                 public int ID { get; set; }
  2043.                 public string Serial { get; set; }
  2044.                 public string SubSerial { get; set; }
  2045.                 public string SubSerialEN { get; set; }
  2046.                 public string Expr1004 { get; set; }
  2047.                 public string Remark { get; set; }
  2048.                 public string ImageName { get; set; }
  2049.                 public string Level { get; set; }
  2050.                 public string OutdoorId { get; set; }
  2051.                 public int? DisplayOrder { get; set; }
  2052.         }
  2053.         public class KITModel
  2054.         {
  2055.                 public KITModel()
  2056.                 { }
  2057.  
  2058.                 public KITModel(int id, string class, double? capacity, double? coolcap, double? coolcap_min, double? heatcap, string model, double? coolcap_max, double? heatcap_min, double? heatcap_max, double? windvol_min, double? windvol_max, string cap_switch, bool iscomponent, double? cubage_min, double? cubage_max)
  2059.                 {
  2060.                         ID = id;
  2061.                         Class = class;
  2062.                         Capacity = capacity;
  2063.                         CoolCap = coolcap;
  2064.                         CoolCap_Min = coolcap_min;
  2065.                         HeatCap = heatcap;
  2066.                         Model = model;
  2067.                         CoolCap_Max = coolcap_max;
  2068.                         HeatCap_Min = heatcap_min;
  2069.                         HeatCap_Max = heatcap_max;
  2070.                         WindVol_Min = windvol_min;
  2071.                         WindVol_Max = windvol_max;
  2072.                         Cap_Switch = cap_switch;
  2073.                         IsComponent = iscomponent;
  2074.                         Cubage_Min = cubage_min;
  2075.                         Cubage_Max = cubage_max;
  2076.                 }
  2077.  
  2078.                 public KITModel(DataRow source)
  2079.                 {
  2080.                         ID = (int)source["ID"];
  2081.                         Class = source["Class"] is DBNull ? null : (string)source["Class"];
  2082.                         Capacity = source["Capacity"] is DBNull ? null : (double?)source["Capacity"];
  2083.                         CoolCap = source["CoolCap"] is DBNull ? null : (double?)source["CoolCap"];
  2084.                         CoolCap_Min = source["CoolCap_Min"] is DBNull ? null : (double?)source["CoolCap_Min"];
  2085.                         HeatCap = source["HeatCap"] is DBNull ? null : (double?)source["HeatCap"];
  2086.                         Model = source["Model"] is DBNull ? null : (string)source["Model"];
  2087.                         CoolCap_Max = source["CoolCap_Max"] is DBNull ? null : (double?)source["CoolCap_Max"];
  2088.                         HeatCap_Min = source["HeatCap_Min"] is DBNull ? null : (double?)source["HeatCap_Min"];
  2089.                         HeatCap_Max = source["HeatCap_Max"] is DBNull ? null : (double?)source["HeatCap_Max"];
  2090.                         WindVol_Min = source["WindVol_Min"] is DBNull ? null : (double?)source["WindVol_Min"];
  2091.                         WindVol_Max = source["WindVol_Max"] is DBNull ? null : (double?)source["WindVol_Max"];
  2092.                         Cap_Switch = source["Cap_Switch"] is DBNull ? null : (string)source["Cap_Switch"];
  2093.                         IsComponent = (bool)source["IsComponent"];
  2094.                         Cubage_Min = source["Cubage_Min"] is DBNull ? null : (double?)source["Cubage_Min"];
  2095.                         Cubage_Max = source["Cubage_Max"] is DBNull ? null : (double?)source["Cubage_Max"];
  2096.                 }
  2097.  
  2098.                 public int ID { get; set; }
  2099.                 public string Class { get; set; }
  2100.                 public double? Capacity { get; set; }
  2101.                 public double? CoolCap { get; set; }
  2102.                 public double? CoolCap_Min { get; set; }
  2103.                 public double? HeatCap { get; set; }
  2104.                 public string Model { get; set; }
  2105.                 public double? CoolCap_Max { get; set; }
  2106.                 public double? HeatCap_Min { get; set; }
  2107.                 public double? HeatCap_Max { get; set; }
  2108.                 public double? WindVol_Min { get; set; }
  2109.                 public double? WindVol_Max { get; set; }
  2110.                 public string Cap_Switch { get; set; }
  2111.                 public bool IsComponent { get; set; }
  2112.                 public double? Cubage_Min { get; set; }
  2113.                 public double? Cubage_Max { get; set; }
  2114.         }
  2115.         public class KITModel_im
  2116.         {
  2117.                 public KITModel_im()
  2118.                 { }
  2119.  
  2120.                 public KITModel_im(int id, double? kitmodelid, string class, double? capacity, double? coolcap, double? coolcap_min, double? heatcap, string model, double? coolcap_max, double? heatcap_min, double? heatcap_max, double? windvol_min, double? windvol_max, string cap_switch, bool iscomponent, double? cubage_min, double? cubage_max)
  2121.                 {
  2122.                         ID = id;
  2123.                         KITModelID = kitmodelid;
  2124.                         Class = class;
  2125.                         Capacity = capacity;
  2126.                         CoolCap = coolcap;
  2127.                         CoolCap_Min = coolcap_min;
  2128.                         HeatCap = heatcap;
  2129.                         Model = model;
  2130.                         CoolCap_Max = coolcap_max;
  2131.                         HeatCap_Min = heatcap_min;
  2132.                         HeatCap_Max = heatcap_max;
  2133.                         WindVol_Min = windvol_min;
  2134.                         WindVol_Max = windvol_max;
  2135.                         Cap_Switch = cap_switch;
  2136.                         IsComponent = iscomponent;
  2137.                         Cubage_Min = cubage_min;
  2138.                         Cubage_Max = cubage_max;
  2139.                 }
  2140.  
  2141.                 public KITModel_im(DataRow source)
  2142.                 {
  2143.                         ID = (int)source["ID"];
  2144.                         KITModelID = source["KITModelID"] is DBNull ? null : (double?)source["KITModelID"];
  2145.                         Class = source["Class"] is DBNull ? null : (string)source["Class"];
  2146.                         Capacity = source["Capacity"] is DBNull ? null : (double?)source["Capacity"];
  2147.                         CoolCap = source["CoolCap"] is DBNull ? null : (double?)source["CoolCap"];
  2148.                         CoolCap_Min = source["CoolCap_Min"] is DBNull ? null : (double?)source["CoolCap_Min"];
  2149.                         HeatCap = source["HeatCap"] is DBNull ? null : (double?)source["HeatCap"];
  2150.                         Model = source["Model"] is DBNull ? null : (string)source["Model"];
  2151.                         CoolCap_Max = source["CoolCap_Max"] is DBNull ? null : (double?)source["CoolCap_Max"];
  2152.                         HeatCap_Min = source["HeatCap_Min"] is DBNull ? null : (double?)source["HeatCap_Min"];
  2153.                         HeatCap_Max = source["HeatCap_Max"] is DBNull ? null : (double?)source["HeatCap_Max"];
  2154.                         WindVol_Min = source["WindVol_Min"] is DBNull ? null : (double?)source["WindVol_Min"];
  2155.                         WindVol_Max = source["WindVol_Max"] is DBNull ? null : (double?)source["WindVol_Max"];
  2156.                         Cap_Switch = source["Cap_Switch"] is DBNull ? null : (string)source["Cap_Switch"];
  2157.                         IsComponent = (bool)source["IsComponent"];
  2158.                         Cubage_Min = source["Cubage_Min"] is DBNull ? null : (double?)source["Cubage_Min"];
  2159.                         Cubage_Max = source["Cubage_Max"] is DBNull ? null : (double?)source["Cubage_Max"];
  2160.                 }
  2161.  
  2162.                 public int ID { get; set; }
  2163.                 public double? KITModelID { get; set; }
  2164.                 public string Class { get; set; }
  2165.                 public double? Capacity { get; set; }
  2166.                 public double? CoolCap { get; set; }
  2167.                 public double? CoolCap_Min { get; set; }
  2168.                 public double? HeatCap { get; set; }
  2169.                 public string Model { get; set; }
  2170.                 public double? CoolCap_Max { get; set; }
  2171.                 public double? HeatCap_Min { get; set; }
  2172.                 public double? HeatCap_Max { get; set; }
  2173.                 public double? WindVol_Min { get; set; }
  2174.                 public double? WindVol_Max { get; set; }
  2175.                 public string Cap_Switch { get; set; }
  2176.                 public bool IsComponent { get; set; }
  2177.                 public double? Cubage_Min { get; set; }
  2178.                 public double? Cubage_Max { get; set; }
  2179.         }
  2180.         public class LanguageType
  2181.         {
  2182.                 public LanguageType()
  2183.                 { }
  2184.  
  2185.                 public LanguageType(int id, string languagename, string languagecode)
  2186.                 {
  2187.                         ID = id;
  2188.                         LanguageName = languagename;
  2189.                         LanguageCode = languagecode;
  2190.                 }
  2191.  
  2192.                 public LanguageType(DataRow source)
  2193.                 {
  2194.                         ID = (int)source["ID"];
  2195.                         LanguageName = source["LanguageName"] is DBNull ? null : (string)source["LanguageName"];
  2196.                         LanguageCode = source["LanguageCode"] is DBNull ? null : (string)source["LanguageCode"];
  2197.                 }
  2198.  
  2199.                 public int ID { get; set; }
  2200.                 public string LanguageName { get; set; }
  2201.                 public string LanguageCode { get; set; }
  2202.         }
  2203.         public class ModeConverterModel
  2204.         {
  2205.                 public ModeConverterModel()
  2206.                 { }
  2207.  
  2208.                 public ModeConverterModel(int id, int? areaid, string model, int? splitcount, string voltage, int? phase, int? frequency, int? breaker, int? plinedia, int? plinecount, string odutype)
  2209.                 {
  2210.                         ID = id;
  2211.                         AreaId = areaid;
  2212.                         Model = model;
  2213.                         SplitCount = splitcount;
  2214.                         Voltage = voltage;
  2215.                         Phase = phase;
  2216.                         Frequency = frequency;
  2217.                         Breaker = breaker;
  2218.                         PLineDia = plinedia;
  2219.                         PLineCount = plinecount;
  2220.                         OduType = odutype;
  2221.                 }
  2222.  
  2223.                 public ModeConverterModel(DataRow source)
  2224.                 {
  2225.                         ID = (int)source["ID"];
  2226.                         AreaId = source["AreaId"] is DBNull ? null : (int?)source["AreaId"];
  2227.                         Model = source["Model"] is DBNull ? null : (string)source["Model"];
  2228.                         SplitCount = source["SplitCount"] is DBNull ? null : (int?)source["SplitCount"];
  2229.                         Voltage = source["Voltage"] is DBNull ? null : (string)source["Voltage"];
  2230.                         Phase = source["Phase"] is DBNull ? null : (int?)source["Phase"];
  2231.                         Frequency = source["Frequency"] is DBNull ? null : (int?)source["Frequency"];
  2232.                         Breaker = source["Breaker"] is DBNull ? null : (int?)source["Breaker"];
  2233.                         PLineDia = source["PLineDia"] is DBNull ? null : (int?)source["PLineDia"];
  2234.                         PLineCount = source["PLineCount"] is DBNull ? null : (int?)source["PLineCount"];
  2235.                         OduType = source["OduType"] is DBNull ? null : (string)source["OduType"];
  2236.                 }
  2237.  
  2238.                 public int ID { get; set; }
  2239.                 public int? AreaId { get; set; }
  2240.                 public string Model { get; set; }
  2241.                 public int? SplitCount { get; set; }
  2242.                 public string Voltage { get; set; }
  2243.                 public int? Phase { get; set; }
  2244.                 public int? Frequency { get; set; }
  2245.                 public int? Breaker { get; set; }
  2246.                 public int? PLineDia { get; set; }
  2247.                 public int? PLineCount { get; set; }
  2248.                 public string OduType { get; set; }
  2249.         }
  2250.         public class ModeConverterSort
  2251.         {
  2252.                 public ModeConverterSort()
  2253.                 { }
  2254.  
  2255.                 public ModeConverterSort(int id, string sort, string sorten, string level, string imagename, int? splitcount, int? displayorder, short? isdisplay)
  2256.                 {
  2257.                         ID = id;
  2258.                         Sort = sort;
  2259.                         SortEN = sorten;
  2260.                         Level = level;
  2261.                         ImageName = imagename;
  2262.                         SplitCount = splitcount;
  2263.                         DisplayOrder = displayorder;
  2264.                         IsDisPlay = isdisplay;
  2265.                 }
  2266.  
  2267.                 public ModeConverterSort(DataRow source)
  2268.                 {
  2269.                         ID = (int)source["ID"];
  2270.                         Sort = source["Sort"] is DBNull ? null : (string)source["Sort"];
  2271.                         SortEN = source["SortEN"] is DBNull ? null : (string)source["SortEN"];
  2272.                         Level = source["Level"] is DBNull ? null : (string)source["Level"];
  2273.                         ImageName = source["ImageName"] is DBNull ? null : (string)source["ImageName"];
  2274.                         SplitCount = source["SplitCount"] is DBNull ? null : (int?)source["SplitCount"];
  2275.                         DisplayOrder = source["DisplayOrder"] is DBNull ? null : (int?)source["DisplayOrder"];
  2276.                         IsDisPlay = source["IsDisPlay"] is DBNull ? null : (short?)source["IsDisPlay"];
  2277.                 }
  2278.  
  2279.                 public int ID { get; set; }
  2280.                 public string Sort { get; set; }
  2281.                 public string SortEN { get; set; }
  2282.                 public string Level { get; set; }
  2283.                 public string ImageName { get; set; }
  2284.                 public int? SplitCount { get; set; }
  2285.                 public int? DisplayOrder { get; set; }
  2286.                 public short? IsDisPlay { get; set; }
  2287.         }
  2288.         public class MSysAccessStorage
  2289.         {
  2290.                 public MSysAccessStorage()
  2291.                 { }
  2292.  
  2293.                 public MSysAccessStorage(System.DateTime? datecreate, System.DateTime? dateupdate, int id, byte[]? lv, string name, int? parentid, int? type)
  2294.                 {
  2295.                         DateCreate = datecreate;
  2296.                         DateUpdate = dateupdate;
  2297.                         Id = id;
  2298.                         Lv = lv;
  2299.                         Name = name;
  2300.                         ParentId = parentid;
  2301.                         Type = type;
  2302.                 }
  2303.  
  2304.                 public MSysAccessStorage(DataRow source)
  2305.                 {
  2306.                         DateCreate = source["DateCreate"] is DBNull ? null : (System.DateTime?)source["DateCreate"];
  2307.                         DateUpdate = source["DateUpdate"] is DBNull ? null : (System.DateTime?)source["DateUpdate"];
  2308.                         Id = (int)source["Id"];
  2309.                         Lv = source["Lv"] is DBNull ? null : (byte[]?)source["Lv"];
  2310.                         Name = source["Name"] is DBNull ? null : (string)source["Name"];
  2311.                         ParentId = source["ParentId"] is DBNull ? null : (int?)source["ParentId"];
  2312.                         Type = source["Type"] is DBNull ? null : (int?)source["Type"];
  2313.                 }
  2314.  
  2315.                 public System.DateTime? DateCreate { get; set; }
  2316.                 public System.DateTime? DateUpdate { get; set; }
  2317.                 public int Id { get; set; }
  2318.                 public byte[]? Lv { get; set; }
  2319.                 public string Name { get; set; }
  2320.                 public int? ParentId { get; set; }
  2321.                 public int? Type { get; set; }
  2322.         }
  2323.         public class MSysAccessXML
  2324.         {
  2325.                 public MSysAccessXML()
  2326.                 { }
  2327.  
  2328.                 public MSysAccessXML(int id, byte[]? lvalue, System.Guid? objectguid, string objectname, string property, string value)
  2329.                 {
  2330.                         Id = id;
  2331.                         LValue = lvalue;
  2332.                         ObjectGuid = objectguid;
  2333.                         ObjectName = objectname;
  2334.                         Property = property;
  2335.                         Value = value;
  2336.                 }
  2337.  
  2338.                 public MSysAccessXML(DataRow source)
  2339.                 {
  2340.                         Id = (int)source["Id"];
  2341.                         LValue = source["LValue"] is DBNull ? null : (byte[]?)source["LValue"];
  2342.                         ObjectGuid = source["ObjectGuid"] is DBNull ? null : (System.Guid?)source["ObjectGuid"];
  2343.                         ObjectName = source["ObjectName"] is DBNull ? null : (string)source["ObjectName"];
  2344.                         Property = source["Property"] is DBNull ? null : (string)source["Property"];
  2345.                         Value = source["Value"] is DBNull ? null : (string)source["Value"];
  2346.                 }
  2347.  
  2348.                 public int Id { get; set; }
  2349.                 public byte[]? LValue { get; set; }
  2350.                 public System.Guid? ObjectGuid { get; set; }
  2351.                 public string ObjectName { get; set; }
  2352.                 public string Property { get; set; }
  2353.                 public string Value { get; set; }
  2354.         }
  2355.         public class MSysACEs
  2356.         {
  2357.                 public MSysACEs()
  2358.                 { }
  2359.  
  2360.                 public MSysACEs()
  2361.                 {
  2362.                 }
  2363.  
  2364.                 public MSysACEs(DataRow source)
  2365.                 {
  2366.                 }
  2367.  
  2368.         }
  2369.         public class MSysIMEXColumns
  2370.         {
  2371.                 public MSysIMEXColumns()
  2372.                 { }
  2373.  
  2374.                 public MSysIMEXColumns(int? attributes, short? datatype, string fieldname, byte? indextype, bool skipcolumn, int specid, short? start, short? width)
  2375.                 {
  2376.                         Attributes = attributes;
  2377.                         DataType = datatype;
  2378.                         FieldName = fieldname;
  2379.                         IndexType = indextype;
  2380.                         SkipColumn = skipcolumn;
  2381.                         SpecID = specid;
  2382.                         Start = start;
  2383.                         Width = width;
  2384.                 }
  2385.  
  2386.                 public MSysIMEXColumns(DataRow source)
  2387.                 {
  2388.                         Attributes = source["Attributes"] is DBNull ? null : (int?)source["Attributes"];
  2389.                         DataType = source["DataType"] is DBNull ? null : (short?)source["DataType"];
  2390.                         FieldName = (string)source["FieldName"];
  2391.                         IndexType = source["IndexType"] is DBNull ? null : (byte?)source["IndexType"];
  2392.                         SkipColumn = (bool)source["SkipColumn"];
  2393.                         SpecID = (int)source["SpecID"];
  2394.                         Start = source["Start"] is DBNull ? null : (short?)source["Start"];
  2395.                         Width = source["Width"] is DBNull ? null : (short?)source["Width"];
  2396.                 }
  2397.  
  2398.                 public int? Attributes { get; set; }
  2399.                 public short? DataType { get; set; }
  2400.                 public string FieldName { get; set; }
  2401.                 public byte? IndexType { get; set; }
  2402.                 public bool SkipColumn { get; set; }
  2403.                 public int SpecID { get; set; }
  2404.                 public short? Start { get; set; }
  2405.                 public short? Width { get; set; }
  2406.         }
  2407.         public class MSysIMEXSpecs
  2408.         {
  2409.                 public MSysIMEXSpecs()
  2410.                 { }
  2411.  
  2412.                 public MSysIMEXSpecs(string datedelim, bool datefourdigityear, bool dateleadingzeros, short? dateorder, string decimalpoint, string fieldseparator, short? filetype, int specid, string specname, byte? spectype, int? startrow, string textdelim, string timedelim)
  2413.                 {
  2414.                         DateDelim = datedelim;
  2415.                         DateFourDigitYear = datefourdigityear;
  2416.                         DateLeadingZeros = dateleadingzeros;
  2417.                         DateOrder = dateorder;
  2418.                         DecimalPoint = decimalpoint;
  2419.                         FieldSeparator = fieldseparator;
  2420.                         FileType = filetype;
  2421.                         SpecID = specid;
  2422.                         SpecName = specname;
  2423.                         SpecType = spectype;
  2424.                         StartRow = startrow;
  2425.                         TextDelim = textdelim;
  2426.                         TimeDelim = timedelim;
  2427.                 }
  2428.  
  2429.                 public MSysIMEXSpecs(DataRow source)
  2430.                 {
  2431.                         DateDelim = source["DateDelim"] is DBNull ? null : (string)source["DateDelim"];
  2432.                         DateFourDigitYear = (bool)source["DateFourDigitYear"];
  2433.                         DateLeadingZeros = (bool)source["DateLeadingZeros"];
  2434.                         DateOrder = source["DateOrder"] is DBNull ? null : (short?)source["DateOrder"];
  2435.                         DecimalPoint = source["DecimalPoint"] is DBNull ? null : (string)source["DecimalPoint"];
  2436.                         FieldSeparator = source["FieldSeparator"] is DBNull ? null : (string)source["FieldSeparator"];
  2437.                         FileType = source["FileType"] is DBNull ? null : (short?)source["FileType"];
  2438.                         SpecID = (int)source["SpecID"];
  2439.                         SpecName = (string)source["SpecName"];
  2440.                         SpecType = source["SpecType"] is DBNull ? null : (byte?)source["SpecType"];
  2441.                         StartRow = source["StartRow"] is DBNull ? null : (int?)source["StartRow"];
  2442.                         TextDelim = source["TextDelim"] is DBNull ? null : (string)source["TextDelim"];
  2443.                         TimeDelim = source["TimeDelim"] is DBNull ? null : (string)source["TimeDelim"];
  2444.                 }
  2445.  
  2446.                 public string DateDelim { get; set; }
  2447.                 public bool DateFourDigitYear { get; set; }
  2448.                 public bool DateLeadingZeros { get; set; }
  2449.                 public short? DateOrder { get; set; }
  2450.                 public string DecimalPoint { get; set; }
  2451.                 public string FieldSeparator { get; set; }
  2452.                 public short? FileType { get; set; }
  2453.                 public int SpecID { get; set; }
  2454.                 public string SpecName { get; set; }
  2455.                 public byte? SpecType { get; set; }
  2456.                 public int? StartRow { get; set; }
  2457.                 public string TextDelim { get; set; }
  2458.                 public string TimeDelim { get; set; }
  2459.         }
  2460.         public class MSysNameMap
  2461.         {
  2462.                 public MSysNameMap()
  2463.                 { }
  2464.  
  2465.                 public MSysNameMap(System.Guid? guid, int id, string name, byte[]? namemap, int? type)
  2466.                 {
  2467.                         GUID = guid;
  2468.                         Id = id;
  2469.                         Name = name;
  2470.                         NameMap = namemap;
  2471.                         Type = type;
  2472.                 }
  2473.  
  2474.                 public MSysNameMap(DataRow source)
  2475.                 {
  2476.                         GUID = source["GUID"] is DBNull ? null : (System.Guid?)source["GUID"];
  2477.                         Id = (int)source["Id"];
  2478.                         Name = source["Name"] is DBNull ? null : (string)source["Name"];
  2479.                         NameMap = source["NameMap"] is DBNull ? null : (byte[]?)source["NameMap"];
  2480.                         Type = source["Type"] is DBNull ? null : (int?)source["Type"];
  2481.                 }
  2482.  
  2483.                 public System.Guid? GUID { get; set; }
  2484.                 public int Id { get; set; }
  2485.                 public string Name { get; set; }
  2486.                 public byte[]? NameMap { get; set; }
  2487.                 public int? Type { get; set; }
  2488.         }
  2489.         public class MSysNavPaneGroupCategories
  2490.         {
  2491.                 public MSysNavPaneGroupCategories()
  2492.                 { }
  2493.  
  2494.                 public MSysNavPaneGroupCategories()
  2495.                 {
  2496.                 }
  2497.  
  2498.                 public MSysNavPaneGroupCategories(DataRow source)
  2499.                 {
  2500.                 }
  2501.  
  2502.         }
  2503.         public class MSysNavPaneGroups
  2504.         {
  2505.                 public MSysNavPaneGroups()
  2506.                 { }
  2507.  
  2508.                 public MSysNavPaneGroups()
  2509.                 {
  2510.                 }
  2511.  
  2512.                 public MSysNavPaneGroups(DataRow source)
  2513.                 {
  2514.                 }
  2515.  
  2516.         }
  2517.         public class MSysNavPaneGroupToObjects
  2518.         {
  2519.                 public MSysNavPaneGroupToObjects()
  2520.                 { }
  2521.  
  2522.                 public MSysNavPaneGroupToObjects()
  2523.                 {
  2524.                 }
  2525.  
  2526.                 public MSysNavPaneGroupToObjects(DataRow source)
  2527.                 {
  2528.                 }
  2529.  
  2530.         }
  2531.         public class MSysNavPaneObjectIDs
  2532.         {
  2533.                 public MSysNavPaneObjectIDs()
  2534.                 { }
  2535.  
  2536.                 public MSysNavPaneObjectIDs()
  2537.                 {
  2538.                 }
  2539.  
  2540.                 public MSysNavPaneObjectIDs(DataRow source)
  2541.                 {
  2542.                 }
  2543.  
  2544.         }
  2545.         public class MSysObjects
  2546.         {
  2547.                 public MSysObjects()
  2548.                 { }
  2549.  
  2550.                 public MSysObjects()
  2551.                 {
  2552.                 }
  2553.  
  2554.                 public MSysObjects(DataRow source)
  2555.                 {
  2556.                 }
  2557.  
  2558.         }
  2559.         public class MSysQueries
  2560.         {
  2561.                 public MSysQueries()
  2562.                 { }
  2563.  
  2564.                 public MSysQueries()
  2565.                 {
  2566.                 }
  2567.  
  2568.                 public MSysQueries(DataRow source)
  2569.                 {
  2570.                 }
  2571.  
  2572.         }
  2573.         public class MSysRelationships
  2574.         {
  2575.                 public MSysRelationships()
  2576.                 { }
  2577.  
  2578.                 public MSysRelationships()
  2579.                 {
  2580.                 }
  2581.  
  2582.                 public MSysRelationships(DataRow source)
  2583.                 {
  2584.                 }
  2585.  
  2586.         }
  2587.         public class NewWindPressure
  2588.         {
  2589.                 public NewWindPressure()
  2590.                 { }
  2591.  
  2592.                 public NewWindPressure(int id, double? areaid, string model, string pressure_optional, string parameter, double? type, bool isrecommend)
  2593.                 {
  2594.                         ID = id;
  2595.                         AreaId = areaid;
  2596.                         Model = model;
  2597.                         Pressure_Optional = pressure_optional;
  2598.                         Parameter = parameter;
  2599.                         Type = type;
  2600.                         IsRecommend = isrecommend;
  2601.                 }
  2602.  
  2603.                 public NewWindPressure(DataRow source)
  2604.                 {
  2605.                         ID = (int)source["ID"];
  2606.                         AreaId = source["AreaId"] is DBNull ? null : (double?)source["AreaId"];
  2607.                         Model = source["Model"] is DBNull ? null : (string)source["Model"];
  2608.                         Pressure_Optional = source["Pressure_Optional"] is DBNull ? null : (string)source["Pressure_Optional"];
  2609.                         Parameter = source["Parameter"] is DBNull ? null : (string)source["Parameter"];
  2610.                         Type = source["Type"] is DBNull ? null : (double?)source["Type"];
  2611.                         IsRecommend = (bool)source["IsRecommend"];
  2612.                 }
  2613.  
  2614.                 public int ID { get; set; }
  2615.                 public double? AreaId { get; set; }
  2616.                 public string Model { get; set; }
  2617.                 public string Pressure_Optional { get; set; }
  2618.                 public string Parameter { get; set; }
  2619.                 public double? Type { get; set; }
  2620.                 public bool IsRecommend { get; set; }
  2621.         }
  2622.         public class odus
  2623.         {
  2624.                 public odus()
  2625.                 { }
  2626.  
  2627.                 public odus(int id, string seriesname, string name, string components, double? functype, string namecn, string namecustomer, double? coolcap, double? heatcap, double? ratedcopower, double? ratedhtpower, string pic_name, string pdf_name, double? con_boards, double? maxidus, double? lthtcap, string length, string refrigerant, string height, double? ctrlmode, double? gaspipedia, string gpipe_unit, double? hpgaspipedia, double? lipipedia, double? refvol, string width, double? weight, double? lthtratedpow, string climate, string volt, double? freq, double? phases, double? lthtratedcurr, double? plinedia, double? plinecount, string breaker, double? noise, string compressor, string moisture_pro, string conmethod, double? ratedcocurr, double? ratedhtcurr, string diminstall, string pacdim_w, string pacdim_d, string pacdim_h, string modulesbranchname, double? fittfa)
  2628.                 {
  2629.                         ID = id;
  2630.                         SeriesName = seriesname;
  2631.                         Name = name;
  2632.                         Components = components;
  2633.                         FuncType = functype;
  2634.                         NameCN = namecn;
  2635.                         NameCustomer = namecustomer;
  2636.                         CoolCap = coolcap;
  2637.                         HeatCap = heatcap;
  2638.                         RatedCoPower = ratedcopower;
  2639.                         RatedHtPower = ratedhtpower;
  2640.                         Pic_Name = pic_name;
  2641.                         PDF_Name = pdf_name;
  2642.                         Con_Boards = con_boards;
  2643.                         MaxIDUs = maxidus;
  2644.                         LtHtCap = lthtcap;
  2645.                         Length = length;
  2646.                         Refrigerant = refrigerant;
  2647.                         Height = height;
  2648.                         CtrlMode = ctrlmode;
  2649.                         GasPipeDia = gaspipedia;
  2650.                         GPipe_Unit = gpipe_unit;
  2651.                         HPGasPipeDia = hpgaspipedia;
  2652.                         LiPipeDia = lipipedia;
  2653.                         RefVol = refvol;
  2654.                         Width = width;
  2655.                         Weight = weight;
  2656.                         LtHtRatedPow = lthtratedpow;
  2657.                         Climate = climate;
  2658.                         Volt = volt;
  2659.                         Freq = freq;
  2660.                         Phases = phases;
  2661.                         LtHtRatedCurr = lthtratedcurr;
  2662.                         PLineDia = plinedia;
  2663.                         PLineCount = plinecount;
  2664.                         Breaker = breaker;
  2665.                         Noise = noise;
  2666.                         Compressor = compressor;
  2667.                         Moisture_pro = moisture_pro;
  2668.                         ConMethod = conmethod;
  2669.                         RatedCoCurr = ratedcocurr;
  2670.                         RatedHtCurr = ratedhtcurr;
  2671.                         DimInstall = diminstall;
  2672.                         PacDim_W = pacdim_w;
  2673.                         PacDim_D = pacdim_d;
  2674.                         PacDim_H = pacdim_h;
  2675.                         ModulesBranchName = modulesbranchname;
  2676.                         FitTFA = fittfa;
  2677.                 }
  2678.  
  2679.                 public odus(DataRow source)
  2680.                 {
  2681.                         ID = (int)source["ID"];
  2682.                         SeriesName = source["SeriesName"] is DBNull ? null : (string)source["SeriesName"];
  2683.                         Name = source["Name"] is DBNull ? null : (string)source["Name"];
  2684.                         Components = source["Components"] is DBNull ? null : (string)source["Components"];
  2685.                         FuncType = source["FuncType"] is DBNull ? null : (double?)source["FuncType"];
  2686.                         NameCN = source["NameCN"] is DBNull ? null : (string)source["NameCN"];
  2687.                         NameCustomer = source["NameCustomer"] is DBNull ? null : (string)source["NameCustomer"];
  2688.                         CoolCap = source["CoolCap"] is DBNull ? null : (double?)source["CoolCap"];
  2689.                         HeatCap = source["HeatCap"] is DBNull ? null : (double?)source["HeatCap"];
  2690.                         RatedCoPower = source["RatedCoPower"] is DBNull ? null : (double?)source["RatedCoPower"];
  2691.                         RatedHtPower = source["RatedHtPower"] is DBNull ? null : (double?)source["RatedHtPower"];
  2692.                         Pic_Name = source["Pic_Name"] is DBNull ? null : (string)source["Pic_Name"];
  2693.                         PDF_Name = source["PDF_Name"] is DBNull ? null : (string)source["PDF_Name"];
  2694.                         Con_Boards = source["Con_Boards"] is DBNull ? null : (double?)source["Con_Boards"];
  2695.                         MaxIDUs = source["MaxIDUs"] is DBNull ? null : (double?)source["MaxIDUs"];
  2696.                         LtHtCap = source["LtHtCap"] is DBNull ? null : (double?)source["LtHtCap"];
  2697.                         Length = source["Length"] is DBNull ? null : (string)source["Length"];
  2698.                         Refrigerant = source["Refrigerant"] is DBNull ? null : (string)source["Refrigerant"];
  2699.                         Height = source["Height"] is DBNull ? null : (string)source["Height"];
  2700.                         CtrlMode = source["CtrlMode"] is DBNull ? null : (double?)source["CtrlMode"];
  2701.                         GasPipeDia = source["GasPipeDia"] is DBNull ? null : (double?)source["GasPipeDia"];
  2702.                         GPipe_Unit = source["GPipe_Unit"] is DBNull ? null : (string)source["GPipe_Unit"];
  2703.                         HPGasPipeDia = source["HPGasPipeDia"] is DBNull ? null : (double?)source["HPGasPipeDia"];
  2704.                         LiPipeDia = source["LiPipeDia"] is DBNull ? null : (double?)source["LiPipeDia"];
  2705.                         RefVol = source["RefVol"] is DBNull ? null : (double?)source["RefVol"];
  2706.                         Width = source["Width"] is DBNull ? null : (string)source["Width"];
  2707.                         Weight = source["Weight"] is DBNull ? null : (double?)source["Weight"];
  2708.                         LtHtRatedPow = source["LtHtRatedPow"] is DBNull ? null : (double?)source["LtHtRatedPow"];
  2709.                         Climate = source["Climate"] is DBNull ? null : (string)source["Climate"];
  2710.                         Volt = source["Volt"] is DBNull ? null : (string)source["Volt"];
  2711.                         Freq = source["Freq"] is DBNull ? null : (double?)source["Freq"];
  2712.                         Phases = source["Phases"] is DBNull ? null : (double?)source["Phases"];
  2713.                         LtHtRatedCurr = source["LtHtRatedCurr"] is DBNull ? null : (double?)source["LtHtRatedCurr"];
  2714.                         PLineDia = source["PLineDia"] is DBNull ? null : (double?)source["PLineDia"];
  2715.                         PLineCount = source["PLineCount"] is DBNull ? null : (double?)source["PLineCount"];
  2716.                         Breaker = source["Breaker"] is DBNull ? null : (string)source["Breaker"];
  2717.                         Noise = source["Noise"] is DBNull ? null : (double?)source["Noise"];
  2718.                         Compressor = source["Compressor"] is DBNull ? null : (string)source["Compressor"];
  2719.                         Moisture_pro = source["Moisture_pro"] is DBNull ? null : (string)source["Moisture_pro"];
  2720.                         ConMethod = source["ConMethod"] is DBNull ? null : (string)source["ConMethod"];
  2721.                         RatedCoCurr = source["RatedCoCurr"] is DBNull ? null : (double?)source["RatedCoCurr"];
  2722.                         RatedHtCurr = source["RatedHtCurr"] is DBNull ? null : (double?)source["RatedHtCurr"];
  2723.                         DimInstall = source["DimInstall"] is DBNull ? null : (string)source["DimInstall"];
  2724.                         PacDim_W = source["PacDim_W"] is DBNull ? null : (string)source["PacDim_W"];
  2725.                         PacDim_D = source["PacDim_D"] is DBNull ? null : (string)source["PacDim_D"];
  2726.                         PacDim_H = source["PacDim_H"] is DBNull ? null : (string)source["PacDim_H"];
  2727.                         ModulesBranchName = source["ModulesBranchName"] is DBNull ? null : (string)source["ModulesBranchName"];
  2728.                         FitTFA = source["FitTFA"] is DBNull ? null : (double?)source["FitTFA"];
  2729.                 }
  2730.  
  2731.                 public int ID { get; set; }
  2732.                 public string SeriesName { get; set; }
  2733.                 public string Name { get; set; }
  2734.                 public string Components { get; set; }
  2735.                 public double? FuncType { get; set; }
  2736.                 public string NameCN { get; set; }
  2737.                 public string NameCustomer { get; set; }
  2738.                 public double? CoolCap { get; set; }
  2739.                 public double? HeatCap { get; set; }
  2740.                 public double? RatedCoPower { get; set; }
  2741.                 public double? RatedHtPower { get; set; }
  2742.                 public string Pic_Name { get; set; }
  2743.                 public string PDF_Name { get; set; }
  2744.                 public double? Con_Boards { get; set; }
  2745.                 public double? MaxIDUs { get; set; }
  2746.                 public double? LtHtCap { get; set; }
  2747.                 public string Length { get; set; }
  2748.                 public string Refrigerant { get; set; }
  2749.                 public string Height { get; set; }
  2750.                 public double? CtrlMode { get; set; }
  2751.                 public double? GasPipeDia { get; set; }
  2752.                 public string GPipe_Unit { get; set; }
  2753.                 public double? HPGasPipeDia { get; set; }
  2754.                 public double? LiPipeDia { get; set; }
  2755.                 public double? RefVol { get; set; }
  2756.                 public string Width { get; set; }
  2757.                 public double? Weight { get; set; }
  2758.                 public double? LtHtRatedPow { get; set; }
  2759.                 public string Climate { get; set; }
  2760.                 public string Volt { get; set; }
  2761.                 public double? Freq { get; set; }
  2762.                 public double? Phases { get; set; }
  2763.                 public double? LtHtRatedCurr { get; set; }
  2764.                 public double? PLineDia { get; set; }
  2765.                 public double? PLineCount { get; set; }
  2766.                 public string Breaker { get; set; }
  2767.                 public double? Noise { get; set; }
  2768.                 public string Compressor { get; set; }
  2769.                 public string Moisture_pro { get; set; }
  2770.                 public string ConMethod { get; set; }
  2771.                 public double? RatedCoCurr { get; set; }
  2772.                 public double? RatedHtCurr { get; set; }
  2773.                 public string DimInstall { get; set; }
  2774.                 public string PacDim_W { get; set; }
  2775.                 public string PacDim_D { get; set; }
  2776.                 public string PacDim_H { get; set; }
  2777.                 public string ModulesBranchName { get; set; }
  2778.                 public double? FitTFA { get; set; }
  2779.         }
  2780.         public class odus_im
  2781.         {
  2782.                 public odus_im()
  2783.                 { }
  2784.  
  2785.                 public odus_im(int id, string seriesname, double? functype, string name, string components, string coolcap, string namecn, string namecustomer, string heatcap, string pic_name, string ratedcopower, string ratedhtpower, string pdf_name, string con_boards, string maxidus, string lthtcap, string height, string length, string refrigerant, string ctrlmode, string gaspipedia, string gpipe_unit, string hpgaspipedia, string refvol, string width, string lipipedia, string weight, string lthtratedpow, string climate, string volt, string freq, string phases, string lthtratedcurr, string plinedia, string plinecount, string breaker, string noise, string compressor, string ratedcocurr, string ratedhtcurr, string moisture_pro, string conmethod, string diminstall, string pacdim_w, string pacdim_d, string pacdim_h, string modulesbranchname, string fittfa)
  2786.                 {
  2787.                         ID = id;
  2788.                         SeriesName = seriesname;
  2789.                         FuncType = functype;
  2790.                         Name = name;
  2791.                         Components = components;
  2792.                         CoolCap = coolcap;
  2793.                         NameCN = namecn;
  2794.                         NameCustomer = namecustomer;
  2795.                         HeatCap = heatcap;
  2796.                         Pic_Name = pic_name;
  2797.                         RatedCoPower = ratedcopower;
  2798.                         RatedHtPower = ratedhtpower;
  2799.                         PDF_Name = pdf_name;
  2800.                         Con_Boards = con_boards;
  2801.                         MaxIDUs = maxidus;
  2802.                         LtHtCap = lthtcap;
  2803.                         Height = height;
  2804.                         Length = length;
  2805.                         Refrigerant = refrigerant;
  2806.                         CtrlMode = ctrlmode;
  2807.                         GasPipeDia = gaspipedia;
  2808.                         GPipe_Unit = gpipe_unit;
  2809.                         HPGasPipeDia = hpgaspipedia;
  2810.                         RefVol = refvol;
  2811.                         Width = width;
  2812.                         LiPipeDia = lipipedia;
  2813.                         Weight = weight;
  2814.                         LtHtRatedPow = lthtratedpow;
  2815.                         Climate = climate;
  2816.                         Volt = volt;
  2817.                         Freq = freq;
  2818.                         Phases = phases;
  2819.                         LtHtRatedCurr = lthtratedcurr;
  2820.                         PLineDia = plinedia;
  2821.                         PLineCount = plinecount;
  2822.                         Breaker = breaker;
  2823.                         Noise = noise;
  2824.                         Compressor = compressor;
  2825.                         RatedCoCurr = ratedcocurr;
  2826.                         RatedHtCurr = ratedhtcurr;
  2827.                         Moisture_pro = moisture_pro;
  2828.                         ConMethod = conmethod;
  2829.                         DimInstall = diminstall;
  2830.                         PacDim_W = pacdim_w;
  2831.                         PacDim_D = pacdim_d;
  2832.                         PacDim_H = pacdim_h;
  2833.                         ModulesBranchName = modulesbranchname;
  2834.                         FitTFA = fittfa;
  2835.                 }
  2836.  
  2837.                 public odus_im(DataRow source)
  2838.                 {
  2839.                         ID = (int)source["ID"];
  2840.                         SeriesName = source["SeriesName"] is DBNull ? null : (string)source["SeriesName"];
  2841.                         FuncType = source["FuncType"] is DBNull ? null : (double?)source["FuncType"];
  2842.                         Name = source["Name"] is DBNull ? null : (string)source["Name"];
  2843.                         Components = source["Components"] is DBNull ? null : (string)source["Components"];
  2844.                         CoolCap = source["CoolCap"] is DBNull ? null : (string)source["CoolCap"];
  2845.                         NameCN = source["NameCN"] is DBNull ? null : (string)source["NameCN"];
  2846.                         NameCustomer = source["NameCustomer"] is DBNull ? null : (string)source["NameCustomer"];
  2847.                         HeatCap = source["HeatCap"] is DBNull ? null : (string)source["HeatCap"];
  2848.                         Pic_Name = source["Pic_Name"] is DBNull ? null : (string)source["Pic_Name"];
  2849.                         RatedCoPower = source["RatedCoPower"] is DBNull ? null : (string)source["RatedCoPower"];
  2850.                         RatedHtPower = source["RatedHtPower"] is DBNull ? null : (string)source["RatedHtPower"];
  2851.                         PDF_Name = source["PDF_Name"] is DBNull ? null : (string)source["PDF_Name"];
  2852.                         Con_Boards = source["Con_Boards"] is DBNull ? null : (string)source["Con_Boards"];
  2853.                         MaxIDUs = source["MaxIDUs"] is DBNull ? null : (string)source["MaxIDUs"];
  2854.                         LtHtCap = source["LtHtCap"] is DBNull ? null : (string)source["LtHtCap"];
  2855.                         Height = source["Height"] is DBNull ? null : (string)source["Height"];
  2856.                         Length = source["Length"] is DBNull ? null : (string)source["Length"];
  2857.                         Refrigerant = source["Refrigerant"] is DBNull ? null : (string)source["Refrigerant"];
  2858.                         CtrlMode = source["CtrlMode"] is DBNull ? null : (string)source["CtrlMode"];
  2859.                         GasPipeDia = source["GasPipeDia"] is DBNull ? null : (string)source["GasPipeDia"];
  2860.                         GPipe_Unit = source["GPipe_Unit"] is DBNull ? null : (string)source["GPipe_Unit"];
  2861.                         HPGasPipeDia = source["HPGasPipeDia"] is DBNull ? null : (string)source["HPGasPipeDia"];
  2862.                         RefVol = source["RefVol"] is DBNull ? null : (string)source["RefVol"];
  2863.                         Width = source["Width"] is DBNull ? null : (string)source["Width"];
  2864.                         LiPipeDia = source["LiPipeDia"] is DBNull ? null : (string)source["LiPipeDia"];
  2865.                         Weight = source["Weight"] is DBNull ? null : (string)source["Weight"];
  2866.                         LtHtRatedPow = source["LtHtRatedPow"] is DBNull ? null : (string)source["LtHtRatedPow"];
  2867.                         Climate = source["Climate"] is DBNull ? null : (string)source["Climate"];
  2868.                         Volt = source["Volt"] is DBNull ? null : (string)source["Volt"];
  2869.                         Freq = source["Freq"] is DBNull ? null : (string)source["Freq"];
  2870.                         Phases = source["Phases"] is DBNull ? null : (string)source["Phases"];
  2871.                         LtHtRatedCurr = source["LtHtRatedCurr"] is DBNull ? null : (string)source["LtHtRatedCurr"];
  2872.                         PLineDia = source["PLineDia"] is DBNull ? null : (string)source["PLineDia"];
  2873.                         PLineCount = source["PLineCount"] is DBNull ? null : (string)source["PLineCount"];
  2874.                         Breaker = source["Breaker"] is DBNull ? null : (string)source["Breaker"];
  2875.                         Noise = source["Noise"] is DBNull ? null : (string)source["Noise"];
  2876.                         Compressor = source["Compressor"] is DBNull ? null : (string)source["Compressor"];
  2877.                         RatedCoCurr = source["RatedCoCurr"] is DBNull ? null : (string)source["RatedCoCurr"];
  2878.                         RatedHtCurr = source["RatedHtCurr"] is DBNull ? null : (string)source["RatedHtCurr"];
  2879.                         Moisture_pro = source["Moisture_pro"] is DBNull ? null : (string)source["Moisture_pro"];
  2880.                         ConMethod = source["ConMethod"] is DBNull ? null : (string)source["ConMethod"];
  2881.                         DimInstall = source["DimInstall"] is DBNull ? null : (string)source["DimInstall"];
  2882.                         PacDim_W = source["PacDim_W"] is DBNull ? null : (string)source["PacDim_W"];
  2883.                         PacDim_D = source["PacDim_D"] is DBNull ? null : (string)source["PacDim_D"];
  2884.                         PacDim_H = source["PacDim_H"] is DBNull ? null : (string)source["PacDim_H"];
  2885.                         ModulesBranchName = source["ModulesBranchName"] is DBNull ? null : (string)source["ModulesBranchName"];
  2886.                         FitTFA = source["FitTFA"] is DBNull ? null : (string)source["FitTFA"];
  2887.                 }
  2888.  
  2889.                 public int ID { get; set; }
  2890.                 public string SeriesName { get; set; }
  2891.                 public double? FuncType { get; set; }
  2892.                 public string Name { get; set; }
  2893.                 public string Components { get; set; }
  2894.                 public string CoolCap { get; set; }
  2895.                 public string NameCN { get; set; }
  2896.                 public string NameCustomer { get; set; }
  2897.                 public string HeatCap { get; set; }
  2898.                 public string Pic_Name { get; set; }
  2899.                 public string RatedCoPower { get; set; }
  2900.                 public string RatedHtPower { get; set; }
  2901.                 public string PDF_Name { get; set; }
  2902.                 public string Con_Boards { get; set; }
  2903.                 public string MaxIDUs { get; set; }
  2904.                 public string LtHtCap { get; set; }
  2905.                 public string Height { get; set; }
  2906.                 public string Length { get; set; }
  2907.                 public string Refrigerant { get; set; }
  2908.                 public string CtrlMode { get; set; }
  2909.                 public string GasPipeDia { get; set; }
  2910.                 public string GPipe_Unit { get; set; }
  2911.                 public string HPGasPipeDia { get; set; }
  2912.                 public string RefVol { get; set; }
  2913.                 public string Width { get; set; }
  2914.                 public string LiPipeDia { get; set; }
  2915.                 public string Weight { get; set; }
  2916.                 public string LtHtRatedPow { get; set; }
  2917.                 public string Climate { get; set; }
  2918.                 public string Volt { get; set; }
  2919.                 public string Freq { get; set; }
  2920.                 public string Phases { get; set; }
  2921.                 public string LtHtRatedCurr { get; set; }
  2922.                 public string PLineDia { get; set; }
  2923.                 public string PLineCount { get; set; }
  2924.                 public string Breaker { get; set; }
  2925.                 public string Noise { get; set; }
  2926.                 public string Compressor { get; set; }
  2927.                 public string RatedCoCurr { get; set; }
  2928.                 public string RatedHtCurr { get; set; }
  2929.                 public string Moisture_pro { get; set; }
  2930.                 public string ConMethod { get; set; }
  2931.                 public string DimInstall { get; set; }
  2932.                 public string PacDim_W { get; set; }
  2933.                 public string PacDim_D { get; set; }
  2934.                 public string PacDim_H { get; set; }
  2935.                 public string ModulesBranchName { get; set; }
  2936.                 public string FitTFA { get; set; }
  2937.         }
  2938.         public class OdusDesignCondition
  2939.         {
  2940.                 public OdusDesignCondition()
  2941.                 { }
  2942.  
  2943.                 public OdusDesignCondition(int id, string outdoor_id, short? iscooling, string minoutdbt, string maxoutdbt, string minindbt, string maxindbt, string mininrelativehumidity, string maxinrelativehumidity)
  2944.                 {
  2945.                         ID = id;
  2946.                         Outdoor_ID = outdoor_id;
  2947.                         IsCooling = iscooling;
  2948.                         MinOutDBT = minoutdbt;
  2949.                         MaxOutDBT = maxoutdbt;
  2950.                         MinInDBT = minindbt;
  2951.                         MaxInDBT = maxindbt;
  2952.                         MinInRelativeHumidity = mininrelativehumidity;
  2953.                         MaxInRelativeHumidity = maxinrelativehumidity;
  2954.                 }
  2955.  
  2956.                 public OdusDesignCondition(DataRow source)
  2957.                 {
  2958.                         ID = (int)source["ID"];
  2959.                         Outdoor_ID = source["Outdoor_ID"] is DBNull ? null : (string)source["Outdoor_ID"];
  2960.                         IsCooling = source["IsCooling"] is DBNull ? null : (short?)source["IsCooling"];
  2961.                         MinOutDBT = source["MinOutDBT"] is DBNull ? null : (string)source["MinOutDBT"];
  2962.                         MaxOutDBT = source["MaxOutDBT"] is DBNull ? null : (string)source["MaxOutDBT"];
  2963.                         MinInDBT = source["MinInDBT"] is DBNull ? null : (string)source["MinInDBT"];
  2964.                         MaxInDBT = source["MaxInDBT"] is DBNull ? null : (string)source["MaxInDBT"];
  2965.                         MinInRelativeHumidity = source["MinInRelativeHumidity"] is DBNull ? null : (string)source["MinInRelativeHumidity"];
  2966.                         MaxInRelativeHumidity = source["MaxInRelativeHumidity"] is DBNull ? null : (string)source["MaxInRelativeHumidity"];
  2967.                 }
  2968.  
  2969.                 public int ID { get; set; }
  2970.                 public string Outdoor_ID { get; set; }
  2971.                 public short? IsCooling { get; set; }
  2972.                 public string MinOutDBT { get; set; }
  2973.                 public string MaxOutDBT { get; set; }
  2974.                 public string MinInDBT { get; set; }
  2975.                 public string MaxInDBT { get; set; }
  2976.                 public string MinInRelativeHumidity { get; set; }
  2977.                 public string MaxInRelativeHumidity { get; set; }
  2978.         }
  2979.         public class OdusImportParameter
  2980.         {
  2981.                 public OdusImportParameter()
  2982.                 { }
  2983.  
  2984.                 public OdusImportParameter(int id, string odusname, string picturename)
  2985.                 {
  2986.                         ID = id;
  2987.                         OdusName = odusname;
  2988.                         PictureName = picturename;
  2989.                 }
  2990.  
  2991.                 public OdusImportParameter(DataRow source)
  2992.                 {
  2993.                         ID = (int)source["ID"];
  2994.                         OdusName = source["OdusName"] is DBNull ? null : (string)source["OdusName"];
  2995.                         PictureName = source["PictureName"] is DBNull ? null : (string)source["PictureName"];
  2996.                 }
  2997.  
  2998.                 public int ID { get; set; }
  2999.                 public string OdusName { get; set; }
  3000.                 public string PictureName { get; set; }
  3001.         }
  3002.         public class OdusLimitCapacity
  3003.         {
  3004.                 public OdusLimitCapacity()
  3005.                 { }
  3006.  
  3007.                 public OdusLimitCapacity(int id, string odusmodel, double? fhcapacity)
  3008.                 {
  3009.                         ID = id;
  3010.                         OdusModel = odusmodel;
  3011.                         FHCapacity = fhcapacity;
  3012.                 }
  3013.  
  3014.                 public OdusLimitCapacity(DataRow source)
  3015.                 {
  3016.                         ID = (int)source["ID"];
  3017.                         OdusModel = source["OdusModel"] is DBNull ? null : (string)source["OdusModel"];
  3018.                         FHCapacity = source["FHCapacity"] is DBNull ? null : (double?)source["FHCapacity"];
  3019.                 }
  3020.  
  3021.                 public int ID { get; set; }
  3022.                 public string OdusModel { get; set; }
  3023.                 public double? FHCapacity { get; set; }
  3024.         }
  3025.         public class OdusPressure
  3026.         {
  3027.                 public OdusPressure()
  3028.                 { }
  3029.  
  3030.                 public OdusPressure(double? outdoor_id, string odusmodel, string series, string description, string pressure_optional, int id, bool isrecommend)
  3031.                 {
  3032.                         Outdoor_ID = outdoor_id;
  3033.                         OdusModel = odusmodel;
  3034.                         Series = series;
  3035.                         Description = description;
  3036.                         Pressure_Optional = pressure_optional;
  3037.                         ID = id;
  3038.                         IsRecommend = isrecommend;
  3039.                 }
  3040.  
  3041.                 public OdusPressure(DataRow source)
  3042.                 {
  3043.                         Outdoor_ID = source["Outdoor_ID"] is DBNull ? null : (double?)source["Outdoor_ID"];
  3044.                         OdusModel = source["OdusModel"] is DBNull ? null : (string)source["OdusModel"];
  3045.                         Series = source["Series"] is DBNull ? null : (string)source["Series"];
  3046.                         Description = source["Description"] is DBNull ? null : (string)source["Description"];
  3047.                         Pressure_Optional = source["Pressure_Optional"] is DBNull ? null : (string)source["Pressure_Optional"];
  3048.                         ID = (int)source["ID"];
  3049.                         IsRecommend = (bool)source["IsRecommend"];
  3050.                 }
  3051.  
  3052.                 public double? Outdoor_ID { get; set; }
  3053.                 public string OdusModel { get; set; }
  3054.                 public string Series { get; set; }
  3055.                 public string Description { get; set; }
  3056.                 public string Pressure_Optional { get; set; }
  3057.                 public int ID { get; set; }
  3058.                 public bool IsRecommend { get; set; }
  3059.         }
  3060.         public class OdusRecommend
  3061.         {
  3062.                 public OdusRecommend()
  3063.                 { }
  3064.  
  3065.                 public OdusRecommend(int id, int? areaid, string idusname, string odusname, bool isrecommend)
  3066.                 {
  3067.                         ID = id;
  3068.                         AreaId = areaid;
  3069.                         IdusName = idusname;
  3070.                         OdusName = odusname;
  3071.                         IsRecommend = isrecommend;
  3072.                 }
  3073.  
  3074.                 public OdusRecommend(DataRow source)
  3075.                 {
  3076.                         ID = (int)source["ID"];
  3077.                         AreaId = source["AreaId"] is DBNull ? null : (int?)source["AreaId"];
  3078.                         IdusName = source["IdusName"] is DBNull ? null : (string)source["IdusName"];
  3079.                         OdusName = source["OdusName"] is DBNull ? null : (string)source["OdusName"];
  3080.                         IsRecommend = (bool)source["IsRecommend"];
  3081.                 }
  3082.  
  3083.                 public int ID { get; set; }
  3084.                 public int? AreaId { get; set; }
  3085.                 public string IdusName { get; set; }
  3086.                 public string OdusName { get; set; }
  3087.                 public bool IsRecommend { get; set; }
  3088.         }
  3089.         public class OdusSeriesRecommend
  3090.         {
  3091.                 public OdusSeriesRecommend()
  3092.                 { }
  3093.  
  3094.                 public OdusSeriesRecommend(int id, string buildingtypeid, int? functype, int? areaid, string model, bool isrecommend)
  3095.                 {
  3096.                         ID = id;
  3097.                         BuildingTypeID = buildingtypeid;
  3098.                         FuncType = functype;
  3099.                         AreaId = areaid;
  3100.                         Model = model;
  3101.                         IsRecommend = isrecommend;
  3102.                 }
  3103.  
  3104.                 public OdusSeriesRecommend(DataRow source)
  3105.                 {
  3106.                         ID = (int)source["ID"];
  3107.                         BuildingTypeID = source["BuildingTypeID"] is DBNull ? null : (string)source["BuildingTypeID"];
  3108.                         FuncType = source["FuncType"] is DBNull ? null : (int?)source["FuncType"];
  3109.                         AreaId = source["AreaId"] is DBNull ? null : (int?)source["AreaId"];
  3110.                         Model = source["Model"] is DBNull ? null : (string)source["Model"];
  3111.                         IsRecommend = (bool)source["IsRecommend"];
  3112.                 }
  3113.  
  3114.                 public int ID { get; set; }
  3115.                 public string BuildingTypeID { get; set; }
  3116.                 public int? FuncType { get; set; }
  3117.                 public int? AreaId { get; set; }
  3118.                 public string Model { get; set; }
  3119.                 public bool IsRecommend { get; set; }
  3120.         }
  3121.         public class OdusTubeTie
  3122.         {
  3123.                 public OdusTubeTie()
  3124.                 { }
  3125.  
  3126.                 public OdusTubeTie(int id, float? minenergy, float? maxenergy, string outdoormodel, string gtubediameter1, string gtubediameter2, string ltubediameter, int? type, int? areaid)
  3127.                 {
  3128.                         ID = id;
  3129.                         MinEnergy = minenergy;
  3130.                         MaxEnergy = maxenergy;
  3131.                         OutdoorModel = outdoormodel;
  3132.                         GTubeDiameter1 = gtubediameter1;
  3133.                         GTubeDiameter2 = gtubediameter2;
  3134.                         LTubeDiameter = ltubediameter;
  3135.                         Type = type;
  3136.                         AreaId = areaid;
  3137.                 }
  3138.  
  3139.                 public OdusTubeTie(DataRow source)
  3140.                 {
  3141.                         ID = (int)source["ID"];
  3142.                         MinEnergy = source["MinEnergy"] is DBNull ? null : (float?)source["MinEnergy"];
  3143.                         MaxEnergy = source["MaxEnergy"] is DBNull ? null : (float?)source["MaxEnergy"];
  3144.                         OutdoorModel = source["OutdoorModel"] is DBNull ? null : (string)source["OutdoorModel"];
  3145.                         GTubeDiameter1 = source["GTubeDiameter1"] is DBNull ? null : (string)source["GTubeDiameter1"];
  3146.                         GTubeDiameter2 = source["GTubeDiameter2"] is DBNull ? null : (string)source["GTubeDiameter2"];
  3147.                         LTubeDiameter = source["LTubeDiameter"] is DBNull ? null : (string)source["LTubeDiameter"];
  3148.                         Type = source["Type"] is DBNull ? null : (int?)source["Type"];
  3149.                         AreaId = source["AreaId"] is DBNull ? null : (int?)source["AreaId"];
  3150.                 }
  3151.  
  3152.                 public int ID { get; set; }
  3153.                 public float? MinEnergy { get; set; }
  3154.                 public float? MaxEnergy { get; set; }
  3155.                 public string OutdoorModel { get; set; }
  3156.                 public string GTubeDiameter1 { get; set; }
  3157.                 public string GTubeDiameter2 { get; set; }
  3158.                 public string LTubeDiameter { get; set; }
  3159.                 public int? Type { get; set; }
  3160.                 public int? AreaId { get; set; }
  3161.         }
  3162.         public class Outdoor
  3163.         {
  3164.                 public Outdoor()
  3165.                 { }
  3166.  
  3167.                 public Outdoor(double? outdoor_id, double? series_id, string name_english, string name_chinese, string parameter, string remark, string seriesname, string frequency, int? phase, string refrigerant, string generation, double? isheatpump, short? isstandard, double? sortnumber, int? areaid, string voltage, string frequency2, string voltage2)
  3168.                 {
  3169.                         Outdoor_ID = outdoor_id;
  3170.                         Series_ID = series_id;
  3171.                         Name_English = name_english;
  3172.                         Name_Chinese = name_chinese;
  3173.                         Parameter = parameter;
  3174.                         Remark = remark;
  3175.                         SeriesName = seriesname;
  3176.                         Frequency = frequency;
  3177.                         Phase = phase;
  3178.                         Refrigerant = refrigerant;
  3179.                         Generation = generation;
  3180.                         IsHeatPump = isheatpump;
  3181.                         IsStandard = isstandard;
  3182.                         SortNumber = sortnumber;
  3183.                         AreaId = areaid;
  3184.                         Voltage = voltage;
  3185.                         Frequency2 = frequency2;
  3186.                         Voltage2 = voltage2;
  3187.                 }
  3188.  
  3189.                 public Outdoor(DataRow source)
  3190.                 {
  3191.                         Outdoor_ID = source["Outdoor_ID"] is DBNull ? null : (double?)source["Outdoor_ID"];
  3192.                         Series_ID = source["Series_ID"] is DBNull ? null : (double?)source["Series_ID"];
  3193.                         Name_English = source["Name_English"] is DBNull ? null : (string)source["Name_English"];
  3194.                         Name_Chinese = source["Name_Chinese"] is DBNull ? null : (string)source["Name_Chinese"];
  3195.                         Parameter = source["Parameter"] is DBNull ? null : (string)source["Parameter"];
  3196.                         Remark = source["Remark"] is DBNull ? null : (string)source["Remark"];
  3197.                         SeriesName = source["SeriesName"] is DBNull ? null : (string)source["SeriesName"];
  3198.                         Frequency = source["Frequency"] is DBNull ? null : (string)source["Frequency"];
  3199.                         Phase = source["Phase"] is DBNull ? null : (int?)source["Phase"];
  3200.                         Refrigerant = source["Refrigerant"] is DBNull ? null : (string)source["Refrigerant"];
  3201.                         Generation = source["Generation"] is DBNull ? null : (string)source["Generation"];
  3202.                         IsHeatPump = source["IsHeatPump"] is DBNull ? null : (double?)source["IsHeatPump"];
  3203.                         IsStandard = source["IsStandard"] is DBNull ? null : (short?)source["IsStandard"];
  3204.                         SortNumber = source["SortNumber"] is DBNull ? null : (double?)source["SortNumber"];
  3205.                         AreaId = source["AreaId"] is DBNull ? null : (int?)source["AreaId"];
  3206.                         Voltage = source["Voltage"] is DBNull ? null : (string)source["Voltage"];
  3207.                         Frequency2 = source["Frequency2"] is DBNull ? null : (string)source["Frequency2"];
  3208.                         Voltage2 = source["Voltage2"] is DBNull ? null : (string)source["Voltage2"];
  3209.                 }
  3210.  
  3211.                 public double? Outdoor_ID { get; set; }
  3212.                 public double? Series_ID { get; set; }
  3213.                 public string Name_English { get; set; }
  3214.                 public string Name_Chinese { get; set; }
  3215.                 public string Parameter { get; set; }
  3216.                 public string Remark { get; set; }
  3217.                 public string SeriesName { get; set; }
  3218.                 public string Frequency { get; set; }
  3219.                 public int? Phase { get; set; }
  3220.                 public string Refrigerant { get; set; }
  3221.                 public string Generation { get; set; }
  3222.                 public double? IsHeatPump { get; set; }
  3223.                 public short? IsStandard { get; set; }
  3224.                 public double? SortNumber { get; set; }
  3225.                 public int? AreaId { get; set; }
  3226.                 public string Voltage { get; set; }
  3227.                 public string Frequency2 { get; set; }
  3228.                 public string Voltage2 { get; set; }
  3229.         }
  3230.         public class RefrigerantModel
  3231.         {
  3232.                 public RefrigerantModel()
  3233.                 { }
  3234.  
  3235.                 public RefrigerantModel(int id, string odusmodel, int? type)
  3236.                 {
  3237.                         ID = id;
  3238.                         OdusModel = odusmodel;
  3239.                         Type = type;
  3240.                 }
  3241.  
  3242.                 public RefrigerantModel(DataRow source)
  3243.                 {
  3244.                         ID = (int)source["ID"];
  3245.                         OdusModel = source["OdusModel"] is DBNull ? null : (string)source["OdusModel"];
  3246.                         Type = source["Type"] is DBNull ? null : (int?)source["Type"];
  3247.                 }
  3248.  
  3249.                 public int ID { get; set; }
  3250.                 public string OdusModel { get; set; }
  3251.                 public int? Type { get; set; }
  3252.         }
  3253.         public class Resolution
  3254.         {
  3255.                 public Resolution()
  3256.                 { }
  3257.  
  3258.                 public Resolution(int id, string level)
  3259.                 {
  3260.                         ID = id;
  3261.                         Level = level;
  3262.                 }
  3263.  
  3264.                 public Resolution(DataRow source)
  3265.                 {
  3266.                         ID = (int)source["ID"];
  3267.                         Level = source["Level"] is DBNull ? null : (string)source["Level"];
  3268.                 }
  3269.  
  3270.                 public int ID { get; set; }
  3271.                 public string Level { get; set; }
  3272.         }
  3273.         public class Room
  3274.         {
  3275.                 public Room()
  3276.                 { }
  3277.  
  3278.                 public Room(int id, int roomid, string coolload, string heatload, string windload, string type_chinese, string type_english, string comment_chinese, string comment_english, string maxload, int? sortnumber, int? type)
  3279.                 {
  3280.                         ID = id;
  3281.                         RoomId = roomid;
  3282.                         CoolLoad = coolload;
  3283.                         HeatLoad = heatload;
  3284.                         WindLoad = windload;
  3285.                         Type_Chinese = type_chinese;
  3286.                         Type_English = type_english;
  3287.                         Comment_Chinese = comment_chinese;
  3288.                         Comment_English = comment_english;
  3289.                         MaxLoad = maxload;
  3290.                         SortNumber = sortnumber;
  3291.                         Type = type;
  3292.                 }
  3293.  
  3294.                 public Room(DataRow source)
  3295.                 {
  3296.                         ID = (int)source["ID"];
  3297.                         RoomId = (int)source["RoomId"];
  3298.                         CoolLoad = source["CoolLoad"] is DBNull ? null : (string)source["CoolLoad"];
  3299.                         HeatLoad = source["HeatLoad"] is DBNull ? null : (string)source["HeatLoad"];
  3300.                         WindLoad = source["WindLoad"] is DBNull ? null : (string)source["WindLoad"];
  3301.                         Type_Chinese = source["Type_Chinese"] is DBNull ? null : (string)source["Type_Chinese"];
  3302.                         Type_English = source["Type_English"] is DBNull ? null : (string)source["Type_English"];
  3303.                         Comment_Chinese = source["Comment_Chinese"] is DBNull ? null : (string)source["Comment_Chinese"];
  3304.                         Comment_English = source["Comment_English"] is DBNull ? null : (string)source["Comment_English"];
  3305.                         MaxLoad = source["MaxLoad"] is DBNull ? null : (string)source["MaxLoad"];
  3306.                         SortNumber = source["SortNumber"] is DBNull ? null : (int?)source["SortNumber"];
  3307.                         Type = source["Type"] is DBNull ? null : (int?)source["Type"];
  3308.                 }
  3309.  
  3310.                 public int ID { get; set; }
  3311.                 public int RoomId { get; set; }
  3312.                 public string CoolLoad { get; set; }
  3313.                 public string HeatLoad { get; set; }
  3314.                 public string WindLoad { get; set; }
  3315.                 public string Type_Chinese { get; set; }
  3316.                 public string Type_English { get; set; }
  3317.                 public string Comment_Chinese { get; set; }
  3318.                 public string Comment_English { get; set; }
  3319.                 public string MaxLoad { get; set; }
  3320.                 public int? SortNumber { get; set; }
  3321.                 public int? Type { get; set; }
  3322.         }
  3323.         public class Series
  3324.         {
  3325.                 public Series()
  3326.                 { }
  3327.  
  3328.                 public Series(double id, double? series_id, string name_english, string name_chinese, double? freq, double? phase, string volt, double? typesign, string isheatpump, int? sortnumber)
  3329.                 {
  3330.                         ID = id;
  3331.                         Series_ID = series_id;
  3332.                         Name_English = name_english;
  3333.                         Name_Chinese = name_chinese;
  3334.                         Freq = freq;
  3335.                         Phase = phase;
  3336.                         Volt = volt;
  3337.                         TypeSign = typesign;
  3338.                         IsHeatPump = isheatpump;
  3339.                         SortNumber = sortnumber;
  3340.                 }
  3341.  
  3342.                 public Series(DataRow source)
  3343.                 {
  3344.                         ID = (double)source["ID"];
  3345.                         Series_ID = source["Series_ID"] is DBNull ? null : (double?)source["Series_ID"];
  3346.                         Name_English = source["Name_English"] is DBNull ? null : (string)source["Name_English"];
  3347.                         Name_Chinese = source["Name_Chinese"] is DBNull ? null : (string)source["Name_Chinese"];
  3348.                         Freq = source["Freq"] is DBNull ? null : (double?)source["Freq"];
  3349.                         Phase = source["Phase"] is DBNull ? null : (double?)source["Phase"];
  3350.                         Volt = source["Volt"] is DBNull ? null : (string)source["Volt"];
  3351.                         TypeSign = source["TypeSign"] is DBNull ? null : (double?)source["TypeSign"];
  3352.                         IsHeatPump = source["IsHeatPump"] is DBNull ? null : (string)source["IsHeatPump"];
  3353.                         SortNumber = source["SortNumber"] is DBNull ? null : (int?)source["SortNumber"];
  3354.                 }
  3355.  
  3356.                 public double ID { get; set; }
  3357.                 public double? Series_ID { get; set; }
  3358.                 public string Name_English { get; set; }
  3359.                 public string Name_Chinese { get; set; }
  3360.                 public double? Freq { get; set; }
  3361.                 public double? Phase { get; set; }
  3362.                 public string Volt { get; set; }
  3363.                 public double? TypeSign { get; set; }
  3364.                 public string IsHeatPump { get; set; }
  3365.                 public int? SortNumber { get; set; }
  3366.         }
  3367.         public class SysCheck
  3368.         {
  3369.                 public SysCheck()
  3370.                 { }
  3371.  
  3372.                 public SysCheck(int id, string model, double? type, string title)
  3373.                 {
  3374.                         ID = id;
  3375.                         Model = model;
  3376.                         Type = type;
  3377.                         Title = title;
  3378.                 }
  3379.  
  3380.                 public SysCheck(DataRow source)
  3381.                 {
  3382.                         ID = (int)source["ID"];
  3383.                         Model = source["Model"] is DBNull ? null : (string)source["Model"];
  3384.                         Type = source["Type"] is DBNull ? null : (double?)source["Type"];
  3385.                         Title = source["Title"] is DBNull ? null : (string)source["Title"];
  3386.                 }
  3387.  
  3388.                 public int ID { get; set; }
  3389.                 public string Model { get; set; }
  3390.                 public double? Type { get; set; }
  3391.                 public string Title { get; set; }
  3392.         }
  3393.         public class SysCheckItem
  3394.         {
  3395.                 public SysCheckItem()
  3396.                 { }
  3397.  
  3398.                 public SysCheckItem(int id, double? checktype, double? syscheckid, string description, double? checkvalue)
  3399.                 {
  3400.                         ID = id;
  3401.                         CheckType = checktype;
  3402.                         SysCheckId = syscheckid;
  3403.                         Description = description;
  3404.                         CheckValue = checkvalue;
  3405.                 }
  3406.  
  3407.                 public SysCheckItem(DataRow source)
  3408.                 {
  3409.                         ID = (int)source["ID"];
  3410.                         CheckType = source["CheckType"] is DBNull ? null : (double?)source["CheckType"];
  3411.                         SysCheckId = source["SysCheckId"] is DBNull ? null : (double?)source["SysCheckId"];
  3412.                         Description = source["Description"] is DBNull ? null : (string)source["Description"];
  3413.                         CheckValue = source["CheckValue"] is DBNull ? null : (double?)source["CheckValue"];
  3414.                 }
  3415.  
  3416.                 public int ID { get; set; }
  3417.                 public double? CheckType { get; set; }
  3418.                 public double? SysCheckId { get; set; }
  3419.                 public string Description { get; set; }
  3420.                 public double? CheckValue { get; set; }
  3421.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement