123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <?xml-stylesheet href="C:/CMCProject/application/webapps/com/commonweb/css/common.css" type="text/css" ?>
- <?xml-stylesheet href="C:/CMCProject/application/webapps/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>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <keepposinfo>
- <keepposlist>
- <tankflag/>
- <sesnflag/>
- <frameflag/>
- <cellbcno1/>
- <cellbcno2/>
- <cellbcno3/>
- <cellbcno4/>
- <cellbcno5/>
- <cellbcno6/>
- <cellbcno11/>
- <cellbcno12/>
- <cellbcno13/>
- <cellbcno14/>
- <cellbcno15/>
- <cellbcno16/>
- </keepposlist>
- </keepposinfo>
- <keepposinfo2>
- <keepposlist2>
- <tankflag/>
- <sesnflag/>
- <frameflag/>
- <cellbcno1/>
- <cellbcno2/>
- <cellbcno3/>
- <cellbcno4/>
- <cellbcno5/>
- <cellbcno6/>
- <cellbcno11/>
- <cellbcno12/>
- <cellbcno13/>
- <cellbcno14/>
- <cellbcno15/>
- <cellbcno16/>
- </keepposlist2>
- </keepposinfo2>
- <cellbcnoinfo>
- <cellbcnolist>
- <cellbcno/>
- </cellbcnolist>
- </cellbcnoinfo>
- <popupendflag/>
- <result>
- <patinfo/>
- </result>
- <cellbarcdinfo>
- <cellbarcdlist>
- <prcphopedd/>
- <hngnm/>
- <cellbcno/>
- </cellbarcdlist>
- </cellbarcdinfo>
- </main>
- <send>
- <reqdata>
- <pid/>
- <hngnm/>
- <rrgstno/>
- <sex/>
- <age/>
- <tankflag/>
- <selflag>T</selflag>
- <srchpid/>
- </reqdata>
- <reqdata1>
- <cellinfo/>
- <cellbcno/>
- <keepyn/>
- </reqdata1>
- <reqdatadel>
- <tankflag/>
- <sesnflag/>
- <frameflag/>
- <keeppos/>
- </reqdatadel>
- <aeahdyeslist2/>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <execdata>
- <keepposlist/>
- </execdata>
- <movedata>
- <sesnflag/>
- <frameflag/>
- <keeppos/>
- </movedata>
- </send>
- <init>
- <cmb_info>
- <keepinfo>
- <cellbcno/>
- <cellbcnonm/>
- </keepinfo>
- </cmb_info>
- <baseinfo>
- <tankflag>
- <A0394>
- <cdid/>
- <cdnm/>
- </A0394>
- </tankflag>
- <sesnflag>
- <A0395>
- <cdid/>
- <cdnm/>
- </A0395>
- </sesnflag>
- <frameflag>
- <A0396>
- <cdid/>
- <cdnm/>
- </A0396>
- </frameflag>
- </baseinfo>
- </init>
- <source>
- <srchcond/>
- <pid/>
- <hngnm/>
- <rrgstno1/>
- <rrgstno2/>
- </source>
- <paminfo/>
- <temp>
- <bmtpatientinfo/>
- </temp>
- <hidden>
- <count/>
- <phopedd/>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- zbcfGetCodeList( new Array("A0394", "A0395", "A0396"), new Array("/root/init/baseinfo/tankflag", "/root/init/baseinfo/sesnflag", "/root/init/baseinfo/frameflag"));
- model.toggle("case1");
- btn_case1.selected = true;
- submit("TRZBC00101");
- model.removeNodeset("/root/main/keepposinfo/keepposlist");
- model.removeNodeset("/root/main/keepposinfo2/keepposlist2");
- btn_save.disabled = true;
- btn_del.disabled = true;
- cmb_tankflag.select(1);
- if ( checkOpener()) {
- var param = opener.javascript.getParameter("opener_parameter_id");
- if(param != "") // opener parameter value가 있는 경우
- {
- //parameter value를 이용하여 프로그램 수행
- condarray = param.split("▦");
- //btn_sea.dispatch("onclick");
- model.setValue("/root/send/reqdata/pid", condarray[0]);
- }
- } else {
- var paminfo = getGlobalVariable("paminfo");
- if ( paminfo != "" ) {
- setCSVToNode("/root/paminfo", paminfo);
- model.setValue("/root/send/reqdata/pid", model.getValue("/root/paminfo/list/pid"));
- }
- }
- model.refresh();
- ]]>
- </script>
- <submission id="TRZBC00101"/>
- <submission id="TRPMC02500" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/source" resultref="/root/main/result/patinfo"/>
- <submission id="TRABC00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/keepposinfo"/>
- <submission id="TRABC00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata1" resultref="/root/main/cellbcnoinfo"/>
- <submission id="TRABC00403" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/keepposinfo2"/>
- <submission id="TRABC00404" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/cmb_info"/>
- <submission id="TXABC00401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/execdata" resultref="/root/hidden"/>
- <submission id="TXABC00402" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdatadel" resultref="/root/hidden"/>
- <submission id="TRABC00405" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/cellbarcdinfo"/>
- </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="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript">
- <![CDATA[
- function fReadFunc(){ // 해당 조건에 대한 검사내역을 조회한다.
- if (model.getValue("/root/send/reqdata/tankflag") == ""){
- messageBox("탱크구분은 필수 선택 항목", "E008");
- model.setFocus("cmb_tankflag");
- return;
- }
- /*
- if (model.getValue("/root/send/reqdata/pid") == ""){
- messageBox("등록번호는 필수 입력 또는 선택 항목", "E008");
- model.setFocus("ipt_pid");
- return;
- }
- */
- model.removeNodeset("/root/main/keepposinfo/keepposlist");
- submit("TRABC00401");
- // submit("TRABC00404");
- btn_save.disabled = false;
- btn_del.disabled = false;
- model.refresh();
- }
- function fReadFunc1(){ // 해당 조건에 대한 검사내역을 조회한다.
- model.removeNodeset("/root/main/keepposinfo2/keepposlist2");
- submit("TRABC00403");
- model.refresh();
- }
- function fSearchPatInfo(){ // 등록번호에 대한 정보를 가져온다.
-
- model.setValue("/root/source/srchcond", "1");
- model.setValue("/root/source/pid", ipt_pid.currentText);
- //inputEnterKey("btn_search", "DOMActivate");
-
- //환자등록번호 체크
- if(ipt_pid.currentText.length >= 1 ){
-
- model.resetInstanceNode("/root/main/result");
- model.makeNode("/root/main/result/patinfo");
-
- if(submit("TRPMC02500")){
- //fSearch는 인적사항 화면을 임포트 해간 화면에서 구현해 주어야 하는 함수이다.
- if( getNodesetCount("/root/main/result/patinfo/patinfolist") > 0 ){
- model.copyNode("/root/main/patinfo", "/root/main/result/patinfo");
- model.setValue("/root/send/reqdata/hngnm", model.getValue("/root/main/result/patinfo/patinfolist/hngnm"));
- model.setValue("/root/send/reqdata/rrgstno", model.getValue("/root/main/result/patinfo/patinfolist/rrgstno1") + model.getValue("/root/main/result/patinfo/patinfolist/rrgstno2"));
- model.setValue("/root/send/reqdata/sex", model.getValue("/root/main/result/patinfo/patinfolist/sex"));
- model.setValue("/root/send/reqdata/age", model.getValue("/root/main/result/patinfo/patinfolist/age"));
- model.setValue("/root/main/popupendflag", "ok");
- model.refresh();
- //fReadFunc();
- }else{
- model.resetInstanceNode("/root/main/patinfo/patinfolist");
- messageBox("없는 환자 번호 입니다.", "E999", "");
- model.refresh();
- }
- }
- }else{
- messageBox("환자등록번호를 정확히", "C001");
- }
- }
- /* @group : 조혈모세포보관위치관리
- * @ver : 2008.01.30
- * @by : 남수현
- * @type : function
- * @access : public
- * @desc : 조혈모세포백 보관내역 저장
- * @param :
- */
- function fExecSave(){
- var updateData = grd_tankkeep.getUpdateData();
- model.setValue("/root/send/execdata/keepposlist",updateData);
- submit("TXABC00401");
- if (model.getValue("root/properties/error/description") == ""){
- // messageBox(model.getValue("root/properties/error/msg"), "E999", "");
- fReadFunc();
- }
- }
- /* @group : 조혈모세포보관위치관리
- * @ver : 2008.01.30
- * @by : 남수현
- * @type : function
- * @access : public
- * @desc : 조혈모세포백 보관내역 삭제
- * @param :
- */
- function fExecDel(){
- model.setValue("/root/send/reqdatadel/tankflag" , model.getValue("/root/main/keepposinfo/keepposlist["+ (grd_tankkeep.row - 1)+ "]/tankflag"));
- model.setValue("/root/send/reqdatadel/sesnflag" , model.getValue("/root/main/keepposinfo/keepposlist["+ (grd_tankkeep.row - 1)+ "]/sesnflag"));
- model.setValue("/root/send/reqdatadel/frameflag", model.getValue("/root/main/keepposinfo/keepposlist["+ (grd_tankkeep.row - 1)+ "]/frameflag"));
- model.setValue("/root/send/reqdatadel/keeppos" , (grd_tankkeep.col - 2));
-
- if( messageBox("탱크:" + model.getValue("/root/send/reqdatadel/tankflag") + ", Session:"+ model.getValue("/root/send/reqdatadel/sesnflag") +", Frame:"+ model.getValue("/root/send/reqdatadel/frameflag")+", 위치:"+model.getValue("/root/send/reqdatadel/keeppos") + " 보관내역을 " , "Q001" ) == 6 ){
- submit("TXABC00402");
- if (model.getValue("root/properties/error/description") == ""){
- messageBox(model.getValue("root/properties/error/msg"), "E999", "");
- fReadFunc();
- }
- }
- }
- 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, "");
- }
- /* @group : 조혈모세포보관위치관리
- * @ver : 2008.01.28
- * @by : 남수현
- * @type : function
- * @access : public
- * @desc : 세포처리 Result 입력화면 오픈
- * @param : pid [등록번호]
- */
- function fOpenCellTretRsltInpt() {
-
- var keeppos;
- var cellinfo = '';
- var phopedd;
-
- if (btn_case1.selected == true){
- keeppos = (grd_tankkeep.col - 2);
- if(keeppos == 1){
- cellinfo = model.getValue("/root/main/keepposinfo/keepposlist["+ (grd_tankkeep.row-1)+ "]/cellbcno1");
- } else if(keeppos == 2){
- cellinfo = model.getValue("/root/main/keepposinfo/keepposlist["+ (grd_tankkeep.row-1)+ "]/cellbcno2");
- } else if(keeppos == 3){
- cellinfo = model.getValue("/root/main/keepposinfo/keepposlist["+ (grd_tankkeep.row-1)+ "]/cellbcno3");
- } else if(keeppos == 4){
- cellinfo = model.getValue("/root/main/keepposinfo/keepposlist["+ (grd_tankkeep.row-1)+ "]/cellbcno4");
- } else if(keeppos == 5){
- cellinfo = model.getValue("/root/main/keepposinfo/keepposlist["+ (grd_tankkeep.row-1)+ "]/cellbcno5");
- } else if(keeppos == 6){
- cellinfo = model.getValue("/root/main/keepposinfo/keepposlist["+ (grd_tankkeep.row-1)+ "]/cellbcno6");
- }
- }else{
- keeppos = (datagrid1.col - 2);
-
- if(keeppos == 1){
- cellinfo = model.getValue("/root/main/keepposinfo2/keepposlist2["+ (datagrid1.row-1)+ "]/cellbcno1");
- } else if(keeppos == 2){
- cellinfo = model.getValue("/root/main/keepposinfo2/keepposlist2["+ (datagrid1.row-1)+ "]/cellbcno2");
- } else if(keeppos == 3){
- cellinfo = model.getValue("/root/main/keepposinfo2/keepposlist2["+ (datagrid1.row-1)+ "]/cellbcno3");
- } else if(keeppos == 4){
- cellinfo = model.getValue("/root/main/keepposinfo2/keepposlist2["+ (datagrid1.row-1)+ "]/cellbcno4");
- } else if(keeppos == 5){
- cellinfo = model.getValue("/root/main/keepposinfo2/keepposlist2["+ (datagrid1.row-1)+ "]/cellbcno5");
- } else if(keeppos == 6){
- cellinfo = model.getValue("/root/main/keepposinfo2/keepposlist2["+ (datagrid1.row-1)+ "]/cellbcno6");
- }
- }
-
- var pid = model.getValue("/root/send/reqdata/pid");
- var sflag = pid
-
- if(cellinfo != '') {
- cellinfo = cellinfo.substring((getSearchStringRight(cellinfo, '(')+1), (getSearchStringRight(cellinfo, '(')+11));
- phopedd = cellinfo.substring(0, 4) + cellinfo.substring(5, 7) + cellinfo.substring(8, 10);
- sflag += "▦" + phopedd;
- }
- setParameter("opener_parameter_id", sflag);
- modal("SMABC00200", 1, "", 100, "", "", "", "left:0; right:; width:0; height:0; min:hidden, max:hidden;");
- }
- /* @group : 조혈모세포보관위치관리
- * @ver : 2008.01.28
- * @by : 남수현
- * @type : function
- * @access : public
- * @desc : 조혈모세포보관 및 해동 Result 입력화면 오픈
- * @param : pid [등록번호]
- */
- function fOpenCellKeepThawRsltInpt() {
- var pid = model.getValue("/root/send/reqdata/pid");
- var sflag = pid;
- setParameter("opener_parameter_id", sflag);
- modal("SMABC00300", 1, "", 100, "", "", "", "left:0; right:; width:0; height:0; min:hidden, max:hidden;");
- }
- ]]>
- </script>
- </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:189px; height:14px; ">조혈모세포보관위치관리</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:40px; width:1195px; height:744px; ">
- <switch id="switch1" style="left:0px; top:80px; width:1194px; height:655px; ">
- <case id="case1">
- <datagrid id="grd_tankkeep" nodeset="/root/main/keepposinfo/keepposlist" class="datagrid" caption="탱크구분^Session^ 보관위치^1^2^3^4^5^6^바코드번호1^바코드번호2^바코드번호3^바코드번호4^바코드번호5^바코드번호6|탱크구분^Session^Frame ^1^2^3^4^5^6^바코드번호1^바코드번호2^바코드번호3^바코드번호4^바코드번호5^바코드번호6" colsep="^" colwidth="90, 77, 130, 216, 215, 217, 214, 145, 145, 100, 100, 100, 100, 100, 100" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" selectionmode="free" style="left:5px; top:30px; width:1180px; height:610px; text-align:center; ">
- <col ref="tankflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/tankflag/A0394">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="sesnflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/sesnflag/A0395">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="frameflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/frameflag/A0396">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="cellbcno1" type="input" maxlength="16"/>
- <col ref="cellbcno2" type="input" maxlength="16"/>
- <col ref="cellbcno3" type="input" maxlength="16"/>
- <col ref="cellbcno4" type="input" maxlength="16"/>
- <col ref="cellbcno5" type="input" visibility="hidden" maxlength="16"/>
- <col ref="cellbcno6" type="input" visibility="hidden" maxlength="16"/>
- <col ref="cellbcno11" visibility="hidden"/>
- <col ref="cellbcno12" visibility="hidden"/>
- <col ref="cellbcno13" visibility="hidden"/>
- <col ref="cellbcno14" visibility="hidden"/>
- <col ref="cellbcno15" visibility="hidden"/>
- <col ref="cellbcno16" visibility="hidden"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( grd_tankkeep.col == grd_tankkeep.colRef("tankflag") ||
- grd_tankkeep.col == grd_tankkeep.colRef("sesnflag") ||
- grd_tankkeep.col == grd_tankkeep.colRef("frameflag") ) {
- return false;
- }
- {
- var scellbcno = grd_tankkeep.textMatrix(grd_tankkeep.row, grd_tankkeep.col);
- if (scellbcno != ""){
- model.setValue("/root/send/reqdata1/cellbcno", scellbcno);
- submit("TRABC00402");
- if (model.getValue("/root/main/cellbcnoinfo/cellbcnolist/cellbcno") == ""){
- messageBox(scellbcno + "의 바코드는 존재하지 않습니다.", "E999", "");
- grd_tankkeep.textMatrix(grd_tankkeep.row, grd_tankkeep.col) = "";
- return false;
- }
- if (model.getValue("/root/main/cellbcnoinfo/cellbcnolist/keepyn") == "Y"){
- messageBox(scellbcno + "의 바코드는 이미 보관중입니다.", "E999", "");
- grd_tankkeep.textMatrix(grd_tankkeep.row, grd_tankkeep.col) = "";
- return false;
- }
- grd_tankkeep.textMatrix(grd_tankkeep.row, (grd_tankkeep.col + 6)) = "I" + grd_tankkeep.textMatrix(grd_tankkeep.row, grd_tankkeep.col);
- grd_tankkeep.textMatrix(grd_tankkeep.row, grd_tankkeep.col) = model.getValue("/root/main/cellbcnoinfo/cellbcnolist/cellinfo");
- }
- }
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <caption id="caption7" class="tit_2" style="left:10px; top:10px; width:120px; height:13px; ">탱크별 보관내역</caption>
- <line id="line12" class="line_1" style="x1:5px; y1:25px; x2:1184px; y2:25px; "/>
- <button id="button3" class="btn2_letter8" style="left:1011px; top:5px; width:108px; height:19px; ">
- <caption>세포처리결과입력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOpenCellTretRsltInpt();
- ]]>
- </script>
- </button>
- <button id="button5" class="btn2_letter7" style="left:913px; top:5px; width:97px; height:19px; ">
- <caption>보관및해동결과</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOpenCellKeepThawRsltInpt();
- ]]>
- </script>
- </button>
- <button id="btn_excsave1" class="btn2_letter4" style="left:1120px; top:5px; width:64px; height:19px; ">
- <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_tankkeep.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- </case>
- <case id="case2" selected="true">
- <datagrid id="datagrid1" nodeset="/root/main/keepposinfo2/keepposlist2" caption="탱크구분^Session^ 보관위치^1^2^3^4^5^6^바코드번호1^바코드번호2^바코드번호3^바코드번호4^바코드번호5^바코드번호6|탱크구분^Session^Frame ^1^2^3^4^5^6^바코드번호1^바코드번호2^바코드번호3^바코드번호4^바코드번호5^바코드번호6" colsep="^" colwidth="90, 77, 130, 216, 216, 215, 215, 144, 147, 100, 100, 100, 100, 100, 100" dataheight="23" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheight="23" rowsep="|" selectionmode="free" style="left:5px; top:30px; width:1180px; height:610px; ">
- <col disabled="true" ref="tankflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/tankflag/A0394">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="sesnflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/sesnflag/A0395">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="frameflag" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/frameflag/A0396">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="cellbcno1" style="text-align:center; "/>
- <col ref="cellbcno2" style="text-align:center; "/>
- <col ref="cellbcno3" style="text-align:center; "/>
- <col ref="cellbcno4" style="text-align:center; "/>
- <col ref="cellbcno5" visibility="hidden" style="text-align:left; "/>
- <col ref="cellbcno6" visibility="hidden" style="text-align:left; "/>
- <col ref="cellbcno11" visibility="hidden"/>
- <col ref="cellbcno12" visibility="hidden"/>
- <col ref="cellbcno13" visibility="hidden"/>
- <col ref="cellbcno14" visibility="hidden"/>
- <col ref="cellbcno15" visibility="hidden"/>
- <col ref="cellbcno16" visibility="hidden"/>
- </datagrid>
- <line id="line1" class="line_1" style="x1:5px; y1:25px; x2:1184px; y2:25px; "/>
- <caption id="caption1" class="tit_2" style="left:10px; top:10px; width:120px; height:13px; ">전체보관내역</caption>
- <button id="button1" class="btn2_letter8" style="left:1011px; top:5px; width:108px; height:19px; ">
- <caption>세포처리결과입력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOpenCellTretRsltInpt();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter7" style="left:913px; top:5px; width:97px; height:19px; ">
- <caption>보관및해동결과</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fOpenCellKeepThawRsltInpt();
- ]]>
- </script>
- </button>
- <button id="btn_exsave2" class="btn2_letter4" style="left:1120px; top:5px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "세포보관내역", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != "")
- {
- datagrid1.saveExcel(fileName);
- }
- ]]>
- </script>
- </button>
- </case>
- </switch>
- <button id="btn_case2" class="btn_sw" group="tab" selected="false" style="left:99px; top:57px; width:140px; height:22px; ">
- <caption>전체/환자별 보관내역</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.toggle("case2");
- btn_case1.selected = false;
- btn_case2.selected = true;
- caption42.visible = true;
- ipt_pid.visible = true;
- button33.visible = true;
- caption2.visible = true;
- output3.visible = true;
- output4.visible = true;
- output6.visible = true;
- output7.visible = true;
- btn_save.visible = false;
- btn_del.visible = false;
- caption4.visible = false;
- combo2.visible = false;
- combo3.visible = false;
- combo4.visible = false;
- button4.visible = false;
-
- model.setValue("/root/send/reqdata/selflag", "A");
-
- cmb_tankflag.select(0);
- cmb_tankflag.disabled = true;
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_case1" class="btn_sw" group="tab" selected="true" style="left:0px; top:57px; width:100px; height:22px; ">
- <caption>탱크별보관내역</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- model.toggle("case1");
- btn_case1.selected = true;
- btn_case2.selected = false;
- caption42.visible = false;
- ipt_pid.visible = false;
- button33.visible = false;
- caption2.visible = false;
- output3.visible = false;
- output4.visible = false;
- output6.visible = false;
- output7.visible = false;
- btn_save.visible = true;
- btn_del.visible = true;
- caption4.visible = true;
- combo2.visible = true;
- combo3.visible = true;
- combo4.visible = true;
- button4.visible = true;
-
- model.setValue("/root/send/reqdata/selflag", "T");
-
- cmb_tankflag.select(1);
- cmb_tankflag.disabled = false;
-
- model.refresh();
- ]]>
- </script>
- </button>
- <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
- <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1194px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption42" class="search_name" visibility="hidden" style="left:219px; top:9px; width:86px; height:17px; ">등록번호 :</caption>
- <line id="line10" class="line_4" style="x1:1107px; y1:7px; x2:1107px; y2:29px; "/>
- <output id="output4" ref="/root/send/reqdata/rrgstno" class="output_search" visibility="hidden" format="999999-9999999" style="left:615px; top:8px; width:100px; height:19px; text-align:center; "/>
- <output id="output6" ref="/root/send/reqdata/age" class="output_search" visibility="hidden" style="left:761px; top:8px; width:40px; height:19px; text-align:center; "/>
- <output id="output7" ref="/root/send/reqdata/sex" class="output_search" visibility="hidden" style="left:718px; top:8px; width:40px; height:19px; text-align:center; "/>
- <caption id="caption2" class="search_name" visibility="hidden" style="left:443px; top:9px; width:86px; height:17px; ">환자정보 :</caption>
- <output id="output3" ref="/root/send/reqdata/hngnm" class="output_search" visibility="hidden" style="left:532px; top:8px; width:80px; height:19px; text-align:left; "/>
- <button id="btn_sea" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- if(model.getValue("/root/send/reqdata/pid") != "" ) {
- fSearchPatInfo();
- }
- if (btn_case1.selected == true){
- fReadFunc();
- }else{
- fReadFunc1();
- }
- ]]>
- </script>
- </button>
- <caption id="caption3" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">탱크구분 :</caption>
- <select1 id="cmb_tankflag" ref="/root/send/reqdata/tankflag" class="combo_search" appearance="minimal" style="left:104px; top:8px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/tankflag/A0394">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (btn_case1.selected == true){
- fReadFunc();
- }else{
- fReadFunc1();
- }
- ]]>
- </script>
- </select1>
- <input id="ipt_pid" ref="/root/send/reqdata/pid" class="input_s_button" visibility="hidden" inputtype="button" style="left:308px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- model.resetInstanceNode("/root/temp/bmtpatientinfo");
- modal("SPABO61300",0,100,150,"SPABO61300","/root/temp/receiveref","/root/temp/receivedata/receiveref");
- if(model.getValue("/root/temp/bmtpatientinfo/pid") != "") {
- model.setValue("/root/send/reqdata/pid", model.getValue("/root/temp/bmtpatientinfo/pid"));
- ipt_pid.refresh();
- btn_sea.dispatch("onclick");
- }
- ]]>
- </script>
- </input>
- <button id="button33" class="icon_search" visibility="hidden" style="left:411px; top:8px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- modal("SPPMC02500", "", "200", "200", "SPPMC02500","/root/send/reqdata","/root/send");
- if (model.getValue("/root/main/popupendflag") != "cancel"){
- model.setValue("/root/send/reqdata/pid", model.getValue("/root/main/patinfo/patinfolist/pid") );
- model.setValue("/root/send/reqdata/hngnm", model.getValue("/root/main/patinfo/patinfolist/hngnm"));
- model.setValue("/root/send/reqdata/rrgstno", model.getValue("/root/main/patinfo/patinfolist/rrgstno1") + model.getValue("/root/main/patinfo/patinfolist/rrgstno2"));
- model.setValue("/root/send/reqdata/sex", model.getValue("/root/main/patinfo/patinfolist/sex"));
- model.setValue("/root/send/reqdata/age", model.getValue("/root/main/patinfo/patinfolist/age"));
- fReadFunc();
- }
- model.refresh();
- ]]>
- </script>
- </button>
- </group>
- <caption id="caption4" class="search_name" style="left:568px; top:54px; width:86px; height:17px; ">위치이동 :</caption>
- <select1 id="combo2" ref="/root/send/movedata/sesnflag" appearance="minimal" style="left:660px; top:54px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/sesnflag/A0395">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo3" ref="/root/send/movedata/frameflag" appearance="minimal" style="left:785px; top:54px; width:120px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/frameflag/A0396">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="combo4" ref="/root/send/movedata/keeppos" appearance="minimal" style="left:910px; top:54px; width:75px; height:19px; ">
- <choices>
- <item>
- <label>1</label>
- <value>1</value>
- </item>
- <item>
- <label>2</label>
- <value>2</value>
- </item>
- <item>
- <label>3</label>
- <value>3</value>
- </item>
- <item>
- <label>4</label>
- <value>4</value>
- </item>
- <item>
- <label>5</label>
- <value>5</value>
- </item>
- <item>
- <label>6</label>
- <value>6</value>
- </item>
- </choices>
- </select1>
- <button id="button4" class="btn2_letter3" style="left:990px; top:54px; width:53px; height:19px; ">
- <caption>이동</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var scellbcno = grd_tankkeep.textMatrix(grd_tankkeep.row, (grd_tankkeep.col + 6));
- var scellinfo = grd_tankkeep.textMatrix(grd_tankkeep.row, grd_tankkeep.col);
- if (scellbcno == ""){
- messageBox("위치를 변경할 바코드를 선택한 후 처리하시기 바랍니다.", "E999", "");
- return;
- }
- if (model.getValue("/root/send/reqdata/tankflag") == ""){
- messageBox("탱크구분은 필수 선택항목입니다.", "E999", "");
- return;
- }
- if (model.getValue("/root/send/movedata/sesnflag") == ""){
- messageBox("Session구분은 필수 선택항목입니다.", "E999", "");
- return;
- }
- if (model.getValue("/root/send/movedata/frameflag") == ""){
- messageBox("Frame구분은 필수 선택항목입니다.", "E999", "");
- return;
- }
- if (model.getValue("/root/send/movedata/keeppos") == ""){
- messageBox("본관위치는 필수 선택항목입니다.", "E999", "");
- return;
- }
- var ssesnflag = model.getValue("/root/send/movedata/sesnflag");
- var sframeflag = model.getValue("/root/send/movedata/frameflag");
- var skeeppos = model.getValue("/root/send/movedata/keeppos");
- var irow = "0";
- for (var i = 1; i < grd_tankkeep.rows + 1; i++){
- var ssesnflag1 = model.getValue("/root/main/keepposinfo/keepposlist[" + i + "]/sesnflag");
- var sframeflag1 = model.getValue("/root/main/keepposinfo/keepposlist[" + i + "]/frameflag");
- if (ssesnflag == ssesnflag1 && sframeflag == sframeflag1){
- var scellbcno1 = model.getValue("/root/main/keepposinfo/keepposlist[" + i + "]/cellbcno" + skeeppos);
- if (scellbcno1 != ""){
- messageBox("이미 다른 바코드가 등록되어 있습니다.", "E999", "");
- break;
- }else{
- var irow = i + 1;
- break;
- }
- }
- }
- if (irow > 0){
- grd_tankkeep.textMatrix(grd_tankkeep.row, (grd_tankkeep.col + 6)) = "D" + scellbcno;
- grd_tankkeep.rowStatus(grd_tankkeep.row) = 2;
- grd_tankkeep.textMatrix(irow, parseInt(skeeppos) + 8) = "I" + scellbcno;
- grd_tankkeep.textMatrix(irow, parseInt(skeeppos) + 2) = scellinfo;
- grd_tankkeep.rowStatus(irow) = 2;
- }
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button7" class="btn4_letter7" style="left:1075px; top:55px; width:116px; height:22px; ">
- <caption>바코드넘버조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- //group1.attribute("height") = "279";
- if(model.getValue("/root/send/reqdata/pid") != '') {
- model.setValue("/root/send/reqdata/srchpid", model.getValue("/root/send/reqdata/pid"))
- }
- group1.visible = true;
- submit("TRABC00405");
-
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:1194px; y2:0px; "/>
- <button id="btn_del" class="btn4_letter2" style="left:1081px; top:5px; width:56px; height:22px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fExecDel();
- ]]>
- </script>
- </button>
- <button id="btn_save" class="btn4_letter2" style="left:1138px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fExecSave();
- ]]>
- </script>
- </button>
- </group>
- <group id="group1" visibility="hidden" style="left:680px; top:175px; width:321px; height:360px; ">
- <datagrid id="grd_cellbcnolist" nodeset="/root/main/cellbarcdinfo/cellbarcdlist" caption="적용일자^환자이름^바코드번호" colsep="^" colwidth="92, 84, 100" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:10px; top:50px; width:302px; height:270px; ">
- <col ref="prcphopedd"/>
- <col ref="hngnm"/>
- <col ref="cellbcno"/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if ( (grd_cellbcnolist.row >= grd_cellbcnolist.fixedRows) && (grd_cellbcnolist.isCell(event.target))) {
-
- if((grd_tankkeep.row >= 2) && (grd_tankkeep.col >= 1) && (model.getValue("/root/main/keepposinfo/keepposlist["+ (grd_tankkeep.row-1) +"]/cellbcno"+ (grd_tankkeep.col-2)) == "")) {
- var vCellBcNo = model.getValue("/root/main/cellbarcdinfo/cellbarcdlist["+ grd_cellbcnolist.row +"]/cellbcno");
- model.setValue("/root/main/keepposinfo/keepposlist["+ (grd_tankkeep.row-1) +"]/cellbcno"+ (grd_tankkeep.col-2), vCellBcNo);
- } else {
- messageBox("보관위치를 다시 선택하여 주세요.", "E999", "");
-
- }
- var scellbcno = grd_tankkeep.textMatrix(grd_tankkeep.row, grd_tankkeep.col);
- if (scellbcno != ""){
- model.setValue("/root/send/reqdata1/cellbcno", scellbcno);
- submit("TRABC00402");
- if (model.getValue("/root/main/cellbcnoinfo/cellbcnolist/cellbcno") == ""){
- messageBox(scellbcno + "의 바코드는 존재하지 않습니다.", "E999", "");
- grd_tankkeep.textMatrix(grd_tankkeep.row, grd_tankkeep.col) = "";
- return false;
- }
- if (model.getValue("/root/main/cellbcnoinfo/cellbcnolist/keepyn") == "Y"){
- messageBox(scellbcno + "의 바코드는 이미 보관중입니다.", "E999", "");
- grd_tankkeep.textMatrix(grd_tankkeep.row, grd_tankkeep.col) = "";
- return false;
- }
- grd_tankkeep.textMatrix(grd_tankkeep.row, (grd_tankkeep.col + 6)) = "I" + grd_tankkeep.textMatrix(grd_tankkeep.row, grd_tankkeep.col);
- grd_tankkeep.textMatrix(grd_tankkeep.row, grd_tankkeep.col) = model.getValue("/root/main/cellbcnoinfo/cellbcnolist/cellinfo");
- }
-
- grd_tankkeep.rowStatus(grd_tankkeep.row) = 2;
- group1.visible = false;
-
- }
-
- model.refresh();
-
-
-
- ]]>
- </script>
- </datagrid>
- <button id="btn_clo" class="btn4_letter2" style="left:257px; top:330px; width:56px; height:22px; ">
- <caption>종료</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- group1.visible = false;
-
- ]]>
- </script>
- </button>
- <group id="group2" style="left:10px; top:10px; width:305px; height:35px; vertical-align:top; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:302px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
- <line id="line2" class="line_4" style="x1:226px; y1:7px; x2:226px; y2:29px; "/>
- <button id="btn_sea2" class="btn1_letter2" style="left:237px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- submit("TRABC00405");
- ]]>
- </script>
- </button>
- <caption id="caption5" class="search_name" style="left:9px; top:9px; width:86px; height:17px; ">등록번호 :</caption>
- <input id="ipt_pid2" ref="/root/send/reqdata/srchpid" class="input_s_button" inputtype="button" style="left:98px; top:8px; width:100px; height:19px; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- model.resetInstanceNode("/root/temp/bmtpatientinfo");
- modal("SPABO61300",0,100,150,"SPABO61300","/root/temp/receiveref","/root/temp/receivedata/receiveref");
- if(model.getValue("/root/temp/bmtpatientinfo/pid") != "") {
- model.setValue("/root/send/reqdata/srchpid", model.getValue("/root/temp/bmtpatientinfo/pid"));
- btn_sea2.dispatch("onclick");
- }
-
- ]]>
- </script>
- </input>
- </group>
- </group>
- </xhtml:body>
- </xhtml:html>
|