计算资源池的每日加班和每天的平均加班 - 任何logic

发布于 2025-02-04 17:27:39 字数 683 浏览 1 评论 0原文

我正在尝试计算每个资源池的加班时间,我到达的是耗时,几乎是手动计算,请寻找正确的方法。

我正在做的是如下,例如,我有药剂师的资源池(正常的时间,随着时间的流逝,我将它们划分,以使我更容易获得每次轮班的统计信息,以便以后进行优化):

我在药剂师的Onexist Realse中添加了以下traceln:

traceln(date());
traceln(agent.OrderID);

因此,它返回了所有通过的代理的日期和时间。然后,我运行模型并从控制台中复制Traceln输出,并在Excel中处理它们:

the overtime hours of the day = last recorded time of a certain date - the start of overtime shift 

我每天重复上述时间,这需要太多时间,尤其是因为还有其他资源也需要它们的加班时间。

资源池的日常加班(以及日常的加班)是否有任何简化,快速的方法?

谢谢。

I'm trying to calculate the overtime of each resourcePool, what I reached is time-consuming and almost a manual calculation, looking for the correct way to do that, please.

What I'm doing is as follows, for example, I have the pharmacists' resource pool (regular hours, and over time pool, I divide them to be easier for me to get statistics of each shift and for optimization later on):
enter image description here

I added the following traceln in onExist realse of the pharmacists:

traceln(date());
traceln(agent.OrderID);

So it returns the date and time of all passed agents. Then I run the model and copy the traceln outputs from the console and process them in Excel:

the overtime hours of the day = last recorded time of a certain date - the start of overtime shift 

I repeat the above for each day which takes too much time, especially since there are other resources that also I need their overtime.

Is there any simplified and quick method to get the daily overtime (and the daily mean overtime) of a resourcePool?

Thank you.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文