123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SPLNP90700_장기이식대기자.xrw
- * 설 명 : 장기이식대기자관리화면
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : 유민규
- * 작 성 일 : 2011.02.
- * 수정이력 :
- * 기 타 :
- -->
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>Manual작업대장</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <bonetrlist>
- <chk/>
- <bmtrnsseqno/>
- <pid/>
- <patnm/>
- <keeppos/>
- <dnorpid/>
- <dnornm/>
- <trnsdt/>
- <prerslt/>
- <prersltdt/>
- <postrslt/>
- <postrsltdt/>
- <rsltno/>
- <rgstdt/>
- </bonetrlist>
- </main>
- <send>
- <workgbn/>
- <workcmd/>
- <colfromdd/>
- <coltodd/>
- <bmtrnsseqno/>
- <pid/>
- <bonetrlist/>
- <uibonetrlist/>
- <bcolgbn/>
- </send>
- <init>
- <report/>
- <tclsnm1/>
- <tclsnm2/>
- <tclsnm3/>
- <tclsnm4/>
- <tclsnm5/>
- <tclsnms/>
- </init>
- <hidden>
- <ref>
- <workgbn/>
- <workcmd/>
- <searchadd/>
- <colfromdd/>
- <coltodd/>
- </ref>
- </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="TRLLP02601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" add="bottom" resultref="/root/main/nmedworklist/write"/>
- <submission id="TRLNP90801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/bonetrList"/>
- <submission id="TXLNP90801" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- <submission id="TXLNP90802" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance"/>
- </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() {
-
- model.removeNodeset("/root/main/bonetrlist");
- model.setFocus("ipt_search");
- 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 fGetBoneTranfList(){
-
- model.removeNodeset("/root/main/bonetrlist");
- model.resetInstanceNode("/root/send");
-
- model.setValue("/root/send/pid", 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"));
-
- submit("TRLNP90801");
-
- model.refresh();
-
-
-
- }
-
- function fSetAddRow(){
-
- var tDay = getCurrentDate();
- if (grd_bonetrlist.rows < 2 ){
- grd_bonetrlist.addRow();
- }else{
- grd_bonetrlist.insertRow(1);
- }
- //model.copyNodeset("/root/main/OranList2","/root/main/OranList");
- //model.removenodeset("/root/main/OranList");
-
- //model.setValue("/root/main/bonetrlist["+grd_bonetrlist.row+"]/bcolldt" , tDay);
-
- //model.setValue("/root/main/bonetrlist["+grd_bonetrlist.row+"]/rgstdt" , tDay);
- //model.setValue("/root/main/bonetrlist["+grd_bonetrlist.row+"]/trnshopeorgncd" , "-");
- //model.copyNodeset("/root/main/OranList","/root/main/OranList2");
- //model.removeNodeset("/root/main/OranList2");
- model.refresh();
-
-
-
-
- }
-
- function fInsRowdel() {
-
- var kRows = grd_bonetrlist.rows;
-
- for (var i =1; i<=grd_bonetrlist.rows; i++){
- //alert("for");
- var chk = model.getValue("/root/main/bonetrlist["+i+"]/chk" );
- //alert(chk);
- if(model.getValue("/root/main/bonetrlist["+i+"]/chk") == "true"){
- //alert("if");
- //grd_eqmttclscd.deleteitem(i);
- model.removenodeset("/root/main/bonetrlist["+i+"]");
- i = i -1;
- kRows = kRows -1 ;
- }
- }
- model.refresh();
-
-
-
-
- //var row = grd_eqmttclscd.row;
- //grd_eqmttclscd.deleteItem(row);
-
- for ( i =1 ; i<= grd_bonetrlist.rows ; i++){
- grd_bonetrlist.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(){
-
-
-
-
-
- var comment = "" ;
- for ( i = 1 ; i<= grd_bonetrlist.rows - 1 ; i++){
- //alert(grd_bonetrlist.rows);
- //alert(i);
- if (grd_bonetrlist.rowStatus(i) == "1" || "2" ){
- if(model.getValue("/root/main/bonetrlist["+i+"]/pid" ) == ""){
- comment = comment + "등록번호";
- }
- if (model.getValue("/root/main/bonetrlist["+i+"]/patnm" ) == ""){
- comment = comment + "환자명 ";
- }
- if (model.getValue("/root/main/bonetrlist["+i+"]/keeppos" ) == ""){
- //alert("!!")
- model.setValue("/root/main/bonetrlist["+i+"]/keeppos" , "-");
- }
- if (model.getValue("/root/main/bonetrlist["+i+"]/dnornm" ) == ""){
- model.setValue("/root/main/bonetrlist["+i+"]/dnornm" , "-");
- }
-
- if(comment != ""){
- alert ( comment + " 를 입력하여주세요 ");
- return;
- }
-
- }
- }
-
-
- var uibonetrlist = grd_bonetrlist.getUpdateData();
- //model.setValue("/root/send/eqmtcd" , model.getValue("/root/main/eqmtdetllist["+grd_eqmtlist.row+"]/eqmtcd"));
- model.setValue("/root/send/uibonetrlist" , uibonetrlist);
- model.copyNode("/root/send/bonetrlist" , "/root/main/bonetrlist");
-
- model.refresh();
-
- if(submit("TXLNP90801")){
- // 초기화
- 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_bonetrlist.row;
- var Mcol = grd_bonetrlist.col + 1;
-
- grd_bonetrlist.row = Nrow;
- grd_bonetrlist.col = Mcol;
- grd_bonetrlist.editCell();
- //model.refresh();
-
- }
-
-
- function fdelitem(){
-
- for (var i =1; i<=grd_bonetrlist.rows; i++){
- //alert("for");
- var chk = model.getValue("/root/main/bonetrlist["+i+"]/chk" );
- //alert(chk);
- if(model.getValue("/root/main/bonetrlist["+i+"]/chk") == "true"){
- grd_bonetrlist.rowStatus(i) = 4 ;
- }
- }
-
- var uibonetrlist = grd_bonetrlist.getUpdateData();
-
-
- model.setValue("/root/send/uibonetrlist" , uibonetrlist);
- model.copyNode("/root/send/bonetrlist" , "/root/main/bonetrlist");
-
- if(submit("TXLNP90802")){
- // 초기화
- fSetInit();
- }
-
-
-
- }
-
- ]]>
- </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:930px; top:10px; width:86px; height:17px; ">등록번호 :</caption>
- <input id="ipt_search" ref="/root/hidden/ref/workcmd" class="input_button" inputtype="button" style="left:1030px; top:10px; width:131px; height:19px; ">
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- if(ipt_search.currentText == ""){
- alert("등록번호를 입력해 주세요. ");
- return;
- fSetInit();
-
- }
- fGetBoneTranfList();
- model.setFocus("ipt_search");
- ]]>
- </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("등록번호를 입력해 주세요. ");
- model.setFocus("ipt_search");
- return;
- }
- fGetBoneTranfList();
- model.setFocus("ipt_search");
- }
- ]]>
- </script>
- </input>
- </group>
- <line id="line2" class="line_1" style="x1:0px; y1:63px; x2:1180px; y2:63px; "/>
- <button id="btn_excel" class="btn2_letter2" visibility="hidden" style="left:1028px; 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_bonetrlist.saveExcel(fileName);
- }
-
-
- ]]>
- </script>
- </button>
- <datagrid id="grd_bonetrlist" nodeset="/root/main/bonetrlist" caption="^번호^차트번호^이름^보관함^공여자ID^공여자명^이식일^Informative결과^◀ 결과입력시간^Chimerism결과^◀ 결과입력시간^결과번호^결과입력시간^" colsep="^" colwidth="30, 60, 80, 70, 90, 80, 70, 100, 100, 100, 100, 100, 80, 100" 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="bmtrnsseqno" type="output" style="text-align:center; "/>
- <col ref="pid" 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="dnorpid" type="input" style="text-align:center; "/>
- <col ref="dnornm" type="input" style="text-align:center; "/>
- <col ref="trnsdt" type="inputdate"/>
- <col ref="prerslt" type="combo" style="text-align:left; ">
- <choices>
- <item>
- <label>DIS 80</label>
- <value>DIS 80</value>
- </item>
- <item>
- <label>DIS 111</label>
- <value>DIS 111</value>
- </item>
- <item>
- <label>ApoB</label>
- <value>ApoB</value>
- </item>
- <item>
- <label>Non informative</label>
- <value>Non informative</value>
- </item>
- </choices>
- </col>
- <col ref="prersltdt" type="inputdate"/>
- <col ref="postrslt" type="combo" style="text-align:left; ">
- <choices>
- <item>
- <label>Complete</label>
- <value>Complete</value>
- </item>
- <item>
- <label>Mixed</label>
- <value>Mixed</value>
- </item>
- <item>
- <label>Only host band</label>
- <value>Only host band</value>
- </item>
- <item>
- <label>판독불가</label>
- <value>판독불가</value>
- </item>
- </choices>
- </col>
- <col ref="postrsltdt" type="inputdate" style="text-align:center; "/>
- <col ref="rsltno" type="input"/>
- <col disabled="true" ref="rgstdt" type="output" format="yyyy-mm-dd"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_bonetrlist.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onendedit">
- <![CDATA[
- if(event.keyCode == "13"){
- fmovesell();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( grd_bonetrlist.col == 9 ) {
- var tDay = getCurrentDate();
- if (model.getValue("/root/main/bonetrlist/prersltdt" == "")){
- model.setValue("/root/main/bonetrlist/prersltdt",tDay);
- }else{
- model.setValue("/root/main/bonetrlist/prersltdt", "");
- model.setValue("/root/main/bonetrlist/prersltdt",tDay);
- }
- }
-
- if ( grd_bonetrlist.col == 11 ) {
- var tDay = getCurrentDate();
- if (model.getValue("/root/main/bonetrlist/postrsltdt" == "")){
- model.setValue("/root/main/bonetrlist/postrsltdt",tDay);
- }else{
- model.setvalue("/root/main/bonetrlist/postrsltdt","");
- model.setValue("/root/main/bonetrlist/postrsltdt",tDay);
- }
- }
- model.refresh();
- ]]>
- </script>
- </datagrid>
- <button id="button1" class="btn2_letter3" style="left:1072px; 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:1127px; 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>
- </group>
- </xhtml:body>
- </xhtml:html>
|