|
@@ -329,7 +329,9 @@ func (this *RaiServeCoAntroller) List() {
|
|
|
serveTypeId, _ := this.GetInt("ServeTypeId")
|
|
|
isExport, _ := this.GetBool("IsExport")
|
|
|
resp := new(cygx.CygxRaiServeCompanyListResp)
|
|
|
-
|
|
|
+ if isExport {
|
|
|
+ pageSize = 999
|
|
|
+ }
|
|
|
var startSize int
|
|
|
if pageSize <= 0 {
|
|
|
pageSize = utils.PageSize20
|
|
@@ -509,12 +511,19 @@ func RaiServeListExport(this *RaiServeCoAntroller, resp *cygx.CygxRaiServeCompan
|
|
|
return
|
|
|
}
|
|
|
style := xlsx.NewStyle()
|
|
|
+ border := xlsx.NewBorder("thin", "thin", "thin", "thin")
|
|
|
alignment := xlsx.Alignment{
|
|
|
Horizontal: "center",
|
|
|
Vertical: "center",
|
|
|
WrapText: true,
|
|
|
}
|
|
|
|
|
|
+ redStyle := xlsx.NewStyle()
|
|
|
+ redStyle.Alignment = alignment
|
|
|
+ redStyle.ApplyAlignment = true
|
|
|
+ redStyle.Font.Color = "ff0000"
|
|
|
+ redStyle.Border = *border
|
|
|
+
|
|
|
style.Alignment = alignment
|
|
|
style.ApplyAlignment = true
|
|
|
|
|
@@ -590,7 +599,11 @@ func RaiServeListExport(this *RaiServeCoAntroller, resp *cygx.CygxRaiServeCompan
|
|
|
dataRow.SetHeight(20)
|
|
|
|
|
|
cellA := dataRow.AddCell()
|
|
|
- cellA.SetStyle(style)
|
|
|
+ if v.IsRed {
|
|
|
+ cellA.SetStyle(redStyle)
|
|
|
+ } else {
|
|
|
+ cellA.SetStyle(style)
|
|
|
+ }
|
|
|
cellA.SetValue(v.CompanyName)
|
|
|
|
|
|
cellB := dataRow.AddCell()
|