12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * @(#)SPPIZ00600_상병및처방별치식.xrw
- * 수정이력
- * - 2007.05.08 / 최초작성 / 정주미
- *
- -->
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>상병별, 처방별 치식 입력</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <list1>
- <toothlist>
- <flag/>
- <cd/>
- <cdnm/>
- <rightupper/>
- <leftupper/>
- <rightlower/>
- <leftlower/>
- <orddd/>
- <toot/>
- </toothlist>
- </list1>
- <list2>
- <toothapplist>
- <chos/>
- <flag/>
- <cd/>
- <cdnm/>
- <rightupper/>
- <leftupper/>
- <rightlower/>
- <leftlower/>
- <orddd/>
- <toot/>
- <row/>
- </toothapplist>
- </list2>
- </main>
- <send>
- <toothapplist/>
- </send>
- <init>
- <termlist>
- <refterm>3</refterm>
- </termlist>
- </init>
- <hidden>
- <cond>
- <pid/>
- <indd/>
- <cretno/>
- <toot/>
- <clamym/>
- <clamdg/>
- <pidsn/>
- <flag/>
- <list/>
- </cond>
- <rslt>
- <toothYN/>
- <toot/>
- <toot1/>
- <list/>
- </rslt>
- <chkflag>
- <scndtooth>
- <rightupperA/>
- <leftupperA/>
- <rightlowerA/>
- <leftlowerA/>
- <trisectionA1/>
- <trisectionA2/>
- <trisectionA3/>
- <trisectionA4/>
- <trisectionA5/>
- <trisectionA6/>
- </scndtooth>
- <milktooth>
- <rightupperC/>
- <leftupperC/>
- <rightlowerC/>
- <leftlowerC/>
- <trisectionC1/>
- <trisectionC2/>
- <trisectionC3/>
- <trisectionC4/>
- <trisectionC5/>
- <trisectionC6/>
- </milktooth>
- </chkflag>
- <selectedtooth>
- <editoothnum>
- <rightupper/>
- <leftupper/>
- <rightlower/>
- <leftlower/>
- </editoothnum>
- <selectednum>
- <rightupper/>
- <leftupper/>
- <rightlower/>
- <leftlower/>
- </selectednum>
- </selectedtooth>
- </hidden>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- fInitialize(); // 화면을 초기화한다.
- fCheckAuth(); // 화면 권한을 설정한다.
- ]]>
- </script>
- <submission id="TRPIZ00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/hidden/cond" resultref="/root/main"/>
- <submission id="TXPIZ00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/temp"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript">
- <![CDATA[
- var teethArray = new Array(32);
-
- // 화면 권한을 설정한다.
- function fCheckAuth() {
- /*
- if (getAuth() == "") { // (common.js) 현재 화면의 권한 정보를 확인
- // 메뉴에서 열리는 화면이 아닌 경우 메뉴가 없는 Local Test를 위해 임시로 설정함
- model.setValue("/root/hidden/properties/auth", "11100000"); // RXP권한이 모두 있는 경우
- }
- */
- var xAuth = !checkAuth("X");
- btn_confirm.disabled = xAuth; // 확인
- btn_unselect.disabled = xAuth;
- btn_allscndtooth.disabled = xAuth;
- btn_allmilktooth.disabled = xAuth;
- trisectionA1.disabled = xAuth;
- trisectionA2.disabled = xAuth;
- trisectionA3.disabled = xAuth;
- trisectionA4.disabled = xAuth;
- trisectionA5.disabled = xAuth;
- trisectionA6.disabled = xAuth;
- trisectionC1.disabled = xAuth;
- trisectionC2.disabled = xAuth;
- trisectionC3.disabled = xAuth;
- trisectionC4.disabled = xAuth;
- trisectionC5.disabled = xAuth;
- trisectionC6.disabled = xAuth;
- rightupperA.disabled = xAuth;
- rightupperC.disabled = xAuth;
- rightlowerC.disabled = xAuth;
- rightlowerA.disabled = xAuth;
- leftupperA.disabled = xAuth;
- leftupperC.disabled = xAuth;
- leftlowerC.disabled = xAuth;
- leftlowerA.disabled = xAuth;
- /*
- // 이전 명세서 조회에서 open 시에 선택되지 않기 위해 각 치식버튼에 권한을 설정해 보았으나
- // ev:event="onmousedown"로 인해 선택상태를 변경할 수 있으며
- // 이전 명세서 화면이 아닌 일반 심사화면에서 사용시에 초기화 상태가 선택된 상태가 되는 문제점이 있음
- buttonA1.disabled = xAuth;
- buttonA2.disabled = xAuth;
- buttonA3.disabled = xAuth;
- buttonA4.disabled = xAuth;
- buttonA5.disabled = xAuth;
- buttonA6.disabled = xAuth;
- buttonA7.disabled = xAuth;
- buttonA8.disabled = xAuth;
- buttonA9.disabled = xAuth;
- buttonA10.disabled = xAuth;
- buttonA11.disabled = xAuth;
- buttonA12.disabled = xAuth;
- buttonA13.disabled = xAuth;
- buttonA14.disabled = xAuth;
- buttonA15.disabled = xAuth;
- buttonA16.disabled = xAuth;
- buttonA17.disabled = xAuth;
- buttonA18.disabled = xAuth;
- buttonA19.disabled = xAuth;
- buttonA20.disabled = xAuth;
- buttonA21.disabled = xAuth;
- buttonA22.disabled = xAuth;
- buttonA23.disabled = xAuth;
- buttonA24.disabled = xAuth;
- buttonA25.disabled = xAuth;
- buttonA26.disabled = xAuth;
- buttonA27.disabled = xAuth;
- buttonA28.disabled = xAuth;
- buttonA29.disabled = xAuth;
- buttonA30.disabled = xAuth;
- buttonA31.disabled = xAuth;
- buttonA32.disabled = xAuth;
- */
- }
- // 화면을 초기화한다.
- function fInitialize() {
-
- //copyNodeType("/root/main/list2","/root/hidden/cond/list","replace");
- //model.refresh();
-
- model.removeNodeset("/root/main/list1/toothlist");
- //if (checkOpener()) { // (common.js) 자신을 Open한 opener의 현재 UID가 자신을 open한 시점의 UID와 비교하여 변경되었는지 여부를 반환
- // [2007.05.16] 테스트를 위해 pid 체크를 임시로 주석처리함
- var pid = model.getValue("/root/hidden/cond/pid");
-
- if (pid) {
- // 20100416 조회기간 추가
- model.makeValue("/root/hidden/cond/refterm",model.getValue("/root/init/termlist/refterm"));
-
- submit("TRPIZ00601", false);
- var toothlistcnt = getNodesetCount("/root/main/list1/toothlist");
- if (toothlistcnt > 0 ) {
- var milktoothstr = "ABCDE000";
- var toothList = instance1.selectSingleNode("/root/main/list1");
- var toothNode = toothList.childNodes; //root/main/list1/toothlist
- for (var i = 1; i <= toothNode.length; i++) {
- var toot = model.getValue("/root/main/list1/toothlist[" + i + "]/toot");
- var subTootStr = "";
- for (var inx = 0; inx < toot.length; inx++) {
- var tootnum = toot.substr(inx,1);
- if (tootnum == "*") { // 선택된 영구치의 경우 1~8 사이 숫자로 표시한다.
- if (inx < 8) {
- subTootStr += (8 - inx);
- }
- else if (inx > 7 && inx < 16) {
- subTootStr += (inx - 7);
- }
- else if (inx > 15 && inx < 24) {
- subTootStr += (24 - inx);
- } else {
- subTootStr += (inx - 23);
- }
- } else if (tootnum == "#") { // 선택된 유치의 경우 A~E 사이 알파벳으로 표시한다.
- if (inx < 8) {
- subTootStr += milktoothstr.charAt(7 - inx);
- }
- else if (inx > 7 && inx < 16) {
- subTootStr += milktoothstr.charAt(inx - 8);
- }
- else if (inx > 15 && inx < 24) {
- subTootStr += milktoothstr.charAt(23 - inx);
- } else {
- subTootStr += milktoothstr.charAt(inx - 24);
- }
- } else { // if (tootnum == "0") 선택되지 않은 경우 공백으로 처리한다.
- subTootStr += " ";
- }
- }
- model.setValue("/root/main/list1/toothlist[" + i + "]/rightupper", subTootStr.substr(0, 8));
- model.setValue("/root/main/list1/toothlist[" + i + "]/leftupper", subTootStr.substr(8, 8));
- model.setValue("/root/main/list1/toothlist[" + i + "]/rightlower", subTootStr.substr(16, 8));
- model.setValue("/root/main/list1/toothlist[" + i + "]/leftlower", subTootStr.substr(24, 8));
- }
- }
-
- var toothapplistcnt = getNodesetCount("/root/main/list2/toothapplist");
- if (toothapplistcnt > 0 ) {
- var milktoothstr = "ABCDE000";
- var toothList = instance1.selectSingleNode("/root/main/list2");
- var toothNode = toothList.childNodes; //root/main/list1/toothlist
- for (var i = 1; i <= toothNode.length; i++) {
- var toot = model.getValue("/root/main/list2/toothapplist[" + i + "]/toot");
- var subTootStr = "";
- for (var inx = 0; inx < toot.length; inx++) {
- var tootnum = toot.substr(inx,1);
- if (tootnum == "*") { // 선택된 영구치의 경우 1~8 사이 숫자로 표시한다.
- if (inx < 8) {
- subTootStr += (8 - inx);
- }
- else if (inx > 7 && inx < 16) {
- subTootStr += (inx - 7);
- }
- else if (inx > 15 && inx < 24) {
- subTootStr += (24 - inx);
- } else {
- subTootStr += (inx - 23);
- }
- } else if (tootnum == "#") { // 선택된 유치의 경우 A~E 사이 알파벳으로 표시한다.
- if (inx < 8) {
- subTootStr += milktoothstr.charAt(7 - inx);
- }
- else if (inx > 7 && inx < 16) {
- subTootStr += milktoothstr.charAt(inx - 8);
- }
- else if (inx > 15 && inx < 24) {
- subTootStr += milktoothstr.charAt(23 - inx);
- } else {
- subTootStr += milktoothstr.charAt(inx - 24);
- }
- } else { // if (tootnum == "0") 선택되지 않은 경우 공백으로 처리한다.
- subTootStr += " ";
- }
- }
- model.setValue("/root/main/list2/toothapplist[" + i + "]/rightupper", subTootStr.substr(0, 8));
- model.setValue("/root/main/list2/toothapplist[" + i + "]/leftupper", subTootStr.substr(8, 8));
- model.setValue("/root/main/list2/toothapplist[" + i + "]/rightlower", subTootStr.substr(16, 8));
- model.setValue("/root/main/list2/toothapplist[" + i + "]/leftlower", subTootStr.substr(24, 8));
- }
-
- copyNodeType("/root/main/list2","/root/hidden/cond/list","before");
- } else {
- copyNodeType("/root/main/list2","/root/hidden/cond/list","replace");
- }
-
- model.refresh();
-
- }
-
- var openerteeth = model.getValue("/root/hidden/cond/toot");
- fSetToothInput(openerteeth); // 입력된 치식 번호를 img에 맞춰 표시한다.
- }
-
- // 입력된 치식 번호를 img에 맞춰 표시한다.
- function fSetToothInput(openerteeth) {
- if (openerteeth) {
- if (openerteeth == "-" || openerteeth.length != 32) { // 치식 해당사항 없음의 경우임
- for (var i = 0; i < 32; i++) {
- teethArray[i] = "0";
-
- var btnInx = i + 1;
- var btnObj = document.controls("buttonC"+btnInx);
- if (btnObj != null) {
- btnObj.disabled = true;
- }
- btnObj = document.controls("buttonA"+btnInx);
- btnObj.disabled = true;
- }
- model.setValue("/root/hidden/selectedtooth/editoothnum/rightupper", "00000000");
- model.setValue("/root/hidden/selectedtooth/editoothnum/leftupper", "00000000");
- model.setValue("/root/hidden/selectedtooth/editoothnum/rightlower", "00000000");
- model.setValue("/root/hidden/selectedtooth/editoothnum/leftlower", "00000000");
- model.refresh();
- return;
- }
- for (var i = 0; i < openerteeth.length; i++) {
- var subStr = openerteeth.substr(i,1);
- teethArray[i] = subStr;
-
- var btnInx = i + 1;
- if (subStr == "#") { // 유치에 대한 선택을 초기 설정한다.
- var btnObj = document.controls("buttonC"+btnInx);
- if (btnObj != null) {
- btnObj.disabled = false;
- }
- btnObj = document.controls("buttonA"+btnInx);
- btnObj.disabled = true;
- }
- else if (subStr == "*") { // 영구치에 대한 선택을 초기 설정한다.
- var btnObj = document.controls("buttonC"+btnInx);
- if (btnObj != null) {
- btnObj.disabled = true;
- }
- btnObj = document.controls("buttonA"+btnInx);
- btnObj.disabled = false;
- } else {
- var btnObj = document.controls("buttonC"+btnInx);
- if (btnObj != null) {
- btnObj.disabled = true;
- }
- btnObj = document.controls("buttonA"+btnInx);
- btnObj.disabled = true;
- }
- }
- fSetTootCd(); // 선택된 결과를 치식번호 Output 컨트롤에 표시한다.
- } else { // opener에서 전달받은 치식 값이 null 인 경우
- for (var i = 0; i < 32; i++) {
- teethArray[i] = "0";
-
- var btnInx = i + 1;
- var btnObj = document.controls("buttonC"+btnInx);
- if (btnObj != null) {
- btnObj.disabled = true;
- }
- btnObj = document.controls("buttonA"+btnInx);
- btnObj.disabled = true;
- }
- model.setValue("/root/hidden/selectedtooth/editoothnum/rightupper", "00000000");
- model.setValue("/root/hidden/selectedtooth/editoothnum/leftupper", "00000000");
- model.setValue("/root/hidden/selectedtooth/editoothnum/rightlower", "00000000");
- model.setValue("/root/hidden/selectedtooth/editoothnum/leftlower", "00000000");
- model.refresh();
- }
- }
-
- // 영구치를 선택한 경우
- function fClickScndTooth(btnInx) {
- fSelectTooth("*", "#", btnInx); // 영구치로 선택을 설정한다.
- }
- // 유치를 선택한 경우
- function fClickMilkTooth(btnInx) {
- fSelectTooth("#", "*", btnInx);
- }
- function fSelectTooth(selchar, delchar, btnInx) {
- var btnObj = document.controls(event.target);
- btnInx--;
- var teethVal = teethArray[btnInx];
- if (teethVal == "0") { // 선택되지 않은 상태였음
- btnObj.disabled = false;
- teethArray[btnInx] = selchar;
- } else if (teethVal == selchar) { // 기존에 동일한 치아가 선택되어 있어, 선택을 취소하는 경우임
- btnObj.disabled = true;
- teethArray[btnInx] = "0";
- } else if (teethVal == delchar) { // 치식번호가 동일한 영구치(유치)가 선택된 경우, 기존 선택을 취소하고 설정한다.
- btnObj.disabled = false;
- teethArray[btnInx++] = selchar;
- if (delchar == "*") {
- btnObj = document.controls("buttonA" + btnInx);
- btnObj.disabled = true;
- } else if (delchar == "#") {
- btnObj = document.controls("buttonC" + btnInx);
- btnObj.disabled = true;
- }
- }
- fSetTootCd(); // 선택된 결과를 치식번호 Output 컨트롤에 표시한다.
- }
- // 선택된 결과를 치식번호 Output 컨트롤에 표시한다.
- function fSetTootCd() {
- var milktoothstr = "ABCDE000";
- var subTootStr = "";
-
- var tmpStr = "";
- for (var i = 0; i < 32; i++) {
- tmpStr += teethArray[i];
-
- if (teethArray[i] == "*") {
- if (i < 8) {
- subTootStr += (8 - i);
- }
- else if (i > 7 && i < 16) {
- subTootStr += (i - 7);
- }
- else if (i > 15 && i < 24) {
- subTootStr += (24 - i);
- } else {
- subTootStr += (i - 23);
- }
- } else if (teethArray[i] == "#") {
- if (i < 8) {
- subTootStr += milktoothstr.charAt(7 - i);
- }
- else if (i > 7 && i < 16) {
- subTootStr += milktoothstr.charAt(i - 8);
- }
- else if (i > 15 && i < 24) {
- subTootStr += milktoothstr.charAt(23 - i);
- } else {
- subTootStr += milktoothstr.charAt(i - 24);
- }
- } else { // if (teethArray[i] == "0")
- subTootStr += " ";
- }
- }
- // 명세서에 표시되는 EDI청구용 치식 표기를 설정한다.
- model.setValue("/root/hidden/selectedtooth/editoothnum/rightupper", tmpStr.substr(0, 8));
- model.setValue("/root/hidden/selectedtooth/editoothnum/leftupper", tmpStr.substr(8, 8));
- model.setValue("/root/hidden/selectedtooth/editoothnum/rightlower", tmpStr.substr(16, 8));
- model.setValue("/root/hidden/selectedtooth/editoothnum/leftlower", tmpStr.substr(24, 8));
- // 현재 치식 입력화면에서 보여지는 번호를 표시한다.
- model.setValue("root/hidden/selectedtooth/selectednum/rightupper", subTootStr.substr(0, 8));
- model.setValue("/root/hidden/selectedtooth/selectednum/leftupper", subTootStr.substr(8, 8));
- model.setValue("/root/hidden/selectedtooth/selectednum/rightlower", subTootStr.substr(16, 8));
- model.setValue("/root/hidden/selectedtooth/selectednum/leftlower", subTootStr.substr(24, 8));
- model.refresh();
- }
-
- // "전체취소" Btn
- function fUnSelectAllTooth() {
- model.resetInstanceNode("/root/hidden/chkflag/scndtooth");
- model.resetInstanceNode("/root/hidden/chkflag/milktooth");
- model.resetInstanceNode("/root/hidden/selectedtooth/selectednum");
- for (var i = 0; i < 32; i++) {
- var btnInx = i + 1;
- var btnObj = document.controls("buttonC"+btnInx); // 유치에 대한 선택을 초기화 한다.
- if (btnObj != null) {
- btnObj.disabled = true;
- }
- btnObj = document.controls("buttonA"+btnInx); // 영구치에 대한 선택을 초기화 한다.
- btnObj.disabled = true;
- teethArray[i] = "0";
- }
- model.setValue("/root/hidden/selectedtooth/editoothnum/rightupper", "00000000");
- model.setValue("/root/hidden/selectedtooth/editoothnum/leftupper", "00000000");
- model.setValue("/root/hidden/selectedtooth/editoothnum/rightlower", "00000000");
- model.setValue("/root/hidden/selectedtooth/editoothnum/leftlower", "00000000");
- model.refresh();
- }
-
- // "전악 (영구치)" Btn
- function fSelectAllScndTooth() {
- model.resetInstanceNode("/root/hidden/chkflag/milktooth");
- model.setValue("/root/hidden/chkflag/scndtooth/rightupperA", "Y");
- model.setValue("/root/hidden/chkflag/scndtooth/leftupperA", "Y");
- model.setValue("/root/hidden/chkflag/scndtooth/rightlowerA", "Y");
- model.setValue("/root/hidden/chkflag/scndtooth/leftlowerA", "Y");
- model.setValue("/root/hidden/chkflag/scndtooth/trisectionA1", "Y");
- model.setValue("/root/hidden/chkflag/scndtooth/trisectionA2", "Y");
- model.setValue("/root/hidden/chkflag/scndtooth/trisectionA3", "Y");
- model.setValue("/root/hidden/chkflag/scndtooth/trisectionA4", "Y");
- model.setValue("/root/hidden/chkflag/scndtooth/trisectionA5", "Y");
- model.setValue("/root/hidden/chkflag/scndtooth/trisectionA6", "Y");
-
- for (var i = 0; i < 32; i++) {
- var btnInx = i + 1;
- // 유치에 대한 선택을 초기화 한다.
- var btnObj = document.controls("buttonC"+btnInx);
- if (btnObj != null) {
- btnObj.disabled = true;
- }
- // 영구치에 대한 선택을 설정한다.
- btnObj = document.controls("buttonA"+btnInx);
- btnObj.disabled = false;
- teethArray[i] = "*";
- }
- fSetTootCd(); // 선택된 결과를 치식번호 Output 컨트롤에 표시한다.
- }
- // "전악 (유치)" Btn
- function fSelectAllMilkTooth() {
- model.resetInstanceNode("/root/hidden/chkflag/scndtooth");
- model.setValue("/root/hidden/chkflag/milktooth/rightupperC", "Y");
- model.setValue("/root/hidden/chkflag/milktooth/leftupperC", "Y");
- model.setValue("/root/hidden/chkflag/milktooth/rightlowerC", "Y");
- model.setValue("/root/hidden/chkflag/milktooth/leftlowerC", "Y");
- model.setValue("/root/hidden/chkflag/milktooth/trisectionC1", "Y");
- model.setValue("/root/hidden/chkflag/milktooth/trisectionC2", "Y");
- model.setValue("/root/hidden/chkflag/milktooth/trisectionC3", "Y");
- model.setValue("/root/hidden/chkflag/milktooth/trisectionC4", "Y");
- model.setValue("/root/hidden/chkflag/milktooth/trisectionC5", "Y");
- model.setValue("/root/hidden/chkflag/milktooth/trisectionC6", "Y");
-
- for (var i = 0; i < 32; i++) {
- var btnInx = i + 1;
- // 영구치에 대한 선택을 초기화 한다.
- var btnObj = document.controls("buttonA"+btnInx);
- btnObj.disabled = true;
- // 유치에 대한 선택을 설정한다.
- btnObj = document.controls("buttonC"+btnInx);
- if (btnObj != null) {
- btnObj.disabled = false;
- teethArray[i] = "#";
- } else {
- teethArray[i] = "0";
- }
- }
- fSetTootCd(); // 선택된 결과를 치식번호 Output 컨트롤에 표시한다.
- }
- // 지정된 영역의 영구치를 선택한다.
- function fSelectToothGroupA(from, to) {
- var chkObj = document.controls(event.target);
- var chkId = chkObj.attribute("id");
- var chkFlag = "/root/hidden/chkflag/scndtooth/"+chkId;
- var isSelected = model.getValue(chkFlag);
-
- if (isSelected == "") {
- model.setValue(chkFlag, "Y");
- for (var i = from; i < to; i++) {
- var btnInx = i + 1;
- // 유치에 대한 선택을 초기화 한다.
- var btnObj = document.controls("buttonC"+btnInx);
- if (btnObj != null) {
- btnObj.disabled = true;
- }
- // 영구치에 대한 선택을 설정한다.
- btnObj = document.controls("buttonA"+btnInx);
- btnObj.disabled = false;
- teethArray[i] = "*";
- }
- } else {
- model.resetInstanceNode(chkFlag);
- for (var i = from; i < to; i++) {
- var btnInx = i + 1;
- // 영구치에 대한 선택을 취소한다.
- var btnObj = document.controls("buttonA"+btnInx);
- btnObj.disabled = true;
- teethArray[i] = "0";
- }
- }
- fSetTootCd(); // 선택된 결과를 치식번호 Output 컨트롤에 표시한다.
- }
- // 지정된 영역의 유치를 선택한다.
- function fSelectToothGroupC(from, to) {
- var chkObj = document.controls(event.target);
- var chkId = chkObj.attribute("id");
- var chkFlag = "/root/hidden/chkflag/milktooth/"+chkId;
- var isSelected = model.getValue(chkFlag);
-
- if (isSelected == "") {
- model.setValue(chkFlag, "Y");
- for (var i = from; i < to; i++) {
- var btnInx = i + 1;
- // 영구치에 대한 선택을 초기화 한다.
- var btnObj = document.controls("buttonA"+btnInx);
- btnObj.disabled = true;
- // 유치에 대한 선택을 설정한다.
- btnObj = document.controls("buttonC"+btnInx);
- if (btnObj != null) {
- btnObj.disabled = false;
- teethArray[i] = "#";
- } else {
- teethArray[i] = "0";
- }
- }
- } else {
- model.resetInstanceNode(chkFlag);
- for (var i = from; i < to; i++) {
- var btnInx = i + 1;
- // 유치에 대한 선택을 취소한다.
- var btnObj = document.controls("buttonC"+btnInx);
- if (btnObj != null) {
- btnObj.disabled = true;
- }
- teethArray[i] = "0";
- }
- }
- fSetTootCd(); // 선택된 결과를 치식번호 Output 컨트롤에 표시한다.
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body pagewidth="741" pageheight="772" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_biz" scroll="auto" style="left:0px; top:0px; width:724px; height:745px; ">
- <caption id="caption0" class="tit_2" style="left:5px; top:10px; width:74px; height:13px; ">치식 입력</caption>
- <line id="line3" class="line_1" style="x1:0px; y1:25px; x2:724px; y2:25px; "/>
- <caption id="caption4" class="cell_1" style="left:0px; top:30px; width:75px; height:23px; ">EDI 치식</caption>
- <output id="opt_toot1" ref="/root/hidden/selectedtooth/editoothnum/rightupper" class="output_fix" style="left:78px; top:31px; width:58px; height:19px; "/>
- <output id="opt_toot2" ref="/root/hidden/selectedtooth/editoothnum/leftupper" class="output_fix" style="left:139px; top:31px; width:58px; height:19px; "/>
- <output id="opt_toot3" ref="/root/hidden/selectedtooth/editoothnum/rightlower" class="output_fix" style="left:200px; top:31px; width:58px; height:19px; "/>
- <output id="opt_toot4" ref="/root/hidden/selectedtooth/editoothnum/leftlower" class="output_fix" style="left:261px; top:31px; width:58px; height:19px; "/>
- <caption id="caption2" class="cell_1" style="left:377px; top:30px; width:75px; height:23px; ">선택된 번호</caption>
- <output id="opt_rightupper" ref="/root/hidden/selectedtooth/selectednum/rightupper" class="output_fix" style="left:455px; top:31px; width:65px; height:19px; "/>
- <output id="opt_leftupper" ref="/root/hidden/selectedtooth/selectednum/leftupper" class="output_fix" style="left:523px; top:31px; width:65px; height:19px; "/>
- <output id="opt_rightlower" ref="/root/hidden/selectedtooth/selectednum/rightlower" class="output_fix" style="left:656px; top:31px; width:65px; height:19px; "/>
- <output id="opt_leftlower" ref="/root/hidden/selectedtooth/selectednum/leftlower" class="output_fix" style="left:590px; top:31px; width:65px; height:19px; "/>
- <line id="line45" class="line_2" style="x1:0px; y1:52px; x2:574px; y2:52px; "/>
- <shape id="rectangle1" class="roundrect_group" appearance="rectangle" style="left:0px; top:52px; width:724px; height:308px; "/>
- <line id="line5" class="line_2" style="x1:481px; y1:62px; x2:481px; y2:350px; "/>
- <line id="line4" class="line_2" style="x1:243px; y1:62px; x2:243px; y2:350px; "/>
- <line id="line1" class="line_3" style="x1:362px; y1:113px; x2:362px; y2:299px; "/>
- <line id="line2" class="line_3" style="x1:60px; y1:206px; x2:664px; y2:206px; "/>
- <button id="btn_unselect" class="btn2_letter4" style="left:482px; top:5px; width:64px; height:19px; ">
- <caption>전체취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fUnSelectAllTooth();
- ]]>
- </script>
- </button>
- <button id="btn_allscndtooth" class="btn2_letter6" style="left:549px; top:5px; width:86px; height:19px; ">
- <caption>전악 (영구치)</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSelectAllScndTooth();
- ]]>
- </script>
- </button>
- <button id="btn_allmilktooth" class="btn2_letter6" style="left:638px; top:5px; width:86px; height:19px; ">
- <caption>전악 (유치)</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSelectAllMilkTooth();
- ]]>
- </script>
- </button>
- <button id="buttonA8" class="btnt_left_top_1" style="left:319px; top:113px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickScndTooth(8);
- ]]>
- </script>
- </button>
- <button id="buttonA7" class="btnt_left_top_2" style="left:282px; top:113px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickScndTooth(7);
- ]]>
- </script>
- </button>
- <button id="buttonA6" class="btnt_left_top_3" style="left:245px; top:113px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickScndTooth(6);
- ]]>
- </script>
- </button>
- <button id="buttonA5" class="btnt_left_top_4" style="left:208px; top:113px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickScndTooth(5);
- ]]>
- </script>
- </button>
- <button id="buttonA4" class="btnt_left_top_5" style="left:171px; top:113px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickScndTooth(4);
- ]]>
- </script>
- </button>
- <button id="buttonA3" class="btnt_left_top_6" style="left:134px; top:113px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickScndTooth(3);
- ]]>
- </script>
- </button>
- <button id="buttonA2" class="btnt_left_top_7" style="left:97px; top:113px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickScndTooth(2);
- ]]>
- </script>
- </button>
- <button id="buttonA1" class="btnt_left_top_8" style="left:60px; top:113px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickScndTooth(1);
- ]]>
- </script>
- </button>
- <button id="buttonA9" class="btnt_right_top_1" style="left:370px; top:113px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickScndTooth(9);
- ]]>
- </script>
- </button>
- <button id="buttonA10" class="btnt_right_top_2" style="left:407px; top:113px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickScndTooth(10);
- ]]>
- </script>
- </button>
- <button id="buttonA11" class="btnt_right_top_3" style="left:444px; top:113px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickScndTooth(11);
- ]]>
- </script>
- </button>
- <button id="buttonA12" class="btnt_right_top_4" style="left:481px; top:113px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickScndTooth(12);
- ]]>
- </script>
- </button>
- <button id="buttonA13" class="btnt_right_top_5" style="left:518px; top:113px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickScndTooth(13);
- ]]>
- </script>
- </button>
- <button id="buttonA14" class="btnt_right_top_6" style="left:555px; top:113px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickScndTooth(14);
- ]]>
- </script>
- </button>
- <button id="buttonA15" class="btnt_right_top_7" style="left:592px; top:113px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickScndTooth(15);
- ]]>
- </script>
- </button>
- <button id="buttonA16" class="btnt_right_top_8" style="left:629px; top:113px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickScndTooth(16);
- ]]>
- </script>
- </button>
- <button id="buttonA24" class="btnt_left_bottom_1" style="left:319px; top:259px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickScndTooth(24);
- ]]>
- </script>
- </button>
- <button id="buttonA23" class="btnt_left_bottom_2" style="left:282px; top:259px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickScndTooth(23);
- ]]>
- </script>
- </button>
- <button id="buttonA22" class="btnt_left_bottom_3" style="left:245px; top:259px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickScndTooth(22);
- ]]>
- </script>
- </button>
- <button id="buttonA21" class="btnt_left_bottom_4" style="left:208px; top:259px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickScndTooth(21);
- ]]>
- </script>
- </button>
- <button id="buttonA20" class="btnt_left_bottom_5" style="left:171px; top:259px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickScndTooth(20);
- ]]>
- </script>
- </button>
- <button id="buttonA19" class="btnt_left_bottom_6" style="left:134px; top:259px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickScndTooth(19);
- ]]>
- </script>
- </button>
- <button id="buttonA18" class="btnt_left_bottom_7" style="left:97px; top:259px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickScndTooth(18);
- ]]>
- </script>
- </button>
- <button id="buttonA17" class="btnt_left_bottom_8" style="left:60px; top:259px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickScndTooth(17);
- ]]>
- </script>
- </button>
- <button id="buttonA25" class="btnt_right_bottom_1" style="left:370px; top:259px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickScndTooth(25);
- ]]>
- </script>
- </button>
- <button id="buttonA26" class="btnt_right_bottom_2" style="left:407px; top:259px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickScndTooth(26);
- ]]>
- </script>
- </button>
- <button id="buttonA27" class="btnt_right_bottom_3" style="left:444px; top:259px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickScndTooth(27);
- ]]>
- </script>
- </button>
- <button id="buttonA28" class="btnt_right_bottom_4" style="left:481px; top:259px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickScndTooth(28);
- ]]>
- </script>
- </button>
- <button id="buttonA29" class="btnt_right_bottom_5" style="left:518px; top:259px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickScndTooth(29);
- ]]>
- </script>
- </button>
- <button id="buttonA30" class="btnt_right_bottom_6" style="left:555px; top:259px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickScndTooth(30);
- ]]>
- </script>
- </button>
- <button id="buttonA31" class="btnt_right_bottom_7" style="left:592px; top:259px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickScndTooth(31);
- ]]>
- </script>
- </button>
- <button id="buttonA32" class="btnt_right_bottom_8" style="left:629px; top:259px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickScndTooth(32);
- ]]>
- </script>
- </button>
- <button id="buttonC8" class="btnt_left_top_A" style="left:319px; top:158px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickMilkTooth(8);
- ]]>
- </script>
- </button>
- <button id="buttonC7" class="btnt_left_top_B" style="left:282px; top:158px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickMilkTooth(7);
- ]]>
- </script>
- </button>
- <button id="buttonC6" class="btnt_left_top_C" style="left:245px; top:158px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickMilkTooth(6);
- ]]>
- </script>
- </button>
- <button id="buttonC5" class="btnt_left_top_D" style="left:208px; top:158px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickMilkTooth(5);
- ]]>
- </script>
- </button>
- <button id="buttonC4" class="btnt_left_top_E" style="left:171px; top:158px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickMilkTooth(4);
- ]]>
- </script>
- </button>
- <button id="buttonC9" class="btnt_right_top_A" style="left:370px; top:158px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickMilkTooth(9);
- ]]>
- </script>
- </button>
- <button id="buttonC10" class="btnt_right_top_B" style="left:407px; top:158px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickMilkTooth(10);
- ]]>
- </script>
- </button>
- <button id="buttonC11" class="btnt_right_top_C" style="left:444px; top:158px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickMilkTooth(11);
- ]]>
- </script>
- </button>
- <button id="buttonC12" class="btnt_right_top_D" style="left:481px; top:158px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickMilkTooth(12);
- ]]>
- </script>
- </button>
- <button id="buttonC13" class="btnt_right_top_E" style="left:518px; top:158px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickMilkTooth(13);
- ]]>
- </script>
- </button>
- <button id="buttonC24" class="btnt_left_bottom_A" style="left:319px; top:214px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickMilkTooth(24);
- ]]>
- </script>
- </button>
- <button id="buttonC23" class="btnt_left_bottom_B" style="left:282px; top:214px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickMilkTooth(23);
- ]]>
- </script>
- </button>
- <button id="buttonC22" class="btnt_left_bottom_C" style="left:245px; top:214px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickMilkTooth(22);
- ]]>
- </script>
- </button>
- <button id="buttonC21" class="btnt_left_bottom_D" style="left:208px; top:214px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickMilkTooth(21);
- ]]>
- </script>
- </button>
- <button id="buttonC20" class="btnt_left_bottom_E" style="left:171px; top:214px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickMilkTooth(20);
- ]]>
- </script>
- </button>
- <button id="buttonC25" class="btnt_right_bottom_A" style="left:370px; top:214px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickMilkTooth(25);
- ]]>
- </script>
- </button>
- <button id="buttonC26" class="btnt_right_bottom_B" style="left:407px; top:214px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickMilkTooth(26);
- ]]>
- </script>
- </button>
- <button id="buttonC27" class="btnt_right_bottom_C" style="left:444px; top:214px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickMilkTooth(27);
- ]]>
- </script>
- </button>
- <button id="buttonC28" class="btnt_right_bottom_D" style="left:481px; top:214px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickMilkTooth(28);
- ]]>
- </script>
- </button>
- <button id="buttonC29" class="btnt_right_bottom_E" style="left:518px; top:214px; width:35px; height:40px; ">
- <caption/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- fClickMilkTooth(29);
- ]]>
- </script>
- </button>
- <caption id="caption1" class="tit_2" style="left:5px; top:370px; width:100px; height:13px; ">치식 이력</caption>
- <line id="line6" class="line_1" style="x1:0px; y1:385px; x2:724px; y2:385px; "/>
- <datagrid id="grd_toothapplist" nodeset="/root/main/list2/toothapplist" caption="선택^구분^코드^코드명^우상(1)^좌상(2)^우하(4)^좌하(3)^진료일^전체치식^row^환자 등록번호^입원일자^환자 일련번호^기관코드^실시일자^계산 일련번호^수가별 일련번호" colsep="^" colwidth="30, 30, 97, 140, 59, 59, 59, 59, 80, 84, 100, 100, 100, 100, 100, 100, 100, 100" ellipsis="true" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:390px; width:724px; height:150px; ">
- <col ref="chos" type="checkbox"/>
- <col ref="flag"/>
- <col ref="cd"/>
- <col ref="cdnm"/>
- <col ref="rightupper"/>
- <col ref="leftupper"/>
- <col ref="rightlower"/>
- <col ref="leftlower"/>
- <col ref="orddd" format="yyyy-mm-dd"/>
- <col ref="toot"/>
- <col ref="row" visibility="hidden"/>
- <col ref="pid" visibility="hidden"/>
- <col ref="indd" visibility="hidden"/>
- <col ref="cretno" visibility="hidden"/>
- <col ref="instcd" visibility="hidden"/>
- <col ref="execdd" visibility="hidden"/>
- <col ref="calcseqno" visibility="hidden"/>
- <col ref="calcscorseqno" visibility="hidden"/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if (grd_toothlist.isCell(event.target) && grd_toothlist.mouseRow >= grd_toothlist.fixedrows) {
- var openerteeth = model.getValue("/root/main/list1/toothlist[" + grd_toothlist.mouseRow + "]/toot");
- fSetToothInput(openerteeth); // 입력된 치식 번호를 img에 맞춰 표시한다.
- }
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- var row = grd_toothapplist.mouseRow;
- var col = grd_toothapplist.mouseCol;
- if(grd_toothapplist.isCell(event.target) && grd_toothapplist.row >= grd_toothapplist.fixedRows) {
-
- if (col != grd_toothapplist.colRef("chos")) {
- var openerteeth = model.getValue("/root/main/list2/toothapplist[" + row +"]/toot");
- fSetToothInput(openerteeth); // 입력된 치식 번호를 img에 맞춰 표시한다.
- }
- }
- ]]>
- </script>
- </datagrid>
- <button id="rightupperA" class="btn2_letter2" style="left:10px; top:134px; width:42px; height:19px; ">
- <caption>우상</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/hidden/chkflag/milktooth/rightupperC");
- fSelectToothGroupA(0, 8); // 지정된 영역의 영구치를 선택한다.
- ]]>
- </script>
- </button>
- <button id="leftupperA" class="btn2_letter2" style="left:672px; top:134px; width:42px; height:19px; ">
- <caption>좌상</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/hidden/chkflag/milktooth/leftupperC");
- fSelectToothGroupA(8, 16); // 지정된 영역의 영구치를 선택한다.
- ]]>
- </script>
- </button>
- <button id="rightlowerA" class="btn2_letter2" style="left:10px; top:259px; width:42px; height:19px; ">
- <caption>우하</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/hidden/chkflag/milktooth/rightlowerC");
- fSelectToothGroupA(16, 24); // 지정된 영역의 영구치를 선택한다.
- ]]>
- </script>
- </button>
- <button id="leftlowerA" class="btn2_letter2" style="left:672px; top:259px; width:42px; height:19px; ">
- <caption>좌하</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/hidden/chkflag/milktooth/leftlowerC");
- fSelectToothGroupA(24, 32); // 지정된 영역의 영구치를 선택한다.
- ]]>
- </script>
- </button>
- <button id="rightupperC" class="btn2_letter4" style="left:10px; top:179px; width:64px; height:19px; ">
- <caption>우상유치</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/hidden/chkflag/scndtooth/rightupperA");
- fSelectToothGroupC(0, 8); // 지정된 영역의 유치를 선택한다.
- ]]>
- </script>
- </button>
- <button id="leftupperC" class="btn2_letter4" style="left:650px; top:179px; width:64px; height:19px; ">
- <caption>좌상유치</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/hidden/chkflag/scndtooth/leftupperA");
- fSelectToothGroupC(8, 16); // 지정된 영역의 유치를 선택한다.
- ]]>
- </script>
- </button>
- <button id="rightlowerC" class="btn2_letter4" style="left:10px; top:214px; width:64px; height:19px; ">
- <caption>우하유치</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/hidden/chkflag/scndtooth/rightlowerA");
- fSelectToothGroupC(16, 24); // 지정된 영역의 유치를 선택한다.
- ]]>
- </script>
- </button>
- <button id="leftlowerC" class="btn2_letter4" style="left:650px; top:214px; width:64px; height:19px; ">
- <caption>좌하유치</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/hidden/chkflag/scndtooth/leftlowerA");
- fSelectToothGroupC(24, 32); // 지정된 영역의 유치를 선택한다.
- ]]>
- </script>
- </button>
- <button id="trisectionA1" class="btn2_letter6" style="left:60px; top:62px; width:86px; height:19px; ">
- <caption>1/3 (영구치)</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/hidden/chkflag/milktooth/trisectionC1");
- fSelectToothGroupA(0, 5); // 지정된 영역의 영구치를 선택한다.
- ]]>
- </script>
- </button>
- <button id="trisectionA2" class="btn2_letter6" style="left:319px; top:62px; width:86px; height:19px; ">
- <caption>1/3 (영구치)</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/hidden/chkflag/milktooth/trisectionC2");
- fSelectToothGroupA(5, 11); // 지정된 영역의 영구치를 선택한다.
- ]]>
- </script>
- </button>
- <button id="trisectionA3" class="btn2_letter6" style="left:578px; top:62px; width:86px; height:19px; ">
- <caption>1/3 (영구치)</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/hidden/chkflag/milktooth/trisectionC3");
- fSelectToothGroupA(11, 16); // 지정된 영역의 영구치를 선택한다.
- ]]>
- </script>
- </button>
- <button id="trisectionA4" class="btn2_letter6" style="left:60px; top:331px; width:86px; height:19px; ">
- <caption>1/3 (영구치)</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/hidden/chkflag/milktooth/trisectionC4");
- fSelectToothGroupA(16, 21); // 지정된 영역의 영구치를 선택한다.
- ]]>
- </script>
- </button>
- <button id="trisectionA5" class="btn2_letter6" style="left:319px; top:331px; width:86px; height:19px; ">
- <caption>1/3 (영구치)</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/hidden/chkflag/milktooth/trisectionC5");
- fSelectToothGroupA(21, 27); // 지정된 영역의 영구치를 선택한다.
- ]]>
- </script>
- </button>
- <button id="trisectionA6" class="btn2_letter6" style="left:578px; top:331px; width:86px; height:19px; ">
- <caption>1/3 (영구치)</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/hidden/chkflag/milktooth/trisectionC6");
- fSelectToothGroupA(27, 32); // 지정된 영역의 영구치를 선택한다.
- ]]>
- </script>
- </button>
- <button id="trisectionC1" class="btn2_letter6" style="left:60px; top:84px; width:86px; height:19px; ">
- <caption>1/3 (유치)</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/hidden/chkflag/scndtooth/trisectionA1");
- fSelectToothGroupC(0, 5); // 지정된 영역의 유치를 선택한다.
- ]]>
- </script>
- </button>
- <button id="trisectionC2" class="btn2_letter6" style="left:319px; top:84px; width:86px; height:19px; ">
- <caption>1/3 (유치)</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/hidden/chkflag/scndtooth/trisectionA2");
- fSelectToothGroupC(5, 11); // 지정된 영역의 유치를 선택한다.
- ]]>
- </script>
- </button>
- <button id="trisectionC3" class="btn2_letter6" style="left:578px; top:84px; width:86px; height:19px; ">
- <caption>1/3 (유치)</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/hidden/chkflag/scndtooth/trisectionA3");
- fSelectToothGroupC(11, 16); // 지정된 영역의 유치를 선택한다.
- ]]>
- </script>
- </button>
- <button id="trisectionC4" class="btn2_letter6" style="left:60px; top:309px; width:86px; height:19px; ">
- <caption>1/3 (유치)</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/hidden/chkflag/scndtooth/trisectionA4");
- fSelectToothGroupC(16, 21); // 지정된 영역의 유치를 선택한다.
- ]]>
- </script>
- </button>
- <button id="trisectionC5" class="btn2_letter6" style="left:319px; top:309px; width:86px; height:19px; ">
- <caption>1/3 (유치)</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/hidden/chkflag/scndtooth/trisectionA5");
- fSelectToothGroupC(21, 27); // 지정된 영역의 유치를 선택한다.
- ]]>
- </script>
- </button>
- <button id="trisectionC6" class="btn2_letter6" style="left:578px; top:309px; width:86px; height:19px; ">
- <caption>1/3 (유치)</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.resetInstanceNode("/root/hidden/chkflag/scndtooth/trisectionA6");
- fSelectToothGroupC(27, 32); // 지정된 영역의 유치를 선택한다.
- ]]>
- </script>
- </button>
- <caption id="caption3" class="tit_2" style="left:5px; top:550px; width:100px; height:13px; ">치식 종합조회</caption>
- <datagrid id="grd_toothlist" nodeset="/root/main/list1/toothlist" caption="구분^코드^코드명^우상(1)^좌상(2)^우하(4)^좌하(3)^진료일^전체치식" colsep="^" colwidth="30, 105, 165, 59, 59, 59, 59, 79, 84" ellipsis="true" mergecellsfixedrows="bycolrec" rowsep="|" tooltip="true" style="left:0px; top:570px; width:724px; height:173px; ">
- <col ref="flag"/>
- <col ref="cd"/>
- <col ref="cdnm"/>
- <col ref="rightupper"/>
- <col ref="leftupper"/>
- <col ref="rightlower"/>
- <col ref="leftlower"/>
- <col ref="orddd" format="yyyy-mm-dd"/>
- <col ref="toot"/>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- if (grd_toothlist.isCell(event.target) && grd_toothlist.mouseRow >= grd_toothlist.fixedrows) {
- var openerteeth = model.getValue("/root/main/list1/toothlist[" + grd_toothlist.mouseRow + "]/toot");
- fSetToothInput(openerteeth); // 입력된 치식 번호를 img에 맞춰 표시한다.
- }
- ]]>
- </script>
- </datagrid>
- <line id="line7" class="line_1" style="x1:0px; y1:565px; x2:724px; y2:565px; "/>
- <button id="btn_trans" class="btn2_letter2" style="left:682px; top:365px; width:42px; height:19px; ">
- <caption>전달</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rows = grd_toothapplist.rows;
-
- // EDI표기
- var tooth = model.getValue("/root/hidden/selectedtooth/editoothnum/rightupper")
- + model.getValue("/root/hidden/selectedtooth/editoothnum/leftupper")
- + model.getValue("/root/hidden/selectedtooth/editoothnum/rightlower")
- + model.getValue("/root/hidden/selectedtooth/editoothnum/leftlower");
-
- var rightupper = model.getValue("/root/hidden/selectedtooth/selectednum/rightupper");
- var leftupper = model.getValue("/root/hidden/selectedtooth/selectednum/leftupper");
- var rightlower = model.getValue("/root/hidden/selectedtooth/selectednum/rightlower");
- var leftlower = model.getValue("/root/hidden/selectedtooth/selectednum/leftlower");
- var chos ="";
-
- for (var i=1; i<rows; i++) {
- chos = model.getValue("/root/main/list2/toothapplist["+ i +"]/chos");
-
- if (chos == "true") {
- model.setValue("/root/main/list2/toothapplist["+ i +"]/rightupper",rightupper);
- model.setValue("/root/main/list2/toothapplist["+ i +"]/leftupper",leftupper);
- model.setValue("/root/main/list2/toothapplist["+ i +"]/rightlower",rightlower);
- model.setValue("/root/main/list2/toothapplist["+ i +"]/leftlower",leftlower);
- model.setValue("/root/main/list2/toothapplist["+ i +"]/toot",tooth);
- }
- }
-
- model.refresh();
-
- ]]>
- </script>
- </button>
- <button id="btn_delete" class="btn2_letter2" style="left:637px; top:365px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rows = grd_toothapplist.rows;
-
- for (var i=1; i<rows; i++) {
- chos = model.getValue("/root/main/list2/toothapplist["+ i +"]/chos");
-
- if (chos == "true") {
- model.setValue("/root/main/list2/toothapplist["+ i +"]/rightupper","");
- model.setValue("/root/main/list2/toothapplist["+ i +"]/leftupper","");
- model.setValue("/root/main/list2/toothapplist["+ i +"]/rightlower","");
- model.setValue("/root/main/list2/toothapplist["+ i +"]/leftlower","");
- model.setValue("/root/main/list2/toothapplist["+ i +"]/toot","");
- }
- }
-
- model.refresh();
- ]]>
- </script>
- </button>
- <select1 id="rdo_refterm" ref="/root/init/termlist/refterm" appearance="full" cellspacing="6" cols="6" overflow="visible" style="left:115px; top:548px; width:260px; height:17px; border-style:none; ">
- <choices>
- <item>
- <label>전체</label>
- <value>-</value>
- </item>
- <item>
- <label>3개월</label>
- <value>3</value>
- </item>
- <item>
- <label>6개월</label>
- <value>6</value>
- </item>
- <item>
- <label>1년</label>
- <value>12</value>
- </item>
- <item>
- <label>2년</label>
- <value>24</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fInitialize();
- ]]>
- </script>
- </select1>
- </group>
- <group id="grp_btn" scroll="auto" style="left:0px; top:745px; width:724px; height:27px; ">
- <button id="btn_cancel" class="btn4_letter2" style="left:667px; top:5px; width:56px; height:22px; ">
- <caption>취소</caption>
- <close ev:event="DOMActivate"/>
- </button>
- <button id="btn_confirm" class="btn4_letter2" style="left:608px; top:5px; width:56px; height:22px; ">
- <caption>확인</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (checkOpener()) {
- var rows = grd_toothapplist.rows;
-
- var chos ="";
- var flag ="";
- var chos ="";
- var row ="";
- var toot ="";
- var toot1 = "";
-
- var prcflag = model.getValue("/root/hidden/cond/flag");
-
- // 사전 재원심사 상병
- if (prcflag == "AID") {
- model.setValue("/root/send/toothapplist",grd_toothapplist.getUpdateData());
- submit("TXPIZ00601");
- }
-
- for (var i=1; i<rows; i++) {
-
- chos = model.getValue("/root/main/list2/toothapplist["+ i +"]/chos");
- row = model.getValue("/root/main/list2/toothapplist["+ i +"]/row");
- flag = model.getValue("/root/main/list2/toothapplist["+ i +"]/flag");
-
- toot = model.getValue("/root/main/list2/toothapplist["+ i +"]/toot");
-
- // 의사입력방식으로 교체(우상-좌상-좌하-우하)
- if (toot.length == 32 && toot != "00000000000000000000000000000000") {
-
- var str1 = toot.substr(0,8);
- var str2 = toot.substr(8,8);
- var str4 = toot.substr(16,8);
- var str3 = toot.substr(24,8);
-
- var subTootStr = "";
-
- // 우상(1)
- for (var idx1 = 0; idx1 < 8; idx1++) {
- var tootnum = str1.substr(idx1,1);
- var point = 0;
- if (tootnum == "*") {
- point = 8 - idx1;
- if (subTootStr != "") subTootStr += ",1" + point;
- else subTootStr = "1" + point;
- } else if (tootnum == "#") {
- point = 5 - idx1 + 3;
- if (subTootStr != "") subTootStr += ",5" + point;
- else subTootStr = "5" + point;
- }
- }
-
- // 좌상(2)
- for (var idx2 = 0; idx2 < 8; idx2++) {
- var tootnum = str2.substr(idx2,1);
- var point = 0;
- if (tootnum == "*") {
- point = idx2 + 1;
- if (subTootStr != "") subTootStr += ",2" + point;
- else subTootStr = "2" + point;
- } else if (tootnum == "#") {
- point = idx2 + 1;
- if (subTootStr != "") subTootStr += ",6" + point;
- else subTootStr = "6" + point;
- }
- }
-
- // 우하(4)
- for (var idx4 = 0; idx4 < 8; idx4++) {
- var tootnum = str4.substr(idx4,1);
- var point = 0;
- if (tootnum == "*") {
- point = 8 - idx4;
- if (subTootStr != "") subTootStr += ",4" + point;
- else subTootStr = "4" + point;
- } else if (tootnum == "#") {
- point = 5 - idx4 + 3;
- if (subTootStr != "") subTootStr += ",8" + point;
- else subTootStr = "8" + point;
- }
- }
-
- // 좌하(3)
- for (var idx3 = 0; idx3 < 8; idx3++) {
- var tootnum = str3.substr(idx3,1);
- var point = 0;
- if (tootnum == "*") {
- point = idx3 + 1;
- if (subTootStr != "") subTootStr += ",3" + point;
- else subTootStr = "3" + point;
- } else if (tootnum == "#") {
- point = idx3 + 1;
- if (subTootStr != "") subTootStr += ",7" + point;
- else subTootStr = "7" + point;
- }
- }
-
- if (subTootStr == "" ) toot1 = "-";
- else toot1 = subTootStr;
-
- } else {
- toot1 = "-";
- }
- // 의사입력방식으로 교체 끝
-
- // 사전 재원심사 상병
- if (prcflag == "AID") {
- if (flag == "상병") {
- model.makevalue("/root/hidden/rslt/list["+ i +"]/flag", "1");
- if (toot == "" || toot == "00000000000000000000000000000000") {
- toot = "-";
- }
- model.makevalue("/root/hidden/rslt/list["+ i +"]/toot", toot);
- model.makevalue("/root/hidden/rslt/list["+ i +"]/toot1", toot1);
- model.makevalue("/root/hidden/rslt/list["+ i +"]/row", row);
- model.makevalue("/root/hidden/rslt/list["+ i +"]/toothYN", "Y");
- }
- } else {
- if (flag == "상병") {
- model.makevalue("/root/hidden/rslt/list["+ i +"]/flag", "1");
- } else if (flag == "처방") {
- model.makevalue("/root/hidden/rslt/list["+ i +"]/flag", "2");
- }
- if (toot == "" || toot == "00000000000000000000000000000000") {
- toot = "-";
- }
- model.makevalue("/root/hidden/rslt/list["+ i +"]/toot", toot);
- model.makevalue("/root/hidden/rslt/list["+ i +"]/toot1", toot1);
- model.makevalue("/root/hidden/rslt/list["+ i +"]/row", row);
- model.makevalue("/root/hidden/rslt/list["+ i +"]/toothYN", "Y");
- }
- }
-
- model.copyNode(opener.root.hidden.sppiz00600, "/root/hidden");
-
- } else {
- messageBox("상위화면이 변경되어 데이터를 전달할 수", "I004");
- }
- if ( model.getValue("/root/hidden/cond/popyn") == "SMPID20500"
- && checkOpener()
- && window.type == "modeless"
- ) {
- opener.javascript.fGetToothPop();
- } else {
- window.close();
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|