parent
99ce52a7b5
commit
c351f4063a
|
|
@ -40,7 +40,6 @@ public class TranslatorController {
|
|||
Translator translator,
|
||||
HttpServletResponse response) {
|
||||
ModelAndView mav = new ModelAndView("translator/translator");
|
||||
translator.setDownOrganCdList(loginUser.getDownOrganCdList());
|
||||
//엑셀다운
|
||||
if(translator.getExcel() != null && translator.getExcel().equals("Y")){
|
||||
String[] headers = { "translator_key", "ogdp1", "tr_lang", "tr_career", "tr_name", "tr_age", "tr_nny", "tr_edu", "tr_cft", "dml_yn", "apt_dt", "tr_phone"};
|
||||
|
|
@ -59,7 +58,11 @@ public class TranslatorController {
|
|||
}
|
||||
//메뉴권한 확인
|
||||
String accessAuth = authMgtService.selectAccessConfigList(loginUser.getUserSeq(), "/translator/info").get(0).getAccessAuth();
|
||||
|
||||
|
||||
translator.setDownOrganCdList(loginUser.getDownOrganCdList());
|
||||
translator.setWrtOrgan(loginUser.getOgCd());
|
||||
translator.setAccessAuth(accessAuth);
|
||||
|
||||
mav.addObject("mgtOrganList", loginUser.getDownOrganCdList());
|
||||
mav.addObject("userOrgan", loginUser.getOgCd());
|
||||
mav.addObject("accessAuth", accessAuth);
|
||||
|
|
|
|||
|
|
@ -6,11 +6,7 @@
|
|||
<mapper namespace="com.dbnt.faisp.main.translator.mapper.TranslatorMapper">
|
||||
<sql id="selectTranslatorListWhere">
|
||||
<where>
|
||||
ogdp1 in
|
||||
<foreach collection="downOrganCdList" item="item" index="index" separator="," open="(" close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
and status <> 'DST008'
|
||||
status <> 'DST008'
|
||||
<if test='trLang != null and trLang != ""'>
|
||||
and tr_lang = #{trLang}
|
||||
</if>
|
||||
|
|
@ -35,6 +31,18 @@
|
|||
<if test='dmlYn != null and dmlYn != ""'>
|
||||
and dml_yn = #{dmlYn}
|
||||
</if>
|
||||
<if test='accessAuth == "ACC003"'>
|
||||
and ogdp1 in <foreach collection="downOrganCdList" item="item" separator="," open="(" close=")">#{item}</foreach>
|
||||
</if>
|
||||
<if test='accessAuth != "ACC003"'>
|
||||
and (
|
||||
info_share_chk = 'T'
|
||||
and ogdp1 in <foreach collection="downOrganCdList" item="item" separator="," open="(" close=")">#{item}</foreach>
|
||||
) or (
|
||||
(info_share_chk <> 'T' or info_share_chk is null)
|
||||
and ogdp1 = #{wrtOrgan}
|
||||
)
|
||||
</if>
|
||||
</where>
|
||||
</sql>
|
||||
<select id="selectTranslatorList" resultType="Translator" parameterType="Translator">
|
||||
|
|
|
|||
|
|
@ -146,19 +146,21 @@ $(document).on('click', '#notPoliceTab', function (){
|
|||
location.href = "/police/policeList?userStatus="+userStatus;
|
||||
})
|
||||
|
||||
$(document).on('click', '#outBtn', function (){
|
||||
$(document).on('click', '.outBtn', function (){
|
||||
if($('input:checkbox[name=policeChk]:checked').length < 1){
|
||||
alert("전출대상을 선택해주세요")
|
||||
return false;
|
||||
}
|
||||
const userStatus = $(this).attr('data-usccode');
|
||||
if(confirm("선택한 대상을 전출처리 하시겠습니까?")){
|
||||
const checkArr = [];
|
||||
$('input:checkbox[name=policeChk]:checked').each(function (idx, el){
|
||||
checkArr.push({});
|
||||
const target = $(el);
|
||||
checkArr[idx].userSeq = Number(target.parents('tr').find('.userSeq').val());
|
||||
checkArr[idx].userStatus = "USC006"
|
||||
checkArr[idx].userStatus = userStatus;
|
||||
})
|
||||
|
||||
$.ajax({
|
||||
type : 'POST',
|
||||
url : "/police/policeStatusUpdate",
|
||||
|
|
|
|||
|
|
@ -183,7 +183,8 @@
|
|||
</nav>
|
||||
</div>
|
||||
<div class="col-auto">
|
||||
<button type="button" class="btn btn-success" id="outBtn" th:if="${userStatus eq 'USC003'} and ${accessAuth eq 'ACC003'}">전출</button>
|
||||
<button type="button" class="btn btn-success outBtn" data-usccode="USC006" th:if="${userStatus eq 'USC003'} and ${accessAuth eq 'ACC003'}">전출(前)</button>
|
||||
<button type="button" class="btn btn-success outBtn" data-usccode="USC007" th:if="${userStatus eq 'USC003'} and ${accessAuth eq 'ACC003'}">전출(非)</button>
|
||||
<button type="button" class="btn btn-success" id="inBtn" th:if="${accessAuth eq 'ACC003'} and (${userStatus eq 'USC006'} or ${userStatus eq 'USC007'})">전입</button>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in New Issue