123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754 |
- <?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>
- <mainlist/>
- <nuclwlnlist/>
- <nucldelivelist/>
- <cnfmidinfo>
- <petcnfmid/>
- <petcnfmnm/>
- <nmcnfmid/>
- <nmcnfmnm/>
- <spccnfmid/>
- <spccnfmnm/>
- <bdirem/>
- <bdorem/>
- </cnfmidinfo>
- </main>
- <send>
- <srchdd/>
- <srchbdioflag/>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <mainlist/>
- <nuclwlnlist/>
- <nucldelivelist/>
- <compdwlnlist/>
- <compddelivelist/>
- <srchcnfmid/>
- <cnfmidinfo/>
- <codeflag/>
- <rerefyn/>
- </send>
- <tmp>
- <itemflag/>
- <rem/>
- <rexlist>
- <srchdd/>
- <paticnt/>
- <patocnt/>
- <patscnt/>
- <testqty/>
- <patsumcnt/>
- <scount/>
- <rem/>
- </rexlist>
- <iolist/>
- <srchdd/>
- <cond>
- <testcd/>
- <testnm/>
- </cond>
- <cnfminfo>
- <cnfmid/>
- <cnfmnm/>
- </cnfminfo>
- </tmp>
- <hidden>
- <cnfm>
- <nm/>
- <dt/>
- </cnfm>
- </hidden>
- <init/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- aezfSetSuppDeptcd();
- model.toggle("case2");
- model.setValue("/root/send/srchbdioflag","O");
- model.setValue("/root/send/srchdd", getCurrentDate() );
- model.setValue("/root/tmp/itemflag", "N");
- model.removeNodeset("/root/main/mainlist");
-
- //일계표 최종 확인자 및 확인일시 조회
- model.setValue("/root/send/codeflag","0125|0126|");
- submit("TRLZZ00101");
-
- model.setValue("/root/hidden/cnfm/nm", model.getValue("/root/init/LB0125/nm"));
- model.setValue("/root/hidden/cnfm/dt", model.getValue("/root/init/LB0125/cd"));
-
- if(model.getValue("/root/init/LB0126/nm") == "Y") { //Y이면 재조회 선택 변경요청 8991
- model.setValue("/root/send/rerefyn", "Y"); //재조회
- }
- model.refresh();
- ]]>
- </script>
- <submission id="TRAEQ00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/">
- <script type="javascript" ev:event="xforms-submit-done">
- <![CDATA[
-
- var rowcnt = grd_mainlist.rows;
- for(var i = 0; i < rowcnt; i++ )
- {
- if(model.getValue("/root/tmp/rem") == "")
- {
- model.setValue("/root/tmp/rem", model.getValue("/root/main/mainlist[" + i + "]/rem"));
- }
- }
- sortGrid(grd_mainlist);
-
- ]]>
- </script>
- </submission>
- <submission id="TXAEQ00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/result"/>
- <submission id="TRAEQ00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/tmp/iolist"/>
- <submission id="TRLNP00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/"/>
- <submission id="TRAEQ00403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/tmp/cnfminfo"/>
- <submission id="TXLNP00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB0125"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript">
- <![CDATA[
- function sortGrid(gridItem)
- {
- gridItem.subtotal("clear", 0, 0);
- gridItem.subtotal("sum", -1, 1, "#,###", "background-color:#ffff00; color:#0000ff; font-weight:bold; ",0, "총계");
- gridItem.subtotal("sum", -1, 2, "#,###", "background-color:#ffff00; color:#0000ff; font-weight:bold; ",0, "총계");
- gridItem.subtotal("sum", -1, 3, "#,###", "background-color:#ffff00; color:#0000ff; font-weight:bold; ",0, "총계");
- gridItem.subtotal("sum", -1, 4, "#,###", "background-color:#ffff00; color:#0000ff; font-weight:bold; ",0, "총계");
-
- var cnt = getNodesetCount("/root/main/cnfmidinfo");
-
- if (cnt == 0) {
- model.makeNode("/root/main/cnfmidinfo/petcnfmid");
- model.makeNode("/root/main/cnfmidinfo/petcnfmnm");
- model.makeNode("/root/main/cnfmidinfo/nmcnfmid");
- model.makeNode("/root/main/cnfmidinfo/nmcnfmnm");
- model.makeNode("/root/main/cnfmidinfo/spccnfmid");
- model.makeNode("/root/main/cnfmidinfo/spccnfmnm");
- model.makeNode("/root/main/cnfmidinfo/bdirem");
- model.makeNode("/root/main/cnfmidinfo/bdorem");
- model.makeNode("/root/main/bdoutexamcnt/patcnt");
- model.makeNode("/root/main/bdoutexamcnt/testcnt");
- }else{
- model.setValue("/root/main/cnfmidinfo/spccnfmid", "");
- model.setValue("/root/main/cnfmidinfo/spccnfmnm", "");
- }
-
-
- model.refresh();
- }
-
- function addRow(qtygridlistid) {
-
- grd_nuclwlnlist.addItem();
-
- grd_bodypart.addItem();
-
- var i = parseInt(grd_bodypart.row);
-
- model.setValue("/root/main/bodypartlist/list[" + i + "]/basesuppdeptcd",
- model.getValue("/root/send/globalinstance/instance1") );
-
- model.refresh();
- }
-
- function setGridStatus(grd_update)
- {
- var rowcnt = grd_update.rows;
-
- for(i=0 ; i < rowcnt; i++)
- {
- grd_update.rowstatus(i) = 2;
- }
- }
-
- function mergeRexList(rexList)
- {
- var mainlistcnt;
- for(var i = 1 ; i <= model.getXPathValue("count(" + rexList + ")"); i++)
- {
- mainlistcnt = parseInt(model.getXPathValue("count(/root/tmp/rexlist/mainlist)")) + 1;
-
- model.makeNode("/root/tmp/rexlist/mainlist[" + mainlistcnt + "]");
- model.copyNode("/root/tmp/rexlist/mainlist[" + mainlistcnt + "]", rexList + "[" + i +"]");
- }
-
-
- }
-
- function setZero(){
- for(j = 1 ; j < grd_nucldelivelist.rows ; j ++){
- model.setValue("/root/main/nucldelivelist["+j+"]/qty", "");
- }
- }
-
-
-
- function setUseqtyCopy(){
- if(datagrid1.rows > 1){
- for(i = 1 ; i < datagrid1.rows ; i ++){
- for(j = 1 ; j < grd_nucldelivelist.rows ; j ++){
- if(model.getValue("/root/main/mainlist["+i+"]/nuclcd") == ""){
- if(model.getValue("/root/main/mainlist["+i+"]/prcpcd") ==
- model.getValue("/root/main/nucldelivelist["+j+"]/goodcd")){
- grd_nucldelivelist.rowstatus(j) = 2;
- model.setValue("/root/main/nucldelivelist["+j+"]/qty", model.getValue("/root/main/mainlist["+i+"]/testqty"));
- }
- }else{
- if(model.getValue("/root/main/mainlist["+i+"]/nuclcd") ==
- model.getValue("/root/main/nucldelivelist["+j+"]/goodcd")){
- grd_nucldelivelist.rowstatus(j) = 2;
- if(model.getValue("/root/main/nucldelivelist["+j+"]/qty") == ""){
- model.setValue("/root/main/nucldelivelist["+j+"]/qty", "0");
- }
- model.setValue("/root/main/nucldelivelist["+j+"]/qty", parseInt(model.getValue("/root/main/nucldelivelist["+j+"]/qty"))
- + parseInt(model.getValue("/root/main/mainlist["+i+"]/testqty")));
-
- }
- }
- }
- }
- }
- model.refresh();
- }
-
-
- function fSetNextRow(){
-
- var curCol = datagrid1.Col;
- var curRow = datagrid1.Row;
- var Testcd;
- var Qty;
- Testcd = datagrid1.valueMatrix(curRow, 5);
- Nuclcd = datagrid1.valueMatrix(curRow, 9);
- Qty = datagrid1.valueMatrix(curRow, curCol);
-
- if(curCol == 4){
- for(i = 1 ; i < grd_nucldelivelist.rows; i++){
- if(Nuclcd == ""){
- if(model.getValue("/root/main/nucldelivelist["+i+"]/goodcd") == Testcd){
- model.setValue("/root/main/nucldelivelist["+i+"]/qty", Qty);
- datagrid1.row = curRow+1;
- grd_nucldelivelist.rowstatus(i) = 2;
- model.refresh();
- return;
- }
- }else{
- for(nucl = 1 ; nucl < grd_nucldelivelist.rows ; nucl++){
- model.setValue("/root/main/nucldelivelist["+nucl+"]/qty", "");
- //grd_nucldelivelist.rowstatus(nucl) = 0;
- }
- setUseqtyCopy();
- datagrid1.row = curRow+1;
- model.refresh();
- return;
- }
- }
- }else{
- datagrid1.row = curRow+1;
- model.refresh();
- }
-
- }
-
-
- function fgetnuclworklist(){
- if(model.getValue("/root/send/srchdd") != ""){
- model.removeNodeset("/root/main/mainlist");
- model.removeNodeset("/root/main/reallist");
- model.removeNodeset("/root/main/nuclwlnlist");
- model.removeNodeset("/root/main/nucldelivelist");
- model.removeNodeset("/root/main/compdwlnlist");
- model.removeNodeset("/root/main/compddelivelist");
- model.removeNodeset("/root/main/cnfmidinfo");
-
- if(submit("TRLNP00201")){
- //과거일자로 조회시 검사현황 입고현황 사용현황 Disable
- /*var cnfmdt = model.getValue("/root/init/LB0125/cd").replace('-', '').replace('-', '').substr(0 ,8);
- var reqdd = model.getValue("/root/send/srchdd");
- if( reqdd < cnfmdt){
- datagrid1.colDisabled(1) = true; //검사현황 - 입원
- datagrid1.colDisabled(2) = true; //검사현황 - 외래
- datagrid1.colDisabled(3) = true; //검사현황 - 건진
- datagrid1.colDisabled(4) = true; //검사현황 - 사용량
- grd_nuclwlnlist.colDisabled(4) = true; //입고현황 - 취득량
- grd_nucldelivelist.colDisabled(4) = true; //사용현황 - 사용량
- }else{
- datagrid1.colDisabled(1) = false;
- datagrid1.colDisabled(2) = false;
- datagrid1.colDisabled(3) = false;
- datagrid1.colDisabled(4) = false;
- grd_nuclwlnlist.colDisabled(4) = false;
- grd_nucldelivelist.colDisabled(4) = false;
- }*/ //기능 구현했다 강영직 선생님 결사반대로 수정 가능하게 풀어놓음 20090423 추후 요구시 변경요청서 받고 처리하기로 협의
-
- }
- }
- else{
- messageBox("날짜가", "E007");
- }
- sortGrid(datagrid1);
- setGridStatus(datagrid1);
- setZero();
- setUseqtyCopy();
-
-
- }
-
- function fSetNextRowNucl(){
-
- var curCol = grd_nuclwlnlist.Col;
- var curRow = grd_nuclwlnlist.Row;
- if(curCol == 4){
- grd_nuclwlnlist.Row = curRow+1;
- }
-
- }
-
- function fInsRowdel(){
- var Row = datagrid1.row;
- if(Row == -1){
- alert("삭제할 항목을 선택하여 주십시오.");
- }
- var retval = window.alert(model.getValue("/root/main/mainlist["+(Row-1)+"]/prcpnm") + "을 삭제 하시겠습니까?", "결과관리", "35" );
- if (retval != "6") return; // yes = 6, no = 7
- datagrid1.deleteItem(datagrid1.row);
- sortGrid(datagrid1);
- setZero();
- setUseqtyCopy();
-
- }
-
-
- function fInsRowAdd(){
-
-
- modal("SPLNP90200","","","","","","");
- var testcdlist= model.getValue("/root/tmp/cond/testcd");
- var testnmlist = model.getValue("/root/tmp/cond/testnm");
-
- datagrid1.subtotal("clear", -1, 1, "#,###", "background-color:#ffff00; color:#0000ff; font-weight:bold; ",0, "총계");
- datagrid1.subtotal("clear", -1, 2, "#,###", "background-color:#ffff00; color:#0000ff; font-weight:bold; ",0, "총계");
- datagrid1.subtotal("clear", -1, 3, "#,###", "background-color:#ffff00; color:#0000ff; font-weight:bold; ",0, "총계");
- datagrid1.subtotal("clear", -1, 4, "#,###", "background-color:#ffff00; color:#0000ff; font-weight:bold; ",0, "총계");
-
- var testcd = testcdlist.split("▦");
- var testnm = testnmlist.split("▦");
- var testcdcount = testcd.length;
- if(testcdcount > 0){
- for(i = 0 ; i < testcdcount ; i++){
- datagrid1.addRow(false);
- var curRow = datagrid1.Row;
- model.makeValue("/root/main/mainlist["+(curRow-1)+"]/prcpnm",testnm[i]);
- model.makeValue("/root/main/mainlist["+(curRow-1)+"]/prcpcd",testcd[i] );
- model.makeValue("/root/main/mainlist["+(curRow-1)+"]/recdd", model.getValue("/root/send/srchdd"));
- model.makeValue("/root/main/mainlist["+(curRow-1)+"]/bdioflag", "O");
- model.makeValue("/root/main/mainlist["+(curRow-1)+"]/suppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
- }
-
- }
- model.refresh();
- sortGrid(datagrid1);
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1195;" style="margin-left:7; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:137px; height:14px; ">업무일지</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:35px; vertical-align:top; ">
- <shape id="roundrect2" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:10px; top:9px; width:86px; height:17px; ">조회일자 :</caption>
- <input id="input5" ref="/root/send/srchdd" class="input_search" inputtype="date" style="left:102px; top:8px; width:100px; height:19px; "/>
- <line id="line13" class="line_4" style="x1:1116px; y1:6px; x2:1116px; y2:28px; "/>
- <caption id="caption3" class="search_name" visibility="hidden" style="left:220px; top:9px; width:65px; height:17px; ">구분 :</caption>
- <button id="btn_sea" class="btn1_letter2" style="left:1124px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fgetnuclworklist()
-
- ]]>
- </script>
- </button>
- <select1 id="radio1" ref="/root/send/srchbdioflag" visibility="hidden" appearance="full" cols="2" overflow="visible" style="left:290px; top:10px; width:95px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>체내</label>
- <value>I</value>
- </item>
- <item>
- <label>체외</label>
- <value>O</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var bdioflag = model.getValue("/root/send/srchbdioflag");
-
- if (bdioflag == "I") {
- model.toggle("case1");
- } else if (bdioflag == "O") {
- model.toggle("case2");
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <select id="checkbox1" ref="/root/send/rerefyn" overflow="visible" appearance="full" style="left:1030px; top:10px; width:65px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>재조회</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- </group>
- <line id="line1" class="line_1" style="x1:0px; y1:71px; x2:555px; y2:71px; "/>
- <caption id="caption22" class="tit_2" style="left:0px; top:56px; width:84px; height:13px; ">검사현황</caption>
- <caption id="caption4" class="tit_2" style="left:561px; top:56px; width:84px; height:13px; ">입고현황</caption>
- <line id="line2" class="line_1" style="x1:561px; y1:71px; x2:1193px; y2:71px; "/>
- <switch id="switch2" style="left:561px; top:76px; width:632px; height:529px; ">
- <case id="case3" scroll="none" selected="true">
- <datagrid id="grd_nuclwlnlist" nodeset="/root/main/nuclwlnlist" caption="항목^공급처^규격^규격^취득량" colsep="^" colwidth="201, 188, 45, 40,130, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:1px; top:0px; width:632px; height:310px; ">
- <col ref="goodnm" type="output"/>
- <col ref="suplcustnm" type="output"/>
- <col ref="specnm" type="output" style="text-align:center; "/>
- <col ref="vol" type="output" style="text-align:center; "/>
- <col ref="qty" type="input" format="#,###" maxlength="10"/>
- <col ref="lossresncd" visibility="hidden"/>
- <col ref="iodd" visibility="hidden"/>
- <col ref="ioflag" visibility="hidden"/>
- <col ref="bdioflag" visibility="hidden"/>
- <col ref="itemflag" visibility="hidden"/>
- <col ref="goodcd" visibility="hidden"/>
- <col ref="rem" visibility="hidden"/>
- <col ref="suppdeptcd" visibility="hidden" style="text-align:center; "/>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- fSetNextRowNucl();
- ]]>
- </script>
- </datagrid>
- <datagrid id="grd_nucldelivelist" nodeset="/root/main/nucldelivelist" caption="항목^공급처^규격^규격^사용량" colsep="^" colwidth="201, 188, 45, 40, 100, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:1px; top:340px; width:632px; height:185px; ">
- <col ref="goodnm" type="output"/>
- <col ref="suplcustnm" type="output"/>
- <col ref="specnm" type="output" style="text-align:center; "/>
- <col ref="vol" type="output" style="text-align:center; "/>
- <col ref="qty" type="input" format="#,###" maxlength="10"/>
- <col ref="lossresncd" visibility="hidden"/>
- <col ref="iodd" visibility="hidden"/>
- <col ref="ioflag" visibility="hidden"/>
- <col ref="bdioflag" visibility="hidden"/>
- <col ref="itemflag" visibility="hidden"/>
- <col ref="goodcd" visibility="hidden"/>
- <col ref="rem" visibility="hidden"/>
- <col ref="suppdeptcd" visibility="hidden" style="text-align:center; "/>
- </datagrid>
- </case>
- <case id="case4" scroll="none">
- <datagrid id="grd_compdwlnlist" nodeset="/root/main/compdwlnlist" caption="항목^공급처^규격^취득량" colsep="^" colwidth="201, 188, 84, 130, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:1px; top:0px; width:632px; height:250px; ">
- <col ref="goodnm" type="output"/>
- <col ref="suplcustnm" type="output"/>
- <col ref="specnm" type="output"/>
- <col ref="qty" type="input" format="#,###" maxlength="10"/>
- <col ref="lossresncd" visibility="hidden"/>
- <col ref="iodd" visibility="hidden"/>
- <col ref="ioflag" visibility="hidden"/>
- <col ref="bdioflag" visibility="hidden"/>
- <col ref="itemflag" visibility="hidden"/>
- <col ref="goodcd" visibility="hidden"/>
- <col ref="rem" visibility="hidden"/>
- <col ref="suppdeptcd" visibility="hidden" style="text-align:center; "/>
- </datagrid>
- <datagrid id="grd_compddelivelist" nodeset="/root/main/compddelivelist" caption="항목^공급처^규격^취득량" colsep="^" colwidth="201, 188, 84, 130, 100, 100, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:1px; top:275px; width:632px; height:250px; ">
- <col ref="goodnm" type="output"/>
- <col ref="suplcustnm" type="output"/>
- <col ref="specnm" type="output"/>
- <col ref="qty" type="input" format="#,###" maxlength="10"/>
- <col ref="lossresncd" visibility="hidden"/>
- <col ref="iodd" visibility="hidden"/>
- <col ref="ioflag" visibility="hidden"/>
- <col ref="bdioflag" visibility="hidden"/>
- <col ref="itemflag" visibility="hidden"/>
- <col ref="goodcd" visibility="hidden"/>
- <col ref="rem" visibility="hidden"/>
- <col ref="suppdeptcd" visibility="hidden" style="text-align:center; "/>
- </datagrid>
- </case>
- </switch>
- <textarea id="textarea1" ref="/root/main/cnfmidinfo/bdorem" style="left:0px; top:635px; width:1195px; height:109px; "/>
- <caption id="caption5" class="tit_2" style="left:0px; top:615px; width:129px; height:14px; ">참고사항</caption>
- <line id="line3" class="line_1" style="x1:1px; y1:630px; x2:1195px; y2:630px; "/>
- <caption id="caption7" class="tit_2" style="left:561px; top:398px; width:84px; height:13px; ">사용현황</caption>
- <line id="line4" class="line_1" style="x1:561px; y1:412px; x2:1193px; y2:412px; "/>
- <switch id="switch1" style="left:0px; top:75px; width:558px; height:532px; ">
- <case id="case1">
- <datagrid id="grd_mainlist" nodeset="/root/list/abc" caption="구분^검사항목^환자수^환자수^검사수^검사수|구분^검사항목^보험^일반^보험^일반" colsep="^" colwidth="84, 230, 55, 55, 55, 55, 100, 100, 100, 100, 100" fixedcols="1" mergecellsfixedcols="bycol" mergecellsfixedrows="bycolrec" multitotal="true" rowsep="|" subtotalposition="below" style="left:0px; top:0px; width:555px; height:529px; ">
- <col ref="basecdcnts"/>
- <col ref="prcpnm" style="text-align:center; "/>
- <col ref="patinsucnt" type="input" format="#,###" maxlength="10" style="text-align:center; "/>
- <col ref="patgnrlcnt" type="input" format="#,###" maxlength="10" style="text-align:center; "/>
- <col ref="testinsucnt" type="input" format="#,###" maxlength="10" style="text-align:center; "/>
- <col ref="testgnrlcnt" type="input" format="#,###" maxlength="10" style="text-align:center; "/>
- <col ref="prcpcd" visibility="hidden" style="text-align:center; "/>
- <col ref="recdd" visibility="hidden" style="text-align:center; "/>
- <col ref="bdioflag" visibility="hidden" style="text-align:center; "/>
- <col ref="suppdeptcd" visibility="hidden" style="text-align:center; "/>
- <col ref="rem" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- //sortGrid(grd_mainlist);
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="case2" selected="true">
- <datagrid id="datagrid1" nodeset="/root/main/mainlist" caption="검사항목^환자수^환자수^환자수^검사수
(사용량)|검사항목^입원^외래^건진^검사수
(사용량)" colsep="^" colwidth="250, 55, 55, 55, 55, 55, 100, 100" frozenbottomrows="1" mergecellsfixedrows="bycolrec" rowsep="|" selectionmode="free" subtotalposition="below" style="left:0px; top:0px; width:555px; height:529px; ">
- <col ref="prcpnm" type="output"/>
- <col ref="paticnt" type="input" format="#,###" maxlength="10" style="text-align:center; "/>
- <col ref="patocnt" type="input" format="#,###" maxlength="10" style="text-align:center; "/>
- <col ref="patscnt" type="input" format="#,###" maxlength="10" style="text-align:center; "/>
- <col ref="testqty" type="input" format="#,###" maxlength="10" style="text-align:center; "/>
- <col ref="prcpcd" visibility="hidden" style="text-align:center; "/>
- <col ref="recdd" visibility="hidden" style="text-align:center; "/>
- <col ref="bdioflag" visibility="hidden" style="text-align:center; "/>
- <col ref="suppdeptcd" visibility="hidden" style="text-align:center; "/>
- <col ref="nuclcd" visibility="hidden" style="text-align:center; "/>
- <col ref="rem" visibility="hidden" style="text-align:center; "/>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- fSetNextRow();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- sortGrid(datagrid1);
- ]]>
- </script>
- </datagrid>
- </case>
- </switch>
- <input id="ipt_suplcmpynm" ref="/root/tmp/suplcustnm" visibility="hidden" style="left:465px; top:610px; width:90px; height:19px; "/>
- <input id="ipt_suplcmpy" ref="/root/tmp/suplcustcd" visibility="hidden" style="left:375px; top:610px; width:85px; height:19px; "/>
- <select1 id="radio2" ref="/root/tmp/itemflag" visibility="hidden" appearance="full" cols="2" overflow="visible" style="left:645px; top:55px; width:95px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>핵종</label>
- <value>N</value>
- </item>
- <item>
- <label>화합물</label>
- <value>O</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(radio2.value == "N")
- {
- model.toggle("case3");
- }
- else
- {
- model.toggle("case4");
- }
- ]]>
- </script>
- </select1>
- <button id="button1" class="btn2_letter3" style="left:501px; top:51px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInsRowdel();
- ]]>
- </script>
- </button>
- <button id="button4" class="btn2_letter3" style="left:446px; top:51px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInsRowAdd();
- ]]>
- </script>
- </button>
- <output id="opt_nm" ref="/root/hidden/cnfm/nm" class="output_fix" style="left:619px; top:608px; width:70px; height:19px; "/>
- <output id="opt_dt" ref="/root/hidden/cnfm/dt" class="output_fix" style="left:692px; top:608px; width:130px; height:19px; "/>
- <caption id="caption9" class="search_name" style="left:877px; top:609px; width:178px; height:17px; ">체외검사 확인자 :</caption>
- <input id="input2" ref="/root/main/cnfmidinfo/spccnfmid" class="input_search" style="left:1015px; top:608px; width:90px; height:19px; text-align:left; ">
- <script type="javascript" ev:event="onkeydown">
- <![CDATA[
- if ( event.keyCode == 13 ) {
- setInputNodeCurText();
- model.setValue("/root/send/srchcnfmid", model.getValue("/root/main/cnfmidinfo/spccnfmid"));
- if (submit("TRAEQ00403",false)) {
- model.setValue("/root/main/cnfmidinfo/spccnfmid", model.getValue("/root/tmp/cnfminfo/cnfmid"));
- model.setValue("/root/main/cnfmidinfo/spccnfmnm", model.getValue("/root/tmp/cnfminfo/cnfmnm"));
- model.refresh();
- }
- }
- ]]>
- </script>
- </input>
- <output id="output2" ref="/root/main/cnfmidinfo/spccnfmnm" class="output_fix" style="left:1107px; top:608px; width:80px; height:19px; "/>
- <caption id="caption1" class="search_name" style="left:466px; top:609px; width:178px; height:17px; ">일계표 최종 확인자 :</caption>
- <caption id="caption8" style="left:775px; top:38px; width:415px; height:42px; ">
- <![CDATA[재조회 선택 후 조회시 해당일에 업무일지를 저장한 를 기준으로
- 재조회 하므로 조회 후 수정하여 저장 시 이점 유의 하시기 바랍니다.]]>
- </caption>
- <caption id="caption10" style="left:1054px; top:42px; width:72px; height:20px; font-weight:bold; color:#ff0000; ">마지막 일시</caption>
- </group>
- <button id="btn_save" class="btn4_letter2" visibility="hidden" style="left:894px; top:760px; width:56px; height:22px; ">
- <caption>삭제</caption>
- </button>
- <button id="btn_rept" class="btn4_letter6" style="left:1085px; top:760px; width:104px; height:22px; ">
- <caption>검사현황출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var nodecnt = model.getXPathValue("count(/root/main/mainlist)");
-
-
- var paticnt = model.getXPathValue("sum( /root/main/mainlist/paticnt )");
- var patocnt = model.getXPathValue("sum( /root/main/mainlist/patocnt )");
- var patscnt = model.getXPathValue("sum( /root/main/mainlist/patscnt )");
- var testqty = model.getXPathValue("sum( /root/main/mainlist/testqty )");
- var rem = model.getValue("/root/main/cnfmidinfo/bdorem");
- mergeRexList("/root/main/mainlist");
-
- model.setValue("/root/tmp/rexlist/paticnt", paticnt);
- model.setValue("/root/tmp/rexlist/patocnt", patocnt);
- model.setValue("/root/tmp/rexlist/patscnt", patscnt);
- model.setValue("/root/tmp/rexlist/patsumcnt", parseInt(paticnt) + parseInt(patocnt) + parseInt(patscnt));
- model.setValue("/root/tmp/rexlist/testqty", testqty);
- model.setValue("/root/tmp/rexlist/rem", rem);
-
- var ymd = model.getValue("/root/tmp/rexlist/mainlist/recdd");
- var year = ymd.substring(0,4);
- var month = ymd.substring(4,6);
- var day = ymd.substring(6,8);
- var yymmddstr = year + "/" + month + "/" + day + " " + getDateTime(ymd.toDate("YYYYMMDD"), "W") + "요일";
- model.setValue("/root/tmp/rexlist/srchdd", yymmddstr);
- model.setValue("/root/tmp/rexlist/scount" , model.getValue("/root/main/reallist/scount"));
- model.makeNode("/root/tmp/rexlist/mainlist[62]");
- exeReportPreview("RPLNP00201", "XMLSTR", "/root/tmp/rexlist");
- model.removeNodeset("/root/tmp/rexlist/mainlist");
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button3" class="btn4_letter3" style="left:955px; top:760px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var retval = window.alert( "저장된 데이터가 삭제됩니다. \n초기화 하시겠습니까?", "결과관리", "35" );
- if (retval != "6") return; // yes = 6, no = 7
- submit("TXLNP00201");
- fgetnuclworklist();
- ]]>
- </script>
- </button>
- <button id="button5" class="btn4_letter2" style="left:1026px; top:760px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
-
- if(model.getValue("/root/main/cnfmidinfo/spccnfmnm") == ""){
- alert("체외검사 확인자를 입력하여 주십시오.");
- return;
- }
-
- var retval = window.alert( "저장 하시겠습니까?", "결과관리", "35" );
- if (retval != "6") return; // yes = 6, no = 7
- var rowcnt = datagrid1.rows;
- var count = getNodesetCount("/root/main/mainlist");
- if ( count != 0){
- model.setValue("/root/main/mainlist[1]/rem", model.getValue("/root/tmp/rem"));
-
- datagrid1.subtotal("clear", -1, 1, "#,###", "background-color:#ffff00; color:#0000ff; font-weight:bold; ",0, "총계");
- datagrid1.subtotal("clear", -1, 2, "#,###", "background-color:#ffff00; color:#0000ff; font-weight:bold; ",0, "총계");
- datagrid1.subtotal("clear", -1, 3, "#,###", "background-color:#ffff00; color:#0000ff; font-weight:bold; ",0, "총계");
- datagrid1.subtotal("clear", -1, 4, "#,###", "background-color:#ffff00; color:#0000ff; font-weight:bold; ",0, "총계");
-
-
-
-
- var uptmain = getGridUpdateData(datagrid1);
- var uptwln = getGridUpdateData(grd_nuclwlnlist);
- var uptdelive = getGridUpdateData(grd_nucldelivelist);
- var uptcompdwln = getGridUpdateData(grd_compdwlnlist);
- var uptcompddelive = getGridUpdateData(grd_compddelivelist);
- var recdd = model.getValue("/root/send/srchdd");
-
- model.setValue("/root/send/mainlist", uptmain);
- model.setValue("/root/send/nuclwlnlist", uptwln);
- model.setValue("/root/send/nucldelivelist", uptdelive);
- model.setValue("/root/send/compdwlnlist", uptcompdwln);
- model.setValue("/root/send/compddelivelist", uptcompddelive);
- //model.makeValue("/root/send/cnfmidinfo/recdd", recdd); //일단 체외 구분만 넣었음 기록일자
-
-
-
- copyNodesetType("/root/send/cnfmidinfo","/root/main/cnfmidinfo");
- model.makeValue("/root/send/cnfmidinfo/recdd", model.getValue("/root/send/srchdd"));
- model.makeValue("/root/send/cnfmidinfo/suppdeptcd", "2180000000");
- model.makeValue("/root/send/cnfmidinfo/bdioflag", "O"); //상동
- //model.makeValue("/root/send/cnfmidinfo/bdioflag", "I");
-
- if ( submit("TXAEQ00401")) {
- // 저장 후 재 조회
- model.removeNodeset("/root/main/mainlist");
- model.removeNodeset("/root/main/reallist");
- model.removeNodeset("/root/main/nuclwlnlist");
- model.removeNodeset("/root/main/nucldelivelist");
- model.removeNodeset("/root/main/compdwlnlist");
- model.removeNodeset("/root/main/compddelivelist");
- fgetnuclworklist();
- messageBox("저장", "I002");
- }
- }else{
- alert("저장할 내역이 없습니다");
- }
-
- ]]>
- </script>
- </button>
- <button id="button2" class="btn4_letter6" style="left:0px; top:760px; width:104px; height:22px; ">
- <caption>채내업무일지</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("SMAEQ00400");
- ]]>
- </script>
- </button>
- <button id="button6" class="btn4_letter6" style="left:107px; top:760px; width:104px; height:22px; ">
- <caption>검사KIT설정</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPLNP90500","","","","","","");
- fgetnuclworklist();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|