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