Skip to content

Commit 4a5aff1

Browse files
committed
Merge remote-tracking branch 'remotes/origin/2025R2' into 2026R1
2 parents 5c56ce2 + aa43ac9 commit 4a5aff1

7 files changed

Lines changed: 335 additions & 0 deletions

File tree

Customization/T220/CodeSnippets/Step1.2.1/RSSVWorkOrderEntry.cs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,20 @@ public SelectFrom<RSSVWorkOrderLabor>.
2626

2727
#endregion
2828

29+
public PXFilter<MasterTable> MasterView;
30+
public PXFilter<DetailsTable> DetailsView;
31+
32+
[Serializable]
33+
public class MasterTable : PXBqlTable, IBqlTable
34+
{
35+
36+
}
37+
38+
[Serializable]
39+
public class DetailsTable : PXBqlTable, IBqlTable
40+
{
41+
42+
}
2943
////////// The added code
3044
#region Events
3145
//Copy repair items and labor items from the Services and Prices form.

Customization/T220/CodeSnippets/Step1.2.2/RSSVWorkOrderEntry.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,21 @@ public SelectFrom<RSSVWorkOrderLabor>.
2929

3030
#endregion
3131

32+
public PXFilter<MasterTable> MasterView;
33+
public PXFilter<DetailsTable> DetailsView;
34+
35+
[Serializable]
36+
public class MasterTable : PXBqlTable, IBqlTable
37+
{
38+
39+
}
40+
41+
[Serializable]
42+
public class DetailsTable : PXBqlTable, IBqlTable
43+
{
44+
45+
}
46+
3247
#region Events
3348
//Copy repair items and labor items from the Services and Prices form.
3449
protected virtual void _(Events.RowUpdated<RSSVWorkOrder> e)

Customization/T220/CodeSnippets/Step1.3.1/RSSVWorkOrderEntry.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,21 @@ public SelectFrom<RSSVWorkOrderLabor>.
3030

3131
#endregion
3232

33+
public PXFilter<MasterTable> MasterView;
34+
public PXFilter<DetailsTable> DetailsView;
35+
36+
[Serializable]
37+
public class MasterTable : PXBqlTable, IBqlTable
38+
{
39+
40+
}
41+
42+
[Serializable]
43+
public class DetailsTable : PXBqlTable, IBqlTable
44+
{
45+
46+
}
47+
3348
#region Events
3449
//Copy repair items and labor items from the Services and Prices form.
3550
protected virtual void _(Events.RowUpdated<RSSVWorkOrder> e)

Customization/T220/CodeSnippets/Step1.3.2/RSSVWorkOrderEntry.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,21 @@ public SelectFrom<RSSVWorkOrderLabor>.
2828

2929
#endregion
3030

31+
public PXFilter<MasterTable> MasterView;
32+
public PXFilter<DetailsTable> DetailsView;
33+
34+
[Serializable]
35+
public class MasterTable : PXBqlTable, IBqlTable
36+
{
37+
38+
}
39+
40+
[Serializable]
41+
public class DetailsTable : PXBqlTable, IBqlTable
42+
{
43+
44+
}
45+
3146
#region Events
3247
//Copy repair items and labor items from the Services and Prices form.
3348
protected virtual void _(Events.RowUpdated<RSSVWorkOrder> e)

Customization/T220/CodeSnippets/Step2.1.4/RSSVWorkOrderEntry.cs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,22 @@ public RSSVWorkOrderEntry()
3939
////////// The end of added code
4040
#endregion
4141

42+
43+
public PXFilter<MasterTable> MasterView;
44+
public PXFilter<DetailsTable> DetailsView;
45+
46+
[Serializable]
47+
public class MasterTable : PXBqlTable, IBqlTable
48+
{
49+
50+
}
51+
52+
[Serializable]
53+
public class DetailsTable : PXBqlTable, IBqlTable
54+
{
55+
56+
}
57+
4258
#region Events
4359
//Copy repair items and labor items from the Services and Prices form.
4460
protected virtual void _(Events.RowUpdated<RSSVWorkOrder> e)

Customization/T240/CodeSnippets/Activity1.2.2_Step1/RSSVAssignProcess.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System;
22
using PX.Data;
33
using PX.Data.BQL.Fluent;
4+
using System.Collections.Generic;
45

56
namespace PhoneRepairShop
67
{
Lines changed: 259 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,259 @@
1+
using PX.Data;
2+
using PX.Data.WorkflowAPI;
3+
using PX.Objects.AR;
4+
using PX.Objects.CS;
5+
using PX.Objects.SO;
6+
using PX.TM;
7+
using System;
8+
9+
namespace PhoneRepairShop
10+
{
11+
[PXCacheName(Messages.RSSVWorkOrder)]
12+
public class RSSVWorkOrder : PXBqlTable, IBqlTable
13+
{
14+
#region OrderNbr
15+
[PXDBString(15, IsKey = true, IsUnicode = true,
16+
InputMask = ">CCCCCCCCCCCCCCC")]
17+
[PXDefault(PersistingCheck = PXPersistingCheck.NullOrBlank)]
18+
[PXUIField(DisplayName = "Order Nbr.",
19+
Visibility = PXUIVisibility.SelectorVisible)]
20+
[AutoNumber(typeof(RSSVSetup.numberingID),
21+
typeof(RSSVWorkOrder.dateCreated))]
22+
[PXSelector(typeof(Search<RSSVWorkOrder.orderNbr>))]
23+
public virtual string? OrderNbr { get; set; }
24+
public abstract class orderNbr : PX.Data.BQL.BqlString.Field<orderNbr> { }
25+
#endregion
26+
27+
#region CustomerID
28+
[PXDefault]
29+
[CustomerActive(DisplayName = "Customer ID",
30+
DescriptionField = typeof(Customer.acctName))]
31+
public virtual int? CustomerID { get; set; }
32+
public abstract class customerID : PX.Data.BQL.BqlInt.Field<customerID> { }
33+
#endregion
34+
35+
#region DateCreated
36+
[PXDBDate()]
37+
[PXDefault(typeof(AccessInfo.businessDate))]
38+
[PXUIField(DisplayName = "Date Created")]
39+
public virtual DateTime? DateCreated { get; set; }
40+
public abstract class dateCreated : PX.Data.BQL.BqlDateTime.Field<dateCreated> { }
41+
#endregion
42+
43+
#region DateCompleted
44+
[PXDBDate()]
45+
[PXUIField(DisplayName = "Date Completed", Enabled = false)]
46+
public virtual DateTime? DateCompleted { get; set; }
47+
public abstract class dateCompleted : PX.Data.BQL.BqlDateTime.Field<dateCompleted> { }
48+
#endregion
49+
50+
#region Status
51+
[PXDBString(2, IsFixed = true)]
52+
[PXDefault(WorkOrderStatusConstants.OnHold)]
53+
[PXUIField(DisplayName = "Status", Enabled = false)]
54+
[PXStringList(
55+
new string[]
56+
{
57+
WorkOrderStatusConstants.OnHold,
58+
WorkOrderStatusConstants.PendingPayment,
59+
WorkOrderStatusConstants.ReadyForAssignment,
60+
WorkOrderStatusConstants.Assigned,
61+
WorkOrderStatusConstants.Completed,
62+
WorkOrderStatusConstants.Paid
63+
},
64+
new string[]
65+
{
66+
Messages.OnHold,
67+
Messages.PendingPayment,
68+
Messages.ReadyForAssignment,
69+
Messages.Assigned,
70+
Messages.Completed,
71+
Messages.Paid
72+
})]
73+
public virtual string? Status { get; set; }
74+
public abstract class status : PX.Data.BQL.BqlString.Field<status> { }
75+
#endregion
76+
77+
#region Hold
78+
[PXDBBool()]
79+
[PXDefault(true)]
80+
public virtual bool? Hold { get; set; }
81+
public abstract class hold : PX.Data.BQL.BqlBool.Field<hold> { }
82+
#endregion
83+
84+
#region Description
85+
[PXDBString(60, IsUnicode = true)]
86+
[PXUIField(DisplayName = "Description",
87+
Visibility = PXUIVisibility.SelectorVisible)]
88+
public virtual string? Description { get; set; }
89+
public abstract class description : PX.Data.BQL.BqlString.Field<description> { }
90+
#endregion
91+
92+
#region ServiceID
93+
[PXDBInt()]
94+
[PXDefault]
95+
[PXUIField(DisplayName = "Service",
96+
Visibility = PXUIVisibility.SelectorVisible)]
97+
[PXSelector(typeof(Search<RSSVRepairService.serviceID>),
98+
typeof(RSSVRepairService.serviceCD),
99+
typeof(RSSVRepairService.description),
100+
SubstituteKey = typeof(RSSVRepairService.serviceCD),
101+
DescriptionField = typeof(RSSVRepairService.description))]
102+
public virtual int? ServiceID { get; set; }
103+
public abstract class serviceID : PX.Data.BQL.BqlInt.Field<serviceID> { }
104+
#endregion
105+
106+
#region DeviceID
107+
[PXDBInt()]
108+
[PXDefault]
109+
[PXUIField(DisplayName = "Device",
110+
Visibility = PXUIVisibility.SelectorVisible)]
111+
[PXSelector(typeof(Search<RSSVDevice.deviceID>),
112+
typeof(RSSVDevice.deviceCD),
113+
typeof(RSSVDevice.description),
114+
SubstituteKey = typeof(RSSVDevice.deviceCD),
115+
DescriptionField = typeof(RSSVDevice.description))]
116+
public virtual int? DeviceID { get; set; }
117+
public abstract class deviceID : PX.Data.BQL.BqlInt.Field<deviceID> { }
118+
#endregion
119+
120+
#region OrderTotal
121+
[PXDBDecimal()]
122+
[PXDefault(TypeCode.Decimal, "0.0")]
123+
[PXUIField(DisplayName = "Order Total", Enabled = false)]
124+
public virtual Decimal? OrderTotal { get; set; }
125+
public abstract class orderTotal : PX.Data.BQL.BqlDecimal.Field<orderTotal> { }
126+
#endregion
127+
128+
#region RepairItemLineCntr
129+
[PXDBInt()]
130+
[PXDefault(0)]
131+
public virtual int? RepairItemLineCntr { get; set; }
132+
public abstract class repairItemLineCntr :
133+
PX.Data.BQL.BqlInt.Field<repairItemLineCntr> { }
134+
#endregion
135+
////////// The modified code
136+
#region Assignee
137+
[Owner(DisplayName = "Assignee")]
138+
public virtual int? Assignee { get; set; }
139+
public abstract class assignee : PX.Data.BQL.BqlInt.Field<assignee> { }
140+
#endregion
141+
////////// The end of the modified code
142+
#region Priority
143+
[PXDBString(1, IsFixed = true)]
144+
[PXDefault(WorkOrderPriorityConstants.Medium)]
145+
[PXUIField(DisplayName = "Priority")]
146+
[PXStringList(
147+
new string[]
148+
{
149+
WorkOrderPriorityConstants.High,
150+
WorkOrderPriorityConstants.Medium,
151+
WorkOrderPriorityConstants.Low
152+
},
153+
new string[]
154+
{
155+
Messages.High,
156+
Messages.Medium,
157+
Messages.Low
158+
})]
159+
public virtual string? Priority { get; set; }
160+
public abstract class priority : PX.Data.BQL.BqlString.Field<priority> { }
161+
#endregion
162+
163+
#region InvoiceNbr
164+
[PXDBString(15, IsUnicode = true)]
165+
[PXUIField(DisplayName = "Invoice Nbr.", Enabled = false)]
166+
public virtual string? InvoiceNbr { get; set; }
167+
public abstract class invoiceNbr : PX.Data.BQL.BqlString.Field<invoiceNbr> { }
168+
#endregion
169+
170+
#region Selected
171+
public abstract class selected : PX.Data.BQL.BqlBool.Field<selected> { }
172+
[PXBool]
173+
[PXUIField(DisplayName = "Selected")]
174+
public virtual bool? Selected { get; set; }
175+
#endregion
176+
177+
#region CreatedByID
178+
[PXDBCreatedByID()]
179+
public virtual Guid? CreatedByID { get; set; }
180+
public abstract class createdByID : PX.Data.BQL.BqlGuid.Field<createdByID> { }
181+
#endregion
182+
183+
#region CreatedByScreenID
184+
[PXDBCreatedByScreenID()]
185+
public virtual string? CreatedByScreenID { get; set; }
186+
public abstract class createdByScreenID : PX.Data.BQL.BqlString.Field<createdByScreenID> { }
187+
#endregion
188+
189+
#region CreatedDateTime
190+
[PXDBCreatedDateTime()]
191+
public virtual DateTime? CreatedDateTime { get; set; }
192+
public abstract class createdDateTime : PX.Data.BQL.BqlDateTime.Field<createdDateTime> { }
193+
#endregion
194+
195+
#region LastModifiedByID
196+
[PXDBLastModifiedByID()]
197+
public virtual Guid? LastModifiedByID { get; set; }
198+
public abstract class lastModifiedByID : PX.Data.BQL.BqlGuid.Field<lastModifiedByID> { }
199+
#endregion
200+
201+
#region LastModifiedByScreenID
202+
[PXDBLastModifiedByScreenID()]
203+
public virtual string? LastModifiedByScreenID { get; set; }
204+
public abstract class lastModifiedByScreenID : PX.Data.BQL.BqlString.Field<lastModifiedByScreenID> { }
205+
#endregion
206+
207+
#region LastModifiedDateTime
208+
[PXDBLastModifiedDateTime()]
209+
public virtual DateTime? LastModifiedDateTime { get; set; }
210+
public abstract class lastModifiedDateTime : PX.Data.BQL.BqlDateTime.Field<lastModifiedDateTime> { }
211+
#endregion
212+
213+
#region Tstamp
214+
[PXDBTimestamp()]
215+
public virtual byte[]? Tstamp { get; set; }
216+
public abstract class tstamp : PX.Data.BQL.BqlByteArray.Field<tstamp> { }
217+
#endregion
218+
219+
#region NoteID
220+
[PXNote()]
221+
public virtual Guid? NoteID { get; set; }
222+
public abstract class noteID : PX.Data.BQL.BqlGuid.Field<noteID> { }
223+
#endregion
224+
225+
public class WorkflowEvents :
226+
PXEntityEvent<ARRegister>.Container<WorkflowEvents>
227+
{
228+
public PXEntityEvent<ARRegister> InvoiceGotPrepaid = null!;
229+
}
230+
231+
// Acuminator disable once PX1016 ExtensionDoesNotDeclareIsActiveMethod extension should be constantly active
232+
public sealed class RSSVWorkOrder_Extension :
233+
PXCacheExtension<RSSVWorkOrder>
234+
{
235+
#region Status
236+
[PXDBString(2, IsFixed = true)]
237+
[PXDefault(WorkOrderTypeConstants.Standard,
238+
PersistingCheck = PXPersistingCheck.Nothing)]
239+
[PXUIField(DisplayName = "Order Type")]
240+
[PXStringList(
241+
new string[]
242+
{
243+
WorkOrderTypeConstants.Simple,
244+
WorkOrderTypeConstants.Standard,
245+
WorkOrderTypeConstants.Awaiting
246+
},
247+
new string[]
248+
{
249+
Messages.Simple,
250+
Messages.Standard,
251+
Messages.Awaiting
252+
})]
253+
public string? UsrOrderType { get; set; }
254+
public abstract class usrOrderType :
255+
PX.Data.BQL.BqlString.Field<usrOrderType> { }
256+
#endregion
257+
}
258+
}
259+
}

0 commit comments

Comments
 (0)