적정인원보고서 수정
This commit is contained in:
@@ -38,6 +38,10 @@ namespace Console_SendMail
|
||||
|
||||
foreach (var vGcode in gcodelist)
|
||||
{
|
||||
//메일기능이 꺼져있다면 처리하지 않는다.
|
||||
var usemail = DatabaseManager.GetGroupEnableMail(vGcode);
|
||||
if (usemail == false) continue;
|
||||
|
||||
//메일정보가 등록되지 않았다면 처리하지 않는다
|
||||
var MailForm = taMailForm.GetData(vGcode, vCate).FirstOrDefault();
|
||||
if (MailForm == null) continue;
|
||||
@@ -139,7 +143,7 @@ namespace Console_SendMail
|
||||
mail_body = mail_body.Replace("{사번}", userinfo.Value.id);
|
||||
|
||||
//메일본문을 생성해서 진행해야함
|
||||
var mail_content = "<p>일자별 정보</p>";
|
||||
var mail_content = $"<p>일자별 정보({vGcode})</p>";
|
||||
mail_content += $"<br/>조회기간 : {str_sd}~{str_ed}";
|
||||
mail_content += "<br/><table border='1' cellspacing='1' cellpadding='1'><tr><td>날짜</td><td>요일</td><td>시간</td></tr>";
|
||||
foreach (var warnitem in WarnList)
|
||||
@@ -258,6 +262,11 @@ namespace Console_SendMail
|
||||
var gcodelist = DatabaseManager.getGroupListWithoutGcode("gcode", "MailForm", "gcode is not null and gcode <> 'DEV'");
|
||||
foreach (var vGcode in gcodelist)
|
||||
{
|
||||
|
||||
//메일기능이 꺼져있다면 처리하지 않는다.
|
||||
var usemail = DatabaseManager.GetGroupEnableMail(vGcode);
|
||||
if (usemail == false) continue;
|
||||
|
||||
//메일양식이 지정되어있는지 체크
|
||||
var MailForm = taMailForm.GetData(vGcode, vCate).FirstOrDefault();
|
||||
if (MailForm == null) continue;
|
||||
@@ -443,6 +452,10 @@ namespace Console_SendMail
|
||||
var gcodelist = DatabaseManager.getGroupListWithoutGcode("gcode", "MailForm", "gcode is not null and gcode <> 'DEV'");
|
||||
foreach (var vGcode in gcodelist)
|
||||
{
|
||||
//메일기능이 꺼져있다면 처리하지 않는다.
|
||||
var usemail = DatabaseManager.GetGroupEnableMail(vGcode);
|
||||
if (usemail == false) continue;
|
||||
|
||||
//메일양식이 지정되어있는지 체크
|
||||
var MailForm = taForm.GetData(vGcode, vCate).FirstOrDefault();
|
||||
if (MailForm == null) continue;
|
||||
@@ -542,7 +555,7 @@ namespace Console_SendMail
|
||||
}
|
||||
newdr.EndEdit();
|
||||
dt.AddMailDataRow(newdr);
|
||||
taMailData.Update(dt);
|
||||
var CNT = taMailData.Update(newdr);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -605,6 +618,10 @@ namespace Console_SendMail
|
||||
var gcodelist = DatabaseManager.getGroupListWithoutGcode("gcode", "MailForm", "gcode is not null and gcode <> 'DEV'");
|
||||
foreach (var vGcode in gcodelist)
|
||||
{
|
||||
//메일기능이 꺼져있다면 처리하지 않는다.
|
||||
var usemail = DatabaseManager.GetGroupEnableMail(vGcode);
|
||||
if (usemail == false) continue;
|
||||
|
||||
//메일양식이 지정되어있는지 체크
|
||||
var MailForm = taForm.GetData(vGcode, vCate).FirstOrDefault();
|
||||
if (MailForm == null) continue;
|
||||
@@ -790,6 +807,10 @@ namespace Console_SendMail
|
||||
|
||||
foreach (var vGcode in gcodelist)
|
||||
{
|
||||
//메일기능이 꺼져있다면 처리하지 않는다.
|
||||
var usemail = DatabaseManager.GetGroupEnableMail(vGcode);
|
||||
if (usemail == false) continue;
|
||||
|
||||
//메일양식이 지정되어있는지 체크
|
||||
var MailJD = taForm.GetData(vGcode, vCate).FirstOrDefault();
|
||||
if (MailJD == null) continue;
|
||||
@@ -1137,6 +1158,11 @@ namespace Console_SendMail
|
||||
|
||||
foreach (DSMail.MailAutoRow dr in dtList)
|
||||
{
|
||||
//메일기능이 꺼져있다면 처리하지 않는다.
|
||||
var vGcode = dr.gcode;
|
||||
var usemail = DatabaseManager.GetGroupEnableMail(vGcode);
|
||||
if (usemail == false) continue;
|
||||
|
||||
//시간정보가 없는 애들은 처리 하지 않음
|
||||
if (dr.stime.IndexOf(":") == -1) continue;
|
||||
if (dr.sday == null || dr.sday.Length < 2) continue;
|
||||
@@ -1248,6 +1274,11 @@ namespace Console_SendMail
|
||||
|
||||
foreach (var vGcode in gcodelist)
|
||||
{
|
||||
//메일기능이 꺼져있다면 처리하지 않는다.
|
||||
var usemail = DatabaseManager.GetGroupEnableMail(vGcode);
|
||||
if (usemail == false) continue;
|
||||
|
||||
|
||||
//메일양식이 지정되어있는지 체크
|
||||
var MailJD = taForm.GetData(vGcode, vCate).FirstOrDefault();
|
||||
if (MailJD == null) continue;
|
||||
|
||||
Reference in New Issue
Block a user