....
This commit is contained in:
@@ -182,12 +182,24 @@ namespace FPJ0000.OtConfirm
|
||||
return;
|
||||
}
|
||||
|
||||
if(tbRemark.Text.StartsWith("테스트") && chkSendMail.Checked)
|
||||
if (tbRemark.Text.StartsWith("테스트") && chkSendMail.Checked)
|
||||
{
|
||||
FCOMMON.Util.MsgI("테스트라 메일 체크를 끕니다");
|
||||
chkSendMail.Checked = false;
|
||||
}
|
||||
|
||||
//동일날짜에 등록된 자료가있다면 오류로 처리한다.
|
||||
var db = new EEEntities();
|
||||
string chkdt = tbSD.Value.ToShortDateString();
|
||||
var existdb = db.EETGW_HolydayRequest.Where(t => t.gcode == FCOMMON.info.Login.gcode && t.uid == uid.ToString() && t.sdate == chkdt).Any();
|
||||
if(existdb)
|
||||
{
|
||||
FCOMMON.Util.MsgE("동일 날짜에 등록된 자료가 있습니다");
|
||||
return ;
|
||||
}
|
||||
|
||||
|
||||
|
||||
if (dr.RowState == DataRowState.Detached)
|
||||
{
|
||||
var dlg = FCOMMON.Util.MsgQ("입력을 완료하시겠습니까?\r\n관리자에게 메일로 알림이 발생 합니다");
|
||||
@@ -347,14 +359,14 @@ namespace FPJ0000.OtConfirm
|
||||
var perc = 0f;
|
||||
if (val[0] != "0") perc = float.Parse(val[1]) / float.Parse(val[0]);
|
||||
if (richTextBox1.TextLength > 0) richTextBox1.AppendText(",");
|
||||
richTextBox1.AppendText($"[{item.Key}] {val[2]}일 남음({perc*100:N1}%사용)");
|
||||
richTextBox1.AppendText($"[{item.Key}] {val[2]}일 남음({perc * 100:N1}%사용)");
|
||||
}
|
||||
else if (val[5] != "0")
|
||||
{
|
||||
var perc = 0f;
|
||||
if (val[3] != "0") perc = float.Parse(val[4]) / float.Parse(val[3]);
|
||||
if (richTextBox1.TextLength > 0) richTextBox1.AppendText(",");
|
||||
richTextBox1.AppendText($"[{item.Key}] {val[5]}시간 남음({perc*100:N1}%사용)");
|
||||
richTextBox1.AppendText($"[{item.Key}] {val[5]}시간 남음({perc * 100:N1}%사용)");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user