public void SaveDocumentTypeLibrary(DocumentTypeLibraryBean bean) { if( bean.ID == null ) bean.DataState = BASEBean.eDataState.DS_ADD; bean.save(); }