123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374 |
- <?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="">
- <main>
- <userinfo>
- <userlist>
- <userid/>
- <usernm/>
- </userlist>
- </userinfo>
- </main>
- <send>
- <userid/>
- <pwd/>
- <execgb/>
- <rttmd/>
- </send>
- <execdata>
- <senddata>
- <sendlist>
- <userid/>
- <pwd/>
- <gb/>
- <appgb/>
- <ckno/>
- <cknoseq/>
- <trseq/>
- <diagnm1/>
- <diagnm2/>
- <diagnm3/>
- <pathology1/>
- <pathology2/>
- <pathology3/>
- <previous1/>
- <previous2/>
- <previous3/>
- <mdremark/>
- </sendlist>
- </senddata>
- </execdata>
- <popdata>
- <ckno/>
- <cknoseq/>
- <diagnm1/>
- <diagnm2/>
- <diagnm3/>
- <pathology1/>
- <pathology2/>
- <pathology3/>
- <previous1/>
- <previous2/>
- <previous3/>
- <mdremark/>
- <treatment>
- <treatmentlist>
- <check/>
- <image/>
- <curepartcnt/>
- <curefromdd/>
- <diagnm/>
- <cklocation/>
- <ckposition/>
- <isodose/>
- <mvdose/>
- <colsize/>
- <fracdose/>
- <fraction/>
- <totdose/>
- <elapday/>
- <targetvol/>
- <brthtime/>
- <fidutot/>
- <fiduuse/>
- <image/>
- <ckno/>
- <cknoseq/>
- <trseq/>
- <pretx/>
- <remark/>
- <statflag/>
- <rttmd/>
- </treatmentlist>
- </treatment>
- </popdata>
- <hidden/>
- <temp/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- if (checkOpener()) { //opener 검사
- var param = opener.javascript.getParameter("opener_parameter_id"); //opener parameter value를 get
- if(param != "") { // opener parameter value가 있는 경우
- // 첫번째 방법
- model.makeValue("/root/hidden/dflag",param);
- model.refresh();
-
- // 두번째 방법 parameter value를 이용하여 프로그램 수행
- // condarray = param.split("▦");
- // model.setValue("/root/main/patpsn/patpsninfo/index", condarray[0]);
- // model.setValue("/root/main/patpsn/patpsninfo/pid", condarray[1]);
- // model.setValue("/root/main/patpsn/patpsninfo/hngnm", condarray[2]);
- // model.setValue("/root/main/patpsn/patpsninfo/temptext",condarray[3]);
- // model.refresh();
- }
- }
-
- // var irow = getNodesetCount("/root/popdata");
- // irow = parseFloat(irow) + 1;
- // model.removeNodeset("/root/execdata/senddata/sendlist");
- copyNodesetType("/root/execdata/senddata", "/root/popdata/treatment", "replace", model, model);
- // if (model.getValue("/root/popdata/poplist[" + 1 + "]/appgb") == "Y"){ // Y:승인, N:승인취소
- if (model.getValue("/root/execdata/senddata/treatmentlist/appgb") == "Y"){ // Y:승인, N:승인취소
- btn_can.disabled = true;
- btn_app.disabled = false;
- }else{
- btn_app.disabled = true;
- btn_can.disabled = false;
- }
- // 대상자리스트를 가져온다
- if(model.getValue("/root/popdata/treatment/treatmentlist/rttmd") == "")
- {
- combo2.visible = true;
- model.setFocus("combo2");
- return false;
- }
-
- submit("TRAEA03909", false);
- model.setValue("/root/send/userid", getUserId());
- if( instance1.selectSingleNode("/root/main/userinfo/userlist[userid='" + getUserId() + "']") != null ){
- model.setFocus("input2");
- }else{
- model.setFocus("combo1");
- }
- model.refresh();
- ]]>
- </script>
- <submission id="TRAEA03909" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/popdata/treatment" resultref="/root/main/userinfo"/>
- <submission id="TXAOC05001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/execdata/senddata" resultref="/root/hidden"/>
- <submission id="TXAOC05002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/execdata/senddata" resultref="/root/hidden"/>
- <submission id="TXAEA03905" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/execdata/senddata" resultref="/root/hidden"/>
- <submission id="TXAEA03907" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/execdata/senddata" resultref="/root/main/userinfo"/>
- <script type="javascript" ev:event="xforms-model-destruct">
- <![CDATA[
- btn_exit.dispatch("DOMActivate");
- ]]>
- </script>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- <script type="javascript">
- <![CDATA[
- function fExecdata() {
- // if (model.getValue("/root/popdata/poplist[" + 1 + "]/appgb") == "Y"){
- if (model.getValue("/root/execdata/senddata/treatmentlist[" + 1 + "]/appgb") == "Y"){
- btn_app.dispatch("DOMActivate");
- }else{
- btn_can.dispatch("DOMActivate");
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="280" pageheight="160" guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:255px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:142px; height:14px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">승인관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:1px; top:15px; width:254px; height:95px; ">
- <caption id="caption45" class="cell_1" style="left:35px; top:20px; width:90px; height:23px; ">승인자 ID</caption>
- <caption id="caption1" class="cell_1" style="left:35px; top:55px; width:90px; height:23px; ">PASSWORD</caption>
- <input id="input1" ref="/root/send/userid" navindex="1" style="left:130px; top:21px; width:100px; height:19px; text-align:left; "/>
- <input id="input2" ref="/root/send/pwd" navindex="2" style="left:130px; top:56px; width:100px; height:19px; text-align:left; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if(event.keyCode == "13") {
- inputEnterKey("button1","DOMActivate");
- }
- ]]>
- </script>
- </input>
- <select1 id="combo1" ref="/root/send/userid" appearance="minimal" style="left:130px; top:21px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/main/userinfo/userlist">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setFocus("input2");
- ]]>
- </script>
- </select1>
- </group>
- <button id="btn_app" class="btn4_letter2" navindex="3" style="left:55px; top:115px; width:56px; height:22px; ">
- <caption>승인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/send/userid") == ""){
- messageBox("승인자 ID는 필수 입력항목입니다.", "E999", "");
- return;
- }
- if (model.getValue("/root/send/pwd") == ""){
- messageBox("PASSWORD는 필수 입력항목입니다.", "E999", "");
- return;
- }
-
- var a = instance1.selectNodes("/root/execdata/senddata/treatmentlist").length;
- var k = 0;
-
- for (i=0; i<a; i++){
- // model.makeValue("/root/execdata/senddata/treatmentlist/userid", model.getValue("/root/send/userid"));
- // model.makeValue("/root/execdata/senddata/treatmentlist/pwd", model.getValue("/root/send/pwd"));
- // model.makeValue("/root/execdata/senddata/treatmentlist/rttmd", model.getValue("/root/popdata/treatment/treatmentlist/rttmd"));
- k=k+1;
-
- model.makeValue("/root/execdata/senddata/treatmentlist["+ k +"]/userid", model.getValue("/root/send/userid"));
- model.makeValue("/root/execdata/senddata/treatmentlist["+ k +"]/pwd", model.getValue("/root/send/pwd"));
- model.makeValue("/root/execdata/senddata/treatmentlist["+ k +"]/rttmd", model.getValue("/root/popdata/treatment/treatmentlist/rttmd"));
- }
-
- if(submit("TXAEA03905")){
- //messageBox("정상적으로 승인 처리되었습니다.", "E999", "");
-
- // 이미지 삭제할때 계정확인이 정상적으로 승이된 플래그 확인 전달하기
- opener.model.makeValue("/root/hidden/dflag",'Y');
-
- btn_exit.dispatch("DOMActivate");
- }
- /* if (model.getValue("/root/send/userid") == ""){
- messageBox("승인자 ID는 필수 입력항목입니다.", "E999", "");
- return;
- }
- if (model.getValue("/root/send/pwd") == ""){
- messageBox("PASSWORD는 필수 입력항목입니다.", "E999", "");
- return;
- }
- var irow = getNodesetCount("/root/popdata/treatment");
-
- alert("처리건수:" + irow);
-
- irow = parseFloat(irow) + 1;
- var kk = 0;
- for (var i = 1; i < irow; i++){
- kk = parseFloat(kk) + 1;
- model.makeValue("/root/execdata/senddata/treatmentlist/userid", model.getValue("/root/send/userid"));
- model.setValue("/root/execdata/senddata/treatmentlist[" + kk + "]/pwd", model.getValue("/root/send/pwd"));
- }
- model.setValue("/root/send/execgb", "N");
- if (submit("TXAEA03905")){
- model.setValue("/root/send/execgb", "Y");
- messageBox("정상적으로 승인 처리되었습니다.", "E999", "");
- btn_exit.dispatch("DOMActivate");
- }
- */
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- btn_app.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <button id="btn_can" class="btn4_letter4" navindex="4" style="left:115px; top:115px; width:80px; height:22px; ">
- <caption>승인취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/send/userid") == ""){
- messageBox("승인자 ID는 필수 입력항목입니다.", "E999", "");
- return;
- }
- if (model.getValue("/root/send/pwd") == ""){
- messageBox("PASSWORD는 필수 입력항목입니다.", "E999", "");
- return;
- }
-
- var a = instance1.selectNodes("/root/execdata/senddata/treatmentlist").length;
- var k = 0;
-
- for (i=0; i<a; i++){
-
- // model.makeValue("/root/execdata/senddata/treatmentlist/userid", model.getValue("/root/send/userid"));
- // model.makeValue("/root/execdata/senddata/treatmentlist/pwd", model.getValue("/root/send/pwd"));
- // model.makeValue("/root/execdata/senddata/treatmentlist/rttmd", model.getValue("/root/popdata/treatment/treatmentlist/rttmd"));
- k=k+1;
-
- model.makeValue("/root/execdata/senddata/treatmentlist["+ k +"]/userid", model.getValue("/root/send/userid"));
- model.makeValue("/root/execdata/senddata/treatmentlist["+ k +"]/pwd", model.getValue("/root/send/pwd"));
- model.makeValue("/root/execdata/senddata/treatmentlist["+ k +"]/rttmd", model.getValue("/root/popdata/treatment/treatmentlist/rttmd"));
- }
-
- if(submit("TXAEA03907")){
- // messageBox("정상적으로 승인취소 처리되었습니다.", "E999", "");
- btn_exit.dispatch("DOMActivate");
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- btn_can.dispatch("DOMActivate");
- ]]>
- </script>
- </button>
- <button id="btn_exit" class="btn1_letter2" navindex="5" style="left:198px; top:115px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>종료</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var execgb = model.property("execgb");
- var userid = model.property("userid");
- if(execgb != ""){
- parent.model.setValue(execgb,model.getValue("/root/send/execgb"));
- }
- if(userid != ""){
- parent.model.setValue(userid,model.getValue("/root/send/userid"));
- }
- opener.model.refresh();
- window.close();
- ]]>
- </script>
- </button>
- <button id="button1" class="btn4_letter2" navindex="3" visibility="hidden" style="left:165px; top:90px; width:56px; height:22px; ">
- <caption>임시</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExecdata();
- ]]>
- </script>
- </button>
- <select1 id="combo2" ref="/root/popdata/treatment/treatmentlist/rttmd" visibility="hidden" appearance="minimal" style="left:130px; top:10px; width:100px; height:19px; ">
- <choices>
- <item>
- <label>RTT</label>
- <value>2</value>
- </item>
- <item>
- <label>Physics</label>
- <value>3</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- submit("TRAEA03909", false);
- model.setValue("/root/send/userid", getUserId());
- if( instance1.selectSingleNode("/root/main/userinfo/userlist[userid='" + getUserId() + "']") != null ){
- model.setFocus("input2");
- }else{
- model.setFocus("combo1");
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- </xhtml:body>
- </xhtml:html>
|