public C_FACTORY ConstructFactory(DataRow dr) //convert row to object (as one row ) to send to client Json { C_FACTORY factory = new C_FACTORY(); Row_C_FACTORY row = (Row_C_FACTORY)NewRow(); row.loadData(dr); factory = row.GetDataObject(); return(factory); }
public C_FACTORY GetDataObject() { C_FACTORY DataObject = new C_FACTORY(); DataObject.ID = this.ID; DataObject.FACTORY_CODE = this.FACTORY_CODE; DataObject.FACTORY_NAME = this.FACTORY_NAME; DataObject.FACTORY_ADDRESS = this.FACTORY_ADDRESS; DataObject.DESCRIPTION = this.DESCRIPTION; DataObject.EDIT_TIME = this.EDIT_TIME; DataObject.EDIT_EMP = this.EDIT_EMP; return(DataObject); }