44 lines
1.2 KiB
Java
44 lines
1.2 KiB
Java
package com.tenwa.lease.app.board;
|
|
|
|
import jbo.sys.BOARD_LIST;
|
|
|
|
import com.amarsoft.are.jbo.BizObject;
|
|
import com.amarsoft.are.jbo.BizObjectKey;
|
|
import com.amarsoft.are.jbo.BizObjectManager;
|
|
import com.amarsoft.are.jbo.JBOFactory;
|
|
import com.amarsoft.are.jbo.JBOTransaction;
|
|
import com.tenwa.flow.action.comm.BaseTable;
|
|
|
|
public class BoardTextController extends BaseTable{
|
|
private String boardNo;
|
|
private String boardText;
|
|
|
|
public String getBoardNo() {
|
|
return boardNo;
|
|
}
|
|
|
|
public void setBoardNo(String boardNo) {
|
|
this.boardNo = boardNo;
|
|
}
|
|
|
|
public String getBoardText() {
|
|
return boardText;
|
|
}
|
|
|
|
public void setBoardText(String boardText) {
|
|
this.boardText = boardText;
|
|
}
|
|
|
|
public String saveBoardContext(JBOTransaction tx) throws Exception{
|
|
BizObjectManager boardManager = JBOFactory.getBizObjectManager(BOARD_LIST.CLASS_NAME, tx);
|
|
BizObject board=boardManager.newObject();
|
|
BizObjectKey key=boardManager.getKey();
|
|
key.setAttributeValue("boardno", boardNo);
|
|
board=boardManager.getObject(key);
|
|
board.setAttributeValue("boardtext", boardText.replace("^^", "=").replaceAll("\\|", ","));
|
|
board=this.initTabeUserInfo(board);
|
|
boardManager.saveObject(board);
|
|
return "success";
|
|
}
|
|
}
|