123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPLPR01700_블럭조회.xfm
- * 설 명 : 블럭조회
- * 설 계 자 : 설계자가 별도로 존재시 작성
- * 작 성 자 : 유동철(ACK)
- * 작 성 일 : 2007.11.08
- * 수정이력 :
- * 기 타 : 주석문에 반영되어야 할 사항 표기
- -->
- <?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>
- <keybloc>
- <keybloclist>
- <choi/>
- <instcd/>
- <ptno/>
- <spcacptdd/>
- <spcacptno/>
- <spcacptseqno/>
- <csteno/>
- <cstecnts/>
- <cstecnt/>
- </keybloclist>
- </keybloc>
- </main>
- <send/>
- <init>
- <resncd>
- <resncdlist>
- <choi/>
- <instcd/>
- <baseflagcd/>
- <resncd/>
- <resncnts/>
- </resncdlist>
- </resncd>
- </init>
- <hidden>
- </hidden>
- <temp>
- <keybloc/>
- </temp>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../lis/commonweb/js/LPZ001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fExeInitialize();
- ]]>
- </script>
- <submission id="TRLPZ00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/resncd/resncdlist"/>
- <submission id="TRLPR01701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/keybloc/keybloclist"/>
- </model>
- <script type="javascript">
- <![CDATA[
- /* @group : 블럭조회
- * @ver : 2007.11.08 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 화면 초기화 처리 Function
- */
- function fExeInitialize() {
- model.removeNodeset("/root/main/keybloc/keybloclist");
- model.removeNodeset("/root/init/resncd/resncdlist");
-
- //--------------------------
- // Send Node 삭제 후 재 생성
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/baseflagcd", "'70'");
- submit("TRLPZ00103", false);
- //---------------------
- // 예문목록중 전체 삭제
- model.removeNodeset("/root/init/resncd/resncdlist[resncd='ZZZZ']");
-
- model.makeValue("/root/send/ptno", opener.javascript.getParameter("SMLPR00100_ptno"));
- //model.makeValue("/root/send/ptno", "S07000122");
- submit("TRLPR01701");
-
- //----------------------------------------
- model.makeValue("/root/temp/keybloc", opener.javascript.getParameter("SMLPR00100_keybloc"));
- grd_bloclist.fixedcellcheckbox(0,0) = true;
- grd_bloclist.fixedcellcheckbox(0,0) = true;
-
- //--------------
- model.refresh();
- }
-
- /* @group : 블럭조회
- * @ver : 2007.11.08 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 화면 닫기 처리 Function
- */
- function fExeClose() {
- window.close();
- }
-
- /* @group : 블럭조회
- * @ver : 2007.11.08 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 예문 그리드 클릭 처리 Function
- */
- function fExeExmpClick() {
- if (grd_exmplist.row > 0 && grd_exmplist.isCell(event.target) && grd_exmplist.row >= grd_exmplist.fixedRows) {
- fExeKeyBlocCnts();
- }
- }
-
- /* @group : 블럭조회
- * @ver : 2007.11.08 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 예문선책 처리 Function
- */
- function fExeKeyBlocCnts() {
-
- var iRowNo = grd_exmplist.row;
- var iFindNo = 0;
- var sNode = "/root/init/resncd/resncdlist";
- var sBlocNode = "/root/main/keybloc/keybloclist";
- var sKeyBloc = "";
-
- //-------------------------------------------------------
- iFindNo = grd_bloclist.findRow("true", 1, 0, true, true);
- if (iFindNo <= 0) {
- messageBox("블럭을 선택하지 않았습니다! Key블럭을 작성", "E001");
-
- //-----------------------------------------------------
- for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++) {
- model.setValue(sNode+"["+iNo+"]/choi", "false");
- }
-
- //-----------
- return false;
- } else {
- for (var iNo=1; iNo <= getNodesetCount(sBlocNode); iNo++) {
-
- //---------------------------------------------------------
- if (model.getValue(sBlocNode+"["+iNo+"]/choi") == "true") {
-
- //-------------------
- if (sKeyBloc == "") {
- sKeyBloc += model.getValue(sBlocNode+"["+iNo+"]/cstecnts");
- } else {
- sKeyBloc += ", " + model.getValue(sBlocNode+"["+iNo+"]/cstecnts");
- }
- }
- }
- }
-
- //-----------------------------------------------------
- for (var iNo=1; iNo <= getNodesetCount(sNode); iNo++) {
- model.setValue(sNode+"["+iNo+"]/choi", "false");
- }
-
- //----------------------------------------------
- model.setValue(sNode+"["+iRowNo+"]/choi", "true");
- sKeyBloc += " - " + model.getValue(sNode+"["+iRowNo+"]/resncnts");
- model.makeValue("/root/temp/keybloc", sKeyBloc);
-
- //---------------------
- grd_exmplist.refresh();
- tar_keybloc.refresh();
- }
-
- /* @group : 블럭조회
- * @ver : 2007.11.08 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 확인버튼 처리 Function
- */
- function fExeSave() {
- opener.javascript.setParameter("SMLPR00100_keybloc", model.getValue("/root/temp/keybloc"));
- window.close();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1108" pageheight="560" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <group id="grp_biz" style="left:0px; top:0px; width:1090px; height:517; ">
- <line id="line18" class="line_1" style="x1:273px; y1:20px; x2:595px; y2:20px; "/>
- <caption id="caption37" class="tit_2" style="left:278px; top:5px; width:144px; height:14px; ">예문목록</caption>
- <datagrid id="grd_exmplist" nodeset="/root/init/resncd/resncdlist" class="datagrid2" autoresize="true" caption="선택^기관코드^flagcd^resncd^내용" colsep="^" colwidth="50, 0, 0, 0, 250" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" navindex="2" style="left:273px; top:25px; width:322px; height:492px; ">
- <col ref="choi" type="checkbox"/>
- <col ref="instcd"/>
- <col ref="baseflagcd"/>
- <col ref="resncd"/>
- <col ref="resncnts"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fExeExmpClick();
- ]]>
- </script>
- </datagrid>
- <line id="line1" class="line_1" style="x1:0px; y1:20px; x2:270px; y2:20px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:5px; width:205px; height:13px; ">블럭(Cassette) 목록</caption>
- <datagrid id="grd_bloclist" nodeset="/root/main/keybloc/keybloclist" class="datagrid2" autoresize="true" caption="선
택^기관코드^ptno^spcacptdd^spcacptno^spcacptseqno^csteno^블럭내용^블럭내용" colsep="^" colwidth="50, 0, 0, 0, 0, 0, 0, 200, 0" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" navindex="1" style="left:0px; top:25px; width:270px; height:492; ">
- <col ref="choi" type="checkbox"/>
- <col ref="instcd"/>
- <col ref="ptno"/>
- <col ref="spcacptdd"/>
- <col ref="spcacptno"/>
- <col ref="spcacptseqno"/>
- <col ref="csteno"/>
- <col ref="cstecnts"/>
- <col ref="cstecnt"/>
- </datagrid>
- <line id="line2" class="line_1" style="x1:598px; y1:20px; x2:1090px; y2:20px; "/>
- <caption id="caption2" class="tit_2" style="left:603px; top:5px; width:144px; height:14px; ">Key블럭</caption>
- <textarea id="tar_keybloc" ref="/root/temp/keybloc" navindex="3" style="left:598px; top:25px; width:492px; height:492px; "/>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:517; width:1090; height:27px; ">
- <button id="btn_exit" class="btn4_letter2" navindex="5" style="left:1034; top:5px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeClose();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" navindex="4" style="left:975; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeSave();
- ]]>
- </script>
- </button>
- <line id="line17" class="line_6" style="x1:0px; y1:0px; x2:1090; y2:0px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|