【发布时间】:2021-04-15 10:11:09
【问题描述】:
如何在 acumatica 中的 pxtimelist 中获得超过 24 小时。
在 Acumatica 中,我们目前 PXTimeList 可以在下拉列表中接受长达 24:00 的时间..
我们如何在下拉列表中增加时间列表。例如:50:00 或 45:30
【问题讨论】:
如何在 acumatica 中的 pxtimelist 中获得超过 24 小时。
在 Acumatica 中,我们目前 PXTimeList 可以在下拉列表中接受长达 24:00 的时间..
我们如何在下拉列表中增加时间列表。例如:50:00 或 45:30
【问题讨论】:
使用PXDBTimeSpanLong 属性而不是PXTimeList:
public abstract class timeSpent : PX.Data.BQL.BqlInt.Field<timeSpent> { }
[PXDBTimeSpanLong(Format = TimeSpanFormatType.LongHoursMinutes)]
[PXUIField(DisplayName = "Time Spent", Enabled = false)]
public virtual Int32? TimeSpent { get; set; }
在 PXTimeSpan 控件上定义 MaxHours 属性:
<px:PXTimeSpan TimeMode="True" ID="edTimeSpent" runat="server"
DataField="TimeSpent" InputMask="hh:mm" MaxHours="99" />
【讨论】: