PXDBTimeSpan 属性

所述 PXDBTimeSpan 属性被设计与 Nullable<int>int?)的 DAC 领域工作一个 DAC 字段作为自午夜传递的分钟数内键入和存储时间值:

#region UsrTimeInt
public abstract class usrTimeInt : IBqlField
{ }

[PXDBTimeSpan(DisplayMask = "t", InputMask = "t")]
[PXUIField(DisplayName = "Time Value")]
public int? UsrTimeInt { get; set; }
#endregion

在 UI 中,对于使用 PXDBTimeSpanAttribute 修饰的字段,系统会在表单上创建一个半小时间隔值的下拉列表:

StackOverflow 文档

并在网格单元格内:

<px:PXDateTimeEdit runat="server" ID="edUsrTimeInt" DataField="UsrTimeInt" TimeMode="true" />

StackOverflow 文档

<px:PXGridColumn DataField="UsrTimeInt" Width="90px" TimeMode="true" />