public static EPWeekRaw ToEPWeekRaw(PXWeekSelectorAttribute.EPWeek week) { EPWeekRaw res = new EPWeekRaw(); res.EndDate = week.EndDate; res.StartDate = week.StartDate; res.WeekID = week.WeekID; res.Number = week.Number; res.FullNumber = week.FullNumber; res.IsFullWeek = true; res.IsActive = true; return(res); }
//#region System //#region CreatedByID //public abstract class createdByID : PX.Data.BQL.BqlGuid.Field<createdByID> //{ //} //protected Guid? _CreatedByID; //[PXDBCreatedByID(DontOverrideValue = true)] //[PXUIField(DisplayName = "Created By", Enabled = false)] //public virtual Guid? CreatedByID //{ // get // { // return this._CreatedByID; // } // set // { // this._CreatedByID = value; // } //} //#endregion //#region CreatedByScreenID //public abstract class createdByScreenID : PX.Data.BQL.BqlString.Field<createdByScreenID> //{ //} //protected String _CreatedByScreenID; //[PXDBCreatedByScreenID] //public virtual String CreatedByScreenID //{ // get // { // return this._CreatedByScreenID; // } // set // { // this._CreatedByScreenID = value; // } //} //#endregion //#region CreatedDateTime //public abstract class createdDateTime : PX.Data.BQL.BqlDateTime.Field<createdDateTime> //{ //} //protected DateTime? _CreatedDateTime; //[PXUIField(DisplayName = "Created At")] //[PXDBCreatedDateTimeUtc] //public virtual DateTime? CreatedDateTime //{ // get // { // return this._CreatedDateTime; // } // set // { // this._CreatedDateTime = value; // } //} //#endregion //#region LastModifiedByID //public abstract class lastModifiedByID : PX.Data.BQL.BqlGuid.Field<lastModifiedByID> //{ //} //protected Guid? _LastModifiedByID; //[PXDBLastModifiedByID] //public virtual Guid? LastModifiedByID //{ // get // { // return this._LastModifiedByID; // } // set // { // this._LastModifiedByID = value; // } //} //#endregion //#region LastModifiedByScreenID //public abstract class lastModifiedByScreenID : PX.Data.BQL.BqlString.Field<lastModifiedByScreenID> //{ //} //protected String _LastModifiedByScreenID; //[PXDBLastModifiedByScreenID] //public virtual String LastModifiedByScreenID //{ // get // { // return this._LastModifiedByScreenID; // } // set // { // this._LastModifiedByScreenID = value; // } //} //#endregion //#region LastModifiedDateTime //public abstract class lastModifiedDateTime : PX.Data.BQL.BqlDateTime.Field<lastModifiedDateTime> //{ //} //protected DateTime? _LastModifiedDateTime; //[PXDBLastModifiedDateTimeUtc] //public virtual DateTime? LastModifiedDateTime //{ // get // { // return this._LastModifiedDateTime; // } // set // { // this._LastModifiedDateTime = value; // } //} //#endregion //#region EntityDescription //public abstract class entityDescription : PX.Data.BQL.BqlString.Field<entityDescription> //{ //} //protected string _EntityDescription; //[PXString(InputMask = "")] //[PXUIField(DisplayName = "Entity", Visibility = PXUIVisibility.SelectorVisible, Enabled = false, IsReadOnly = true)] //public virtual string EntityDescription //{ // get // { // return this._EntityDescription; // } // set // { // this._EntityDescription = value; // } //} //#endregion //#region tstamp //public abstract class Tstamp : PX.Data.BQL.BqlByteArray.Field<Tstamp> //{ //} //protected Byte[] _tstamp; //[PXDBTimestamp()] //public virtual Byte[] tstamp //{ // get // { // return this._tstamp; // } // set // { // this._tstamp = value; // } //} //#endregion //#endregion public static EPWeekRaw ToEPWeekRaw(EPCustomWeek week) { EPWeekRaw res = new EPWeekRaw(); res.EndDate = week.EndDate; res.StartDate = week.StartDate; res.WeekID = week.WeekID; res.Year = week.Year; res.Number = week.Number; res.FullNumber = week.FullNumber; res.IsFullWeek = week.IsFullWeek; res.IsActive = week.IsActive; return(res); }
public static EPWeekRaw ToEPWeekRaw(PXWeekSelectorAttribute.EPWeek week) { EPWeekRaw res = new EPWeekRaw(); res.EndDate = week.EndDate; res.StartDate = week.StartDate; res.WeekID = week.WeekID; res.Number = week.Number; res.ShortDescription = week.ShortDescription; res.Description = week.Description; res.FullNumber = week.FullNumber; res.IsFullWeek = true; res.IsActive = true; return res; }
//#region System //#region CreatedByID //public abstract class createdByID : PX.Data.IBqlField //{ //} //protected Guid? _CreatedByID; //[PXDBCreatedByID(DontOverrideValue = true)] //[PXUIField(DisplayName = "Created By", Enabled = false)] //public virtual Guid? CreatedByID //{ // get // { // return this._CreatedByID; // } // set // { // this._CreatedByID = value; // } //} //#endregion //#region CreatedByScreenID //public abstract class createdByScreenID : PX.Data.IBqlField //{ //} //protected String _CreatedByScreenID; //[PXDBCreatedByScreenID] //public virtual String CreatedByScreenID //{ // get // { // return this._CreatedByScreenID; // } // set // { // this._CreatedByScreenID = value; // } //} //#endregion //#region CreatedDateTime //public abstract class createdDateTime : PX.Data.IBqlField //{ //} //protected DateTime? _CreatedDateTime; //[PXUIField(DisplayName = "Created At")] //[PXDBCreatedDateTimeUtc] //public virtual DateTime? CreatedDateTime //{ // get // { // return this._CreatedDateTime; // } // set // { // this._CreatedDateTime = value; // } //} //#endregion //#region LastModifiedByID //public abstract class lastModifiedByID : PX.Data.IBqlField //{ //} //protected Guid? _LastModifiedByID; //[PXDBLastModifiedByID] //public virtual Guid? LastModifiedByID //{ // get // { // return this._LastModifiedByID; // } // set // { // this._LastModifiedByID = value; // } //} //#endregion //#region LastModifiedByScreenID //public abstract class lastModifiedByScreenID : PX.Data.IBqlField //{ //} //protected String _LastModifiedByScreenID; //[PXDBLastModifiedByScreenID] //public virtual String LastModifiedByScreenID //{ // get // { // return this._LastModifiedByScreenID; // } // set // { // this._LastModifiedByScreenID = value; // } //} //#endregion //#region LastModifiedDateTime //public abstract class lastModifiedDateTime : PX.Data.IBqlField //{ //} //protected DateTime? _LastModifiedDateTime; //[PXDBLastModifiedDateTimeUtc] //public virtual DateTime? LastModifiedDateTime //{ // get // { // return this._LastModifiedDateTime; // } // set // { // this._LastModifiedDateTime = value; // } //} //#endregion //#region EntityDescription //public abstract class entityDescription : IBqlField //{ //} //protected string _EntityDescription; //[PXString(InputMask = "")] //[PXUIField(DisplayName = "Entity", Visibility = PXUIVisibility.SelectorVisible, Enabled = false, IsReadOnly = true)] //public virtual string EntityDescription //{ // get // { // return this._EntityDescription; // } // set // { // this._EntityDescription = value; // } //} //#endregion //#region tstamp //public abstract class Tstamp : PX.Data.IBqlField //{ //} //protected Byte[] _tstamp; //[PXDBTimestamp()] //public virtual Byte[] tstamp //{ // get // { // return this._tstamp; // } // set // { // this._tstamp = value; // } //} //#endregion //#endregion public static EPWeekRaw ToEPWeekRaw(EPCustomWeek week) { EPWeekRaw res = new EPWeekRaw(); res.EndDate = week.EndDate; res.StartDate = week.StartDate; res.WeekID = week.WeekID; res.Year = week.Year; res.Number = week.Number; res.ShortDescription = week.ShortDescription; res.Description = week.Description; res.FullNumber = week.FullNumber; res.IsFullWeek = week.IsFullWeek; res.IsActive = week.IsActive; return res; }