123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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="">
- <example/>
- <send>
- <search>
- <coophospcd/>
- </search>
- <savedata>
- </savedata>
- </send>
- <main>
- <list>
- <hospinfo>
- <coophospnm/>
- <dirofhospnm/>
- <telno/>
- <faxno/>
- <zipcd1/>
- <zipcd2/>
- <zipcdseq/>
- <addr/>
- <detladdr/>
- </hospinfo>
- <itemlist>
- <rrgstno1/>
- <rrgstno2/>
- <famynm/>
- <famyrel/>
- <discflag/>
- <orddiscyn/>
- <mediexamdiscyn/>
- <coophospcd/>
- <oldorddiscyn/>
- <oldmediexamdiscyn/>
- <coophospnm/>
- <status/>
- </itemlist>
- </list>
- </main>
- <init>
- <cmblist>
- <famyref>
- <P0438/>
- </famyref>
- <discflag>
- </discflag>
- </cmblist>
- </init>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZBC00102" mediatype="application/x-www-form-urlencoded" method="post"/>
- <submission id="TRZBC00105" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRARH00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/search" resultref="/root/main/list"/>
- <submission id="TXARH00801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata" resultref="/root"/>
- </model>
- </xhtml:head>
- <script src="../../../com/commonweb/js/common.js" type="javascript"/>
- <script src="../../../com/commonweb/js/utilHelper.js" type="javascript"/>
- <script src="../../../com/commonweb/js/tfHelper.js" type="javascript"/>
- <script src="../../../com/commonweb/js/stringHelper.js" type="javascript"/>
- <script src="../../../com/commonweb/js/dateHelper.js" type="javascript"/>
- <script src="../../../ast/soclworkweb/js/AWMCommon.js" type="javascript"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript">
- <![CDATA[
- /*
- 1. 관계 코드 변경 : R0077 ==> P0438
- ==> 가족할인으로 인해 변경함
- */
-
- //화면 오픈시
- function fInit() {
- //grd_attntrlist.colHidden(4) = true;
-
- if (checkOpener()) {
- var coophospcd = opener.javascript.getParameter("coophospcd");
- //var scrnstatus = opener.javascript.getParameter("scrnstatus");
- model.resetInstanceNode("/root/send/search");
- model.resetInstanceNode("/root/main/list/hospinfo");
- model.removeNodeset("/root/main/list/itemlist");
-
- model.setValue("/root/send/search/coophospcd", coophospcd);
-
- // 공통코드 목록 가져오기
- zbcfGetCodeList(new Array("P0438"),
- new Array("/root/init/cmblist/famyref") , true);
-
- // 유형코드
- zbcfGetKindCodeList(
- new Array("A0013"), //업무규칙
- new Array("A0488"), //코드군
- new Array("/root/init/cmblist/discflag"), //노드
- true, //minimum : true TRZBC00105
- new Array(""), //sorting 항목
- new Array("")
- );
-
-
- // 조회
- fSearch();
-
- model.refresh();
- } else {
- messageBox("상위화면이 변경되어 데이터를 전달할 수 ", "I004");
- }
- }
-
- // 조회
- function fSearch()
- {
- // reqGetDirOfHospFamyList
- // getFamyList
- if (submit("TRARH00801", false) == true)
- {
-
- }
- else
- {
- }
- }
-
- // 행추가
- function fGrdRowAdd()
- {
- if (grd_list.rows <= 1)
- {
- grd_list.addItem();
- lrow = grd_list.rows -1;
- model.setValue("/root/main/list/itemlist[" + lrow + "]/coophospcd", model.getValue("/root/send/search/coophospcd"));
- model.setValue("/root/main/list/itemlist[" + lrow + "]/orddiscyn", "N");
- model.setValue("/root/main/list/itemlist[" + lrow + "]/mediexamdiscyn", "N");
- //model.setValue("/root/main/traineeinfo/familylist[" + lrow + "]/famynm", "N");
- grd_list.col = grd_list.colRef("rrgstno1");
- grd_list.editCell();
- model.refresh();
- }
- else
- {
- for (i = 1; i < grd_list.rows; i++)
- {
- if (grd_list.valueMatrix(i, grd_list.colRef("rrgstno1")) == "")
- {
- //fGrdSetFocus(grd_famy, i, 0);
- grd_list.col = grd_list.colRef("rrgstno1");
- grd_list.editCell();
- return;
- }
-
- if (grd_list.valueMatrix(i, grd_list.colRef("rrgstno2")) == "")
- {
- //fGrdSetFocus(grd_famy, i, 0);
- grd_list.col = grd_list.colRef("rrgstno2");
- grd_list.editCell();
- return;
- }
-
- }
- grd_list.addItem();
- lrow = grd_list.rows -1;
-
- model.setValue("/root/main/list/itemlist[" + lrow + "]/coophospcd", model.getValue("/root/send/search/coophospcd"));
- model.setValue("/root/main/list/itemlist[" + lrow + "]/orddiscyn", "N");
- model.setValue("/root/main/list/itemlist[" + lrow + "]/mediexamdiscyn", "N");
- //fGrdSetFocus(grd_famy, lrow, 0);
- grd_list.col = grd_list.colRef("rrgstno1");
- grd_list.editCell();
- model.refresh();
- }
- }
-
- // 행삭제
- function fGrdRowDel()
- {
- if (grd_list.rows <= 1) return;
- if (grd_list.row < 1) return;
-
- grd_list.addStatus(grd_list.row,"delete");
- //grd_list.deleteItem(grd_list.row);
- }
-
- //저장 버튼 클릭시
- function fSave()
- {
- // 가족사항 그리드에서 필요없는 Row 삭제
- for (i=1; i < grd_list.rows; i++)
- {
- var rrgstno1 = grd_list.valueMatrix(i, grd_list.colRef("rrgstno1"));
- var rrgstno2 = grd_list.valueMatrix(i, grd_list.colRef("rrgstno2"));
- //alert(grd_targetlist.rowStatus(i));
-
- /*
- if (grd_list.rowStatus(i) == "0" && grdvalue.length > 0)
- {
- grd_list.addStatus(i, "update");
- }
- */
-
- if (rrgstno1.length == 0 || rrgstno2.length== 0)
- {
- //grd_list.deleteItem(i);
- grd_list.addStatus(i, "delete");
- }
- else
- {
- if (grd_list.rowStatus(i) == "1" || grd_list.rowStatus(i) == "2" || grd_list.rowStatus(i) == "3")
- {
- var rrgstno = rrgstno1.concat(rrgstno2);
- if (isResidentNo(rrgstno) == false)
- {
- messageBox(rrgstno + "은 유효하지 않은 주민번호입니다!","E999","");
- //model.setFocus("ipt_rrgstno1");
- grd_list.row = i;
- grd_list.col = 1;
-
- return;
- }
- }
-
- }
- }
- //model.makeNode("/root/send/savedata");
- model.setValue("/root/send/savedata", grd_list.getUpdateData());
- // reqExeDirOfHospFamyList
-
- if (submit("TXARH00801") == true)
- {
- // 처리되었습니다
- messageBox("저장", "I001");
-
- grd_list.clearStatus();
- fSearch();
- }
- else
- {
- messageBox("저장에", "E009");
- }
- }
-
- // 그리드 클릭시 entercell
- function fFamyEnterCell()
- {
- if (grd_list.rowStatus(grd_list.row) == "1" || grd_list.rowStatus(grd_list.row) == "3" )
- {
- grd_list.isReadOnly(grd_list.row, grd_list.colRef("rrgstno1")) = false;
- grd_list.isReadOnly(grd_list.row, grd_list.colRef("rrgstno2")) = false;
- if (grd_list.colType(grd_list.col) == "input")
- grd_list.editCell();
- }
- else
- {
- grd_list.isReadOnly(grd_list.row, grd_list.colRef("rrgstno1")) = true;
- grd_list.isReadOnly(grd_list.row, grd_list.colRef("rrgstno2")) = true;
-
- if (grd_list.colType(grd_list.col) == "input")
- grd_list.editCell();
- }
- }
-
-
- ]]>
- </script>
- <xhtml:body pagewidth="624" pageheight="347" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:608px; height:345px; "/>
- <group id="group5" scroll="auto" style="left:0px; top:320px; width:608px; height:25px; ">
- <button id="bt_cncl" class="btn4_letter2" style="left:543px; top:3px; width:56px; height:22px; ">
- <caption>취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.close();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:482px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSave();
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- <group id="group2" style="left:0px; top:0px; width:608px; height:320px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:6px; width:147px; height:14px; ">병원기본정보</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:21px; x2:605; y2:21px; "/>
- <line id="line2" class="line_2" style="x1:0px; y1:48px; x2:605px; y2:48px; "/>
- <line id="line6" class="line_3" style="x1:0px; y1:96px; x2:605px; y2:96px; "/>
- <input id="input43" ref="/root/main/list/hospinfo/zipcd1" class="input_default" disabled="true" style="left:118px; top:52px; width:43px; height:19px; "/>
- <caption id="caption53" class="cell_1" style="left:0px; top:50px; width:115px; height:45px; text-align:left; vertical-align:middle; ">주 소</caption>
- <input id="input44" ref="/root/main/list/hospinfo/addr" class="input_default" disabled="true" style="left:210px; top:52px; width:396px; height:19px; "/>
- <input id="input45" ref="/root/main/list/hospinfo/detladdr" class="input_default" disabled="true" style="left:118px; top:75px; width:487px; height:19px; "/>
- <input id="input35" ref="/root/main/list/hospinfo/coophospnm" class="input_default" disabled="true" style="left:119px; top:27px; width:215px; height:19px; "/>
- <input id="input36" ref="/root/main/list/hospinfo/dirofhospnm" class="input_default" disabled="true" style="left:453px; top:27px; width:152px; height:19px; "/>
- <caption id="caption6" class="cell_1" style="left:335px; top:25px; width:115px; height:23px; vertical-align:middle; ">병원장명</caption>
- <button id="button20" class="icon_search" disabled="true" visibility="hidden" style="left:211px; top:103px; width:16px; height:16px; ">
- <caption/>
- </button>
- <input id="input1" ref="/root/main/list/hospinfo/zipcd2" class="input_default" disabled="true" style="left:163px; top:52px; width:43px; height:19px; "/>
- <caption id="caption38" class="cell_1" style="left:0px; top:25px; width:115px; height:23px; vertical-align:middle; ">병원명칭</caption>
- <caption id="caption5" class="tit_2" style="left:5px; top:109px; width:111px; height:13px; ">가족사항</caption>
- <line id="line8" class="line_1" style="x1:0px; y1:124px; x2:605px; y2:124px; "/>
- <button id="btn_rowadd" class="btn2_letter3" _auth="X" style="left:490px; top:104px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGrdRowAdd();
- ]]>
- </script>
- </button>
- <button id="btn_rowdel" class="btn2_letter3" _auth="X" style="left:546px; top:104px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGrdRowDel();
- ]]>
- </script>
- </button>
- <datagrid id="grd_list" nodeset="/root/main/list/itemlist" caption="주민번호^주민번호^성명^관계^할인구분^진료할인^검진할인^caption1" colsep="^" colwidth="70, 70, 150, 80, 80, 60, 60, 100" dataheight="25" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="32" rowsep="|" style="left:0px; top:128px; width:605px; height:190px; ">
- <col class="input_essential" imemode="alpha" key="true" ref="rrgstno1" type="input" format="999999" maxlength="6" style="text-align:center; "/>
- <col class="input_essential" imemode="alpha" key="true" ref="rrgstno2" secretstartposition="1" type="input" format="9999999" maxlength="7" style="text-align:center; "/>
- <col imemode="hangul" ref="famynm" type="input" maxlength="16"/>
- <col imemode="hangul" ref="famyrel" type="combo">
- <choices>
- <itemset nodeset="/root/init/cmblist/famyref/P0438">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="discflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/cmblist/discflag/A0013A0488">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="orddiscyn" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="mediexamdiscyn" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="coophospcd" visibility="hidden"/>
- <script type="javascript" ev:event="onentercell">
- <![CDATA[
- fFamyEnterCell();
- ]]>
- </script>
- </datagrid>
- </group>
- </xhtml:body>
- </xhtml:html>
|