|
@@ -227,9 +227,7 @@ async def is_close_changed_notice(exf_id: str = '', is_close: str = ''):
|
|
|
q1_result_count = len(list(db.query(q1)))
|
|
|
|
|
|
if q1_result_count > 0: # 有執行項目
|
|
|
- html += "<div style='color:blue;'><b>本合約執行項目: 共" + str(q1_result_count) + "筆,如下表:</b><br><br></div>"
|
|
|
-
|
|
|
- html += "<table style='width:100%;border-collapse: collapse;' border='1'> \
|
|
|
+ html += "<br><br><table style='width:100%;border-collapse: collapse;' border='1'> \
|
|
|
<tr style='text-align:left;'> \
|
|
|
<th style='width:5%;'>#</th> \
|
|
|
<th>大項目</th> \
|
|
@@ -242,12 +240,20 @@ async def is_close_changed_notice(exf_id: str = '', is_close: str = ''):
|
|
|
<th>第一次提醒日</th> \
|
|
|
</tr>";
|
|
|
|
|
|
- idx = 0
|
|
|
+ idx = 1
|
|
|
|
|
|
for r1 in db.query(q1):
|
|
|
+ if r1['set_date'] is None:
|
|
|
+ r1['set_date'] = '無'
|
|
|
+
|
|
|
+ if r1['alert_date_1'] is None:
|
|
|
+ r1['alert_date_1'] = '無'
|
|
|
+
|
|
|
html += "<tr><td>" + str(idx) + "</td><td>" + r1['lv1'] + "</td><td>" + r1['lv2'] + "</td><td>" + r1['execute_man'] + "</td><td>" + r1['is_complete'] + "</td><td>" + r1['complete_man'] + "</td><td>" + r1['note'] + "</td><td>" + str(r1['set_date']) + "</td><td>" + str(r1['alert_date_1']) + "</td></tr>"
|
|
|
|
|
|
idx += 1
|
|
|
+
|
|
|
+ html += "</table>"
|
|
|
else:
|
|
|
print ('修改後狀態: ' + is_close + ',不需通知')
|
|
|
return
|