123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250 |
- <?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>
- <main>
- <qclist>
- <chk/>
- <prcpdd/>
- <natno/>
- <donvol/>
- <reptrslt/>
- <ph/>
- <cul/>
- <wbc/>
- <retestyn/>
- <dmdeliveyn/>
- <readdoctid/>
- <refdt/>
- </qclist>
- </main>
- <init>
- </init>
- <send>
- <fromdd/>
- <todd/>
- <donflag>2</donflag>
- <cnfmlist/>
- <cnfmflag/>
- </send>
- <hidden/>
- </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/tfHelper.js"/>
- <script type="javascript" src="../../../emr/carecomweb/js/ENRSignEngine.js"/>
- <submission id="TRLBD02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/qclist"/>
- <submission id="TXLBD02001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send"/>
- <bind id="bind0" ref="/root/main/qclist/chk" readonly="../chk/@readonly = 'true'"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInit();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function fInit(){
- model.setValue("/root/send/fromdd", getCurrentDate());
- model.setValue("/root/send/todd", getCurrentDate());
-
- model.refresh();
- }
-
- //조회
- function fGetQCList(){
- if(submit("TRLBD02001")){
- fSetGrid();
- }
- }
-
- //조회구분에 따른 그리드 colhidden
- function fSetGrid(){
- if(rdo_1.value == 1){ //HPC
- datagrid1.colHidden(datagrid1.colRef("ph")) = false;
- datagrid1.colHidden(datagrid1.colRef("wbc")) = false;
- }else{ //DGI
- datagrid1.colHidden(datagrid1.colRef("ph")) = true;
- datagrid1.colHidden(datagrid1.colRef("wbc")) = true;
- }
- }
-
- //확인 1:책임자, 2:헌혈실장
- function fExeCnfm(pRef){
- for(i = 1; i < datagrid1.rows; i++){
- if(model.getValue("/root/main/qclist[" + i + "]/chk") == "true"){
- datagrid1.addStatus(i, "update");
- }else{
- datagrid1.removeStatus(i, "update");
- }
- }
- if(!checkGridUpdate(datagrid1)){
- messageBox("저장할 자료가 존재하지 않아 실행", "E001");
- return;
- }
-
- model.setValue("/root/send/cnfmlist", datagrid1.getUpdateData());
- model.setValue("/root/send/cnfmflag", pRef);
-
- if(pRef == 2){
- if(Sign.signprocess()){
- }else{
- alert("인증실패");
- return;
- }
- }
-
- if(submit("TXLBD02001")){
- fGetQCList();
- }
- }
-
- //그리드 업데이트 대상 체크
- function checkGridUpdate(grid){
- var iData = grid.getUpdateDataXml("insert");
- var uData = grid.getUpdateDataXml("update");
- var dData = grid.getUpdateDataXml("delete");
- if (iData=="" && uData=="" && dData==""){
- return false;
- }else{
- return true;
- }
- }
-
- function fMake_SignData(){
- model.removeNodeset("/root/hidden/signdata"); //인증저장 정보 초기화
- model.makeNode("/root/hidden/signdata/signlist");
- copyNodeListType("/root/hidden/signdata/signlist" , "/root/main/qclist[chk = 'true']");
- Sign.addnode("/root/hidden/signdata");
- }
- ]]>
- </script>
- </model>
- </xhtml:head>
- <xhtml:body 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:224px; height:14px; ">헌혈 정도관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <line id="line1" class="line_1" style="x1:0px; y1:65px; x2:1194px; y2:65px; "/>
- <button id="button2" class="btn2_letter2" style="left:1152px; top:44px; width:42px; height:19px; ">
- <caption>엑셀</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var file = window.fileDialog("save","","true",rdo_1.label + "_정도관리","xls","All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if(file != "") {
- datagrid1.saveExcel(file);
- }
- ]]>
- </script>
- </button>
- <datagrid id="datagrid1" nodeset="/root/main/qclist" class="datagrid2" caption="^검사일^헌혈증 번호^Collect Vol.(ml)
(10\^3/nL)^측정 Yield^PH^배양^백혈구수
(10\^3/nL)^Pheresis 
Procedure점검^혈액관리
책임자확인^전문의^전문의확인일시" colsep="^" colwidth="25, 80, 120, 100, 80, 80, 80, 80, 100, 100, 100, 120" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" tooltip="true" style="left:0px; top:70px; width:1193px; height:670px; ">
- <col ref="chk" type="checkbox" style="text-align:center; "/>
- <col ref="prcpdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="natno" format="99-99-999999" style="text-align:center; "/>
- <col ref="donvol" style="text-align:center; "/>
- <col ref="reptrslt" style="text-align:center; "/>
- <col ref="ph" visibility="hidden" style="text-align:center; "/>
- <col ref="cul" style="text-align:center; "/>
- <col ref="wbc" visibility="hidden" style="text-align:center; "/>
- <col ref="dmdeliveyn" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="retestyn" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>Y</label>
- <value>Y</value>
- </item>
- <item>
- <label>N</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="readdoctid" style="text-align:center; "/>
- <col ref="refdt" format="yyyy-mm-dd hh:nn:ss" style="text-align:center; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- datagrid1.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <group id="group2" style="left:0px; top:5px; width:1195px; height:35px; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="20" ellipseheight="20" style="left:0px; top:0px; width:1195px; height:35px; "/>
- <line id="line11" class="line_4" style="x1:1114px; y1:7px; x2:1114px; y2:29px; "/>
- <button id="btn_search" class="btn1_letter2" style="left:1126px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetQCList();
- ]]>
- </script>
- </button>
- <caption id="caption7" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">시행일자 :</caption>
- <input id="input8" ref="/root/send/fromdd" class="input_s_essential" inputtype="date" style="left:105px; top:8px; width:90px; height:19px; "/>
- <input id="input9" ref="/root/send/todd" class="input_s_essential" inputtype="date" style="left:213px; top:8px; width:90px; height:19px; "/>
- <caption id="caption11" class="search_n_b" style="left:198px; top:9px; width:12px; height:17px; font-weight:bolder; ">~</caption>
- <caption id="caption8" class="search_name" style="left:415px; top:9px; width:86px; height:17px; ">조회구분 :</caption>
- <select1 id="rdo_1" ref="/root/send/donflag" class="radio_search" appearance="full" cellspacing="10" cols="3" overflow="visible" style="left:505px; top:9px; width:105px; height:18px; border-style:none; ">
- <choices>
- <item>
- <label>DGI</label>
- <value>2</value>
- </item>
- <item>
- <label>HPC</label>
- <value>1</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetGrid();
- ]]>
- </script>
- </select1>
- </group>
- <caption id="caption1" class="tit_2" style="left:5px; top:49px; width:131px; height:14px; ">정도관리 상세 내역</caption>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1195px; height:27px; ">
- <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="btn_init" class="btn4_letter3" navindex="8" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.reload();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter5" navindex="6" style="left:1035px; top:3px; width:92px; height:22px; ">
- <caption>전문의확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeCnfm(2);
- ]]>
- </script>
- </button>
- <button id="button1" class="btn4_letter5" navindex="6" style="left:943px; top:3px; width:92px; height:22px; ">
- <caption>책임자확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeCnfm(1);
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|