123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- [개발이력]
- 2010.01.11 / 최초작성 /김상민
- -->
- <?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>
- <list01>
- <gridtstlist/>
- </list01>
- </main>
- <send>
- <fromdd/>
- <todd/>
- <orddeptcd/>
- <orddrid/>
- <judgrid/>
- <inptsel/>
- <con1/>
- <con2/>
- <mskind/>
- <tststndrdcd/>
- <con3/>
- <tststndrdnm/>
- <selectetstlist/>
- <updatedata>
- <datalist/>
- </updatedata>
- <updatememo>
- <pid/>
- <indd/>
- <cretno/>
- <seqno/>
- <memo/>
- <mskind/>
- </updatememo>
- <tststndrdcdlist/>
- <tststndrdcdnm/>
- </send>
- <init>
- <orddeptcdlist>
- <cd/>
- <nm/>
- </orddeptcdlist>
- <orddrid>
- <cd/>
- <nm/>
- </orddrid>
- </init>
- <hidden>
- <tstrmk/>
- <sppiz00700>
- <cond>
- <judgrid/>
- <memoflag/>
- <memocls/>
- <ediitem1/>
- </cond>
- <rslt>
- <memocd/>
- <memo/>
- </rslt>
- </sppiz00700>
- </hidden>
- <temp>
- <tststndrdlist>
- </tststndrdlist>
- </temp>
- <globalvalue>
- <currow/>
- </globalvalue>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- // 공통코드를 로드한다.
- CommCode_Load();
-
- // 화면 실행 시 그리드 행이 하나도 안보이도록 한다.
- //model.removeNodeset("/root/main/list01/griduncoinfo");
- model.refresh();
-
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post" replace="instance"/>
- <submission id="TRPIJ02801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list01"/>
- <submission id="TRPID20201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/init/tmp"/>
- <submission id="TRPIJ02802" mediatype="application/x-www-form-urlencoded" method="post" replace="instance" resultref="/root/temp"/>
- <submission id="TXPIJ02803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updatedata"/>
- <submission id="TXPIJ02804" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updatedata"/>
- <submission id="TXPIJ02805" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/updatememo"/>
- </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="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript">
- <![CDATA[
- // 공통코드 Load작업
- function CommCode_Load() {
- // 관련 Control 초기화
- zbcfGetCodeList(new Array("P0010"), new Array("/root/init/P0010list")); // 보조유형
- zbcfGetCodeList(new Array("P0370"), new Array("/root/init/P0370list")); // 미수처리구분
-
- fInitialize();
- }
-
- // 2007.09.07 초기화 함수
- function fInitialize(){
-
- //submit("TRPID20309");
-
- // ---------------------------------------------------------------
- // 청구과, 심사자, 진료과, 주치의, 청구차수, 삼시자선택 초기화
- // ---------------------------------------------------------------
- submit("TRPID20201",false);
-
- model.removeNodeset("root/init/judgrid");
- model.removeNodeset("root/init/suppkind");
- model.removeNodeset("root/init/orddrid");
- model.removeNodeset("root/init/orddrid2");
- model.removeNodeset("root/init/clamdept");
- model.removeNodeset("root/init/orddeptcd");
- model.removeNodeset("root/init/orddeptcd2");
- model.removeNodeset("root/init/item3");
- model.removeNodeset("root/init/clamdg");
-
- model.makeNode("root/init/judgrid");
- model.makeNode("root/init/suppkind");
- model.makeNode("root/init/orddrid");
- model.makeNode("root/init/orddrid2");
- model.makeNode("root/init/clamdept");
- model.makeNode("root/init/orddeptcd");
- model.makeNode("root/init/orddeptcd2");
- model.makeNode("root/init/item3");
- model.makeNode("root/init/clamdg");
-
- model.copyNode("root/init/judgrid", "root/init/tmp/judgrid");
- model.copyNode("root/init/suppkind", "root/init/tmp/suppkind");
- model.copyNode("root/init/orddrid", "root/init/tmp/orddrid");
- model.copyNode("root/init/orddrid2", "root/init/tmp/orddrid2");
- model.copyNode("root/init/clamdept", "root/init/tmp/clamdept");
- model.copyNode("root/init/orddeptcd", "root/init/tmp/orddeptcd");
- model.copyNode("root/init/orddeptcd2", "root/init/tmp/orddeptcd2");
- model.copyNode("root/init/item3", "root/init/tmp/item3");
- model.copyNode("root/init/clamdg", "root/init/tmp/clamdg");
-
- model.removeNodeset("root/init/tmp/judgrid");
- model.removeNodeset("root/init/tmp/suppkind");
- model.removeNodeset("root/init/tmp/orddrid");
- model.removeNodeset("root/init/tmp/orddrid2");
- model.removeNodeset("root/init/tmp/clamdept");
- model.removeNodeset("root/init/tmp/orddeptcd");
- model.removeNodeset("root/init/tmp/orddeptcd2");
- model.removeNodeset("root/init/tmp/item3");
- model.removeNodeset("root/init/tmp/clamdg");
- model.resetInstanceNode("/root/send/selectetstlist");
-
- // 평가종류조회
- // ---------------------------------------------------------------
- submit("TRPIJ02802");
-
- model.setValue("/root/send/tststndrdcd", model.getValue("/root/temp/tststndrdlist/tststndrdcd"));
- model.setValue("/root/send/tststndrdnm", model.getValue("/root/temp/tststndrdlist/tststndrdnm"));
-
- // 조회 조건 입력값 초기화
- combo2.value = "I";
- var curDate = getCurrentDate();
- model.setValue("/root/send/fromdd", curDate);
- model.setValue("/root/send/todd", curDate);
-
- //addComboItem("cmb_tststndrd","전체","","above");
- //조회기간 보임
- ipt_fromdd.disabled = false;
- ipt_todd.disabled = false;
- //재원만 체크 보임
- chk_all.disabled = false;
-
- //조회조건 보임
- radio1.disabled = false;
- radio2.disabled = false;
-
- //평가종류 보임
- btn_tstlist.disabled = true;
- cmb_tststndrd.disabled = false;
-
- rdo_con1.value = "A";
- opt_tstlist.value = "";
- radio1.value = "A";
- radio2.value = "A";
-
- chk_tstlist.visible = false;
-
- // 그리드 공라인 없애기
- model.removeNodeset("/root/main/list01/griduncoinfo");
- model.refresh();
-
- }
-
-
- function fSearch(){
- var af = model.getValue("/root/send/tststndrdcdlist");
- var bf = model.getValue("");
-
- var cnt = af.length;
-
- if(model.getValue("/root/send/tststndrdcdlist") != " " || model.getValue("/root/send/tststndrdcdlist") != "" ) {
- bf = af.replace(" ", "','");
- for(var i=1; i < cnt; i++){
- bf = bf.replace(" ", "','");
-
- if(bf.substr(0,1) != "'"){
- bf = "'" + bf + "'";
- }
- }
- }
-
- model.setValue("/root/send/tststndrdcdlist", bf);
- /*
- var tststndrdcdlist = model.getValue("/root/send/tststndrdcdlist");
-
- if(tststndrdcdlist == " " || tststndrdcdlist == ""){
- model.setValue("/root/send/tststndrdcdlist", "A");
- }
- */
- if(submit("TRPIJ02801")){
-
- //평가대상자 중복 제거 로직
- if( getNodesetCount("/root/main/list01/gridtstlist") < 1 ){
- messageBox("검색된 대상자가 없습니다.", "E999", "");
- return;
- }
- else{ //INSTCD, PID, INDD, CRETNO
- for(var i=1; i < grd_tstlist.rows; i++){
-
- for(var j=i+1; j < grd_tstlist.rows; j++){
- if(model.getValue("/root/main/list01/gridtstlist[" + i + "]/pid") == model.getValue("/root/main/list01/gridtstlist[" + j + "]/pid")){
- if(model.getValue("/root/main/list01/gridtstlist[" + i + "]/indd") == model.getValue("/root/main/list01/gridtstlist[" + j + "]/indd")){
- if(model.getValue("/root/main/list01/gridtstlist[" + i + "]/cretno") == model.getValue("/root/main/list01/gridtstlist[" + j + "]/cretno")){
- if(model.getValue("/root/main/list01/gridtstlist[" + i + "]/testgrup") == model.getValue("/root/main/list01/gridtstlist[" + j + "]/testgrup")){
- grd_tstlist.deleteItem(j);
- }
- }
- }
- }
- }
-
- }
- }
-
-
- }
- }
-
- // SPPIZ00700_심사Comment조회.xrw 호출(심사자메모,EDI메모)
- function fGetJudgEdiComment(memoflag, memocls) {
- model.resetInstanceNode("/root/hidden/sppiz00700/rslt");
- model.resetInstanceNode("/root/hidden/sppiz00700/cond");
- model.setValue("/root/hidden/sppiz00700/cond/memoflag", memoflag);
- model.setValue("/root/hidden/sppiz00700/cond/memocls", memocls);
- modal("SPPIZ00700" ,"", "10", "10", "SPPIZ00700", "/root/hidden/sppiz00700", "/root/send/sppiz00700", "", "");
- }
-
- function fSetTstMemoRefresh(){
-
- var cur_row = model.getValue("/root/globalvalue/currow");
-
- var memo = model.getValue("/root/hidden/sppiz00700/rslt/memo");
-
- var bfmemo = model.getValue("/root/main/list01/gridtstlist["+ cur_row +"]/memo");
-
- if( bfmemo == '-' || bfmemo == '' || bfmemo == ' '){
- //bfTelRsrvRem = telrsrvrem;
- }else{
- memo = bfmemo + " " + memo;
- }
-
- model.setValue("/root/hidden/tstrmk",memo);
- //model.setValue("/root/main/list01/gridtstlist["+ cur_row +"]/memo",tmp + memo);
-
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1194;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:254px; height:14px; ">평가대상자관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:760px; ">
- <caption id="caption1" class="tit_2" style="left:6px; top:124px; width:121px; height:13px; ">평가대상자리스트</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:139px; x2:1194px; y2:139px; "/>
- <group id="group4" style="left:0px; top:10px; width:1194px; height:105px; vertical-align:top; ">
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:105px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line2" class="line_4" style="x1:1121px; y1:12px; x2:1121px; y2:89px; border-color:#ffe4bb; border-left-style:solid; "/>
- <button id="btn_srch" class="btn1_letter2" style="left:1132px; top:37px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearch();
- ]]>
- </script>
- </button>
- <caption id="cap_orddeptcd" class="search_name" style="left:479px; top:14px; width:86px; height:17px; ">진료과 :</caption>
- <caption id="cap_dd" class="search_name" style="left:6px; top:14px; width:86px; height:17px; ">조회기간 :</caption>
- <input id="ipt_todd" ref="/root/send/todd" class="input_search" navindex="2" inputtype="date" format="yyyy-mm-dd" style="left:295px; top:13px; width:85px; height:19px; "/>
- <caption id="caption2" style="left:280px; top:13px; width:11px; height:18px; ">~</caption>
- <input id="ipt_fromdd" ref="/root/send/fromdd" class="input_search" navindex="1" inputtype="date" format="yyyy-mm-dd" style="left:193px; top:13px; width:85px; height:19px; "/>
- <select id="chk_all" ref="/root/send/inptsel" overflow="visible" appearance="full" style="left:385px; top:15px; width:80px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>재원환자만</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-deselect">
- <![CDATA[
- ipt_fromdd.disabled = false;
- ipt_todd.disabled = false;
- model.setValue("/root/send/fromdd",getCurrentDate());
- model.setValue("/root/send/todd",getCurrentDate());
- //alert(model.getValue("/root/temp/fromdd"));
- //alert(model.getValue("/root/temp/todd"));
- model.refresh();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- ipt_fromdd.disabled = true;
- ipt_todd.disabled = true;
- model.setValue("/root/send/fromdd","");
- model.setValue("/root/send/todd","");
- model.refresh();
- ]]>
- </script>
- </select>
- <select1 id="cmb_orddeptcd" ref="/root/send/orddeptcd" class="combo_search" appearance="minimal" style="left:555px; top:13px; width:120px; 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[
- var orddeptcd = model.getValue("/root/send/orddeptcd");
-
- if (orddeptcd) {
- cmb_orddrid.choices.itemset.attribute("nodeset") = "/root/init/orddrid/orddridlist[dp='" + orddeptcd + "']";
- cmb_orddrid.disabled = false;
- } else {
- cmb_orddrid.disabled = true;
- }
- model.setValue("/root/send/orddrid", ""); // 주치의 선택을 초기화한다.
- model.refresh();
- ]]>
- </script>
- </select1>
- <select1 id="cmb_orddrid" ref="/root/send/orddrid" class="combo_search" appearance="minimal" style="left:783px; top:13px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/orddrid/orddridlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption9" class="search_name" style="left:693px; top:14px; width:86px; height:17px; ">진료의사 :</caption>
- <caption id="caption3" class="search_name" style="left:915px; top:13px; width:91px; height:17px; ">심 사 자 :</caption>
- <select1 id="cmb_judgrid" ref="/root/send/judgrid" class="combo_search" appearance="minimal" style="left:1015px; top:13px; width:90px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/judgrid/judgridlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption4" class="search_name" style="left:6px; top:59px; width:86px; height:17px; ">조회조건 :</caption>
- <select1 id="rdo_con1" ref="/root/send/con2" overflow="visible" appearance="full" cols="5" rows="1" style="left:95px; top:40px; width:135px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- <item>
- <label>관리대상만</label>
- <value>B</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var con1 = model.getValue("/root/send/con2");
-
- if(con1 == "A"){
- //조회기간 보임
- ipt_fromdd.disabled = false;
- ipt_todd.disabled = false;
- //재원만 체크 보임
- chk_all.disabled = false;
-
- //조회조건 보임
- radio1.disabled = false;
- radio2.disabled = false;
-
- //평가종류 보임
- btn_tstlist.disabled = true;
- cmb_tststndrd.disabled = false;
- opt_tstlist.value = "";
- input1.value = "";
-
- }else if(con1 == "B"){
- //조회기간 숨김
- ipt_fromdd.disabled = true;
- ipt_todd.disabled = true;
- //재원만 체크 숨김
- chk_all.disabled = true;
-
- //조회조건 숨김
- radio1.disabled = true;
- radio2.disabled = true;
-
- //평가종류 숨김
- btn_tstlist.disabled = false;
- cmb_tststndrd.disabled = true;
- cmb_tststndrd.value = "";
- }
-
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption5" class="search_name" style="left:479px; top:59px; width:86px; height:17px; ">평가종류 :</caption>
- <select1 id="cmb_tststndrd" ref="/root/send/tststndrdcdnm" class="combo_search" appearance="minimal" style="left:585px; top:59px; width:175px; height:19px; ">
- <choices>
- <itemset nodeset="/root/temp/tststndrdlist">
- <label ref="tststndrdnm"/>
- <value ref="tststndrdcd"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo2" ref="/root/send/con1" class="combo_search" appearance="minimal" style="left:95px; top:13px; width:95px; height:19px; ">
- <choices>
- <item>
- <label>입원일자</label>
- <value>I</value>
- </item>
- <item>
- <label>퇴원일자</label>
- <value>D</value>
- </item>
- </choices>
- </select1>
- <select1 id="radio1" ref="/root/send/con3" overflow="visible" appearance="full" cols="5" rows="1" style="left:95px; top:60px; width:195px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- <item>
- <label>진료상병</label>
- <value>O</value>
- </item>
- <item>
- <label>심사상병</label>
- <value>J</value>
- </item>
- </choices>
- </select1>
- <select1 id="radio2" ref="/root/send/mskind" overflow="visible" appearance="full" cols="5" rows="1" style="left:95px; top:80px; width:195px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>A</value>
- </item>
- <item>
- <label>주상병</label>
- <value>M</value>
- </item>
- </choices>
- </select1>
- <button id="btn_tstlist" class="icon_search" style="left:960px; top:59px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(chk_tstlist.visible == "" ||chk_tstlist.visible == "false" ){
- chk_tstlist.visible = true;
- }else {
- chk_tstlist.visible = false;
- }
-
- //addComboItem("chk_tstlist","전체","","above");
-
- //평가종류 뿌려주기
- opt_tstlist.value = chk_tstlist.label;
- input1.value = chk_tstlist.value;
-
- ]]>
- </script>
- </button>
- <output id="opt_tstlist" class="output_search" style="left:765px; top:59px; width:193px; height:19px; "/>
- <input id="input1" ref="/root/send/tststndrdcdlist" visibility="hidden" style="left:960px; top:80px; width:145px; height:19px; "/>
- </group>
- <col type="checkbox"/>
- <button id="button3" class="btn2_letter4" style="left:1130px; top:118px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
-
- if (fileName != "") {
- grd_tstlist.saveExcel(fileName, "SheetName", true, true, "", "", "");
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_tstlist" nodeset="/root/main/list01/gridtstlist" visibility="visible" caption="선택^적용^예고^평가종류^평가종류^진료과^등록번호^환자명^성별^나이^유형^메모^입원일자^퇴원일자^심사상병^진료상병^관련처방^처방명^심사자^cretno^mskind^seqno^orddeptcd" colsep="^" colwidth="35, 35, 36, 40, 120, 75, 75, 70, 35, 35, 35, 75, 75, 75, 100, 100, 100, 120, 93, 100, 100, 100, 100, 100, 100" dataheight="25" explorerbar="sortshowmove" extendlastcol="false" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:144px; width:1194px; height:583px; ">
- <col checkvalue="Y,N" ref="chkbox" type="checkbox"/>
- <col ref="useyn" style="text-align:center; "/>
- <col ref="dschdclrtyn" style="text-align:center; "/>
- <col ref="testgrup" style="text-align:center; "/>
- <col ref="testgrupnm" style="text-align:center; "/>
- <col ref="orddeptnm" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="sex" style="text-align:center; "/>
- <col ref="age" style="text-align:center; "/>
- <col ref="insukind" style="text-align:center; "/>
- <col ref="memo" type="inputbutton" _chartype="upper"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- grp_tstmemo.visible = true;
-
- var cur_row = grd_tstlist.row;
-
- var memo = model.getValue("/root/main/list01/gridtstlist["+ cur_row +"]/memo");
- var useyn = model.getValue("/root/main/list01/gridtstlist["+ cur_row +"]/useyn");
-
- if(useyn == "N"){
- btn_savememo.disabled = true;
- }else{
- btn_savememo.disabled = false;
- }
-
- model.setValue("/root/globalvalue/currow", cur_row);
- model.setValue("/root/hidden/tstrmk", memo);
-
- model.refresh();
- ]]>
- </script>
- <col ref="indd" style="text-align:center; "/>
- <col ref="dschdd" style="text-align:center; "/>
- <col ref="judgdiagcd" style="text-align:right; "/>
- <col ref="diagcd" style="text-align:right; "/>
- <col ref="calcscorcd" style="text-align:right; "/>
- <col ref="calcscornm" visibility="visible" style="text-align:right; "/>
- <col ref="judgrnm" visibility="visible" style="text-align:right; "/>
- <col ref="cretno" visibility="hidden" style="text-align:center; "/>
- <col ref="mskind" visibility="hidden" style="text-align:center; "/>
- <col ref="seqno" visibility="hidden" style="text-align:center; "/>
- <col ref="orddeptcd" visibility="hidden" style="text-align:center; "/>
- <col ref="medispclid" visibility="hidden" style="text-align:center; "/>
- <col ref="mainjudgid" visibility="hidden" style="text-align:center; "/>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
-
- ]]>
- </script>
- <script type="javascript" ev:event="oncopy">
- <![CDATA[
- // 그리드 내용 복사
- if (grd_tstlist.selectedRows == 1) { // 한줄
- var row = grd_tstlist.row;
- var col = grd_tstlist.col;
- if (col == grd_tstlist.colRef("pid") ) {
- // 등록번호
- var clip = grd_tstlist.labelMatrix(row, col);
- window.clipBoardData = clip;
- } else {
- grid_oncopy(); // (tfHelper.js) window.clipBoardData 복사 기능
- }
- }
- else if (grd_tstlist.selectedRows > 1) { // 여러줄
- grid_oncopy(); // (tfHelper.js) window.clipBoardData 복사 기능
- }
- ]]>
- </script>
- </datagrid>
- <group id="grp_tstmemo" visibility="hidden" style="left:315px; top:220px; width:620px; height:371px; border-color:#c7a3cf; border-style:solid; ">
- <caption id="cpt_detail" class="tit_2" style="left:5px; top:0px; width:118px; height:14px; ">평가관리 메모</caption>
- <line id="line4" class="line_1" style="x1:0px; y1:15px; x2:602px; y2:15px; "/>
- <textarea id="txt_tstrmk" ref="/root/hidden/tstrmk" scroll="vertical" imemode="hangul" maxlength="1750" style="left:5px; top:45px; width:599px; height:294px; vertical-align:top; "/>
- <button id="btn_closememot" class="btn4_letter2" style="left:546px; top:342px; width:56px; height:22px; ">
- <caption>
- <![CDATA[닫기]]>
- </caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grp_tstmemo.visible = false;
- ]]>
- </script>
- </button>
- <button id="btn_savememo" class="btn4_letter2" style="left:486px; top:342px; width:56px; height:22px; ">
- <caption>
- <![CDATA[저장]]>
- </caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var cur_row = model.getValue("/root/globalvalue/currow");
-
- var tstrmk = model.getValue("/root/hidden/tstrmk");
-
- model.setValue("/root/main/list01/gridtstlist["+ cur_row +"]/memo", tstrmk);
-
-
- grp_tstmemo.visible = false;
-
- //이미 저장된 데이터의 경우 수정, 저장이 안된 데이터는 화면에 세팅만
- if(model.getValue("/root/main/list01/gridtstlist["+ cur_row +"]/useyn") == "Y"){
- model.setValue("/root/send/updatememo/pid", model.getValue("/root/main/list01/gridtstlist["+ cur_row +"]/pid"));
- model.setValue("/root/send/updatememo/indd", model.getValue("/root/main/list01/gridtstlist["+ cur_row +"]/indd"));
- model.setValue("/root/send/updatememo/cretno", model.getValue("/root/main/list01/gridtstlist["+ cur_row +"]/cretno"));
- model.setValue("/root/send/updatememo/seqno", model.getValue("/root/main/list01/gridtstlist["+ cur_row +"]/seqno"));
- model.setValue("/root/send/updatememo/mskind", model.getValue("/root/main/list01/gridtstlist["+ cur_row +"]/mskind"));
- model.setValue("/root/send/updatememo/memo", tstrmk);
-
- submit("TXPIJ02805")
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_memohistory_treat" class="btn2_letter2" _auth="X" style="left:183px; top:24px; width:42px; height:19px; ">
- <caption>분만</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // SPPIZ00700_심사Comment조회.xrw 호출
- fGetJudgEdiComment("6", "14"); // memocls - 메모분류(01:약, 02:주사, 03:처치, 04:검사, 99:기타)
- ]]>
- </script>
- </button>
- <button id="btn_memohistory" class="btn2_letter4" _auth="X" style="left:4px; top:24px; width:64px; height:19px; ">
- <caption>평가공통</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // SPPIZ00700_심사Comment조회.xrw 호출
- fGetJudgEdiComment("6", "11");
- ]]>
- </script>
- </button>
- <button id="btn_memohistory_injection" class="btn2_letter3" _auth="X" style="left:127px; top:24px; width:53px; height:19px; ">
- <caption>CABG</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // SPPIZ00700_심사Comment조회.xrw 호출
- fGetJudgEdiComment("6", "13"); // memocls - 메모분류(01:약, 02:주사, 03:처치, 04:검사, 99:기타)
- ]]>
- </script>
- </button>
- <button id="btn_memohistory_drug" class="btn2_letter3" _auth="X" style="left:71px; top:24px; width:42px; height:19px; ">
- <caption>AMI</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // SPPIZ00700_심사Comment조회.xrw 호출
- fGetJudgEdiComment("6", "12"); // memocls - 메모분류(01:약, 02:주사, 03:처치, 04:검사, 99:기타)
- ]]>
- </script>
- </button>
- <button id="button6" class="btn2_letter3" _auth="X" style="left:228px; top:24px; width:53px; height:19px; ">
- <caption>뇌졸증</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // SPPIZ00700_심사Comment조회.xrw 호출
- fGetJudgEdiComment("6", "15");
- ]]>
- </script>
- </button>
- <button id="button8" class="btn2_letter5" _auth="X" style="left:284px; top:24px; width:75px; height:19px; ">
- <caption>예방항생제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- // SPPIZ00700_심사Comment조회.xrw 호출
- fGetJudgEdiComment("6", "16"); // memocls - 메모분류(01:약, 02:주사, 03:처치, 04:검사, 99:기타)
- ]]>
- </script>
- </button>
- </group>
- <button id="button4" class="btn2_letter4" navindex="4" style="left:923px; top:118px; width:64px; height:19px; ">
- <caption>전체취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(var i=1; i < grd_tstlist.rows; i++){
- model.setValue("/root/main/list01/gridtstlist[" + i + "]/chkbox", "N");
- //grd_orddeptcdlist.fixedcellischeck(0,1) = false;
- }
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button5" class="btn2_letter4" navindex="3" style="left:854px; top:118px; width:64px; height:19px; ">
- <caption>전체선택</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- for(var i=1; i < grd_tstlist.rows; i++){
- if(model.getValue("/root/main/list01/gridtstlist[" + i + "]/useyn") != "Y"){
- model.setValue("/root/main/list01/gridtstlist[" + i + "]/chkbox", "Y");
- }
- }
-
- model.refresh();
-
- ]]>
- </script>
- </button>
- <button id="button1" class="btn5_letter4" navindex="4" style="left:1061px; top:118px; width:64px; height:19px; ">
- <caption>대상해제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var startRow = grd_tstlist.fixedRows;
- var endRow = grd_tstlist.rows;
-
- //대상해제 내역 확인
- for( var i = startRow; i < endRow; i++){
- if(model.getValue("/root/main/list01/gridtstlist["+ i +"]/chkbox") == 'Y' ){
- if(model.getValue("/root/main/list01/gridtstlist["+ i +"]/useyn") == 'N' ){
- messageBox("선택한 항목중에 해제 할 대상이 존재하지 않는 항목이 존재합니다. 확인 후 다시 시도해 주세요. ","E999");
- return;
- }
- }
- }
-
- var nodeList = instance1.selectNodes("/root/main/list01/gridtstlist[chkbox='Y']");
- var rCSV = getNodeListCSV(nodeList);
-
- if( rCSV == "" || rCSV == null || rCSV == undefined){
- //messageBox("일정을 생성할 기준자료가 선택되지 않았습니다.", "E999", "");
- messageBox("해제할 대상이 선택되지", "E007");
- return false;
- }
-
- if(messageBox("선택된 대상을 적용해제 하시겠습니까?", "Q999") != 6){
- return false;
- }
-
- model.resetInstanceNode("/root/send/updatedata");
- model.setValue("/root/send/updatedata/datalist", rCSV);
-
- //model.alert(model.getValue("/root/send/updatedata/datalist"));
-
-
- if(submit("TXPIJ02804")){
-
- var srow = grd_tstlist.fixedRows;
- var erow = grd_tstlist.rows;
- var checkRow = startRow;
-
- checkRow = srow;
- for( var i = srow; i < erow; i++){
-
- if( grd_tstlist.valueMatrix( checkRow, grd_tstlist.colRef("chkbox") ) == 'Y' ){
- //디비에서 삭제한 데이터를 그리드에서 삭제한다.
- grd_tstlist.deleteItem(checkRow);
- }else{
- checkRow++;
- }
- }
-
- messageBox("선택하신 대상이 해제되었습니다.. ","E999");
- }
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter4" navindex="3" style="left:992px; top:118px; width:64px; height:19px; ">
- <caption>대상적용</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var startRow = grd_tstlist.fixedRows;
- var endRow = grd_tstlist.rows;
-
-
- //적용대상 내역 확인
- for( var i = startRow; i < endRow; i++){
- if(model.getValue("/root/main/list01/gridtstlist["+ i +"]/chkbox") == 'Y' ){
- if(model.getValue("/root/main/list01/gridtstlist["+ i +"]/useyn") == 'Y' ){
- messageBox("선택한 항목중에 이미 적용된 대상이 존재합니다. 확인 후 다시 시도해 주세요. ","E999");
- return;
- }
- }
- }
-
- //대상자 적용시 평가메모 자동입력 로직
- for( var i = startRow; i < endRow; i++){
- if(model.getValue("/root/main/list01/gridtstlist["+ i +"]/chkbox") == 'Y' ){
- var memo = model.getValue("/root/main/list01/gridtstlist["+ i +"]/memo");
- var testgrup = model.getValue("/root/main/list01/gridtstlist["+ i +"]/testgrup");
- var testgrupnm = model.getValue("/root/main/list01/gridtstlist["+ i +"]/testgrupnm");
-
- if( memo == '-' || memo == '' || memo == ' '){
-
- model.setValue("/root/main/list01/gridtstlist["+ i +"]/memo", testgrupnm + "(" + testgrup + ") 평가 대상자 입니다\n");
-
- }else{
-
- model.setValue("/root/main/list01/gridtstlist["+ i +"]/memo", memo + "\n"+ testgrupnm + "(" + testgrup + ") 평가 대상자 입니다\n");
-
- }
- }
- }
-
- var nodeList = instance1.selectNodes("/root/main/list01/gridtstlist[chkbox='Y']");
- var rCSV = getNodeListCSV(nodeList);
-
- if( rCSV == "" || rCSV == null || rCSV == undefined){
- messageBox("적용할 대상이 선택되지", "E007");
- return false;
- }
-
-
- if(messageBox("선택된 대상을 적용하시겠습니까?", "Q999") != 6){
- return;
- }
-
-
- model.resetInstanceNode("/root/send/updatedata");
- model.setValue("/root/send/updatedata/datalist", rCSV);
-
- if(submit("TXPIJ02803")){
-
- var srow = grd_tstlist.fixedRows;
- var erow = grd_tstlist.rows;
- var checkRow = startRow;
-
- checkRow = srow;
- for( var i = srow; i < erow; i++){
-
- if( grd_tstlist.valueMatrix( checkRow, grd_tstlist.colRef("chkbox") ) == 'Y' ){
- //디비에서 삭제한 데이터를 그리드에서 삭제한다.
- grd_tstlist.deleteItem(checkRow);
- }else{
- checkRow++;
- }
- }
-
- messageBox("선택하신 대상이 적용되었습니다. ","E999");
- }else{
- messageBox("일정생성이 비정상 종료!", "I999");
- return;
- }
- ]]>
- </script>
- </button>
- <select id="chk_tstlist" ref="/root/send/selectetstlist" class="checkbox_search" visibility="hidden" overflow="visible" appearance="full" style="left:765px; top:90px; width:190px; height:15px; background-color:#e5eae9; border-style:none; ">
- <choices>
- <itemset nodeset="/root/temp/tststndrdlist">
- <label ref="tststndrdnm"/>
- <value ref="tststndrdcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </select>
- <group id="group2" scroll="auto" style="left:0px; top:727px; width:1195px; height:27px; ">
- <button id="btn_saveSche7" class="btn4_letter3" style="left:1126px; top:5px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </button>
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- </group>
- </group>
- </xhtml:body>
- </xhtml:html>
|