|
@@ -29,7 +29,7 @@ func ImportXLSX(filename string) []*PlanXLSX {
|
|
|
|
|
|
sheet.ForEachRow(func(row *Row) error {
|
|
|
splited := strings.Split(row.GetCell(1).Value.String(), ".")
|
|
|
- if i >= 20 && len(row.Cells) >= 20 && len(row.Cells)>=20 && !(row.GetCell(2).Value.String() == "" || row.GetCell(2).Value.String() == "ИТОГО") && !(strings.HasPrefix(row.GetCell(1).Value.String(), "Консультации") || strings.HasPrefix(row.GetCell(1).Value.String(), "Государственная")) && len(splited) == 2{
|
|
|
+ if len(row.Cells) >= 20 && len(row.Cells)>=20 && !(row.GetCell(2).Value.String() == "" || row.GetCell(2).Value.String() == "ИТОГО") && !(strings.HasPrefix(row.GetCell(1).Value.String(), "Консультации") || strings.HasPrefix(row.GetCell(1).Value.String(), "Государственная")) && len(splited) == 2{
|
|
|
typerow := TypeRow(IsSubTR)
|
|
|
switch {
|
|
|
case strings.Contains(row.GetCell(2).Value.String(), "цикл"):
|