..
This commit is contained in:
@@ -138,6 +138,40 @@ namespace FCM0000
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
private void s가져오기ToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
var f = new FCOMMON.fInputTextBox();
|
||||
if (f.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
var data = f.textBox1.Text.Trim();
|
||||
data = data.Replace("\r", "");
|
||||
var lines = data.Split(new string[] { "\n" }, StringSplitOptions.RemoveEmptyEntries);
|
||||
|
||||
var dlg = FCOMMON.Util.MsgQ(lines.Count().ToString() + "건의 자료가 있습니다. 입력할까요?");
|
||||
if (dlg == DialogResult.Yes)
|
||||
{
|
||||
int r = 0;
|
||||
foreach (var item in lines)
|
||||
{
|
||||
if(r < this.dsMSSQL.Common.Count)
|
||||
this.dsMSSQL.Common.Rows[r]["svalue"] = item;
|
||||
|
||||
r += 1;
|
||||
//if (item.Trim().Equals("")) continue;
|
||||
|
||||
//if (this.dsMSSQL.Common.Where(t => t.memo == item.Trim()).Any() == false)
|
||||
//{
|
||||
// var newdr = this.dsMSSQL.Common.NewCommonRow();
|
||||
// newdr.memo = item;
|
||||
// this.dsMSSQL.Common.AddCommonRow(newdr);
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user