FrmBaseDatos: Mostrar si la columna es nullable
This commit is contained in:
171
ServerExplorer/UI/FrmBaseDatos.Designer.cs
generated
171
ServerExplorer/UI/FrmBaseDatos.Designer.cs
generated
@@ -31,15 +31,6 @@
|
||||
this.txtConString = new System.Windows.Forms.TextBox();
|
||||
this.lblConString = new System.Windows.Forms.Label();
|
||||
this.btnCopiarConString = new System.Windows.Forms.Button();
|
||||
this.lsvTablas = new ServerExplorer.Controls.CustomListView();
|
||||
this.colNombreTabla = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||
this.colEsquema = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||
this.colTipo = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||
this.lsvColumnas = new ServerExplorer.Controls.CustomListView();
|
||||
this.colNombreColumna = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||
this.colTipoDatos = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||
this.colTamanho = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||
this.colClave = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||
this.menuBaseDatos = new System.Windows.Forms.MenuStrip();
|
||||
this.archivoToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.menuCargar = new System.Windows.Forms.ToolStripMenuItem();
|
||||
@@ -53,6 +44,16 @@
|
||||
this.btnProcs = new System.Windows.Forms.Button();
|
||||
this.btnExec = new System.Windows.Forms.Button();
|
||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||
this.lsvTablas = new ServerExplorer.Controls.CustomListView();
|
||||
this.colNombreTabla = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||
this.colEsquema = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||
this.colTipo = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||
this.lsvColumnas = new ServerExplorer.Controls.CustomListView();
|
||||
this.colNombreColumna = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||
this.colTipoDatos = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||
this.colTamanho = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||
this.colClave = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||
this.colNullable = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
|
||||
this.menuBaseDatos.SuspendLayout();
|
||||
this.splitContainer1.Panel1.SuspendLayout();
|
||||
this.splitContainer1.Panel2.SuspendLayout();
|
||||
@@ -89,79 +90,6 @@
|
||||
this.btnCopiarConString.UseVisualStyleBackColor = true;
|
||||
this.btnCopiarConString.Click += new System.EventHandler(this.btnCopiarConString_Click);
|
||||
//
|
||||
// lsvTablas
|
||||
//
|
||||
this.lsvTablas.AllowSorting = true;
|
||||
this.lsvTablas.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.lsvTablas.CheckBoxes = true;
|
||||
this.lsvTablas.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
|
||||
this.colNombreTabla,
|
||||
this.colEsquema,
|
||||
this.colTipo});
|
||||
this.lsvTablas.FullRowSelect = true;
|
||||
this.lsvTablas.Location = new System.Drawing.Point(3, 40);
|
||||
this.lsvTablas.Name = "lsvTablas";
|
||||
this.lsvTablas.Size = new System.Drawing.Size(317, 468);
|
||||
this.lsvTablas.Sorting = System.Windows.Forms.SortOrder.Ascending;
|
||||
this.lsvTablas.TabIndex = 4;
|
||||
this.lsvTablas.UseCompatibleStateImageBehavior = false;
|
||||
this.lsvTablas.View = System.Windows.Forms.View.Details;
|
||||
this.lsvTablas.SelectedIndexChanged += new System.EventHandler(this.lsvTablas_SelectedIndexChanged);
|
||||
//
|
||||
// colNombreTabla
|
||||
//
|
||||
this.colNombreTabla.Text = "Tabla";
|
||||
this.colNombreTabla.Width = 169;
|
||||
//
|
||||
// colEsquema
|
||||
//
|
||||
this.colEsquema.Text = "Esquema";
|
||||
//
|
||||
// colTipo
|
||||
//
|
||||
this.colTipo.Text = "Tipo";
|
||||
this.colTipo.Width = 71;
|
||||
//
|
||||
// lsvColumnas
|
||||
//
|
||||
this.lsvColumnas.AllowSorting = false;
|
||||
this.lsvColumnas.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.lsvColumnas.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
|
||||
this.colNombreColumna,
|
||||
this.colTipoDatos,
|
||||
this.colTamanho,
|
||||
this.colClave});
|
||||
this.lsvColumnas.FullRowSelect = true;
|
||||
this.lsvColumnas.Location = new System.Drawing.Point(3, 40);
|
||||
this.lsvColumnas.Name = "lsvColumnas";
|
||||
this.lsvColumnas.Size = new System.Drawing.Size(473, 439);
|
||||
this.lsvColumnas.TabIndex = 6;
|
||||
this.lsvColumnas.UseCompatibleStateImageBehavior = false;
|
||||
this.lsvColumnas.View = System.Windows.Forms.View.Details;
|
||||
//
|
||||
// colNombreColumna
|
||||
//
|
||||
this.colNombreColumna.Text = "Columna";
|
||||
this.colNombreColumna.Width = 122;
|
||||
//
|
||||
// colTipoDatos
|
||||
//
|
||||
this.colTipoDatos.Text = "Tipo de Datos";
|
||||
this.colTipoDatos.Width = 81;
|
||||
//
|
||||
// colTamanho
|
||||
//
|
||||
this.colTamanho.Text = "Tamaño";
|
||||
//
|
||||
// colClave
|
||||
//
|
||||
this.colClave.Text = "Clave";
|
||||
this.colClave.Width = 71;
|
||||
//
|
||||
// menuBaseDatos
|
||||
//
|
||||
this.menuBaseDatos.Dock = System.Windows.Forms.DockStyle.None;
|
||||
@@ -318,6 +246,84 @@
|
||||
this.splitContainer1.SplitterDistance = 323;
|
||||
this.splitContainer1.TabIndex = 17;
|
||||
//
|
||||
// lsvTablas
|
||||
//
|
||||
this.lsvTablas.AllowSorting = true;
|
||||
this.lsvTablas.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.lsvTablas.CheckBoxes = true;
|
||||
this.lsvTablas.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
|
||||
this.colNombreTabla,
|
||||
this.colEsquema,
|
||||
this.colTipo});
|
||||
this.lsvTablas.FullRowSelect = true;
|
||||
this.lsvTablas.Location = new System.Drawing.Point(3, 40);
|
||||
this.lsvTablas.Name = "lsvTablas";
|
||||
this.lsvTablas.Size = new System.Drawing.Size(317, 468);
|
||||
this.lsvTablas.Sorting = System.Windows.Forms.SortOrder.Ascending;
|
||||
this.lsvTablas.TabIndex = 4;
|
||||
this.lsvTablas.UseCompatibleStateImageBehavior = false;
|
||||
this.lsvTablas.View = System.Windows.Forms.View.Details;
|
||||
this.lsvTablas.SelectedIndexChanged += new System.EventHandler(this.lsvTablas_SelectedIndexChanged);
|
||||
//
|
||||
// colNombreTabla
|
||||
//
|
||||
this.colNombreTabla.Text = "Tabla";
|
||||
this.colNombreTabla.Width = 169;
|
||||
//
|
||||
// colEsquema
|
||||
//
|
||||
this.colEsquema.Text = "Esquema";
|
||||
//
|
||||
// colTipo
|
||||
//
|
||||
this.colTipo.Text = "Tipo";
|
||||
this.colTipo.Width = 71;
|
||||
//
|
||||
// lsvColumnas
|
||||
//
|
||||
this.lsvColumnas.AllowSorting = false;
|
||||
this.lsvColumnas.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.lsvColumnas.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
|
||||
this.colNombreColumna,
|
||||
this.colTipoDatos,
|
||||
this.colTamanho,
|
||||
this.colClave,
|
||||
this.colNullable});
|
||||
this.lsvColumnas.FullRowSelect = true;
|
||||
this.lsvColumnas.Location = new System.Drawing.Point(3, 40);
|
||||
this.lsvColumnas.Name = "lsvColumnas";
|
||||
this.lsvColumnas.Size = new System.Drawing.Size(473, 439);
|
||||
this.lsvColumnas.TabIndex = 6;
|
||||
this.lsvColumnas.UseCompatibleStateImageBehavior = false;
|
||||
this.lsvColumnas.View = System.Windows.Forms.View.Details;
|
||||
//
|
||||
// colNombreColumna
|
||||
//
|
||||
this.colNombreColumna.Text = "Columna";
|
||||
this.colNombreColumna.Width = 122;
|
||||
//
|
||||
// colTipoDatos
|
||||
//
|
||||
this.colTipoDatos.Text = "Tipo de Datos";
|
||||
this.colTipoDatos.Width = 81;
|
||||
//
|
||||
// colTamanho
|
||||
//
|
||||
this.colTamanho.Text = "Tamaño";
|
||||
//
|
||||
// colClave
|
||||
//
|
||||
this.colClave.Text = "Clave";
|
||||
this.colClave.Width = 71;
|
||||
//
|
||||
// colNullable
|
||||
//
|
||||
this.colNullable.Text = "Nullable";
|
||||
//
|
||||
// FrmBaseDatos
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
@@ -369,5 +375,6 @@
|
||||
private System.Windows.Forms.Button btnProcs;
|
||||
private System.Windows.Forms.Button btnExec;
|
||||
private System.Windows.Forms.SplitContainer splitContainer1;
|
||||
private System.Windows.Forms.ColumnHeader colNullable;
|
||||
}
|
||||
}
|
||||
@@ -177,22 +177,9 @@ namespace ServerExplorer.UI
|
||||
{
|
||||
ListViewItem subitem = lsvColumnas.Items.Add(col.Nombre);
|
||||
subitem.SubItems.Add(col.Tipo);
|
||||
if (col.Tamanho >= 0)
|
||||
{
|
||||
subitem.SubItems.Add(String.Format("{0}", col.Tamanho));
|
||||
}
|
||||
else
|
||||
{
|
||||
subitem.SubItems.Add("");
|
||||
}
|
||||
if (col.Primaria)
|
||||
{
|
||||
subitem.SubItems.Add("PK");
|
||||
}
|
||||
else
|
||||
{
|
||||
subitem.SubItems.Add("");
|
||||
}
|
||||
subitem.SubItems.Add((col.Tamanho >= 0) ? String.Format("{0}", col.Tamanho) : string.Empty);
|
||||
subitem.SubItems.Add(col.Primaria ? "PK" : string.Empty);
|
||||
subitem.SubItems.Add(col.Nullable ? "Null" : "NotNull");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user