123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLPC01000_자문의뢰Case등록.xrw
- * 설 명 : 자문의뢰Case등록 화면
- * 설 계 자 : (주)에이씨케이 - 유동철
- * 작 성 자 : (주)에이씨케이 - 유동철
- * 작 성 일 : 2007.05.22
- * 수정이력 :
- * 기 타 :
- -->
- <?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/>
- <model id="model1">
- <instance id="instance1">
- <root>
- <main>
- <cnstreqcasecnts>
- <cnstreqcaselist>
- <instcd/>
- <baseflagcd/>
- <resncd/>
- <delflagcd/>
- <resncnts/>
- </cnstreqcaselist>
- </cnstreqcasecnts>
- </main>
- <send>
- </send>
- <init>
- <instcd/>
- <fgcd>
- <fgcdlist>
- <baseflagcd/>
- <baseflagnm/>
- </fgcdlist>
- </fgcd>
- <cnstreqcase>J</cnstreqcase>
- </init>
- <hidden>
- <refval/>
- </hidden>
- </root>
- </instance>
- <bind id="bind1" ref="/root/main/cnstreqcasecnts/cnstreqcaselist/baseflagcd" readonly="../baseflagcd/@readonly = 'true'"/>
- <bind id="bind2" ref="/root/main/cnstreqcasecnts/cnstreqcaselist/resncd" readonly="../resncd/@readonly = 'true'"/>
- <!--TEST-->
- <!--- END-->
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/datehelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fExeInitialize();
- ]]>
- </script>
- <!-- public Script Start -->
- <script type="javascript">
- <![CDATA[
-
- /* @group : 자문의뢰Case등록 화면
- * @ver : 2007.05.22 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 화면초기화 함수
- */
- function fExeInitialize(){
- model.removeNodeset("/root/main/csltsettingcnts/csltsettinglist");
- model.setValue("/root/init/instcd", getUserInfo("dutplceinstcd")); //instcd
- //------------------------------------------
- // 자문구분 목록 조회
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/instcd", getUserInfo("dutplceinstcd"));
- model.makeValue("/root/send/baseflagcd", model.getValue("/root/init/cnstreqcase"));
- submit("TRLPC01001");
- var iMaxRow = parseInt(getNodesetCount("/root/init/fgcd/fgcdlist"))+1;
-
- //--------
- // 노드생성
- model.makeValue("/root/init/fgcd/fgcdlist[" + iMaxRow + "]/baseflagcd", "GG");
- model.makeValue("/root/init/fgcd/fgcdlist[" + iMaxRow + "]/baseflagnm", "전 체");
- model.setValue("/root/hidden/refval", "GG"); //조회항목
- model.refresh();
- }
-
- /* @group : 자문의뢰Case등록 화면
- * @ver : 2007.05.22 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 자문설정 Data 조회 함수
- */
- function fGetRefData(){
- model.removeNodeset("/root/main/cnstreqcasecnts/cnstreqcaselist");
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/instcd", model.getValue("/root/init/instcd")); //병원코드
- model.makeValue("/root/send/baseflagcd", model.getValue("/root/init/cnstreqcase")); //기초구분코드(자문의뢰Case='J%')
- model.makeValue("/root/send/refval", model.getValue("/root/hidden/refval")); //조회항목
-
- submit("TRLPC01002");
- model.refresh();
- }
-
- /* @group : 자문의뢰Case등록 화면
- * @ver : 2007.05.22 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 조회내역 행추가 함수
- */
- function fGetAddRow(){
- grd_cnstreqcaselist.addItem();
- var curRow = grd_cnstreqcaselist.row;
- var strNode = "/root/main/cnstreqcasecnts/cnstreqcaselist";
- model.setValue(strNode + "[" + curRow + "]/instcd", model.getValue("/root/init/instcd")); //기관코드
-
- }
- /* @group : 자문의뢰Case등록 화면
- * @ver : 2007.05.22 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 조회내역 행삭제 함수
- */
- function fGetDelRow(){
- var curRow = grd_cnstreqcaselist.row;
- var curCol = grd_cnstreqcaselist.col;
- var vStatus = grd_cnstreqcaselist.rowStatus(curRow)
- var strNode = "/root/main/cnstreqcasecnts/cnstreqcaselist";
- var vDelFlagCd = "";
-
- if(vStatus == "1" || vStatus == "3") { // New or New&Insert?
- grd_cnstreqcaselist.deleteItem(curRow);
- }
- else {
- vDelFlagCd = model.getValue(strNode + "[" + curRow + "]/delflagcd"); //사용여부
- if(vDelFlagCd == 0) {
- grd_cnstreqcaselist.rowstatus(curRow) =2; // Update
- }
- else {
- grd_cnstreqcaselist.rowstatus(curRow) =4; // Delete
- }
- }
- }
-
- /* @group : 자문의뢰Case등록 화면
- * @ver : 2007.05.22 (CMCDEV-0001)
- * @by : 유동철(ACK)
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 저장함수
- */
- function fSetUpdtData(){
- var strNode = "/root/main/cnstreqcasecnts/cnstreqcaselist";
- for(var iRowNo = 1; iRowNo < grd_cnstreqcaselist.rows; iRowNo++){
- var vBaseFlagCd = model.getValue(strNode + "[" + iRowNo + "]/baseflagcd");
- var vResnCd = model.getValue(strNode + "[" + iRowNo + "]/resncd");
- var vDelFlagCd = model.getValue(strNode + "[" + iRowNo + "]/delflagcd");
- var vResnCnts = model.getValue(strNode + "[" + iRowNo + "]/resncnts");
- if( vBaseFlagCd == "") {
- messageBox("자문구분을", "C002");
- return;
- }
- if( vResnCd == "") {
- messageBox("코드를", "C001");
- return;
- }
- if( vDelFlagCd == "") {
- messageBox("사용여부를", "C002");
- return;
- }
- if( vResnCnts == "") {
- messageBox("내용을", "C001");
- return;
- }
- }
-
- //-------------------------------------------
- model.removeNodeset("/root/send");
- model.makeValue("/root/send/cnstreqcaselist", grd_cnstreqcaselist.getUpdateData());
- if (submit("TXLPC01001")) {
- messageBox("자문의뢰Case 처리가", "I002");
- } else {
- messageBox("자문의뢰Case 처리가 ", "E009");
- return false;
- }
- //--------------
- model.refresh();
-
- fGetRefData();
- }
-
- ]]>
- </script>
- <!-- public Script end -->
- <submission id="TRLPC01001" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/init/fgcd/fgcdlist"/>
- <submission id="TRLPC01002" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/cnstreqcasecnts/cnstreqcaselist"/>
- <submission id="TXLPC01001" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" replace="instance" resultref="/root/main/msg"/>
- </model>
- </xhtml:head>
- <xhtml:body guideline="1,1194;" style="font-family:돋움, Arial; margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <group id="grp_biz" style="left:0px; top:0px; width:1195px; height:744; ">
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
- <button id="btn_grdadd" class="btn2_letter3" style="left:1141px; top:50px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fGetDelRow();
- ]]>
- </script>
- </button>
- <caption id="caption1" class="tit_2" style="left:5px; top:55px; width:134px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">자문의뢰Case 목록</caption>
- <group id="grp_sea" style="left:0px; top:10; 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; "/>
- <caption id="caption23" class="search_name" style="left:15px; top:9px; width:86px; height:17px; vertical-align:middle; background-image:../../../com/commonweb/images/search_bullet1.gif; ">조회항목 :</caption>
- <select1 id="cmb_refitem" ref="/root/hidden/refval" class="combo_search" appearance="minimal" style="left:104px; top:9px; width:170px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/fgcd/fgcdlist">
- <label ref="baseflagnm"/>
- <value ref="baseflagcd"/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_sea" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fGetRefData();
- ]]>
- </script>
- </button>
- </group>
- <button id="button1" class="btn2_letter3" style="left:1082px; top:50px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fGetAddRow();
- ]]>
- </script>
- </button>
- <datagrid id="grd_cnstreqcaselist" nodeset="/root/main/cnstreqcasecnts/cnstreqcaselist" caption="기관코드^자문구분^코 드^사용여부^내 용" colwidth="0, 170, 100, 100, 947" dataheight="23" defaultrows="1" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="23" rowsep="|" colsep="^" style="left:0px; top:75px; width:1195px; height:667; ">
- <col ref="instcd"/>
- <col ref="baseflagcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/fgcd/fgcdlist[baseflagcd!='GG']">
- <label ref="baseflagnm"/>
- <value ref="baseflagcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="resncd" type="input"/>
- <col ref="delflagcd" type="combo">
- <choices>
- <item>
- <label>사용</label>
- <value>0</value>
- </item>
- <item>
- <label>미사용</label>
- <value>1</value>
- </item>
- </choices>
- </col>
- <col ref="resncnts" type="input" style="left:225px; top:23px; width:947px; height:23px; "/>
- </datagrid>
- </group>
- </group>
- <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; ">자문의뢰Case 등록</caption>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <button id="button11" class="btn4_letter2" style="left:1139px; top:3px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn4_letter2.gif; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSetUpdtData();
- ]]>
- </script>
- </button>
- <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- </group>
- </xhtml:body>
- </xhtml:html>
|