CapicuaGenGaspar 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +11 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +4 -0
  5. data/CODE_OF_CONDUCT.md +49 -0
  6. data/CapicuaGenGaspar.gemspec +60 -0
  7. data/Gemfile +4 -0
  8. data/Gemfile.lock +33 -0
  9. data/LICENSE +165 -0
  10. data/README.md +41 -0
  11. data/Rakefile +6 -0
  12. data/bin/console +14 -0
  13. data/bin/setup +8 -0
  14. data/lib/CapicuaGenGaspar/Business/CSSqlEntitityInterface/Source/cs_sql_entity_interface_feature.rb +96 -0
  15. data/lib/CapicuaGenGaspar/Business/CSSqlEntitityInterface/Template/table_interface.erb +49 -0
  16. data/lib/CapicuaGenGaspar/Business/CSSqlEntity/Source/cs_sql_entity_feature.rb +103 -0
  17. data/lib/CapicuaGenGaspar/Business/CSSqlEntity/Template/table_entity.erb +51 -0
  18. data/lib/CapicuaGenGaspar/CodeTransformer/CSHeaderFooter/Source/cs_header_footer_feature.rb +148 -0
  19. data/lib/CapicuaGenGaspar/CodeTransformer/CSHeaderFooter/Template/footer.erb +37 -0
  20. data/lib/CapicuaGenGaspar/CodeTransformer/CSHeaderFooter/Template/header.erb +43 -0
  21. data/lib/CapicuaGenGaspar/CodeTransformer/CodeMaidCleaner/Bin/EnvDTE.dll +0 -0
  22. data/lib/CapicuaGenGaspar/CodeTransformer/CodeMaidCleaner/Bin/EnvDTE80.dll +0 -0
  23. data/lib/CapicuaGenGaspar/CodeTransformer/CodeMaidCleaner/Bin/RunCodeMaidCleaner.exe +0 -0
  24. data/lib/CapicuaGenGaspar/CodeTransformer/CodeMaidCleaner/Bin/RunCodeMaidCleaner.exe.config +52 -0
  25. data/lib/CapicuaGenGaspar/CodeTransformer/CodeMaidCleaner/Bin/stdole.dll +0 -0
  26. data/lib/CapicuaGenGaspar/CodeTransformer/CodeMaidCleaner/Source/code_maid_cleaner_feature.rb +162 -0
  27. data/lib/CapicuaGenGaspar/DataAccess/CSConnectionProvider/Source/cs_db_connection_provider_feature.rb +90 -0
  28. data/lib/CapicuaGenGaspar/DataAccess/CSSqlDataAccess/Source/cs_sql_data_access_feature.rb +106 -0
  29. data/lib/CapicuaGenGaspar/DataAccess/CSSqlDataAccess/Template/data_access.erb +154 -0
  30. data/lib/CapicuaGenGaspar/DataAccess/CSSqlDataAccess/Template/data_access_exception.erb +36 -0
  31. data/lib/CapicuaGenGaspar/DataAccess/CSSqlDataAccess/Template/data_access_table.erb +298 -0
  32. data/lib/CapicuaGenGaspar/Entities/CSEntity/Source/entity_field_schema.rb +100 -0
  33. data/lib/CapicuaGenGaspar/GUI/CSAboutWindowsForm/Source/cs_about_windows_form_feature.rb +85 -0
  34. data/lib/CapicuaGenGaspar/GUI/CSAboutWindowsForm/Template/AboutForm.designer.erb +211 -0
  35. data/lib/CapicuaGenGaspar/GUI/CSAboutWindowsForm/Template/AboutForm.erb +127 -0
  36. data/lib/CapicuaGenGaspar/GUI/CSAboutWindowsForm/Template/AboutForm.resx.erb +535 -0
  37. data/lib/CapicuaGenGaspar/GUI/CSCatalogWindowsForm/Source/cs_catalog_windows_form_feature.rb +146 -0
  38. data/lib/CapicuaGenGaspar/GUI/CSCatalogWindowsForm/Template/CatalogForm.Designer.erb +363 -0
  39. data/lib/CapicuaGenGaspar/GUI/CSCatalogWindowsForm/Template/CatalogForm.erb +320 -0
  40. data/lib/CapicuaGenGaspar/GUI/CSCatalogWindowsForm/Template/CatalogForm.resx.erb +2407 -0
  41. data/lib/CapicuaGenGaspar/GUI/CSCatalogWindowsForm/Template/CatalogState.erb +51 -0
  42. data/lib/CapicuaGenGaspar/GUI/CSMDIWindowsForm/Source/cs_mdi_windows_form_feature.rb +93 -0
  43. data/lib/CapicuaGenGaspar/GUI/CSMDIWindowsForm/Template/MainForm.Designer.erb +316 -0
  44. data/lib/CapicuaGenGaspar/GUI/CSMDIWindowsForm/Template/MainForm.erb +161 -0
  45. data/lib/CapicuaGenGaspar/GUI/CSMDIWindowsForm/Template/MainForm.resx.erb +2504 -0
  46. data/lib/CapicuaGenGaspar/GUI/CSMDIWindowsForm/Template/MsgboxConsts.erb +31 -0
  47. data/lib/CapicuaGenGaspar/GUI/CSSplashWindowsForm/Source/cs_splash_windows_feature.rb +87 -0
  48. data/lib/CapicuaGenGaspar/GUI/CSSplashWindowsForm/Template/SplashForm.designer.erb +141 -0
  49. data/lib/CapicuaGenGaspar/GUI/CSSplashWindowsForm/Template/SplashForm.erb +160 -0
  50. data/lib/CapicuaGenGaspar/GUI/CSSplashWindowsForm/Template/SplashForm.resx.erb +535 -0
  51. data/lib/CapicuaGenGaspar/Mixins/about_mixin.rb +55 -0
  52. data/lib/CapicuaGenGaspar/Mixins/catalog_mixin.rb +65 -0
  53. data/lib/CapicuaGenGaspar/Mixins/cs_app_config_mixin.rb +41 -0
  54. data/lib/CapicuaGenGaspar/Mixins/cs_db_connection_provider_mixin.rb +67 -0
  55. data/lib/CapicuaGenGaspar/Mixins/cs_namespace_mixin.rb +53 -0
  56. data/lib/CapicuaGenGaspar/Mixins/entity_interface_mixin.rb +57 -0
  57. data/lib/CapicuaGenGaspar/Mixins/entity_mixin.rb +58 -0
  58. data/lib/CapicuaGenGaspar/Mixins/entity_sql_table_mixin.rb +58 -0
  59. data/lib/CapicuaGenGaspar/Mixins/main_form_mixin.rb +55 -0
  60. data/lib/CapicuaGenGaspar/Mixins/splash_mixin.rb +54 -0
  61. data/lib/CapicuaGenGaspar/Proyect/CSProyect/Source/cs_proyect_feature.rb +140 -0
  62. data/lib/CapicuaGenGaspar/Proyect/CSProyectRESTFul/Source/cs_proyect_rest_ful_feature.rb +82 -0
  63. data/lib/CapicuaGenGaspar/Proyect/CSProyectRESTFul/Template/AssemblyInfo.erb +59 -0
  64. data/lib/CapicuaGenGaspar/Proyect/CSProyectRESTFul/Template/ExcepcionControlada.erb +38 -0
  65. data/lib/CapicuaGenGaspar/Proyect/CSProyectRESTFul/Template/Proyect.erb +114 -0
  66. data/lib/CapicuaGenGaspar/Proyect/CSProyectRESTFul/Template/Soluction.erb +54 -0
  67. data/lib/CapicuaGenGaspar/Proyect/CSProyectRESTFul/Template/Web.erb +66 -0
  68. data/lib/CapicuaGenGaspar/Proyect/CSProyectWindowsForm/Source/cs_proyect_windows_form_feature.rb +85 -0
  69. data/lib/CapicuaGenGaspar/Proyect/CSProyectWindowsForm/Template/App.erb +32 -0
  70. data/lib/CapicuaGenGaspar/Proyect/CSProyectWindowsForm/Template/AssemblyInfo.erb +59 -0
  71. data/lib/CapicuaGenGaspar/Proyect/CSProyectWindowsForm/Template/ControlExcepciones.erb +49 -0
  72. data/lib/CapicuaGenGaspar/Proyect/CSProyectWindowsForm/Template/ExcepcionControlada.erb +40 -0
  73. data/lib/CapicuaGenGaspar/Proyect/CSProyectWindowsForm/Template/Program.erb +46 -0
  74. data/lib/CapicuaGenGaspar/Proyect/CSProyectWindowsForm/Template/Proyect.erb +138 -0
  75. data/lib/CapicuaGenGaspar/Proyect/CSProyectWindowsForm/Template/Soluction.erb +55 -0
  76. data/lib/CapicuaGenGaspar/Tools/message_helper.rb +43 -0
  77. data/lib/CapicuaGenGaspar/WCFService/CSRESTFulCatalog/Source/cs_rest_ful_catalog_feature.rb +176 -0
  78. data/lib/CapicuaGenGaspar/WCFService/CSRESTFulCatalog/Template/CatalogState.erb +51 -0
  79. data/lib/CapicuaGenGaspar/WCFService/CSRESTFulCatalog/Template/Catalogs.erb +58 -0
  80. data/lib/CapicuaGenGaspar/WCFService/CSRESTFulCatalog/Template/Catalogs.svc.erb +24 -0
  81. data/lib/CapicuaGenGaspar/WCFService/CSRESTFulCatalog/Template/ICatalogs.erb +58 -0
  82. data/lib/CapicuaGenGaspar/gaspar.rb +44 -0
  83. data/lib/CapicuaGenGaspar/version.rb +3 -0
  84. metadata +216 -0
@@ -0,0 +1,146 @@
1
+ =begin
2
+
3
+ CapicuaGen
4
+
5
+ CapicuaGen es un software que ayuda a la creación automática de
6
+ sistemas empresariales a través de la definición y ensamblado de
7
+ diversos generadores de características.
8
+
9
+ El proyecto fue iniciado por José Luis Bautista Martin, el 6 de enero
10
+ del 2016.
11
+
12
+ Puede modificar y distribuir este software, según le plazca, y usarlo
13
+ para cualquier fin ya sea comercial, personal, educativo, o de cualquier
14
+ índole, siempre y cuando incluya este mensaje, y se permita acceso el
15
+ código fuente.
16
+
17
+ Este software es código libre, y se licencia bajo LGPL.
18
+
19
+ Para más información consultar http://www.gnu.org/licenses/lgpl.html
20
+ =end
21
+
22
+ require_relative '../../../gaspar'
23
+ require 'active_support/core_ext/object/blank'
24
+ require_relative '../../../Mixins/entity_sql_table_mixin'
25
+ require_relative '../../../Mixins/entity_interface_mixin'
26
+ require_relative '../../../Mixins/entity_mixin'
27
+ require_relative '../../../Mixins/cs_namespace_mixin'
28
+
29
+
30
+ module CapicuaGen::Gaspar
31
+
32
+ # Caracteristica generadora de catalogos para las entidades
33
+ class CSCatalogWindowsFormFeature < CapicuaGen::TemplateFeature
34
+ include CapicuaGen
35
+ include CapicuaGen::Gaspar
36
+ include CapicuaGen::Melchior
37
+
38
+ public
39
+
40
+ # Inicializa la caracteristica
41
+ def initialize(values= {})
42
+ super(values)
43
+
44
+ # Configuro los tipos si estos no han sido configurados previamente
45
+ self.types= [:catalog] if self.types.blank?
46
+
47
+ # Configuro los templates
48
+ set_template("catalogState", Template.new(:file => 'CatalogState.erb'))
49
+ set_template('catalogForm', Template.new(:file => 'catalogForm.erb'))
50
+ set_template('catalogForm.designer', Template.new(:file => 'catalogForm.Designer.erb'))
51
+ set_template('catalogForm.resx', Template.new(:file => 'catalogForm.resx.erb'))
52
+
53
+ end
54
+
55
+ # Configura los objetivos de las platillas (despues de establecer el generador)
56
+ def configure_template_targets
57
+
58
+ # Configuro los templates
59
+ set_template_target('catalogState', TemplateTarget.new(:out_file => "CatalogState.cs", :types => :proyect_file))
60
+
61
+ # Busco las caracteristicas que contiene entidades de SQL para una table
62
+ get_tables do |e|
63
+
64
+ set_template_target("catalogForm/#{get_entity_catalog_name(e.name)}",
65
+ TemplateTarget.new(
66
+ :out_file => "#{get_entity_catalog_name(e.name)}.cs",
67
+ :types => :proyect_file,
68
+ :class_name => get_entity_catalog_name(e.name),
69
+ :entity_schema => e
70
+ )
71
+ )
72
+
73
+ set_template_target("catalogForm.designer/#{get_entity_catalog_name(e.name)}",
74
+ TemplateTarget.new(
75
+ :out_file => "#{get_entity_catalog_name(e.name)}.designer.cs",
76
+ :types => :proyect_file,
77
+ :class_name => get_entity_catalog_name(e.name),
78
+ :entity_schema => e
79
+ )
80
+ )
81
+
82
+ set_template_target("catalogForm.resx/#{get_entity_catalog_name(e.name)}",
83
+ TemplateTarget.new(
84
+ :out_file => "#{get_entity_catalog_name(e.name)}.resx",
85
+ :types => :proyect_file,
86
+ :class_name => get_entity_catalog_name(e.name),
87
+ :entity_schema => e
88
+ )
89
+ )
90
+
91
+ end
92
+
93
+ end
94
+
95
+ # Resetea los atributos personalizados de la caracteristica (antes de establecer el generador)
96
+ def reset_attributes
97
+ self.generation_attributes[:out_dir] = nil
98
+ self.generation_attributes[:namespace]= nil
99
+ end
100
+
101
+ # Configura los atributos personalizados de la caracteristica (antes de establecer el generador)
102
+ def configure_attributes()
103
+ self.generation_attributes[:out_dir] = "#{self.generation_attributes[:out_dir]}/#{self.generation_attributes[:namespace]}/Windows.Forms/EntityCatalogs" unless self.generation_attributes.has_in_self?(:out_dir)
104
+ self.generation_attributes[:namespace]= "#{self.generation_attributes[:namespace]}.Windows.Forms.EntityCatalogs" unless self.generation_attributes.has_in_self?(:namespace)
105
+ end
106
+
107
+ # Obtiene el nombre de un catalogo en base al nombre de una entidad
108
+ def get_entity_catalog_name(entity_name)
109
+ return "#{entity_name}Catalog"
110
+ end
111
+
112
+ # Obtiene el nombre completo de un catalogo en base al nombre de una entidad
113
+ def get_entity_catalog_full_name (entity_name)
114
+ return "#{self.generation_attributes[:namespace]}.#{get_entity_catalog_name(entity_name)}"
115
+ end
116
+
117
+ # Obtiene el nombre completo de todos los catalogos
118
+ def get_entity_catalogs_full_name
119
+ # Busco las caracteristicas que contiene entidades de SQL para una table
120
+ get_tables do |e|
121
+ yield get_entity_catalog_full_name e.name
122
+ end
123
+ end
124
+
125
+ # Obtiene el nombre de todos los catalogos
126
+ def get_entity_catalogs_name
127
+ # Busco las caracteristicas que contiene entidades de SQL para una table
128
+ get_tables do |e|
129
+ yield get_entity_catalog_name e.name
130
+ end
131
+ end
132
+
133
+ # Devuelve una entidad en base al nombre de su catalogo
134
+ def get_entity_by_catalog_name(catalog_name)
135
+ # Busco las caracteristicas que contiene entidades de SQL para una table
136
+ get_tables do |e|
137
+ if catalog_name==get_entity_catalog_name(e.name)
138
+ return e
139
+ end
140
+ end
141
+ return nil
142
+ end
143
+
144
+ end
145
+
146
+ end
@@ -0,0 +1,363 @@
1
+ <%
2
+ #encoding: UTF-8
3
+
4
+ =begin
5
+
6
+ CapicuaGen
7
+
8
+ CapicuaGen es un software que ayuda a la creación automática de
9
+ sistemas empresariales a través de la definición y ensamblado de
10
+ diversos generadores de características.
11
+
12
+ El proyecto fue iniciado por José Luis Bautista Martin, el 6 de enero
13
+ del 2016.
14
+
15
+ Puede modificar y distribuir este software, según le plazca, y usarlo
16
+ para cualquier fin ya sea comercial, personal, educativo, o de cualquier
17
+ índole, siempre y cuando incluya este mensaje, y se permita acceso el
18
+ código fuente.
19
+
20
+ Este software es código libre, y se licencia bajo LGPL.
21
+
22
+ Para más información consultar http://www.gnu.org/licenses/lgpl.html
23
+ =end
24
+ %>using System;
25
+ using System.Windows.Forms;
26
+
27
+
28
+ namespace <%=generation_attributes[:namespace]%>
29
+ {
30
+ partial class <%=template_target.class_name%> : Form
31
+ {
32
+ /// <summary>
33
+ /// Required designer variable.
34
+ /// </summary>
35
+ private System.ComponentModel.IContainer components = null;
36
+
37
+ /// <summary>
38
+ /// Clean up any resources being used.
39
+ /// </summary>
40
+ /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
41
+ protected override void Dispose(bool disposing)
42
+ {
43
+ if (disposing && (components != null))
44
+ {
45
+ components.Dispose();
46
+ }
47
+ base.Dispose(disposing);
48
+ }
49
+
50
+ #region Windows Form Designer generated code
51
+
52
+ /// <summary>
53
+ /// Required method for Designer support - do not modify
54
+ /// the contents of this method with the code editor.
55
+ /// </summary>
56
+ private void InitializeComponent()
57
+ {
58
+ this.components = new System.ComponentModel.Container();
59
+ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(<%=template_target.class_name%>));
60
+ this.btnAgregar = new System.Windows.Forms.Button();
61
+ this.imageList = new System.Windows.Forms.ImageList(this.components);
62
+ <%
63
+ template_target.entity_schema.fields.each { |field|
64
+ %>this.lbl<%=field.name%> = new System.Windows.Forms.Label();
65
+ <%
66
+ }
67
+ template_target.entity_schema.fields.each { |field|
68
+ %>this.txt<%=field.name%> = new System.Windows.Forms.TextBox();
69
+ <%}%>
70
+ this.grpListado = new System.Windows.Forms.GroupBox();
71
+ this.dgvListado = new System.Windows.Forms.DataGridView();
72
+ this.grpDetalle = new System.Windows.Forms.GroupBox();
73
+ this.pnlDetalle = new System.Windows.Forms.Panel();
74
+ this.btnEditar = new System.Windows.Forms.Button();
75
+ this.btnEliminar = new System.Windows.Forms.Button();
76
+ this.btnAceptar = new System.Windows.Forms.Button();
77
+ this.btnCancelar = new System.Windows.Forms.Button();
78
+ this.btnSalir = new System.Windows.Forms.Button();
79
+ this.grpOperaciones = new System.Windows.Forms.GroupBox();
80
+ this.grpDatos = new System.Windows.Forms.GroupBox();
81
+ this.bindingSource = new System.Windows.Forms.BindingSource(this.components);
82
+ this.lblTitulo = new System.Windows.Forms.Label();
83
+ this.toolTip = new System.Windows.Forms.ToolTip(this.components);
84
+ this.grpListado.SuspendLayout();
85
+ ((System.ComponentModel.ISupportInitialize)(this.dgvListado)).BeginInit();
86
+ this.grpDetalle.SuspendLayout();
87
+ this.pnlDetalle.SuspendLayout();
88
+ this.grpOperaciones.SuspendLayout();
89
+ this.grpDatos.SuspendLayout();
90
+ ((System.ComponentModel.ISupportInitialize)(this.bindingSource)).BeginInit();
91
+ this.SuspendLayout();
92
+ //
93
+ // btnAgregar
94
+ //
95
+ this.btnAgregar.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
96
+ this.btnAgregar.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
97
+ this.btnAgregar.ImageKey = "Agregar.png";
98
+ this.btnAgregar.ImageList = this.imageList;
99
+ this.btnAgregar.Location = new System.Drawing.Point(234, 19);
100
+ this.btnAgregar.Name = "btnAgregar";
101
+ this.btnAgregar.Size = new System.Drawing.Size(82, 77);
102
+ this.btnAgregar.TabIndex = 25;
103
+ this.btnAgregar.Text = "Agregar";
104
+ this.btnAgregar.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
105
+ this.toolTip.SetToolTip(this.btnAgregar, "Agregar Registro <%=template_target.entity_schema.name%>");
106
+ this.btnAgregar.UseVisualStyleBackColor = true;
107
+ this.btnAgregar.Click += new System.EventHandler(this.btnAgregar_Click);
108
+ //
109
+ // imageList
110
+ //
111
+ this.imageList.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList.ImageStream")));
112
+ this.imageList.TransparentColor = System.Drawing.Color.Transparent;
113
+ this.imageList.Images.SetKeyName(0, "Agregar.png");
114
+ this.imageList.Images.SetKeyName(1, "Editar.png");
115
+ this.imageList.Images.SetKeyName(2, "Eliminar.png");
116
+ this.imageList.Images.SetKeyName(3, "Aceptar.png");
117
+ this.imageList.Images.SetKeyName(4, "Cancelar.png");
118
+ this.imageList.Images.SetKeyName(5, "Salir.png");
119
+ <%
120
+ indice = 0
121
+ template_target.entity_schema.fields.each { |field|
122
+ y=70
123
+ alto=35
124
+ posicion=y + (alto*indice)
125
+ indice=indice+1
126
+ %>
127
+ //
128
+ // lbl<%=field.name%>
129
+ //
130
+ lbl<%=field.name%>.AutoSize = true;
131
+ lbl<%=field.name%>.Location = new System.Drawing.Point(25, <%=posicion%>);
132
+ lbl<%=field.name%>.Name = "idLabel";
133
+ lbl<%=field.name%>.Size = new System.Drawing.Size(18, 13);
134
+ lbl<%=field.name%>.Text = "<%=field.name%>:";
135
+ //
136
+ // txt<%=field.name%>
137
+ //
138
+ this.txt<%=field.name%>.Location = new System.Drawing.Point(140, <%=posicion%>);
139
+ this.txt<%=field.name%>.Name = "idTextBox";
140
+ this.txt<%=field.name%>.Size = new System.Drawing.Size(232, 20);
141
+ <%="this.txt#{field.name}.MaxLength = #{field.size};" if field.size and field.size!='0'%>
142
+ <%}%>
143
+ //
144
+ // grpListado
145
+ //
146
+ this.grpListado.Controls.Add(this.dgvListado);
147
+ this.grpListado.Dock = System.Windows.Forms.DockStyle.Fill;
148
+ this.grpListado.Location = new System.Drawing.Point(402, 16);
149
+ this.grpListado.Name = "grpListado";
150
+ this.grpListado.Size = new System.Drawing.Size(359, 223);
151
+ this.grpListado.TabIndex = 28;
152
+ this.grpListado.TabStop = false;
153
+ this.grpListado.Text = "Listado de \'<%=template_target.entity_schema.name%>\'";
154
+ //
155
+ // dgvListado
156
+ //
157
+ this.dgvListado.AllowUserToAddRows = false;
158
+ this.dgvListado.AllowUserToDeleteRows = false;
159
+ this.dgvListado.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
160
+ this.dgvListado.Dock = System.Windows.Forms.DockStyle.Fill;
161
+ this.dgvListado.Location = new System.Drawing.Point(3, 16);
162
+ this.dgvListado.Name = "dgvListado";
163
+ this.dgvListado.ReadOnly = true;
164
+ this.dgvListado.Size = new System.Drawing.Size(353, 204);
165
+ this.dgvListado.TabIndex = 0;
166
+ //
167
+ // grpDetalle
168
+ //
169
+ this.grpDetalle.Controls.Add(this.pnlDetalle);
170
+ this.grpDetalle.Dock = System.Windows.Forms.DockStyle.Left;
171
+ this.grpDetalle.Location = new System.Drawing.Point(3, 16);
172
+ this.grpDetalle.Name = "grpDetalle";
173
+ this.grpDetalle.Size = new System.Drawing.Size(399, 223);
174
+ this.grpDetalle.TabIndex = 29;
175
+ this.grpDetalle.TabStop = false;
176
+ this.grpDetalle.Text = "Detalle";
177
+ //
178
+ // pnlDetalle
179
+ //
180
+ this.pnlDetalle.AutoScroll = true;
181
+ <%
182
+ template_target.entity_schema.fields.each { |field|
183
+ %>this.pnlDetalle.Controls.Add(lbl<%=field.name%>);
184
+ this.pnlDetalle.Controls.Add(txt<%=field.name%>);
185
+ <%}%>
186
+ this.pnlDetalle.Dock = System.Windows.Forms.DockStyle.Fill;
187
+ this.pnlDetalle.Location = new System.Drawing.Point(6, 19);
188
+ this.pnlDetalle.Name = "pnlDetalle";
189
+ this.pnlDetalle.Size = new System.Drawing.Size(387, 198);
190
+ this.pnlDetalle.TabIndex = 0;
191
+ //
192
+ // btnEditar
193
+ //
194
+ this.btnEditar.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
195
+ this.btnEditar.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
196
+ this.btnEditar.ImageKey = "Editar.png";
197
+ this.btnEditar.ImageList = this.imageList;
198
+ this.btnEditar.Location = new System.Drawing.Point(322, 19);
199
+ this.btnEditar.Name = "btnEditar";
200
+ this.btnEditar.Size = new System.Drawing.Size(82, 77);
201
+ this.btnEditar.TabIndex = 30;
202
+ this.btnEditar.Text = "Editar";
203
+ this.btnEditar.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
204
+ this.toolTip.SetToolTip(this.btnEditar, "Editar Registro <%=template_target.entity_schema.name%>");
205
+ this.btnEditar.UseVisualStyleBackColor = true;
206
+ this.btnEditar.Click += new System.EventHandler(this.btnEditar_Click);
207
+ //
208
+ // btnEliminar
209
+ //
210
+ this.btnEliminar.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
211
+ this.btnEliminar.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
212
+ this.btnEliminar.ImageIndex = 2;
213
+ this.btnEliminar.ImageList = this.imageList;
214
+ this.btnEliminar.Location = new System.Drawing.Point(410, 19);
215
+ this.btnEliminar.Name = "btnEliminar";
216
+ this.btnEliminar.Size = new System.Drawing.Size(82, 77);
217
+ this.btnEliminar.TabIndex = 31;
218
+ this.btnEliminar.Text = "Eliminar";
219
+ this.btnEliminar.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
220
+ this.toolTip.SetToolTip(this.btnEliminar, "Eliminar Registro <%=template_target.entity_schema.name%>");
221
+ this.btnEliminar.UseVisualStyleBackColor = true;
222
+ this.btnEliminar.Click += new System.EventHandler(this.btnEliminar_Click);
223
+ //
224
+ // btnAceptar
225
+ //
226
+ this.btnAceptar.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
227
+ this.btnAceptar.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
228
+ this.btnAceptar.ImageKey = "Aceptar.png";
229
+ this.btnAceptar.ImageList = this.imageList;
230
+ this.btnAceptar.Location = new System.Drawing.Point(498, 19);
231
+ this.btnAceptar.Name = "btnAceptar";
232
+ this.btnAceptar.Size = new System.Drawing.Size(82, 77);
233
+ this.btnAceptar.TabIndex = 32;
234
+ this.btnAceptar.Text = "Aceptar";
235
+ this.btnAceptar.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
236
+ this.btnAceptar.UseVisualStyleBackColor = true;
237
+ this.btnAceptar.Click += new System.EventHandler(this.btnAceptar_Click);
238
+ //
239
+ // btnCancelar
240
+ //
241
+ this.btnCancelar.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
242
+ this.btnCancelar.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
243
+ this.btnCancelar.ImageKey = "Cancelar.png";
244
+ this.btnCancelar.ImageList = this.imageList;
245
+ this.btnCancelar.Location = new System.Drawing.Point(586, 19);
246
+ this.btnCancelar.Name = "btnCancelar";
247
+ this.btnCancelar.Size = new System.Drawing.Size(82, 77);
248
+ this.btnCancelar.TabIndex = 33;
249
+ this.btnCancelar.Text = "Cancelar";
250
+ this.btnCancelar.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
251
+ this.btnCancelar.UseVisualStyleBackColor = true;
252
+ this.btnCancelar.Click += new System.EventHandler(this.btnCancelar_Click);
253
+ //
254
+ // btnSalir
255
+ //
256
+ this.btnSalir.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
257
+ this.btnSalir.Font = new System.Drawing.Font("Microsoft Sans Serif", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
258
+ this.btnSalir.ImageKey = "Salir.png";
259
+ this.btnSalir.ImageList = this.imageList;
260
+ this.btnSalir.Location = new System.Drawing.Point(674, 19);
261
+ this.btnSalir.Name = "btnSalir";
262
+ this.btnSalir.Size = new System.Drawing.Size(82, 77);
263
+ this.btnSalir.TabIndex = 34;
264
+ this.btnSalir.Text = "Salir";
265
+ this.btnSalir.TextAlign = System.Drawing.ContentAlignment.BottomCenter;
266
+ this.btnSalir.UseVisualStyleBackColor = true;
267
+ this.btnSalir.Click += new System.EventHandler(this.btnSalir_Click);
268
+ //
269
+ // grpOperaciones
270
+ //
271
+ this.grpOperaciones.Controls.Add(this.btnAgregar);
272
+ this.grpOperaciones.Controls.Add(this.btnEditar);
273
+ this.grpOperaciones.Controls.Add(this.btnEliminar);
274
+ this.grpOperaciones.Controls.Add(this.btnAceptar);
275
+ this.grpOperaciones.Controls.Add(this.btnCancelar);
276
+ this.grpOperaciones.Controls.Add(this.btnSalir);
277
+ this.grpOperaciones.Dock = System.Windows.Forms.DockStyle.Bottom;
278
+ this.grpOperaciones.Location = new System.Drawing.Point(0, 284);
279
+ this.grpOperaciones.Name = "grpOperaciones";
280
+ this.grpOperaciones.Size = new System.Drawing.Size(764, 108);
281
+ this.grpOperaciones.TabIndex = 35;
282
+ this.grpOperaciones.TabStop = false;
283
+ //
284
+ // grpDatos
285
+ //
286
+ this.grpDatos.Controls.Add(this.grpListado);
287
+ this.grpDatos.Controls.Add(this.grpDetalle);
288
+ this.grpDatos.Dock = System.Windows.Forms.DockStyle.Fill;
289
+ this.grpDatos.Location = new System.Drawing.Point(0, 42);
290
+ this.grpDatos.Name = "grpDatos";
291
+ this.grpDatos.Size = new System.Drawing.Size(764, 242);
292
+ this.grpDatos.TabIndex = 36;
293
+ this.grpDatos.TabStop = false;
294
+ //
295
+ // bindingSource
296
+ //
297
+ this.bindingSource.CurrentChanged += new System.EventHandler(this.bindingSource_CurrentChanged);
298
+ //
299
+ // lblTitulo
300
+ //
301
+ this.lblTitulo.BackColor = System.Drawing.Color.Black;
302
+ this.lblTitulo.Dock = System.Windows.Forms.DockStyle.Top;
303
+ this.lblTitulo.Font = new System.Drawing.Font("Microsoft Sans Serif", 20.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
304
+ this.lblTitulo.ForeColor = System.Drawing.Color.White;
305
+ this.lblTitulo.Location = new System.Drawing.Point(0, 0);
306
+ this.lblTitulo.Name = "lblTitulo";
307
+ this.lblTitulo.Size = new System.Drawing.Size(764, 42);
308
+ this.lblTitulo.TabIndex = 37;
309
+ this.lblTitulo.Text = "<%=template_target.entity_schema.name%>";
310
+ this.lblTitulo.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
311
+ //
312
+ // Frm<%=template_target.entity_schema.name%>
313
+ //
314
+ this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
315
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
316
+ this.ClientSize = new System.Drawing.Size(764, 392);
317
+ this.Controls.Add(this.grpDatos);
318
+ this.Controls.Add(this.grpOperaciones);
319
+ this.Controls.Add(this.lblTitulo);
320
+ this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
321
+ this.MinimumSize = new System.Drawing.Size(780, 430);
322
+ this.Name = "Frm<%=template_target.entity_schema.name%>";
323
+ this.Text = "Edición <%=template_target.entity_schema.name%>";
324
+ this.Load += new System.EventHandler(this.<%=template_target.class_name%>_Load);
325
+ this.grpListado.ResumeLayout(false);
326
+ ((System.ComponentModel.ISupportInitialize)(this.dgvListado)).EndInit();
327
+ this.grpDetalle.ResumeLayout(false);
328
+ this.pnlDetalle.ResumeLayout(false);
329
+ this.pnlDetalle.PerformLayout();
330
+ this.grpOperaciones.ResumeLayout(false);
331
+ this.grpDatos.ResumeLayout(false);
332
+ ((System.ComponentModel.ISupportInitialize)(this.bindingSource)).EndInit();
333
+ this.ResumeLayout(false);
334
+
335
+ }
336
+
337
+ #endregion
338
+
339
+ private System.Windows.Forms.Button btnAgregar;
340
+ <%
341
+ template_target.entity_schema.fields.each { |field|
342
+ %>private System.Windows.Forms.Label lbl<%=field.name%>;
343
+ private System.Windows.Forms.TextBox txt<%=field.name%>;
344
+ <%}%>
345
+ private System.Windows.Forms.GroupBox grpListado;
346
+ private System.Windows.Forms.DataGridView dgvListado;
347
+ private System.Windows.Forms.GroupBox grpDetalle;
348
+ private System.Windows.Forms.Panel pnlDetalle;
349
+ private System.Windows.Forms.ImageList imageList;
350
+ private System.Windows.Forms.Button btnEditar;
351
+ private System.Windows.Forms.Button btnEliminar;
352
+ private System.Windows.Forms.Button btnAceptar;
353
+ private System.Windows.Forms.Button btnCancelar;
354
+ private System.Windows.Forms.Button btnSalir;
355
+ private System.Windows.Forms.GroupBox grpOperaciones;
356
+ private System.Windows.Forms.GroupBox grpDatos;
357
+ private System.Windows.Forms.BindingSource bindingSource;
358
+ private System.Windows.Forms.Label lblTitulo;
359
+ private System.Windows.Forms.ToolTip toolTip;
360
+
361
+
362
+ }
363
+ }