123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>판독요청내역조회</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <send>
- <data>
- <pid/>
- <deptcd/>
- <fromDate/>
- <toDate/>
- <lendgoal>01 02 03 04 05 06</lendgoal>
- <lendgoal1/>
- <spid/>
- <sgb/>
- <deptcdflag/>
- <gb/>
- <exegb/>
- <modality/>
- <basesuppdeptcd/>
- <section/>
- </data>
- <data2>
- <srchdate1/>
- <srchdate2/>
- <deptcd/>
- <drid/>
- <modality/>
- <section/>
- <execprcpstatcd/>
- <excuexectodd/>
- <excuexectodd2/>
- <prcpgenrflag/>
- </data2>
- <globalinstance>
- <instance1/>
- </globalinstance>
- </send>
- <hidden>
- <source>
- <hngnm/>
- </source>
- <popdata>
- <pid/>
- </popdata>
- </hidden>
- <init>
- <cmb_orddept>
- <initexecorddept>
- <execorddeptcdnm/>
- <execorddeptcdid/>
- </initexecorddept>
- </cmb_orddept>
- <cmb_orddr>
- <initexecorddr>
- <execorddrcdid/>
- <execorddrcdnm/>
- </initexecorddr>
- </cmb_orddr>
- <cmb_section>
- <initsection>
- <sectionid/>
- <sectionnm/>
- </initsection>
- </cmb_section>
- </init>
- <main>
- <send/>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <booklist>
- <detail>
- <pid/>
- <hngnm/>
- <modality/>
- <prcpnm/>
- <excuexectodt/>
- <orddd/>
- <lenddeptcd/>
- <lendrid/>
- <lendapptm/>
- <lendgoal/>
- <prntyn/>
- <lendyn/>
- <rtnyn/>
- <seq/>
- </detail>
- </booklist>
- <filminfo>
- <filmlist>
- <modality/>
- <excuexectodt/>
- <fstrgstdt/>
- <ioflag/>
- <uoedesc/>
- <excuexectodt/>
- <excuroomcd/>
- <stat/>
- <execprcpstatcd/>
- <cnfmdt/>
- <deptdrnm/>
- <lendapptm/>
- <lenddeptcd/>
- <lendrid/>
- <lendgoal/>
- <prntyn/>
- <lendyn/>
- <pid/>
- <hngnm/>
- <prcpdd/>
- <execprcpuniqno/>
- <seq/>
- </filmlist>
- </filminfo>
- <booklistordd>
- <detail>
- <pid/>
- <hngnm/>
- <modality/>
- <section/>
- <deptnm/>
- <excuexectodt/>
- <usernm/>
- <orddd/>
- <execprcpstatcd/>
- <lendgoal/>
- <rtnyn/>
- <seq/>
- <exeprcpuniqno/>
- <excucdnm/>
- </detail>
- </booklistordd>
- <savedata>
- <savelist>
- <pid/>
- <lendapptm/>
- <seq/>
- </savelist>
- </savedata>
- <patinfo>
- <patinfolist/>
- </patinfo>
- <printinfo>
- <printlist>
- <pid/>
- <hngnm/>
- <modality/>
- <lenddeptcd/>
- <lendrid/>
- <lendgoal/>
- <lendapptm/>
- <orddd/>
- </printlist>
- </printinfo>
- <prntRexinfo>
- <detail>
- <pid/>
- <hngnm/>
- <modality/>
- <lenddeptcd/>
- <lendrid/>
- <lendapptm/>
- <lendgoal/>
- <prntyn/>
- <lendyn/>
- <rtnyn/>
- <seq/>
- <lendgoalnm/>
- </detail>
- </prntRexinfo>
- </main>
- </root>
- </instance>
- <script type="javascript">
- <![CDATA[
- function readfunc(){
- if (model.getValue("/root/send/data/fromDate") == ""){
- messageBox("대출요청 시작일은 필수 선택항목입니다.", "E999", "");
- return;
- }
- if (isDate(model.getValue("/root/send/data/fromDate")) == false){
- messageBox("대출요청 시작일의 날짜 형식이 잘못 입력되었습니다.", "E999", "");
- return;
- }
- if (model.getValue("/root/send/data/toDate") == ""){
- messageBox("대출요청 종료일은 필수 선택항목입니다.", "E999", "");
- return;
- }
- if (isDate(model.getValue("/root/send/data/toDate")) == false){
- messageBox("대출요청 종료일의 날짜 형식이 잘못 입력되었습니다.", "E999", "");
- return;
- }
- // button1.disabled = true;
- // button2.disabled = true;
- // button3.disabled = true;
- var str = model.getValue("/root/send/data/lendgoal");
- var str1 = ReplaceDemo(str);
- model.setValue("/root/send/data/lendgoal1", str1);
- if (model.getValue("/root/send/data/lendgoal") == ""){
- messageBox("대출목적은 필수 선택항목입니다.", "E999", "");
- return;
- }
-
- // 조회 조건 section 추가
- model.setValue("/root/send/data/section", model.getValue("/root/send/data2/section"));
-
- model.removeNodeset("/root/main/rsrvupdtinfo/rsrvupdt");
-
- if (submit("TRAEF00201")){
- for (var i = 1; i < grd_mainordlist1.rows; i ++){
-
- var lendyn = grd_mainordlist1.valueMatrix(i, grd_mainordlist1.colRef("lendyn"));
- if (lendyn == "Y") {
- grd_mainordlist1.isReadOnly(i, grd_mainordlist1.colRef("chk")) = true;
- grd_mainordlist1.rowstyle( i , "data" , "background-color" ) = "#FFFFCC";
- } else {
- grd_mainordlist1.isReadOnly(i, grd_mainordlist1.colRef("chk")) = false;
- grd_mainordlist1.rowstyle( i , "data" , "background-color" ) = "#FFFFFF";
- }
-
- grd_mainordlist1.isSelected(i) = false;
- grd_mainordlist1.isReadOnly(i, grd_mainordlist1.colRef("lendyn")) = true;
- grd_mainordlist1.isReadOnly(i, grd_mainordlist1.colRef("rtnyn")) = true;
- }
- }
- model.refresh();
- }
-
- function readfunc1(){
- var schar = model.getValue("/root/send/data/spid");
- var k = 0;
- for (var i = 0; i < schar.length; i ++){
- var ch = parseInt(schar.charAt(i));
- if (ch >= 0 && ch <= 9){
- k = parseInt(i) + 1;
- }
- }
- if (k > 0){
- var spid = schar.substring(0, k);
- var sgb = schar.substring(k, schar.length);
- model.setValue("/root/send/data/pid", spid);
- }
- if (model.getValue("/root/send/data/pid") == ""){
- messageBox("Chart No는 필수 입력항목입니다.", "E999", "");
- return;
- }
- submit("TRAEA00204"); // 환자 인적사항
- model.removeNodeset("/root/main/filminfo/filmlist");
- // 조회할때 전체내역을 조회하기 위해 "1"번(전체)으로 셋팅 함. 20090525
- model.setValue("/root/send/data/gb","1");
- if (submit("TRAEF00103")){
- }
- model.refresh();
- }
-
- // 대출 출력 대체 기능으로 판독 승인 기능 변경 [2010.07.12 : 김건기]
- function fSaveData() {
-
- // 판독승인
- var nodeList = instance1.selectNodes("/root/main/booklist/detail[chk = 'Y']");
- var rCSV = getNodeListCSV(nodeList);
-
- if ( rCSV == null ) {
- messageBox("처방내역을 ","C002");
- return;
- }
-
- // for (var i = 1;i < grd_mainordlist1.rows;i++){
- // rCSV += grd_mainordlist1.valueMatrix(i, grd_mainordlist1.colRef("pid")) + sColSep
- // + grd_mainordlist1.valueMatrix(i, grd_mainordlist1.colRef("lendapptm")) + sColSep
- // + grd_mainordlist1.valueMatrix(i, grd_mainordlist1.colRef("seq")) + sRowSep;
- //
- // }
- model.makeValue("/root/main/savedata/savelist/data", rCSV);
-
- var data = model.getValue("/root/main/savedata/savelist/data");
- if(submit("TXAEF00201")){
- readfunc();
- }
-
- // model.setValue("/root/main/savedata/savelist/pid", model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.row + "]/pid"));
- // model.setValue("/root/main/savedata/savelist/lendapptm", model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.row + "]/lendapptm"));
- // model.setValue("/root/main/savedata/savelist/seq", model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.row + "]/seq"));
- // if(submit("TXAEF00201")){
- // readfunc();
- // }
- }
-
-
- function fSaveData1() {
- model.setValue("/root/main/savedata/savelist/pid", model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.row + "]/pid"));
- model.setValue("/root/main/savedata/savelist/lendapptm", model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.row + "]/lendapptm"));
- model.setValue("/root/main/savedata/savelist/seq", model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.row + "]/seq"));
- if(submit("TXAEF00202")){
- readfunc();
- }
- }
- function fSaveData2() {
- model.setValue("/root/main/savedata/savelist/pid", model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.row + "]/pid"));
- model.setValue("/root/main/savedata/savelist/lendapptm", model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.row + "]/lendapptm"));
- model.setValue("/root/main/savedata/savelist/seq", model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.row + "]/seq"));
- if(submit("TXAEF00203")){
- readfunc();
- }
- }
- function fSaveData3(irow) {
- model.setValue("/root/main/savedata/savelist/pid", model.getValue("/root/main/booklist/detail[" + irow + "]/pid"));
- model.setValue("/root/main/savedata/savelist/lendapptm", model.getValue("/root/main/booklist/detail[" + irow + "]/lendapptm"));
- model.setValue("/root/main/savedata/savelist/seq", model.getValue("/root/main/booklist/detail[" + irow + "]/seq"));
- if(submit("TXAEF00203")){
- }
- }
- function setbutton(){
- // button1.disabled = true;
- // button2.disabled = true;
- // button3.disabled = true;
- // if (grd_mainordlist1.row > 0){
- // button2.disabled = false;
- // if (model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.row + "]/lendyn") == "Y"){
- // button3.disabled = true;
- // if (model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.row + "]/rtnyn") == "Y"){
- // button1.disabled = true;
- // }else{
- // button1.disabled = false;
- // }
- // }else{
- // button3.disabled = false;
- // }
- // }
- // model.refresh();
- }
- 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, "");
- }
- function ReplaceDemo(str){
- str = "('" + str + "')";
- for (var i = 1; i < 6;i++){
- var re = " ";
- var r = str.replace(re, "','");
- str = r;
- }
- return(r);
- }
- function fPrint(){
- for (var i = 1; i < grd_mainordlist1.rows; i++){
- if (model.getValue("/root/main/booklist/detail[" + i + "]/prntyn") == "N"){
- model.setValue("/root/main/printinfo/printlist/pid", model.getValue("/root/main/booklist/detail[" + i + "]/pid"));
- model.setValue("/root/main/printinfo/printlist/hngnm", model.getValue("/root/main/booklist/detail[" + i + "]/hngnm"));
- model.makeValue("/root/main/printinfo/printlist/filmflag", model.getValue("/root/main/booklist/detail[" + i + "]/modality"));
- model.setValue("/root/main/printinfo/printlist/lenddeptcd", model.getValue("/root/main/booklist/detail[" + i + "]/lenddeptcd"));
- model.setValue("/root/main/printinfo/printlist/lendrid", model.getValue("/root/main/booklist/detail[" + i + "]/lendrid"));
- model.setValue("/root/main/printinfo/printlist/lendgoal", grd_mainordlist1.labelMatrix(i, grd_mainordlist1.colRef("lendgoal")));
- model.setValue("/root/main/printinfo/printlist/lendapptm", model.getValue("/root/main/booklist/detail[" + i + "]/lendapptm"));
- model.setValue("/root/main/printinfo/printlist/orddd", model.getValue("/root/main/booklist/detail[" + i + "]/orddd"));
- model.refresh();
- exeReportPreview("RPAEF00200", "XMLSTR", "/root/main/printinfo/printlist", "", "true", "", "", "", "", "true","", "", "", "", "", "", "", "printpaper=8;");
- fSaveData3(i);
- }
- }
- readfunc();
- }
-
- /* @group : 판독/대출신청
- * @ver : 2009.05.13
- * @by : 박상준
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 주치의정보(진료의사) 조회를 위한 Function
- */
- function fChngSrchDrId() {
-
- if ( model.getValue("/root/send/data2/deptcd") == "" ){
- model.removeNodeset("/root/init/cmb_orddr/initexecorddr");
- model.setValue("/root/send/data2/drid", "");
- model.refresh();
- return;
- }
- //alert(cmb_wardcd.value);
- //alert(model.getValue("/root/send/data/singdata/deptcd"));
- model.resetInstanceNode("/root/init/cmb_orddr/initexecorddr");
- submit("TRAER00804");
- }
-
- /* @group : 그리드 내용 Copy
- * @ver : 2009.06.16
- * @by : 김귀남
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 그리드의 내용을 엑셀로 Copy하기 위한 Function
- */
- function astgrid_oncopy() {
- var trgObj = document.all.item(event.target);
- if( trgObj.elementName == "xforms:datagrid" ) // event.target이 datagrid > input일 경우 return
- gridObj = trgObj;
- else
- return;
-
- var cellValue;
- var rClipBoardValue = "";
-
- var gridSelMode = gridObj.selectionMode;
- //alert(gridSelMode);
-
- // datagrid@selectionmode가 free일 경우
- if( gridSelMode == "free" ) {
-
- if( gridObj.selectedCells.length == 0 )
- return;
-
- var firstCell = getFirstCell(gridObj.selectedCells);
- var lastCell = getLastCell(gridObj.selectedCells);
- //alert(gridObj.selectedCells.length);
- //alert(firstCell.row +" "+ lastCell.row+"\n"+firstCell.col+" "+lastCell.col);
- var i, j;
- for( i = firstCell.row; i <= lastCell.row; i++ ) {
- for ( j = firstCell.col; j <= lastCell.col; j++ ) {
- if(j != 2 && j != 11){
- cellValue = gridObj.valueMatrix(i, j);
- //if( cellValue.indexOf("\n") != -1 )
- // cellValue = '"' + cellValue + '"';
- }else cellValue = "";
- rClipBoardValue += cellValue;
- if( j != lastCell.col )
- rClipBoardValue += "\t";
- }
- rClipBoardValue += "\r\n";
- }
-
- var setClipBoardFlag = true;
-
- // selectedCells 갯수와 rClipBoardValue의 갯수 비교
- var cntRClip = 0;
- var cntRRow = rClipBoardValue.split("\r\n").length;
- var cntRCol = rClipBoardValue.split("\r\n")[0].split("\t").length;
- if( gridObj.selectedCells.length != ( cntRRow - 1 ) * cntRCol ) {
- setClipBoardFlag = false;
- }
-
- // selectedCell이 firstCell부터 lastCell까지 속해있나 비교
- for( i = 0; i < gridObj.selectedCells.length; i++ ) {
- if( firstCell.row > gridObj.selectedCells.item(i).row || lastCell.row < gridObj.selectedCells.item(i).row ) {
- setClipBoardFlag = false;
- break;
- }
- if( firstCell.col > gridObj.selectedCells.item(i).col || lastCell.col < gridObj.selectedCells.item(i).col ) {
- setClipBoardFlag = false;
- break;
- }
- }
-
- if( !setClipBoardFlag ) {
- messageBox("다중 선택 범위에서는", "E001");
- return;
- }
- }
-
- // datagrid@selectionmode가 bycol일 경우
- else if( gridSelMode == "bycol" ) {
-
- if( gridObj.selectedCells.length == 0 )
- return;
-
- var firstCell = getFirstCell(gridObj.selectedCells);
- var lastCell = getLastCell(gridObj.selectedCells);
- //alert(firstCell +" "+ lastCell);
- var i, j;
- for( i = gridObj.fixedRows; i < gridObj.rows; i++ ) {
- for ( j = firstCell.col; j <= lastCell.col; j++ ) {
- if(j != 2 && j != 11){
- cellValue = gridObj.valueMatrix(i, j);
- //if( cellValue.indexOf("\n") != -1 )
- // cellValue = '"' + cellValue + '"';
- }else cellValue = "";
- rClipBoardValue += cellValue;
- if( j != lastCell.col )
- rClipBoardValue += "\t";
- }
- rClipBoardValue += "\r\n";
- }
- }
-
- // datagrid@selectionmode가 default이거나 byrow일 경우
- else {
-
- var gridCols = gridObj.Cols;
- var selRow;
-
- var i, j;
- for( i = 0; i < gridObj.selectedRows; i++ ) {
- selRow = gridObj.selectedRow(i);
- for ( j = gridObj.fixedCols; j < gridCols; j++ ) {
- if(j != 2 && j != 11){
- cellValue = gridObj.valueMatrix(selRow, j);
- //if( cellValue.indexOf("\n") != -1 )
- // cellValue = '"' + cellValue + '"';
- }else cellValue = "";
- rClipBoardValue += cellValue;
- if( j != gridCols - 1 )
- rClipBoardValue += "\t";
- }
- rClipBoardValue += "\r\n";
- }
- }
-
- if( rClipBoardValue != "" )
- window.clipBoardData = rClipBoardValue;
- }
- /* @group : 그리드 내용 paste
- * @ver : 2009.06.16
- * @by : 김귀남
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 그리드의 내용을 엑셀로 paste 위한 Function
- */
- function astgrid_onpaste(){
- var trgObj = document.all.item(event.target);
- if( trgObj.elementName == "xforms:datagrid" ){ // event.target이 datagrid > input일 경우 return
- gridObj = trgObj;
- }
- else{
- return;
- }
- var rClipBoardValue = "";
-
- var gridSelMode = gridObj.selectionMode;
- if(window.clipBoardData !="")
- var rClipBoardValue = window.clipBoardData;
- var clipBoardRow = rClipBoardValue.split("\r\n");
- if(gridSelMode = "free"){ // free 모드 동작
- var firstCell = getFirstCell(gridObj.selectedCells);
- var lastCell = getLastCell(gridObj.selectedCells);
- var row = firstCell.row;
-
- for(var i = 0; i < clipBoardRow.length-1; i++){
- var clipBoardCol = clipBoardRow[i].split("\t"); // 클립보드에 저장된 내용을 tab 단위로 분리
- var col = firstCell.col;
- for(var j = 0; j < clipBoardCol.length; j++){
- gridObj.ValueMatrix(row, col) = clipBoardCol[j];
- col++;
- }
- row++;
- }
- }else { // defualt, byrow, list 모드 동작
-
- var gridCols = gridObj.Cols;
- var selRow = gridObj.row;
-
- var i, j;
- for(var i = 0; i < clipBoardRow.length-1; i++){
- var clipBoardCol = clipBoardRow[i].split("\t");
- var col = 0;
- for(var j = 0; j < clipBoardCol.length; j++){
- gridObj.ValueMatrix(row, col) = clipBoardCol[j];
- col++;
- }
- selRow++
- }
- }
- }
- /* @group : 진료 예약자 판독현형 조회
- * @ver : 2009.05.13
- * @by : 박상준
- * @-----------------------------------
- * @type : function
- * @access : public
- * @desc : 진료 예약자 판독현형 조회 탭 선택시 조회조건 변경을 위한 Function
- */
- function fChngSetMenu() {
- if (btn_case3.selected == true) {
- caption5.visible = false;
- ipt_date1.visible = false
- caption1.visible = false;
- input1.visible = false;
- caption3.visible = false;
- input5.visible = false;
- caption2.visible = false;
- chk_excuroom.visible = false;
- checkbox1.visible = false;
- btn_sea.visible = false;
- button3.visible = false;
- // button2.visible = false;
- // button1.visible = false;
- button7.visible = false;
- button5.visible = false;
- button6.visible = false;
- chk_eckbox2.visible = false;
-
- // 미판독 조회관련 타이틀 및 버튼
- caption10.visible = true;
- ipt_srchdate1.visible = true;
- ipt_srchdate2.visible = true;
- caption13.visible = true;
- cmb_orddept.visible = true;
- caption14.visible = true;
- cmb_orddr.visible = true;
- caption12.visible = true;
- cmb_modality.visible = true;
- caption15.visible = true;
- combo1.visible = true;
- btn_data2searh.visible = true;
- cap_execdd.visible = true;
- ipt_execd.visible = true;
- ipt_execd2.visible = true;
- rdo_prcpgenrflag.visible = true;
-
- caption15.attribute("left") = "857px";
- combo1.attribute("left") = "947px";
- }else {
- caption5.visible = true;
- ipt_date1.visible = true
- caption1.visible = true;
- input1.visible = true;
- caption3.visible = true;
- input5.visible = true;
- caption2.visible = true;
- chk_excuroom.visible = true;
- checkbox1.visible = true;
- btn_sea.visible = true;
- button3.visible = true;
- // button2.visible = true;
- // button1.visible = true;
- button7.visible = true;
- button5.visible = true;
- button6.visible = true;
- chk_eckbox2.visible = true;
-
- // 미판독 조회관련 타이틀 및 버튼
- caption10.visible = false;
- ipt_srchdate1.visible = false;
- ipt_srchdate2.visible = false;
- caption13.visible = false;
- cmb_orddept.visible = false;
- caption14.visible = false;
- cmb_orddr.visible = false;
- caption12.visible = false;
- cmb_modality.visible = false;
-
- btn_data2searh.visible = false;
- cap_execdd.visible = false;
- ipt_execd.visible = false;
- ipt_execd2.visible = false;
- rdo_prcpgenrflag.visible = false;
-
- if (btn_case1.selected == true) {
- caption15.attribute("left") = "985px";
- combo1.attribute("left") = "1075px";
-
- caption15.visible = true;
- combo1.visible = true;
- } else {
- caption15.visible = false;
- combo1.visible = false;
- }
- }
- }
- ]]>
- </script>
- <!-- 예약조회-->
- <submission id="TRAEF00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="root/main/booklist"/>
- <submission id="TRAEF00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main/filminfo"/>
- <submission id="TRAEF00103" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main/filminfo"/>
- <submission id="TRAEA00204" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data" replace="instance" resultref="/root/main/patinfo"/>
- <submission id="TXAEF00201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/savedata/savelist/data" replace="instance" resultref="/root/hidden"/>
- <submission id="TXAEF00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/savedata" replace="instance" resultref="/root/hidden"/>
- <submission id="TXAEF00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/main/savedata" replace="instance" resultref="/root/hidden"/>
- <!-- 진료과 및 진료의사 정보 가져오기-->
- <submission id="TRAER00803" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2/" replace="instance" resultref="/root/init/cmb_orddept"/>
- <submission id="TRAER00804" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2/deptcd" replace="instance" resultref="/root/init/cmb_orddr"/>
- <!-- 진료예약자 미판독현황 정보 가져오기-->
- <submission id="TRAEF00202" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data2" replace="instance" resultref="/root/main/booklistordd"/>
- <!-- SECTION 정보 가져오기-->
- <submission id="TRAEF00203" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_section"/>
- </model>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
-
- //2009-04-22 핵의학(NM) 동일화면 사용 - 핵의학구분추가
- //alert (model.getValue("/root/properties/menu/menuprestdeptcd"));
- if ( model.getValue("/root/properties/menu/menuprestdeptcd").substr(0,3) == '218') {
- model.setvalue( "/root/send/data/deptcdflag","NM");
- button5.disabled = true; //자동출력시작 비활성화
- button6.disabled = true; //자동출력종료 비활성화
- }
-
- model.setValue("/root/send/data/fromDate", getCurrentDate().toDate().getAddDate(-3,"D").getDateFormat("YYYYMMDD"));
- model.setValue("/root/send/data/toDate", getCurrentDate());
- model.removeNodeset("/root/main/filminfo/filmlist");
- model.removeNodeset("/root/main/booklist/detail");
- if (model.getValue("/root/hidden/popdata/pid") == ""){
- model.toggle("case1");
- btn_case1.selected = true;
- btn_case2.selected = false;
- // button1.disabled = true;
- // button2.disabled = true;
- // button3.disabled = true;
- readfunc();
- }else{
- model.setValue("/root/send/data/spid", model.getValue("/root/hidden/popdata/pid"));
- model.setValue("/root/send/data/pid", model.getValue("/root/hidden/popdata/pid"));
- model.toggle("case2");
- btn_case1.selected = false;
- btn_case2.selected = true;
- // button1.disabled = true;
- // button2.disabled = true;
- // button3.disabled = true;
- cap_modal2.visible = true; // 영상검사내역Modality Box Title
- modality2.visible = true; // 영상검사내역Modality Box
- button4.dispatch("DOMActivate");
- }
-
- // instance1 값을 받아오기
- aezfSetSuppDeptcd();
- // 조회조건으로 부서코드 PIX하기 위해 가져오기
- model.setValue("/root/send/data/basesuppdeptcd", model.getValue("/root/send/globalinstance/instance1"));
-
- // 조회용 진료과코드
- submit("TRAER00803");
-
- // Section 정보
- submit("TRAEF00203");
-
- // 진료일자를 오늘 일자로 기본설정
- ipt_srchdate1.value = getCurrentDate().toDate().getAddDate(+1,"D").getDateFormat("YYYYMMDD");
- ipt_srchdate2.value = getCurrentDate().toDate().getAddDate(+1,"D").getDateFormat("YYYYMMDD");
- ipt_execd.value= getCurrentDate().toDate().getAddDate(-15,"D").getDateFormat("YYYYMMDD");
- ipt_execd2.value= getCurrentDate().toDate().getDateFormat("YYYYMMDD");
-
- //ipt_execd.value= getCurrentDate().toDate().getDateFormat("YYYYMMDD");
- //ipt_execd2.value= getCurrentDate().toDate().getAddDate(15,"D").getDateFormat("YYYYMMDD");
- model.setValue("/root/send/data/exegb", "0");
- model.setValue("/root/send/data2/drid", "");
- model.refresh();
- ]]>
- </script>
- <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/dateHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- </xhtml:head>
- <xhtml:body guideline="1,1194;2,763;2,784;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1194px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:240px; height:14px; ">판독요청내역조회</caption>
- </group>
- <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <line id="line3" class="line_1" style="x1:0px; y1:98px; x2:1188px; y2:98px; "/>
- <shape id="roundrect3" class="roundrect_search" appearance="roundrect" style="left:0px; top:5px; width:1193px; height:65px; "/>
- <line id="line18" class="line_4" style="x1:852px; y1:12px; x2:852px; y2:34px; border-left-style:solid; "/>
- <caption id="caption5" class="search_name" style="left:9px; top:12px; width:94px; height:17px; ">판독요청일:</caption>
- <input id="ipt_date1" ref="/root/send/data/fromDate" class="input_default" inputtype="date" style="left:109px; top:12px; width:90px; height:19px; "/>
- <button id="btn_sea" class="btn5_letter3" style="left:858px; top:13px; width:53px; height:19px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (btn_case1.selected == true){
- readfunc();
- }else{
- readfunc1();
- }
- ]]>
- </script>
- </button>
- <input id="input1" ref="/root/send/data/toDate" class="input_default" inputtype="date" style="left:214px; top:12px; width:90px; height:19px; "/>
- <caption id="caption1" style="left:201px; top:14px; width:15px; height:20px; ">-</caption>
- <button id="button3" class="btn5_letter4" style="left:912px; top:13px; width:64px; height:19px; ">
- <caption>판독승인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveData();
- ]]>
- </script>
- </button>
- <caption id="caption2" class="search_name" style="left:512px; top:14px; width:82px; height:17px; ">판독목적:</caption>
- <caption id="caption3" class="search_name" style="left:314px; top:14px; width:89px; height:17px; ">Chart No:</caption>
- <input id="input5" ref="/root/send/data/spid" class="input_search" style="left:406px; top:13px; width:99px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == "13") {
- inputEnterKey("button4","DOMActivate");
- }
- ]]>
- </script>
- </input>
- <select id="chk_excuroom" ref="/root/send/data/lendgoal" class="checkbox_search" appearance="full" cols="3" style="left:595px; top:14px; width:215px; height:17px; background-color:transparent; border-style:none; ">
- <choices>
- <item>
- <label>응급판독요청</label>
- <value>01</value>
- </item>
- <item>
- <label>외래진료판독요청</label>
- <value>02</value>
- </item>
- </choices>
- </select>
- <switch id="switch1" style="left:0px; top:100px; width:1190px; height:637px; ">
- <case id="case1" selected="true" style="vertical-align:middle; ">
- <datagrid id="grd_mainordlist1" nodeset="/root/main/booklist/detail" caption="선택^등록번호^환자명^성별/나이^영상구분^검사명^검사일^진료예약일^판독요청과^판독요청자^판독요청일^판독목적^출력여부^판독^반납^caption1" colsep="^" colwidth="35, 74, 83, 60, 70, 213, 74, 100, 129, 72, 108, 68, 71, 50, 48, 34" dataheight="23" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="label" style="left:0px; top:0px; width:1185px; height:632px; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col ref="pid"/>
- <col ref="hngnm"/>
- <col ref="sna" style="text-align:center; "/>
- <col disabled="true" ref="modality" type="combo">
- <choices>
- <item>
- <label>GR</label>
- <value>GR</value>
- </item>
- <item>
- <label>CT</label>
- <value>CT</value>
- </item>
- <item>
- <label>MRI</label>
- <value>MRI</value>
- </item>
- <item>
- <label>MR</label>
- <value>MR</value>
- </item>
- <item>
- <label>ANGIO</label>
- <value>AG</value>
- </item>
- <item>
- <label>SP</label>
- <value>SP</value>
- </item>
- <item>
- <label>SONO</label>
- <value>US</value>
- </item>
- <item>
- <label>BMD</label>
- <value>BM</value>
- </item>
- <item>
- <label>NM</label>
- <value>NM</value>
- </item>
- <item>
- <label>CT</label>
- <value>Ct</value>
- </item>
- <item>
- <label>CT</label>
- <value>C</value>
- </item>
- <item>
- <label>MAMMO</label>
- <value>MG</value>
- </item>
- </choices>
- </col>
- <col ref="prcpnm"/>
- <col ref="excuexectodt" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="orddd" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="lenddeptcd" format="hh:nn"/>
- <col ref="lendrid" style="text-align:center; "/>
- <col ref="lendapptm" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col disabled="true" ref="lendgoal" type="combo" style="text-align:center; ">
- <choices>
- <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>
- </choices>
- </col>
- <col disabled="true" ref="prntyn" type="combo" visibility="hidden" style="text-align:center; ">
- <choices>
- <item>
- <label>YES</label>
- <value>Y</value>
- </item>
- <item>
- <label>NO</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col checkvalue="Y,N" ref="lendyn" type="checkbox"/>
- <col checkvalue="Y,N" ref="rtnyn" type="checkbox" visibility="hidden"/>
- <col ref="seq" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if( isDataCell() ){
- setbutton();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_mainordlist1.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="oncopy">
- <![CDATA[
- astgrid_oncopy();
- ]]>
- </script>
- <script type="javascript" ev:event="onpaste">
- <![CDATA[
- astgrid_onpaste();
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="case2">
- <datagrid id="datagrid2" nodeset="/root/main/filminfo/filmlist" caption="구분^검사일자^접수일자^입원/외래^처방명^검사일^검사실^상태^판독상태^판독일^진료과(진료의)^신청일자^신청과^신청자^신청목적^신청서출력^caption2^caption3^caption4^caption1^caption5^caption7" colsep="^" colwidth="65, 74, 75, 64, 195, 100, 103, 67, 68, 76, 143, 111, 110, 61, 141, 70, 33, 34, 32, 38, 25, 31" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:0px; width:1188px; height:631px; ">
- <col disabled="true" ref="modality" type="combo">
- <choices>
- <item>
- <label>GR</label>
- <value>GR</value>
- </item>
- <item>
- <label>CT</label>
- <value>CT</value>
- </item>
- <item>
- <label>MRI</label>
- <value>MR</value>
- </item>
- <item>
- <label>ANGIO</label>
- <value>AG</value>
- </item>
- <item>
- <label>SP</label>
- <value>SP</value>
- </item>
- <item>
- <label>SONO</label>
- <value>US</value>
- </item>
- <item>
- <label>BMD</label>
- <value>BM</value>
- </item>
- <item>
- <label>NM</label>
- <value>NM</value>
- </item>
- <item>
- <label>CT</label>
- <value>Ct</value>
- </item>
- <item>
- <label>CT</label>
- <value>C</value>
- </item>
- <item>
- <label>MAMMO</label>
- <value>MG</value>
- </item>
- </choices>
- </col>
- <col ref="excuexectodt" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="fstrgstdt" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="ioflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- </choices>
- </col>
- <col ref="uoedesc"/>
- <col ref="excuexectodt" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="excuroomcd"/>
- <col ref="stat"/>
- <col disabled="true" ref="execprcpstatcd"/>
- <col ref="cnfmdt" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="deptdrnm"/>
- <col ref="lendapptm" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="lenddeptcd"/>
- <col ref="lendrid"/>
- <col disabled="true" ref="lendgoal" type="combo">
- <choices>
- <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>
- </choices>
- </col>
- <col disabled="true" ref="prntyn" type="combo">
- <choices>
- <item>
- <label>YES</label>
- <value>Y</value>
- </item>
- <item>
- <label>NO</label>
- <value>N</value>
- </item>
- </choices>
- </col>
- <col ref="lendyn" visibility="hidden"/>
- <col ref="pid" visibility="hidden"/>
- <col ref="hngnm" visibility="hidden"/>
- <col ref="prcpdd" visibility="hidden"/>
- <col ref="execprcpuniqno" visibility="hidden"/>
- <col ref="seq" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- datagrid2.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="oncopy">
- <![CDATA[
- alert("내용 복사");
- astgrid_oncopy();
- ]]>
- </script>
- <script type="javascript" ev:event="onpaste">
- <![CDATA[
- alert("내용 붙여넣기");
- astgrid_onpaste();
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="case3">
- <datagrid id="grd_booklistordd" nodeset="/root/main/booklistordd/detail" caption="등록번호^환자명^성별/나이^영상구분^검사명^SECTION^진료과^검사일시^주치의^예약일시^판독상태^외래판독 요청여부" colsep="^" colwidth="74, 83, 60, 85, 150, 82, 114, 119, 80, 100, 91, 110, 34" dataheight="23" ellipsis="true" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="23" rowsep="|" tooltip="label" style="left:0px; top:0px; width:1185px; height:632px; ">
- <col ref="pid" style="text-align:center; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="sna" style="text-align:center; "/>
- <col disabled="true" ref="modality" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>GR</label>
- <value>GR</value>
- </item>
- <item>
- <label>CT</label>
- <value>CT</value>
- </item>
- <item>
- <label>MRI</label>
- <value>MR</value>
- </item>
- <item>
- <label>ANGIO</label>
- <value>AG</value>
- </item>
- <item>
- <label>SP</label>
- <value>SP</value>
- </item>
- <item>
- <label>SONO</label>
- <value>US</value>
- </item>
- <item>
- <label>BMD</label>
- <value>BM</value>
- </item>
- <item>
- <label>NM</label>
- <value>NM</value>
- </item>
- <item>
- <label>CT</label>
- <value>Ct</value>
- </item>
- <item>
- <label>CT</label>
- <value>C</value>
- </item>
- <item>
- <label>MAMMO</label>
- <value>MG</value>
- </item>
- </choices>
- </col>
- <col ref="excucdnm" style="text-align:left; "/>
- <col ref="section" style="text-align:center; "/>
- <col ref="deptnm" style="text-align:center; "/>
- <col ref="excuexectodt" format="yyyy-mm-dd hh:nn" style="text-align:center; "/>
- <col ref="usernm" style="text-align:center; "/>
- <col ref="orddd" style="text-align:center; "/>
- <col ref="execprcpstatcd" style="text-align:center; "/>
- <col disabled="true" ref="lendgoal" type="combo" style="text-align:center; ">
- <choices>
- <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>
- </choices>
- </col>
- <col ref="seq" visibility="hidden"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if( isDataCell() ){
- setbutton();
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_mainordlist1.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="oncopy">
- <![CDATA[
- astgrid_oncopy();
- ]]>
- </script>
- <script type="javascript" ev:event="onpaste">
- <![CDATA[
- astgrid_onpaste();
- ]]>
- </script>
- </datagrid>
- </case>
- </switch>
- <button id="btn_case1" class="btn_sw" group="tab" selected="true" style="left:0px; top:75px; width:87px; height:22px; ">
- <caption>판독요청</caption>
- <toggle case="case1" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case1");
- btn_case1.selected = true;
- btn_case2.selected = false;
- cap_modal2.visible = false; // 영상검사내역Modality Box Title
- modality2.visible = false; // 영상검사내역Modality Box
- setbutton();
-
- // 진료예약자 판독현황 조회 탭일때는 조건 변경하기
- fChngSetMenu();
- ]]>
- </script>
- </button>
- <button id="btn_case2" class="btn_sw" group="tab" selected="true" style="left:87px; top:75px; width:87px; height:22px; ">
- <caption>영상검사내역</caption>
- <toggle case="case2" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case2");
- btn_case1.selected = false;
- btn_case2.selected = true;
- button1.disabled = true;
- button2.disabled = true;
- button3.disabled = true;
- cap_modal2.visible = true; // 영상검사내역Modality Box Title
- modality2.visible = true; // 영상검사내역Modality Box
- if (model.getValue("/root/send/data/spid") != ""){
- readfunc1();
- }
-
- // 진료예약자 판독현황 조회 탭일때는 조건 변경하기
- fChngSetMenu();
-
- model.refresh();
- ]]>
- </script>
- </button>
- <button id="button4" class="btn1_letter2" visibility="hidden" style="left:680px; top:73px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var schar = model.getValue("/root/send/data/spid");
- var k = 0;
- for (var i = 0; i < schar.length; i ++){
- var ch = parseInt(schar.charAt(i));
- if (ch >= 0 && ch <= 9){
- k = parseInt(i) + 1;
- }
- }
- if (k > 0){
- var spid = schar.substring(0, k);
- var sgb = schar.substring(k, schar.length);
- model.setValue("/root/send/data/pid", spid);
- }
- if (btn_case1.selected == true){
- if (model.getValue("/root/send/data/spid") != ""){
- if (grd_mainordlist1.rows > 1){
- for (var i = 1; i < grd_mainordlist1.rows; i++){
- var spid1 = model.getValue("/root/main/booklist/detail[" + i + "]/pid");
- var sgb1 = model.getValue("/root/main/booklist/detail[" + i + "]/modality");
- if (spid == spid1 && sgb == sgb1){
- var k1 = i;
- }
- }
- grd_mainordlist1.row = k1;
- grd_mainordlist1.topRow = k1;
- grd_mainordlist1.refresh();
- if (k1 > 0){
- if (model.getValue("/root/main/booklist/detail[" + k1 + "]/lendyn") == "N"){
- button3.disabled = false;
- button3.dispatch("DOMActivate");
- }else if (model.getValue("/root/main/booklist/detail[" + k1 + "]/lendyn") == "Y"){
- button1.disabled = false;
- button1.dispatch("DOMActivate");
- }else{
- messageBox("해당 신청내역은 이미 모든 처리가 완료되었습니다.", "E999", "");
- }
- }else{
- messageBox("해당 신청내역 내역이 존재하지 않습니다.", "E999", "");
- }
- }
- model.refresh();
- }
- }else{
- readfunc1();
- }
- ]]>
- </script>
- </button>
- <input id="opt_addr" ref="/root/main/patinfo/patinfolist/addr" class="output_fix" disabled="true" style="left:609px; top:47px; width:582px; height:19px; "/>
- <input id="opt_sex" ref="/root/main/patinfo/patinfolist/sex" class="output_fix" disabled="true" style="left:208px; top:47px; width:20px; height:19px; text-align:center; "/>
- <input id="opt_hngnm" ref="/root/main/patinfo/patinfolist/hngnm" class="output_fix" disabled="true" style="left:52px; top:47px; width:85px; height:19px; "/>
- <caption id="caption11" class="cell_1" style="left:231px; top:45px; width:50px; height:23px; vertical-align:middle; ">집전화</caption>
- <caption id="caption4" class="cell_1" style="left:0px; top:45px; width:50px; height:23px; vertical-align:middle; ">환자명</caption>
- <input id="opt_hometel" ref="/root/main/patinfo/patinfolist/hometel" class="output_fix" disabled="true" style="left:282px; top:47px; width:95px; height:19px; "/>
- <input id="opt_mpphontel" ref="/root/main/patinfo/patinfolist/mpphontel" class="output_fix" disabled="true" style="left:431px; top:47px; width:124px; height:19px; "/>
- <caption id="caption7" class="cell_1" style="left:558px; top:45px; width:50px; height:23px; vertical-align:middle; ">집주소</caption>
- <caption id="caption16" class="cell_1" style="left:140px; top:45px; width:43px; height:23px; vertical-align:middle; ">S/A</caption>
- <caption id="caption8" class="cell_1" style="left:380px; top:45px; width:50px; height:23px; vertical-align:middle; ">핸드폰</caption>
- <input id="opt_age" ref="/root/main/patinfo/patinfolist/age" class="output_fix" disabled="true" style="left:184px; top:47px; width:25px; height:19px; text-align:center; "/>
- <line id="line1" class="line_1" style="x1:0px; y1:41px; x2:1193px; y2:41px; "/>
- <button id="button5" class="btn5_letter7" style="left:995px; top:78px; width:97px; height:19px; ">
- <caption>자동출력시작</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- caption9.visible = true;
- clockTimer = window.setInterval("fPrint()", 10000);
- ]]>
- </script>
- </button>
- <button id="button6" class="btn5_letter7" style="left:1093px; top:78px; width:97px; height:19px; ">
- <caption>자동출력종료</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- caption9.visible = false;
- window.clearInterval(clockTimer);
- ]]>
- </script>
- </button>
- <caption id="caption9" visibility="hidden" style="left:755px; top:73px; width:145px; height:22px; font-size:12pt; color:#ff6600; text-align:center; ">자동출력 진행중....</caption>
- <select id="checkbox1" ref="/root/send/data/deptcdflag" class="checkbox_search" overflow="visible" appearance="full" style="left:806px; top:14px; width:40px; height:15px; border-style:none; ">
- <choices>
- <item>
- <label>NM</label>
- <value>NM</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- button5.disabled = true; //자동출력시작 비활성화
- button6.disabled = true; //자동출력종료 비활성화
- ]]>
- </script>
- </select>
- <button id="button7" class="btn5_letter5" style="left:919px; top:78px; width:75px; height:19px; ">
- <caption>목록출력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var tmpcnt =0 ;
- for (var i =0 ; i < grd_mainordlist1.selectedRows ; i++){
- tmpcnt = i+1 ;
- model.makeValue("/root/main/prntRexinfo/detail[" + tmpcnt + "]/pid", model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.selectedrow(i) + "]/pid")); //등록번호
- model.makeValue("/root/main/prntRexinfo/detail[" + tmpcnt + "]/hngnm", model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.selectedrow(i) + "]/hngnm")); // 환자명
- model.makeValue("/root/main/prntRexinfo/detail[" + tmpcnt + "]/modality", model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.selectedrow(i) + "]/modality")); // 필름구분
- model.makeValue("/root/main/prntRexinfo/detail[" + tmpcnt + "]/lenddeptcd", model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.selectedrow(i) + "]/lenddeptcd")); // 판독요청과
- model.makeValue("/root/main/prntRexinfo/detail[" + tmpcnt + "]/lendrid", model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.selectedrow(i) + "]/lendrid")); // 대출요청자
- model.makeValue("/root/main/prntRexinfo/detail[" + tmpcnt + "]/lendapptm", model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.selectedrow(i) + "]/lendapptm")); // 판독요청자
- model.makeValue("/root/main/prntRexinfo/detail[" + tmpcnt + "]/lendgoal", model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.selectedrow(i) + "]/lendgoal")); // 판독요청일
- model.makeValue("/root/main/prntRexinfo/detail[" + tmpcnt + "]/lendgoalnm", grd_mainordlist1.labelMatrix(grd_mainordlist1.selectedrow(i), grd_mainordlist1.colRef("lendgoal")) ); // 대출목적
- }
- //exeReportPreview("RPAEF00201", "XMLSTR", "", "", "true","","","","","true");
- exeReportPreview("RPAEF00201", "XMLSTR", "", "", "false","","","","","false");
- ]]>
- </script>
- </button>
- <button id="btn_case3" class="btn_sw" group="tab" selected="true" style="left:174px; top:75px; width:166px; height:22px; ">
- <caption>진료 예약자 판독 현황 조회</caption>
- <toggle case="case3" ev:event="onclick"/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.toggle("case3");
- btn_case1.selected = false;
- btn_case2.selected = false;
- btn_case3.selected = true;
- cap_modal2.visible = false; // 영상검사내역Modality Box Title
- modality2.visible = false; // 영상검사내역Modality Box
-
- // 진료예약자 판독현황 조회 탭일때는 조건 변경하기
- fChngSetMenu();
- ]]>
- </script>
- </button>
- <button id="btn_excel" class="btn4_letter3" style="left:345px; top:75px; width:68px; height:22px; ">
- <caption>Excel</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var file = window.fileDialog("save","","true","","xls","Excel Files(*.xls)|*.xls");
- if(file == "") return;
-
- if (btn_case1.selected == true) {
- grd_mainordlist1.saveExcel(file, "sheet1");
- } else {
- if (btn_case2.selected == true){
- datagrid2.saveExcel(file, "sheet1");
- } else {
- grd_booklistordd.saveExcel(file, "sheet1");
- }
- }
- ]]>
- </script>
- </button>
- <input id="ipt_srchdate1" ref="/root/send/data2/srchdate1" class="input_default" visibility="hidden" inputtype="date" style="left:75px; top:15px; width:85px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ipt_execd.value= model.getValue("/root/send/data2/srchdate1").toDate().getAddDate(-15,"D").getDateFormat("YYYYMMDD");
- ipt_execd2.value= model.getValue("/root/send/data2/srchdate1").toDate().getAddDate(-1,"D").getDateFormat("YYYYMMDD");
- ]]>
- </script>
- </input>
- <input id="ipt_srchdate2" ref="/root/send/data2/srchdate2" class="input_default" visibility="hidden" inputtype="date" style="left:165px; top:15px; width:85px; height:19px; "/>
- <caption id="caption10" class="search_name" visibility="hidden" style="left:6px; top:13px; width:70px; height:17px; vertical-align:middle; ">진료일자</caption>
- <select1 id="combo1" ref="/root/send/data2/section" navindex="5" appearance="minimal" style="left:1075px; top:13px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_section/initsection">
- <label ref="sectionnm"/>
- <value ref="sectionid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption12" class="search_name" visibility="hidden" style="left:652px; top:13px; width:83px; height:17px; vertical-align:middle; ">영상구분</caption>
- <select1 id="cmb_modality" ref="/root/send/data2/modality" navindex="5" visibility="hidden" appearance="minimal" style="left:737px; top:15px; width:115px; height:19px; ">
- <choices>
- <item>
- <label>-- 전체 --</label>
- <value/>
- </item>
- <item>
- <label>GR</label>
- <value>GR</value>
- </item>
- <item>
- <label>DR</label>
- <value>DR</value>
- </item>
- <item>
- <label>CT</label>
- <value>CT</value>
- </item>
- <item>
- <label>MRI</label>
- <value>MRI</value>
- </item>
- <item>
- <label>ANGIO</label>
- <value>ANGIO</value>
- </item>
- <item>
- <label>SP</label>
- <value>SP</value>
- </item>
- <item>
- <label>SONO</label>
- <value>SONO</value>
- </item>
- <item>
- <label>BMD</label>
- <value>BMD</value>
- </item>
- <item>
- <label>NM</label>
- <value>NM</value>
- </item>
- <item>
- <label>MAMMO</label>
- <value>MAMMO</value>
- </item>
- </choices>
- </select1>
- <caption id="caption13" class="search_name" visibility="hidden" style="left:257px; top:13px; width:70px; height:17px; vertical-align:middle; ">진료과</caption>
- <caption id="caption14" class="search_name" visibility="hidden" style="left:477px; top:13px; width:70px; height:17px; vertical-align:middle; ">진료의</caption>
- <caption id="caption15" class="search_name" style="left:983px; top:14px; width:90px; height:17px; vertical-align:middle; ">SECTION:</caption>
- <select1 id="cmb_orddr" ref="/root/send/data2/drid" class="combo_search" visibility="hidden" appearance="minimal" style="left:547px; top:15px; width:98px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_orddr/initexecorddr">
- <label ref="execorddrcdnm"/>
- <value ref="execorddrcdid"/>
- </itemset>
- </choices>
- </select1>
- <select1 id="cmb_orddept" ref="/root/send/data2/deptcd" class="combo_search" visibility="hidden" appearance="minimal" style="left:328px; top:15px; width:140px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cmb_orddept/initexecorddept">
- <label ref="execorddeptcdnm"/>
- <value ref="execorddeptcdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fChngSrchDrId();
- ]]>
- </script>
- </select1>
- <button id="btn_data2searh" class="btn1_letter5" visibility="hidden" style="left:1090px; top:13px; width:92px; height:17px; ">
- <caption>미판독조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if (model.getValue("/root/send/data2/srchdate1") == ""){
- messageBox("시작 진료일자는 필수 입력항목입니다.", "E999", "");
- return;
- }
-
- if (isDate(model.getValue("/root/send/data2/srchdate1")) == false){
- messageBox("진료 시작일의 날짜 형식이 잘못 입력되었습니다.", "E999", "");
- return;
- }
- /*
- if (model.getValue("/root/send/data2/srchdate2") == ""){
- messageBox("종료 진료일자는 필수 입력항목입니다.", "E999", "");
- return;
- }
- if (isDate(model.getValue("/root/send/data2/srchdate2")) == false){
- messageBox("진료 시작일의 날짜 형식이 잘못 입력되었습니다.", "E999", "");
- return;
- }
- if (model.getValue("/root/send/data2/srchdate1") != model.getValue("/root/send/data2/srchdate2")){
- messageBox("진료일자의 조회 기간은 1일 조회입니다.", "E999", "");
- return;
- }
- */
- /*
- if (model.getValue("/root/send/data2/deptcd") == ""){
-
- var srchLength1 = model.instances(0).selectNodes( "/root/init/cmb_orddept/initexecorddept" ).length;
- var strlist ="";
- for ( var i = 1; i <= srchLength1; i++ ) {
-
- if ( model.getValue("/root/init/cmb_orddept/initexecorddept["+ i +"]/execorddeptcdid") != "" ) {
- strlist += model.getValue("/root/init/cmb_orddept/initexecorddept["+ i +"]/execorddeptcdid")+",";
- }
- }
- model.makeValue("/root/send/data2/deptstrlist", strlist);
- model.refresh();
-
- }
- */
-
- //if (model.getValue("/root/send/data2/deptcd") == ""){
- // messageBox("진료과는 필수 입력항목입니다.", "E999", "");
- // return;
- //}
- // 미판독 내역조회
- submit("TRAEF00202");
- //model.resetInstanceNode("/root/send/data2/deptstrlist");
- //model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="chk_eckbox2" ref="/root/send/data/exegb" class="checkbox_search" appearance="full" cols="5" overflow="visible" style="left:418px; top:78px; width:305px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>0</value>
- </item>
- <item>
- <label>판독요청</label>
- <value>1</value>
- </item>
- <item>
- <label>미판독</label>
- <value>2</value>
- </item>
- <item>
- <label>판독완료</label>
- <value>3</value>
- </item>
- </choices>
- </select1>
- <caption id="cap_execdd" class="search_name" visibility="hidden" style="left:913px; top:75px; width:76px; height:17px; vertical-align:middle; ">실시일자</caption>
- <input id="ipt_execd" ref="/root/send/data2/excuexectodd" class="input_default" visibility="hidden" inputtype="date" style="left:1000px; top:75px; width:85px; height:19px; "/>
- <input id="ipt_execd2" ref="/root/send/data2/excuexectodd2" class="input_default" visibility="hidden" inputtype="date" style="left:1090px; top:75px; width:85px; height:19px; "/>
- <select1 id="rdo_prcpgenrflag" ref="/root/send/data2/prcpgenrflag" class="radio_search" visibility="hidden" appearance="full" cellspacing="5" cols="3" rows="1" overflow="visible" style="left:755px; top:77px; width:150px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>입원</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- </choices>
- </select1>
- <caption id="cap_modal2" class="search_name" visibility="hidden" style="left:740px; top:77px; width:83px; height:17px; vertical-align:middle; ">영상구분</caption>
- <select1 id="modality2" ref="/root/send/data/modality" visibility="hidden" appearance="minimal" style="left:819px; top:76px; width:85px; height:19px; ">
- <choices>
- <item>
- <label>-- 전체 --</label>
- <value/>
- </item>
- <item>
- <label>GR</label>
- <value>GR</value>
- </item>
- <item>
- <label>DR</label>
- <value>DR</value>
- </item>
- <item>
- <label>CT</label>
- <value>CT</value>
- </item>
- <item>
- <label>MRI</label>
- <value>MRI</value>
- </item>
- <item>
- <label>ANGIO</label>
- <value>ANGIO</value>
- </item>
- <item>
- <label>SP</label>
- <value>SP</value>
- </item>
- <item>
- <label>SONO</label>
- <value>SONO</value>
- </item>
- <item>
- <label>BMD</label>
- <value>BMD</value>
- </item>
- <item>
- <label>NM</label>
- <value>NM</value>
- </item>
- <item>
- <label>MAMMO</label>
- <value>MAMMO</value>
- </item>
- </choices>
- </select1>
- <button id="button1" class="btn5_letter2" disabled="true" visibility="hidden" style="left:975px; top:45px; width:42px; height:19px; ">
- <caption>반납승인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveData1();
- ]]>
- </script>
- </button>
- <button id="button2" class="btn5_letter2" disabled="true" visibility="hidden" style="left:1020px; top:45px; width:42px; height:19px; ">
- <caption>대출신청서</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (grd_mainordlist1.row > 0){
- model.setValue("/root/main/printinfo/printlist/pid", model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.row + "]/pid"));
- model.setValue("/root/main/printinfo/printlist/hngnm", model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.row + "]/hngnm"));
- model.setValue("/root/main/printinfo/printlist/modality", model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.row + "]/modality"));
- model.setValue("/root/main/printinfo/printlist/lenddeptcd", model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.row + "]/lenddeptcd"));
- model.setValue("/root/main/printinfo/printlist/lendrid", model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.row + "]/lendrid"));
- model.setValue("/root/main/printinfo/printlist/lendgoal", grd_mainordlist1.labelMatrix(grd_mainordlist1.row, grd_mainordlist1.colRef("lendgoal")));
- model.setValue("/root/main/printinfo/printlist/lendapptm", model.getValue("/root/main/booklist/detail[" + grd_mainordlist1.row + "]/lendapptm"));
- model.refresh();
- //setParameter("reportprintyn", "");
- //exeReportPreview("RPAEF00200", "XMLSTR", "/root/main/printinfo/printlist");
- //exeReportPreview("RPAEF00200", "XMLSTR", "/root/main/printinfo/printlist", "", "true", "", "", "", "", "", "", "", "", "", "", "", "", "0");
- exeReportPreview("RPAEF00200", "XMLSTR", "/root/main/printinfo/printlist", "", "true", "", "", "", "", "true","", "", "", "", "", "", "", "printpaper=8;");
- //if (getParameter("reportprintyn") == "Y"){
- fSaveData2();
- }else{
- messageBox("출력할 행을 선택한 후 작업하시기 바랍니다.", "E999", "");
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|