1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
- <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
- <xhtml:head>
- <xhtml:title>검사 예약 제어 정보 관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <init>
- <itemtype>
- <typeinfo>
- <cd>R</cd>
- <nm>조건</nm>
- </typeinfo>
- <typeinfo>
- <cd>C</cd>
- <nm>제어</nm>
- </typeinfo>
- </itemtype>
- <opcode>
- <cdinfo>
- <cd>EQ</cd>
- <nm>일치</nm>
- <rflag>Y</rflag>
- <cflag/>
- </cdinfo>
- <cdinfo>
- <cd>NE</cd>
- <nm>불일치</nm>
- <rflag>Y</rflag>
- <cflag/>
- </cdinfo>
- <cdinfo>
- <cd>OV</cd>
- <nm>이상</nm>
- <rflag>Y</rflag>
- <cflag/>
- </cdinfo>
- <cdinfo>
- <cd>BW</cd>
- <nm>이하</nm>
- <rflag>Y</rflag>
- <cflag/>
- </cdinfo>
- <cdinfo>
- <cd>EX</cd>
- <nm>초과</nm>
- <rflag>Y</rflag>
- <cflag/>
- </cdinfo>
- <cdinfo>
- <cd>UR</cd>
- <nm>미만</nm>
- <rflag>Y</rflag>
- <cflag/>
- </cdinfo>
- <cdinfo>
- <cd>IN</cd>
- <nm>이내</nm>
- <rflag>Y</rflag>
- <cflag/>
- </cdinfo>
- <cdinfo>
- <cd>NI</cd>
- <nm>이외</nm>
- <rflag>Y</rflag>
- <cflag/>
- </cdinfo>
- <cdinfo>
- <cd>RT</cd>
- <nm>제한</nm>
- <rflag/>
- <cflag>Y</cflag>
- </cdinfo>
- <cdinfo>
- <cd>OY</cd>
- <nm>단독</nm>
- <rflag/>
- <cflag>Y</cflag>
- </cdinfo>
- <cdinfo>
- <cd>RC</cd>
- <nm>권장</nm>
- <rflag/>
- <cflag>Y</cflag>
- </cdinfo>
- <cdinfo>
- <cd>NT</cd>
- <nm>알림</nm>
- <rflag/>
- <cflag>Y</cflag>
- </cdinfo>
- </opcode>
- <deptlist>
- <deptinfo>
- <deptcd/>
- <deptnm/>
- </deptinfo>
- </deptlist>
- <srch>
- <roomlist>
- <roominfo>
- <deptcd/>
- <roomcd>T</roomcd>
- <roomnm>전체</roomnm>
- </roominfo>
- </roomlist>
- <excdlist>
- <excdinfo>
- <excucd>T</excucd>
- <excunm>전체</excunm>
- </excdinfo>
- </excdlist>
- </srch>
- <rgst>
- <roomlist>
- <roominfo>
- <deptcd/>
- <roomcd>T</roomcd>
- <roomnm>전체</roomnm>
- </roominfo>
- </roomlist>
- <excdlist>
- <excdinfo>
- <excucd>T</excucd>
- <excunm>전체</excunm>
- </excdinfo>
- </excdlist>
- </rgst>
- </init>
- <main>
- <ctrllist>
- <ctrlinfo>
- <rsrvplce/>
- <suppdeptcd/>
- <suppdeptnm/>
- <excuroomcd/>
- <excuroomnm/>
- <excucd/>
- <excunm/>
- <ctrlseq/>
- <termcnt/>
- <ctrldesc/>
- <ctrltype/>
- <fromdd/>
- <todd/>
- </ctrlinfo>
- </ctrllist>
- <termlist>
- <terminfo>
- <rsrvplce/>
- <suppdeptcd/>
- <excuroomcd/>
- <excucd/>
- <ctrlseq/>
- <termseq/>
- <itemtype/>
- <itemseq/>
- <itemnm/>
- <opcode/>
- <valtype/>
- <val/>
- <valnm/>
- <inflag/>
- </terminfo>
- </termlist>
- <itemlist>
- <iteminfo>
- <itemtype/>
- <itemseq/>
- <itemnm/>
- <valtype/>
- <addflag/>
- <valid/>
- <srchcd/>
- <valseqarr/>
- </iteminfo>
- </itemlist>
- </main>
- <temp>
- <reflist>
- <refinfo>
- <itemseq/>
- <itemnm/>
- </refinfo>
- </reflist>
- <addval/>
- <iptval>
- <val/>
- <valnm/>
- </iptval>
- <enumlist>
- <enuminfo>
- <itemseq/>
- <itemnm/>
- </enuminfo>
- </enumlist>
- <enumval>
- <val/>
- <valnm/>
- </enumval>
- <srchlist>
- <srchinfo>
- <val/>
- <valnm/>
- </srchinfo>
- </srchlist>
- <term>
- <itemtype/>
- <itemseq/>
- <itemnm/>
- <opcode/>
- <opnm/>
- <valtype/>
- <val/>
- <valnm/>
- <srchcd/>
- <inflag/>
- </term>
- <rslt>
- <ctrlseq/>
- </rslt>
- </temp>
- <send>
- <srch>
- <srchflag>D</srchflag>
- <deptcd/>
- <roomcd/>
- <newcdyn>Y</newcdyn>
- <rsrvplce>T</rsrvplce>
- <suppdeptcd/>
- <excuroomcd/>
- <excucd/>
- </srch>
- <term>
- <rsrvplce/>
- <suppdeptcd/>
- <excuroomcd/>
- <excucd/>
- <ctrlseq/>
- </term>
- <rgst>
- <rsrvplce>T</rsrvplce>
- <suppdeptcd/>
- <excuroomcd/>
- <excucd/>
- <ctrlseq/>
- <ctrldesc/>
- <fromdd/>
- <todd/>
- <terminfo>
- <termseq/>
- <itemtype/>
- <itemseq/>
- <itemnm/>
- <opcode/>
- <valtype/>
- <val/>
- <valnm/>
- <inflag/>
- </terminfo>
- </rgst>
- </send>
- <hidden>
- <valtype>
- <refyn/>
- <drctyn/>
- <srchyn/>
- <enumyn/>
- </valtype>
- <addflag/>
- </hidden>
- </root>
- </instance>
- <submission id="TRPMB03701" mediatype="application/x-www-form-urlencoded" method="post" resultref="/root/main/itemlist/iteminfo"/>
- <submission id="TRPMB03702" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srch" resultref="/root/init/deptlist/deptinfo"/>
- <submission id="TRPMB03703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srch" resultref="/root/init/srch/roomlist/roominfo"/>
- <submission id="TRPMB03704" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srch" resultref="/root/init/srch/excdlist/excdinfo"/>
- <submission id="TRPMB03705" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/srch" resultref="/root/main/ctrllist/ctrlinfo"/>
- <submission id="TRPMB03706" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/term" resultref="/root/send/rgst/terminfo"/>
- <submission id="TXPMB03703" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/rgst" resultref="/root/temp/rslt"/>
- <submission id="TXPMB03705" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/term"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- var CURR_PLCE = "";
- var CURR_DEPT = "";
- var CURR_ROOM = "";
- var CURR_CODE = "";
-
- function fSearchTerms() {
-
- grd_ctrl.rebuildStyle();
-
- submit("TRPMB03705");
-
- btn_newrgst.dispatch("DOMActivate");
- }
-
- function fClearValues() {
-
- // 항목 그리드 초기화
- grd_item.nodeset = "/";
-
- // 연산 그리드 초기화
- grd_opcode.nodeset = "/";
-
- // 조건 값 초기화
- model.resetInstanceNode("/root/temp/reflist/refinfo");
- grd_ref.refresh();
-
- model.setValue("/root/temp/addval", "");
- ipt_addval.refresh();
-
- model.setValue("/root/temp/iptval/val", "");
- model.setValue("/root/temp/iptval/valnm", "");
- ipt_drct.hint = "";
- ipt_drct.refresh();
-
- model.resetInstanceNode("/root/temp/enumlist/enuminfo");
- rdo_enum.refresh();
-
- model.setValue("/root/temp/enumval/val", "");
- model.setValue("/root/temp/enumval/valnm", "");
- rdo_enum.refresh();
-
- model.resetInstanceNode("/root/temp/srchlist/srchinfo");
- grd_srch.refresh();
-
- model.resetInstanceNode("/root/temp/term");
-
- rdo_itemtype.refresh();
- cap_item.refresh();
- cap_opnm.refresh();
- cap_valnm.refresh();
- cap_valnm.hint = "";
-
- // 값 형식 설정
- fSetValType("");
-
- }
-
- function fSetValType(valtype) {
-
- model.resetInstanceNode("/root/hidden/valtype");
-
- chk_ref.refresh();
- chk_drct.refresh();
- chk_srch.refresh();
- chk_enum.refresh();
-
- var color = "#fffbf2";
-
- if (valtype.indexOf("R") < 0) {
- grp_ref.attribute("background-color") = color;
- chk_ref.disabled = true;
- } else {
- grp_ref.attribute("background-color") = "#ffffff";
- chk_ref.disabled = false;
- }
-
- if (valtype.indexOf("D") < 0) {
- grp_drct.attribute("background-color") = color;
- model.setValue("/root/temp/iptval/val", "");
- model.setValue("/root/temp/iptval/valnm", "");
- ipt_drct.hint = "";
- ipt_drct.refresh();
- chk_drct.disabled = true;
- } else {
- grp_drct.attribute("background-color") = "#ffffff";
- chk_drct.disabled = false;
- }
-
- if (valtype.indexOf("S") < 0) {
- grp_srch.attribute("background-color") = color;
- model.resetInstanceNode("/root/temp/term/srchlist/srchinfo");
- grd_srch.refresh();
- chk_srch.disabled = true;
- } else {
- grp_srch.attribute("background-color") = "#ffffff";
- chk_srch.disabled = false;
- }
-
- if (valtype.indexOf("E") < 0) {
- grp_enum.attribute("background-color") = color;
- chk_enum.disabled = true;
- } else {
- grp_enum.attribute("background-color") = "#ffffff";
- chk_enum.disabled = false;
- }
-
- grd_ref.visible = false;
- cap_addval.visible = false;
- ipt_addval.visible = false;
- btn_addipt.visible = false;
- ipt_drct.visible = false;
- btn_drctipt.visible = false;
- rdo_enum.visible = false;
- chk_enumarr.visible = false;
- btn_srch.visible = false;
- btn_srchipt.visible = false;
- btn_delsrch.visible = false;
- grd_srch.visible = false;
- }
-
- function fSetTypeChk(valtype, chkyn) {
-
- model.setValue("/root/temp/term/valtype", valtype);
-
- if (valtype == "R") {
-
- model.setValue("/root/hidden/valtype/drctyn", "");
- chk_drct.refresh();
- model.setValue("/root/hidden/valtype/srchyn", "");
- chk_srch.refresh();
- model.setValue("/root/hidden/valtype/enumyn", "");
- chk_enum.refresh();
-
- grd_ref.visible = cap_addval.visible = ipt_addval.visible = btn_addipt.visible = chkyn == "Y" ? true : false;
-
- if (model.getValue("/root/hidden/addflag") == "Y") {
- grd_ref.attribute("height") = "246px";
- } else {
- grd_ref.attribute("height") = "269px";
- }
-
- ipt_drct.visible = false;
- btn_drctipt.visible = false;
- rdo_enum.visible = false;
- chk_enumarr.visible = false;
- btn_srch.visible = false;
- btn_srchipt.visible = false;
- btn_delsrch.visible = false;
- grd_srch.visible = false;
-
- } else if (valtype == "D") {
-
- model.setValue("/root/temp/iptval/val", "");
- model.setValue("/root/temp/iptval/valnm", "");
- ipt_drct.hint = "";
- ipt_drct.refresh();
-
- model.setValue("/root/hidden/valtype/refyn", "");
- chk_ref.refresh();
- model.setValue("/root/hidden/valtype/srchyn", "");
- chk_srch.refresh();
- model.setValue("/root/hidden/valtype/enumyn", "");
- chk_enum.refresh();
-
- ipt_drct.visible = btn_drctipt.visible = chkyn == "Y" ? true : false;
-
- grd_ref.visible = false;
- cap_addval.visible = false;
- ipt_addval.visible = false;
- btn_addipt.visible = false;
- rdo_enum.visible = false;
- chk_enumarr.visible = false;
- btn_srch.visible = false;
- btn_srchipt.visible = false;
- btn_delsrch.visible = false;
- grd_srch.visible = false;
-
- } else if (valtype == "S") {
-
- model.setValue("/root/hidden/valtype/refyn", "");
- chk_ref.refresh();
- model.setValue("/root/hidden/valtype/drctyn", "");
- chk_drct.refresh();
- model.setValue("/root/hidden/valtype/enumyn", "");
- chk_enum.refresh();
-
- btn_srch.visible = btn_srchipt.visible = grd_srch.visible = btn_delsrch.visible = chkyn == "Y" ? true : false;
-
- grd_ref.visible = false;
- cap_addval.visible = false;
- ipt_addval.visible = false;
- btn_addipt.visible = false;
- ipt_drct.visible = false;
- btn_drctipt.visible = false;
- rdo_enum.visible = false;
- chk_enumarr.visible = false;
-
- } else if (valtype == "E") {
-
- model.setValue("/root/hidden/valtype/refyn", "");
- chk_ref.refresh();
- model.setValue("/root/hidden/valtype/drctyn", "");
- chk_drct.refresh();
- model.setValue("/root/hidden/valtype/srchyn", "");
- chk_srch.refresh();
-
- var opcode = model.getValue("/root/temp/term/opcode");
- if (opcode == "IN" || opcode == "NI") {
- chk_enumarr.visible = chkyn == "Y" ? true : false;
- rdo_enum.visible = false;
- } else {
- rdo_enum.visible = chkyn == "Y" ? true : false;
- chk_enumarr.visible = false;
- }
-
- grd_ref.visible = false;
- cap_addval.visible = false;
- ipt_addval.visible = false;
- btn_addipt.visible = false;
- ipt_drct.visible = false;
- btn_drctipt.visible = false;
- btn_srch.visible = false;
- btn_srchipt.visible = false;
- btn_delsrch.visible = false;
- grd_srch.visible = false;
-
- }
- }
-
- function fSetTermInfo() {
-
- btn_collapse.dispatch("DOMActivate");
-
- var row = grd_ctrl.row;
- grd_ctrl.rebuildStyle();
- grd_ctrl.focusColor = grd_ctrl.rowStyle(row, "all", "background-color") = "#ffcdcd";
- if (row > grd_ctrl.bottomRow) {
- grd_ctrl.bottomRow = row;
- }
-
- var rsrvplce = model.getValue("/root/main/ctrllist/ctrlinfo[" + row + "]/rsrvplce");
- var suppdeptcd = model.getValue("/root/main/ctrllist/ctrlinfo[" + row + "]/suppdeptcd");
- var excuroomcd = model.getValue("/root/main/ctrllist/ctrlinfo[" + row + "]/excuroomcd");
- var excucd = model.getValue("/root/main/ctrllist/ctrlinfo[" + row + "]/excucd");
- var ctrlseq = model.getValue("/root/main/ctrllist/ctrlinfo[" + row + "]/ctrlseq");
-
- CURR_PLCE = rsrvplce;
- CURR_DEPT = suppdeptcd;
- CURR_ROOM = excuroomcd;
- CURR_CODE = excucd;
-
- model.setValue("/root/send/term/rsrvplce", rsrvplce);
- model.setValue("/root/send/term/suppdeptcd", suppdeptcd);
- model.setValue("/root/send/term/excuroomcd", excuroomcd);
- model.setValue("/root/send/term/excucd", excucd);
- model.setValue("/root/send/term/ctrlseq", ctrlseq);
-
- submit("TRPMB03706");
-
- model.setValue("/root/send/rgst/rsrvplce", rsrvplce);
- model.setValue("/root/send/rgst/suppdeptcd", suppdeptcd);
-
- cmb_rgstplce.refresh();
- cmb_rgstdept.refresh();
-
- cmb_rgstdept.dispatch("xforms-value-changed");
-
- model.setValue("/root/send/rgst/excuroomcd", excuroomcd);
- cmb_rgstroom.refresh();
-
- model.setValue("/root/send/rgst/excucd", excucd);
- cmb_rgstexcd.refresh();
-
- cmb_rgstexcd.dispatch("xforms-value-changed");
-
- model.setValue("/root/send/rgst/ctrlseq", ctrlseq);
-
- var ctrldesc = model.getValue("/root/main/ctrllist/ctrlinfo[" + row + "]/ctrldesc");
- var fromdd = model.getValue("/root/main/ctrllist/ctrlinfo[" + row + "]/fromdd");
- var todd = model.getValue("/root/main/ctrllist/ctrlinfo[" + row + "]/todd");
-
- model.setValue("/root/send/rgst/ctrldesc", ctrldesc);
- tar_rgstdesc.refresh();
-
- model.setValue("/root/send/rgst/fromdd", fromdd);
- ipt_fromdd.refresh();
-
- model.setValue("/root/send/rgst/todd", todd);
- ipt_todd.refresh();
- }
-
- function fSetRgstStatus(isNew) {
- cap_status.value = btn_rgst.value = isNew ? "등록" : "수정";
- cap_status.attribute("color") = isNew ? "black" : "blue";
- }
- ]]>
- </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" ev:event="xforms-ready">
- <![CDATA[
-
- if (getUserId() == "PAM") {
- btn_itemmng.visible = true;
- }
-
- chk_enumarr.attribute("top") = rdo_enum.attribute("top");
- chk_enumarr.attribute("height") = rdo_enum.attribute("height");
-
- submit("TRPMB03701");
-
- submit("TRPMB03702", false);
-
- addComboItem("cmb_deptcd", "전체", "T");
-
- // 조회 조건 기본 세팅
- model.setValue("/root/send/srch/rsrvplce", "T");
- cmb_rsrvplce.refresh();
-
- model.setValue("/root/send/srch/suppdeptcd", "T");
- cmb_deptcd.refresh();
-
- cmb_deptcd.dispatch("xforms-value-changed");
-
- fSearchTerms();
-
- // 등록 기본 항목 기본 세팅
- model.setValue("/root/send/rgst/rsrvplce", "T");
- cmb_rgstplce.refresh();
-
- model.setValue("/root/send/rgst/suppdeptcd", "T");
- cmb_rgstdept.refresh();
-
- cmb_rgstdept.dispatch("xforms-value-changed");
-
- model.setValue("/root/send/rgst/fromdd", getCurrentDate());
- model.setValue("/root/send/rgst/todd", "99991231");
-
- ipt_fromdd.refresh();
- ipt_todd.refresh();
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <caption id="cap_title" class="tit_1" style="left:0px; top:0px; width:165px; height:14px; font-family:돋움; vertical-align:middle; ">검사 예약 제어 정보 관리</caption>
- <caption id="caption7" class="tit_2" style="left:0px; top:70px; width:124px; height:13px; font-weight:bold; ">등록된 제어 내역</caption>
- <datagrid id="grd_rgst" nodeset="/root/send/rgst/terminfo" allowselection="false" autoresize="true" backcoloralternate="transparent" caption="제어순번^항번^구분^항목순번^항목^연산^값형식^포함^코드^비교값" colsep="^" colwidth="0, 40, 40, 0, 100, 50, 0, 0, 100, 235" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:625px; top:345px; width:570px; height:280px; ">
- <col ref="ctrlseq"/>
- <col ref="termseq" style="text-align:center; "/>
- <col disabled="true" ref="itemtype" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/itemtype/typeinfo">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col ref="itemseq"/>
- <col ref="itemnm" style="text-align:center; "/>
- <col disabled="true" ref="opcode" type="combo" style="text-align:center; ">
- <choices>
- <itemset nodeset="/root/init/opcode/cdinfo">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- </col>
- <col disabled="true" ref="valtype" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>참조</label>
- <value>R</value>
- </item>
- <item>
- <label>직접</label>
- <value>D</value>
- </item>
- <item>
- <label>조회</label>
- <value>S</value>
- </item>
- <item>
- <label>열거</label>
- <value>E</value>
- </item>
- </choices>
- </col>
- <col ref="inflag" style="text-align:center; "/>
- <col ref="val" style="text-align:center; "/>
- <col ref="valnm" style="text-align:left; "/>
- </datagrid>
- <caption id="caption9" class="tit_2" style="left:625px; top:325px; width:123px; height:13px; ">조건 및 제어 내역</caption>
- <button id="btn_rgst" class="btn4_letter2" style="left:1139px; top:738px; width:56px; height:22px; ">
- <caption>등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if (instance1.selectNodes("/root/send/rgst/terminfo[termseq != '']").length < 1 &&
- model.getValue("/root/send/rgst/ctrldesc") == "" ) {
- messageBox("등록할 조건 내역이 없습니다.", "E999");
- return;
- }
-
- // 기본 항목 변경 내역 확인
- if (model.getValue("/root/send/rgst/ctrlseq") != "" &&
- ( model.getValue("/root/send/rgst/rsrvplce") != CURR_PLCE ||
- model.getValue("/root/send/rgst/suppdeptcd") != CURR_DEPT ||
- model.getValue("/root/send/rgst/excuroomcd") != CURR_ROOM ||
- model.getValue("/root/send/rgst/excucd") != CURR_CODE )) {
-
- if (messageBox("기본 항목이 변경되었습니다.\n새로운 제어문으로 등록하시겠습니까?", "Q999") != 6) {
- return;
- }
-
- model.setValue("/root/send/rgst/ctrlseq", "");
- }
-
- var prevRow = 0
- var prevBottomRow = grd_ctrl.bottomRow;
-
- if (model.getValue("/root/send/rgst/ctrlseq") != "") { // 수정하는 경우
- prevRow = grd_ctrl.row;
- }
-
- submit("TXPMB03703");
-
- fClearValues();
-
- fSearchTerms();
-
- if (prevRow > 0) {
- grd_ctrl.row = prevRow;
- grd_ctrl.bottomRow = prevBottomRow;
- } else {
-
- var rsrvplce = model.getValue("/root/send/rgst/rsrvplce");
- var suppdeptcd = model.getValue("/root/send/rgst/suppdeptcd");
- var excuroomcd = model.getValue("/root/send/rgst/excuroomcd");
- var excucd = model.getValue("/root/send/rgst/excucd");
- var ctrlseq = model.getValue("/root/temp/rslt/ctrlseq");
-
- var cnt = instance1.selectNodes("/root/main/ctrllist/ctrlinfo").length;
- for (var i = 1; i <= cnt; i++) {
- if (rsrvplce == model.getValue("/root/main/ctrllist/ctrlinfo[" + i + "]/rsrvplce") &&
- suppdeptcd == model.getValue("/root/main/ctrllist/ctrlinfo[" + i + "]/suppdeptcd") &&
- excuroomcd == model.getValue("/root/main/ctrllist/ctrlinfo[" + i + "]/excuroomcd") &&
- excucd == model.getValue("/root/main/ctrllist/ctrlinfo[" + i + "]/excucd") &&
- ctrlseq == model.getValue("/root/main/ctrllist/ctrlinfo[" + i + "]/ctrlseq")) {
-
- grd_ctrl.row = i;
- grd_ctrl.bottomRow = i;
- break;
- }
- }
- }
-
- ]]>
- </script>
- </button>
- <button id="btn_itemmng" class="btn3_letter6" visibility="hidden" style="left:1033px; top:738px; width:104px; height:22px; ">
- <caption>제어항목관리</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- open("../../../pam/pambaseinfomngtweb/xrw/SMPMB03701_검사예약정보항목관리.xrw", "", "", "" ,"", "", "");
- ]]>
- </script>
- </button>
- <button id="btn_delterm" class="btn2_letter2" style="left:1088px; top:65px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var row = grd_ctrl.row;
-
- if (row < 1) {
- return;
- }
-
- if (messageBox("선택된 기본항목에 해당하는 모든 제어문이 삭제됩니다.\n삭제하시겠습니까?", "Q999") != 6) {
- return;
- }
-
- model.setValue("/root/send/term/rsrvplce", model.getValue("/root/main/ctrllist/ctrlinfo[" + row + "]/rsrvplce"));
- model.setValue("/root/send/term/suppdeptcd", model.getValue("/root/main/ctrllist/ctrlinfo[" + row + "]/suppdeptcd"));
- model.setValue("/root/send/term/excuroomcd", model.getValue("/root/main/ctrllist/ctrlinfo[" + row + "]/excuroomcd"));
- model.setValue("/root/send/term/excucd", model.getValue("/root/main/ctrllist/ctrlinfo[" + row + "]/excucd"));
- model.setValue("/root/send/term/ctrlseq", model.getValue("/root/main/ctrllist/ctrlinfo[" + row + "]/ctrlseq"));
-
- submit("TXPMB03705");
-
- fSearchTerms();
- ]]>
- </script>
- </button>
- <button id="btn_newrgst" class="btn2_letter4" style="left:551px; top:320px; width:64px; height:19px; ">
- <caption>신규등록</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- fSetRgstStatus(true);
-
- fClearValues();
-
- CURR_PLCE = "";
- CURR_DEPT = "";
- CURR_ROOM = "";
- CURR_CODE = "";
-
- model.setValue("/root/send/rgst/ctrlseq", "");
-
- model.setValue("/root/send/rgst/ctrldesc", "");
- tar_rgstdesc.refresh();
-
- model.resetInstanceNode("/root/send/rgst/terminfo");
- grd_rgst.refresh();
-
- grd_ctrl.focusColor = "#ece1ec";
- grd_ctrl.rebuildStyle();
- ]]>
- </script>
- </button>
- <button id="btn_delrgst" class="btn2_letter2" style="left:1153px; top:320px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var rpath = "/root/send/rgst/terminfo";
- var tpath = "/root/temp/templist/terminfo";
-
- var row = grd_rgst.row;
- var cnt = instance1.selectNodes(rpath).length;
- var idx = 1;
-
- for (var i = 1; i <= cnt; i++) {
-
- if (i == row) {
-
- var inflag = model.getValue(rpath + "[" + i + "]/inflag");
-
- if (inflag == "S") {
- if (model.getValue(rpath + "[" + ( i + 1 ) + "]/inflag") == "E") { // 다음 항목이 포함 종료일 경우
- // 포함 조건을 일반 조건으로 변경
- if (model.getValue(rpath + "[" + i + "]/opcode") == "IN") {
- model.setValue(rpath + "[" + ( i + 1 ) + "]/opcode", "EQ");
- } else if (model.getValue(rpath + "[" + i + "]/opcode") == "NI") {
- model.setValue(rpath + "[" + ( i + 1 ) + "]/opcode", "NE");
- }
- model.setValue(rpath + "[" + ( i + 1 ) + "]/inflag", "");
- } else {
- // 시작 flag 이동
- model.setValue(rpath + "[" + ( i + 1 ) + "]/inflag", "S");
- }
- } else if (inflag == "E") {
- if (model.getValue(rpath + "[" + ( i - 1 ) + "]/inflag") == "S") { // 이전 항목이 포함 시작일 경우
- // 포함 조건을 일반 조건으로 변경
- if (model.getValue(rpath + "[" + i + "]/opcode") == "IN") {
- model.setValue(tpath + "[" + ( idx - 1 ) + "]/opcode", "EQ");
- } else if (model.getValue(rpath + "[" + i + "]/opcode") == "NI") {
- model.setValue(tpath + "[" + ( idx - 1 ) + "]/opcode", "NE");
- }
- model.setValue(tpath + "[" + ( idx - 1 ) + "]/inflag", "");
- } else {
- // 종료 flag 이동
- model.setValue(tpath + "[" + ( idx - 1 ) + "]/inflag", "E");
- }
- }
-
- continue;
- }
-
- model.makeValue(tpath + "[" + idx + "]/ctrlseq", model.getValue(rpath + "[" + i + "]/ctrlseq"));
- model.makeValue(tpath + "[" + idx + "]/termseq", idx);
- model.makeValue(tpath + "[" + idx + "]/itemtype", model.getValue(rpath + "[" + i + "]/itemtype"));
- model.makeValue(tpath + "[" + idx + "]/itemseq", model.getValue(rpath + "[" + i + "]/itemseq"));
- model.makeValue(tpath + "[" + idx + "]/itemnm", model.getValue(rpath + "[" + i + "]/itemnm"));
- model.makeValue(tpath + "[" + idx + "]/opcode", model.getValue(rpath + "[" + i + "]/opcode"));
- model.makeValue(tpath + "[" + idx + "]/valtype", model.getValue(rpath + "[" + i + "]/valtype"));
- model.makeValue(tpath + "[" + idx + "]/val", model.getValue(rpath + "[" + i + "]/val"));
- model.makeValue(tpath + "[" + idx + "]/valnm", model.getValue(rpath + "[" + i + "]/valnm"));
- model.makeValue(tpath + "[" + idx + "]/inflag", model.getValue(rpath + "[" + i + "]/inflag"));
-
- idx++;
- }
-
- cnt = instance1.selectNodes(tpath).length;
-
- model.resetInstanceNode(rpath);
-
- for (var i = 1; i <= cnt; i++) {
- model.makeValue(rpath + "[" + i + "]/ctrlseq", model.getValue(tpath + "[" + i + "]/ctrlseq"));
- model.makeValue(rpath + "[" + i + "]/termseq", model.getValue(tpath + "[" + i + "]/termseq"));
- model.makeValue(rpath + "[" + i + "]/itemtype", model.getValue(tpath + "[" + i + "]/itemtype"));
- model.makeValue(rpath + "[" + i + "]/itemseq", model.getValue(tpath + "[" + i + "]/itemseq"));
- model.makeValue(rpath + "[" + i + "]/itemnm", model.getValue(tpath + "[" + i + "]/itemnm"));
- model.makeValue(rpath + "[" + i + "]/opcode", model.getValue(tpath + "[" + i + "]/opcode"));
- model.makeValue(rpath + "[" + i + "]/valtype", model.getValue(tpath + "[" + i + "]/valtype"));
- model.makeValue(rpath + "[" + i + "]/val", model.getValue(tpath + "[" + i + "]/val"));
- model.makeValue(rpath + "[" + i + "]/valnm", model.getValue(tpath + "[" + i + "]/valnm"));
- model.makeValue(rpath + "[" + i + "]/inflag", model.getValue(tpath + "[" + i + "]/inflag"));
- }
-
- model.removenode("/root/temp/templist");
-
- grd_rgst.refresh();
- ]]>
- </script>
- </button>
- <button id="btn_up" visibility="hidden" style="left:1099px; top:320px; width:26px; height:19px; background-image:../../../com/commonweb/images/btn_send_up.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var row = grd_rgst.row;
-
- if (row < 2) {
- return;
- }
-
- var rpath = "/root/send/rgst/terminfo";
- var tpath = "/root/temp/templist/terminfo";
-
- var cnt = instance1.selectNodes(rpath).length;
- var idx = 1;
-
- for (var i = 1; i <= cnt; i++) {
-
- if (i == row - 1) {
- idx = i + 1;
- } else if (i == row) {
- idx = i - 1;
- } else {
- idx = i;
- }
-
- model.makeValue(tpath + "[" + i + "]/ctrlseq", model.getValue(rpath + "[" + idx + "]/ctrlseq"));
- model.makeValue(tpath + "[" + i + "]/termseq", i);
- model.makeValue(tpath + "[" + i + "]/itemtype", model.getValue(rpath + "[" + idx + "]/itemtype"));
- model.makeValue(tpath + "[" + i + "]/itemseq", model.getValue(rpath + "[" + idx + "]/itemseq"));
- model.makeValue(tpath + "[" + i + "]/itemnm", model.getValue(rpath + "[" + idx + "]/itemnm"));
- model.makeValue(tpath + "[" + i + "]/opcode", model.getValue(rpath + "[" + idx + "]/opcode"));
- model.makeValue(tpath + "[" + i + "]/valtype", model.getValue(rpath + "[" + idx + "]/valtype"));
- model.makeValue(tpath + "[" + i + "]/val", model.getValue(rpath + "[" + idx + "]/val"));
- model.makeValue(tpath + "[" + i + "]/valnm", model.getValue(rpath + "[" + idx + "]/valnm"));
- model.makeValue(tpath + "[" + i + "]/inflag", model.getValue(rpath + "[" + idx + "]/inflag"));
- }
-
- cnt = instance1.selectNodes(tpath).length;
-
- model.resetInstanceNode(rpath);
-
- for (var i = 1; i <= cnt; i++) {
- model.makeValue(rpath + "[" + i + "]/ctrlseq", model.getValue(tpath + "[" + i + "]/ctrlseq"));
- model.makeValue(rpath + "[" + i + "]/termseq", model.getValue(tpath + "[" + i + "]/termseq"));
- model.makeValue(rpath + "[" + i + "]/itemtype", model.getValue(tpath + "[" + i + "]/itemtype"));
- model.makeValue(rpath + "[" + i + "]/itemseq", model.getValue(tpath + "[" + i + "]/itemseq"));
- model.makeValue(rpath + "[" + i + "]/itemnm", model.getValue(tpath + "[" + i + "]/itemnm"));
- model.makeValue(rpath + "[" + i + "]/opcode", model.getValue(tpath + "[" + i + "]/opcode"));
- model.makeValue(rpath + "[" + i + "]/valtype", model.getValue(tpath + "[" + i + "]/valtype"));
- model.makeValue(rpath + "[" + i + "]/val", model.getValue(tpath + "[" + i + "]/val"));
- model.makeValue(rpath + "[" + i + "]/valnm", model.getValue(tpath + "[" + i + "]/valnm"));
- model.makeValue(rpath + "[" + i + "]/inflag", model.getValue(tpath + "[" + i + "]/inflag"));
- }
-
- model.removenode("/root/temp/templist");
-
- grd_rgst.refresh();
-
- grd_rgst.row = row - 1;
-
- ]]>
- </script>
- </button>
- <button id="btn_down" visibility="hidden" style="left:1126px; top:320px; width:26px; height:19px; background-image:../../../com/commonweb/images/btn_send_down.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var row = grd_rgst.row;
-
- var rpath = "/root/send/rgst/terminfo";
- var tpath = "/root/temp/templist/terminfo";
-
- var cnt = instance1.selectNodes(rpath).length;
-
- if (row == cnt) {
- return;
- }
-
- var idx = 1;
-
- for (var i = 1; i <= cnt; i++) {
-
- if (i == row + 1) {
- idx = i - 1;
- } else if (i == row) {
- idx = i + 1;
- } else {
- idx = i;
- }
-
- model.makeValue(tpath + "[" + i + "]/ctrlseq", model.getValue(rpath + "[" + idx + "]/ctrlseq"));
- model.makeValue(tpath + "[" + i + "]/termseq", i);
- model.makeValue(tpath + "[" + i + "]/itemtype", model.getValue(rpath + "[" + idx + "]/itemtype"));
- model.makeValue(tpath + "[" + i + "]/itemseq", model.getValue(rpath + "[" + idx + "]/itemseq"));
- model.makeValue(tpath + "[" + i + "]/itemnm", model.getValue(rpath + "[" + idx + "]/itemnm"));
- model.makeValue(tpath + "[" + i + "]/opcode", model.getValue(rpath + "[" + idx + "]/opcode"));
- model.makeValue(tpath + "[" + i + "]/valtype", model.getValue(rpath + "[" + idx + "]/valtype"));
- model.makeValue(tpath + "[" + i + "]/val", model.getValue(rpath + "[" + idx + "]/val"));
- model.makeValue(tpath + "[" + i + "]/valnm", model.getValue(rpath + "[" + idx + "]/valnm"));
- model.makeValue(tpath + "[" + i + "]/inflag", model.getValue(rpath + "[" + idx + "]/inflag"));
- }
-
- cnt = instance1.selectNodes(tpath).length;
-
- model.resetInstanceNode(rpath);
-
- for (var i = 1; i <= cnt; i++) {
- model.makeValue(rpath + "[" + i + "]/ctrlseq", model.getValue(tpath + "[" + i + "]/ctrlseq"));
- model.makeValue(rpath + "[" + i + "]/termseq", model.getValue(tpath + "[" + i + "]/termseq"));
- model.makeValue(rpath + "[" + i + "]/itemtype", model.getValue(tpath + "[" + i + "]/itemtype"));
- model.makeValue(rpath + "[" + i + "]/itemseq", model.getValue(tpath + "[" + i + "]/itemseq"));
- model.makeValue(rpath + "[" + i + "]/itemnm", model.getValue(tpath + "[" + i + "]/itemnm"));
- model.makeValue(rpath + "[" + i + "]/opcode", model.getValue(tpath + "[" + i + "]/opcode"));
- model.makeValue(rpath + "[" + i + "]/valtype", model.getValue(tpath + "[" + i + "]/valtype"));
- model.makeValue(rpath + "[" + i + "]/val", model.getValue(tpath + "[" + i + "]/val"));
- model.makeValue(rpath + "[" + i + "]/valnm", model.getValue(tpath + "[" + i + "]/valnm"));
- model.makeValue(rpath + "[" + i + "]/inflag", model.getValue(tpath + "[" + i + "]/inflag"));
- }
-
- model.removenode("/root/temp/templist");
-
- grd_rgst.refresh();
-
- grd_rgst.row = row + 1;
- ]]>
- </script>
- </button>
- <caption id="caption4" class="cell_1" style="left:625px; top:630px; width:58px; height:105px; text-align:left; ">제어설명</caption>
- <textarea id="tar_rgstdesc" ref="/root/send/rgst/ctrldesc" scroll="autovscroll" maxbyte="4000" style="left:684px; top:630px; width:510px; height:105px; padding:5; "/>
- <caption id="caption14" class="tit_2" style="left:0px; top:325px; width:142px; height:13px; font-weight:bold; ">
- <![CDATA[제어문 등록 & 수정]]>
- </caption>
- <group id="group2" style="left:0px; top:392px; width:615px; height:368px; background-color:#fffbf2; border-color:#ffd799; border-style:solid; ">
- <caption id="cap_valnm" ref="/root/temp/term/valnm" style="left:209px; top:337px; width:345px; height:20px; text-align:center; background-color:#ffffa0; border-color:#999999; border-style:solid; "/>
- <group id="grp_ref" visibility="hidden" style="left:209px; top:29px; width:125px; height:300px; background-color:#fffbf2; border-color:#c0c0c0; border-style:solid; ">
- <select id="chk_ref" ref="/root/hidden/valtype/refyn" disabled="true" overflow="visible" appearance="full" style="left:5px; top:5px; width:70px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>참조 항목</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetTypeChk("R", chk_ref.value);
- ]]>
- </script>
- </select>
- <caption id="cap_addval" visibility="hidden" style="left:4px; top:278px; width:25px; height:15px; ">+/-</caption>
- <input id="ipt_addval" ref="/root/temp/addval" visibility="hidden" style="left:30px; top:275px; width:44px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if (event.keyCode == "13") {
- model.setValue("/root/temp/addval", ipt_addval.currentText);
- ipt_addval.refresh();
- btn_addipt.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <button id="btn_addipt" class="btn2_letter2" visibility="hidden" style="left:77px; top:275px; width:42px; height:19px; ">
- <caption>입력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var val = model.getValue("/root/temp/addval");
-
- var iVal = parseInt(val);
-
- if (String(iVal) == "NaN") {
- messageBox("가산 값은 숫자만 입력할 수 있습니다.", "E999");
- model.setValue("/root/temp/addval", "");
- ipt_addval.refresh();
- model.setFocus("ipt_addval");
- return;
- }
-
- if (iVal >= 0) {
- val = " +" + val;
- } else {
- val = " " + val;
- }
-
- model.setValue("/root/temp/term/val", grd_ref.valueMatrix(grd_ref.row, grd_ref.colRef("valid")) + val);
- model.setValue("/root/temp/term/valnm", grd_ref.valueMatrix(grd_ref.row, grd_ref.colRef("itemnm")) + val);
- cap_valnm.hint = model.getValue("/root/temp/term/valnm");
- cap_valnm.refresh();
-
- ]]>
- </script>
- </button>
- <datagrid id="grd_ref" nodeset="/root/temp/reflist/refinfo" visibility="hidden" allowselection="false" backcoloralternate="transparent" colsep="^" colwidth="0, 0, 100" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:4px; top:25px; width:115px; height:246px; ">
- <col ref="itemseq" visibility="hidden"/>
- <col ref="valid" visibility="hidden"/>
- <col ref="itemnm"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- if (!grd_ref.isCell(event.target)) {
- return;
- }
-
- var val = model.getValue("/root/temp/addval");
-
- var iVal = parseInt(val);
-
- if (String(iVal) == "NaN") {
- val = "";
- } else {
- if (iVal >= 0) {
- val = " +" + val;
- } else {
- val = " " + val;
- }
- }
-
- model.setValue("/root/temp/term/val", grd_ref.valueMatrix(grd_ref.row, grd_ref.colRef("valid")) + val);
- model.setValue("/root/temp/term/valnm", grd_ref.valueMatrix(grd_ref.row, grd_ref.colRef("itemnm")) + val);
- cap_valnm.hint = model.getValue("/root/temp/term/valnm");
- cap_valnm.refresh();
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="grp_drct" style="left:209px; top:29px; width:190px; height:50px; background-color:#fffbf2; border-color:#c0c0c0; border-style:solid; ">
- <select id="chk_drct" ref="/root/hidden/valtype/drctyn" disabled="true" overflow="visible" appearance="full" style="left:5px; top:5px; width:75px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>직접 입력</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetTypeChk("D", chk_drct.value);
- ]]>
- </script>
- </select>
- <input id="ipt_drct" ref="/root/temp/iptval/valnm" visibility="hidden" style="left:5px; top:25px; width:179px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if (event.keyCode == "13") {
- model.setValue("/root/temp/iptval/valnm", ipt_drct.currentText);
- ipt_drct.refresh();
- btn_drctipt.dispatch("DOMActivate");
- }
- ]]>
- </script>
- </input>
- <button id="btn_drctipt" class="btn2_letter2" visibility="hidden" style="left:142px; top:4px; width:42px; height:19px; ">
- <caption>입력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- model.setValue("/root/temp/iptval/val", model.getValue("/root/temp/iptval/valnm"));
-
- model.setValue("/root/temp/term/val", model.getValue("/root/temp/iptval/val"));
- model.setValue("/root/temp/term/valnm", model.getValue("/root/temp/iptval/valnm"));
-
- model.setValue("/root/temp/iptval/val", "");
- model.setValue("/root/temp/iptval/valnm", "");
- ipt_drct.hint = "";
- ipt_drct.refresh();
-
- cap_valnm.hint = model.getValue("/root/temp/term/valnm");
-
- cap_valnm.refresh();
- ]]>
- </script>
- </button>
- </group>
- <datagrid id="grd_item" allowselection="false" backcoloralternate="transparent" colsep="^" colwidth="0, 0, 0, 0, 0, 0, 0, 100" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:9px; top:84px; width:115px; height:245px; ">
- <col ref="itemtype" visibility="hidden"/>
- <col ref="itemseq" visibility="hidden"/>
- <col ref="valtype" visibility="hidden"/>
- <col ref="addflag" visibility="hidden"/>
- <col ref="valid" visibility="hidden"/>
- <col ref="srchcd" visibility="hidden"/>
- <col ref="valseqarr" visibility="hidden"/>
- <col ref="itemnm"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- if (!grd_item.isCell(event.target)) {
- return;
- }
-
- // 조건 값 초기화
- model.resetInstanceNode("/root/temp/reflist/refinfo");
- grd_ref.refresh();
-
- model.setValue("/root/temp/addval", "");
- ipt_addval.refresh();
-
- model.setValue("/root/temp/iptval/val", "");
- model.setValue("/root/temp/iptval/valnm", "");
- ipt_drct.refresh();
-
- model.resetInstanceNode("/root/temp/enumlist/enuminfo");
- rdo_enum.refresh();
-
- model.setValue("/root/temp/enumval/val", "");
- model.setValue("/root/temp/enumval/valnm", "");
- rdo_enum.refresh();
-
- model.resetInstanceNode("/root/temp/srchlist/srchinfo");
- grd_srch.refresh();
-
- model.resetInstanceNode("/root/temp/term");
-
- cap_opnm.refresh();
- cap_valnm.refresh();
-
- model.setValue("/root/temp/term/itemtype", grd_item.valueMatrix(grd_item.row, grd_item.colRef("itemtype")));
- model.setValue("/root/temp/term/itemseq", grd_item.valueMatrix(grd_item.row, grd_item.colRef("itemseq")));
- model.setValue("/root/temp/term/itemnm", grd_item.valueMatrix(grd_item.row, grd_item.colRef("itemnm")));
- model.setValue("/root/temp/term/srchcd", grd_item.valueMatrix(grd_item.row, grd_item.colRef("srchcd")));
-
- cap_item.refresh();
-
- // 값 형식 설정
- var valtype = grd_item.valueMatrix(grd_item.row, grd_item.colRef("valtype"));
- fSetValType(valtype);
-
- // 가산 여부 저장
- model.setValue("/root/hidden/addflag", grd_item.valueMatrix(grd_item.row, grd_item.colRef("addflag")));
-
- // 참조 및 열거형 값목록 세팅
- model.resetInstanceNode("/root/temp/reflist/refinfo");
- model.resetInstanceNode("/root/temp/enumlist/enuminfo");
-
- var cnt = instance1.selectNodes("/root/main/itemlist/iteminfo").length;
-
- var valseq = grd_item.valueMatrix(grd_item.row, grd_item.colRef("valseqarr"));
- var vsarr = valseq.split(",");
- var ridx = 1;
- var eidx = 1;
-
- for (var i = 0; i < vsarr.length; i++) {
-
- var vseq = vsarr[i];
-
- for (var j = 1; j <= cnt; j++) {
- if (model.getValue("/root/main/itemlist/iteminfo[" + j + "]/itemseq") == vseq) {
-
- var itype = model.getValue("/root/main/itemlist/iteminfo[" + j + "]/itemtype");
- var itemnm = model.getValue("/root/main/itemlist/iteminfo[" + j + "]/itemnm")
- var valid = model.getValue("/root/main/itemlist/iteminfo[" + j + "]/valid")
-
- if (itype == "R") {
- model.makeValue("/root/temp/reflist/refinfo[" + ridx + "]/itemseq", vseq);
- model.makeValue("/root/temp/reflist/refinfo[" + ridx + "]/valid", valid);
- model.makeValue("/root/temp/reflist/refinfo[" + ridx + "]/itemnm", itemnm);
- ridx++;
- } else if (itype == "E") {
- model.makeValue("/root/temp/enumlist/enuminfo[" + eidx + "]/itemseq", vseq);
- model.makeValue("/root/temp/enumlist/enuminfo[" + eidx + "]/itemnm", itemnm);
- eidx++;
- }
- }
- }
- }
-
- grd_ref.refresh();
- rdo_enum.refresh();
-
- // 첫번째 연산 항목 선택
- grd_opcode.row = 0;
- model.setValue("/root/temp/term/opcode", grd_opcode.valueMatrix(0, grd_opcode.colRef("cd")));
- model.setValue("/root/temp/term/opnm", grd_opcode.valueMatrix(0, grd_opcode.colRef("nm")));
- cap_opnm.refresh();
-
- ]]>
- </script>
- </datagrid>
- <caption id="cap_opnm" ref="/root/temp/term/opnm" style="left:134px; top:337px; width:65px; height:20px; text-align:center; background-color:#ffffa0; border-color:#999999; border-style:solid; "/>
- <caption id="cap_item" ref="/root/temp/term/itemnm" style="left:9px; top:337px; width:115px; height:20px; text-align:center; background-color:#ffffa0; border-color:#999999; border-style:solid; "/>
- <datagrid id="grd_opcode" allowselection="false" backcoloralternate="transparent" colsep="^" colwidth="0, 50" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:134px; top:29px; width:65px; height:300px; ">
- <col ref="cd" visibility="hidden"/>
- <col ref="nm" style="text-align:center; "/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
-
- if (!grd_opcode.isCell(event.target)) {
- return;
- }
-
- var valtype = grd_item.valueMatrix(grd_item.row, grd_item.colRef("valtype"))
-
- var opcode = grd_opcode.valueMatrix(grd_opcode.row, grd_opcode.colRef("cd"));
-
- model.setValue("/root/temp/term/opcode", opcode);
- model.setValue("/root/temp/term/opnm", grd_opcode.valueMatrix(grd_opcode.row, grd_opcode.colRef("nm")));
- cap_opnm.refresh();
-
- // 열거형 타입이 있는 경우, 연산자에 따라 Radio, Check 변경
- if (valtype.indexOf("E") > 0) {
-
- var chkyn = model.getValue("/root/hidden/valtype/enumyn");
-
- if (opcode == "IN" || opcode == "NI") {
-
- chk_enumarr.visible = chkyn == "Y" ? true : false;
- rdo_enum.visible = false;
-
- } else {
-
- var val = model.getValue("/root/temp/enumval/val");
- if (val.length > 0) {
- val = val.split(" ")[0];
-
- var valnm = model.getValue("/root/main/itemlist/iteminfo[itemseq = '" + val + "']/itemnm");
-
- model.setValue("/root/temp/enumval/val", val);
- model.setValue("/root/temp/enumval/valnm", valnm);
- rdo_enum.refresh();
- chk_enumarr.refresh();
-
- model.setValue("/root/temp/term/val", val);
- model.setValue("/root/temp/term/valnm", valnm);
- cap_valnm.refresh();
- }
-
- chk_enumarr.visible = false;
- rdo_enum.visible = chkyn == "Y" ? true : false;
- }
- } else {
-
- }
- ]]>
- </script>
- </datagrid>
- <group id="grp_enum" style="left:209px; top:89px; width:190px; height:240px; background-color:#fffbf2; border-color:#c0c0c0; border-style:solid; ">
- <select id="chk_enum" ref="/root/hidden/valtype/enumyn" disabled="true" overflow="visible" appearance="full" style="left:5px; top:5px; width:70px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>열거 항목</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetTypeChk("E", chk_enum.value);
- ]]>
- </script>
- </select>
- <select1 id="rdo_enum" ref="/root/temp/enumval/val" visibility="hidden" appearance="full" cols="1" rows="100" vcellspacing="5" overflow="scroll" style="left:9px; top:29px; width:170px; height:205px; ">
- <choices>
- <itemset nodeset="/root/temp/enumlist/enuminfo">
- <label ref="itemnm"/>
- <value ref="itemseq"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- var valid = model.getValue("/root/main/itemlist/iteminfo[itemseq = '" + rdo_enum.value + "']/valid");
-
- model.setValue("/root/temp/term/val", valid);
- model.setValue("/root/temp/term/valnm", rdo_enum.label);
- cap_valnm.refresh();
- ]]>
- </script>
- </select1>
- <select id="chk_enumarr" ref="/root/temp/enumval/val" visibility="hidden" overflow="visible" appearance="full" cols="1" rows="100" vcellspacing="5" style="left:9px; top:134px; width:170px; height:100px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/temp/enumlist/enuminfo">
- <label ref="itemnm"/>
- <value ref="itemseq"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- var valid = model.getValue("/root/temp/enumval/val");
- var valarr = valid.split(" ");
-
- valid = "";
- var valnm = "";
-
- for (var i = 0; i < valarr.length; i++) {
-
- valid += model.getValue("/root/main/itemlist/iteminfo[itemseq = '" + valarr[i] + "']/valid");
- valnm += model.getValue("/root/main/itemlist/iteminfo[itemseq = '" + valarr[i] + "']/itemnm");
-
- if (i < valarr.length - 1) {
- valid += ",";
- valnm += ",";
- }
- }
-
- model.setValue("/root/temp/term/val", valid);
- model.setValue("/root/temp/term/valnm", valnm);
- cap_valnm.refresh();
- ]]>
- </script>
- </select>
- </group>
- <caption id="caption5" class="tit_2" style="left:134px; top:9px; width:51px; height:13px; ">연산</caption>
- <caption id="caption6" class="tit_2" style="left:209px; top:9px; width:39px; height:13px; ">값</caption>
- <caption id="caption16" class="tit_2" style="left:9px; top:64px; width:74px; height:13px; ">항목</caption>
- <caption id="cap_grid" class="tit_2" style="left:9px; top:9px; width:49px; height:13px; ">구분</caption>
- <button id="btn_add" class="btn2_letter2" style="left:562px; top:337px; width:42px; height:19px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- if (model.getValue("/root/temp/term/itemseq") == "") {
- messageBox("항목이 설정되지 않았습니다.", "E999");
- return;
- }
-
- if (model.getValue("/root/temp/term/opcode") == "") {
- messageBox("연산자가 설정되지 않았습니다.", "E999");
- return;
- }
-
- if (model.getValue("/root/temp/term/itemtype") != "C" && model.getValue("/root/temp/term/valnm") == "") {
- messageBox("값이 설정되지 않았습니다.", "E999");
- return;
- }
-
- var idx = instance1.selectNodes("/root/send/rgst/terminfo[termseq != '']").length + 1;
-
- var opcode = model.getValue("/root/temp/term/opcode");
-
- if (opcode == "IN" || opcode == "NI") {
-
- var inflag = "";
-
- var valtype = model.getValue("/root/temp/term/valtype");
-
- if (valtype == "E") {
-
- var valarr = model.getValue("/root/temp/term/val").split(",");
- var valnmarr = model.getValue("/root/temp/term/valnm").split(",");
-
- for (var i = 0; i < valarr.length; i++) {
-
- if (i == 0) {
- inflag = "S";
- } else if (i == valarr.length - 1) {
- inflag = "E";
- } else {
- inflag = "";
- }
-
- model.makeValue("/root/send/rgst/terminfo[" + idx + "]/ctrlseq", model.getValue("/root/temp/term/ctrlseq"));
- model.makeValue("/root/send/rgst/terminfo[" + idx + "]/termseq", idx);
- model.makeValue("/root/send/rgst/terminfo[" + idx + "]/itemtype", model.getValue("/root/temp/term/itemtype"));
- model.makeValue("/root/send/rgst/terminfo[" + idx + "]/itemseq", model.getValue("/root/temp/term/itemseq"));
- model.makeValue("/root/send/rgst/terminfo[" + idx + "]/itemnm", model.getValue("/root/temp/term/itemnm"));
- model.makeValue("/root/send/rgst/terminfo[" + idx + "]/opcode", opcode);
- model.makeValue("/root/send/rgst/terminfo[" + idx + "]/valtype", model.getValue("/root/temp/term/valtype"));
- model.makeValue("/root/send/rgst/terminfo[" + idx + "]/val", valarr[i]);
- model.makeValue("/root/send/rgst/terminfo[" + idx + "]/valnm", valnmarr[i]);
- model.makeValue("/root/send/rgst/terminfo[" + idx + "]/inflag", inflag);
-
- idx++;
- }
-
- } else if (valtype == "S") {
-
- var cnt = instance1.selectNodes("/root/temp/srchlist/srchinfo").length;
-
- // 이내, 혹은 이외 이지만 건수가 1개밖에 없을 경우, 일치 혹은 불일치로 변경
- if (cnt == 1) {
- if (opcode == "IN") {
- opcode = "EQ";
- } else if (opcode == "NI") {
- opcode = "NE";
- }
- }
-
- for (var i = 1; i <= cnt; i++) {
-
- if (i == 1) {
- inflag = "S";
- } else if (i == cnt) {
- inflag = "E";
- } else {
- inflag = "";
- }
-
- model.makeValue("/root/send/rgst/terminfo[" + idx + "]/ctrlseq", model.getValue("/root/temp/term/ctrlseq"));
- model.makeValue("/root/send/rgst/terminfo[" + idx + "]/termseq", idx);
- model.makeValue("/root/send/rgst/terminfo[" + idx + "]/itemtype", model.getValue("/root/temp/term/itemtype"));
- model.makeValue("/root/send/rgst/terminfo[" + idx + "]/itemseq", model.getValue("/root/temp/term/itemseq"));
- model.makeValue("/root/send/rgst/terminfo[" + idx + "]/itemnm", model.getValue("/root/temp/term/itemnm"));
- model.makeValue("/root/send/rgst/terminfo[" + idx + "]/opcode", opcode);
- model.makeValue("/root/send/rgst/terminfo[" + idx + "]/valtype", model.getValue("/root/temp/term/valtype"));
- model.makeValue("/root/send/rgst/terminfo[" + idx + "]/val", model.getValue("/root/temp/srchlist/srchinfo[" + i + "]/val"));
- model.makeValue("/root/send/rgst/terminfo[" + idx + "]/valnm", model.getValue("/root/temp/srchlist/srchinfo[" + i + "]/valnm"));
- model.makeValue("/root/send/rgst/terminfo[" + idx + "]/inflag", inflag);
-
- idx++;
- }
- }
- } else {
-
- model.makeValue("/root/send/rgst/terminfo[" + idx + "]/ctrlseq", model.getValue("/root/temp/term/ctrlseq"));
- model.makeValue("/root/send/rgst/terminfo[" + idx + "]/termseq", idx);
- model.makeValue("/root/send/rgst/terminfo[" + idx + "]/itemtype", model.getValue("/root/temp/term/itemtype"));
- model.makeValue("/root/send/rgst/terminfo[" + idx + "]/itemseq", model.getValue("/root/temp/term/itemseq"));
- model.makeValue("/root/send/rgst/terminfo[" + idx + "]/itemnm", model.getValue("/root/temp/term/itemnm"));
- model.makeValue("/root/send/rgst/terminfo[" + idx + "]/opcode", opcode);
- model.makeValue("/root/send/rgst/terminfo[" + idx + "]/valtype", model.getValue("/root/temp/term/valtype"));
- model.makeValue("/root/send/rgst/terminfo[" + idx + "]/val", model.getValue("/root/temp/term/val"));
- model.makeValue("/root/send/rgst/terminfo[" + idx + "]/valnm", model.getValue("/root/temp/term/valnm"));
- model.makeValue("/root/send/rgst/terminfo[" + idx + "]/inflag", "");
- }
-
- grd_rgst.refresh();
- grd_rgst.resizeCells();
-
- fClearValues();
- ]]>
- </script>
- </button>
- <select1 id="rdo_itemtype" ref="/root/temp/term/itemtype" appearance="full" cellspacing="5" cols="2" overflow="visible" style="left:9px; top:29px; width:100px; height:20px; border-style:none; ">
- <choices>
- <itemset nodeset="/root/init/itemtype/typeinfo">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var itemtype = model.getValue("/root/temp/term/itemtype");
-
- grd_item.nodeset = "/root/main/itemlist/iteminfo[itemtype = '" + itemtype + "']";
-
- // 항목 및 연산 코드 설정
- if (itemtype == "R") {
-
- grd_opcode.nodeset = "/root/init/opcode/cdinfo[rflag='Y']";
-
-
- } else if (itemtype == "C") {
-
- grd_opcode.nodeset = "/root/init/opcode/cdinfo[cflag='Y']";
-
- }
-
- // 값 형식 초기화
- fSetValType("");
-
- ]]>
- </script>
- </select1>
- <group id="grp_srch" style="left:409px; top:29px; width:195px; height:300px; background-color:#fffbf2; border-color:#c0c0c0; border-style:solid; ">
- <select id="chk_srch" ref="/root/hidden/valtype/srchyn" disabled="true" overflow="visible" appearance="full" style="left:5px; top:5px; width:70px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>조회 입력</label>
- <value>Y</value>
- </item>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fSetTypeChk("S", chk_srch.value);
- ]]>
- </script>
- </select>
- <button id="btn_srch" class="icon_search" visibility="hidden" style="left:79px; top:6px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- setParameter("SMPMB03702_srchcd", model.getValue("/root/temp/term/srchcd"));
- setParameter("SMPMB03702_opcode", model.getValue("/root/temp/term/opcode"));
- modal("SMPMB03702");
-
- grd_srch.refresh();
- grd_srch.resizeCells();
-
- var cnt = instance1.selectNodes("/root/temp/srchlist/srchinfo").length;
-
- if (model.getValue("/root/temp/term/opcode") != "IN" &&
- model.getValue("/root/temp/term/opcode") != "NI" &&
- cnt > 1) {
-
- messageBox("2개 이상의 조회 항목은 연산을 [이내], 혹은 [이외]로 지정해햐 합니다.", "E999");
- return;
- }
-
- ]]>
- </script>
- </button>
- <button id="btn_srchipt" class="btn2_letter2" visibility="hidden" style="left:147px; top:4px; width:42px; height:19px; ">
- <caption>입력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- var cnt = instance1.selectNodes("/root/temp/srchlist/srchinfo").length;
-
- if (cnt < 1) {
- return;
- }
-
- if (model.getValue("/root/temp/term/opcode") != "IN" &&
- model.getValue("/root/temp/term/opcode") != "NI" &&
- cnt > 1) {
-
- messageBox("2개 이상의 조회 항목은 연산을 [이내], 혹은 [이외]로 지정해햐 합니다.", "E999");
- return;
- }
-
- var valnm = model.getValue("/root/temp/srchlist/srchinfo/valnm");
-
- if (cnt > 1) {
- valnm += " 외 " + ( cnt - 1 ) + " 건";
- }
-
- model.setValue("/root/temp/term/val", model.getValue("/root/temp/srchlist/srchinfo/val"));
- model.setValue("/root/temp/term/valnm", valnm);
-
- cap_valnm.hint = model.getValue("/root/temp/term/valnm");
-
- cap_valnm.refresh();
- ]]>
- </script>
- </button>
- <datagrid id="grd_srch" nodeset="/root/temp/srchlist/srchinfo" visibility="hidden" autoresize="true" colsep="^" colwidth="0, 150" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:4px; top:24px; width:185px; height:270px; ">
- <col ref="val"/>
- <col ref="valnm"/>
- </datagrid>
- <button id="btn_delsrch" class="btn2_letter2" visibility="hidden" style="left:104px; top:4px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_srch.deleteRow(grd_srch.row, true);
- ]]>
- </script>
- </button>
- </group>
- </group>
- <caption id="cap_status" style="left:504px; top:323px; width:31px; height:15px; font-weight:bold; text-align:left; vertical-align:middle; ">등록</caption>
- <caption id="caption18" style="left:469px; top:323px; width:35px; height:15px; ">상태 :</caption>
- <line id="line1" class="line_1" style="x1:0px; y1:85px; x2:1195px; y2:85px; "/>
- <line id="line2" class="line_1" style="x1:625px; y1:340px; x2:1195px; y2:340px; "/>
- <caption id="caption8" class="cell_1" style="left:625px; top:739px; width:58px; height:21px; text-align:left; ">적용기간</caption>
- <caption id="caption11" style="left:774px; top:743px; width:15px; height:15px; text-align:center; ">~</caption>
- <input id="ipt_fromdd" ref="/root/send/rgst/fromdd" inputtype="date" style="left:684px; top:740px; width:90px; height:19px; "/>
- <input id="ipt_todd" ref="/root/send/rgst/todd" inputtype="date" style="left:788px; top:740px; width:90px; height:19px; "/>
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:20px; width:1195px; height:41px; background-color:#fffbf2; border-color:#ffd799; "/>
- <caption id="caption35" class="search_name" style="left:5px; top:33px; width:76px; height:17px; ">예약처 :</caption>
- <select1 id="cmb_rsrvplce" ref="/root/send/srch/rsrvplce" navindex="1" appearance="minimal" style="left:85px; top:31px; width:80px; height:19px; ">
- <choices>
- <item>
- <label>통합예약</label>
- <value>T</value>
- </item>
- <item>
- <label>병동</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- </choices>
- </select1>
- <caption id="caption1" class="search_name" style="left:180px; top:33px; width:86px; height:17px; ">수행부서 :</caption>
- <select1 id="cmb_deptcd" ref="/root/send/srch/suppdeptcd" navindex="2" appearance="minimal" style="left:270px; top:31px; width:140px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/deptlist/deptinfo">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- model.setValue("/root/send/srch/srchflag", "R");
- model.setValue("/root/send/srch/deptcd", model.getValue("/root/send/srch/suppdeptcd"));
-
- document.all("TRPMB03703").attribute("resultref") = "/root/init/srch/roomlist/roominfo";
-
- submit("TRPMB03703");
- addComboItem("cmb_roomcd", "전체", "T");
- cmb_roomcd.select(0);
-
- model.setValue("/root/send/srch/srchflag", "C");
- model.setValue("/root/send/srch/deptcd", model.getValue("/root/send/srch/suppdeptcd"));
- model.setValue("/root/send/srch/roomcd", "T");
-
- document.all("TRPMB03704").attribute("resultref") = "/root/init/srch/excdlist/excdinfo";
-
- submit("TRPMB03704");
- addComboItem("cmb_excucd", "전체", "T");
- cmb_excucd.select(0);
-
- ]]>
- </script>
- </select1>
- <caption id="caption2" class="search_name" style="left:425px; top:33px; width:74px; height:17px; ">검사실 :</caption>
- <select1 id="cmb_roomcd" ref="/root/send/srch/excuroomcd" navindex="3" appearance="minimal" style="left:505px; top:31px; width:140px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/srch/roomlist/roominfo">
- <label ref="roomnm"/>
- <value ref="roomcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="search_name" style="left:665px; top:33px; width:76px; height:17px; ">검사명 :</caption>
- <select1 id="cmb_excucd" ref="/root/send/srch/excucd" navindex="4" appearance="minimal" style="left:744px; top:31px; width:285px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/srch/excdlist/excdinfo">
- <label ref="excunm"/>
- <value ref="excucd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- cmb_excucd.hint = cmb_excucd.label;
- ]]>
- </script>
- </select1>
- <select1 id="cmb_newcdyn" ref="/root/send/srch/newcdyn" navindex="5" appearance="minimal" style="left:1038px; top:31px; width:70px; height:19px; ">
- <choices>
- <item>
- <label>신코드</label>
- <value>Y</value>
- </item>
- <item>
- <label>구코드</label>
- <value>N</value>
- </item>
- <item>
- <label>전체</label>
- <value>T</value>
- </item>
- </choices>
- </select1>
- <button id="btn_search" class="btn1_letter2" navindex="6" style="left:1130px; top:30px; width:56px; height:22px; background-image:../../../com/commonweb/images/btn1_letter2.gif; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSearchTerms();
- ]]>
- </script>
- </button>
- <line id="line13" style="x1:1120px; y1:30px; x2:1120px; y2:57px; border-color:#FFD799; border-left-style:solid; "/>
- <line id="line3" class="line_1" style="x1:0px; y1:340px; x2:615px; y2:340px; "/>
- <caption id="caption12" style="left:0px; top:347px; width:80px; height:20px; text-align:center; background-color:#cce8ff; ">예약처</caption>
- <select1 id="cmb_rgstplce" ref="/root/send/rgst/rsrvplce" appearance="minimal" style="left:0px; top:370px; width:80px; height:19px; background-color:#ffffa0; ">
- <choices>
- <item>
- <label>통합예약</label>
- <value>T</value>
- </item>
- <item>
- <label>병동</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- </choices>
- </select1>
- <caption id="caption13" style="left:81px; top:347px; width:120px; height:20px; text-align:center; background-color:#cce8ff; ">수행부서</caption>
- <select1 id="cmb_rgstdept" ref="/root/send/rgst/suppdeptcd" appearance="minimal" style="left:81px; top:370px; width:120px; height:19px; background-color:#ffffa0; ">
- <choices>
- <itemset nodeset="/root/init/deptlist/deptinfo">
- <label ref="deptnm"/>
- <value ref="deptcd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- model.setValue("/root/send/srch/srchflag", "R");
- model.setValue("/root/send/srch/deptcd", model.getValue("/root/send/rgst/suppdeptcd"));
-
- document.all("TRPMB03703").attribute("resultref") = "/root/init/rgst/roomlist/roominfo";
-
- submit("TRPMB03703");
- addComboItem("cmb_rgstroom", "전체", "T");
- cmb_rgstroom.select(0);
-
- model.setValue("/root/send/srch/srchflag", "C");
- model.setValue("/root/send/srch/deptcd", model.getValue("/root/send/rgst/suppdeptcd"));
- model.setValue("/root/send/srch/roomcd", "T");
-
- document.all("TRPMB03704").attribute("resultref") = "/root/init/rgst/excdlist/excdinfo";
-
- submit("TRPMB03704");
- addComboItem("cmb_rgstexcd", "전체", "T");
- cmb_rgstexcd.select(0);
-
- ]]>
- </script>
- </select1>
- <caption id="caption15" style="left:202px; top:347px; width:120px; height:20px; text-align:center; background-color:#cce8ff; ">검사실</caption>
- <select1 id="cmb_rgstroom" ref="/root/send/rgst/excuroomcd" appearance="minimal" style="left:202px; top:370px; width:120px; height:19px; background-color:#ffffa0; ">
- <choices>
- <itemset nodeset="/root/init/rgst/roomlist/roominfo">
- <label ref="roomnm"/>
- <value ref="roomcd"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption17" style="left:323px; top:347px; width:292px; height:20px; text-align:center; background-color:#cce8ff; ">검사명</caption>
- <select1 id="cmb_rgstexcd" ref="/root/send/rgst/excucd" appearance="minimal" style="left:323px; top:370px; width:292px; height:19px; background-color:#ffffa0; ">
- <choices>
- <itemset nodeset="/root/init/rgst/excdlist/excdinfo">
- <label ref="excunm"/>
- <value ref="excucd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- cmb_rgstexcd.hint = cmb_rgstexcd.label;
- ]]>
- </script>
- </select1>
- <button id="btn_expand" style="left:1033px; top:65px; width:26px; height:19px; background-image:../../../com/commonweb/images/btn_send_bottom.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_ctrl.attribute("height") = "670px";
- ]]>
- </script>
- </button>
- <button id="btn_collapse" style="left:1061px; top:65px; width:26px; height:19px; background-image:../../../com/commonweb/images/btn_send_top.gif; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- grd_ctrl.attribute("height") = "220px";
- ]]>
- </script>
- </button>
- <line id="line4" class="line_3" style="x1:0px; y1:345px; x2:615px; y2:345px; "/>
- <line id="line5" class="line_3" style="x1:0px; y1:390px; x2:615px; y2:390px; "/>
- <line id="line6" class="line_3" style="x1:0px; y1:368px; x2:615px; y2:368px; "/>
- <datagrid id="grd_ctrl" nodeset="/root/main/ctrllist/ctrlinfo" allowselection="false" autoresize="true" caption="예약처^수행부서^수행부서^검사실^검사실^검사코드^검사명^순번^항수^설명^제어^적용시작일^적용종료일" colsep="^" colwidth="60, 0, 120, 0, 120, 0, 200, 40, 40, 370, 40, 80, 80" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:90px; width:1195px; height:220px; ">
- <col disabled="true" ref="rsrvplce" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>통합예약</label>
- <value>T</value>
- </item>
- <item>
- <label>병동</label>
- <value>I</value>
- </item>
- <item>
- <label>외래</label>
- <value>O</value>
- </item>
- </choices>
- </col>
- <col ref="suppdeptcd"/>
- <col ref="suppdeptnm" style="text-align:center; "/>
- <col ref="excuroomcd"/>
- <col ref="excuroomnm" style="text-align:center; "/>
- <col ref="excucd"/>
- <col ref="excunm" style="text-align:center; "/>
- <col ref="ctrlseq" style="text-align:center; "/>
- <col ref="termcnt" style="text-align:center; "/>
- <col ref="ctrldesc"/>
- <col ref="ctrltype" style="text-align:center; "/>
- <col ref="fromdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="todd" format="yyyy-mm-dd" style="text-align:center; "/>
- <script type="javascript" ev:event="ondblclick">
- <![CDATA[
- if (!grd_ctrl.isCell(event.target)) {
- return;
- }
-
- fSetTermInfo();
-
- fSetRgstStatus(false);
- ]]>
- </script>
- <script type="javascript" ev:event="onmousedown">
- <![CDATA[
- grd_ctrl.focusColor = "#ece1ec";
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_ctrl.gridToInstance();
- grd_ctrl.resizeCells();
- ]]>
- </script>
- </datagrid>
- <button id="btn_excel" class="btn2_letter4" style="left:1131px; top:65px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var filename = window.fileDialog("save", ",", false, "검사 예약 제어 정보", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- grd_ctrl.saveExcel(filename, "sheetname:제어 내역;colhiddenextend:true;rowhiddenextend:false;");
- messageBox("엑셀 저장이 완료되었습니다.", "I999");
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|