1+ /*
2+ File: type_SdtEmisor
3+ Description: Emisor
4+ Author: Nemo 🐠 for C# version 18.0.11.184517
5+ Program type: Callable routine
6+ Main DBMS:
7+ */
8+ using System ;
9+ using System . Collections ;
10+ using System . ServiceModel ;
11+ using System . Xml . Serialization ;
12+ using GeneXus . Application ;
13+ using GeneXus . Utils ;
14+
15+
16+ namespace GeneXus . Programs
17+ {
18+ [ XmlSerializerFormat ]
19+ [ XmlRoot ( ElementName = "Emisor" ) ]
20+ [ XmlType ( TypeName = "Emisor" ) ]
21+ [ Serializable ]
22+ public class SdtEmisor : GxUserType
23+ {
24+ public SdtEmisor ( )
25+ {
26+ /* Constructor for serialization */
27+ gxTv_SdtEmisor_Rucemisor = "" ;
28+ gxTv_SdtEmisor_Rucemisor_N = true ;
29+
30+ gxTv_SdtEmisor_Rznsoc = "" ;
31+ gxTv_SdtEmisor_Rznsoc_N = true ;
32+
33+ gxTv_SdtEmisor_Nomcomercial = "" ;
34+ gxTv_SdtEmisor_Nomcomercial_N = true ;
35+
36+ gxTv_SdtEmisor_Giroemis = "" ;
37+ gxTv_SdtEmisor_Giroemis_N = true ;
38+
39+ gxTv_SdtEmisor_Departamento = "" ;
40+ gxTv_SdtEmisor_Departamento_N = true ;
41+
42+ }
43+
44+ public SdtEmisor ( IGxContext context )
45+ {
46+ this . context = context ;
47+ initialize ( ) ;
48+ }
49+
50+ #region Json
51+ private static Hashtable mapper ;
52+ public override string JsonMap ( string value )
53+ {
54+ if ( mapper == null )
55+ {
56+ mapper = new Hashtable ( ) ;
57+ }
58+ return ( string ) mapper [ value ] ; ;
59+ }
60+
61+ public override void ToJSON ( )
62+ {
63+ ToJSON ( true ) ;
64+ return ;
65+ }
66+
67+ public override void ToJSON ( bool includeState )
68+ {
69+ AddObjectProperty ( "RUCEmisor" , gxTpr_Rucemisor , false ) ;
70+
71+
72+ AddObjectProperty ( "RznSoc" , gxTpr_Rznsoc , false ) ;
73+
74+
75+ AddObjectProperty ( "NomComercial" , gxTpr_Nomcomercial , false ) ;
76+
77+
78+ AddObjectProperty ( "GiroEmis" , gxTpr_Giroemis , false ) ;
79+
80+
81+ AddObjectProperty ( "Departamento" , gxTpr_Departamento , false ) ;
82+
83+ return ;
84+ }
85+ #endregion
86+
87+ #region Properties
88+ [ SoapElement ( ElementName = "RUCEmisor" ) ]
89+ [ XmlElement ( ElementName = "RUCEmisor" ) ]
90+ public string gxTpr_Rucemisor
91+ {
92+ get {
93+ return gxTv_SdtEmisor_Rucemisor ;
94+ }
95+ set {
96+ gxTv_SdtEmisor_Rucemisor_N = false ;
97+ gxTv_SdtEmisor_Rucemisor = value ;
98+ SetDirty ( "Rucemisor" ) ;
99+ }
100+ }
101+
102+ public bool ShouldSerializegxTpr_Rucemisor ( )
103+
104+ {
105+ return ! gxTv_SdtEmisor_Rucemisor_N ;
106+
107+ }
108+
109+
110+
111+ [ SoapElement ( ElementName = "RznSoc" ) ]
112+ [ XmlElement ( ElementName = "RznSoc" ) ]
113+ public string gxTpr_Rznsoc
114+ {
115+ get {
116+ return gxTv_SdtEmisor_Rznsoc ;
117+ }
118+ set {
119+ gxTv_SdtEmisor_Rznsoc_N = false ;
120+ gxTv_SdtEmisor_Rznsoc = value ;
121+ SetDirty ( "Rznsoc" ) ;
122+ }
123+ }
124+
125+ public bool ShouldSerializegxTpr_Rznsoc ( )
126+
127+ {
128+ return ! gxTv_SdtEmisor_Rznsoc_N ;
129+
130+ }
131+
132+
133+
134+ [ SoapElement ( ElementName = "NomComercial" ) ]
135+ [ XmlElement ( ElementName = "NomComercial" ) ]
136+ public string gxTpr_Nomcomercial
137+ {
138+ get {
139+ return gxTv_SdtEmisor_Nomcomercial ;
140+ }
141+ set {
142+ gxTv_SdtEmisor_Nomcomercial_N = false ;
143+ gxTv_SdtEmisor_Nomcomercial = value ;
144+ SetDirty ( "Nomcomercial" ) ;
145+ }
146+ }
147+
148+ public bool ShouldSerializegxTpr_Nomcomercial ( )
149+
150+ {
151+ return ! gxTv_SdtEmisor_Nomcomercial_N ;
152+
153+ }
154+
155+
156+
157+ [ SoapElement ( ElementName = "GiroEmis" ) ]
158+ [ XmlElement ( ElementName = "GiroEmis" ) ]
159+ public string gxTpr_Giroemis
160+ {
161+ get {
162+ return gxTv_SdtEmisor_Giroemis ;
163+ }
164+ set {
165+ gxTv_SdtEmisor_Giroemis_N = false ;
166+ gxTv_SdtEmisor_Giroemis = value ;
167+ SetDirty ( "Giroemis" ) ;
168+ }
169+ }
170+
171+ public bool ShouldSerializegxTpr_Giroemis ( )
172+
173+ {
174+ return ! gxTv_SdtEmisor_Giroemis_N ;
175+
176+ }
177+
178+
179+
180+ [ SoapElement ( ElementName = "Departamento" ) ]
181+ [ XmlElement ( ElementName = "Departamento" ) ]
182+ public string gxTpr_Departamento
183+ {
184+ get {
185+ return gxTv_SdtEmisor_Departamento ;
186+ }
187+ set {
188+ gxTv_SdtEmisor_Departamento_N = false ;
189+ gxTv_SdtEmisor_Departamento = value ;
190+ SetDirty ( "Departamento" ) ;
191+ }
192+ }
193+
194+ public bool ShouldSerializegxTpr_Departamento ( )
195+
196+ {
197+ return ! gxTv_SdtEmisor_Departamento_N ;
198+
199+ }
200+
201+
202+ public override bool ShouldSerializeSdtJson ( )
203+ {
204+ return true ;
205+ }
206+
207+
208+
209+ #endregion
210+
211+ #region Static Type Properties
212+
213+ [ SoapIgnore ]
214+ [ XmlIgnore ]
215+ private static GXTypeInfo _typeProps ;
216+ protected override GXTypeInfo TypeInfo { get { return _typeProps ; } set { _typeProps = value ; } }
217+
218+ #endregion
219+
220+ #region Initialization
221+
222+ public void initialize ( )
223+ {
224+ gxTv_SdtEmisor_Rucemisor = "" ;
225+ gxTv_SdtEmisor_Rucemisor_N = true ;
226+
227+ gxTv_SdtEmisor_Rznsoc = "" ;
228+ gxTv_SdtEmisor_Rznsoc_N = true ;
229+
230+ gxTv_SdtEmisor_Nomcomercial = "" ;
231+ gxTv_SdtEmisor_Nomcomercial_N = true ;
232+
233+ gxTv_SdtEmisor_Giroemis = "" ;
234+ gxTv_SdtEmisor_Giroemis_N = true ;
235+
236+ gxTv_SdtEmisor_Departamento = "" ;
237+ gxTv_SdtEmisor_Departamento_N = true ;
238+
239+ return ;
240+ }
241+
242+
243+
244+ #endregion
245+
246+ #region Declaration
247+
248+ protected string gxTv_SdtEmisor_Rucemisor ;
249+ protected bool gxTv_SdtEmisor_Rucemisor_N ;
250+
251+
252+ protected string gxTv_SdtEmisor_Rznsoc ;
253+ protected bool gxTv_SdtEmisor_Rznsoc_N ;
254+
255+
256+ protected string gxTv_SdtEmisor_Nomcomercial ;
257+ protected bool gxTv_SdtEmisor_Nomcomercial_N ;
258+
259+
260+ protected string gxTv_SdtEmisor_Giroemis ;
261+ protected bool gxTv_SdtEmisor_Giroemis_N ;
262+
263+
264+ protected string gxTv_SdtEmisor_Departamento ;
265+ protected bool gxTv_SdtEmisor_Departamento_N ;
266+
267+
268+
269+ #endregion
270+ }
271+
272+ }
0 commit comments