외사대상목표 권한 점검

master
강석 최 2023-03-15 17:24:36 +09:00
parent 5ea64b14ac
commit b231f439a0
11 changed files with 182 additions and 190 deletions

View File

@ -54,7 +54,6 @@ public class FipTargetController {
@GetMapping("/partInfoList")
public ModelAndView partInfoList(@AuthenticationPrincipal UserInfo loginUser,PartInfo partInfo, HttpServletResponse response) {
ModelAndView mav = new ModelAndView("fipTarget/partInfoList");
partInfo.setDownOrganCdList(loginUser.getDownOrganCdList());
//엑셀다운
if(partInfo.getExcel() != null && partInfo.getExcel().equals("Y")){
ParamMap header = fipTargetService.selectWorkTypeTotal(partInfo);
@ -89,6 +88,11 @@ public class FipTargetController {
//메뉴권한 확인
String accessAuth = authMgtService.selectAccessConfigList(loginUser.getUserSeq(), "/target/partInfoList").get(0).getAccessAuth();
mav.addObject("accessAuth", accessAuth);
if(accessAuth.equals("ACC003")){
partInfo.setDownOrganCdList(loginUser.getDownOrganCdList());
}else{
partInfo.setMgtOrgan(loginUser.getOgCd());
}
partInfo.setQueryInfo();
mav.addObject("total", fipTargetService.selectWorkTypeTotal(partInfo));
mav.addObject("partInfoList", fipTargetService.selectPartInfoList(partInfo));
@ -279,7 +283,6 @@ public class FipTargetController {
public ModelAndView partWorkList(@AuthenticationPrincipal UserInfo loginUser,PartWork partWork, HttpServletResponse response) {
ModelAndView mav = new ModelAndView("fipTarget/partWorkList");
List<CodeMgt> pwtList = codeMgtService.selectCodeMgtList("PWT");
partWork.setDownOrganCdList(loginUser.getDownOrganCdList());
//엑셀다운
if(partWork.getExcel() != null && partWork.getExcel().equals("Y")){
Set<String> headerSet = new LinkedHashSet();
@ -306,8 +309,12 @@ public class FipTargetController {
//메뉴권한 확인
String accessAuth = authMgtService.selectAccessConfigList(loginUser.getUserSeq(), "/target/partWorkList").get(0).getAccessAuth();
mav.addObject("accessAuth", accessAuth);
mav.addObject("pwtList", pwtList);
partWork.setQueryInfo();
if(accessAuth.equals("ACC003")){
partWork.setDownOrganCdList(loginUser.getDownOrganCdList());
}else{
partWork.setWrtOrgan(loginUser.getOgCd());
}
mav.addObject("partWorkList", fipTargetService.selectPartWorkList(partWork));
partWork.setContentCnt(fipTargetService.selectPartWorkListCnt(partWork));
partWork.setPaginationInfo();
@ -324,7 +331,6 @@ public class FipTargetController {
String accessAuth = authMgtService.selectAccessConfigList(loginUser.getUserSeq(), "/target/partWorkList").get(0).getAccessAuth();
mav.addObject("accessAuth", accessAuth);
mav.addObject("tnList", fipTargetService.selectTerminalName(partWork));
mav.addObject("pwtList", codeMgtService.selectCodeMgtList("PWT"));
return mav;
}
@ -351,7 +357,6 @@ public class FipTargetController {
//메뉴권한 확인
String accessAuth = authMgtService.selectAccessConfigList(loginUser.getUserSeq(), "/target/partInfoList").get(0).getAccessAuth();
mav.addObject("accessAuth", accessAuth);
mav.addObject("pwtList", codeMgtService.selectCodeMgtList("PWT"));
mav.addObject("tnList", fipTargetService.selectTerminalName(partWork));
mav.addObject("userId", loginUser.getUserId());
return mav;
@ -406,7 +411,7 @@ public class FipTargetController {
@GetMapping("/vulnerableList")
public ModelAndView vulnerableList(@AuthenticationPrincipal UserInfo loginUser,Vulnerable vulnerable, HttpServletResponse response) {
ModelAndView mav = new ModelAndView("fipTarget/vulnerableList");
vulnerable.setDownOrganCdList(loginUser.getDownOrganCdList());
mav.addObject("vulnerableList", fipTargetService.selectVulnerableList(vulnerable));
//메뉴권한 확인
String accessAuth = authMgtService.selectAccessConfigList(loginUser.getUserSeq(), "/target/vulnerableList").get(0).getAccessAuth();
@ -538,6 +543,11 @@ public class FipTargetController {
String accessAuth = authMgtService.selectAccessConfigList(loginUser.getUserSeq(), "/target/ipShipList?siType="+shipInfo.getSiType()).get(0).getAccessAuth();
mav.addObject("accessAuth", accessAuth);
shipInfo.setQueryInfo();
if(accessAuth.equals("ACC003")){
shipInfo.setDownOrganCdList(loginUser.getDownOrganCdList());
}else{
shipInfo.setWrtOrgan(loginUser.getOgCd());
}
mav.addObject("shipInfoList", fipTargetService.selectShipInfoList(shipInfo));
shipInfo.setContentCnt(fipTargetService.selectShipInfoListCnt(shipInfo));
shipInfo.setPaginationInfo();

View File

@ -68,6 +68,8 @@ public class PartWork extends BaseModel implements Serializable{
@Transient
private String terminalNm;
@Transient
private String terminalStatus;
@Transient
private Integer fileCnt;
@Transient

View File

@ -4,7 +4,36 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.dbnt.faisp.main.fipTarget.mapper.FipTargetMapper">
<sql id="selectPartInfoListWhere">
and pi_state in ('DST001', 'DST007')
<if test='piState != null and piState != ""'>
and pi_state = #{piState}
</if>
<if test="downOrganCdList != null">
and mgt_organ in
<foreach collection="downOrganCdList" item="item" index="index" separator="," open="(" close=")">
#{item}
</foreach>
</if>
<if test='mgtOrgan != null and mgtOrgan != ""'>
and mgt_organ = #{mgtOrgan}
</if>
<if test='landPolice != null and landPolice != ""'>
and land_police LIKE CONCAT('%', #{landPolice}, '%')
</if>
<if test='mpWorkType != null and mpWorkType != ""'>
and mp_work_type = #{mpWorkType}
</if>
<if test='plWorkType != null and plWorkType != ""'>
and pl_work_type = #{plWorkType}
</if>
<if test='terminalNm != null and terminalNm != ""'>
and terminal_nm LIKE CONCAT('%', #{terminalNm}, '%')
</if>
<if test='startDate != null and startDate != ""'>
and to_char(wrt_dt, 'YYYY-MM-DD') = #{startDate}
</if>
</sql>
<select id="selectPartInfoList" resultType="PartInfo" parameterType="PartInfo">
select pi.pi_seq,
version_no,
@ -30,34 +59,10 @@
from part_info group by pi_seq) b
where pi.pi_seq = b.pi_seq
and pi.version_no = b.lastVer
<if test='piState != null and piState != ""'>
and pi_state = #{piState}
</if>
and mgt_organ in
<foreach collection="downOrganCdList" item="item" index="index" separator="," open="(" close=")">
#{item}
</foreach>
<if test='mgtOrgan != null and mgtOrgan != ""'>
and mgt_organ = #{mgtOrgan}
</if>
<if test='landPolice != null and landPolice != ""'>
and land_police LIKE CONCAT('%', #{landPolice}, '%')
</if>
<if test='mpWorkType != null and mpWorkType != ""'>
and mp_work_type = #{mpWorkType}
</if>
<if test='plWorkType != null and plWorkType != ""'>
and pl_work_type = #{plWorkType}
</if>
<if test='terminalNm != null and terminalNm != ""'>
and terminal_nm LIKE CONCAT('%', #{terminalNm}, '%')
</if>
<if test='startDate != null and startDate != ""'>
and to_char(wrt_dt, 'YYYY-MM-DD') = #{startDate}
</if>
order by pi_seq desc
<if test='excel != "Y"'>
limit #{rowCnt} offset #{firstIndex}
<include refid="selectPartInfoListWhere"></include>
order by pi_seq desc
<if test='excel != "Y"'>
limit #{rowCnt} offset #{firstIndex}
</if>
</select>
@ -85,30 +90,9 @@
(select pi_seq,max(version_no) as lastVer
from part_info group by pi_seq) b
where pi.pi_seq = b.pi_seq
and pi.version_no = b.lastVer
and mgt_organ in
<foreach collection="downOrganCdList" item="item" index="index" separator="," open="(" close=")">
#{item}
</foreach>
<if test='mgtOrgan != null and mgtOrgan != ""'>
and mgt_organ = #{mgtOrgan}
</if>
<if test='landPolice != null and landPolice != ""'>
and land_police LIKE CONCAT('%', #{landPolice}, '%')
</if>
<if test='mpWorkType != null and mpWorkType != ""'>
and mp_work_type = #{mpWorkType}
</if>
<if test='plWorkType != null and plWorkType != ""'>
and pl_work_type = #{plWorkType}
</if>
<if test='terminalNm != null and terminalNm != ""'>
and terminal_nm LIKE CONCAT('%', #{terminalNm}, '%')
</if>
<if test='startDate != null and startDate != ""'>
and to_char(wrt_dt, 'YYYY-MM-DD') = #{startDate}
</if>
order by wrt_dt desc
and pi.version_no = b.lastVer
<include refid="selectPartInfoListWhere"></include>
order by wrt_dt desc
) a
</select>
@ -178,30 +162,9 @@
(select pi_seq,max(version_no) as lastVer
from part_info group by pi_seq) b
where pi.pi_state = 'DST007'
and pi.pi_seq = b.pi_seq
and pi.version_no = b.lastVer
and mgt_organ in
<foreach collection="downOrganCdList" item="item" index="index" separator="," open="(" close=")">
#{item}
</foreach>
<if test='mgtOrgan != null and mgtOrgan != ""'>
and mgt_organ = #{mgtOrgan}
</if>
<if test='landPolice != null and landPolice != ""'>
and land_police LIKE CONCAT('%', #{landPolice}, '%')
</if>
<if test='mpWorkType != null and mpWorkType != ""'>
and mp_work_type = #{mpWorkType}
</if>
<if test='plWorkType != null and plWorkType != ""'>
and pl_work_type = #{plWorkType}
</if>
<if test='terminalNm != null and terminalNm != ""'>
and terminal_nm LIKE CONCAT('%', #{terminalNm}, '%')
</if>
<if test='startDate != null and startDate != ""'>
and to_char(wrt_dt, 'YYYY-MM-DD') = #{startDate}
</if>
and pi.pi_seq = b.pi_seq
and pi.version_no = b.lastVer
<include refid="selectPartInfoListWhere"></include>
group by pi.pi_seq, version_no
) a
</select>
@ -285,11 +248,24 @@
</foreach>
order by terminal_nm asc
</select>
<sql id="selectPartWorkListWhere">
<if test="downOrganCdList != null">
and pi.mgt_organ in
<foreach collection="downOrganCdList" item="item" index="index" separator="," open="(" close=")">
#{item}
</foreach>
</if>
<if test='wrtOrgan != null and wrtOrgan != ""'>
and pi.mgt_organ = #{wrtOrgan}
</if>
</sql>
<select id="selectPartWorkList" resultType="PartWork" parameterType="PartWork">
select pw.pw_seq,
pw.pi_seq ,
pi.terminal_nm,
pi.pi_state as terminalStatus,
(select item_value from code_mgt where item_cd = pw.wrt_title) as wrt_title,
pw.wrt_nm,
pw.wrt_user_seq,
@ -306,14 +282,11 @@
where pw.pi_seq = pi.pi_seq
and pi.pi_seq = b.pi_seq
and pi.version_no = b.lastVer
and pi.mgt_organ in
<foreach collection="downOrganCdList" item="item" index="index" separator="," open="(" close=")">
#{item}
</foreach>
order by pw_seq desc
<if test='excel != "Y"'>
limit #{rowCnt} offset #{firstIndex}
</if>
<include refid="selectPartWorkListWhere"></include>
order by pw.wrt_dt desc
<if test='excel != "Y"'>
limit #{rowCnt} offset #{firstIndex}
</if>
</select>
<select id="selectPartWorkListCnt" resultType="int" parameterType="PartWork">
@ -352,13 +325,10 @@
(select pi_seq,max(version_no) as lastVer
from part_info group by pi_seq) b
where pw.pi_seq = pi.pi_seq
and pi.pi_seq = b.pi_seq
and pi.version_no = b.lastVer
and pi.mgt_organ in
<foreach collection="downOrganCdList" item="item" index="index" separator="," open="(" close=")">
#{item}
</foreach>
order by wrt_dt desc
and pi.pi_seq = b.pi_seq
and pi.version_no = b.lastVer
<include refid="selectPartWorkListWhere"></include>
order by pw.wrt_dt desc
) a
</select>
@ -402,7 +372,7 @@
</select>
<select id="selectVulnerableList" resultType="com.dbnt.faisp.util.ParamMap" parameterType="Vulnerable">
select gubun,
select gubun,
parent_organ,
item_cd,
item_value,
@ -439,6 +409,14 @@
) a left outer join board_vuln bv
on a.item_cd = bv.mgt_organ
) a
<where>
<if test="downOrganCdList != null">
and a.item_cd in
<foreach collection="downOrganCdList" item="organCd" separator="," open="(" close=")">
#{organCd}
</foreach>
</if>
</where>
group by gubun,parent_organ,item_cd,item_value
order by parent_organ
</select>
@ -479,7 +457,44 @@
from board_vuln
where vuln_key = #{vulnKey}
</select>
<sql id="selectShipInfoListWhere">
and si.si_type = #{siType}
<if test='startPoint != null and startPoint != ""'>
and start_point like '%'||#{startPoint}||'%'
</if>
<if test='endPoint != null and endPoint != ""'>
and end_point like '%'||#{endPoint}||'%'
</if>
<if test='distanceNm != null and distanceNm != ""'>
and distance_nm like '%'||#{distanceNm}||'%'
</if>
<if test='ownerNm != null and ownerNm != ""'>
and owner_nm like '%'||#{ownerNm}||'%'
</if>
<if test='shipNm != null and shipNm != ""'>
and ship_nm like '%'||#{shipNm}||'%'
</if>
<if test='operationCnt != null and operationCnt != ""'>
and operation_cnt like '%'||#{operationCnt}||'%'
</if>
<if test='startDate != null and startDate != ""'>
and wrt_dt >= #{startDate}::date
</if>
<if test='endDate != null and endDate != ""'>
and wrt_dt &lt;= #{endDate}::date
</if>
<if test='wrtOrgan != null and wrtOrgan != ""'>
and wrt_organ = #{wrtOrgan}
</if>
<if test="downOrganCdList != null">
and wrt_organ in
<foreach collection="downOrganCdList" item="organCd" separator="," open="(" close=")">
#{organCd}
</foreach>
</if>
</sql>
<select id="selectShipInfoList" resultType="ShipInfo" parameterType="ShipInfo">
select si.si_seq,
version_no,
@ -502,7 +517,7 @@
where si.si_seq = b.si_seq
and si.si_type = b.si_type
and si.version_no = b.lastVer
and si.si_type = #{siType}
<include refid="selectShipInfoListWhere"></include>
order by si.si_seq desc
limit #{rowCnt} offset #{firstIndex}
</select>
@ -530,7 +545,7 @@
from ship_info group by si_seq) b
where si.si_seq = b.si_seq
and si.version_no = b.lastVer
and si.si_type = #{siType}
<include refid="selectShipInfoListWhere"></include>
order by si.si_seq desc
) a
</select>

View File

@ -69,12 +69,10 @@ $(document).on('change', '#mgtOrgan', function (){
});
$(document).on('click', '#viewTab', function (){
$(this).parents(".modal-dialog")[0].className = "modal-dialog modal-lg modal-dialog-scrollable";
showModal($("#piSeq").val());
})
$(document).on('click', '#historyTab', function (){
$(this).parents(".modal-dialog")[0].className = "modal-dialog modal-xl modal-dialog-scrollable";
showHistory($("#piSeq").val());
})
@ -344,8 +342,7 @@ function updatePartInfo(piState){
contentType: false,
success : function(result) {
alert("수정되었습니다.");
contentFade("out");
showModal(result);
location.reload();
},
error : function(xhr, status) {
alert("수정에 실패하였습니다.")
@ -428,13 +425,5 @@ $(document).on('click', '.fileDownPartInfo', function (){
window.open(encodeURI(url));
})
$(document).on('click', '.btn-close', function (){
location.reload();
})
$(document).on('click', '#btn-close', function (){
location.reload();
})

View File

@ -134,7 +134,7 @@ $(document).on('click', '#updateBtn', function (){
success : function(data) {
alert("수정되었습니다.");
contentFade("out");
showModal(data.pwSeq,data.piSeq);
location.reload();
},
error : function(xhr, status) {
alert("수정에 실패하였습니다.")
@ -186,12 +186,4 @@ $(document).on('click', '#goExcel', function (){
}else{
false;
}
})
$(document).on('click', '.btn-close', function (){
location.reload();
})
$(document).on('click', '#btn-close', function (){
location.reload();
})

View File

@ -48,27 +48,27 @@
<div class="col-11">
<div class="row justify-content-end pb-1">
<div class="col-2">
<input type="text" class="form-control form-control-sm" placeholder="출발지">
<input type="text" class="form-control form-control-sm" name="startPoint" th:value="${searchParams.startPoint}" placeholder="출발지">
</div>
<div class="col-2">
<input type="text" class="form-control form-control-sm" placeholder="도착지">
<input type="text" class="form-control form-control-sm" name="endPoint" th:value="${searchParams.endPoint}" placeholder="도착지">
</div>
<div class="col-2">
<input type="text" class="form-control form-control-sm" placeholder="거리(해리)">
<input type="text" class="form-control form-control-sm" name="distanceNm" th:value="${searchParams.distanceNm}" placeholder="거리(해리)">
</div>
<div class="col-2">
<input type="text" class="form-control form-control-sm" placeholder="거리(km)">
<input type="text" class="form-control form-control-sm" name="distanceKm" th:value="${searchParams.distanceKm}" placeholder="거리(km)">
</div>
</div>
<div class="row justify-content-end">
<div class="col-2">
<input type="text" class="form-control form-control-sm" placeholder="사업자">
<input type="text" class="form-control form-control-sm" name="ownerNm" th:value="${searchParams.ownerNm}" placeholder="사업자">
</div>
<div class="col-2">
<input type="text" class="form-control form-control-sm" placeholder="선명">
<input type="text" class="form-control form-control-sm" name="shipNm" th:value="${searchParams.shipNm}" placeholder="선명">
</div>
<div class="col-2">
<input type="text" class="form-control form-control-sm" placeholder="운항횟수">
<input type="text" class="form-control form-control-sm" name="operationCnt" th:value="${searchParams.operationCnt}" placeholder="운항횟수">
</div>
<div class="col-4">
<div class="input-group w-auto input-daterange" id="dateSelectorDiv">

View File

@ -129,50 +129,29 @@
</thead>
<tbody class="table-group-divider">
<tr class="partInfoTr" th:each="pi,cnt:${partInfoList}">
<th:block th:if="${pi.piState eq 'DST001'} and ${pi.wrtUserSeq eq loginUser}">
<th:block>
<input type="hidden" class="piSeq" th:value="${pi.piSeq}">
<input type="hidden" class="verNo" th:value="${pi.versionNo}">
</th:block>
<td th:text="${cnt.count}"></td>
<td th:text="${pi.mgtOrgan}"></td>
<td th:text="${pi.landPolice}"></td>
<td style="color : red;" th:text="|[임시저장] ${pi.terminalNm}|"></td>
<td th:text="${pi.piManagerName}"></td>
<td th:text="${pi.mpWorkType}"></td>
<td th:text="|${pi.mpPeopleCnt eq null?0:pi.mpPeopleCnt}명|"></td>
<td th:text="${pi.mpDescription}"></td>
<td th:text="${pi.plWorkType}"></td>
<td th:text="|${pi.plPeopleCnt eq null?0:pi.plPeopleCnt}명|"></td>
<td th:text="${pi.plDescription}"></td>
<td th:if="${pi.rentType eq 'Y'}" th:text="|${pi.rentPrice}만/年|"></td>
<td th:unless="${pi.rentType eq 'Y'}">무상</td>
<td th:if="${pi.utilityType eq 'Y'}" th:text="|${pi.utilityPrice}만/年|"></td>
<td th:unless="${pi.utilityType eq 'Y'}">무상</td>
<td th:text="${#temporals.format(pi.wrtDt, 'yyyy-MM-dd')}"></td>
<input type="hidden" class="piSeq" th:value="${pi.piSeq}">
<input type="hidden" class="verNo" th:value="${pi.versionNo}">
<td th:text="${cnt.count}"></td>
<td th:text="${pi.mgtOrgan}"></td>
<td th:text="${pi.landPolice}"></td>
<th:block th:if="${pi.piState eq 'DST001'} and ${pi.wrtUserSeq eq loginUser}">
<td style="color : red;" th:text="|[임시저장] ${pi.terminalNm}|"></td>
</th:block>
<th:block th:if="${pi.piState eq 'DST007'}">
<th:block>
<input type="hidden" class="piSeq" th:value="${pi.piSeq}">
<input type="hidden" class="verNo" th:value="${pi.versionNo}">
</th:block>
<td th:text="${cnt.count}"></td>
<td th:text="${pi.mgtOrgan}"></td>
<td th:text="${pi.landPolice}"></td>
<td th:text="${pi.terminalNm}"></td>
<td th:text="${pi.piManagerName}"></td>
<td th:text="${pi.mpWorkType}"></td>
<td th:text="|${pi.mpPeopleCnt eq null?0:pi.mpPeopleCnt}명|"></td>
<td th:text="${pi.mpDescription}"></td>
<td th:text="${pi.plWorkType}"></td>
<td th:text="|${pi.plPeopleCnt eq null?0:pi.plPeopleCnt}명|"></td>
<td th:text="${pi.plDescription}"></td>
<td th:if="${pi.rentType eq 'Y'}" th:text="|${pi.rentPrice}만/年|"></td>
<td th:unless="${pi.rentType eq 'Y'}">무상</td>
<td th:if="${pi.utilityType eq 'Y'}" th:text="|${pi.utilityPrice}만/年|"></td>
<td th:unless="${pi.utilityType eq 'Y'}">무상</td>
<td th:text="${#temporals.format(pi.wrtDt, 'yyyy-MM-dd')}"></td>
<td th:text="${pi.terminalNm}"></td>
</th:block>
<td th:text="${pi.piManagerName}"></td>
<td th:text="${pi.mpWorkType}"></td>
<td th:text="|${pi.mpPeopleCnt eq null?0:pi.mpPeopleCnt}명|"></td>
<td th:text="${pi.mpDescription}"></td>
<td th:text="${pi.plWorkType}"></td>
<td th:text="|${pi.plPeopleCnt eq null?0:pi.plPeopleCnt}명|"></td>
<td th:text="${pi.plDescription}"></td>
<td th:if="${pi.rentType eq 'Y'}" th:text="|${pi.rentPrice}만/年|"></td>
<td th:unless="${pi.rentType eq 'Y'}">무상</td>
<td th:if="${pi.utilityType eq 'Y'}" th:text="|${pi.utilityPrice}만/年|"></td>
<td th:unless="${pi.utilityType eq 'Y'}">무상</td>
<td th:text="${#temporals.format(pi.wrtDt, 'yyyy-MM-dd')}"></td>
</tr>
</tbody>
<tfoot class="table-group-divider">
@ -180,6 +159,7 @@
<th></th>
<th></th>
<th></th>
<th></th>
<th:block th:if="${not #strings.isEmpty(total)}">
<th th:text="|상주 ${total.mp_sangju}개소 ${total.mp_sangju_total}명|"></th>
<th th:text="|비상주 ${total.mp_bsangju}개소|"></th>
@ -188,7 +168,6 @@
<th th:text="|상주 ${total.pl_sangju}개소 ${total.pl_sangju_total}명|"></th>
<th th:text="|비상주 ${total.pl_bsangju}개소|"></th>
<th th:text="|폐쇄 ${total.pl_closure}개소|"></th>
<th></th>
</th:block>
<th:block th:unless="${not #strings.isEmpty(total)}">
<th>상주 0개소 0명</th>
@ -198,7 +177,6 @@
<th>상주 0개소 0명</th>
<th>비상주 0개소</th>
<th>폐쇄 0개소</th>
<th></th>
</th:block>
<th></th>
<th></th>

View File

@ -39,7 +39,7 @@
</select>
</div>
<div class="col-sm-2">
<input type="number" class="form-control form-control-sm" id="mRentPrice" name="rentPrice" placeholder="단위: 만" th:value="${partInfo.rentPrice}">
<input type="number" class="form-control form-control-sm" id="mRentPrice" name="rentPrice" placeholder="단위: 만/年" th:value="${partInfo.rentPrice}">
</div>
<label for="utilityType" class="col-sm-2 col-form-label col-form-label-sm text-center">공공요금</label>
<div class="col-sm-2">
@ -50,7 +50,7 @@
</select>
</div>
<div class="col-sm-2">
<input type="number" class="form-control form-control-sm" id="mUtilityPrice" name="utilityPrice" placeholder="단위: 만" th:value="${partInfo.utilityPrice}">
<input type="number" class="form-control form-control-sm" id="mUtilityPrice" name="utilityPrice" placeholder="단위: 만/年" th:value="${partInfo.utilityPrice}">
</div>
</div>
</div>
@ -70,9 +70,9 @@
</th:block>
</select>
</div>
<label for="piUserSeq" class="col-sm-2 col-form-label col-form-label-sm text-center">담당자</label>
<label for="mPiUserSeq" class="col-sm-2 col-form-label col-form-label-sm text-center">담당자</label>
<div class="col-sm-2">
<select class="form-select form-select-sm" id="mPiUserSeq" name="piUserSeq" th:disabled="${accessAuth ne 'ACC003'}">
<select class="form-select form-select-sm" id="mPiUserSeq" name="piUserSeq">
<option value="">선택</option>
<th:block th:each="info:${managerList}">
<option th:value="${info.user_seq}" th:text="|${info.title_cd} ${info.user_nm}|" th:selected="${info.user_seq eq partInfo.piUserSeq}"></option>
@ -154,14 +154,16 @@
</form>
</div>
</div>
<th:block th:if="${accessAuth eq 'ACC003' or (wrtUserSeq eq userSeq and accessAuth eq 'ACC002')}">
<div class="modal-footer justify-content-between bg-light">
<div class="col-auto">
<!-- <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button>-->
<button type="button" class="btn btn-danger" id="deletePartInfo" th:if="${accessAuth eq 'ACC003'} or ${wrtUserSeq eq userSeq}">삭제</button>
<!-- <button type="button" class="btn btn-secondary" data-bs-dismiss="modal">닫기</button>-->
<!--<button type="button" class="btn btn-danger" id="deletePartInfo">삭제</button>-->
</div>
<div class="col-auto">
<button type="button" class="btn btn-warning" id="mSaveTempBtn" th:if="${wrtUserSeq eq userSeq}">임시저장</button>
<button type="button" class="btn btn-warning" id="updatePartInfo" th:if="${accessAuth eq 'ACC003'} or ${wrtUserSeq eq userSeq}">수정</button>
<button type="button" class="btn btn-warning" id="mSaveTempBtn">임시저장</button>
<button type="button" class="btn btn-warning" id="updatePartInfo">수정</button>
</div>
</div>
</th:block>
</html>

View File

@ -37,9 +37,11 @@
<div class="row mb-1 justify-content-center">
<label class="col-sm-2 col-form-label col-form-label-sm text-center">종류</label>
<div class="col-sm-10">
<th:block th:each="code:${pwtList}">
<input type="radio" th:id="|workType${code.itemCd}|" name="workType" th:value="${code.itemCd}">
<label th:for="|workType${code.itemCd}|" class="col-form-label bg-white" th:text="${code.itemValue}"></label>
<th:block th:each="code:${session.commonCode.get('PWT')}">
<th:block th:if="${code.useChk eq 'T'}">
<input type="radio" th:id="|workType${code.itemCd}|" name="workType" th:value="${code.itemCd}">
<label th:for="|workType${code.itemCd}|" class="col-form-label bg-white" th:text="${code.itemValue}"></label>
</th:block>
</th:block>
</div>
</div>

View File

@ -86,11 +86,11 @@
<td th:text="${#strings.concat('[임시]', pw.terminalNm)}"></td>
</th:block>
<th:block th:unless="${pw.saveYn eq 'N'} and ${pw.wrtUserSeq eq uesrSeq}">
<td th:text="${pw.terminalNm}"></td>
<td th:text="|${pw.terminalNm}|"></td>
</th:block>
<td th:text="|${pw.wrtTitle} ${pw.wrtNm}|"></td>
<td th:text="${pw.workDt}"></td>
<th:block th:each="code:${pwtList}">
<th:block th:each="code:${session.commonCode.get('PWT')}">
<td>
<th:block th:text="${pw.workType eq code.itemCd?'O':''}"></th:block>
</td>

View File

@ -39,9 +39,11 @@
<div class="row mb-1 justify-content-center">
<label class="col-sm-2 col-form-label col-form-label-sm text-center">종류</label>
<div class="col-sm-10 ">
<th:block th:each="code:${pwtList}">
<input type="radio" th:id="|workType${code.itemCd}|" name="workType" th:value="${code.itemCd}" th:checked="${pwInfo.workType eq code.itemCd}">
<label th:for="|workType${code.itemCd}|" class="col-form-label bg-white" th:text="${code.itemValue}"></label>
<th:block th:each="code:${session.commonCode.get('PWT')}">
<th:block th:if="${code.useChk eq 'T'}">
<input type="radio" th:id="|workType${code.itemCd}|" name="workType" th:value="${code.itemCd}" th:checked="${pwInfo.workType eq code.itemCd}">
<label th:for="|workType${code.itemCd}|" class="col-form-label bg-white" th:text="${code.itemValue}"></label>
</th:block>
</th:block>
</div>
</div>