업무일지 검색기능 강화
This commit is contained in:
@@ -89,15 +89,16 @@ namespace FPJ0000
|
||||
}
|
||||
if (cmbUser.Text.IndexOf("(") == -1 || cmbUser.Text.IndexOf(")") == -1)
|
||||
{
|
||||
// FCOMMON.Util.MsgE("담당자 번호를 확인할 수 없습니다.(문의 T.8567)");
|
||||
// FCOMMON.Util.MsgE("담당자 번호를 확인할 수 없습니다.(문의 T.8567)");
|
||||
return;
|
||||
}
|
||||
string request = cmbUser.Text.Substring(cmbUser.Text.LastIndexOf('(') + 1);
|
||||
request = request.Substring(0, request.Length - 1);
|
||||
|
||||
int work, ot, total;
|
||||
FCOMMON.DBM.getWorkTime(request, this.dtSD.Text.Substring(0,7), out work, out total, out ot);
|
||||
lbTime.Text = string.Format(" {0}h/{2}h, OT:{1}h", work,ot, total);
|
||||
float work, ot;
|
||||
int total;
|
||||
FCOMMON.DBM.getWorkTime(request, this.dtSD.Text.Substring(0, 7), out work, out total, out ot);
|
||||
lbTime.Text = string.Format(" {0}h/{2}h, OT:{1}h", work, ot, total);
|
||||
}
|
||||
void dtSD_KeyDown(object sender, KeyEventArgs e)
|
||||
{
|
||||
@@ -180,7 +181,7 @@ namespace FPJ0000
|
||||
e.Row["wuid"] = FCOMMON.info.Login.no;
|
||||
e.Row["wdate"] = DateTime.Now;
|
||||
e.Row["status"] = "진행 완료";//other
|
||||
e.Row["uid"] = FCOMMON.info.Login.nameK; //이름을 직접 기록
|
||||
e.Row["uid"] = FCOMMON.info.Login.no; //이름을 직접 기록
|
||||
e.Row["hrs"] = 8.0;
|
||||
e.Row["ot"] = 0.0;
|
||||
}
|
||||
@@ -253,7 +254,7 @@ namespace FPJ0000
|
||||
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
|
||||
{
|
||||
this.dsMSSQL.JobReport.AddJobReportRow(newdr);
|
||||
int cnt = this.ta.Update(newdr);
|
||||
int cnt = this.ta.Update(newdr);
|
||||
newdr.AcceptChanges();
|
||||
if (cnt != 1)
|
||||
FCOMMON.Util.MsgE("자료가 추가되지 않았습니다.\n\n잠시 후 다시 시도하세요");
|
||||
@@ -311,7 +312,7 @@ namespace FPJ0000
|
||||
{
|
||||
if (dr.RowState != DataRowState.Unchanged)
|
||||
{
|
||||
int cnt = this.ta.Update(dr);
|
||||
int cnt = this.ta.Update(dr);
|
||||
dr.AcceptChanges();
|
||||
}
|
||||
}
|
||||
@@ -335,7 +336,7 @@ namespace FPJ0000
|
||||
|
||||
private void btCopy_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
void funcCopy()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user