Skip to content

Commit e669105

Browse files
authored
Merge pull request #162 from Acumatica/feature/EDU-8345-2025R2-T240-Course-Update-Publish-GitHub
EDU-8345: Updated customization project files and code snippets for T240 course update
2 parents f48806a + b7e9f3b commit e669105

89 files changed

Lines changed: 2369 additions & 1775 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Customization/T240/CodeSnippets/Activity1.1.1_Step3/RSSVAssignProcess.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ namespace PhoneRepairShop
99
public class RSSVAssignProcess : PXGraph<RSSVAssignProcess>
1010
{
1111
////////// The added code
12-
public SelectFrom<RSSVWorkOrder>.
12+
public
13+
SelectFrom<RSSVWorkOrder>.
1314
// Inside the Where condition, use a fluent BQL statement
1415
// that selects only the repair work orders with
1516
// the Ready for Assignment status.

Customization/T240/CodeSnippets/Activity1.1.1_Step4/RSSVAssignProcess.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ public class RSSVAssignProcess : PXGraph<RSSVAssignProcess>
1111
////////// The added code
1212
public PXCancel<RSSVWorkOrder> Cancel = null!;
1313
////////// The end of added code
14-
public SelectFrom<RSSVWorkOrder>.
14+
public
15+
SelectFrom<RSSVWorkOrder>.
1516
// Inside the Where condition, use a fluent BQL statement
1617
// that selects only the repair work orders with
1718
// the Ready for Assignment status.

Customization/T240/CodeSnippets/Activity1.1.1_Step5/RS501000.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {
22
PXScreen, createCollection, graphInfo,
33
viewInfo,
4-
PXView, PXFieldOptions, PXFieldState,
4+
PXView, PXFieldOptions, PXFieldState,
55
gridConfig, columnConfig, GridPreset
66
} from "client-controls";
77

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ namespace PhoneRepairShop
77
public class RSSVAssignProcess : PXGraph<RSSVAssignProcess>
88
{
99
public PXCancel<RSSVWorkOrder> Cancel = null!;
10-
public SelectFrom<RSSVWorkOrder>.
10+
public
11+
SelectFrom<RSSVWorkOrder>.
1112
// Inside the Where condition, use a fluent BQL statement
1213
// that selects only the repair work orders with
1314
// the Ready for Assignment status.

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ namespace PhoneRepairShop
77
public class RSSVAssignProcess : PXGraph<RSSVAssignProcess>
88
{
99
public PXCancel<RSSVWorkOrder> Cancel = null!;
10-
public SelectFrom<RSSVWorkOrder>.
10+
public
11+
SelectFrom<RSSVWorkOrder>.
1112
// Inside the Where condition, use a fluent BQL statement
1213
// that selects only the repair work orders with
1314
// the Ready for Assignment status.

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ namespace PhoneRepairShop
88
public class RSSVAssignProcess : PXGraph<RSSVAssignProcess>
99
{
1010
public PXCancel<RSSVWorkOrder> Cancel = null!;
11-
public SelectFrom<RSSVWorkOrder>.
11+
public
12+
SelectFrom<RSSVWorkOrder>.
1213
// Inside the Where condition, use a fluent BQL statement
1314
// that selects only the repair work orders with
1415
// the Ready for Assignment status.

Customization/T240/CodeSnippets/Activity1.3.1_Step1/RSSVWorkOrder.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,6 @@ public abstract class repairItemLineCntr : PX.Data.BQL.BqlInt.Field<repairItemLi
133133

134134
#region Assignee
135135
[Owner(DisplayName = "Assignee")]
136-
[PXDefault(typeof(RSSVSetup.defaultEmployee))]
137136
public virtual int? Assignee { get; set; }
138137
public abstract class assignee : PX.Data.BQL.BqlInt.Field<assignee> { }
139138
#endregion

Customization/T240/CodeSnippets/Activity1.3.1_Step2/RSSVAssignProcess.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ namespace PhoneRepairShop
99
public class RSSVAssignProcess : PXGraph<RSSVAssignProcess>
1010
{
1111
public PXCancel<RSSVWorkOrder> Cancel = null!;
12-
public SelectFrom<RSSVWorkOrder>.
12+
public
13+
SelectFrom<RSSVWorkOrder>.
1314
// Inside the Where condition, use a fluent BQL statement
1415
// that selects only the repair work orders with
1516
// the Ready for Assignment status.

Customization/T240/CodeSnippets/Activity1.3.1_Step3/RSSVAssignProcess.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ public class RSSVAssignProcess : PXGraph<RSSVAssignProcess>
1111
////////// The added code
1212
public PXCancel<RSSVWorkOrderToAssignFilter> Cancel = null!;
1313
public PXFilter<RSSVWorkOrderToAssignFilter> Filter = null!;
14-
public SelectFrom<RSSVWorkOrder>.
14+
public
15+
SelectFrom<RSSVWorkOrder>.
1516
Where<RSSVWorkOrder.status.IsEqual<
1617
RSSVWorkOrderEntry_Workflow.States.readyForAssignment>.
1718
And<RSSVWorkOrder.timeWithoutAction.IsGreaterEqual<

Customization/T240/CodeSnippets/Activity2.1.1_Step2/Messages.cs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ public static class Messages
4242
public const string Assigned = "Assigned";
4343
public const string Completed = "Completed";
4444
public const string Paid = "Paid";
45+
46+
//Work order types
47+
public const string Simple = "Simple";
48+
public const string Standard = "Standard";
49+
public const string Awaiting = "Awaiting Delivery";
4550

4651
//Messages
4752
public const string StockItemIncorrectRepairItemType =
@@ -56,18 +61,12 @@ public static class Messages
5661
public const string PriorityTooLow =
5762
@"The priority must be at least Medium for
5863
the repair service that requires preliminary check.";
59-
public const string WorkOrderAssigned =
60-
"The {0} work order has been successfully assigned.";
6164
////////// The added code
6265
public const string ExceedingMaximumNumberOfAssignedWorkOrders =
6366
@"Updating the number of assigned work orders for the employee
6467
will lead to exceeding of the maximum number of assigned work orders,
6568
which is 10.";
6669
////////// The end of added code
6770

68-
//Work order types
69-
public const string Simple = "Simple";
70-
public const string Standard = "Standard";
71-
public const string Awaiting = "Awaiting Delivery";
7271
}
7372
}

0 commit comments

Comments
 (0)