frmSeleccionarDocumentosPorReferencia.cs
1 using System;
2 using System.Collections.Generic;
3 using System.ComponentModel;
4 using System.Data;
5 using System.Drawing;
6 using System.Linq;
7 using System.Text;
8 using System.Windows.Forms;
9 using sage.ew.formul.Forms;
10 using sage.ew.global;
11 using sage.ew.botones.Clases;
12 
13 namespace sage.ew.formul.Forms
14 {
16  {
17  private List<String> _oReferencias = new List<String>();
18 
22  public List<String> _ReferenciasCliente
23  {
24  get
25  {
26  return _oReferencias;
27  }
28  set
29  {
30  _oReferencias = value;
31  _CargaReferencias();
32  }
33  }
34 
35  private void _CargaReferencias()
36  {
37  DataRow loRow;
38  DataTable loDt = new DataTable();
39 
40  loDt.Columns.Add("letra");
41  loDt.Columns.Add("documento");
42 
43  foreach (String lcNumero in _oReferencias)
44  {
45  if (lcNumero.Length > 2)
46  {
47  loRow = loDt.NewRow();
48 
49  loRow["letra"] = lcNumero.Substring(0, 2);
50  loRow["documento"] = lcNumero.Substring(2);
51  loDt.Rows.Add(loRow);
52  }
53  }
54 
55  _DataTable = loDt;
56 
57  }
58 
63  {
64  InitializeComponent();
65  }
66 
67  private void frmSeleccionarDocumentosPorReferencia_Load(object sender, EventArgs e)
68  {
69  _MostrarAccesoFavoritos = false;
70  _MostrarCrearAccesoDirecto = false;
71  _MostrarCrearTareaProgramada = false;
72  _MostrarGestionAccesos = false;
73 
74  _Width = 600;
75  _Height = 400;
76  }
77 
78  private void frmSeleccionarDocumentosPorReferencia__GridCellDobleClickEvent(object sender, DataGridViewCellEventArgs e)
79  {
80  _Aceptar();
81 
82  DialogResult = DialogResult.OK;
83  }
84 
85  private void frmSeleccionarDocumentosPorReferencia_Shown(object sender, EventArgs e)
86  {
87  _Grid.ReadOnly = true;
88  }
89  }
90 }
Formulario multipropuesta SELECCIONAR
Definition: Seleccionar.cs:24