출력 설정 관련 메소드명,변수명 수정

main
이범준 12 months ago
parent 64f8acab4c
commit c63c64d4d1

@ -13,16 +13,16 @@ import cokr.xit.foundation.data.DataObject;
@Mapper("otptStngMapper") @Mapper("otptStngMapper")
public interface OtptStngMapper extends AbstractMapper { public interface OtptStngMapper extends AbstractMapper {
/** ..<br /> /** ..<br />
* @param query * @param query
* @return * @return
*/ */
List<DataObject> selectOtptStngList(OtptStngQuery query); List<DataObject> selectOtptArtclStngList(OtptStngQuery query);
int updateStng(OtptStng update); int updateArtclStng(OtptStng update);
int deleteStng(OtptForm otptForm); int deleteArtclStng(OtptForm otptForm);
int insertStng(OtptStng insert); int insertArtclStng(OtptStng insert);
} }

@ -25,7 +25,7 @@ public class OtptStngBean extends AbstractComponent {
@Resource(name = "otptStngMapper") @Resource(name = "otptStngMapper")
private OtptStngMapper otptStngMapper; private OtptStngMapper otptStngMapper;
public Map<String, Object> getOtptStngMap(OtptStngQuery query){ public Map<String, Object> getOtptArtclStngMap(OtptStngQuery query){
Map<String,Object> otptStngMap = new HashMap<String,Object>(); Map<String,Object> otptStngMap = new HashMap<String,Object>();
PDFFormat pdfFormat = null; PDFFormat pdfFormat = null;
@ -35,7 +35,7 @@ public class OtptStngBean extends AbstractComponent {
break; break;
} }
List<DataObject> otptStngList = otptStngMapper.selectOtptStngList(query); List<DataObject> otptStngList = otptStngMapper.selectOtptArtclStngList(query);
if(otptStngList == null) { if(otptStngList == null) {
otptStngList = new ArrayList<DataObject>(); otptStngList = new ArrayList<DataObject>();
} }
@ -77,7 +77,7 @@ public class OtptStngBean extends AbstractComponent {
if(!updateList.isEmpty()) { if(!updateList.isEmpty()) {
for(OtptStng update : updateList) { for(OtptStng update : updateList) {
update.setModifiedBy(userId); update.setModifiedBy(userId);
int u = otptStngMapper.updateStng(update); int u = otptStngMapper.updateArtclStng(update);
updateKeyList.add(update.getOtptFormId()); updateKeyList.add(update.getOtptFormId());
} }
} }
@ -88,12 +88,12 @@ public class OtptStngBean extends AbstractComponent {
otptForm.setOtptFormIDs(updateKeyList.toArray(new String[updateKeyList.size()])); otptForm.setOtptFormIDs(updateKeyList.toArray(new String[updateKeyList.size()]));
} }
otptForm.setModifiedBy(userId); otptForm.setModifiedBy(userId);
int d = otptStngMapper.deleteStng(otptForm); int d = otptStngMapper.deleteArtclStng(otptForm);
if(!insertList.isEmpty()) { if(!insertList.isEmpty()) {
for(OtptStng insert : insertList) { for(OtptStng insert : insertList) {
insert.setCreatedBy(userId); insert.setCreatedBy(userId);
int i = otptStngMapper.insertStng(insert); int i = otptStngMapper.insertArtclStng(insert);
} }
} }
} catch (Exception e) { } catch (Exception e) {

@ -348,7 +348,7 @@ public class Sprt01ServiceBean extends AbstractServiceBean implements Sprt01Serv
otptStngQuery.setSndngSeCd(sndngSeCd); otptStngQuery.setSndngSeCd(sndngSeCd);
otptStngQuery.setPaperSeCd(paperSeCd); otptStngQuery.setPaperSeCd(paperSeCd);
List<DataObject> otptStng = otptStngMapper.selectOtptStngList(otptStngQuery); List<DataObject> otptStng = otptStngMapper.selectOtptArtclStngList(otptStngQuery);
for(DataObject dataObject : dataObjectList) { for(DataObject dataObject : dataObjectList) {
//페이지생성(건별) //페이지생성(건별)

@ -445,9 +445,9 @@ public class Sprt01Controller extends ApplicationController {
ModelAndView mav = new ModelAndView("jsonView"); ModelAndView mav = new ModelAndView("jsonView");
Map<String,Object> otptStngMap = otptStngBean.getOtptStngMap(otptStngQuery); Map<String,Object> otptArtclStngMap = otptStngBean.getOtptArtclStngMap(otptStngQuery);
mav.addObject("otptStngMap", otptStngMap); mav.addObject("otptArtclStngMap", otptArtclStngMap);
String institute = currentUser().getInstitute(); String institute = currentUser().getInstitute();
String account = currentUser().getAccount(); String account = currentUser().getAccount();

@ -2,8 +2,8 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cokr.xit.fims.sprt.dao.OtptStngMapper"> <mapper namespace="cokr.xit.fims.sprt.dao.OtptStngMapper">
<select id="selectOtptStngList" parameterType="cokr.xit.fims.sprt.OtptStngQuery" resultType="dataobject"> <select id="selectOtptArtclStngList" parameterType="cokr.xit.fims.sprt.OtptStngQuery" resultType="dataobject">
/* 출력 설정 조회(otptStngMapper.selectOtptStngList) */ /* 출력 항목 설정 조회(otptStngMapper.selectOtptArtclStngList) */
SELECT OTPT_FORM_ID SELECT OTPT_FORM_ID
, SGG_CD , SGG_CD
, TASK_SE_CD , TASK_SE_CD
@ -25,10 +25,11 @@ SELECT OTPT_FORM_ID
AND TASK_SE_CD = #{taskSeCd} AND TASK_SE_CD = #{taskSeCd}
AND SNDNG_SE_CD = #{sndngSeCd} AND SNDNG_SE_CD = #{sndngSeCd}
AND PAPER_SE_CD = #{paperSeCd} AND PAPER_SE_CD = #{paperSeCd}
ORDER BY OTPT_ARTCL_ORDR
</select> </select>
<insert id="insertStng" parameterType="cokr.xit.fims.sprt.OtptStng"> <insert id="insertArtclStng" parameterType="cokr.xit.fims.sprt.OtptStng">
/* 출력 설정 등록(otptStngMapper.insertStng) */ /* 출력 설정 등록(otptStngMapper.insertArtclStng) */
<selectKey resultType="string" keyProperty="otptFormId" keyColumn="NEW_ID" order="BEFORE"> <selectKey resultType="string" keyProperty="otptFormId" keyColumn="NEW_ID" order="BEFORE">
SELECT SELECT
LPAD(CAST(IFNULL(MAX(OTPT_FORM_ID) + 1, 1) AS INT), 10, '0') LPAD(CAST(IFNULL(MAX(OTPT_FORM_ID) + 1, 1) AS INT), 10, '0')
@ -79,8 +80,8 @@ INSERT
) )
</insert> </insert>
<update id="updateStng" parameterType="cokr.xit.fims.sprt.OtptStng"> <update id="updateArtclStng" parameterType="cokr.xit.fims.sprt.OtptStng">
/* 출력 설정 수정(otptStngMapper.updateStng) */ /* 출력 설정 수정(otptStngMapper.updateArtclStng) */
UPDATE TB_OTPT_FORM_STNG UPDATE TB_OTPT_FORM_STNG
SET OTPT_ARTCL_NM = #{otptArtclNm} SET OTPT_ARTCL_NM = #{otptArtclNm}
, LEFT_PSTN = #{leftPstn} , LEFT_PSTN = #{leftPstn}
@ -99,8 +100,8 @@ UPDATE TB_OTPT_FORM_STNG
AND USE_YN = 'Y' AND USE_YN = 'Y'
</update> </update>
<update id="deleteStng" parameterType="cokr.xit.fims.sprt.OtptForm"> <update id="deleteArtclStng" parameterType="cokr.xit.fims.sprt.OtptForm">
/* 출력 설정 삭제(otptStngMapper.deleteStng) */ /* 출력 설정 삭제(otptStngMapper.deleteArtclStng) */
UPDATE TB_OTPT_FORM_STNG UPDATE TB_OTPT_FORM_STNG
SET USE_YN = 'N' SET USE_YN = 'N'
, MDFCN_DT = <include refid="utility.now" /> , MDFCN_DT = <include refid="utility.now" />

@ -225,7 +225,7 @@ $(document).ready(function(){
var $P = pageObject["${pageName}"]; var $P = pageObject["${pageName}"];
$P.otptStngMap = {}; $P.otptArtclStngMap = {};
$("#btnSave--${pageName}").attr("disabled","disabled"); $("#btnSave--${pageName}").attr("disabled","disabled");
$("#btnUniqueAdd--${pageName}").attr("disabled","disabled"); $("#btnUniqueAdd--${pageName}").attr("disabled","disabled");
@ -255,14 +255,14 @@ $(document).ready(function(){
$("#frmEdit--${pageName}").find("[name='paperSeCd']").val(query.paperSeCd); $("#frmEdit--${pageName}").find("[name='paperSeCd']").val(query.paperSeCd);
$("#currentOtpt--${pageName}").text(resp.otptStngTitle); $("#currentOtpt--${pageName}").text(resp.otptStngTitle);
$P.otptStngMap = resp.otptStngMap; $P.otptArtclStngMap = resp.otptArtclStngMap;
$P.renderOtptStngGrid("tbodyUnique--${pageName}", $P.renderOtptStngGrid("tbodyUnique--${pageName}",
$P.otptStngMap.unique.prototypeList, $P.otptArtclStngMap.unique.prototypeList,
$P.otptStngMap.unique.dataList); $P.otptArtclStngMap.unique.dataList);
$P.renderOtptStngGrid("tbodyMultiple--${pageName}", $P.renderOtptStngGrid("tbodyMultiple--${pageName}",
$P.otptStngMap.multiple.prototypeList, $P.otptArtclStngMap.multiple.prototypeList,
$P.otptStngMap.multiple.dataList); $P.otptArtclStngMap.multiple.dataList);
} }
}); });
@ -371,7 +371,7 @@ $(document).ready(function(){
$P.choiceOtptArtclNm = () => { $P.choiceOtptArtclNm = () => {
$("#dropdownUniqueAdd--${pageName}").html(""); $("#dropdownUniqueAdd--${pageName}").html("");
var prototypeList = $P.otptStngMap.unique.prototypeList; var prototypeList = $P.otptArtclStngMap.unique.prototypeList;
var existArr = []; var existArr = [];
$("#tbodyUnique--sprt01200-main tr").each(function(){ $("#tbodyUnique--sprt01200-main tr").each(function(){
@ -405,10 +405,10 @@ $(document).ready(function(){
var tbodyId; var tbodyId;
if(otptArtclNm == null || otptArtclNm == ""){ if(otptArtclNm == null || otptArtclNm == ""){
prototypeList = $P.otptStngMap.multiple.prototypeList; prototypeList = $P.otptArtclStngMap.multiple.prototypeList;
tbodyId = "tbodyMultiple--${pageName}"; tbodyId = "tbodyMultiple--${pageName}";
} else { } else {
prototypeList = $P.otptStngMap.unique.prototypeList; prototypeList = $P.otptArtclStngMap.unique.prototypeList;
tbodyId = "tbodyUnique--${pageName}"; tbodyId = "tbodyUnique--${pageName}";
} }
@ -512,7 +512,7 @@ $(document).ready(function(){
var otptArtclNm = $(selectElement).val(); var otptArtclNm = $(selectElement).val();
var tr = $(selectElement).parent().parent()[0]; var tr = $(selectElement).parent().parent()[0];
var prototypeList = $P.otptStngMap.multiple.prototypeList; var prototypeList = $P.otptArtclStngMap.multiple.prototypeList;
$($P.fnGetElement(tr,"componentType")) $($P.fnGetElement(tr,"componentType"))
.val($P.fnGetProto(prototypeList, otptArtclNm, "componentType")); .val($P.fnGetProto(prototypeList, otptArtclNm, "componentType"));

Loading…
Cancel
Save