123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?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>
- <examcurelist>
- <item>
- <suppdeptcd/>
- <baseexcuroomcd/>
- <baseexcuroomnm/>
- <iudgb/>
- </item>
- </examcurelist>
- </main>
- <send>
- <basecd/>
- <globalinstance>
- <instance1/>
- </globalinstance>
- <req>
- <data/>
- </req>
- <windowloadinstance>SPAER02200</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="TXAER02201" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/req" replace="instance" resultref="/root/hidden"/>
- <submission id="TRAER02202" 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[
-
- 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("TRAER02202");
- }
- 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;
- }
- sbaseexcuroomcd = model.getValue("/root/main/examcurelist/item[" + i + "]/baseexcuroomcd");
- if (sbaseexcuroomcd == ""){
- 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:688px; height:642px; ">
- <caption id="caption1" class="tit_2" style="left:5px; top:10px; width:126px; height:13px; ">기준수행부서 관리</caption>
- <line id="line1" class="line_1" style="x1:3px; y1:28px; x2:683px; y2:29px; "/>
- <button id="btn_grdadd" class="btn2_letter3" style="left:575px; top:5px; width:53px; height:19px; ">
- <caption>행추가</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- datagrid1.addRow();
- var irow = datagrid1.row;
- model.setValue("/root/main/examcurelist/item[" + irow + "]/iudgb", 'I');
- ]]>
- </script>
- </button>
- <button id="btn_grddel" class="btn2_letter3" disabled="false" style="left:631px; top:5px; width:53px; height:19px; ">
- <caption>행삭제</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var irow = datagrid1.row;
- model.setValue("/root/main/examcurelist/item[" + irow + "]/iudgb", 'D');
- datagrid1.deleteRow(irow);
- ]]>
- </script>
- </button>
- <datagrid id="datagrid1" nodeset="/root/main/examcurelist/item" caption="수행부서^기준검사실코드^기준검사실명^caption1" colsep="^" colwidth="228, 146, 279, 100" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:30px; width:685px; height:570px; ">
- <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="baseexcuroomcd" type="inputbutton"/>
- <col ref="baseexcuroomnm"/>
- <col ref="iudgb" visibility="hidden"/>
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- var colidx = datagrid1.col;
- if(datagrid1.colAttribute(colidx, "ref") == "baseexcuroomcd"){
- var rownum = datagrid1.row;
- model.makeValue("/root/hidden/checkseq","23");
- window.load( "SPAEA02301_코드조회.xrw","modal","code", "left:100px; top:150px; width:530px; height:380px;min:hidden;max:hidden;resize:false;" );
- datagrid1.rowStatus(datagrid1.row) = 2;
- }
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="grp_btn" style="left:0px; top:620px; width:685px; 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:620px; 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);
- submit("TXAER02201");
- }
-
- readfunc();
-
- ]]>
- </script>
- </button>
- </group>
- <group id="grp_tle" style="left:0px; top:0px; width:685px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:188px; height:14px; ">검사/치료 기준수행부서 관리</caption>
- </group>
- </xhtml:body>
- </xhtml:html>
|