123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908 |
- <?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>Cancer Stage 분류</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <result>
- <savetnmlist/>
- <savecncrlist/>
- </result>
- <bfrow/>
- <temp/>
- <init>
- <inptimpsiresncd>
- </inptimpsiresncd>
- <cncrflagkind2>
- </cncrflagkind2>
- <cncrflagkind1>
- </cncrflagkind1>
- <stageflag>
- </stageflag>
- <payflagcd/>
- <drugthrpcd/>
- <stage>
- <row/>
- </stage>
- <displaystagecombo/>
- <cncrflag1/>
- </init>
- <temptnm>
- <genrdd/>
- <genrno/>
- <histno/>
- <instcd/>
- <histcd/>
- <pid/>
- <orddd/>
- <cretno/>
- <orddeptcd/>
- <genrflagcd/>
- <icd10cd/>
- <diagcd/>
- <stagecd/>
- <tnmcd1/>
- <tnmcd2/>
- <tnmcd3/>
- <stageflag/>
- <cncrflag1/>
- <cncrflagkind1/>
- <cncrflag2/>
- <cncrflagkind2/>
- <inptimpsiflag/>
- <inptimpsiresncd/>
- <rgstdeptcd/>
- <rgstdd/>
- <rgsttm/>
- <rgstrid/>
- <updtdeptcd/>
- <updtdd/>
- <updttm/>
- <updtrid/>
- <fstrgstrid/>
- <fstrgstdt/>
- <lastupdtrid/>
- <lastupdtdt/>
- <inptimpsietcresnnm/>
- <mataflag/>
- <cncrflag/>
- <diagnm/>
- <attackflag/>
- <tempcol1/>
- <tempcol2/>
- <tempcol3/>
- <status/>
- <displaystage/>
- </temptnm>
- <tempcncr>
- <genrdd/>
- <genrno/>
- <histno/>
- <instcd/>
- <pid/>
- <orddd/>
- <cretno/>
- <genrflagcd/>
- <histcd/>
- <prcpdd/>
- <drugthrpcd/>
- <drugtims/>
- <drugpridstartno/>
- <drugpridstartdayno/>
- <drugpridendno/>
- <drugpridenddayno/>
- <rgstdeptcd/>
- <rgstdd/>
- <rgsttm/>
- <rgstrid/>
- <updtdeptcd/>
- <updtdd/>
- <updttm/>
- <updtrid/>
- <fstrgstrid/>
- <fstrgstdt/>
- <lastupdtrid/>
- <lastupdtdt/>
- <tempcol1/>
- <tempcol2/>
- <tempcol3/>
- <status/>
- </tempcncr>
- <stagecls>
- <stageclslist>
- <stage/>
- <t/>
- <n/>
- <m/>
- <displaystage/>
- </stageclslist>
- </stagecls>
- <send>
- <cond1/>
- <cond2/>
- </send>
- <tempresult>
- <savetnmlist/>
- <savecncrlist/>
- <savenewlist/>
- </tempresult>
- <copyresult/>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-model-construct-done">
- <![CDATA[
- zbcfGetCodeList(new Array( "M0326","M0327","M0328","M0329", "M0331" ),
- new Array("/root/init/inptimpsiresncd", "/root/init/cncrflagkind2", "/root/init/cncrflagkind1","/root/init/stageflag", "/root/init/drugthrpcd"));
-
- var srcNodeList1 = model.instances(0).selectNodes("/root/tempresult/savetnmlist");
- var srcNodeList2 = model.instances(0).selectNodes("/root/tempresult/savecncrlist");
- var destNode = model.instances(0).selectSingleNode("/root/result");
- var copydestNode = model.instances(0).selectSingleNode("/root/copyresult");
-
- model.removeNodeset ("/root/result/savetnmlist");
- model.removeNodeset ( "/root/result/savecncrlist" );
-
- model.setValue ( "/root/bfrow", "" );
- if ( srcNodeList1.length == 0 && srcNodeList2.length == 0 ) {
-
- }
-
- model.refresh();
- var row=0;
- for ( i=0; i < srcNodeList1.length; i++ ){
- row = i+1;
- if (model.getValue ( "/root/tempresult/savetnmlist[" + row + "]/status" ) == "I" || model.getValue ( "/root/tempresult/savetnmlist[" + row + "]/status" ) == "U") {
- destNode.appendChild(srcNodeList1.item(i).cloneNode(true));
- if ( model.getValue ( "/root/tempresult/savetnmlist[" + row + "]/status" ) == "U" ) {
- button91.disabled = false;
- } else {
- button91.disabled = true;
- }
- } else {
- copydestNode.appendChild(srcNodeList1.item(i).cloneNode(true));
- button91.disabled = true;
- }
- }
- model.refresh();
- for ( i=0; i < srcNodeList2.length; i++ ) {
- destNode.appendChild(srcNodeList2.item(i).cloneNode(true));
- }
-
- model.refresh();
- combo2.disabled = true;
- input5.disabled = true;
- // datagrid2.attribute ( "visibility" ) = "hidden";
- radio2.disabled = true;
- combo1.disabled = true;
-
- if ( isNull ( model.getValue ( "/root/result/savecncrlist/pid" ))) {
- radio3.disabled = true;
- combo3.disabled = true;
- combo4.disabled = true;
- combo5.disabled = true;
- }
- if ( isNull ( model.getValue ( "/root/result/savetnmlist/pid" ))) {
- bool1.disabled = true;
- bool2.disabled = true;
- bool3.disabled = true;
- combo2.disabled = true;
- input1.disabled = true;
- input2.disabled = true;
- input3.disabled = true;
- input4.disabled = true;
- input5.disabled = true;
- radio1.disabled = true;
- combo6.disabled = true;
- }
- fReqStageCls(model.getValue("/root/result/savetnmlist/icd10cd"));
-
- submit("TRMMO08402", false);
- ]]>
- </script>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- if (! isNull ( model.getValue ( "/root/result/savecncrlist/pid" ))) {
- model.copyNode ( "/root/tempcncr", "/root/result/savecncrlist" );
- if ( model.getValue ( "/root/tempcncr/tempcol1") == "Y" ) {
- if ( messageBox ( model.getValue ( "/root/tempcncr/tempcol3"), "Q" ) == "6" ) {
- var tempcol2 = model.getValue ( "/root/tempcncr/tempcol2") + "^";
- var drugthrpcd = getArrayData (tempcol2, 0, 0, "^", "|" );
- var drugtims = getArrayData (tempcol2, 0, 1, "^", "|" );
- var drugpridstartno = getArrayData (tempcol2, 0, 2, "^", "|" );
- var drugpridstartdayno = getArrayData (tempcol2, 0, 3, "^", "|" );
- var drugpridendno = getArrayData (tempcol2, 0, 4, "^", "|" );
- var drugpridenddayno = getArrayData (tempcol2, 0, 5, "^", "|" );
-
- model.setValue ( "/root/tempcncr/drugthrpcd", drugthrpcd );
- model.setValue ( "/root/tempcncr/drugtims", drugtims );
- model.setValue ( "/root/tempcncr/drugpridstartno", drugpridstartno );
- model.setValue ( "/root/tempcncr/drugpridstartdayno", drugpridstartdayno );
- model.setValue ( "/root/tempcncr/drugpridendno", drugpridendno );
- model.setValue ( "/root/tempcncr/drugpridenddayno", drugpridenddayno );
- // model.refresh(); // 위치를 아래로 이동.
- }
- }
- model.refresh();
- }
- fSetTempTnm (1);
- ]]>
- </script>
- <submission id="TRMMO08401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/stagecls"/>
- <submission id="TXMMO08401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- <submission id="TRMMO08402" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/init/stage"/>
- </model>
- </xhtml:head>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../emr/prcpmngtweb/js/MMO001.js"/>
- <script type="javascript">
- <![CDATA[
- function fReqStageCls(diagcd){
- model.resetInstanceNode("/root/send");
- model.setValue("/root/send/cond1", diagcd);
- if(submit("TRMMO08401")){
- }
- }
- function fSetTempTnm (currow) {
- if ( isNull ( model.getValue ( "/root/result/savetnmlist/pid" ))) {
- return;
- }
- datagrid1.row = currow;
-
- var bfrow = model.getValue ( "/root/bfrow" );
- if ( !isNull ( bfrow )) {
- if ( isNull(model.getValue ("/root/temptnm/stagecd")) && !isNull(model.getValue ( "/root/temptnm/displaystage" ))) {
- model.setValue ("/root/temptnm/stagecd", model.getValue ( "/root/temptnm/displaystage" ));
- }
- model.copyNode ( "/root/result/savetnmlist[" + bfrow + "]" , "/root/temptnm" );
- }
- model.copyNode ( "/root/temptnm", "/root/result/savetnmlist[" + currow + "]" );
- model.setValue("/root/init/displaystagecombo", model.getValue("/root/temptnm/stagecd") );
- model.setValue ( "/root/bfrow", currow );
- var mataflag = model.getValue ( "/root/temptnm/mataflag" ); //병기 입력에 대한 Stage 자료가 없음 구분
- if ( mataflag == "N" ) { //N일때는 분류표에서 state 입력
- input1.disabled = true;
- input2.disabled = true;
- input3.disabled = true;
- input4.disabled = true;
- combo6.disabled = true;
- } else {
- input1.disabled = false;
- input2.disabled = false;
- input3.disabled = false;
- input4.disabled = false;
- combo6.disabled = false;
- }
-
- //입력불가 setting
- if ( model.getValue ( "/root/temptnm/inptimpsiflag" ) == "Y" ) {
- input1.disabled = true;
- input2.disabled = true;
- input3.disabled = true;
- input4.disabled = true;
- combo6.disabled = true;
- radio1.disabled = true;
- combo2.disabled = false;
- model.setValue ( "/root/temptnm/stagecd", "" );
- model.setValue ( "/root/temptnm/tnmcd1", "" );
- model.setValue ( "/root/temptnm/tnmcd2", "" );
- model.setValue ( "/root/temptnm/tnmcd3" , "" );
- model.setValue ( "/root/temptnm/stageflag", "-" );
- model.setValue( "/root/init/displaystagecombo", "");
- } else {
- model.setValue ( "/root/temptnm/inptimpsiresncd", "-" );
- model.setValue ( "/root/temptnm/inptimpsietcresnnm", "" );
- model.setValue ( "/root/temptnm/inptimpsiflag", "N" );
- input1.disabled = false;
- radio1.disabled = false;
- combo2.disabled = true;
- if ( model.getValue ( "/root/temptnm/mataflag" ) == "N" ) { //N일때는 분류표에서 state 입력
- input1.disabled = true;
- input2.disabled = true;
- input3.disabled = true;
- input4.disabled = true;
- combo6.disabled = true;
- } else {
- input1.disabled = false;
- input2.disabled = false;
- input3.disabled = false;
- input4.disabled = false;
- combo6.disabled = false;
- }
- }
- if ( model.getValue ( "/root/temptnm/nptimpsiresncd" ) == "99" ) {
- input5.disabled = false;
- } else {
- input5.disabled = true;
- }
-
- //소세포암 setting
- if ( model.getValue ( "/root/temptnm/cncrflag1" ) == "Y" ) {
- radio2.disabled = false;
- bool2.disabled= false;
- if ( model.getValue("/root/temptnm/cncrflagkind1") == "-" ) {
- model.setValue( "/root/temptnm/cncrflag1", "N" );
- }
- } else {
- if (model.getValue("/root/init/cncrflag1")=="Y"){
- radio2.disabled = false;
- bool2.disabled= false;
- }
- else{
- radio2.disabled = true;
- bool2.disabled= true;
- }
- }
- //난세포암 setting
- if ( model.getValue ( "/root/temptnm/cncrflag2" ) == "Y" ) {
- combo1.disabled = false;
- bool3.disabled= false;
- } else {
- combo1.disabled = true;
- bool3.disabled= true;
- }
- model.refresh();
-
- if ( model.getValue ( "/root/temptnm/tempcol1") == "Y" ) {
- if ( messageBox ( model.getValue ( "/root/temptnm/tempcol3"), "Q" ) == "6" ) {
- var copyrow = eval(model.getValue ( "/root/temptnm/tempcol2")) + 1;
- model.copyNode ( "/root/temptnm", "/root/copyresult/savetnmlist[" + copyrow + "]" );
- model.refresh();
- }
- model.setValue ( "/root/temptnm/tempcol1", "N" );
- }
- }
- ]]>
- </script>
- <xhtml:body pagewidth="530" pageheight="760" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
- <datagrid id="datagrid2" nodeset="/root/stagecls/stageclslist" caption="Stage^T^N^M" colsep="^" colwidth="100, 60, 60, 49" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:154px; top:199px; width:282px; height:301px; ">
- <col ref="displaystage" style="text-align:center; "/>
- <col ref="t" style="text-align:center; "/>
- <col ref="n" style="text-align:center; "/>
- <col ref="m" style="text-align:center; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (model.getValue("/root/temptnm/inptimpsiflag" ) == "N" ) {
- var stage = model.getValue ( "/root/stagecls/stageclslist[" + datagrid2.row + "]/stage" );
- var t = model.getValue ( "/root/stagecls/stageclslist[" + datagrid2.row + "]/t" );
- var n = model.getValue ( "/root/stagecls/stageclslist[" + datagrid2.row + "]/n" );
- var m = model.getValue ( "/root/stagecls/stageclslist[" + datagrid2.row + "]/m" );
- var displaystage = model.getValue ( "/root/stagecls/stageclslist[" + datagrid2.row + "]/displaystage" );
-
- model.setValue ( "/root/temptnm/stagecd" , stage );
- model.setValue ( "/root/temptnm/tnmcd1" , t );
- model.setValue ( "/root/temptnm/tnmcd2" , n );
- model.setValue ( "/root/temptnm/tnmcd3" , m );
- model.setValue ( "/root/temptnm/displaystage" , displaystage );
-
- model.setValue("/root/init/displaystagecombo", stage);
- model.refresh();
- }
- ]]>
- </script>
- </datagrid>
- <line id="line7" class="line_2" style="x1:2px; y1:637px; x2:507px; y2:637px; "/>
- <caption id="caption11" class="cell_1" style="left:2px; top:586px; width:100px; height:50px; "/>
- <caption id="caption9" class="cell_1" style="left:2px; top:532px; width:100px; height:50px; "/>
- <button id="button1" class="btn2_letter3" style="left:451px; top:1px; width:53px; height:19px; ">
- <caption>초기화</caption>
- </button>
- <button id="button2" class="btn2_letter5" style="left:373px; top:1px; width:75px; height:19px; ">
- <caption>AJCC참조</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal ( "SPMMO13900" );
- ]]>
- </script>
- </button>
- <button id="button91" class="btn5_letter3" style="left:323px; top:730px; width:53px; height:19px; ">
- <caption>삭 제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetTempTnm (datagrid1.row);
-
- if ( !isNull(model.getValue ("/root/result/savetnmlist/pid")) || !isNull(model.getValue ("/root/result/savecncrlist/pid")) ) {
- if ( !isNull(model.getValue ("/root/result/savetnmlist/pid" ))) {
- var savetnmlistlen = model.instances(0).selectNodes( "/root/result/savetnmlist" ).length;
- for ( var i =1; i <= savetnmlistlen; i++ ) {
- model.setValue ( "/root/result/savetnmlist[" + i + "]/status", "D" );
- }
-
- var savetnmlistNodeList = model.instances(0).selectNodes( "/root/result/savetnmlist" );
- model.setValue ( "/root/send/cond1", getNodeListCSV(savetnmlistNodeList));
- }
-
- if ( !isNull(model.getValue ("/root/result/savecncrlist/pid" ))) {
- var savecncrlistlen = model.instances(0).selectNodes( "/root/result/savecncrlist" ).length;
- for ( var i =1; i <= savecncrlistlen; i++ ) {
- model.setValue ( "/root/result/savecncrlist[" + i + "]/status", "D" );
- }
-
- var savecncrlistNodeList = model.instances(0).selectNodes( "/root/result/savecncrlist" );
- model.setValue ( "/root/send/cond2", getNodeListCSV(savecncrlistNodeList));
- }
-
- submit ( "TXMMO08401" , false);
- opener.javascript.setParameter ( "SPMMO08400_rtn1", "Y" );
- window.close();
- }
- ]]>
- </script>
- </button>
- <button id="button90" class="btn5_letter3" style="left:379px; top:730px; width:53px; height:19px; ">
- <caption>등 록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetTempTnm (datagrid1.row);
-
- for ( var i = 1; i < datagrid1.rows; i++ ) {
- if ( model.getValue ( "/root/result/savetnmlist[" + i + "]/inptimpsiflag" ) != "Y" ) {
-
- var attackflag = model.getValue ( "/root/result/savetnmlist[" + i + "]/attackflag" );
- var stagecd = model.getValue ( "/root/result/savetnmlist[" + i + "]/stagecd" );
- var tnmcd1 = model.getValue ( "/root/result/savetnmlist[" + i + "]/tnmcd1" );
- var tnmcd2 = model.getValue ( "/root/result/savetnmlist[" + i + "]/tnmcd2" );
- var tnmcd3 = model.getValue ( "/root/result/savetnmlist[" + i + "]/tnmcd3" );
-
- if ( attackflag == "-" || isNull(attackflag) ) {
- model.alert ( model.getValue ( "/root/result/savetnmlist[" + i + "]/diagnm" ) + " " + "발병상태가 입력되지 않았습니다." );
- return;
- }
-
- if ( model.getValue ( "/root/result/savetnmlist[" + i + "]/cncrflag2" ) != "Y" ) {// 난세포암이 아닐 때 만 체크한다. 난세포암은 GRADE로 체크.
- if ( model.getValue ( "/root/result/savetnmlist[" + i + "]/cncrflag1" ) != "Y" ) {
- if ( isNull(stagecd) || isNull(tnmcd1) || isNull(tnmcd2) || isNull(tnmcd3)) {
- model.alert ( model.getValue ( "/root/result/savetnmlist[" + i + "]/diagnm" ) + " " + "Stage 분류가 입력되지 않았습니다." );
-
- return;
- }
- }
- //STAGE구분(1:임상적, 2:병리적) -> 반드시 '1' or '2' 가 입력되어야됨 단, 입력불가구분이 'Y'일 경우 '-'
- var stageflag = model.getValue ( "/root/result/savetnmlist[" + i + "]/stageflag" );
- if ( stageflag == "-" || isNull(stageflag)) {
- model.alert ( model.getValue ( "/root/result/savetnmlist[" + i + "]/diagnm" ) + " " + "Stage 구분이 입력되지 않았습니다.");
- return;
- }
- }
- } else {
- var inptimpsiresncd = model.getValue ( "/root/result/savetnmlist[" + i + "]/inptimpsiresncd" );
- if ( inptimpsiresncd == "-" || isNull(inptimpsiresncd)) {
- model.alert ( model.getValue ( "/root/result/savetnmlist[" + i + "]/diagnm" ) + " " + "입력불가 사유가 입력되지 않았습니다.");
- return;
- }
- if ( inptimpsiresncd == "99" ) {
- var inptimpsietcresnnm = model.getValue ( "/root/result/savetnmlist[" + i + "]/inptimpsietcresnnm" );
- if ( isNull(inptimpsietcresnnm)) {
- model.alert ( model.getValue ( "/root/result/savetnmlist[" + i + "]/diagnm" ) + " " + "입력불가 기타사유가 입력되지 않았습니다.");
- return;
- }
- }
- }
-
- if ( model.getValue ( "/root/result/savetnmlist[" + i + "]/cncrflag1" ) == "Y" ) {
- //소세포암에 대한 선택 종류 -> 소세포암구분이 'Y'일 경우 '1' or '2' 가 입력되어야됨, 그렇지 안을 경우 '-'
- var cncrflagkind1 = model.getValue ( "/root/result/savetnmlist[" + i + "]/cncrflagkind1" );
- if ( cncrflagkind1 == "-" || isNull(cncrflagkind1)) {
- model.alert ( model.getValue ( "/root/result/savetnmlist[" + i + "]/diagnm" ) + " " + "소세포암 구분이 입력되지 않았습니다.");
- return;
- }
- }
-
-
- if ( model.getValue ( "/root/result/savetnmlist[" + i + "]/cncrflag2" ) == "Y" ) {
- //Grade -> 난소암구분이 'N'이 아닐 경우 반드시 '-'가 아니어야 됨
- var cncrflagkind2 = model.getValue ( "/root/result/savetnmlist[" + i + "]/cncrflagkind2" );
- if ( cncrflagkind2 == "-" || isNull(cncrflagkind2)) {
- model.alert ( model.getValue ( "/root/result/savetnmlist[" + i + "]/diagnm" ) + " " + "난소암 GRADE가 입력되지 않았습니다.");
- return;
- }
- }
- }
- if ( !isNull(model.getValue ("/root/result/savecncrlist/pid" ))) {
- if ( isNull (model.getValue ( "/root/tempcncr/drugthrpcd" ))) {
- messageBox ( "투여요법이 입력되지" , "E007" );
- return;
- }
- if ( isNull (model.getValue ( "/root/tempcncr/drugtims" ))) {
- messageBox ( "투여단계가 입력되지" , "E007" );
- return;
- }
- if ( isNull (model.getValue ( "/root/tempcncr/drugpridstartno" ))) {
- messageBox ( "투여주기1이 입력되지" , "E007" );
- return;
- }
-
- var savecncrlistlen = model.instances(0).selectNodes( "/root/result/savecncrlist" ).length;
- for ( var i =1; i <= savecncrlistlen; i++ ) {
- var prcpdd = model.getValue ( "/root/result/savecncrlist[" + i + "]/prcpdd" );
- model.copyNode ( "/root/result/savecncrlist[" + i + "]" , "/root/tempcncr" );
- model.setValue ( "/root/result/savecncrlist[" + i + "]/prcpdd", prcpdd );
- //model.copyNode ( "/root/result/savecncrlist[" + i + "]" , "/root/tempcncr" );
- }
-
- var savecncrlistNodeList = model.instances(0).selectNodes( "/root/result/savecncrlist" );
- model.setValue ( "/root/send/cond2", getNodeListCSV(savecncrlistNodeList));
- }
-
- var savetnmlistNodeList = model.instances(0).selectNodes( "/root/result/savetnmlist" );
- model.setValue ( "/root/send/cond1", getNodeListCSV(savetnmlistNodeList));
- submit ( "TXMMO08401" , false);
- opener.javascript.setParameter ( "SPMMO08400_rtn1", "Y" );
- window.close();
- ]]>
- </script>
- </button>
- <select id="checkbox3" overflow="visible" appearance="full" style="left:7px; top:129px; width:85px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>입력불가</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <caption id="caption10" style="left:105px; top:537px; width:405px; height:20px; ">* 선택하신 상병의 암이 소세포암인 경우 다음 구분을 선택하여 주십시오.</caption>
- <caption id="caption1" class="cell_1" style="left:2px; top:29px; width:100px; height:94px; ">ICD-10 코드</caption>
- <line id="line13" class="line_1" style="x1:2px; y1:24px; x2:507px; y2:24px; "/>
- <select1 id="combo1" ref="/root/temptnm/cncrflagkind2" class="combo_search" appearance="minimal" style="left:153px; top:613px; width:100px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/cncrflagkind2/M0327">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption2" class="cell_1" style="left:2px; top:178px; width:100px; height:23px; ">분류</caption>
- <line id="line14" class="line_2" style="x1:2px; y1:175px; x2:507px; y2:175px; "/>
- <select1 id="combo2" ref="/root/temptnm/inptimpsiresncd" class="combo_search" appearance="minimal" style="left:104px; top:128px; width:116px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/inptimpsiresncd/M0326">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue ( "/root/temptnm/inptimpsiresncd" ) == "99" ) {
- input5.disabled = false;
- } else {
- model.setValue ( "/root/temptnm/inptimpsietcresnnm" , "" );
- input5.disabled = true;
- }
- model.refresh();
- ]]>
- </script>
- </select1>
- <caption id="caption12" style="left:105px; top:592px; width:405px; height:20px; ">* 선택하신 상병의 암이 난소암인 경우 다음 구분을 선택하여 주십시오.</caption>
- <caption id="caption3" style="left:106px; top:179px; width:48px; height:20px; ">STAGE:</caption>
- <caption id="caption13" class="tit_2" style="left:5px; top:647px; width:121px; height:13px; ">투여단계 및 주기</caption>
- <caption id="caption4" style="left:264px; top:179px; width:20px; height:20px; ">T:</caption>
- <select1 id="radio1" ref="/root/temptnm/stageflag" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:106px; top:507px; width:130px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/stageflag/M0329">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <line id="line1" class="line_2" style="x1:2px; y1:502px; x2:507px; y2:502px; "/>
- <caption id="caption5" style="left:324px; top:179px; width:20px; height:20px; ">N:</caption>
- <caption id="caption15" style="left:105px; top:613px; width:50px; height:20px; ">GRADE:</caption>
- <select1 id="radio2" ref="/root/temptnm/cncrflagkind1" appearance="full" cellspacing="20" cols="2" overflow="visible" style="left:106px; top:559px; width:330px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/cncrflagkind1/M0328">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (model.getValue("/root/temptnm/cncrflagkind1")=="1"||model.getValue("/root/temptnm/cncrflagkind1")=="2"){
- model.setValue("/root/temptnm/cncrflag1","Y");
- model.refresh()
- }
- ]]>
- </script>
- </select1>
- <line id="line2" class="line_2" style="x1:2px; y1:529px; x2:507px; y2:529px; "/>
- <caption id="caption6" style="left:381px; top:179px; width:25px; height:20px; ">M:</caption>
- <input id="input1" ref="/root/temptnm/displaystage" class="input_default" visibility="hidden" style="left:35px; top:315px; width:100px; height:19px; font-weight:bold; "/>
- <caption id="caption16" class="cell_1" style="left:2px; top:126px; width:100px; height:23px; "/>
- <line id="line3" class="line_2" style="x1:2px; y1:583px; x2:507px; y2:583px; "/>
- <input id="input2" ref="/root/temptnm/tnmcd1" class="input_default" style="left:278px; top:179px; width:35px; height:19px; font-weight:bold; "/>
- <line id="line4" class="line_1" style="x1:2px; y1:662px; x2:507px; y2:662px; "/>
- <caption id="caption8" class="cell_1" style="left:2px; top:505px; width:100px; height:23px; ">구분</caption>
- <input id="input3" ref="/root/temptnm/tnmcd2" class="input_default" style="left:339px; top:179px; width:35px; height:19px; font-weight:bold; "/>
- <line id="line5" class="line_2" style="x1:2px; y1:124px; x2:507px; y2:124px; "/>
- <input id="input4" ref="/root/temptnm/tnmcd3" class="input_default" style="left:400px; top:179px; width:35px; height:19px; font-weight:bold; "/>
- <caption id="caption18" class="tit_2" style="left:5px; top:10px; width:121px; height:13px; ">Stage 분류</caption>
- <input id="input5" ref="/root/temptnm/inptimpsietcresnnm" class="input_search" style="left:223px; top:128px; width:283px; height:19px; "/>
- <datagrid id="datagrid1" nodeset="/root/result/savetnmlist" caption="진단코드^진단명" colsep="^" colwidth="100, 300" ellipsis="true" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:103px; top:29px; width:403px; height:94px; ">
- <col ref="icd10cd"/>
- <col ref="diagnm"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if( datagrid1.isCell(event.target) && datagrid1.row >= datagrid1.fixedRows ){
- fReqStageCls(model.getValue("/root/result/savetnmlist[" + datagrid1.row + "]/icd10cd"));
- fSetTempTnm(datagrid1.row);
- }
- ]]>
- </script>
- </datagrid>
- <bool id="bool1" checkvalue="Y,N" ref="/root/temptnm/inptimpsiflag" style="left:6px; top:127px; width:20px; height:20px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue ( "/root/temptnm/inptimpsiflag" ) == "Y" ) {
- input1.disabled = true;
- input2.disabled = true;
- input3.disabled = true;
- input4.disabled = true;
- radio1.disabled = true;
- radio4.disabled = true;
- combo2.disabled = false;
- combo6.disabled = true;
- model.setValue ( "/root/temptnm/stagecd", "" );
- model.setValue ( "/root/temptnm/tnmcd1", "" );
- model.setValue ( "/root/temptnm/tnmcd2", "" );
- model.setValue ( "/root/temptnm/tnmcd3" , "" );
- model.setValue ( "/root/temptnm/stageflag", "-" );
- model.setValue ( "/root/temptnm/attackflag", "-" );
- model.setValue ( "/root/init/displaystagecombo", "");
- } else {
- model.setValue ( "/root/temptnm/inptimpsiresncd", "-" );
- model.setValue ( "/root/temptnm/inptimpsietcresnnm", "" );
- model.setValue ( "/root/temptnm/inptimpsiflag", "N" );
- input1.disabled = false;
- radio1.disabled = false;
- radio4.disabled = false;
- combo2.disabled = true;
- if ( model.getValue ( "/root/temptnm/mataflag" ) == "N" ) { //N일때는 분류표에서 state 입력
- input1.disabled = true;
- input2.disabled = true;
- input3.disabled = true;
- input4.disabled = true;
- combo6.disabled = true;
- } else {
- input1.disabled = false;
- input2.disabled = false;
- input3.disabled = false;
- input4.disabled = false;
- combo6.disabled = false;
- }
- }
- if ( model.getValue ( "/root/temptnm/nptimpsiresncd" ) == "99" ) {
- input5.disabled = false;
- } else {
- input5.disabled = true;
- }
- model.refresh();
- ]]>
- </script>
- </bool>
- <caption id="caption17" style="left:27px; top:129px; width:65px; height:20px; ">입력불가</caption>
- <bool id="bool2" checkvalue="Y,N" ref="/root/temptnm/cncrflag1" style="left:2px; top:545px; width:25px; height:20px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if (model.getValue("/root/temptnm/cncrflag1")=="N"){
- model.setValue("/root/temptnm/cncrflagkind1","");
- model.refresh();
- }
- ]]>
- </script>
- </bool>
- <caption id="caption19" style="left:27px; top:546px; width:70px; height:20px; ">소세포암</caption>
- <bool id="bool3" checkvalue="Y,N" ref="/root/temptnm/cncrflag2" style="left:1px; top:600px; width:28px; height:20px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if ( model.getValue ( "/root/temptnm/cncrflag2" ) == "Y" ) {
- combo1.disabled = false;
- } else {
- combo1.disabled = true;
- model.setValue ( "/root/temptnm/cncrflagkind2", "-" );
- }
-
- ]]>
- </script>
- </bool>
- <caption id="caption20" style="left:27px; top:600px; width:55px; height:20px; ">난세포암</caption>
- <caption id="caption21" class="cell_1" style="left:2px; top:667px; width:100px; height:23px; ">투여요법</caption>
- <line id="line6" class="line_2" style="x1:2px; y1:691px; x2:507px; y2:691px; "/>
- <select1 id="radio3" ref="/root/tempcncr/drugthrpcd" appearance="full" cols="4" overflow="visible" style="left:106px; top:670px; width:100px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/drugthrpcd/M0331">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption14" class="cell_1" style="left:2px; top:693px; width:100px; height:23px; ">투여단계</caption>
- <select1 id="combo3" ref="/root/tempcncr/drugtims" appearance="minimal" style="left:105px; top:695px; width:85px; height:19px; ">
- <choices>
- <item>
- <label>1st-Line</label>
- <value>1</value>
- </item>
- <item>
- <label>2st-Line</label>
- <value>2</value>
- </item>
- <item>
- <label>3st-Line</label>
- <value>3</value>
- </item>
- <item>
- <label>4st-Line</label>
- <value>4</value>
- </item>
- <item>
- <label>5st-Line</label>
- <value>5</value>
- </item>
- <item>
- <label>6st-Line</label>
- <value>6</value>
- </item>
- </choices>
- </select1>
- <caption id="caption22" class="cell_1" style="left:193px; top:693px; width:63px; height:23px; ">투여주기1</caption>
- <caption id="caption23" class="cell_1" style="left:347px; top:693px; width:66px; height:23px; ">투여주기2</caption>
- <select1 id="combo4" ref="/root/tempcncr/drugpridstartno" appearance="minimal" style="left:259px; top:695px; width:85px; height:19px; ">
- <choices>
- <item>
- <label>1st-cycle</label>
- <value>1</value>
- </item>
- <item>
- <label>2st-cycle</label>
- <value>2</value>
- </item>
- <item>
- <label>3st-cycle</label>
- <value>3</value>
- </item>
- <item>
- <label>4st-cycle</label>
- <value>4</value>
- </item>
- <item>
- <label>5st-cycle</label>
- <value>5</value>
- </item>
- <item>
- <label>6st-cycle</label>
- <value>6</value>
- </item>
- <item>
- <label>7st-cycle</label>
- <value>7</value>
- </item>
- <item>
- <label>8st-cycle</label>
- <value>8</value>
- </item>
- <item>
- <label>9st-cycle</label>
- <value>9</value>
- </item>
- <item>
- <label>10st-cycle</label>
- <value>10</value>
- </item>
- <item>
- <label>11st-cycle</label>
- <value>11</value>
- </item>
- <item>
- <label>12st-cycle</label>
- <value>12</value>
- </item>
- </choices>
- </select1>
- <line id="line8" class="line_3" style="x1:2px; y1:717px; x2:507px; y2:717px; "/>
- <select1 id="combo5" ref="/root/tempcncr/drugpridendno" appearance="minimal" style="left:415px; top:695px; width:85px; height:19px; ">
- <choices>
- <item>
- <label>-</label>
- <value>-</value>
- </item>
- <item>
- <label>1st-cycle</label>
- <value>1</value>
- </item>
- <item>
- <label>2st-cycle</label>
- <value>2</value>
- </item>
- <item>
- <label>3st-cycle</label>
- <value>3</value>
- </item>
- <item>
- <label>4st-cycle</label>
- <value>4</value>
- </item>
- <item>
- <label>5st-cycle</label>
- <value>5</value>
- </item>
- <item>
- <label>6st-cycle</label>
- <value>6</value>
- </item>
- <item>
- <label>7st-cycle</label>
- <value>7</value>
- </item>
- <item>
- <label>8st-cycle</label>
- <value>8</value>
- </item>
- <item>
- <label>9st-cycle</label>
- <value>9</value>
- </item>
- <item>
- <label>10st-cycle</label>
- <value>10</value>
- </item>
- <item>
- <label>11st-cycle</label>
- <value>11</value>
- </item>
- </choices>
- </select1>
- <line id="line9" class="line_2" style="x1:2px; y1:150px; x2:507px; y2:150px; "/>
- <caption id="caption24" class="cell_1" style="left:2px; top:152px; width:100px; height:23px; ">발병 상태</caption>
- <select1 id="radio4" ref="/root/temptnm/attackflag" appearance="full" cols="2" overflow="visible" style="left:105px; top:155px; width:100px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>초발</label>
- <value>1</value>
- </item>
- <item>
- <label>재발</label>
- <value>2</value>
- </item>
- </choices>
- </select1>
- <button id="button3" class="btn2_letter3" style="left:435px; top:730px; width:53px; height:19px; ">
- <caption>닫 기</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.close();
- ]]>
- </script>
- </button>
- <select1 id="combo6" ref="/root/init/displaystagecombo" appearance="minimal" style="left:155px; top:179px; width:97px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/stage/row">
- <label ref="displaystage"/>
- <value ref="stage"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- model.setValue ( "/root/temptnm/stagecd" , combo6.value );
- model.setValue ( "/root/temptnm/displaystage" , combo6.label );
- model.refresh();
- ]]>
- </script>
- </select1>
- <button id="button4" class="btn2_letter6" style="left:10px; top:730px; width:53px; height:19px; ">
- <caption>이전등록조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- window.javascript.open("SPMMO08500", null, null, null, "SPMMO08500", "", "", "", false);
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|