-
Notifications
You must be signed in to change notification settings - Fork 0
/
listprograms.cs
157 lines (144 loc) · 4.7 KB
/
listprograms.cs
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
/*
File: ListPrograms
Description: List Programs
Author: GeneXus C# Generator version 10_3_2-86442
Generated on: 1/26/2015 11:14:55.61
Program type: Callable routine
Main DBMS: sqlserver
*/
using System;
using System.Collections;
using GeneXus.Utils;
using GeneXus.Resources;
using GeneXus.Application;
using GeneXus.Metadata;
using GeneXus.Cryptography;
using GeneXus.Data;
using com.genexus;
using GeneXus.Data.ADO;
using GeneXus.Data.NTier;
using GeneXus.Data.NTier.ADO;
using System.Runtime.Remoting;
using GeneXus.WebControls;
using GeneXus.Http;
using GeneXus.Procedure;
using GeneXus.XML;
using GeneXus.Search;
using GeneXus.Encryption;
using GeneXus.Http.Client;
using System.Threading;
using System.Xml.Serialization;
using System.Data.SqlTypes;
using System.ServiceModel;
using System.ServiceModel.Activation;
using System.Runtime.Serialization;
namespace GeneXus.Programs {
public class listprograms : GXProcedure
{
public listprograms( )
{
context = new GxContext( );
DataStoreUtil.LoadDataStores( context);
IsMain = true;
context.SetDefaultTheme("Flat");
}
public listprograms( IGxContext context )
{
this.context = context;
IsMain = false;
}
public void release( )
{
}
public void execute( out IGxCollection aP0_ProgramNames )
{
this.AV10ProgramNames = new GxObjectCollection( context, "ProgramNames.ProgramName", "CalcularPeajes", "SdtProgramNames_ProgramName", "GeneXus.Programs") ;
initialize();
executePrivate();
aP0_ProgramNames=this.AV10ProgramNames;
}
public IGxCollection executeUdp( )
{
this.AV10ProgramNames = new GxObjectCollection( context, "ProgramNames.ProgramName", "CalcularPeajes", "SdtProgramNames_ProgramName", "GeneXus.Programs") ;
initialize();
executePrivate();
aP0_ProgramNames=this.AV10ProgramNames;
return AV10ProgramNames ;
}
public void executeSubmit( out IGxCollection aP0_ProgramNames )
{
listprograms objlistprograms;
objlistprograms = new listprograms();
objlistprograms.AV10ProgramNames = new GxObjectCollection( context, "ProgramNames.ProgramName", "CalcularPeajes", "SdtProgramNames_ProgramName", "GeneXus.Programs") ;
objlistprograms.context.SetSubmitInitialConfig(context);
objlistprograms.initialize();
ThreadPool.QueueUserWorkItem( new WaitCallback( executePrivateCatch ),objlistprograms);
aP0_ProgramNames=this.AV10ProgramNames;
}
void executePrivateCatch( object stateInfo )
{
try
{
((listprograms)stateInfo).executePrivate();
}
catch ( Exception e )
{
GXUtil.SaveToEventLog( "ClienteWeb Peajes", e);
throw e ;
}
}
void executePrivate( )
{
/* GeneXus formulas */
/* Output device settings */
AV10ProgramNames = new GxObjectCollection( context, "ProgramNames.ProgramName", "CalcularPeajes", "SdtProgramNames_ProgramName", "GeneXus.Programs");
this.cleanup();
}
protected void S111( )
{
/* 'ADDPROGRAM' Routine */
AV8IsAuthorized = true;
GXt_boolean1 = AV8IsAuthorized;
new isauthorized(context ).execute( AV12name, out GXt_boolean1) ;
AV8IsAuthorized = GXt_boolean1;
if ( AV8IsAuthorized )
{
AV11ProgramName = new SdtProgramNames_ProgramName(context);
AV11ProgramName.gxTpr_Name = AV12name;
AV11ProgramName.gxTpr_Description = AV13description;
AV11ProgramName.gxTpr_Link = AV14link;
AV10ProgramNames.Add(AV11ProgramName, 0);
}
}
public override void cleanup( )
{
CloseOpenCursors();
if ( IsMain )
{
context.CloseConnections() ;
}
exitApplication();
}
protected void CloseOpenCursors( )
{
}
public override void initialize( )
{
AV12name = "";
AV11ProgramName = new SdtProgramNames_ProgramName(context);
AV13description = "";
AV14link = "";
/* GeneXus formulas. */
context.Gx_err = 0;
}
private bool AV8IsAuthorized ;
private bool GXt_boolean1 ;
private String AV12name ;
private String AV13description ;
private String AV14link ;
private IGxCollection aP0_ProgramNames ;
[ObjectCollection(ItemType=typeof( SdtProgramNames_ProgramName ))]
private IGxCollection AV10ProgramNames ;
private SdtProgramNames_ProgramName AV11ProgramName ;
}
}