【问题标题】:how to get more than 24 hrs in a pxtimelist in Acumatica?如何在 Acumatica 的 pxtimelist 中获得超过 24 小时?
【发布时间】:2021-04-15 10:11:09
【问题描述】:

如何在 acumatica 中的 pxtimelist 中获得超过 24 小时。

在 Acumatica 中,我们目前 PXTimeList 可以在下拉列表中接受长达 24:00 的时间..

我们如何在下拉列表中增加时间列表。例如:50:00 或 45:30

【问题讨论】:

    标签: acumatica acumatica-kb


    【解决方案1】:

    使用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" />
    

    此属性使用MaskEdit 类型的控件编辑器而不是ComboBox 类型:

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-03-29
      • 2012-08-18
      • 2020-07-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多