123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <!--
- * 제 목 : SMLLF01100_작업번호체계관리.xrw
- * 설 명 : 작업번호체계관리
- * 설 계 자 : (주)에이씨케이 -
- * 작 성 자 : (주)에이씨케이 - 송요셉
- * 작 성 일 : 2007.07.13
- * 수정이력 :
- * 기 타 :
- -->
- <?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>
- <![CDATA[]]>
- <xhtml:title/>
- <model id="model1">
- <instance id="instance1">
- <root>
- <main>
- <worknolist>
- <testmdlcd/>
- <testmdlnm/>
- <worknoddkind/>
- <worknoflagkind/>
- <workseqnolgth/>
- <testlrgkind/>
- </worknolist>
- </main>
- <send>
- <codeflag/>
- <testlrgcd/>
- <data1/>
- </send>
- <init>
- </init>
- <hidden>
- <ref>
- <testlrgcd>00</testlrgcd>
- </ref>
- </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/tfHelper.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- model.setValue("/root/send/codeflag", "0104|"); //0104 대분류 0102 중분류
- submit("TRLZZ00101");
- ]]>
- </script>
- <submission id="TRLZZ00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" replace="instance" resultref="/root/LB"/>
- <submission id="TRLLF01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/testlrgcd" replace="instance" resultref="/root/main/worknolist"/>
- <submission id="TXLLF01101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/data1" replace="instance"/>
- </model>
- <script type="javascript">
- <![CDATA[
-
- function fworknnolist(){
- model.setValue("/root/send/testlrgcd", model.getValue("/root/hidden/ref/testlrgcd"));
- submit("TRLLF01101");
- }
-
- function fworkseqnolgth(){
- var datelgth = 0; //일자구분 번호길이
- var kindlgth = 0; // 구분코드 번호길이
- if(model.getValue("/root/main/worknolist["+worknolist.row+"]/worknoddkind") == 1){
- datelgth = 4;
- }
- else if(model.getValue("/root/main/worknolist["+worknolist.row+"]/worknoddkind") == 2){
- datelgth = 6;
- }
- else{
- datelgth = 8;
- }
- if(model.getValue("/root/main/worknolist["+worknolist.row+"]/worknoflagkind") == 1 ||
- model.getValue("/root/main/worknolist["+worknolist.row+"]/worknoflagkind") == 2){
- kindlgth = 2;
- }
- else{
- kindlgth = 4;
- }
- model.setValue("/root/main/worknolist["+worknolist.row+"]//workseqnolgth", 15-(datelgth+kindlgth))
- worknolist.refresh();
- }
-
- function fExeEqmtSave(){
- model.setValue("/root/send/data1", worknolist.getUpdateData());
- submit("TXLLF01101");
- fworknnolist();
- }
-
-
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group3" scroll="auto" style="left:0px; top:40px; width:1195px; height:744; ">
- <line id="line1" class="line_1" style="x1:0px; y1:70px; x2:1194px; y2:70px; "/>
- <group id="group1" style="left:0px; top:10px; width:1195px; height:35px; font-weight:bold; ">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1194px; height:35px; "/>
- <line id="line3" class="line_4" style="x1:1108px; y1:7px; x2:1108px; y2:29px; "/>
- <button id="btn_Ref" class="btn1_letter2" style="left:1123px; top:7px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fworknnolist();
- ]]>
- </script>
- </button>
- <caption id="caption1" class="search_name" style="left:15px; top:9px; width:90px; height:17px; ">검사분류 :</caption>
- <select1 id="cmbflag" ref="/root/hidden/ref/testlrgcd" appearance="minimal" style="left:108px; top:8px; width:150px; height:19px; font-weight:normal; vertical-align:middle; ">
- <choices>
- <itemset nodeset="/root/init/LB0104">
- <label ref="nm"/>
- <value ref="cd"/>
- </itemset>
- </choices>
- <script type="javascript" ev:event="xforms-select">
- <![CDATA[
- fworknnolist();
- ]]>
- </script>
- </select1>
- </group>
- <caption id="caption3" class="tit_2" style="left:5px; top:55px; width:134px; height:14px; ">작업번호그룹목록</caption>
- <datagrid id="worknolist" nodeset="/root/main/worknolist" caption="검사중분류^검사중분류명^일자구분^구분코드^일련번호길이^검사분류유형" colwidth="170, 200, 200, 200, 200, 200" dataheight="25" defaultrows="1" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" fixed.background-image="../../../com/commonweb/images/grid_bg.gif" style="left:0px; top:70px; width:1193px; height:646px; ">
- <col ref="testmdlcd" type="output"/>
- <col ref="testmdlnm" type="output"/>
- <col ref="worknoddkind" type="combo">
- <choices>
- <item>
- <label>년 [YYYY]</label>
- <value>1</value>
- </item>
- <item>
- <label>년월 [YYYYMM]</label>
- <value>2</value>
- </item>
- <item>
- <label>년월일 [YYYYMMNN]</label>
- <value>3</value>
- </item>
- </choices>
- </col>
- <col ref="worknoflagkind" type="combo">
- <choices>
- <item>
- <label>검사중분류</label>
- <value>1</value>
- </item>
- <item>
- <label>상세시행부서</label>
- <value>2</value>
- </item>
- <item>
- <label>검사그룹</label>
- <value>3</value>
- </item>
- </choices>
- </col>
- <col ref="workseqnolgth" type="output"/>
- <col ref="testlrgkind" type="output"/>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- fworkseqnolgth();
- ]]>
- </script>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- worknolist.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </group>
- <group id="group2" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">작업번호체계관리</caption>
- </group>
- <group id="grp_btn" style="left:0px; top:13px; width:1195px; height:27px; ">
- <line id="line32" class="line_6" style="x1:0px; y1:25px; x2:1194px; y2:25px; "/>
- <button id="btn_reset" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
- <caption>초기화</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.reset();
- ]]>
- </script>
- </button>
- <button id="btn_cnfm" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fExeEqmtSave();
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|