Commit a55d8e80 authored by tr's avatar tr

1、微调

parent 67ef7ac7
...@@ -54,4 +54,10 @@ ...@@ -54,4 +54,10 @@
<UserId>sa</UserId> <UserId>sa</UserId>
<Pwd>sa</Pwd> <Pwd>sa</Pwd>
</links> </links>
<links>
<Link>192.168.1.202</Link>
<DbName>FTT_LN</DbName>
<UserId>sa</UserId>
<Pwd>sa</Pwd>
</links>
</DocumentElement> </DocumentElement>
\ No newline at end of file
...@@ -76,7 +76,6 @@ ...@@ -76,7 +76,6 @@
this.checkedListBox1.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.checkedListBox1.Font = new System.Drawing.Font("微软雅黑", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
this.checkedListBox1.FormattingEnabled = true; this.checkedListBox1.FormattingEnabled = true;
this.checkedListBox1.Location = new System.Drawing.Point(5, 5); this.checkedListBox1.Location = new System.Drawing.Point(5, 5);
this.checkedListBox1.MultiColumn = true;
this.checkedListBox1.Name = "checkedListBox1"; this.checkedListBox1.Name = "checkedListBox1";
this.checkedListBox1.Size = new System.Drawing.Size(380, 200); this.checkedListBox1.Size = new System.Drawing.Size(380, 200);
this.checkedListBox1.TabIndex = 4; this.checkedListBox1.TabIndex = 4;
......
...@@ -114,13 +114,14 @@ namespace Tools.UI ...@@ -114,13 +114,14 @@ namespace Tools.UI
{ {
if (e.RowIndex < 0 || e.ColumnIndex < 0) if (e.RowIndex < 0 || e.ColumnIndex < 0)
return; return;
if (this.dgvTables.Columns[e.ColumnIndex].DataPropertyName.Equals("TpNames")) var fieldName = this.dgvTables.Columns[e.ColumnIndex].DataPropertyName;
var drNow = this._ds.Tables["ModuleTemplateTable"].DefaultView[e.RowIndex];
if (fieldName.Equals("TpNames"))
{ {
var items = this._ds.Tables["ModuleTemplate"].DefaultView.Cast<DataRowView>().Select(r => r["TpName"].ToString()); var items = this._ds.Tables["ModuleTemplate"].DefaultView.Cast<DataRowView>().Select(r => r["TpName"].ToString());
wSelectTemplates frm = new wSelectTemplates(items); wSelectTemplates frm = new wSelectTemplates(items);
if (frm.ShowDialog() == DialogResult.OK) if (frm.ShowDialog() == DialogResult.OK)
{ {
var drNow = this._ds.Tables["ModuleTemplateTable"].DefaultView[e.RowIndex];
var result = ""; var result = "";
if (frm.IsCover) if (frm.IsCover)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment