123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/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>
- <patinfo>
- <patinfolist>
- <pid/>
- <hngnm/>
- <engnm/>
- <chinm/>
- <rrgstno1/>
- <rrgstno2/>
- <brthdd/>
- <sex/>
- <age/>
- <bindpid/>
- <hometel/>
- <mpphontel/>
- <etctel1/>
- <etctel2/>
- <smsaprvyn/>
- <email/>
- <zipcd1/>
- <zipcd2/>
- <zipcdseq/>
- <addr/>
- <detladdr/>
- <btype/>
- <rh/>
- <forgeryn/>
- <nati/>
- <psptno/>
- <recmyn/>
- <recmerid/>
- <recmerrela/>
- <vipyn/>
- <viprem/>
- <religncd/>
- <baptnm/>
- <chchnm/>
- <dethyn/>
- <dethdt/>
- <chosresn/>
- <animyn/>
- <exptresncd/>
- <inhospyn/>
- <remfact/>
- <outuncoamt/>
- <dschuncoamt/>
- <fstrgstrid/>
- <fstrgstdt/>
- <lastupdtrid/>
- <lastupdtdt/>
- </patinfolist>
- </patinfo>
- <popupendflag/>
- <spec>
- <choiordapplist/>
- </spec>
- <choiordapp>
- <orddeptcd/>
- <orddrid/>
- <fromdd/>
- <todd/>
- <apppsnnm/>
- <rela/>
- <remfact/>
- <pid/>
- <seqno/>
- </choiordapp>
- <result>
- <patinfo/>
- </result>
- </main>
- <send>
- <pid/>
- <updatedata>
- <datalist/>
- </updatedata>
- </send>
- <init>
- <P0016list>
- <P0016>
- <cdnm/>
- <cdid/>
- </P0016>
- </P0016list>
- <orddeptcd>
- <orddeptcdlist>
- <cd/>
- <nm/>
- </orddeptcdlist>
- </orddeptcd>
- <orddrid>
- <orddridlist>
- <cd/>
- <nm/>
- <dp/>
- <sp/>
- </orddridlist>
- </orddrid>
- </init>
- <hidden>
- <uid>
- <childre>
- <wid/>
- </childre>
- </uid>
- <tmp/>
- </hidden>
- <source>
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- </source>
- </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/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <submission id="TRPAM00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/hidden/tmp"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- zbcfGetCodeList(new Array("P0016"), new Array("/root/init/P0016list"));
- pamGetDeptCDDrIDList();
- fInitialize();
- //model.refresh();
- ]]>
- </script>
- <submission id="TRPMC02500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/source" resultref="/root/main/result/patinfo"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPMC01501" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/spec"/>
- <submission id="TXPMC01502" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updatedata" resultref="/root/hidden/tmp"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- //model.removeNodeset("/root/main/insukindcdspec/insukindcdspeclist");
- model.resetInstanceNode("/root/send");
- model.resetInstanceNode("/root/main/choiordapp");
- model.resetInstanceNode("/root/main/patinfo/patinfolist");
- model.removeNodeset("/root/main/spec/choiordapplist");
-
- model.setFocus("ipt_pid");
- model.refresh();
- }
- /*
- //환자 정보 조회 후 환자의 나이를 계산하고, 메인화면의 fSearch() 함수를 호출한다.
- function fGetAge(){
- var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- if(pid != "" || pid != null){
-
- var birthdd = model.getValue("/root/main/patinfo/patinfolist/brthdd");
- if (isValidDateTime(birthdd,"YYYYMMDD") == true) {
- var age = getFullAge(birthdd);
- model.makeNode("/root/main/patinfo/patinfolist/age");
- model.setValue("/root/main/patinfo/patinfolist/age", age);
- model.refresh();
- }
- //fSearch는 인적사항 화면을 임포트 해간 화면에서 구현해 주어야 하는 함수이다.
- model.setValue("/root/main/popupendflag", "ok");
- fSearch();
- }
- }
- */
- //선택진료신청내역 조회
- function fSearch(){
-
- if( model.getValue("/root/main/popupendflag") == "ok" ){
- var pid = model.getValue("/root/main/patinfo/patinfolist/pid");
- if( pid.length <= 0 ){
- messageBox("환자번호가 정확이 입력되지", "E007");
- return false;
- }
- model.setValue("/root/send/pid", pid);
-
- model.resetInstanceNode("/root/main/choiordapp");
- model.removeNodeset("/root/main/spec/choiordapplist");
- submit("TRPMC01501");
-
- //var rowCnt = grd_choiordapp.rows - grd_choiordapp.fixedRows + 1;
- //if(rowCnt < 2){
- //fAddRow();
- //}
- }
-
- }
-
- //선택진료신청내역 리스트 한행 추가
- function fAddRow(){
-
- grd_choiordapp.addItem(); // 입력할 행 추가.
- var cur_row = grd_choiordapp.bottomRow; // 추가된 행 번호 가져오기
- // 그리드에 추가
- model.setValue("/root/main/spec/choiordapplist["+cur_row+"]/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,717;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group4" scroll="auto" style="left:0px; top:616px; width:719px; height:27px; ">
- <button id="button10" class="btn4_letter3" style="left:651px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <button id="button4" class="btn4_letter2" style="left:592px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/updatedata/datalist",grd_choiordapp.getupdatedata());
-
- if ( submit("TXPMC01502") ) {
- model.copyNode("/root/main/spec", "/root/hidden/tmp");
- //grd_insukind.clearStatus(); // submit() 성공하면 그리드의 i,u 상태 제거
- //submit("TRPMB00201");
- model.refresh();
- grd_choiordapp.clearStatus();
-
- }
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:719px; y2:0px; "/>
- </group>
- <group id="group2" scroll="auto" style="left:0px; top:13px; width:719px; height:603px; ">
- <group id="group5" style="left:0px; top:0px; width:719px; height:197px; ">
- <caption id="caption45" class="cell_1" style="left:0px; top:102px; width:100px; height:95px; vertical-align:middle; ">참고사항</caption>
- <line id="line22" class="line_3" style="x1:0px; y1:196px; x2:718px; y2:196px; "/>
- <output id="input20" ref="/root/main/patinfo/patinfolist/mpphontel" class="output_fix" appearance="output" style="left:618px; top:55px; width:100px; height:19px; "/>
- <output id="input22" ref="/root/main/patinfo/patinfolist/etctel1" class="output_fix" appearance="output" style="left:618px; top:79px; width:100px; height:19px; "/>
- <caption id="caption2" class="tit_2" style="left:5px; top:10px; width:95px; height:13px; ">인적사항</caption>
- <line id="line14" class="line_2" style="x1:0px; y1:100px; x2:718px; y2:100px; "/>
- <line id="line15" class="line_2" style="x1:0px; y1:76px; x2:718px; y2:76px; "/>
- <line id="line16" class="line_2" style="x1:0px; y1:52px; x2:718px; y2:52px; "/>
- <line id="line17" class="line_1" style="x1:0px; y1:25px; x2:718px; y2:25px; "/>
- <textarea id="textarea2" ref="/root/main/patinfo/patinfolist/remfact" disabled="true" style="left:103px; top:103px; width:615px; height:91px; "/>
- <input id="ipt_hngnm" ref="/root/main/patinfo/patinfolist/hngnm" class="input_s_essential" navindex="2" imemode="hangul" style="left:103px; top:55px; width:203px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- model.setValue("/root/source/srchcond", "2");
- model.setValue("/root/source/hngnm", ipt_hngnm.currentText);
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <output id="input21" ref="/root/main/patinfo/patinfolist/engnm" class="output_fix" appearance="output" style="left:309px; top:55px; width:203px; height:19px; "/>
- <output id="input23" ref="/root/main/patinfo/patinfolist/brthdd" class="output_fix" format="yyyy-mm-dd" appearance="output" style="left:412px; top:79px; width:100px; height:19px; "/>
- <output id="output1" ref="/root/main/patinfo/patinfolist/sex" class="output_fix" style="left:412px; top:31px; width:49px; height:19px; "/>
- <output id="output5" ref="/root/main/patinfo/patinfolist/age" class="output_fix" style="left:464px; top:31px; width:48px; height:19px; "/>
- <output id="input19" ref="/root/main/patinfo/patinfolist/hometel" class="output_fix" appearance="output" style="left:618px; top:31px; width:100px; height:19px; "/>
- <input id="ipt_rrgstno1" ref="/root/main/patinfo/patinfolist/rrgstno1" class="input_s_essential" navindex="3" maxlength="6" format="999999" style="left:103px; top:79px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- model.setValue("/root/source/srchcond", "3");
- model.setValue("/root/source/rrgstno1", ipt_rrgstno1.currentText);
- model.setValue("/root/source/rrgstno2", ipt_rrgstno2.currentText);
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <input id="ipt_rrgstno2" ref="/root/main/patinfo/patinfolist/rrgstno2" class="input_s_essential" navindex="4" maxlength="7" style="left:206px; top:79px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- model.setValue("/root/source/srchcond", "3");
- model.setValue("/root/source/rrgstno1", ipt_rrgstno1.currentText);
- model.setValue("/root/source/rrgstno2", ipt_rrgstno2.currentText);
- inputEnterKey("btn_search", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_search" class="icon_search" navindex="5" style="left:290px; top:31px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPPMC02500", "1","150", "150", "SPPMC02500", "/root/source", "/root/send");
- fSearch();
- //환자 나이 계산과 메인화면의 fSearch() 함수 콜!
- //fGetAge();
- ]]>
- </script>
- </button>
- <input id="ipt_pid" ref="/root/main/patinfo/patinfolist/pid" class="input_s_essential" navindex="1" maxlength="10" style="left:103px; top:31px; width:184px; height:19px; ">
- <script type="javascript" ev:event="onkeypress">
- <![CDATA[
- if(event.keyCode == "13") {
- model.setValue("/root/source/srchcond", "1");
- model.setValue("/root/source/pid", ipt_pid.currentText);
- //inputEnterKey("btn_search", "DOMActivate");
-
- //환자등록번호 체크
- if(ipt_pid.currentText.length >= 1 ){
-
- model.resetInstanceNode("/root/main/result");
- model.makeNode("/root/main/result/patinfo");
-
- if(submit("TRPMC02500")){
- //fSearch는 인적사항 화면을 임포트 해간 화면에서 구현해 주어야 하는 함수이다.
- if( getNodesetCount("/root/main/result/patinfo/patinfolist") > 0 ){
- model.copyNode("/root/main/patinfo", "/root/main/result/patinfo");
- model.setValue("/root/main/popupendflag", "ok");
- fSearch();
- }else{
- model.resetInstanceNode("/root/main/patinfo/patinfolist");
- messageBox("없는 환자 번호 입니다.", "E999", "");
-
- }
- }
-
- model.refresh();
- }else{
- messageBox("환자등록번호를 정확히", "C001");
- }
-
- }
- ]]>
- </script>
- </input>
- <caption id="caption21" class="cell_1" style="left:0px; top:30px; width:100px; height:23px; vertical-align:middle; ">환자번호</caption>
- <caption id="caption22" class="cell_1" style="left:515px; top:30px; width:100px; height:23px; vertical-align:middle; ">전화[자택]</caption>
- <caption id="caption34" class="cell_1" style="left:515px; top:54px; width:100px; height:23px; vertical-align:middle; ">전화[휴대]</caption>
- <caption id="caption23" class="cell_1" style="left:0px; top:54px; width:100px; height:23px; vertical-align:middle; ">성명[한/영]</caption>
- <caption id="caption57" class="cell_1" style="left:309px; top:30px; width:100px; height:23px; vertical-align:middle; ">성별/나이</caption>
- <caption id="caption35" class="cell_1" style="left:0px; top:78px; width:100px; height:23px; vertical-align:middle; ">주민번호</caption>
- <caption id="caption36" class="cell_1" style="left:515px; top:78px; width:100px; height:23px; vertical-align:middle; ">전화[기타]</caption>
- <caption id="caption47" class="cell_1" style="left:309px; top:78px; width:100px; height:23px; vertical-align:middle; ">생년월일</caption>
- </group>
- <group id="group6" style="left:0px; top:272px; width:719px; height:331px; ">
- <datagrid id="grd_choiordapp" nodeset="/root/main/spec/choiordapplist" autoresize="true" caption="시작일자^종료일자^진료과^진료의사^신청자^환자와의 관계^참고사항^seqno^pid" colsep="^" colwidth="85, 85, 130, 80, 80, 90, 145, 100, 100" dataheight="23" defaultrows="2" extendlastcol="false" mergecellsfixedrows="byrowrec" rowheader="update" rowheight="25" rowsep="|" style="left:1px; top:30px; width:718px; height:300px; ">
- <col disabled="true" ref="fromdd" type="inputdate"/>
- <col disabled="true" ref="todd" type="inputdate"/>
- <col ref="orddeptcd"/>
- <col ref="orddrid"/>
- <col disabled="true" ref="apppsnnm"/>
- <col disabled="true" ref="rela" type="combo">
- <choices>
- <itemset nodeset="/root/init/P0016list/P0016">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="remfact"/>
- <col ref="seqno" visibility="hidden"/>
- <col ref="pid" visibility="hidden"/>
- <script type="javascript" ev:event="onrowchanged">
- <![CDATA[
- var cur_row = grd_choiordapp.row;
- if ( cur_row > 0 ) {
- model.copyNode("/root/main/choiordapp","/root/main/spec/choiordapplist["+cur_row+"]");
- model.refresh();
- cmb_orddeptcd.dispatch("xforms-value-changed");
- model.setValue("/root/main/choiordapp/orddrid", model.getValue("/root/main/spec/choiordapplist["+cur_row+"]/orddrid"));
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption46" class="tit_2" style="left:5px; top:10px; width:165px; height:14px; ">선택진료신청내역 리스트</caption>
- <line id="line18" class="line_1" style="x1:0px; y1:25px; x2:718px; y2:25px; "/>
- <button id="button14" class="btn5_letter5" style="left:643px; top:5px; width:75px; height:19px; ">
- <caption>선택행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(messageBox("선택된 행을", "Q001") != 6) return;
-
- var cur_row = grd_choiordapp.row; // 행 번호 가져오기
-
- if( cur_row > 0 ){
- //디비에 저장되지 않은 데이타는 그냥 삭제한다. 1: insert , 3 : insert and update
- if (grd_choiordapp.rowStatus(cur_row) == "1" || grd_choiordapp.rowStatus(cur_row) == "3"){
- grd_choiordapp.deleteItem(cur_row);
- //grd_choiordapp.rebuild();
- model.refresh();
-
- return;
- }
- //'delete' 상태값을 세팅한다.
- grd_choiordapp.addStatus(cur_row, "delete");
- //삭제할 행의 정보를 send에 넣는다.
- model.setValue("root/send/updatedata/datalist", grd_choiordapp.getUpdateData("delete"));
-
- if ( submit("TXPMC01502") ) {
-
- grd_choiordapp.deleteItem( cur_row);
- model.refresh();
- //grd_choiordapp.rebuild();
- }else grd_choiordapp.removeStatus(cur_row, "delete");
-
- }else{
- messageBox("삭제할 행을 다시", "C002");
- grd_insukind.removeStatus(cur_row, "delete");
- }
- ]]>
- </script>
- </button>
- </group>
- <group id="group7" style="left:0px; top:197px; width:719px; height:78px; ">
- <line id="line20" class="line_2" style="x1:0px; y1:52px; x2:718px; y2:52px; "/>
- <caption id="caption37" class="cell_1" style="left:409px; top:30px; width:65px; height:23px; vertical-align:middle; ">시작일자</caption>
- <caption id="caption1" class="cell_1" style="left:0px; top:54px; width:65px; height:23px; vertical-align:middle; ">신청자</caption>
- <caption id="caption40" class="cell_1" style="left:0px; top:30px; width:65px; height:23px; vertical-align:middle; ">진료과</caption>
- <input id="input27" ref="/root/main/choiordapp/remfact" class="input_default" style="left:477px; top:55px; width:241px; height:19px; "/>
- <caption id="caption38" class="tit_2" style="left:5px; top:10px; width:165px; height:14px; ">선택진료신청내역</caption>
- <input id="ipt_fromdd" ref="/root/main/choiordapp/fromdd" class="input_default" inputtype="date" style="left:477px; top:31px; width:85px; height:19px; "/>
- <line id="line21" class="line_1" style="x1:0px; y1:25px; x2:718px; y2:25px; "/>
- <input id="ipt_todd" ref="/root/main/choiordapp/todd" class="input_default" inputtype="date" style="left:633px; top:31px; width:85px; height:19px; "/>
- <select1 id="cmb_orddeptcd" ref="/root/main/choiordapp/orddeptcd" class="combo_default" appearance="minimal" style="left:68px; top:31px; width:150px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddeptcd/orddeptcdlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp = '" + cmb_orddeptcd.value + "']";
- model.setValue("/root/main/choiordapp/orddrid", "");
- cmb_orddrid.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_orddrid" ref="/root/main/choiordapp/orddrid" class="combo_default" appearance="minimal" style="left:289px; top:31px; width:117px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddrid/orddridlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <input id="input2" ref="/root/main/choiordapp/apppsnnm" class="input_default" style="left:68px; top:55px; width:150px; height:19px; "/>
- <select1 id="combo1" ref="/root/main/choiordapp/rela" class="combo_default" appearance="minimal" style="left:289px; top:55px; width:117px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/P0016list/P0016">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if( combo1.value == '1' ){
-
- model.setValue("/root/main/choiordapp/apppsnnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.refresh();
- }
- ]]>
- </script>
- </select1>
- <caption id="caption39" class="cell_1" style="left:409px; top:54px; width:65px; height:23px; vertical-align:middle; ">참고사항</caption>
- <caption id="caption4" class="cell_1" style="left:565px; top:30px; width:65px; height:23px; vertical-align:middle; ">종료일자</caption>
- <caption id="caption3" class="cell_1" style="left:221px; top:30px; width:65px; height:23px; vertical-align:middle; ">진료의사</caption>
- <caption id="caption5" class="cell_1" style="left:221px; top:54px; width:65px; height:23px; vertical-align:middle; ">관계</caption>
- <line id="line19" class="line_3" style="x1:0px; y1:76px; x2:718px; y2:76px; "/>
- <button id="button1" class="btn2_letter3" style="left:665px; top:5px; width:53px; height:19px; ">
- <caption>지우기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/main/choiordapp");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter2" style="left:575px; top:5px; width:42px; height:19px; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- //입력값 체크
- if( model.getValue("/root/main/choiordapp/orddeptcd") == "" ){
- messageBox("진료과를 선택해 주세요.", "E999", "");
- }else if( model.getValue("/root/main/choiordapp/orddrid") == "" ){
- messageBox("진료의사를 선택해 주세요.", "E999", "");
- }
-
- grd_choiordapp.addItem(); // 입력할 행 추가.
- var cur_row = grd_choiordapp.bottomRow; // 추가된 행 번호 가져오기
-
- //시작일지 미 입력시 오늘 날자로 세팅
- if( model.getValue("/root/main/choiordapp/fromdd") == "" ){
- var curDate = getCurrentDate();
- model.setValue("/root/main/choiordapp/fromdd", curDate);
- }
-
- // 그리드에 추가
- model.copyNode("/root/main/spec/choiordapplist["+cur_row+"]","/root/main/choiordapp");
- //model.makeNode("/root/main/spec/choiordapplist["+cur_row+"]/pid");
- model.setValue("/root/main/spec/choiordapplist["+cur_row+"]/pid", model.getValue("/root/main/patinfo/patinfolist/pid"));
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button3" class="btn2_letter2" style="left:620px; top:5px; width:53px; height:19px; ">
- <caption>수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var cur_row = grd_choiordapp.row; // 행 번호 가져오기
-
- if( cur_row > 0 ){
- if( grd_choiordapp.valueMatrix( cur_row, 3 ) == cmb_orddeptcd.value &&
- grd_choiordapp.valueMatrix( cur_row, 4 ) == cmb_orddrid.value &&
- grd_choiordapp.valueMatrix( cur_row, 2 ) == ipt_todd.value){
-
- // 그리드에 추가
- model.copyNode("/root/main/spec/choiordapplist["+cur_row+"]","/root/main/choiordapp");
- grd_choiordapp.addStatus(cur_row,"update"); // 행을 업데이트 상태로 변경
- model.refresh();
-
- }else{
- cmb_orddeptcd.value = grd_choiordapp.valueMatrix( cur_row, 3 );
- cmb_orddeptcd.dispatch("xforms-value-changed");
- cmb_orddrid.value = grd_choiordapp.valueMatrix( cur_row, 4 );
- ipt_todd.value = grd_choiordapp.valueMatrix( cur_row, 2 );
- model.refresh();
-
- messageBox("진료과, 진료의사, 종료일자 컬럼은 변경", "E001");
- }
-
- }
- ]]>
- </script>
- </button>
- </group>
- </group>
- <group id="group1" style="left:0px; top:0px; width:719px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:13px; ">선택진료신청관리</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|