public C_ERROR_CODE GetDataObject() { C_ERROR_CODE DataObject = new C_ERROR_CODE(); DataObject.ID = this.ID; DataObject.ERROR_CODE = this.ERROR_CODE; DataObject.ENGLISH_DESCRIPTION = this.ENGLISH_DESCRIPTION; DataObject.CHINESE_DESCRIPTION = this.CHINESE_DESCRIPTION; DataObject.EDIT_TIME = this.EDIT_TIME; DataObject.EDIT_EMP = this.EDIT_EMP; return(DataObject); }
public int UpdateById(C_ERROR_CODE NewErrorCode, OleExec DB) { Row_C_ERROR_CODE NewErrorCodeRow = (Row_C_ERROR_CODE)NewRow(); NewErrorCodeRow.ID = NewErrorCode.ID; NewErrorCodeRow.ERROR_CODE = NewErrorCode.ERROR_CODE; NewErrorCodeRow.ENGLISH_DESCRIPTION = NewErrorCode.ENGLISH_DESCRIPTION; NewErrorCodeRow.CHINESE_DESCRIPTION = NewErrorCode.CHINESE_DESCRIPTION; NewErrorCodeRow.EDIT_EMP = NewErrorCode.EDIT_EMP; NewErrorCodeRow.EDIT_TIME = NewErrorCode.EDIT_TIME; int result = DB.ExecuteNonQuery(NewErrorCodeRow.GetUpdateString(DBType, NewErrorCode.ID), CommandType.Text); return(result); }