diff --git a/src/main/resources/mybatisMapper/EquipMapper.xml b/src/main/resources/mybatisMapper/EquipMapper.xml index 50881d1f..02080c29 100644 --- a/src/main/resources/mybatisMapper/EquipMapper.xml +++ b/src/main/resources/mybatisMapper/EquipMapper.xml @@ -17,6 +17,7 @@ cnt_pyeongtaek+ cnt_taean+ cnt_boryeong+ + cnt_seotd+ cnt_west+ cnt_mokpo+ cnt_buan+ @@ -29,6 +30,7 @@ cnt_changwon+ cnt_tongyong+ cnt_sacheon+ + cnt_jungtd+ cnt_east+ cnt_sokcho+ cnt_donghe+ @@ -43,6 +45,7 @@ sum(cnt_pyeongtaek) as cnt_pyeongtaek, sum(cnt_taean) as cnt_taean, sum(cnt_boryeong) as cnt_boryeong, + sum(cnt_seotd) as cnt_seotd, sum(cnt_west) as cnt_west, sum(cnt_mokpo) as cnt_mokpo, sum(cnt_buan) as cnt_buan, @@ -55,6 +58,7 @@ sum(cnt_changwon) as cnt_changwon, sum(cnt_tongyong) as cnt_tongyong, sum(cnt_sacheon) as cnt_sacheon, + sum(cnt_jungtd) as cnt_jungtd, sum(cnt_east) as cnt_east, sum(cnt_sokcho) as cnt_sokcho, sum(cnt_donghe) as cnt_donghe, @@ -171,7 +175,15 @@ case when b.mgt_organ = 'OG026' then b.item_qty else 0 - end as cnt_seoguipo + end as cnt_seoguipo, + case + when b.mgt_organ = 'OG027' then b.item_qty + else 0 + end as cnt_seotd, + case + when b.mgt_organ = 'OG028' then b.item_qty + else 0 + end as cnt_jungtd from (select category_cd, item_cd, item_value diff --git a/src/main/resources/static/css/common.css b/src/main/resources/static/css/common.css index 1b428011..4f83a0bc 100644 --- a/src/main/resources/static/css/common.css +++ b/src/main/resources/static/css/common.css @@ -84,6 +84,9 @@ .pl-15{ padding-left: 15%; } +.pl-23{ + padding-left: 23%; +} .display-none{ display:none } \ No newline at end of file diff --git a/src/main/resources/static/js/equip/equip.js b/src/main/resources/static/js/equip/equip.js index 6795c905..36c30aff 100644 --- a/src/main/resources/static/js/equip/equip.js +++ b/src/main/resources/static/js/equip/equip.js @@ -1,5 +1,4 @@ - $(document).ready(function(){ $(".table_id").each(function(){ var rows = $(".table_id:contains('"+$(this).text()+"')"); @@ -12,8 +11,6 @@ $(document).ready(function(){ }); - - $(document).on('click', '#addEquip', function (){ $.ajax({ url: '/equip/equipEditModal', @@ -120,7 +117,7 @@ function showUpdateModal(equKey){ type: 'GET', dataType:"html", success: function(html){ - $("#configEqu").empty().append(html) + $("#equipEditModalContent").empty().append(html) $("#equipModifyModal").modal('show'); $(".mStoredYear").datepicker({ minViewMode: 'years', @@ -136,6 +133,7 @@ function showUpdateModal(equKey){ $(document).on('click', '#addImgBtn', function (){ $("#imgUpload").remove(); + $("#addImgBtn").hide(); $("#imgUpdate").show(); }) @@ -144,6 +142,7 @@ function deleteImg(equKey,versionNo){ $('#equipModifyForm').append('', ''); $("#imgUpload").remove(); + $("#deleteImgBtn").hide(); $("#imgUpdate").show(); } diff --git a/src/main/resources/templates/equip/cellPhoneEditModal.html b/src/main/resources/templates/equip/cellPhoneEditModal.html index d9f1bc62..729d936f 100644 --- a/src/main/resources/templates/equip/cellPhoneEditModal.html +++ b/src/main/resources/templates/equip/cellPhoneEditModal.html @@ -85,22 +85,16 @@