-
Notifications
You must be signed in to change notification settings - Fork 127
Expand file tree
/
Copy pathUseCase_DACSearch_RSSVWorkOrder.cs
More file actions
231 lines (207 loc) · 9.05 KB
/
Copy pathUseCase_DACSearch_RSSVWorkOrder.cs
File metadata and controls
231 lines (207 loc) · 9.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
using System;
using PX.Data;
using PX.Objects.AR;
using PX.Objects.CS;
using PX.TM;
namespace PhoneRepairShop
{
public class SearchCategoryExt : PX.Objects.SM.SearchCategory
{
// the number must be the power of two
public const int RS = 67108864;
}
[PXCacheName("Repair Work Order")]
[PXPrimaryGraph(typeof(RSSVWorkOrderEntry))]
public class RSSVWorkOrder : PXBqlTable, IBqlTable
{
#region OrderNbr
[PXDBString(15, IsKey = true, IsUnicode = true,
InputMask = "000000000000000")]
[PXDefault(PersistingCheck = PXPersistingCheck.NullOrBlank)]
[PXUIField(DisplayName = "Order Nbr.",
Visibility = PXUIVisibility.SelectorVisible)]
[PXSelector(typeof(Search<RSSVWorkOrder.orderNbr>))]
[AutoNumber(typeof(RSSVSetup.numberingID), typeof(RSSVWorkOrder.dateCreated))]
public virtual string OrderNbr { get; set; }
public abstract class orderNbr : PX.Data.BQL.BqlString.Field<orderNbr> { }
#endregion
#region CustomerID
[PXDefault]
[CustomerActive(DisplayName = "Customer ID",
DescriptionField = typeof(Customer.acctName))]
public virtual int? CustomerID { get; set; }
public abstract class customerID : PX.Data.BQL.BqlInt.Field<customerID> { }
#endregion
#region DateCreated
[PXDBDate()]
[PXDefault(typeof(AccessInfo.businessDate))]
[PXUIField(DisplayName = "Date Created")]
public virtual DateTime? DateCreated { get; set; }
public abstract class dateCreated : PX.Data.BQL.BqlDateTime.Field<dateCreated> { }
#endregion
#region DateCompleted
[PXDBDate()]
[PXUIField(DisplayName = "Date Completed", Enabled = false)]
public virtual DateTime? DateCompleted { get; set; }
public abstract class dateCompleted : PX.Data.BQL.BqlDateTime.Field<dateCompleted> { }
#endregion
#region Status
[PXDBString(2, IsFixed = true)]
[PXDefault(WorkOrderStatusConstants.OnHold)]
[PXUIField(DisplayName = "Status", Enabled = false)]
[PXStringList(
new string[]
{
WorkOrderStatusConstants.OnHold,
WorkOrderStatusConstants.PendingPayment,
WorkOrderStatusConstants.ReadyForAssignment,
WorkOrderStatusConstants.Assigned,
WorkOrderStatusConstants.Completed,
WorkOrderStatusConstants.Paid
},
new string[]
{
Messages.OnHold,
Messages.PendingPayment,
Messages.ReadyForAssignment,
Messages.Assigned,
Messages.Completed,
Messages.Paid
})]
public virtual string Status { get; set; }
public abstract class status : PX.Data.BQL.BqlString.Field<status> { }
#endregion
#region Hold
[PXDBBool()]
[PXDefault(true)]
public virtual bool? Hold { get; set; }
public abstract class hold : PX.Data.BQL.BqlBool.Field<hold> { }
#endregion
#region Description
[PXDBString(60, IsUnicode = true)]
[PXUIField(DisplayName = "Description",
Visibility = PXUIVisibility.SelectorVisible)]
public virtual string Description { get; set; }
public abstract class description : PX.Data.BQL.BqlString.Field<description> { }
#endregion
#region ServiceID
[PXDBInt()]
[PXDefault]
[PXUIField(DisplayName = "Service",
Visibility = PXUIVisibility.SelectorVisible)]
[PXSelector(typeof(Search<RSSVRepairService.serviceID>),
typeof(RSSVRepairService.serviceCD),
typeof(RSSVRepairService.description),
SubstituteKey = typeof(RSSVRepairService.serviceCD),
DescriptionField = typeof(RSSVRepairService.description))]
public virtual int? ServiceID { get; set; }
public abstract class serviceID : PX.Data.BQL.BqlInt.Field<serviceID> { }
#endregion
#region DeviceID
[PXDBInt()]
[PXDefault]
[PXUIField(DisplayName = "Device",
Visibility = PXUIVisibility.SelectorVisible)]
[PXSelector(typeof(Search<RSSVDevice.deviceID>),
typeof(RSSVDevice.deviceCD),
typeof(RSSVDevice.description),
SubstituteKey = typeof(RSSVDevice.deviceCD),
DescriptionField = typeof(RSSVDevice.description))]
public virtual int? DeviceID { get; set; }
public abstract class deviceID : PX.Data.BQL.BqlInt.Field<deviceID> { }
#endregion
#region OrderTotal
[PXDBDecimal()]
[PXDefault(TypeCode.Decimal, "0.0")]
[PXUIField(DisplayName = "Order Total", Enabled = false)]
public virtual Decimal? OrderTotal { get; set; }
public abstract class orderTotal : PX.Data.BQL.BqlDecimal.Field<orderTotal> { }
#endregion
#region RepairItemLineCntr
[PXDBInt()]
[PXDefault(0)]
public virtual int? RepairItemLineCntr { get; set; }
public abstract class repairItemLineCntr :
PX.Data.BQL.BqlInt.Field<repairItemLineCntr>
{ }
#endregion
#region Assignee
[Owner(DisplayName = "Assignee")]
public virtual int? Assignee { get; set; }
public abstract class assignee : PX.Data.BQL.BqlInt.Field<assignee> { }
#endregion
#region Priority
[PXDBString(1, IsFixed = true)]
[PXDefault(WorkOrderPriorityConstants.Medium)]
[PXUIField(DisplayName = "Priority")]
[PXStringList(
new string[]
{
WorkOrderPriorityConstants.High,
WorkOrderPriorityConstants.Medium,
WorkOrderPriorityConstants.Low
},
new string[]
{
Messages.High,
Messages.Medium,
Messages.Low
})]
public virtual string Priority { get; set; }
public abstract class priority : PX.Data.BQL.BqlString.Field<priority> { }
#endregion
#region InvoiceNbr
[PXDBString(15, IsUnicode = true)]
[PXUIField(DisplayName = "Invoice Nbr.", Enabled = false)]
public virtual string InvoiceNbr { get; set; }
public abstract class invoiceNbr : PX.Data.BQL.BqlString.Field<invoiceNbr> { }
#endregion
////////// The end of modified code
#region CreatedByID
[PXDBCreatedByID()]
public virtual Guid? CreatedByID { get; set; }
public abstract class createdByID : PX.Data.BQL.BqlGuid.Field<createdByID> { }
#endregion
#region CreatedByScreenID
[PXDBCreatedByScreenID()]
public virtual string CreatedByScreenID { get; set; }
public abstract class createdByScreenID : PX.Data.BQL.BqlString.Field<createdByScreenID> { }
#endregion
#region CreatedDateTime
[PXDBCreatedDateTime()]
public virtual DateTime? CreatedDateTime { get; set; }
public abstract class createdDateTime : PX.Data.BQL.BqlDateTime.Field<createdDateTime> { }
#endregion
#region LastModifiedByID
[PXDBLastModifiedByID()]
public virtual Guid? LastModifiedByID { get; set; }
public abstract class lastModifiedByID : PX.Data.BQL.BqlGuid.Field<lastModifiedByID> { }
#endregion
#region LastModifiedByScreenID
[PXDBLastModifiedByScreenID()]
public virtual string LastModifiedByScreenID { get; set; }
public abstract class lastModifiedByScreenID : PX.Data.BQL.BqlString.Field<lastModifiedByScreenID> { }
#endregion
#region LastModifiedDateTime
[PXDBLastModifiedDateTime()]
public virtual DateTime? LastModifiedDateTime { get; set; }
public abstract class lastModifiedDateTime : PX.Data.BQL.BqlDateTime.Field<lastModifiedDateTime> { }
#endregion
#region Tstamp
[PXDBTimestamp()]
public virtual byte[] Tstamp { get; set; }
public abstract class tstamp : PX.Data.BQL.BqlByteArray.Field<tstamp> { }
#endregion
#region NoteID
[PXSearchable(SearchCategoryExt.RS, "Repair Work Order: {0}",
new Type[] { typeof(RSSVWorkOrder.orderNbr) },
new Type[] { typeof(RSSVWorkOrder.orderNbr), typeof(RSSVWorkOrder.description) },
NumberFields = new Type[] { typeof(RSSVWorkOrder.orderNbr) },
Line1Format = "{0:d}{1}{2}", Line1Fields = new Type[] { typeof(RSSVWorkOrder.dateCreated), typeof(RSSVWorkOrder.status), typeof(RSSVWorkOrder.customerID)},
Line2Format = "{0}", Line2Fields = new Type[] { typeof(RSSVWorkOrder.description) })]
[PXNote()]
public virtual Guid? NoteID { get; set; }
public abstract class noteID : PX.Data.BQL.BqlGuid.Field<noteID> { }
#endregion
}
}