Esempio n. 1
0
 public JTypeVO[] Collection(DataTable table)
 {
     int length = table.Rows.Count;
     JTypeVO[] result = new JTypeVO[length];
     for (int i = 0; i < length; i++) {
         result [i] = new JTypeVO ();
     }
     return result;
 }
Esempio n. 2
0
 JTypeVO Init(DataRow dr)
 {
     if (dr == null)
         return null;
     JTypeVO VO = new JTypeVO ();
     VO.typeId = dr["type_id"] as string;
     VO.title = dr["title"] as string;
     VO.index = Convert.ToInt32(dr["index"]);
     return VO;
 }