Revize 08a96776
Přidáno uživatelem Jan Čarnogurský před asi 4 roky(ů)
- ID 08a96776e8986b95d3e45c57669db53c60a4d404
- Rodič 14917d37
src/main/java/vldc/aswi/web/controller/IndexController.java | ||
---|---|---|
3 | 3 |
import org.springframework.beans.factory.annotation.Autowired; |
4 | 4 |
import org.springframework.stereotype.Controller; |
5 | 5 |
import org.springframework.ui.ModelMap; |
6 |
import org.springframework.web.bind.annotation.GetMapping; |
|
7 |
import org.springframework.web.bind.annotation.ModelAttribute; |
|
8 |
import org.springframework.web.bind.annotation.PostMapping; |
|
6 |
import org.springframework.web.bind.annotation.*; |
|
9 | 7 |
import org.springframework.web.servlet.ModelAndView; |
10 |
import vldc.aswi.database.DatabaseInterface; |
|
11 |
import vldc.aswi.domain.Assembly; |
|
12 |
import vldc.aswi.model.table.TableColumn; |
|
13 |
import vldc.aswi.model.table.contingencyTable.ContingencyTableRow; |
|
14 |
import vldc.aswi.model.table.contingencyTable.ContingencyTableRowCell; |
|
15 | 8 |
import vldc.aswi.service.AssemblyManager; |
16 | 9 |
import vldc.aswi.service.SqlQueryManager; |
17 |
import vldc.aswi.utils.Converter; |
|
18 |
|
|
19 |
import javax.sql.DataSource; |
|
20 | 10 |
import javax.validation.Valid; |
21 |
import java.util.ArrayList; |
|
22 |
import java.util.List; |
|
23 |
import java.util.Map; |
|
11 |
|
|
24 | 12 |
|
25 | 13 |
@Controller |
26 | 14 |
public class IndexController { |
... | ... | |
50 | 38 |
return modelAndView; |
51 | 39 |
} |
52 | 40 |
|
41 |
@ResponseBody |
|
42 |
@RequestMapping("/saveOrder") |
|
43 |
public String saveOrder(@RequestBody String data) { |
|
44 |
// seřazený idčka záznamů |
|
45 |
System.out.println(data); |
|
46 |
|
|
47 |
return "Uloženo"; |
|
48 |
} |
|
49 |
|
|
53 | 50 |
} |
Také k dispozici: Unified diff
re #7884 - added frontend drag and drop for assembly