This commit is contained in:
chikyun.kim
2018-10-02 08:24:16 +09:00
parent 7b86ca98d9
commit 327adb3779
19 changed files with 973 additions and 491 deletions

View File

@@ -11,15 +11,15 @@ namespace FCM0000
{
public partial class fLovProject : Form
{
public string ProjectName { get; set; }
public int Project { get; set; }
public string Title { get; set; }
public int Index { get; set; }
string keyword = string.Empty;
public fLovProject(string search_)
{
InitializeComponent();
ProjectName = string.Empty;
Project = -1;
Title = string.Empty;
Index = -1;
this.keyword = search_;
this.KeyPreview = true;
@@ -56,18 +56,18 @@ namespace FCM0000
var drv = bs.Current as DataRowView;
if (drv == null)
{
ProjectName = string.Empty;
Project = -1;
Title = string.Empty;
Index = -1;
return;
}
else
{
var dr = drv.Row as dsMSSQL.ProjectsRow;
Project = dr.idx;
ProjectName = dr.name;
Index = dr.idx;
Title = dr.name;
}
if (ProjectName.isEmpty() || Project == -1) DialogResult = System.Windows.Forms.DialogResult.Cancel;
if (Title.isEmpty() || Index == -1) DialogResult = System.Windows.Forms.DialogResult.Cancel;
else DialogResult = System.Windows.Forms.DialogResult.OK;
}