123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278 |
- <?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>
- <headinfo>
- <headlist>
- <headcd/>
- <headnm/>
- <seqno/>
- <hardspec/>
- <harccdno/>
- </headlist>
- </headinfo>
- <tmpldtmn>
- <condqry/>
- <headcd/>
- <headnm/>
- </tmpldtmn>
- </main>
- <send>
- <condition>
- <fromdd/>
- <todd/>
- <ddflag/>
- <searchkind/>
- </condition>
- <savedata/>
- <cond>
- <condqry/>
- <hardcdno/>
- <headcd/>
- </cond>
- <reqdata/>
- </send>
- <hidden>
- <headinfo>
- <headlist/>
- </headinfo>
- <hardcdinfo>
- <hardcdlist/>
- </hardcdinfo>
- </hidden>
- <init>
- <headwidth>
- <headwidthlist>
- </headwidthlist>
- </headwidth>
- <hardcd/>
- </init>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../emr/qiweb/js/SMMQI00101.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/CareCom.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fMakeHeadWidthComboNode();
- fInitialization();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fInitialization(){
- mmbfGetHardCodeInfo("/root/send/reqdata", "/root/init/hardcd", 9949);
- //하드코드 테이블 체크
- fGetHardCDList("N", 9949, 0 , "/root/init/hardcd");
-
- var cnt = getNodesetCnt(model, "/root/init/hardcd/hardcd");
- adminchk = "";
-
- for(var i=1; i<=cnt; i++){
- var dutplcecd = model.getValue("/root/init/hardcd/hardcd[" + i + "]/hardcd");
-
- if(getUserInfo("dutplcecd") == dutplcecd){
- adminchk=true;
- break;
- }
- }
-
- if ( adminchk == true ){
- btn_set.visible = true;
- }else{
- btn_set.visible = false;
- }
-
- model.removeNodeset("/root/main/headinfo/headlist");
- model.removeNodeset("/root/hidden/headinfo/headlist");
-
- copyNodesetType("/root/send/condition", "/root/main/cond", "replace", model, opener.model);
- model.refresh();
-
- var recflag = model.getValue("/root/send/condition/searchkind");
-
- // fGetHardcdno() 함수는 SMMQI00101.js에 포함
- model.makeValue("/root/send/condition/hardcdno", fGetHardcdno_title(recflag, getScreenID()));
-
- if(submit("TRMQI00104")){
- fHeadinfoInit();
- }
- }
-
- function fHeadinfoInit(){
- copyNodesetType("/root/main/headinfo", "/root/hidden/headinfo","replace");
- grd_headlist.rebuild();
- fColorChangeRows("#E6A947");
- }
-
- function fColorChangeRows(color){
- var nRows = getNodesetCount("/root/main/headinfo/headlist");
- var sToday = getCurrentDate();
-
- for(var i = 1; i<=nRows; i++){
- if(model.getValue("/root/main/headinfo/headlist["+i+"]/valitodd") < sToday){
- grd_headlist.rowStyle(i, "data", "background-color") = color;
- }
- }
- }
-
- function fMakeHeadWidthComboNode(){
-
- var nInitValue = 10;
-
- for(var i=10; i<=30; i++){
- model.makeValue("/root/init/headwidth/headwidthlist["+ eval(i - 9) +"]/nm", i * nInitValue);
- model.makeValue("/root/init/headwidth/headwidthlist["+ eval(i - 9) +"]/cd", i * nInitValue);
- model.refresh();
- }
- }
- ]]>
- </script>
- <submission id="TRMQI00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/condition" resultref="/root/hidden/headinfo/headlist"/>
- <submission id="TRMQI00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/hidden/hardcdinfo/hardcdlist"/>
- <submission id="TXMQI00104" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/savedata"/>
- <submission id="TXMQI00105" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cond"/>
- </model>
- </xhtml:head>
- <xhtml:body pagewidth="1024" pageheight="768" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:0px; width:1001px; height:730px; ">
- <line id="line1" class="line_1" style="x1:0px; y1:25px; x2:1000px; y2:25px; "/>
- <caption id="lbl_title" class="tit_2" style="left:0px; top:10px; width:260px; height:13px; ">일괄목록 항목수정</caption>
- <datagrid id="grd_headlist" nodeset="/root/main/headinfo/headlist" caption="항목이름^순서^너비^비고^사용여부^적용시작기간^적용종료기간^평가코드^연동쿼리^항목코드^harccdno" colsep="^" colwidth="150, 50, 50, 355, 57, 6, 10, 100, 114, 100, 100" frozencols="1" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:30px; width:1000px; height:695px; ">
- <col ref="headnm" type="input"/>
- <col ref="seqno" type="input"/>
- <col ref="headwidth" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/headwidth/headwidthlist">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="headcomment" type="input"/>
- <col ref="apply" type="checkbox"/>
- <col ref="valifromdd" visibility="hidden" format="yyyy-mm-dd"/>
- <col ref="valitodd" visibility="hidden" format="yyyy-mm-dd"/>
- <col ref="ccode" type="input"/>
- <col ref="condqry"/>
- <col ref="headcd"/>
- <col ref="hardcdno"/>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- var sSeqno = model.getValue("/root/main/headinfo/headlist["+grd_headlist.row+"]/seqno");
- var sInitSeqno = model.getValue("/root/hidden/headinfo/headlist["+grd_headlist.row+"]/seqno");
- var sHeadWidth = model.getValue("/root/main/headinfo/headlist["+grd_headlist.row+"]/headwidth");
- var sInitHeadWidth = model.getValue("/root/hidden/headinfo/headlist["+grd_headlist.row+"]/headwidth");
-
- if(!sSeqno.isNumber()){
- messageBox("숫자만 입력할 수","I010");
- model.setValue("/root/main/headinfo/headlist["+grd_headlist.row+"]/seqno", sInitSeqno);
- return;
- }
- ]]>
- </script>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- // 관리자이면서 항목코드 더블클릭시에만.
- if( grd_headlist.isCell(event.target) && grd_headlist.row >= grd_headlist.fixedRows && grd_headlist.col == grd_headlist.colRef("condqry")
- && adminchk == true ){
- group1.visible = true;
- grd_headlist.disabled = true;
- model.setValue("/root/main/tmpldtmn/condqry", model.getValue("/root/main/headinfo/headlist["+grd_headlist.row+"]/condqry"));
- txa_condqry.refresh();
- grd_headlist.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <button id="button1" class="btn4_letter2" style="left:800px; top:2px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInitialization();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter2" style="left:942px; top:2px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/savedata", grd_headlist.getUpdateData());
- if(submit("TXMQI00104")){
- fInitialization();
- }
- ]]>
- </script>
- </button>
- <group id="group1" visibility="hidden" style="left:165px; top:110px; width:710px; height:525px; border-color:#333333; border-style:solid; ">
- <textarea id="txa_condqry" ref="/root/main/tmpldtmn/condqry" style="left:3px; top:34px; width:696px; height:477px; "/>
- <caption id="caption1" class="tit_2" style="left:4px; top:6px; width:98px; height:13px; ">조회쿼리수정</caption>
- <line id="line2" class="line_1" style="x1:4px; y1:26px; x2:699px; y2:26px; "/>
- <button id="btn_exe" class="btn4_letter2" style="left:584px; top:4px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/cond/condqry", model.getValue("/root/main/tmpldtmn/condqry"));
- model.setValue("/root/send/cond/hardcdno", model.getValue("/root/send/condition/hardcdno"));
- model.setValue("/root/send/cond/headcd", model.getValue("/root/main/headinfo/headlist["+ grd_headlist.row +"]/headcd"));
- if(submit("TXMQI00105")){
- // group1.visible = false;
- // fInitialization();
- }
- ]]>
- </script>
- </button>
- <button id="button3" class="btn4_letter2" style="left:644px; top:4px; width:56px; height:22px; ">
- <caption>닫기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/main/tmpldtmn/condqry", "");
- group1.visible = false;
- grd_headlist.disabled = false;
- model.refresh();
- ]]>
- </script>
- </button>
- <output id="output1" ref="/root/main/tmpldtmn/headcd" style="left:109px; top:4px; width:100px; height:19px; "/>
- <output id="output2" ref="/root/main/tmpldtmn/headnm" style="left:214px; top:4px; width:305px; height:19px; "/>
- </group>
- <button id="btn_set" class="btn4_letter4" style="left:859px; top:2px; width:80px; height:22px; ">
- <caption>쿼리수정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if ( grd_headlist.row < 1 ) {
- return;
- }
- if ( group1.visible == false ){
- group1.visible = true;
- grd_headlist.disabled = true;
- model.setValue("/root/main/tmpldtmn/condqry", model.getValue("/root/main/headinfo/headlist["+grd_headlist.row+"]/condqry"));
- model.setValue("/root/main/tmpldtmn/headcd", model.getValue("/root/main/headinfo/headlist["+grd_headlist.row+"]/headcd"));
- model.setValue("/root/main/tmpldtmn/headnm", model.getValue("/root/main/headinfo/headlist["+grd_headlist.row+"]/headnm"));
- txa_condqry.refresh();
- grd_headlist.refresh();
-
- }else{
- group1.visible = false;
- model.setValue("/root/main/tmpldtmn/condqry", "");
- model.setValue("/root/main/tmpldtmn/headcd", "");
- model.setValue("/root/main/tmpldtmn/headnm", "");
- txa_condqry.refresh();
- }
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|