change format of test records table

This commit is contained in:
r0n1n7an 2025-01-17 13:24:50 +08:00
parent 19c6967883
commit 4230e0889a

View File

@ -566,7 +566,7 @@ func (e *EWS) GetUutInfo(cfg cnf.Cfg, logger *log.Logger, host string, addr stri
<td style="color: red; font-weight: bold;">%s</td>
<td style="color: red; font-weight: bold;">%s</td>
<td style="color: red; font-weight: bold;">%s</td>
</tr>%s`, ul.USN, ul.MAC, ul.IPAddr, ul.Relay, ul.Item, ul.Status, ul.Message, ul.MfgSKU, ul.MfgMO, ul.MfgLine, ul.MfgStage, ul.LastChg, "\r\n")
</tr>%s`, ul.USN, ul.MfgSKU, ul.MfgMO, ul.MfgLine, ul.MfgStage, ul.MAC, ul.IPAddr, ul.Relay, ul.Item, ul.Status, ul.Message, ul.LastChg, "\r\n")
} else {
last = last + fmt.Sprintf(`<tr>
<td style="color: blue;">%s</td>
@ -581,7 +581,7 @@ func (e *EWS) GetUutInfo(cfg cnf.Cfg, logger *log.Logger, host string, addr stri
<td style="color: blue;">%s</td>
<td style="color: blue;">%s</td>
<td style="color: blue;">%s</td>
</tr>%s`, ul.USN, ul.MAC, ul.IPAddr, ul.Relay, ul.Item, ul.Status, ul.Message, ul.MfgSKU, ul.MfgMO, ul.MfgLine, ul.MfgStage, ul.LastChg, "\r\n")
</tr>%s`, ul.USN, ul.MfgSKU, ul.MfgMO, ul.MfgLine, ul.MfgStage, ul.MAC, ul.IPAddr, ul.Relay, ul.Item, ul.Status, ul.Message, ul.LastChg, "\r\n")
}
if ul.Model != "" {
@ -674,10 +674,10 @@ func (e *EWS) GetUutInfo(cfg cnf.Cfg, logger *log.Logger, host string, addr stri
<td style="color: red; font-weight: bold;">%s</td>
<td style="color: red; font-weight: bold;">%s</td>
</tr>%s`,
uh.USN, uh.MAC, uh.IPAddr, uh.Relay, uh.Item, uh.Status, uh.Message, uh.MfgSKU, uh.MfgMO, uh.MfgLine, uh.MfgStage, uh.LastChg, "\r\n")
uh.USN, uh.MfgSKU, uh.MfgMO, uh.MfgLine, uh.MfgStage, uh.MAC, uh.IPAddr, uh.Relay, uh.Item, uh.Status, uh.Message, uh.LastChg, "\r\n")
} else {
bkup = bkup + fmt.Sprintf(`<tr><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td><td>%s</td></tr>%s`,
uh.USN, uh.MAC, uh.IPAddr, uh.Relay, uh.Item, uh.Status, uh.Message, uh.MfgSKU, uh.MfgMO, uh.MfgLine, uh.MfgStage, uh.LastChg, "\r\n")
uh.USN, uh.MfgSKU, uh.MfgMO, uh.MfgLine, uh.MfgStage, uh.MAC, uh.IPAddr, uh.Relay, uh.Item, uh.Status, uh.Message, uh.LastChg, "\r\n")
}
}
@ -965,16 +965,16 @@ func (e *EWS) TemplateUutInfo(loc, locTime, misc, last, bkup string) string {
<table>
<tr>
<th>USN</th>
<th>SKU</th>
<th>MO</th>
<th>Line</th>
<th>Stage</th>
<th>MAC</th>
<th>IP Address</th>
<th>Server</th>
<th>Test Item</th>
<th>Status</th>
<th>Message</th>
<th>SKU</th>
<th>MO</th>
<th>Line</th>
<th>Stage</th>
<th>Last Change</th>
</tr>
%s