Example #1
0
    private void LoadFields(DataRow dataRow) {
      id = (int) dataRow["ClassifierTypeId"];    
		  name = (string) dataRow["ClassifierTypeName"];
		  abbreviation = (string) dataRow["Abbreviation"];
		  description = (string) dataRow["Description"];
		  structureField = (string) dataRow["StructureField"];
		  if ((int) dataRow["ParentTypeId"] != 0) {
		    parentType = ClassifierType.Parse((int) dataRow["ParentTypeId"]);
		  }
    }
Example #2
0
 private void LoadFields(DataRow dataRow) {
   id = (int) dataRow["ClassifierId"];
   classifierType = ClassifierType.Parse((int) dataRow["ClassifierTypeId"]);
   tag = (string) dataRow["ClassifierTag"];
   name = (string) dataRow["ClassifierName"];
   description = (string) dataRow["Description"];
   keywords = (string) dataRow["Keywords"];
   if ((int) dataRow["ParentId"] != 0) {
     parent = Classifier.Parse((int) dataRow["ParentId"]);
   }
   if ((int) dataRow["ReplacedById"] != 0) {
     replacedBy = Classifier.Parse((int) dataRow["ReplacedById"]);
   }
   status = (ClassifierStatus) Convert.ToChar((string) dataRow["ClassifierStatus"]);
 }
Example #3
0
 static public ClassifierType Parse(int id) {
   ClassifierType classifierType = new ClassifierType();      
   classifierType.Load(id);
   
   return classifierType;
 }