123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274 |
- <?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>Untitle</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list>
- <item>
- <useyn/>
- <suppdeptcd/>
- <excucd/>
- <excucdnm/>
- <drugadjtdd/>
- <dietregmdd/>
- <examrsrvdd/>
- <drugaftphotm/>
- <cureaftpohdd/>
- </item>
- </list>
- </main>
- <send>
- <srchexcucd/>
- <srchexcucdnm/>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <req/>
- </send>
- <temp>
- <templst>
- <list/>
- </templst>
- </temp>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- aezfSetSuppDeptcd();
-
- submit("TRAEA05002");
-
- model.refresh();
- ]]>
- </script>
- <submission id="TRZBC00101"/>
- <submission id="TXAEA05001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/hidden"/>
- <submission id="TRAEA05002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/list"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript">
- <![CDATA[
- function fSetCureOcd(vGrdObj, vSrcXPath, vDupCheckCol, vDupCheck, vCodeNode, vNameNode, vSessiondept, vHeaderAddRows ) {
- if( vGrdObj == null ) return ;
- if( vSrcXPath == "" ) return ;
- if( model.getValue("/root/temp/okflag") != "ok" ) return ;
-
- var cnt = getNodesetCount(vSrcXPath);
- if( vHeaderAddRows != "" ){
- grdcnt =parseInt( vGrdObj.rows) - parseInt( vHeaderAddRows ) ;
- }
- var vDupCheckVal = "";
- var i = 0;
- if( cnt == 1 ) {
-
- for( var i = 1 ; i <= cnt ; i++ ){
- vDupCheckVal = model.getValue(vSrcXPath + "[" + i + "]/calcscorcd" );
- if( vDupCheck == "Y" ) {
- if( fCheckDup(vGrdObj , vDupCheckCol, vDupCheckVal ) == false ){
- if( messageBox("중복되는 수가코드[" + vDupCheckVal + "] 를 추가", "S001") != 6 ){
- continue ;
- }
- }
- }
- }
- vGrdObj.addRow();
- grdcnt = grdcnt + 1;
- if( vCodeNode != "" ){
- model.makeValue(vGrdObj.nodeset + "[" + grdcnt + "]/" + vCodeNode , vDupCheckVal );
- }
- if( vNameNode != "" ){
- model.makeValue(vGrdObj.nodeset + "[" + grdcnt + "]/" + vNameNode , model.getValue(vSrcXPath + "/ordnm" ) );
- }
- model.makeNode(vGrdObj.nodeset + "[" + grdcnt + "]/excucd" );
- model.setValue(vGrdObj.nodeset + "[" + grdcnt + "]/excucd" , vDupCheckVal );
- model.makeNode(vGrdObj.nodeset + "[" + grdcnt + "]/excucdnm" );
- model.setValue(vGrdObj.nodeset + "[" + grdcnt + "]/excucdnm" , model.getValue(vSrcXPath + "/ordnm" ) );
- model.makeNode(vGrdObj.nodeset + "[" + grdcnt + "]/suppdeptcd" );
- model.setValue(vGrdObj.nodeset + "[" + grdcnt + "]/suppdeptcd" , vSessiondept );
- model.setValue(vGrdObj.nodeset + "[" + grdcnt + "]/useyn" , "Y" );
- } else {
- for( var i = 1 ; i <= cnt ; i++ ){
- vDupCheckVal = model.getValue(vSrcXPath + "[" + i + "]/calcscorcd" );
- if( vDupCheck == "Y" ) {
- if( fCheckDup(vGrdObj , vDupCheckCol, vDupCheckVal ) == false ){
- if( messageBox("중복되는 수가코드[" + vDupCheckVal + "] 를 추가", "S001") != 6 ){
- continue ;
- }
- }
- }
- model.setValue(vGrdObj.nodeset + "[" + i + "]/useyn" , "N" );
-
- vGrdObj.addRow();
-
- if( vCodeNode != "" ){
- model.setValue(vGrdObj.nodeset + "[" + grdcnt + "]/" + vCodeNode , vDupCheckVal );
- }
- if( vNameNode != "" ){
- model.setValue(vGrdObj.nodeset + "[" + grdcnt + "]/" + vNameNode , model.getValue(vSrcXPath + "[" + i + "]/ordnm" ) );
- }
- model.makeNode(vGrdObj.nodeset + "[" + grdcnt + "]/excucd" );
- model.setValue(vGrdObj.nodeset + "[" + grdcnt + "]/excucd" , vDupCheckVal );
- model.makeNode(vGrdObj.nodeset + "[" + grdcnt + "]/excucdnm" );
- model.setValue(vGrdObj.nodeset + "[" + grdcnt + "]/excucdnm" , model.getValue(vSrcXPath + "[" + i + "]/ordnm" ) );
- model.makeNode(vGrdObj.nodeset + "[" + grdcnt + "]/suppdeptcd" );
- model.setValue(vGrdObj.nodeset + "[" + grdcnt + "]/suppdeptcd" , vSessiondept );
- model.setValue(vGrdObj.nodeset + "[" + grdcnt + "]/useyn" , "Y" );
- grdcnt++;
- }
- }
- model.refresh();
- }
-
-
- function fCheckExCuCd() {
-
- var srchLength1 = model.instances(0).selectNodes( "/root/main/list/item" ).length;
-
- for ( var i = 1 ; i <= srchLength1; i++ ) {
-
- if ( model.getValue("/root/main/list/item["+i+"]/excucd") == "" ) {
- messageBox("검사코드[필수입력사항]를 입력 해야 합니다.","I999");
- return "1";
- }
- }
-
- }
-
- /*
-
- */
- function fGetNuclCureScheInfoList() {
-
- model.removenode("/root/main/list");
-
- submit("TRAEA05002");
-
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:5px; top:18px; width:1185px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <button id="btn_sea" class="btn1_letter2" style="left:1125px; top:26px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetNuclCureScheInfoList();
- ]]>
- </script>
- </button>
- <group id="grp_btn" style="left:0px; top:722px; width:1190px; height:27px; ">
- <button id="btn_prt" class="btn4_letter2" style="left:1130px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( messageBox("검사코드를","Q002")==6 ) {
-
- var check = fCheckExCuCd();
-
- if ( check == "1" ) return;
-
- model.makeValue("/root/send/req/data1", grd_list.getUpdateData());
-
- submit("TXAEA05001");
- model.setValue("/root/send/srchexcucd","");
- model.setValue("/root/send/srchexcucdnm","");
- btn_sea.dispatch("DOMActivate");
-
- }
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:173px; height:14px; ">치료 스케줄 기준정보 관리</caption>
- <input id="ipt_srchexamcurenm" ref="/root/send/srchexcucdnm" class="input_search" style="left:336px; top:27px; width:149px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_sea", "DOMActivate");
- ]]>
- </script>
- <hint>
- <![CDATA[검사코드12자리입력가능]]>
- </hint>
- </input>
- <input id="ipt_srchexamcurecd" ref="/root/send/srchexcucd" class="input_search" imemode="alpha" style="left:105px; top:27px; width:115px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_sea", "DOMActivate");
- ]]>
- </script>
- <hint>
- <![CDATA[검사코드12자리입력가능]]>
- </hint>
- </input>
- <caption id="caption2" class="search_name" style="left:15px; top:27px; width:86px; height:17px; ">검사코드 :</caption>
- <caption id="caption3" class="search_name" style="left:232px; top:27px; width:100px; height:17px; ">검사코드명 :</caption>
- <button id="button12" class="btn2_letter4" style="left:1126px; top:57px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if (fileName != "") {
- grd_list.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <caption id="caption1" class="tit_2" style="left:5px; top:62px; width:146px; height:14px; ">치료 코드 현황</caption>
- <line id="line13" class="line_4" style="x1:1117px; y1:26px; x2:1117px; y2:48px; "/>
- <datagrid id="grd_list" nodeset="/root/main/list/item" caption="사용여부^지원부서코드^코드^검사명^약물조절일^식이요법일^검사예약일^약물 투여후 촬영 시간^치료 후 촬영일" colsep="^" colwidth="69, 100, 120, 270, 130, 130, 130, 130, 130" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:78px; width:1185px; height:642px; ">
- <col checkvalue="Y,N" ref="useyn" type="radio"/>
- <col ref="suppdeptcd" visibility="hidden"/>
- <col ref="excucd" type="inputbutton"/>
- <col ref="excucdnm"/>
- <col ref="drugadjtdd" type="input" format="(-)#,###" style="text-align:right; "/>
- <col ref="dietregmdd" type="input" format="(-)#,###" style="text-align:right; "/>
- <col ref="examrsrvdd" type="input" format="(-)#,###" style="text-align:right; "/>
- <col ref="drugaftphotm" type="input" format="(-)#,###" style="text-align:right; "/>
- <col ref="cureaftpohdd" type="input" format="(-)#,###" style="text-align:right; "/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
-
- ]]>
- </script>
- </datagrid>
- <button id="btn_grddel" class="btn2_letter3" style="left:1071px; top:57px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- deleteSelectedRows(grd_list, true);
- ]]>
- </script>
- </button>
- <button id="btn_selcalcscorcd" class="btn2_letter9" style="left:950px; top:57px; width:119px; height:19px; ">
- <caption>검사코드조회및추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sessiondept = model.getValue("/root/send/globalinstance/instance1");
- fGetCalScorCd( "cd", "", "Y"/*bMultiyn*/ , "/root/temp/templst" /*vMultiDestXPath*/, "" /*vCdDestXPath*/, "" /*vNmDestXPath*/, "" /*vAmtDestXPath*/);
- fSetCureOcd(grd_list , "/root/temp/templst/list" , 2, "Y", "excucd", "excucdnm", sessiondept, "1" );
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|