123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLPC01400_사유구분코드등록.xrw
- * 설 명 : 사유구분코드등록 화면
- * 설 계 자 : (주)에이씨케이 - 황상미
- * 작 성 자 : (주)에이씨케이 - 황상미
- * 작 성 일 : 2007.01.15
- * 수정이력 : 2007.02.19 - 유동철
- * 기 타 :
- -->
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>사유구분코드등록</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <resncd>
- <resncdlist>
- <instcd/>
- <baseflagcd/>
- <baseflagnm/>
- <resncd/>
- <resncnts/>
- </resncdlist>
- </resncd>
- <baseflagcd>
- <baseflagcdinfo>
- <instcd/>
- <baseflagcd/>
- <baseflagnm/>
- <delflagcd/>
- <fstrgstdt/>
- <fstrgstrnm/>
- <lastupdtdt/>
- <lastupdtnm/>
- </baseflagcdinfo>
- <baseflagcdlist>
- <instcd/>
- <baseflagcd/>
- <baseflagnm/>
- </baseflagcdlist>
- </baseflagcd>
- <resncd>
- <resncdinfo>
- <instcd/>
- <baseflagcd/>
- <baseflagnm/>
- <resncd/>
- <resncnts/>
- <delflagcd/>
- <fstrgstdt/>
- <fstrgstrnm/>
- <lastupdtdt/>
- <lastupdtrnm/>
- <dispseqno/>
- </resncdinfo>
- </resncd>
- </main>
- <send>
- <data1/>
- </send>
- <init>
- </init>
- <hidden>
- <seaval/>
- <seamthd1/>
- <useyn/>
- <resnstatcd/>
- <flagstatcd/>
- </hidden>
- <message/>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fExeInitialize();
- ]]>
- </script>
- <submission id="TRLPC01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/baseflagcd/baseflagcdlist"/>
- <submission id="TRLPC01402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/baseflagcd/baseflagcdinfo"/>
- <submission id="TRLPC01403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/resncd/resncdlist"/>
- <submission id="TRLPC01404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/resncd/resncdinfo"/>
- <submission id="TXLPC01401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/message"/>
- <submission id="TXLPC01402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/message"/>
- </model>
- <!-- public Script Start -->
- <script type="javascript">
- <![CDATA[
-
- /* @group : 사유구분코드등록 화면
- * @ver : 2007.01.15 (CMCDEV-0001)
- * @by : 황상미(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 화면초기화 함수
- */
- function fExeInitialize(){
-
- model.removeNodeset("/root/main/baseflagcd/baseflagcdlist"); // 구분코드목록 초기화
- model.removeNodeset("/root/main/resnflag/resnflaglist"); // 사유코드목록 초기화
- model.resetInstanceNode("/root/main/baseflagcd/baseflagcdinfo"); // 구분코드 초기화
- model.resetInstanceNode("/root/main/resncd/resncdinfo"); // 사유코드 초기화
-
- model.setValue("/root/hidden/seaval", ""); // 검색값 초기화
- model.setValue("/root/hidden/seamthd1", "0"); // 검색방법1(0:코드, 1:명칭)
- model.setValue("/root/hidden/useyn", "0"); // 사용여부 초기화(0:사용, 1:미사용)
-
- model.setValue("/root/hidden/flagstatcd", "0"); // 구분코드 상태(0:조회, 1:수정, 2:신규)
- model.setValue("/root/hidden/resnstatcd", "0"); // 사유코드 상태(0:조회, 1:수정, 2:신규)
-
- model.setValue("/root/hidden/flagstatcd", "0"); // 구분코드 상태코드(0:사용, 1:미사용)
- model.setValue("/root/hidden/resnstatcd", "0"); // 사유코드 상태코드(0:사용, 1:미사용)
-
- fExeControlChng("Flag", "false");
- fExeControlChng("Resn", "false");
-
- btn_flagcd.selected = true;
- model.toggle("case_baseflagcd");
- model.refresh();
- }
-
- /* @group : 사유구분코드등록 화면
- * @ver : 2007.01.15 (CMCDEV-0001)
- * @by : 황상미(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 조회/수정/신규 컨트롤 사용여부 변경 함수
- * wGbn : 작업구분 - Flag(구분코드)/Resn(사유코드) iGbn : 입력구분 - true/false
- */
- function fExeControlChng(wGbn, iGbn){
-
- var vCtrIptArr = new Array();
- var vCtrIptArr = new Array(); //입력 컨트롤
- var vCtrSelArr = new Array(); //선택 컨트롤
- var sGbn = "";
-
- //---------------
- if(iGbn == "true") {
- sGbn = "false";
- }else{
- sGbn = "true";
- }
-
- //----------------
- if(wGbn == "Flag"){
- vCtrIptArr[0] = document.controls("ipt_flagcd"); //구분코드 입력박스
- vCtrIptArr[1] = document.controls("ipt_flagnm"); //구분명칭 입력박스
- vCtrSelArr[0] = document.controls("rdo_delflagcd"); //사유구분 사용여부 선택박스
- }else{
- vCtrIptArr[0] = document.controls("ipt_resncd"); //사유코드 입력박스
- vCtrIptArr[1] = document.controls("tar_resncnts"); //사유내용 입력박스
-
- vCtrSelArr[0] = document.controls("rdo_resndelflagcd"); //사유코드 사용여부 선택박스
- vCtrSelArr[1] = document.controls("cmb_baseflagcd"); //기초구분코드 사용여부 선택박스
- }
-
- for(var idx = 0; idx < vCtrIptArr.length; idx++){
- vCtrIptArr[idx].attribute("editable") = iGbn;
- }
-
- for(var idx = 0; idx < vCtrSelArr.length; idx++){
- vCtrSelArr[idx].disabled = sGbn;
- }
- }
-
- /* @group : 사유구분코드등록 화면
- * @ver : 2007.01.15 (CMCDEV-0001)
- * @by : 황상미(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 구분/사유 조회 함수
- */
- function fExeGetRefData() {
-
- //--------------------------------
- model.removeNodeset("/root/send");
-
- //-----------------
- // 기초구분코드 조회
- if (btn_flagcd.selected == true) {
- model.resetInstanceNode("/root/main/baseflagcd/baseflagcdinfo");
-
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd")); // 기관코드
- model.makeValue("/root/send/refval", model.getValue("/root/hidden/seaval")); // 검색값
- model.makeValue("/root/send/refflag", model.getValue("/root/hidden/seamthd1")); // 검색방법
- model.makeValue("/root/send/delflagcd", model.getValue("/root/hidden/useyn")); // 사용여부
- submit("TRLPC01401");
- } else {
- model.resetInstanceNode("/root/main/resncd/resncdinfo");
-
- //-------------------------------------
- // 구분코드에 해당되는 사유코드목록 조회
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/flagcd", "");
- model.makeValue("/root/send/delflagcd", model.getValue("/root/hidden/useyn"));
- submit("TRLPC01403");
- }
- }
-
- /* @group : 사유구분코드등록 화면
- * @ver : 2007.01.15 (CMCDEV-0001)
- * @by : 황상미(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 조회, 수정, 신규 작업 구분 함수
- * wGbn : 작업구분 - Flag(구분코드)/Resn(사유코드)
- */
- function fExeCdUpdtFlag(wGbn){
-
- var updtGbn = "";
-
- //-----------------------
- // 조회조건(사용여부) 검색
- if (model.getValue("/root/hidden/useyn") == "1") {
-
- if (model.getValue("/root/hidden/flagstatcd") != "0" && btn_flagcd.selected == true) {
- messageBox("검색조건(사용여부)를 사용으로 변경하여 주십시오! 수정/신규 작업을 ", "E001");
- model.setValue("/root/hidden/flagstatcd", "0");
- model.refresh();
- return false;
- }
- if (model.getValue("/root/hidden/resnstatcd") != "0" && btn_resncd.selected == true) {
- messageBox("검색조건(사용여부)를 사용으로 변경하여 주십시오! 수정/신규 작업을 ", "E001");
- model.setValue("/root/hidden/resnstatcd", "0");
- model.refresh();
- return false;
- }
- }
-
- //----------------
- if(wGbn == "Flag"){
- updtGbn = model.getValue("/root/hidden/flagstatcd"); //기본파트 처리부 조회/수정/입력 구분
- }else{
- updtGbn = model.getValue("/root/hidden/resnstatcd"); //세부파트 처리부 조회/수정/입력 구분
- }
-
- //---------------
- if(updtGbn == "0"){
- fExeControlChng(wGbn, "false");
- }else if(updtGbn == "1"){
- fExeControlChng(wGbn, "true");
-
-
- if (wGbn == "Flag") {
- ipt_flagcd.disabled = true;
- } else {
- cmb_baseflagcd.disabled = true;
- ipt_resncd.disabled = true;
- // tar_resncnts.disabled = true;
- }
- }else{
- fExeControlChng(wGbn, "true");
- if(wGbn == "Flag"){
- ipt_flagcd.disabled = false;
- model.resetInstanceNode("/root/main/baseflagcd/baseflagcdinfo"); // 구분코드정보 초기화
- model.makeNode("/root/main/baseflagcd/baseflagcdinfo/instcd");
- model.makeNode("/root/main/baseflagcd/baseflagcdinfo/baseflagcd");
- model.makeNode("/root/main/baseflagcd/baseflagcdinfo/baseflagnm");
- model.makeNode("/root/main/baseflagcd/baseflagcdinfo/delflagcd");
- model.makeNode("/root/main/baseflagcd/baseflagcdinfo/fstrgstdt");
- model.makeNode("/root/main/baseflagcd/baseflagcdinfo/fstrgstrnm");
- model.makeNode("/root/main/baseflagcd/baseflagcdinfo/lastupdtdt");
- model.makeNode("/root/main/baseflagcd/baseflagcdinfo/lastupdtrnm");
- model.setValue("/root/main/baseflagcd/baseflagcdinfo/delflagcd", "0");
- }else{
- cmb_baseflagcd.disabled = false;
- ipt_resncd.disabled = false;
- model.resetInstanceNode("/root/main/resncd/resncdinfo"); // 사유코드정보 초기화
- model.makeNode("/root/main/resncd/resncdinfo/instcd");
- model.makeNode("/root/main/resncd/resncdinfo/baseflagcd");
- model.makeNode("/root/main/resncd/resncdinfo/baseflagnm");
- model.makeNode("/root/main/resncd/resncdinfo/resncd");
- model.makeNode("/root/main/resncd/resncdinfo/resncnts");
- model.makeNode("/root/main/resncd/resncdinfo/delflagcd");
- model.makeNode("/root/main/resncd/resncdinfo/fstrgstdt");
- model.makeNode("/root/main/resncd/resncdinfo/fstrgstrnm");
- model.makeNode("/root/main/resncd/resncdinfo/lastupdtdt");
- model.makeNode("/root/main/resncd/resncdinfo/lastupdtrnm");
- model.setValue("/root/main/resncd/resncdinfo/delflagcd", "0");
- }
- }
- model.refresh();
- }
-
- /* @group : 사유구분코드등록 화면
- * @ver : 2007.01.15 (CMCDEV-0001)
- * @by : 황상미(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 저장 함수
- *
- */
- function fExeSave() {
- //--------------------------
- // Send Node 삭제 후 재 생성
- model.removeNodeset("/root/send");
- //-----------------------
- // 구분코드, 사유코드 식별
- if (btn_flagcd.selected) {
-
- //---------------------------------------------------------------------------
- if (model.getValue("/root/main/baseflagcd/baseflagcdinfo/delflagcd") == "") {
- messageBox("사용여부는 ", "I003");
- return false;
- }
-
- //------------------------------------
- model.makeNode("/root/send/baseinfo");
- model.copyNode("/root/send/baseinfo", "/root/main/baseflagcd/baseflagcdinfo"); // 구분코드 정보
- model.makeValue("/root/send/baseinfo/instcd", getUserInfo("dutplceinstcd")); // 기관코드
- model.makeValue("/root/send/flagstatcd", model.getValue("/root/hidden/flagstatcd")); // 구분코드 상태
- submit("TXLPC01401");
-
- //-----------------------------
- // 정상처리인 경우 그리드에 반영
- // ?
- fExeGridChange("1", model.getValue("/root/hidden/flagstatcd"));
- } else {
-
- //-------------------------------------------------------------------
- if (model.getValue("/root/main/resncd/resncdinfo/delflagcd") == "") {
- messageBox("사용여부는 ", "I003");
- return false;
- }
-
- //------------------------------------
- model.makeNode("/root/send/resninfo");
- model.copyNode("/root/send/resninfo", "/root/main/resncd/resncdinfo"); // 구분코드 정보
- model.makeValue("/root/send/resninfo/instcd", getUserInfo("dutplceinstcd")); // 기관코드
- model.makeValue("/root/send/resnstatcd", model.getValue("/root/hidden/resnstatcd")); // 구분코드 상태
- submit("TXLPC01402");
-
- //-----------------------------
- // 정상처리인 경우 그리드에 반영
- fExeGridChange("2", model.getValue("/root/hidden/resnstatcd"));
- }
- }
-
-
- /* @group : 사유구분코드등록 화면
- * @ver : 2007.01.15 (CMCDEV-0001)
- * @by : 황상미(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 저장 후 그리드 변경처리 함수
- * @param : workflagcd - 그리드 구분코드(1:기초구분코드 그리드, 2:사유코드 그리드)
- * : workstatcd - 작업상태(0:조회, 1:수정, 2:신규)
- *
- */
- function fExeGridChange(workflagcd, workstatcd) {
-
- //------------------
- if (workflagcd == "1")
- {
- //-------------------
- if (workstatcd == "2") {
- grd_baseflaglist.additem();
- model.setValue("/root/main/baseflagcd/baseflagcdlist[" + (grd_baseflaglist.rows-1) + "]/instcd", model.getValue("/root/main/baseflagcd/baseflagcdinfo/instcd"));
- model.setValue("/root/main/baseflagcd/baseflagcdlist[" + (grd_baseflaglist.rows-1) + "]/baseflagcd", model.getValue("/root/main/baseflagcd/baseflagcdinfo/baseflagcd"));
- model.setValue("/root/main/baseflagcd/baseflagcdlist[" + (grd_baseflaglist.rows-1) + "]/baseflagnm", model.getValue("/root/main/baseflagcd/baseflagcdinfo/baseflagnm"));
-
- } else if (model.getValue("/root/main/baseflagcd/baseflagcdinfo/delflagcd") == model.getValue("/root/hidden/useyn")) {
- model.setValue("/root/main/baseflagcd/baseflagcdlist[" + grd_baseflaglist.row + "]/instcd", model.getValue("/root/main/baseflagcd/baseflagcdinfo/instcd"));
- model.setValue("/root/main/baseflagcd/baseflagcdlist[" + grd_baseflaglist.row + "]/baseflagcd", model.getValue("/root/main/baseflagcd/baseflagcdinfo/baseflagcd"));
- model.setValue("/root/main/baseflagcd/baseflagcdlist[" + grd_baseflaglist.row + "]/baseflagnm", model.getValue("/root/main/baseflagcd/baseflagcdinfo/baseflagnm"));
-
- } else {
- model.setValue("/root/hidden/flagstatcd", "0");
- grd_baseflaglist.deleteitem(grd_baseflaglist.row);
- model.resetInstanceNode("/root/main/baseflagcd/baseflagcdinfo");
- }
- } else {
- if (workstatcd == "2") {
- grd_resncdlist.additem();
- model.setValue("/root/main/resncd/resncdlist[" + (grd_resncdlist.rows-1) + "]/instcd", model.getValue("/root/main/resncd/resncdinfo/instcd"));
- model.setValue("/root/main/resncd/resncdlist[" + (grd_resncdlist.rows-1) + "]/baseflagcd", model.getValue("/root/main/resncd/resncdinfo/baseflagcd"));
- model.setValue("/root/main/resncd/resncdlist[" + (grd_resncdlist.rows-1) + "]/resncd", model.getValue("/root/main/resncd/resncdinfo/resncd"));
- model.setValue("/root/main/resncd/resncdlist[" + (grd_resncdlist.rows-1) + "]/resncnts", model.getValue("/root/main/resncd/resncdinfo/resncnts"));
-
- } else if (model.getValue("/root/main/resncd/resncdinfo/delflagcd") == model.getValue("/root/hidden/useyn")) {
- model.setValue("/root/main/resncd/resncdlist[" + grd_resncdlist.row + "]/instcd", model.getValue("/root/main/resncd/resncdinfo/instcd"));
- model.setValue("/root/main/resncd/resncdlist[" + grd_resncdlist.row + "]/baseflagcd", model.getValue("/root/main/resncd/resncdinfo/baseflagcd"));
- model.setValue("/root/main/resncd/resncdlist[" + grd_resncdlist.row + "]/resncd", model.getValue("/root/main/resncd/resncdinfo/resncd"));
- model.setValue("/root/main/resncd/resncdlist[" + grd_resncdlist.row + "]/resncnts", model.getValue("/root/main/resncd/resncdinfo/resncnts"));
-
- } else {
- model.setValue("/root/hidden/resnstatcd", "0");
- grd_resncdlist.deleteitem(grd_resncdlist.row);
- model.resetInstanceNode("/root/main/resncd/resncdinfo");
- }
- }
-
- //--------------
- model.refresh();
- }
-
-
- /* @group : 사유구분코드등록 화면
- * @ver : 2007.01.15 (CMCDEV-0001)
- * @by : 황상미(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 구분코드 그리드를 클릭 함수
- * @param : flagcd - 그리드 구분코드(1:기초구분코드 그리드, 2:사유코드 그리드)
- *
- */
- function fExeFlagCodeClick(flagcd) {
- var grdRow = "0";
-
- //---------------------------------------
- if (flagcd == "1") grdRow = grd_baseflaglist.row;
- else grdRow = grd_baseflaglist.row;
-
- //------------------------------
- fGetFlagCodeInfo(grdRow, flagcd);
- }
-
-
- /* @group : 사유구분코드등록 화면
- * @ver : 2007.01.15 (CMCDEV-0001)
- * @by : 황상미(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 사유코드 그리드를 클릭 함수
- *
- */
- function fExeReasonCodeClick() {
- var grdRow = grd_resncdlist.row;
-
- fGetReasonCodeInfo(grdRow, "2");
- }
-
-
- /* @group : 사유구분코드등록 화면
- * @ver : 2007.01.15 (CMCDEV-0001)
- * @by : 황상미(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 구분코드 상세정보 조회 함수
- * @param : iRow - 선택된 Row번호
- * flagcd - 그리드 구분코드(1:기초구분코드 그리드, 2:사유코드 그리드)
- *
- */
- function fGetFlagCodeInfo(iRow, flagcd) {
-
- //------------------
- if (flagcd == "1") {
- model.makeValue("/root/send/instcd", model.getValue("/root/main/baseflagcd/baseflagcdlist[" + iRow + "]/instcd"));
- model.makeValue("/root/send/baseflagcd", model.getValue("/root/main/baseflagcd/baseflagcdlist[" + iRow + "]/baseflagcd"));
- submit("TRLPC01402");
- }
- }
-
-
- /* @group : 사유구분코드등록 화면
- * @ver : 2007.01.15 (CMCDEV-0001)
- * @by : 황상미(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 사유코드 상세정보 조회 함수
- *
- */
- function fGetReasonCodeInfo(iRow) {
- //--------------------------
- // Send Node 삭제 후 재 생성
- lpzfExeRemakeSendNode(3);
-
- model.setValue("/root/send/data1", model.getValue("/root/main/resncd/resncdlist[" + iRow + "]/instcd"));
- model.setValue("/root/send/data2", model.getValue("/root/main/resncd/resncdlist[" + iRow + "]/baseflagcd"));
- model.setValue("/root/send/data3", model.getValue("/root/main/resncd/resncdlist[" + iRow + "]/resncd"));
- submit("TRLPC01404");
- }
-
-
- /* @group : 사유구분코드등록 화면
- * @ver : 2007.01.15 (CMCDEV-0001)
- * @by : 황상미(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 값 변경 처리 함수
- *
- */
- function fExeChangeValue(param) {
-
- switch (param) {
- case "resnflagcd" :
- model.setValue("/root/main/resncd/resncdinfo/instcd", model.getValue("/root/main/baseflagcd/baseflagcdlist[flagcd='" + model.getValue("/root/main/resncd/resncdinfo/resnflagcd") + "']/instcd"));
- break;
- }
- }
-
-
- /* @group : 사유구분코드등록 화면
- * @ver : 2007.01.15 (CMCDEV-0001)
- * @by : 황상미(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : Tab(작업구분) 변경 처리 함수
- *
- */
- function fExeWorkChange() {
-
- //--------------------------
- // Send Node 삭제 후 재 생성
- model.removeNodeset("/root/send");
-
- //-----------------
- // 기초구분코드 조회
- if (btn_flagcd.selected == true) {
- model.toggle("case_baseflagcd");
- model.removeNodeset("/root/main/baseflagcd/baseflagcdlist");
- model.resetInstanceNode("/root/main/baseflagcd/baseflagcdinfo");
- } else {
- model.toggle("case_resncd");
- model.removeNodeset("/root/main/resncd/resncdlist");
- model.resetInstanceNode("/root/main/resncd/resncdinfo");
-
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd")); // 기관코드
- model.makeValue("/root/send/refflag", ""); // 검색값
- model.makeValue("/root/send/refval", "0"); // 검색방법
- model.makeValue("/root/send/delflagcd", "0"); // 사용여부
- submit("TRLPC01401");
- }
-
- //-------------
- model.refresh();
- }
- ]]>
- </script>
- <!-- public Script end -->
- </xhtml:head>
- <xhtml:body guideline="1,1194;2,784;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:15px; ">사유구분/코드등록</caption>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:13; width:1195px; height:27px; ">
- <line id="line17" class="line_6" style="x1:0px; y1:25; x2:1194px; y2:25; "/>
- <button id="btn_save" class="btn4_letter2" navindex="16" style="left:1139px; top:3; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeSave();
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:40; width:1195px; height:744px; ">
- <group id="group1" style="left:0px; top:10px; width:1194px; height:35px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line14" class="line_4" style="x1:1108px; y1:6px; x2:1108px; y2:28px; border-color:#ffe4bb; border-left-style:solid; "/>
- <input id="ipt_refval" ref="/root/hidden/seaval" class="input_search" navindex="1" style="left:95px; top:8px; width:120px; height:19px; "/>
- <select1 id="cmb_refflag" ref="/root/hidden/seamthd1" class="combo_search" navindex="2" appearance="minimal" style="left:538px; top:8px; width:102px; height:19px; ">
- <choices>
- <item>
- <label>코드</label>
- <value>0</value>
- </item>
- <item>
- <label>명칭</label>
- <value>1</value>
- </item>
- </choices>
- </select1>
- <caption id="caption23" class="search_name" style="left:15px; top:9px; width:90px; height:17px; vertical-align:middle; background-image:../../../com/commonweb/images/search_bullet1.gif; ">검색값 :</caption>
- <caption id="caption24" class="search_name" autoresize="true" style="left:878; top:9px; width:90px; height:17px; vertical-align:middle; background-image:../../../com/commonweb/images/search_bullet1.gif; ">사용여부 :</caption>
- <caption id="caption2" class="search_name" autoresize="true" style="left:445px; top:9px; width:90px; height:17px; vertical-align:middle; background-image:../../../com/commonweb/images/search_bullet1.gif; ">검색방법 :</caption>
- <button id="btn_sea" class="btn1_letter2" navindex="5" style="left:1123px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeGetRefData();
- ]]>
- </script>
- </button>
- <select1 id="rdo_useyn" ref="/root/hidden/useyn" class="radio_search" navindex="4" appearance="full" cellspacing="20" cols="3" overflow="visible" style="left:971; top:10px; width:122px; height:16px; border-style:none; ">
- <choices>
- <item>
- <label>사용</label>
- <value>0</value>
- </item>
- <item>
- <label>미사용</label>
- <value>1</value>
- </item>
- </choices>
- </select1>
- </group>
- <button id="btn_flagcd" class="btn_sw" group="tab" style="left:0px; top:49px; width:78px; height:22px; ">
- <caption>기초구분코드</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeWorkChange();
- ]]>
- </script>
- </button>
- <button id="btn_resncd" class="btn_sw" group="tab" selected="true" style="left:78px; top:49px; width:70px; height:22px; ">
- <caption>사유코드</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeWorkChange();
- ]]>
- </script>
- </button>
- <switch id="switch1" style="left:0px; top:70px; width:1194px; height:674px; border-color:#c7a3cf; border-style:solid; ">
- <case id="case_resncd">
- <caption id="caption21" class="cell_1" style="left:645px; top:408px; width:120px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">사용여부</caption>
- <caption id="caption12" class="cell_1" style="left:926px; top:480px; width:110px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">최종수정자</caption>
- <caption id="caption4" class="tit_2" style="left:650px; top:10px; width:95px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">사유코드정보</caption>
- <caption id="caption15" class="cell_1" style="left:645px; top:456px; width:120px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">최초등록일시</caption>
- <line id="line3" class="line_1" style="x1:645px; y1:25px; x2:1189; y2:25px; "/>
- <caption id="caption8" class="cell_1" style="left:645px; top:54px; width:120px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">사유코드</caption>
- <caption id="caption18" class="cell_1" style="left:926px; top:456px; width:110px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">최초등록자</caption>
- <caption id="caption9" class="cell_1" style="left:645px; top:30px; width:120px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">사유구분</caption>
- <caption id="caption19" class="cell_1" style="left:645px; top:480px; width:120px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">최종수정일시</caption>
- <caption id="caption7" class="cell_1" style="left:645px; top:78px; width:120px; height:329px; text-align:left; vertical-align:middle; padding-left:10px; ">사유내용</caption>
- <output id="opt_rsncdfstrgstdt" ref="/root/main/resncd/resncdinfo/fstrgstdt" class="output_fix" appearance="output" style="left:768px; top:458px; width:155px; height:19px; border-color:#c0c0c0; "/>
- <output id="opt_rsncdfstrgstrid" ref="/root/main/resncd/resncdinfo/fstrgstrnm" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:1039px; top:458px; width:150px; height:19px; border-color:#c0c0c0; "/>
- <output id="opt_rsncdlastrgstdt" ref="/root/main/resncd/resncdinfo/lastupdtdt" class="output_fix" appearance="output" style="left:768px; top:482px; width:155px; height:19px; border-color:#c0c0c0; "/>
- <output id="opt_rsncdlastrgstrid" ref="/root/main/resncd/resncdinfo/lastupdtrnm" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:1039px; top:482px; width:150px; height:19px; border-color:#c0c0c0; "/>
- <select1 id="rdo_rsncdupdt" ref="/root/hidden/resnstatcd" navindex="10" appearance="full" cellspacing="10" cols="4" overflow="visible" style="left:751px; top:9px; width:162px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>조회</label>
- <value>0</value>
- </item>
- <item>
- <label>수정</label>
- <value>1</value>
- </item>
- <item>
- <label>신규</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fExeCdUpdtFlag("Rsn");
- ]]>
- </script>
- </select1>
- <line id="line7" class="line_2" style="x1:645px; y1:76px; x2:1189px; y2:76px; "/>
- <line id="line8" class="line_2" style="x1:645px; y1:52px; x2:1189px; y2:52px; "/>
- <line id="line6" class="line_2" style="x1:645px; y1:405px; x2:1189px; y2:405px; "/>
- <line id="line20" class="line_2" style="x1:645px; y1:430px; x2:1189px; y2:430px; "/>
- <line id="line16" class="line_2" style="x1:645px; y1:454px; x2:1189px; y2:454px; "/>
- <line id="line5" class="line_3" style="x1:645px; y1:504px; x2:1189px; y2:504px; "/>
- <input id="ipt_resncd" ref="/root/main/resncd/resncdinfo/resncd" class="input_essential" navindex="12" maxlength="4" appearance="input" style="left:768px; top:55px; width:421px; height:19px; border-color:#c0c0c0; "/>
- <textarea id="tar_resncnts" ref="/root/main/resncd/resncdinfo/resncnts" class="text_essential" navindex="14" style="left:768px; top:79px; width:421px; height:324px; "/>
- <select1 id="rdo_resndelflagcd" ref="/root/main/resncd/resncdinfo/delflagcd" navindex="15" appearance="full" cellspacing="30" cols="2" overflow="visible" style="left:768px; top:411px; width:132px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>사용</label>
- <value>0</value>
- </item>
- <item>
- <label>미사용</label>
- <value>1</value>
- </item>
- </choices>
- </select1>
- <line id="line11" class="line_1" style="width:855px; x1:5; y1:25px; x2:640px; y2:25px; "/>
- <caption id="caption22" class="tit_2" style="left:10; top:10px; width:131px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">사유코드</caption>
- <datagrid id="grd_resncdlist" nodeset="/root/main/resncd/resncdlist" caption="기관코드^기초구분코드^기초구분명^사유코드^사 유 명" colsep="^" colwidth="0, 80, 150, 100, 280" dataheight="23" defaultrows="1" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" navindex="16" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:5px; top:30px; width:635px; height:640px; border-color:#c0c0c0; ">
- <col ref="instcd" type="output"/>
- <col ref="baseflagcd"/>
- <col ref="baseflagnm"/>
- <col ref="resncd" type="output"/>
- <col ref="resncnts" type="output"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fExeReasonCodeClick();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_resncdlist.gridToInstance();
- model.makeNode("/root/main/resncd/resncdinfo/instcd");
- model.makeNode("/root/main/resncd/resncdinfo/baseflagcd");
- model.makeNode("/root/main/resncd/resncdinfo/baseflagnm");
- model.makeNode("/root/main/resncd/resncdinfo/resncd");
- model.makeNode("/root/main/resncd/resncdinfo/resncnts");
- model.makeNode("/root/main/resncd/resncdinfo/delflagcd");
- model.makeNode("/root/main/resncd/resncdinfo/fstrgstdt");
- model.makeNode("/root/main/resncd/resncdinfo/fstrgstrnm");
- model.makeNode("/root/main/resncd/resncdinfo/lastupdtdt");
- model.makeNode("/root/main/resncd/resncdinfo/lastupdtrnm");
- model.makeNode("/root/main/resncd/resncdinfo/dispseqno");
- ]]>
- </script>
- </datagrid>
- <select1 id="cmb_baseflagcd" ref="/root/main/resncd/resncdinfo/baseflagcd" appearance="minimal" style="left:768px; top:31px; width:421px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/baseflagcd/baseflagcdlist">
- <label ref="baseflagnm"/>
- <value ref="baseflagcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="cell_1" style="left:645px; top:432px; width:120px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">표시일련번호</caption>
- <line id="line2" class="line_2" style="x1:645px; y1:480px; x2:1189px; y2:480px; "/>
- <input id="input1" ref="/root/main/resncd/resncdinfo/dispseqno" maxlength="5" format="#,###" style="left:768px; top:433px; width:100px; height:19px; "/>
- </case>
- <case id="case_baseflagcd" selected="true">
- <caption id="caption1" class="cell_1" style="left:645px; top:78px; width:100px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">사용여부</caption>
- <caption id="caption5" class="cell_1" style="left:913; top:127px; width:100px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">최종수정자</caption>
- <caption id="caption10" class="cell_1" style="left:645px; top:102px; width:100px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">최초등록일시</caption>
- <caption id="caption11" class="cell_1" style="left:645px; top:54px; width:100px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">구분명칭</caption>
- <caption id="caption13" class="cell_1" style="left:913; top:103px; width:100px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">최초등록자</caption>
- <caption id="caption14" class="cell_1" style="left:645; top:30px; width:100; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">구분코드</caption>
- <caption id="caption16" class="cell_1" style="left:645px; top:126px; width:100px; height:23px; text-align:left; vertical-align:middle; padding-left:10px; ">최종수정일시</caption>
- <caption id="caption17" class="tit_2" style="left:650px; top:10px; width:100px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">기초구분정보</caption>
- <select1 id="radio2" ref="/root/hidden/flagstatcd" navindex="6" visibility="hidden" appearance="full" cellspacing="10" cols="4" overflow="visible" style="left:753; top:9px; width:162px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>조회</label>
- <value>0</value>
- </item>
- <item>
- <label>수정</label>
- <value>1</value>
- </item>
- <item>
- <label>신규</label>
- <value>2</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fExeCdUpdtFlag("Flag");
- ]]>
- </script>
- </select1>
- <output id="opt_rsnflagfstrgstdt" ref="/root/main/baseflagcd/baseflagcdinfo/fstrgstdt" class="output_fix" appearance="output" style="left:748px; top:104px; width:162px; height:19px; border-color:#c0c0c0; "/>
- <output id="opt_rsnflagfstrgstrid" ref="/root/main/baseflagcd/baseflagcdinfo/fstrgstrnm" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:1016; top:104px; width:168px; height:19px; border-color:#c0c0c0; "/>
- <output id="opt_rsnflaglastrgstdt" ref="/root/main/baseflagcd/baseflagcdinfo/lastupdtdt" class="output_fix" appearance="output" style="left:748px; top:128px; width:162px; height:19px; border-color:#c0c0c0; "/>
- <output id="opt_rsnflaglastrgstrid" ref="/root/main/baseflagcd/baseflagcdinfo/lastupdtnm" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:1016; top:128px; width:168px; height:19px; border-color:#c0c0c0; "/>
- <line id="line12" class="line_3" style="x1:645px; y1:148px; x2:1184px; y2:148px; "/>
- <line id="line9" class="line_2" style="x1:645px; y1:124px; x2:1184px; y2:124px; "/>
- <line id="line13" class="line_2" style="x1:645px; y1:76px; x2:1184px; y2:76px; "/>
- <line id="line15" class="line_1" style="x1:645px; y1:25px; x2:1184px; y2:25px; "/>
- <line id="line1" class="line_2" style="x1:645px; y1:52px; x2:1184px; y2:52px; "/>
- <line id="line4" class="line_2" style="x1:645px; y1:100px; x2:1184px; y2:100px; "/>
- <input id="ipt_flagcd" ref="/root/main/baseflagcd/baseflagcdinfo/baseflagcd" class="input_essential" navindex="7" maxlength="2" appearance="input" style="left:748; top:31px; width:32px; height:19px; border-color:#c0c0c0; "/>
- <input id="ipt_flagnm" ref="/root/main/baseflagcd/baseflagcdinfo/baseflagnm" class="input_essential" navindex="8" maxlength="100" appearance="input" style="left:748px; top:56px; width:436px; height:19px; border-color:#c0c0c0; "/>
- <select1 id="rdo_delflagcd" ref="/root/main/baseflagcd/baseflagcdinfo/delflagcd" navindex="9" appearance="full" cellspacing="30" cols="2" overflow="visible" style="left:748px; top:84px; width:132px; height:13px; border-style:none; ">
- <choices>
- <item>
- <label>사용</label>
- <value>0</value>
- </item>
- <item>
- <label>미사용</label>
- <value>1</value>
- </item>
- </choices>
- </select1>
- <caption id="caption20" class="tit_2" style="left:10px; top:10px; width:131px; height:14px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">기초구분코드</caption>
- <line id="line10" class="line_1" style="width:855px; x1:5px; y1:25px; x2:640px; y2:25px; "/>
- <datagrid id="grd_baseflaglist" nodeset="/root/main/baseflagcd/baseflagcdlist" caption="기관코드^기초구분코드^구분명칭" colsep="^" colwidth="0, 153, 457" dataheight="23" defaultrows="1" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" navindex="16" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:5px; top:30px; width:635; height:640; ">
- <col ref="instcd" type="output"/>
- <col ref="baseflagcd" type="output"/>
- <col ref="baseflagnm" type="output"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fExeFlagCodeClick("1");
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_baseflaglist.gridToInstance();
- model.makeNode("/root/main/baseflagcd/baseflagcdinfo/instcd");
- model.makeNode("/root/main/baseflagcd/baseflagcdinfo/baseflagcd");
- model.makeNode("/root/main/baseflagcd/baseflagcdinfo/baseflagnm");
- model.makeNode("/root/main/baseflagcd/baseflagcdinfo/delflagcd");
- model.makeNode("/root/main/baseflagcd/baseflagcdinfo/fstrgstdt");
- model.makeNode("/root/main/baseflagcd/baseflagcdinfo/fstrgstrnm");
- model.makeNode("/root/main/baseflagcd/baseflagcdinfo/lastupdtdt");
- model.makeNode("/root/main/baseflagcd/baseflagcdinfo/lastupdtrnm");
- ]]>
- </script>
- </datagrid>
- </case>
- </switch>
- </group>
- </xhtml:body>
- </xhtml:html>
|