업무일지 복사시 해당 내용도 들어가게 함

This commit is contained in:
chikyun.kim
2019-09-26 08:29:36 +09:00
parent 45611d308a
commit 3acf9659e7
7 changed files with 98 additions and 93 deletions

View File

@@ -392,7 +392,7 @@ namespace FPJ0000
newdr.wdate = DateTime.Now;
newdr.wuid = FCOMMON.info.Login.no;
newdr.uid = FCOMMON.info.Login.no;
newdr.description = "";
//newdr.description = "";
newdr.pdate = DateTime.Now.ToShortDateString(); //190509
newdr.idx = -1;
newdr.hrs = 8.0;

View File

@@ -12,7 +12,8 @@ namespace FPJ0000.JobReport
public partial class fJobReport_Add : Form
{
dsPRJ.JobReportRow dr;
public fJobReport_Add(dsPRJ.JobReportRow dr_)
Boolean copyMOde = false;
public fJobReport_Add(dsPRJ.JobReportRow dr_,Boolean copy=false)
{
InitializeComponent();
dr = dr_;
@@ -30,6 +31,7 @@ namespace FPJ0000.JobReport
ctl.KeyDown += ctl_KeyDown;
}
}
copyMOde = copy;
}
private void fJobReport_Add_Load(object sender, EventArgs e)
@@ -107,8 +109,16 @@ namespace FPJ0000.JobReport
this.Show();
Application.DoEvents();
tbProject.Focus();
tbProject.SelectAll();
if(tbDescription.Text.Trim() != "")
{
tbDescription.Focus();
tbDescription.SelectAll();
}
else
{
tbProject.Focus();
tbProject.SelectAll();
}
}
void ctl_KeyDown(object sender, KeyEventArgs e)