Exemplo n.º 1
0
 public static OrgTreeNode convert(OrgEmployee emp) {
   OrgTreeNode node = (OrgTreeNode) DataObjectUtil.convertDataObject(emp, OrgTreeNode.QNAME, true);
   node.setNodeId(String.valueOf(emp.getEmpid()));
   node.setNodeType(OrgEmployee.NODE_TYPE);
   node.setNodeName(emp.getEmpname());
   node.setIconCls(IconCls.EMPLOYEE);
   return node;
 }
Exemplo n.º 2
0
 public static OrgTreeNode convert(OrgOrganization org) {
   OrgTreeNode node = (OrgTreeNode) DataObjectUtil.convertDataObject(org, OrgTreeNode.QNAME, true);
   node.setNodeId(String.valueOf(org.getOrgid()));
   node.setNodeType(OrgOrganization.NODE_TYPE);
   node.setNodeName(org.getOrgname());
   node.setIconCls(IconCls.ORGANIZATION);
   return node;
 }
Exemplo n.º 3
0
 public static OrgTreeNode convert(OrgPosition position) {
   OrgTreeNode node =
       (OrgTreeNode) DataObjectUtil.convertDataObject(position, OrgTreeNode.QNAME, true);
   node.setNodeId(String.valueOf(position.getPositionid()));
   node.setNodeType(OrgPosition.NODE_TYPE);
   node.setNodeName(position.getPosiname());
   node.setIconCls(IconCls.POSITION);
   return node;
 }