123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158 |
- <?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>
- <examcurelist>
- <item>
- <suppdeptcd/>
- <flag/>
- </item>
- </examcurelist>
- </main>
- <send>
- <basecd/>
- <flag/>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <req>
- <data/>
- </req>
- <windowloadinstance>SPAER02300</windowloadinstance>
- </send>
- <init>
- <cmb_info>
- <initbasesuppdeptcd>
- <basesuppdeptcd/>
- <depthngnm/>
- </initbasesuppdeptcd>
- </cmb_info>
- </init>
- <hidden>
- <item/>
- </hidden>
- </root>
- </instance>
- <submission id="TRAER02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/init/cmb_info"/>
- <submission id="TXAER02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden"/>
- <submission id="TRAER02301" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/main/examcurelist"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.setValue("/root/send/flag", "1"); // 1 : 예약변경 및 취소조회
- submit("TRAER02201");
- readfunc();
-
- ]]>
- </script>
- <submission id="TRZBC00101"/>
- </model>
- <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/stringHelper.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" src="../../../ast/examcureweb/js/AEZ0001.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/departmentcodeweb/js/ZSD001.js"/>
- <script type="javascript" src="../../../com/authinfoweb/js/ZSA001.js"/>
- <script type="javascript">
- <![CDATA[
- function readfunc() {
- model.removeNodeset("/root/main/examcurelist/item");
- submit("TRAER02301");
- }
- function datacheck(){
- var ssuppdeptcd = "";
- var ssuppdeptcd1 = "";
- var sbaseexcuroomcd = "";
- for (var i = 1; i < datagrid1.rows; i++){
- ssuppdeptcd = model.getValue("/root/main/examcurelist/item[" + i + "]/suppdeptcd");
- if (ssuppdeptcd == ""){
- messageBox(i + "번째행의 수행부서는 필수 선택항목입니다.", "E999", "");
- return false;
- }
- }
- for (var i = 1; i < datagrid1.rows - 1; i++){
- ssuppdeptcd = model.getValue("/root/main/examcurelist/item[" + i + "]/suppdeptcd");
- for (var j = 1; j < datagrid1.rows; j++){
- ssuppdeptcd1 = model.getValue("/root/main/examcurelist/item[" + j + "]/suppdeptcd");
- if (i != j){
- if (ssuppdeptcd == ssuppdeptcd1){
- messageBox(j + "번째에서 중복된 자료가 존재합니다", "E999", "");
- return false;
- }
- }
- }
- }
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body guideline="1,710;2,654;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:398px; height:642px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:126px; height:14px; ">기준지원부서 관리</caption>
- <line id="line1" class="line_1" style="x1:3px; y1:28px; x2:390px; y2:29px; "/>
- <button id="btn_grdadd" class="btn2_letter3" style="left:280px; top:5px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- datagrid1.addRow();
- model.setValue("/root/main/examcurelist/item[" + datagrid1.row + "]/flag", model.getValue("/root/send/flag"));
- ]]>
- </script>
- </button>
- <button id="btn_grddel" class="btn2_letter3" disabled="false" style="left:336px; top:5px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- datagrid1.deleteRow(datagrid1.row);
- ]]>
- </script>
- </button>
- <datagrid id="datagrid1" nodeset="/root/main/examcurelist/item" caption="수행부서^caption1" colsep="^" colwidth="366, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:30px; width:390px; height:575px; ">
- <col disabled="true" ref="suppdeptcd" type="combo">
- <choices>
- <itemset nodeset="/root/init/cmb_info/initbasesuppdeptcd">
- <label ref="depthngnm"/>
- <value ref="basesuppdeptcd"/>
- </itemset>
- </choices>
- </col>
- <col ref="flag" visibility="hidden"/>
- </datagrid>
- </group>
- <group id="grp_btn" style="left:0px; top:620px; width:400px; height:34px; ">
- <line id="line32" class="line_6" style="x1:0px; y1:0px; x2:179px; y2:0px; "/>
- <button id="btn_save" class="btn4_letter2" style="left:335px; top:5px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if (datacheck() == false){
- return;
- }
- var update = getGridUpdateData(datagrid1);
- if(update == ""){
- messageBox("업데이트 정보가 없습니다.", "I");
- return 0;
-
- } else {
- model.setValue("/root/send/req/data", update);
- if (submit("TXAER02301")){
- readfunc();
- }
- }
-
-
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_tle" style="left:0px; top:0px; width:395px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:188px; height:14px; ">예약변경 조회 지원부서 관리</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|