추석전 변경사항

This commit is contained in:
chikyun.kim
2018-09-26 08:20:12 +09:00
parent 6ddd4736a3
commit 30583ad369
260 changed files with 4266 additions and 404 deletions

View File

@@ -11,10 +11,16 @@ namespace FCM0000
{
public partial class fLovProject : Form
{
public string ProjectName { get; set; }
public int Project { get; set; }
string keyword = string.Empty;
public fLovProject(string search_)
{
InitializeComponent();
ProjectName = string.Empty;
Project = -1;
this.keyword = search_;
this.KeyPreview = true;
this.KeyDown += (s1, e1) => {
@@ -29,14 +35,7 @@ namespace FCM0000
this.ta.FillSearch(this.dsMSSQL.Projects,this.keyword);
}
private void itemsBindingNavigatorSaveItem_Click(object sender, EventArgs e)
{
if (ProjectName.isEmpty() || Project == -1) DialogResult = System.Windows.Forms.DialogResult.Cancel;
else DialogResult = System.Windows.Forms.DialogResult.OK;
}
public string ProjectName = string.Empty;
public int Project = -1;
private void bs_CurrentChanged(object sender, EventArgs e)
{
@@ -46,22 +45,35 @@ namespace FCM0000
{
if (e.KeyCode == Keys.Enter)
{
var drv = bs.Current as DataRowView;
if (drv == null)
{
ProjectName = string.Empty;
Project = -1;
return;
}
else
{
var dr = drv.Row as dsMSSQL.ProjectsRow;
Project = dr.idx;
ProjectName = dr.name;
}
btOK.PerformClick();
}
}
private void itemsBindingNavigatorSaveItem_Click(object sender, EventArgs e)
{
var drv = bs.Current as DataRowView;
if (drv == null)
{
ProjectName = string.Empty;
Project = -1;
return;
}
else
{
var dr = drv.Row as dsMSSQL.ProjectsRow;
Project = dr.idx;
ProjectName = dr.name;
}
if (ProjectName.isEmpty() || Project == -1) DialogResult = System.Windows.Forms.DialogResult.Cancel;
else DialogResult = System.Windows.Forms.DialogResult.OK;
}
private void dv_DoubleClick(object sender, EventArgs e)
{
btOK.PerformClick();
}
}
}