All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openurp.code.hr.model.industry.scala Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (C) 2014, The OpenURP Software.
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published
 * by the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see .
 */

package org.openurp.code.hr.model

import org.beangle.commons.collection.Collections
import org.beangle.data.model.annotation.code
import org.beangle.data.model.pojo.Hierarchical
import org.openurp.code.CodeBean

/**
 * 教职工类别
 * 参见教育部标准JY/T 1001 4.4.16
 */
@code("industry")
class StaffType extends CodeBean {
  var parent: Option[StaffType] = None
  var children = Collections.newBuffer[StaffType]
}

/**
 * 教职工来源
 * 参见教育部标准JY/T 1001 4.4.17
 */
@code("industry")
class StaffSourceType extends CodeBean {
  var parent: Option[StaffSourceType] = None
  var children = Collections.newBuffer[StaffSourceType]
}

/**
 * 在职状态
 *
 * 参见教育部标准JY/T 1001 4.4.15
 */
@code("industry")
class WorkStatus extends CodeBean

/**
 * 用户分类
 */
@code("industry")
class UserCategory extends CodeBean

object UserCategory {
  def apply(id: Int): UserCategory = {
    val uc = new UserCategory
    uc.id = id
    uc
  }
}

/**
 * 部门分类
 */
@code("industry")
class DepartmentCategory extends CodeBean with Hierarchical[DepartmentCategory]




© 2015 - 2025 Weber Informatics LLC | Privacy Policy