12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPLNP90700_장기이식대기자.xrw
- * 설 명 : 장기이식대기자관리화면
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : 유민규
- * 작 성 일 : 2011.02.
- * 수정이력 :
- * 기 타 :
- -->
- <?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>Manual작업대장</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <OranList>
- <chk/>
- <trnsseqno/>
- <konosid/>
- <patnm/>
- <keeppos/>
- <bcolldt/>
- <trnscorpnm/>
- <trnshopeorgncd/>
- <abndt/>
- <trnscmt/>
- <rgstdt/>
- </OranList>
- </main>
- <send>
- <workgbn/>
- <workcmd/>
- <colfromdd/>
- <coltodd/>
- <trnsseqno/>
- <konosid/>
- <patnm/>
- <keeppos/>
- <bcolldt/>
- <trnscorpnm/>
- <trnshopeorgncd/>
- <abndt/>
- <trnscmt/>
- <rgstdt/>
- <bcolgbn/>
- <oranlist/>
- <uioranlist/>
- <skonosid/>
- <spatnm/>
- </send>
- <init>
- <report/>
- <tclsnm1/>
- <tclsnm2/>
- <tclsnm3/>
- <tclsnm4/>
- <tclsnm5/>
- <tclsnms/>
- </init>
- <hidden>
- <ref>
- <workgbn/>
- <workcmd/>
- <searchadd/>
- <colfromdd/>
- <coltodd/>
- </ref>
- <ref2/>
- </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="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- fSetInit();
-
-
- ]]>
- </script>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB0116"/>
- <submission id="TRLLF90401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/testgrupdetl"/>
- <submission id="TRLNP90701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/orglist"/>
- <submission id="TXLNP90701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <submission id="TXLNP90702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <submission id="TRLNP90702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" add="bottom" resultref="/root/hidden/ref2/"/>
- </model>
- <script type="javascript">
- <![CDATA[
- function fExeExcel(pGridId) {
- if(pGridId == "1"){
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != "")
- {
- datagrid1.saveExcel(fileName);
- }
- }
- else{
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
- if (fileName != "")
- {
- datagrid2.saveExcel(fileName);
- }
- }
-
- }
-
- function fSetInit() {
- var toDay = getCurrentDate();
- var mDay = getCurrentDate().toDate("YYYYMMDD").getAddDate(-3,"M")
-
- //alert(mDay);
- model.setValue("/root/hidden/ref/colfromdd", mDay.getDateFormat("YYYYMMDD"));
- model.setValue("/root/hidden/ref/coltodd", toDay);
- model.removeNodeset("/root/main/OranList");
- model.setValue("/root/hidden/ref/workgbn" , "2");
-
- model.removeNodeset("/root/init/LB0116");
-
- //model.setValue("/root/send/codeflag","0103|0116|0000|0126|"); //0126 핵의학 병원별 간략보기 체크 여부
-
- //submit("TRLZZ00101");
-
-
- model.refresh();
- }
-
-
-
- //조회
- function fGetNmedWorkList(gbn){
-
- var acptfromdd = model.getValue("/root/hidden/ref/acptfromdd");
- var acpttodd = model.getValue("/root/hidden/ref/acpttodd");
-
- var divgrupcd = model.getValue("/root/hidden/ref/divgrupcd");
- //var divgrupnmlist = chk_divgrupnmlist.value;
-
- //var divgrupnmlistlabel = chk_divgrupnmlist.label;
- var divgrupnm = "";
- var divgrupnmcount = 0;
-
- if(acptfromdd == "" || acpttodd == ""){
- messageBox("접수일자가 선택되지 ","E007","");
- return;
- }
-
- if(model.getValue("/root/hidden/ref/tclscdlist/tclscdlist2") == ""){
-
- messageBox("작업구분이 선택되지 ","E007","");
- return;
- }
-
- /*
- if(divgrupnmlistlabel != ""){
- divgrupnm = divgrupnmlistlabel.split("▦");
- divgrupnmcount = divgrupnm.length;
- }else{
- messageBox("분주라벨이 선택되지 ","E007","");
- return;
- }
- */
-
- model.setValue("/root/send/acptfromdd", model.getValue("/root/hidden/ref/acptfromdd"));
- model.setValue("/root/send/acpttodd", model.getValue("/root/hidden/ref/acpttodd"));
-
- model.setValue("/root/send/divgrupcd", model.getValue("/root/hidden/ref/divgrupcd"));
- //model.setValue("/root/send/divgrupcd", "TFT");
-
-
- //if(divgrupnmlist != ""){
- // model.setValue("/root/send/tclscd", divgrupnmlist);
- //}else if(divgrupnmlist == ""){
- // model.setValue("/root/send/tclscd", "");
- //}
- model.setValue("/root/send/userdeptflagcd", model.getValue("/root/init/LB0000/nm"));
- //model.setValue("/root/send/userdeptflagcd", "N");
-
- //alert(model.getValue("/root/send/acptfromdd"));
- //alert(model.getValue("/root/send/acpttodd"));
- //alert(model.getValue("/root/send/tclscd"));
- //alert(model.getValue("/root/send/userdeptflagcd"));
-
- //var nTclsnm = chk_divgrupnmlist.label;
- //nTclsnm = nTclsnm.setReplaceWord("▦", ", ");
- //model.setValue("/root/hidden/nTclsnm", nTclsnm);
-
- datagrid1.fixedcellischeck(0, 1) = false;
- if(gbn == "enter"){
- model.setValue("/root/send/tclsgbn", model.getValue("/root/hidden/ref/tclsgbn"));
- model.setValue("/root/send/workbcno", model.getValue("/root/hidden/ref/workbcno"));
- model.setValue("/root/send/tclscdlist", model.getValue("/root/hidden/ref/tclscdlist/tclscdlist"));
-
- var bcno = model.getValue("/root/hidden/ref/workbcno");
-
- var find = datagrid1.findRow(bcno, 1, 3, true, true);
-
- if(find > 0) {
- messageBox("이미 선택된 검체", "E008");
- return;
- }
-
- submit("TRLLP02601");
-
- var cRow = datagrid1.rows - 1;
- var WBC = model.getValue("/root/main/nmedworklist/write["+cRow+"]/cbc");
- var NUT = model.getValue("/root/main/nmedworklist/write["+cRow+"]/nut");
-
- fCalWB(WBC, NUT, cRow);
-
- model.refresh();
-
-
-
- }else{
- model.setValue("/root/send/tclsgbn", model.getValue("/root/hidden/ref/tclsgbn"));
- model.setValue("/root/send/tclscdlist", model.getValue("/root/hidden/ref/tclscdlist/tclscdlist"));
- submit("TRLLP02602");
-
- if(datagrid1.rows > 1){
-
- for(var cRow = 1; cRow < datagrid1.rows ; cRow++){
-
- var WBC = model.getValue("/root/main/nmedworklist/write["+cRow+"]/cbc");
- var NUT = model.getValue("/root/main/nmedworklist/write["+cRow+"]/nut");
-
- fCalWB(WBC, NUT, cRow);
-
- }
-
- model.refresh();
-
- }
- }
-
-
- }
-
-
- function fCalWB(WBC, NUT, cRow){
-
- if(WBC != "" && NUT != ""){
- var calWB = (220000 / (WBC * NUT / 100));
-
- var ext = Math.pow(10, 1);
- var calWB = Math.round(calWB * ext) / ext;
- model.setValue("/root/main/nmedworklist/write["+cRow+"]/wbval", calWB);
- }
-
- }
-
- function getAcptChk(){
- modal("SPLNP90100","","","","","/root/send","/root/hidden/ref");
- }
-
- //분주라벨그룹 상세조회
- function fSelectDivGrup(){
-
- model.removenodeset("/root/main/divgrupnmlist");
- model.refresh();
- model.setValue("/root/hidden/ref/tclscd", "");
- model.setValue("/root/send/divgrupcd", combo2.value);
- //model.setValue("/root/send/divgrupcd", "TFT");
- submit("TRLNP00102" ,false);
-
- if(model.getValue("/root/hidden/ref/divgrupcd") == "00"){
- checkbox1.visible = false;
- }
- else{
- checkbox1.visible = true;
- }
- model.setValue("/root/hidden/ref/allcheck", "");
-
- model.refresh();
-
-
-
-
- /*
- var count = getNodesetCount("/root/main/divgrupnmlist");
-
- if(count > 0){
- for(i=0; i< count; i++){
- chk_divgrupnmlist.select(i);
- }
- }
- */
- }
-
- function fExeallcheck(){
- var count = getNodesetCount("/root/main/divgrupnmlist");
- if(model.getValue("/root/hidden/ref/allcheck") == "1"){
- if(count > 0){
- for(i=0; i< count; i++){
- chk_divgrupnmlist.select(i);
- }
- }
- }
- else{
- if(count > 0){
- for(i=0; i< count; i++){
- chk_divgrupnmlist.deselect(i);
- }
- }
- }
- }
-
- //조회
- function fGetOranTranfList(gbn){
-
- if(model.getValue("/root/hidden/ref/searchadd") != "true"){
- model.removeNodeset("/root/main/OranList");
- }
- model.resetInstanceNode("/root/send");
- if(gbn == "ref"){
- //alert("선택");
- //alert(model.getValue("/root/hidden/ref/workgbn") );
- if (model.getValue("/root/hidden/ref/workgbn") == "1"){
- model.setValue("/root/send/trnsseqno", model.getValue("/root/hidden/ref/workcmd"));
- }else if (model.getValue("/root/hidden/ref/workgbn") == "2"){
- model.setValue("/root/send/konosid", model.getValue("/root/hidden/ref/workcmd"));
- }else if (model.getValue("/root/hidden/ref/workgbn") == "3"){
- model.setValue("/root/send/patnm", model.getValue("/root/hidden/ref/workcmd"));
- }else if (model.getValue("/root/hidden/ref/workgbn") == "4"){
- model.setValue("/root/send/keeppos", model.getValue("/root/hidden/ref/workcmd"));
- }else if (model.getValue("/root/hidden/ref/workgbn") == "5"){
- model.setValue("/root/send/bcolldt", model.getValue("/root/hidden/ref/workcmd"));
- }else if (model.getValue("/root/hidden/ref/workgbn") == "6"){
- model.setValue("/root/send/trnscorpnm", model.getValue("/root/hidden/ref/workcmd"));
- }else if (model.getValue("/root/hidden/ref/workgbn") == "7"){
- model.setValue("/root/send/rgstdt", model.getValue("/root/hidden/ref/workcmd"));
- }
-
- }
-
- model.setValue("/root/send/workgbn", model.getValue("/root/hidden/ref/workgbn"));
- model.setValue("/root/send/workcmd", model.getValue("/root/hidden/ref/workcmd"));
- if (gbn == "days"){
- model.setValue("/root/send/colfromdd", model.getValue("/root/hidden/ref/colfromdd"));
- model.setValue("/root/send/coltodd", model.getValue("/root/hidden/ref/coltodd"));
- model.setValue("root/send/bcolgbn" , "1");
- }
- submit("TRLNP90701");
-
- for (var i =1; i<=grd_orglist.rows; i++){
- if (model.getValue("/root/main/OranList["+i+"]/abndt" ) == "19000101000000"){
- model.setValue("/root/main/OranList["+i+"]/abndt" , "");
- }else if(model.getValue("/root/main/OranList["+i+"]/abndt" ) == "19000101"){
- model.setValue("/root/main/OranList["+i+"]/abndt" , "");
- }
- }
- }
-
- function fSetAddRow(){
- //alert("!!");
- var tDay = getCurrentDate();
- if (grd_orglist.rows < 2 ){
- grd_orglist.addRow();
- }else{
- grd_orglist.insertRow(1);
- }
- //model.copyNodeset("/root/main/OranList2","/root/main/OranList");
- //model.removenodeset("/root/main/OranList");
-
- model.setValue("/root/main/OranList["+grd_orglist.row+"]/bcolldt" , tDay);
- model.setValue("/root/main/OranList["+grd_orglist.row+"]/rgstdt" , tDay);
- model.setValue("/root/main/OranList["+grd_orglist.row+"]/trnshopeorgncd" , "00");
- //model.copyNodeset("/root/main/OranList","/root/main/OranList2");
- //model.removeNodeset("/root/main/OranList2");
- model.refresh();
-
-
-
-
- }
-
- function fInsRowdel() {
-
- var kRows = grd_orglist.rows;
-
- for (var i =1; i<=grd_orglist.rows; i++){
- //alert("for");
- var chk = model.getValue("/root/main/OranList["+i+"]/chk" );
- //alert(chk);
- if(model.getValue("/root/main/OranList["+i+"]/chk") == "true"){
- //alert("if");
- //grd_eqmttclscd.deleteitem(i);
- model.removenodeset("/root/main/OranList["+i+"]");
- i = i -1;
- kRows = kRows -1 ;
- }
- }
- model.refresh();
-
-
-
-
- //var row = grd_eqmttclscd.row;
- //grd_eqmttclscd.deleteItem(row);
-
- for ( i =1 ; i<= grd_orglist.rows ; i++){
- grd_orglist.rowStatus(i) = 0 ;
- }
-
- //alert (stestcdseqno);
- /*if ( stestcdseqno == ""){
- var row = grd_eqmttclscd.row;
- grd_eqmttclscd.deleteItem(row);
- }
- else{
- grd_eqmttclscd.rowStatus(grd_eqmttclscd.row) = 4;
-
- }
- */
- }
-
- function fsavelist(){
-
- //for (var i = 1 ; i <= grd_eqmttclscd.rows ; i++){
- // grd_eqmttclscd.rowStatus(i) = 1 ;
- // }
-
- // if(grd_orglist.rows <2){
- // messageBox("장비별 검사코드 상세내역 정보를 ", "C001"); //장비별 검사코드 상세내역 정보를 입력하십시오
- // return;
- // }
-
-
-
- for ( i = 1 ; i<= grd_orglist.rows - 1 ; i++){
- if (grd_orglist.rowStatus(i) == "1" || "2" ){
- if (model.getValue("/root/main/OranList["+i+"]/abndt" ) == ""){
- model.setValue("/root/main/OranList["+i+"]/abndt" , "19000101000000");
- }
- }
- }
-
- var uioranlist = grd_orglist.getUpdateData();
-
- //model.setValue("/root/send/eqmtcd" , model.getValue("/root/main/eqmtdetllist["+grd_eqmtlist.row+"]/eqmtcd"));
- model.setValue("/root/send/uioranlist" , uioranlist);
- model.copyNode("/root/send/oranlist" , "/root/main/OranList");
-
-
- var comment = "" ;
- for ( i = 1 ; i<= grd_orglist.rows - 1 ; i++){
- //alert(grd_orglist.rows);
- //alert(i);
- if (grd_orglist.rowStatus(i) == "1" || "2" ){
- if(model.getValue("/root/main/OranList["+i+"]/konosid" ) == ""){
- //alert(model.getValue("/root/main/OranList["+i+"]/konosid" ));
- comment = comment + "KONOSID ";
- }else if (model.getValue("/root/main/OranList["+i+"]/patnm" ) == ""){
- comment = comment + "환자명 ";
- }else if (model.getValue("/root/main/OranList["+i+"]/keeppos" ) == ""){
- comment = comment + "보관함 ";
- }else if (model.getValue("/root/main/OranList["+i+"]/bcolldt" ) == ""){
- comment = comment + "채취일자 ";
- }else if (model.getValue("/root/main/OranList["+i+"]/trnscorpnm" ) == ""){
- comment = comment + "이식의료기관 ";
- }else if (model.getValue("/root/main/OranList["+i+"]/trnshopeorgncd" ) == ""){
- comment = comment + "이식희망장기 ";
- }else if (model.getValue("/root/main/OranList["+i+"]/rgstdt" ) == ""){
- comment = comment + "등록일시 "
- }
- if(comment != ""){
- alert ( comment + " 를 입력하여주세요 ");
- return;
- }
-
- }
- }
-
-
-
- if(submit("TXLNP90701")){
- // 초기화
- fSetInit();
- }
-
- }
-
- //출력
- function fReportPreview(){
- var PrintOption = model.getValue("/root/hidden/printoption");
- if(PrintOption == "1"){
- exeReportPreview("RPLLP02601", "XMLSTR", "", "");
- }else{
- exeReportPreview("RPLLP02600", "XMLSTR", "", "");
- }
-
- }
-
- function fReportPreview2(){
-
- if(model.getValue("/root/hidden/ref/nacpt") == "1"){
- getAcptChk();
- }
- //alert("개발중입니다");
- //return;
- var divgrupnmlist = chk_divgrupnmlist.value;
- //alert(divgrupnmlist);
- var divgrupnmlistlabel = chk_divgrupnmlist.label;
- var divgrupnm = "";
- var divgrupnmcount = 0;
-
- if(divgrupnmlistlabel != ""){
- divgrupnm = divgrupnmlistlabel.split("▦");
- divgrupnmcount = divgrupnm.length;
- }
- if(divgrupnmcount != 1){
- if(divgrupnmcount > 5){
- alert("5개 이상의 항목을 출력할수 없습니다.");
- return;
- }
- fReportPreview3(); // 단항목 워크리스트가 아닐경우
- return;
- }
-
- //model.setValue("/root/hidden/ref/tclsnm", "["+divgrupnm+"]");
- //model.setValue("/root/hidden/ref/grupnm", combo2.label);
- fReportPreview3("single");
- //exeReportPreview("RPLNP00106", "XMLSTR");
- }
-
-
-
- function fReportPreview3(gbn){
-
- var testcds = "";
- var n = getNodesetCount("/root/main/divgrupnmlist");
-
- var divgrupnmlist = chk_divgrupnmlist.value;
-
- var Tnm = divgrupnmlist.split("▦");
-
- model.setValue("/root/init/tclsnm1", "");
- model.setValue("/root/init/tclsnm2", "");
- model.setValue("/root/init/tclsnm3", "");
- model.setValue("/root/init/tclsnm4", "");
- model.setValue("/root/init/tclsnm5", "");
-
- for(divR = 1 ; divR <= n ; divR++){
- testcds = testcds + "'" + model.getValue("/root/main/divgrupnmlist["+divR+"]/tclscd") + "',";
- for(i = 0 ; i < Tnm.length ; i++){
- if(Tnm[i] == model.getValue("/root/main/divgrupnmlist["+divR+"]/tclscd")){
- model.setValue("/root/init/tclsnm" + (i+1), model.getValue("/root/main/divgrupnmlist["+divR+"]/tclsnm"));
- }
- }
- }
-
- testcds = testcds.substr(0,testcds.length-1);
- //alert(testcds);
- model.setValue("/root/send/testcds" , testcds);
-
- if(gbn == "single"){
- model.makeValue("/root/send/single" , "single");
- }
- submit("TRLNP00103");
-
- if(gbn == "single"){
- model.removenode("/root/send/single");
- }
-
- var nTclsnm = chk_divgrupnmlist.label;
- nTclsnm = nTclsnm.setReplaceWord("▦", ", ");
- model.setValue("/root/init/tclsnms", "[" + nTclsnm + "]");
-
- //var divgrupnmlistlabel = chk_divgrupnmlist.label;
- //var divgrupnm = divgrupnmlistlabel.split("▦");
- //for(i = 0 ; i < divgrupnm.length ; i++){
- // model.setValue("/root/init/tclsnm" + (i+1), divgrupnm[i]);
- //}
-
- // 단항목 다항목 구분 및 간략출력 여부에 따른 레포트 로딩
- datagrid1.fixedcellischeck(0, 1) = false;
- if(gbn == "single"){
- if(model.getValue("/root/hidden/ref/dprint") == "1"){
- exeReportPreview("RPLNP00106", "XMLSTR", "", "", "true", "", "", "", "","true");
- //exeReportPreview("RPLNP00106", "XMLSTR", "");
- }
- else{
- exeReportPreview("RPLNP00108", "XMLSTR", "", "", "true", "", "", "", "","true");
- //exeReportPreview("RPLNP00108", "XMLSTR", "");
- }
- }else{
- if(model.getValue("/root/hidden/ref/dprint") == "1"){
- exeReportPreview("RPLNP00105", "XMLSTR", "", "", "true", "", "", "", "","true");
- //exeReportPreview("RPLNP00105", "XMLSTR", "");
- }
- else{
- exeReportPreview("RPLNP00104", "XMLSTR", "", "", "true", "", "", "", "","true");
- //exeReportPreview("RPLNP00104", "XMLSTR", "");
- }
- }
-
-
- // 다항목 레포트 제목 초기화
- //for(i = 0 ; i < 5 ; i++){
- // model.setValue("/root/init/tclsnm" + (i+1), "");
- //}
-
-
- }
-
- function fbfrslt(){
- var count = getNodesetCount("/root/main/divgrupnmlist");
- if(count > 0){
- var tclscdlist = model.getValue("/root/main/divgrupnmlist[1]/tclscd");
- for(i=2; i<= count; i++){
- tclscdlist = tclscdlist + "','" + model.getValue("/root/main/divgrupnmlist["+i+"]/tclscd");
- }
- tclscdlist = "'" + tclscdlist + "'";
- model.setValue("/root/send/data3/pid", model.getValue("/root/main/nmedworklist/write["+ datagrid1.row+"]/pid"));
- model.setValue("/root/send/data3/tclslist", tclscdlist);
- modal("SPLNR90600","","","","","/root/send/data3","/root/hidden/ref");
- }
- }
-
-
-
- function fSetListRemove(){
- if(datagrid1.rows < 2){
- return;
- }else{
- model.removenodeset("/root/main/nmedworklist/write");
- model.refresh();
- }
-
- }
-
- function fchktrueFalse(){
- var selectedCells = datagrid1.selectedCells;
-
- for (var i=0; i<selectedCells.length; i++){
- var cell = selectedCells.item(i);
- if (cell){
- var curRow = cell.row;
- var curCol = cell.col;
- if(curCol ==1){
- if(datagrid1.valueMatrix(curRow,curCol) == "false"){
- model.setValue("/root/main/nmedworklist/write["+curRow+"]/chk", "true");
- }else if(datagrid1.valueMatrix(curRow,curCol) == "true"){
- model.setValue("/root/main/nmedworklist/write["+curRow+"]/chk", "false");
- }else{
- model.setValue("/root/main/nmedworklist/write["+curRow+"]/chk", "true");
- }
- }
- }
- }
- }
-
- function fRequestPage(){
-
- var reqno = model.getValue("/root/main/nmedworklist/write["+datagrid1.row+"]/reqno");
- var pid = model.getValue("/root/main/nmedworklist/write["+datagrid1.row+"]/pid");
- var prcpcd = model.getValue("/root/main/nmedworklist/write["+datagrid1.row+"]/prcpcd");
- var spccd = model.getValue("/root/main/nmedworklist/write["+datagrid1.row+"]/spccd");
-
- model.setValue("/root/hidden/request/pid", pid);
- model.setValue("/root/hidden/request/reqno", reqno);
- model.setValue("/root/hidden/request/prcpcd", prcpcd);
- model.setValue("/root/hidden/request/spccd", spccd);
-
- modal("SPLRR91000" ,"","","","","/root/hidden/request", "/root/hidden/reqfrminfo");
-
- }
-
-
- function fViewList(){
-
- var viewgbn = model.getValue("/root/hidden/ref/viewgbn");
-
- if(viewgbn == "1"){
-
- datagrid1.colWidth(9) = 0;
- datagrid1.colWidth(10) = 0;
- }else{
- datagrid1.colWidth(9) = 65;
- datagrid1.colWidth(10) = 65;
- }
-
-
- }
-
- //환자성명 클릭시 상단정보 조회
- function fUpPatinfo2(){
- if(getPatientInfo("pid") != model.getValue("/root/main/nmedworklist/write["+ datagrid1.row +"]/pid")) {
- if(datagrid1.rows> 1){
- setParameter("errflag", "Y");
- setParameter("condparam", "S" + "▦" + model.getvalue("/root/main/nmedworklist/write["+ datagrid1.row +"]/prcpdd")+ "▦"
- + model.getvalue("/root/main/nmedworklist/write["+ datagrid1.row +"]/execprcpuniqno") + "▦"
- + model.getvalue("/root/main/nmedworklist/write["+ datagrid1.row +"]/instcd") );
-
- modal("SPMMO08900", 1, "", "", "", "", "", "left:0; right:0; width:0; height:0; sysmenu:hidden; caption:hidden; min:hidden, max:hidden;");
- }
-
- var paminfo = getGlobalVariable("paminfo");
- if((paminfo.length < 0) || (getPatientInfo("pid") != model.getValue("/root/main/nmedworklist/write["+ datagrid1.row +"]/pid"))){ //상단정보가 없는 경우
- delPatientInfos(); //환자정보 전체 삭제
-
- var pid = model.getValue("/root/main/nmedworklist/write["+ datagrid1.row +"]/pid")
- var hngnm = model.getValue("/root/main/nmedworklist/write["+ datagrid1.row +"]/patnm");
- //상단에 올릴 수 있는 정보가 있으면 아래와 같이 설정해 주시면 됩니다. 없으면 안 해주셔도 되구요..
-
- setPatientInfo("pid" , pid); //등록번호
- setPatientInfo("pname" , pid + "|" + hngnm); //환자명
- }
- }
- }
-
-
- function fSelectTestGrup(){
-
- model.makeValue("/root/send/testgrupnm", combo1.label);
- submit("TRLLF90401" ,false);
-
-
- fSetPopUpTclscdList();
- }
-
-
- function fSetPopUpTclscdList(){
- var count = getNodesetCount("/root/main/testgrupdetl");
- if(count > 0){
-
- var sendtclsnm = model.getValue("/root/main/testgrupdetl[1]/tclsnm");
- var sendtclscd = model.getValue("/root/main/testgrupdetl[1]/tclscd");
- var sendtclscd2 = model.getValue("/root/main/testgrupdetl[1]/tclscd");
-
-
- // 검사그룹 상세 목록 없을때
- if(sendtclsnm == ""){
- model.setValue("/root/hidden/tclscdlist/tclscdlist", "");
- model.setValue("/root/hidden/tclscdlist/tclsnmlist", "");
-
- }else{ // 검사그룹 상세 목록 있을때
- for(i=2; i<= count; i++){
- sendtclsnm = sendtclsnm + ", " + model.getValue("/root/main/testgrupdetl["+i+"]/tclsnm");
- //sendtclscd = sendtclscd + "▦" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
- sendtclscd = sendtclscd + "','" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
- sendtclscd2 = sendtclscd2 + "▦" + model.getValue("/root/main/testgrupdetl["+i+"]/tclscd");
- }
- model.setValue("/root/hidden/ref/tclscdlist/tclsnmlist", sendtclsnm);
- model.setValue("/root/hidden/ref/tclscdlist/tclscdlist", "'" + sendtclscd + "'");
- model.setValue("/root/hidden/ref/tclscdlist/tclscdlist2", sendtclscd2);
-
- }
- model.refresh();
- }
- }
-
- function fSetTclscdClean(){
- model.setValue("/root/hidden/ref/tclscdlist/tclscdlist", "");
- }
-
- function feditValue(){
-
-
- var cRow = datagrid1.row;
- var WBC = datagrid1.valueMatrix(cRow, 11);
- var NUT = datagrid1.valueMatrix(cRow, 12);
-
- fCalWB(WBC, NUT, cRow);
-
- }
-
-
- function fmovesell() {
- var Nrow = grd_orglist.row;
- var Mcol = grd_orglist.col + 1;
-
- grd_orglist.row = Nrow;
- grd_orglist.col = Mcol;
- grd_orglist.editCell();
- //model.refresh();
- }
-
-
- function fdelitem(){
-
- for (var i =1; i<=grd_orglist.rows; i++){
- //alert("for");
- var chk = model.getValue("/root/main/OranList["+i+"]/chk" );
- //alert(chk);
- if(model.getValue("/root/main/OranList["+i+"]/chk") == "true"){
- grd_orglist.rowStatus(i) = 4 ;
- }
- }
-
- var uioranlist = grd_orglist.getUpdateData();
-
-
- model.setValue("/root/send/uioranlist" , uioranlist);
- model.copyNode("/root/send/oranlist" , "/root/main/OranList");
-
- if(submit("TXLNP90702")){
- // 초기화
- fSetInit();
- }
-
-
-
- }
-
- function fgetmaxdata(){
-
- if ( grd_orglist.col == 3 ){
- var skonosid = model.getValue("/root/main/OranList["+ grd_orglist.row +"]/konosid");
-
- if (skonosid == ""){
- return;
- }
- model.makeValue("/root/send/skonosid", skonosid );
- model.setValue("/root/send/spatnm" , "");
- submit("TRLNP90702");
-
- //alert( "konosid = " + model.getValue("/root/hidden/ref2/maxoranlist/konosid") ) ;
- if (model.getValue("/root/hidden/ref2/maxoranlist/konosid") != "" ) {
- model.setValue("/root/main/OranList["+ grd_orglist.row +"]/konosid" , model.getValue("/root/hidden/ref2/maxoranlist/konosid"));;
- model.setValue("/root/main/OranList["+ grd_orglist.row +"]/patnm" , model.getValue("/root/hidden/ref2/maxoranlist/patnm"));
- model.setValue("/root/main/OranList["+ grd_orglist.row +"]/keeppos" , model.getValue("/root/hidden/ref2/maxoranlist/keeppos"));
- model.setValue("/root/main/OranList["+ grd_orglist.row +"]/bcolldt" , model.getValue("/root/hidden/ref2/maxoranlist/bcolldt"));
- model.setValue("/root/main/OranList["+ grd_orglist.row +"]/trnscorpnm" , model.getValue("/root/hidden/ref2/maxoranlist/trnscorpnm"));
- //model.setValue("/root/main/OranList["+ grd_orglist.row +"]/trnshopeorgncd" , model.getValue("/root/hidden/ref2/maxoranlist/trnshopeorgncd"));
- //model.refresh();
- } else {
- //model.setValue("/root/main/OranList["+ grd_orglist.row +"]/konosid" , model.getValue("/root/hidden/ref2/maxoranlist/konosid"));;
- model.setValue("/root/main/OranList["+ grd_orglist.row +"]/patnm" , "");
- model.setValue("/root/main/OranList["+ grd_orglist.row +"]/keeppos" , "");
- model.setValue("/root/main/OranList["+ grd_orglist.row +"]/bcolldt" , "");
- model.setValue("/root/main/OranList["+ grd_orglist.row +"]/trnscorpnm" , "");
-
- }
- }
-
- // JJH 이름 검색 제외 2011-03-17
- // alert( "konosid = " + model.getValue("/root/hidden/ref2/maxoranlist/konosid") ) ;
- // if (grd_orglist.col == 4 ){
- // var spatnm = model.getValue("/root/main/OranList["+ grd_orglist.row +"]/patnm");
- // if (spatnm == ""){
- // return;
- // }
- //
- // model.makeValue("/root/send/spatnm", spatnm );
- // model.setValue("/root/send/skonosid" , "");
- // submit("TRLNP90702");
- //
- // if (model.getValue("/root/hidden/ref2/maxoranlist/konosid") != "" ) {
- // model.setValue("/root/main/OranList["+ grd_orglist.row +"]/konosid", model.getValue("/root/hidden/ref2/maxoranlist/konosid"));;
- // model.setValue("/root/main/OranList["+ grd_orglist.row +"]/patnm", model.getValue("/root/hidden/ref2/maxoranlist/patnm"));
- // model.setValue("/root/main/OranList["+ grd_orglist.row +"]/keeppos", model.getValue("/root/hidden/ref2/maxoranlist/keeppos"));
- // model.setValue("/root/main/OranList["+ grd_orglist.row +"]/bcolldt", model.getValue("/root/hidden/ref2/maxoranlist/bcolldt"));
- // model.setValue("/root/main/OranList["+ grd_orglist.row +"]/trnscorpnm", model.getValue("/root/hidden/ref2/maxoranlist/trnscorpnm"));
- // model.setValue("/root/main/OranList["+ grd_orglist.row +"]/trnshopeorgncd", model.getValue("/root/hidden/ref2/maxoranlist/trnshopeorgncd"));
- // //model.refresh();
- // } else {
- // //model.setValue("/root/main/OranList["+ grd_orglist.row +"]/konosid", model.getValue("/root/hidden/ref2/maxoranlist/konosid"));;
- // //model.setValue("/root/main/OranList["+ grd_orglist.row +"]/patnm", model.getValue("/root/hidden/ref2/maxoranlist/patnm"));
- // model.setValue("/root/main/OranList["+ grd_orglist.row +"]/keeppos", "");
- // model.setValue("/root/main/OranList["+ grd_orglist.row +"]/bcolldt", "");
- // model.setValue("/root/main/OranList["+ grd_orglist.row +"]/trnscorpnm", "");
- // model.setValue("/root/main/OranList["+ grd_orglist.row +"]/trnshopeorgncd", "");
- // }
- // }
-
- model.removeNodeset("/root/hidden/ref2");
- model.makeNode("/root/hidden/ref2");
- }
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body caption="2" itemwidth="50" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1180px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">장기이식대기자관리</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1181px; height:730px; ">
- <group id="group2" style="left:0px; top:0px; width:1180px; height:40px; vertical-align:top; ">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1180px; height:40px; "/>
- <caption id="caption3" class="search_name" style="left:5px; top:11px; width:80px; height:17px; ">구 분 :</caption>
- <button id="btn_search" class="btn1_letter3" style="left:1080px; top:10px; width:68px; height:22px; ">
- <caption>조 회</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fGetOranTranfList("days");
- ]]>
- </script>
- </button>
- <line id="line1" class="line_4" style="x1:1058px; y1:6px; x2:1058px; y2:33px; "/>
- <select1 id="cbo_slist" ref="/root/hidden/ref/workgbn" appearance="minimal" style="left:90px; top:10px; width:125px; height:19px; ">
- <choices>
- <item>
- <label>번호</label>
- <value>1</value>
- </item>
- <item>
- <label>KONOS_ID</label>
- <value>2</value>
- </item>
- <item>
- <label>환자명</label>
- <value>3</value>
- </item>
- <item>
- <label>보관함</label>
- <value>4</value>
- </item>
- <item>
- <label>채취일자</label>
- <value>5</value>
- </item>
- <item>
- <label>이식의료기관</label>
- <value>6</value>
- </item>
- <item>
- <label>폐기일시</label>
- <value>7</value>
- </item>
- </choices>
- </select1>
- <input id="ipt_search" ref="/root/hidden/ref/workcmd" class="input_button" inputtype="button" style="left:220px; top:10px; width:131px; height:19px; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if(ipt_search.currentText == ""){
- alert("조회구분을 입력해 주세요. ");
- return;
- }
- fGetOranTranfList("ref");
- ]]>
- </script>
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13"){
- model.setValue("/root/hidden/ref/workcmd", (ipt_search.currentText).toUpperCase());
- if(ipt_search.currentText == ""){
- alert("조회구분을 입력해 주세요. ");
- return;
- }
- fGetOranTranfList("ref");
- }
- ]]>
- </script>
- </input>
- <select id="chk_add" ref="/root/hidden/ref/searchadd" overflow="visible" appearance="full" style="left:355px; top:10px; width:105px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>추가</label>
- <value>true</value>
- </item>
- </choices>
- </select>
- <input id="ipt_colfromdd" ref="/root/hidden/ref/colfromdd" class="input_s_essential" inputtype="date" style="left:805px; top:10px; width:100px; height:19px; "/>
- <input id="ipt_coltodd" ref="/root/hidden/ref/coltodd" class="input_s_essential" inputtype="date" style="left:930px; top:10px; width:100px; height:19px; "/>
- <caption id="caption2" class="search_name" style="left:695px; top:10px; width:99px; height:17px; ">채취일구간 :</caption>
- <caption id="caption4" class="search_no_b" style="left:910px; top:10px; width:15px; height:17px; ">~</caption>
- </group>
- <line id="line2" class="line_1" style="x1:0px; y1:63px; x2:1180px; y2:63px; "/>
- <caption id="caption1" class="tit_2" style="left:5px; top:46px; width:134px; height:13px; ">장기이식대기자목록</caption>
- <button id="btn_excel" class="btn2_letter2" style="left:1137px; top:43px; width:42px; 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_orglist.saveExcel(fileName);
- }
-
-
-
-
-
-
-
- ]]>
- </script>
- </button>
- <datagrid id="grd_orglist" nodeset="/root/main/OranList" caption="^번호^KONOS_ID^환자명^보관함^채취일자^이식의료기관^이식희망장기^폐기일시^비고^등록일시^" colsep="^" colwidth="30, 80, 80, 70, 100, 100, 120, 100, 100, 200, 115" dataheight="25" defaultrows="1" ellipsis="true" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:0px; top:69px; width:1180px; height:655px; ">
- <col ref="chk" type="checkbox"/>
- <col ref="trnsseqno" type="output" style="text-align:center; "/>
- <col ref="konosid" type="input" style="text-align:center; "/>
- <col ref="patnm" type="input" style="text-align:center; "/>
- <col ref="keeppos" type="input" style="text-align:center; "/>
- <col ref="bcolldt" type="inputdate" style="text-align:center; "/>
- <col ref="trnscorpnm" type="input"/>
- <col ref="trnshopeorgncd" type="combo">
- <choices>
- <item>
- <label>신장</label>
- <value>00</value>
- </item>
- <item>
- <label>신장+췌장</label>
- <value>01</value>
- </item>
- <item>
- <label>신장+간장</label>
- <value>02</value>
- </item>
- <item>
- <label>췌장</label>
- <value>03</value>
- </item>
- <item>
- <label>심장</label>
- <value>04</value>
- </item>
- <item>
- <label>간장</label>
- <value>05</value>
- </item>
- <item>
- <label>기타</label>
- <value>06</value>
- </item>
- <item>
- <label>췌도</label>
- <value>07</value>
- </item>
- <item>
- <label>폐장</label>
- <value>08</value>
- </item>
- <item>
- <label>신장+심장</label>
- <value>09</value>
- </item>
- <item>
- <label>신장+췌도</label>
- <value>10</value>
- </item>
- <item>
- <label>심장+폐장</label>
- <value>11</value>
- </item>
- <item>
- <label>-</label>
- <value>-</value>
- </item>
- </choices>
- </col>
- <col ref="abndt" type="inputdate" style="text-align:center; "/>
- <col ref="trnscmt" type="input" style="text-align:center; "/>
- <col ref="rgstdt" type="inputdate" style="text-align:center; "/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- datagrid1.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- if(event.keyCode == "13"){
- if (grd_orglist.col == 3 || 4){
- fgetmaxdata();
- }
-
- fmovesell();
- }
- ]]>
- </script>
- </datagrid>
- <button id="button1" class="btn2_letter3" style="left:1027px; top:43px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetAddRow();]]>
- </script>
- </button>
- <button id="button2" class="btn2_letter3" style="left:1082px; top:43px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fInsRowdel();
- ]]>
- </script>
- </button>
- </group>
- <group id="group4" scroll="auto" style="left:0px; top:13px; width:1180px; height:27px; ">
- <line id="line17" class="line_6" style="x1:0px; y1:25px; x2:1179px; y2:25px; "/>
- <button id="btn_save" class="btn4_letter3" style="left:974px; top:3px; width:68px; height:22px; ">
- <caption>저 장</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fsavelist();
- ]]>
- </script>
- </button>
- <button id="btn_init" class="btn4_letter3" style="left:1110px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fSetInit();
- ]]>
- </script>
- </button>
- <button id="button3" class="btn4_letter3" style="left:1042px; top:3px; width:68px; height:22px; ">
- <caption>삭 제</caption>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- fdelitem();
- ]]>
- </script>
- </button>
- <caption id="caption5" style="left:20px; top:5px; width:640px; height:20px; font-weight:bold; color:#ff0000; background-color:#ffffff; ">※ 상기 환자관리는 매우 중요한 사항입니다. 담당자외 저장 및 삭제는 하실수 없습니다.</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|