123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182 |
- <?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="">
- <init>
- <stocym/>
- </init>
- <send>
- <status/>
- <instcd/>
- <goodflag/>
- <stocym/>
- <stocdeptcd/>
- <stocdeptnm/>
- <reqdd/>
- <stocfrdd/>
- <stoctodd/>
- </send>
- </root>
- </instance>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- //화면 Control을 초기화한다
- fInitialize();
- ]]>
- </script>
- <submission id="TXRST00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/temp"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
- <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript">
- <![CDATA[
- // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
- function fInitialize() {
- rszfUserGoodFlagList(cmb_goodflag,getUserInfo("userid"));
- rszfUserInstList(cmb_instcd,getUserInfo("userid"));
- model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
- model.setValue(ipt_deptcd.attribute("ref") , getUserInfo("dutplcecd"));
- model.setValue(ipt_deptnm.attribute("ref") , getUserInfo("dutplcenm"));
- // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= S) => (goodflag= SF)
- model.setValue(cmb_goodflag.attribute("ref"), 'SF');
-
- var curdate = getCurrentDate();
-
- //작업년월
- model.setValue(ipt_stocym.attribute("ref") ,curdate);
- var stocym = model.getValue("/root/send/stocym");
-
- var cvtdate = stocym.toDate("YYYYMM");
-
- var stocfrdd = cvtdate.getDateFormat("YYYYMM")+"01";
- var stoctodd = cvtdate.getDateFormat("YYYYMM")+ cvtdate.getMonthDay();
-
- model.setValue("/root/send/stocfrdd",stocfrdd);
- model.setValue("/root/send/stoctodd", stoctodd);
-
- //출금요청일
- //model.setValue(ipt_reqdd.attribute("ref"), curdate);
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <line id="line7" class="line_1" style="x1:0px; y1:37px; x2:377px; y2:37px; "/>
- <line id="line19" class="line_2" style="x1:0px; y1:88px; x2:377px; y2:88px; "/>
- <line id="line28" class="line_2" style="x1:0px; y1:136px; x2:377px; y2:136px; "/>
- <line id="line1" class="line_2" style="x1:0px; y1:64px; x2:377px; y2:64px; "/>
- <line id="line35" class="line_3" style="x1:0px; y1:137px; x2:377px; y2:137px; "/>
- <line id="line23" class="line_2" style="x1:0px; y1:112px; x2:377px; y2:112px; "/>
- <group id="grp_tle" style="left:0px; top:0px; width:380; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:243px; height:14px; ">월자동분개작업</caption>
- </group>
- <shape id="rectangle9" fillStyle="solid" shape="rectangle" fillColor="#bbbbbb" style="left:0px; top:41px; width:375px; height:98px; border-color:#788daf; "/>
- <button id="btn_gen" class="btn2_letter2" style="left:330px; top:17px; width:42px; height:19px; ">
- <caption>생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- model.setValue("/root/send/status","i");
- model.setValue("/root/send/stocym",model.getValue(ipt_stocym.attribute("ref")));
- submit("TXRST00601");
- if (model.getValue(gvErrorMsgPath + "/type") != "error")messageBox(model.getValue(gvErrorMsgPath + "/msg"),"I");
- ]]>
- </script>
- </button>
- <button id="btn_del" class="btn2_letter2" visibility="hidden" style="left:280px; top:17px; width:42px; height:19px; ">
- <caption>삭제</caption>
- <script type="javascript" ev:event="DOMFocusIn">
- <![CDATA[
- model.setValue("/root/send/iudflag","D");
- model.setValue("/root/send/stocym",model.getValue(ipt_stocym.attribute("ref")));
- submit("TXRST00101");
- if (model.getValue(gvErrorMsgPath + "/type") != "error")messageBox(model.getValue(gvErrorMsgPath + "/msg"),"I");
- ]]>
- </script>
- </button>
- <caption id="caption61" class="tit_2" style="left:5px; top:22px; width:69px; height:14px; ">월분개</caption>
- <caption id="caption44" class="cell_1" style="left:0px; top:90px; width:108px; height:23px; vertical-align:middle; ">작업년월</caption>
- <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_essential" appearance="minimal" style="left:110px; top:44px; width:213px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/instcd">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption1" class="cell_1" style="left:0px; top:114px; width:108px; height:23px; vertical-align:middle; ">작업부서</caption>
- <input id="ipt_deptcd" ref="/root/send/stocdeptcd" class="input_default" appearance="input" style="left:110px; top:116px; width:79px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_deptcd.value.length == 0)
- ipt_deptnm.value = "";
- else
- misfValidationCheck("02", "", "stocdeptcd,stocdeptnm" );
- model.refresh();
- ]]>
- </script>
- </input>
- <input id="ipt_deptnm" ref="/root/send/stocdeptnm" class="input_default" appearance="input" style="left:213px; top:116px; width:157px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(ipt_deptnm.value.length == 0)
- ipt_deptcd.value = "";
- else
- misfValidationCheck("02", "", "stocdeptcd,stocdeptnm" );
- model.refresh();
- ]]>
- </script>
- </input>
- <button id="btn_stocdeptcd" class="icon_search" style="left:194px; top:116px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var recv_list = "stocdeptcd,stocdeptnm";
- var instcd = cmb_instcd.value;
- misfOpenPopUpList("02", ipt_deptcd,"", recv_list, instcd, "instcd") ;
- model.refresh();
-
- ]]>
- </script>
- </button>
- <input id="ipt_stocym" ref="/root/send/stocym" class="input_default" inputtype="date" format="yyyy-mm" style="left:110px; top:92px; width:90px; height:19px; ">
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- var stocym = model.getValue("/root/send/stocym");
-
- var cvtdate = stocym.toDate("YYYYMM");
-
-
- var stocfrdd = stocym+"01";
- var stoctodd = stocym+ cvtdate.getMonthDay();
-
- //alert("stocym="+stocfrdd + " : " + stoctodd);
- model.setValue("/root/send/stocfrdd",stocfrdd);
- model.setValue("/root/send/stoctodd", stoctodd);
-
- ]]>
- </script>
- </input>
- <caption id="caption8" class="cell_1" style="left:0px; top:42px; width:108px; height:23px; vertical-align:middle; ">기관코드</caption>
- <select1 id="cmb_goodflag" ref="/root/send/goodflag" class="combo_essential" appearance="minimal" style="left:110px; top:68px; width:213px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/goodflag">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption3" class="cell_1" style="left:0px; top:66px; width:108px; height:23px; vertical-align:middle; ">물품구분</caption>
- </xhtml:body>
- </xhtml:html>
|