123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>예약인원관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <excuroom>
- <excuroomlist>
- <testroomcd/>
- <testroomnm/>
- </excuroomlist>
- </excuroom>
- <testcode>
- <testcodelist>
- <chk/>
- <testcd/>
- <testnm/>
- <maxallcnt/>
- <testroomcd/>
- <healexamdetlflag/>
- </testcodelist>
- </testcode>
- <rsrvddinfo>
- <rsrvddlist>
- <rsrvdd/>
- <yoil/>
- <maxallcnt/>
- <testcd/>
- <testroomcd/>
- <healexamdetlflag/>
- </rsrvddlist>
- </rsrvddinfo>
- </main>
- <send>
- <healexamdetlflag/>
- <srchfromdd/>
- <srchtodd/>
- <otestroomcd/>
- <otestroomnm/>
- <testcd/>
- </send>
- <senddata>
- <execdata>
- <codelist/>
- </execdata>
- <execdata1>
- <codelist/>
- </execdata1>
- <execdata2>
- <codelist/>
- </execdata2>
- </senddata>
- <senddata1>
- <testroomcd/>
- <testroomnm/>
- </senddata1>
- <init>
- <baseinfo>
- <healexamdetlflag/>
- </baseinfo>
- <baseinfo1>
- <healexamdetlflag/>
- </baseinfo1>
- </init>
- <hidden/>
- </root>
- </instance>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- zbcfGetCodeList( new Array( "A0069", "A0070"), new Array("/root/init/baseinfo/healexamdetlflag", "/root/init/baseinfo1/healexamdetlflag") );
- submit("TRZBC00101");
- copyNodesetType("/root/init/baseinfo/healexamdetlflag/A0069", "/root/init/baseinfo1/healexamdetlflag/A0070", "after", model, model);
- model.setValue("/root/send/srchfromdd", getCurrentDate());
- model.setValue("/root/send/srchtodd", getCurrentDate().toDate().getAddDate(3,"M").getDateFormat("YYYYMMDD"));
- model.removeNodeset("/root/main/excuroom/excuroomlist");
- model.removeNodeset("/root/main/testcode/testcodelist");
- model.removeNodeset("/root/main/rsrvddinfo/rsrvddlist");
- cmb_healexamdetlflag.select(0);
- submit("TRAHA03171");
- model.refresh();
- ]]>
- </script>
- <submission id="TRAHA03171" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/excuroom"/>
- <submission id="TRAHA03172" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/testcode"/>
- <submission id="TRAHA03173" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/rsrvddinfo"/>
- <submission id="TXAHA03171" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/senddata/execdata" resultref="/root/hidden"/>
- <submission id="TXAHA03172" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/senddata/execdata1" resultref="/root/hidden"/>
- <submission id="TXAHA03173" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/senddata/execdata2" resultref="/root/hidden"/>
- <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
- </model>
- <script type="javascript">
- <![CDATA[
- function fSaveData(){
- if (datacheck() == false){
- return;
- }
- var update = getGridUpdateData(datagrid1);
- model.setValue("/root/senddata/execdata/codelist", update);
- if (submit("TXAHA03171")){
- readfunc();
- }
- }
- function fSaveData1(){
- for (var i = 1; i < datagrid1.rows; i++){
- model.makeValue("/root/main/testcode/testcodelist[" + i + "]/srchfromdd", model.getValue("/root/send/srchfromdd"));
- model.makeValue("/root/main/testcode/testcodelist[" + i + "]/srchtodd", model.getValue("/root/send/srchtodd"));
- }
- datagrid1.rebuild();
- model.removeNodeset("/root/senddata/execdata1/codelist");
- model.makeNode("/root/senddata/execdata1/codelist");
- var nodeList = instance1.selectNodes(datagrid1.nodeset + "[chk='Y']");
- var rCSV = getNodeListCSV(nodeList);
- model.setValue("/root/senddata/execdata1/codelist", rCSV);
-
- if (submit("TXAHA03172")){
- }
- }
- function fSaveData2(){
- var irow = datagrid1.row;
- var update = getGridUpdateData(datagrid2);
- model.setValue("/root/senddata/execdata2/codelist", update);
- if (submit("TXAHA03173")){
- datagrid1.row = irow;
- readfunc1();
- }
- }
- function readfunc(){
- model.setValue("/root/send/otestroomcd", model.getValue("/root/main/excuroom/excuroomlist[" + grd_roomlst.row + "]/testroomcd"));
- model.setValue("/root/send/otestroomnm", model.getValue("/root/main/excuroom/excuroomlist[" + grd_roomlst.row + "]/testroomnm"));
-
- model.removeNodeset("/root/main/testcode/testcodelist");
- model.removeNodeset("/root/main/rsrvddinfo/rsrvddlist");
- if (model.getValue("/root/send/otestroomcd") != ""){
- submit("TRAHA03172");
- }
- }
- function readfunc1(){
- model.removeNodeset("/root/main/rsrvddinfo/rsrvddlist");
- var status = datagrid1.rowStatus(datagrid1.row);
- if (status == "0"){
- model.setValue("/root/send/testcd", model.getValue("/root/main/testcode/testcodelist[" + datagrid1.row + "]/testcd"));
- model.removeNodeset("/root/main/rsrvddinfo/rsrvddlist");
- submit("TRAHA03173", false);
- }
- model.refresh();
- }
- function datacheck(){
- var scdid1 = "";
- var scdid2 = "";
- for (var i = 1; i < datagrid1.rows; i ++){
- if (model.getValue("/root/main/testcode/testcodelist[" + i + "]/testcd") == ""){
- messageBox("검사코드는 필수 선택항목입니다.", "E999", "");
- return false;
- }
- if (model.getValue("/root/main/testcode/testcodelist[" + i + "]/maxallcnt") == ""){
- messageBox("인원은 필수 입력항목입니다.", "E999", "");
- return false;
- }
- scdid1 = model.getValue("/root/main/testcode/testcodelist[" + i + "]/testcd");
- var k = i + 1;
- for (var j = k; j < datagrid1.rows; j++){
- scdid2 = model.getValue("/root/main/testcode/testcodelist[" + j + "]/testcd");
- if (i != j){
- if (scdid1 == scdid2){
- messageBox(j + "번째에서 중복된 자료가 존재합니다", "E999", "");
- return false;
- }
- }
- }
- }
- return true;
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,1195;2,737;2,750;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption19" class="tit_1" style="left:0px; top:0px; width:106px; height:14px; ">예약인원관리</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1194px; height:744px; ">
- <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:5px; top:5px; width:1185px; height:30px; background-color:#fffbf2; border-color:#ffd799; "/>
- <input id="ipt_fromdate" ref="/root/send/srchfromdd" class="input_s_essential" navindex="2" inputtype="date" style="left:980px; top:46px; width:95px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- <datagrid id="datagrid2" nodeset="/root/main/rsrvddinfo/rsrvddlist" caption="일자^요일^인원^caption1^caption2^caption3" colsep="^" colwidth="121, 61, 71, 27, 21, 28" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:882px; top:103px; width:305px; height:622px; ">
- <col disabled="true" ref="rsrvdd" type="inputdate" style="text-align:center; "/>
- <col ref="yoil"/>
- <col ref="maxallcnt" type="input" style="text-align:center; "/>
- <col ref="testcd" visibility="hidden"/>
- <col ref="testroomcd" visibility="hidden"/>
- <col ref="healexamdetlflag" visibility="hidden"/>
- </datagrid>
- <button id="button1" class="btn4_letter2" style="left:1128px; top:70px; width:56px; height:22px; ">
- <caption>생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var sfromdd = model.getValue("/root/send/srchfromdd");
- var stodd = model.getValue("/root/send/srchtodd");
- var smaxmm = sfromdd.toDate().getAddDate(5,"M").getDateFormat("YYYYMMDD");
- if (stodd > smaxmm){
- messageBox("최대로 6개월 단위로 생성할 수 있습니다.", "E999", "");
- return;
- }
- if (datacheck() == false){
- return;
- }
- var sw = "N";
- var update = getGridUpdateData(datagrid1);
- if (update != ""){
- sw = "Y";
- model.setValue("/root/senddata/execdata/codelist", update);
- if (submit("TXAHA03171")){
- }
- }
- fSaveData1();
- if (sw == "Y"){
- grd_roomlst.dispatch("onclick");
- }
- ]]>
- </script>
- </button>
- <datagrid id="grd_roomlst" nodeset="/root/main/excuroom/excuroomlist" caption="검사실코드^검사실명" colsep="^" colwidth="67, 167" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:0px; top:68px; width:275px; height:657px; ">
- <col ref="testroomcd"/>
- <col ref="testroomnm"/>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (isDataCell()) {
- readfunc();
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption21" class="search_name" style="left:883px; top:46px; width:91px; height:17px; ">기준일자 :</caption>
- <button id="btn_grddel" class="btn2_letter3" style="left:761px; top:46px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- datagrid1.deleteRow(datagrid1.row);
- ]]>
- </script>
- </button>
- <caption id="caption23" style="left:1075px; top:47px; width:15px; height:20px; text-align:center; ">~</caption>
- <input id="input1" ref="/root/send/srchtodd" class="input_s_essential" navindex="3" inputtype="date" style="left:1090px; top:46px; width:95px; height:19px; text-align:center; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
-
- ]]>
- </script>
- </input>
- <button id="btn_save" class="btn4_letter2" style="left:817px; top:46px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveData();
- ]]>
- </script>
- </button>
- <button id="btn_grdadd" class="btn2_letter3" style="left:706px; top:46px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (model.getValue("/root/send/healexamdetlflag") == ""){
- messageBox("건진상세구분을 선택한 후 작업하시기 바랍니다.", "E999", "");
- return;
- }
- if (model.getValue("/root/send/otestroomcd") == ""){
- messageBox("검사실코드를 선택한 후 작업하시기 바랍니다.", "E999", "");
- return;
- }
- datagrid1.addRow();
- var irow = datagrid1.row;
- model.setValue("/root/main/testcode/testcodelist[" + irow + "]/healexamdetlflag", model.getValue("/root/send/healexamdetlflag"));
- model.setValue("/root/main/testcode/testcodelist[" + irow + "]/testroomcd", model.getValue("/root/send/otestroomcd"));
- model.setFocus("datagrid1");
- datagrid1.row = irow;
- datagrid1.refresh();
- ]]>
- </script>
- </button>
- <datagrid id="datagrid1" nodeset="/root/main/testcode/testcodelist" caption="선택^검사코드^검사명^인원^caption1^caption2" colsep="^" colwidth="40, 120, 326, 64, 30, 34" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:280px; top:68px; width:595px; height:657px; ">
- <col checkvalue="Y,N" ref="chk" type="checkbox"/>
- <col disabled="true" ref="testcd" type="inputbutton"/>
- <col ref="testnm"/>
- <col ref="maxallcnt" type="input" style="text-align:center; "/>
- <col ref="testroomcd" visibility="hidden"/>
- <col ref="healexamdetlflag" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- model.setValue("/root/senddata1/testroomcd", model.getValue("/root/send/otestroomcd"));
- model.setValue("/root/senddata1/testroomnm", model.getValue("/root/send/otestroomnm"));
- model.setValue("/root/main/testcode/testcodelist[" + datagrid1.row + "]/chk", "Y");
- model.property("testcd") = "/root/main/testcode/testcodelist[" + datagrid1.row + "]/testcd";
- model.property("testnm") = "/root/main/testcode/testcodelist[" + datagrid1.row + "]/testnm";
- modal("SPAHA05010", "", "200", "200", "SPAHA05010","/root/senddata1","/root/popdata");
- ]]>
- </script>
- <script type="javascript" ev:event="onclick">
- <![CDATA[
- if (isDataCell()) {
- readfunc1();
- }
- ]]>
- </script>
- </datagrid>
- <caption id="caption2" class="search_name" style="left:15px; top:10px; width:112px; height:17px; ">건진상세구분 :</caption>
- <select1 id="cmb_healexamdetlflag" ref="/root/send/healexamdetlflag" class="combo_default" navindex="1" appearance="minimal" style="left:133px; top:10px; width:212px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/healexamdetlflag/A0069">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <button id="btn_sea" class="btn1_letter2" visibility="hidden" style="left:1065px; top:70px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
-
- ]]>
- </script>
- </button>
- <caption id="caption1" class="tit_2" style="left:280px; top:48px; width:71px; height:14px; ">검사실 :</caption>
- <input id="input2" ref="/root/send/otestroomcd" disabled="true" style="left:350px; top:45px; width:45px; height:19px; text-align:center; "/>
- <input id="input3" ref="/root/send/otestroomnm" disabled="true" style="left:397px; top:45px; width:195px; height:19px; "/>
- </group>
- <button id="button2" class="btn4_letter2" style="left:1130px; top:740px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSaveData2();
- ]]>
- </script>
- </button>
- </xhtml:body>
- </xhtml:html>
|