Skip to content

Instantly share code, notes, and snippets.

@gitbricho
gitbricho / B2:WebAppConfig.java
Created November 10, 2014 01:17
healthcare : com.itrane.healthcare.init.WebAppConfig.java
@Configuration
@EnableWebMvc
@Import({ DbConfig.class })
// データベース設定をインポート
@ComponentScan("com.itrane.healthcare")
@PropertySource("classpath:resources/app.properties")
public class WebAppConfig extends WebMvcConfigurerAdapter {
...
@gitbricho
gitbricho / B1:home.html
Created November 10, 2014 01:24
WEB-INF/views/home/home.html
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:th="http://www.thymeleaf.org">
<head th:include="fragment/frag01 :: htmlhead" th:with="title=#{app.title}"></head>
<style>
.contents {margin: 50px;}
td {padding: 2px;}
th {padding: 5px;}
</style>
@gitbricho
gitbricho / B3:HomeController.java
Created November 14, 2014 01:05
healthcare: com.itrane.healthcare.controller.HomeController
/**
* 起動時のホーム画面表示のリクエストに対するコントローラ. TODO: コマンド版に変更(エラー処理も)
*/
@Controller
public class HomeController {
final static private Logger log = LoggerFactory
.getLogger(HomeController.class);
@Autowired
@gitbricho
gitbricho / B3:VitalCmd.java
Created November 14, 2014 01:09
healthcare: com.itrane.healthcare.command.VitalCmd
/**
* home.html のバイタル入力クラス
*/
public class VitalCmd {
//Vital
@Size(max=20)
private String name;
@Size(max=10)
private String sokuteiJikan;
@gitbricho
gitbricho / B3:HomeCmd.java
Created November 14, 2014 01:11
healthcare: com.itrane.healthcare.command.HomeCmd
/**
* ホームビュー(home.html)用コマンド.
*/
public class HomeCmd implements Serializable {
private static final long serialVersionUID = 1L;
//final private Logger log = LoggerFactory.getLogger(HomeCmd.class);
private Vod vod;
@gitbricho
gitbricho / B3:home.html
Last active August 29, 2015 14:09
healthcare: WEB-INF/views/home/home.html
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:th="http://www.thymeleaf.org">
<head th:include="fragment/frag01 :: htmlhead" th:with="title=#{app.title}"></head>
<style>
.contents {margin: 50px;}
td {padding: 1px;}
th {padding: 4px;}
</style>
@gitbricho
gitbricho / B4:VodListCmd.java
Created November 16, 2014 11:13
healthcare: com.itrane.healthcare.command.VodListCmd
/**
* vod 一覧ビュー(vodlist.html)用コマンド.
*/
public class VodListCmd implements Serializable {
private static final long serialVersionUID = 1L;
private String prev;
private String next;
private List<VitalMst> vms;
@gitbricho
gitbricho / B4:VodListController.java
Last active August 29, 2015 14:09
healthcare: com.itrane.healthcare.controller.VodListController
/**
* バイタルに関する処理をコントロールする.
*/
@Controller
public class VodController {
final static private Logger log = LoggerFactory.getLogger(VodController.class);
final static private int DISP_PERIOD = 7;
final static private String DATE_FORMAT = "yyyy/MM/dd";
@gitbricho
gitbricho / B4:vodList.html
Last active August 29, 2015 14:09
healthcare: WEB-INF/views/vod/vodList.html
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head th:include="fragment/frag01 :: htmlhead" th:with="title=#{app.title}"></head>
<style>
.contents {
margin: 50px;
}
</style>
<script type="text/javascript" src="https://www.google.com/jsapi"></script>
@gitbricho
gitbricho / B5:view.properties
Created November 18, 2014 06:22
healthcare: src/view.properties
pdfView.(class)=com.itrane.healthcare.view.PdfBuilder