123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287 |
- <?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>
- <cellabnprescond>
- <cellabnprescondlist>
- <abndd/>
- <scs/>
- <hngnm/>
- <pid/>
- <depthngnm/>
- <atdoctid/>
- <abnresn/>
- <abnid/>
- <cellbcno/>
- <keepdd/>
- </cellabnprescondlist>
- </cellabnprescond>
- </main>
- <send>
- <baseinfo>
- <prcpfromdd/>
- <prcptodd/>
- <orddeptcd/>
- <atdoctid/>
- <abnresn/>
- <scs/>
- <pid/>
- </baseinfo>
- <globalinstance>
- <instance1/>
- </globalinstance>
- </send>
- <init>
- <stemcellsource>
- <A0159>
- <cdid/>
- <cdnm/>
- </A0159>
- </stemcellsource>
- <abnresn>
- <A0155>
- <cdid/>
- <cdnm/>
- </A0155>
- </abnresn>
- </init>
- <hidden>
- <orddeptlist>
- <dept>
- <deptcd/>
- <depthngnm/>
- </dept>
- </orddeptlist>
- <userlist>
- <usercombo>
- <userid/>
- <usernm/>
- </usercombo>
- </userlist>
- </hidden>
- </root>
- </instance>
- <submission id="TRZBC00101"/>
- <submission id="TRABC01301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/baseinfo" replace="instance" resultref="/root/main/cellabnprescond"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- aezfSetSuppDeptcd();
-
- var instcd = "012";//getUserInfo("dutplceinstcd");
- var standard_yn = "orduseyn";
- var ord_deptflag = 'D';
- var rslt_ref = "/root/hidden/orddeptlist";
- zbcfGetDeptCodeList(instcd, standard_yn, ord_deptflag, rslt_ref);
- zbcfGetCodeList( new Array("A0155", "A0159"),
- new Array("/root/init/abnresn", "/root/init/stemcellsource"));
- submit("TRABC01301", false);
-
- model.removeNodeset("/root/main/cellabnprescond/cellabnprescondlist");
- model.setValue("/root/send/baseinfo/prcpfromdd", getCurrentDate());
- model.setValue("/root/send/baseinfo/prcptodd", ipt_prcpfromdd.value);
- ipt_prcpfromdd.value = ipt_prcpfromdd.value.toDate().getAddDate(-7,"D").getDateFormat("YYYYMMDD") ;
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- function readfunc(){
- if (datacheck() == false){
- return;
- }
- model.removeNodeset("/root/main/cellabnprescond/cellabnprescondlist");
- submit("TRABC01301");
- if (model.getValue("/root/main/cellabnprescond/cellabnprescondlist[" + 1 + "]/hngnm") == ""){
- model.removeNodeset("/root/main/cellabnprescond/cellabnprescondlist");
- }
- model.refresh();
- }
- function datacheck(){
- if (isDate(model.getValue("/root/send/baseinfo/prcpfromdd")) == false){
- messageBox("적용 시작일의 날짜 형식이 잘못 입력되었습니다.", "E999", "");
- return false;
- }
- if (model.getValue("/root/send/baseinfo/prcpfromdd") == ""){
- messageBox("적용 시작일은 필수 입력 또는 선택 항목입니다.", "E999", "");
- return false;
- }
- if (isDate(model.getValue("/root/send/baseinfo/prcptodd")) == false){
- messageBox("적용 종료일의 날짜 형식이 잘못 입력되었습니다.", "E999", "");
- return false;
- }
- if (model.getValue("/root/send/baseinfo/prcptodd") == ""){
- messageBox("적용 종료일은 필수 입력 또는 선택 항목입니다.", "E999", "");
- return false;
- }
- if (model.getValue("/root/send/baseinfo/prcpfromdd") > model.getValue("/root/send/baseinfo/prcptodd")){
- messageBox("적용 기간일이 잘못 입력되었습니다.", "E999", "");
- return false;
- }
- return true;
- }
- function isDate(str) { // 날짜 형식에 대한 적합여부 체크
- if (str == "") return true; // 빈건 체크안함
- if (trim(str) == "") return true; // 빈건 체크안함
- if (isNaN(parseInt(str))) return false; // 숫자가 아니면 false
- if (str.length != 8) return false; // 8자리(yyyymmdd)가 아니면 false
-
- var yy = new Number(str.substring(0, 4));
- var mm = new Number(str.substring(4, 6)) - 1;
- var dd = new Number(str.substring(6, 8));
- var date = new Date(yy, mm, dd);
- //alert(date.getFullYear() +"-" + (date.getMonth()+1) + "-" + date.getDate());
- if (yy != date.getFullYear() ||
- mm != date.getMonth() ||
- dd != date.getDate()) {
- return false; // 존재하지 않는 날짜
- }
-
- return true; // 존재하는 날짜
- }
- function trim(data){ // 문자에 대한 TRIM 작업
- return data.replace(/(^\s*)|(\s*$)/g, "");
- }
- ]]>
- </script>
- <submission id="TRZSU10105"/>
- <submission id="TRZSD00109"/>
- </model>
- <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/numericHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../com/userdeptinfoweb/js/ZSU001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- </xhtml:head>
- <xhtml:body guideline="1,1195;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:210px; height:14px; background-image:../../../com/commonweb/images/tit_bullet1.gif; ">조혈모세포폐기현황조회</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:81px; width:210px; height:13px; background-image:../../../com/commonweb/images/tit_bullet2.gif; ">조혈모세포폐기현황</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:96px; x2:1194px; y2:96px; "/>
- <datagrid id="grd_cellabnprescondlist" nodeset="/root/main/cellabnprescond/cellabnprescondlist" caption="폐기일자^Stem Cell Source^환자명^등록번호^진료과명^주치의^폐기사유^폐기자^바코드번호^보관일자^^7)^8)" colsep="^" colwidth="105, 144, 108, 100, 100, 100, 219, 108, 105, 100" dataheight="23" extendlastcol="scroll" focuscolor="#b9e5fb" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:101px; width:1194px; height:600px; text-align:center; ">
- <col ref="abndd" format="yyyy-mm-dd"/>
- <col disabled="true" ref="scs" type="combo">
- <choices>
- <itemset nodeset="/root/init/stemcellsource/A0159">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="hngnm" type="output"/>
- <col ref="pid"/>
- <col ref="depthngnm"/>
- <col ref="atdoctid"/>
- <col disabled="true" ref="abnresn" type="combo">
- <choices>
- <itemset nodeset="/root/init/abnresn/A0155">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="abnid"/>
- <col ref="cellbcno"/>
- <col ref="keepdd" format="yyyy-mm-dd"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_cellabnprescondlist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- <button id="button2" class="btn2_letter4" disable.background-image="../../../com/commonweb/images/dis_btn2_letter4.gif" style="left:1130px; top:76px; width:64px; height:19px; background-image:../../../com/commonweb/images/btn2_letter4.gif; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "조혈모세포폐기현황", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != "")
- {
- grd_cellabnprescondlist.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- <group id="grp_sea" style="left:0px; top:10px; width:1194px; height:61px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:61px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption2" class="search_name" style="left:15px; top:9px; width:112px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">폐기일자 :</caption>
- <caption id="caption5" class="search_no_b" style="left:213px; top:10px; width:12px; height:17px; ">~</caption>
- <line id="line13" class="line_4" style="x1:1107px; y1:5px; x2:1107px; y2:51px; "/>
- <input id="input25" ref="/root/send/baseinfo/prcptodd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:228px; top:9px; width:100px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
- <caption id="caption3" class="search_name" style="left:363px; top:9px; width:73px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">진료과 :</caption>
- <select1 id="combo1" ref="/root/send/baseinfo/orddeptcd" class="combo_search" appearance="minimal" style="left:439px; top:8px; width:130px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/orddeptlist/dept">
- <label ref="depthngnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- var deptcd = model.getValue("/root/send/baseinfo/orddeptcd");
- var zsuResultRef = "/root/hidden/zsu/userlist";
- model.removenode(zsuResultRef);
- model.makenode(zsuResultRef);
- setParameter("deptcd", deptcd);
- setParameter("flag", "_D");
- submit("TRZSU10105", "false", getParameterPath(), zsuResultRef);
- model.copyNode("/root/hidden/userlist", "/root/hidden/zsu/userlist");
- model.refresh();
-
- ]]>
- </script>
- </select1>
- <select1 id="combo2" ref="/root/send/baseinfo/abnresn" class="combo_search" appearance="minimal" style="left:751px; top:8px; width:150px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/abnresn/A0155">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption4" class="search_name" style="left:597px; top:9px; width:86px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">폐기사유 :</caption>
- <button id="btn_sea" class="btn1_letter2" style="left:1123px; top:20px; width:20px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- readfunc() ;
- ]]>
- </script>
- </button>
- <select1 id="combo3" ref="/root/send/baseinfo/atdoctid" class="combo_search" appearance="minimal" style="left:439px; top:34px; width:130px; height:19px; ">
- <choices>
- <itemset nodeset="/root/hidden/userlist/usercombo">
- <label ref="usernm"/>
- <value ref="userid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption7" class="search_name" style="left:363px; top:35px; width:73px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">주치의 :</caption>
- <caption id="caption9" class="search_name" style="left:597px; top:35px; width:151px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">Stem Cell Source :</caption>
- <select1 id="combo5" ref="/root/send/baseinfo/scs" class="combo_search" appearance="minimal" style="left:751px; top:35px; width:150px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/stemcellsource/A0159">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <input id="ipt_prcpfromdd" ref="/root/send/baseinfo/prcpfromdd" class="input_s_essential" inputtype="date" format="yyyy-mm-dd" style="left:110px; top:9px; width:100px; height:19px; background-image:../../../com/commonweb/images/input_s_essential.gif; "/>
- <caption id="caption16" class="search_name" style="left:15px; top:35px; width:101px; height:17px; background-image:../../../com/commonweb/images/search_bullet1.gif; ">등록번호 :</caption>
- <input id="input6" ref="/root/send/baseinfo/pid" class="input_search" style="left:110px; top:34px; width:100px; height:19px; "/>
- </group>
- </group>
- <group id="grp_btn" style="left:0px; top:20px; width:1195px; height:27px; "/>
- </xhtml:body>
- </xhtml:html>
|