This commit is contained in:
chi
2022-01-08 13:29:22 +09:00
parent fff64fa703
commit e2aa532654
47 changed files with 8448 additions and 2202 deletions

View File

@@ -54,6 +54,8 @@ namespace JobReportMailService
});
timer1.Start();
if (Pub.setting.autoRunData)
btRun.PerformClick();
}
void RunData()
@@ -65,7 +67,7 @@ namespace JobReportMailService
void SendMail()
{
//그룹무관하게 모든 자료를 전송처리한다
var ta = new DataSet1TableAdapters.MailDataTableAdapter();
var sendList = ta.GetData(); //발송되지않은 메일목록
@@ -79,6 +81,7 @@ namespace JobReportMailService
var list_to = getMaillist(dr.tolist);
var list_bcc = getMaillist(dr.bcc);
var list_cc = getMaillist(dr.cc);
string sendMsg = "";
if (list_from == "")
@@ -205,7 +208,7 @@ namespace JobReportMailService
newdr.body = dr.body;
newdr.aidx = dr.idx;
newdr.atime = dr.stime;
newdr.wuid = "MANAGER";
newdr.wuid = "DEV";
newdr.wdate = DateTime.Now;
dtInsert.AddMailDataRow(newdr);
try
@@ -256,16 +259,16 @@ namespace JobReportMailService
{
if (task != null)
{
if (task.IsCompleted) this.toolStripButton1.Text = "완료";
else if (task.IsCanceled) this.toolStripButton1.Text = "취소";
else if (taskwait) this.toolStripButton1.Text = "대기상태";
else this.toolStripButton1.Text = "가동중";
this.toolStripButton1.Enabled = true;
if (task.IsCompleted) this.btRun.Text = "완료";
else if (task.IsCanceled) this.btRun.Text = "취소";
else if (taskwait) this.btRun.Text = "대기상태";
else this.btRun.Text = "가동중";
this.btRun.Enabled = true;
}
else
{
this.toolStripButton1.Text = "사용불가";
this.toolStripButton1.Enabled = false;
this.btRun.Text = "사용불가";
this.btRun.Enabled = false;
}
}