OFBiz 中的员工自助服务

发布于 2024-12-11 07:54:37 字数 420 浏览 1 评论 0原文

我正在研究 OFBiz HR 模块,那里的休假功能实现得很完美。但我不明白几点。即使我以 demoemployee 身份登录,我也可以向管理员申请休假。 事实并非如此。

请验证以下步骤:

  1. 以 demoemployee 身份登录:(uid:demoemployee,pwd:ofbiz)
  2. 导航至 HR -->人力资源-->离开
  3. 单击“新建离开”按钮
  4. 选择 partyid 为“admin” 管理员,以及其他字段...然后单击“创建”。
  5. 已为管理员创建休假。

我想知道如何限制员工自己申请休假。

is ofbiz 可用于员工自助服务功能,例如更新他自己的详细信息/查看他自己的工资详细信息、更新他自己的休假...

谢谢, 钱德拉塞卡 K.

I am looking into OFBiz HR module, there leave functionality is implemented perfectly. But i am not understand few points. Even if i login as demoemployee i can apply leave for Admin.
This sould not be the case.

Please verify the following steps:

  1. Logged in as demoemployee: (uid: demoemployee, pwd:ofbiz)
  2. Navigate to HR --> Human Resources --> Leave
  3. Click on "New Leave" button
  4. Select partyid as "admin" The Administrator, and other fields... and click on "Create".
  5. The leave has been created for admin.

I want to know how to restrict employee to apply his/her own leaves.

Is ofbiz can be used for Employee-Self-Service functionalities like updating his own details/viewing his own salary details, updating his own leavs....

Thanks,
Chandrasekhar K.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

鲸落 2024-12-18 07:54:37

通常 OFBiz OTTB 组件非常通用,并不适用于每个人的用例,需要进行一些定制,HR 模块也是如此。

我正在研究 OFBiz HR 模块,那里的休假功能实现得很完美。但我不明白几点。即使我以 demoemployee 身份登录,我也可以向管理员申请休假。事实并非如此。

demoemployee 是 HUMANRES_EMPLOYEE 组的一部分,该组具有 VIEW 和 CREATE 权限,这就是为什么使用此用户可以查看和创建叶子。但请注意,例如您没有更新权限,因此您无法更新和批准休假。通常这种情况下,请假仍然无效,只能录入系统……

我想知道如何限制员工自己请假。

要限制用户为其他用户创建离开,您必须覆盖 humanResManagerPermission 服务并应用您的自定义逻辑(登录用户 partyId 应与离开党 ID 相同)

Is ofbiz 可用于员工自助服务功能,例如更新自己的详细信息/查看自己的薪资详细信息、更新自己的休假......

是的,当然有两种方法:

  1. 如果 HR 或 Party 组件中有一些屏幕靠近您的需求定制它们
  2. 创建一个新组件,其中包含您想要的特定屏幕。

在这两种情况下,您可以/应该重用现有的数据模式和服务。大部分/所有工作都是关于创建适当的 UI

Usually OFBiz OTTB components are pretty generic and will not apply to everyones use case and some customization is required, this is also the case with HR module.

I am looking into OFBiz HR module, there leave functionality is implemented perfectly. But i am not understand few points. Even if i login as demoemployee i can apply leave for Admin. This sould not be the case.

demoemployee is part of HUMANRES_EMPLOYEE group which has VIEW and CREATE permissions, that's why with this user you can view and create leaves. But notice that you don't have UPDATE permission for example, so you cannot update and approve the leave. Usually in this case the leave is still not valid, only entered in the system…

I want to know how to restrict employee to apply his/her own leaves.

To restrict the users from creating leaves for other users, you have to override the humanResManagerPermission service and apply your custom logic (logged in user partyId should be the same as leaving party Id)

Is ofbiz can be used for Employee-Self-Service functionalities like updating his own details/viewing his own salary details, updating his own leavs....

Yes definitely, two approaches:

  1. if there are some screens in HR or Party component close to your requirements customize them
  2. Create a new component, with the spcific screens you want.

In both cases you can/should reuse the existing datamode and services. Most/all of the work will be about creating appropirate UI

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文