SMRST00600_월자동분개작업(영양).xrw 7.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  3. <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">
  4. <xhtml:head>
  5. <xhtml:title>월수불마감작업</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <init>
  10. <stocym/>
  11. </init>
  12. <send>
  13. <status/>
  14. <instcd/>
  15. <goodflag/>
  16. <stocym/>
  17. <stocdeptcd/>
  18. <stocdeptnm/>
  19. <reqdd/>
  20. <stocfrdd/>
  21. <stoctodd/>
  22. </send>
  23. </root>
  24. </instance>
  25. <script type="javascript" ev:event="xforms-ready">
  26. <![CDATA[
  27. //화면 Control을 초기화한다
  28. fInitialize();
  29. ]]>
  30. </script>
  31. <submission id="TXRST00601" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/hidden/temp"/>
  32. </model>
  33. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  34. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  35. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  36. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  37. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  38. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  39. <script type="javascript">
  40. <![CDATA[
  41. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  42. function fInitialize() {
  43. rszfUserGoodFlagList(cmb_goodflag,getUserInfo("userid"));
  44. rszfUserInstList(cmb_instcd,getUserInfo("userid"));
  45. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  46. model.setValue(ipt_deptcd.attribute("ref") , getUserInfo("dutplcecd"));
  47. model.setValue(ipt_deptnm.attribute("ref") , getUserInfo("dutplcenm"));
  48. // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= S) => (goodflag= SF)
  49. model.setValue(cmb_goodflag.attribute("ref"), 'SF');
  50. var curdate = getCurrentDate();
  51. //작업년월
  52. model.setValue(ipt_stocym.attribute("ref") ,curdate);
  53. var stocym = model.getValue("/root/send/stocym");
  54. var cvtdate = stocym.toDate("YYYYMM");
  55. var stocfrdd = cvtdate.getDateFormat("YYYYMM")+"01";
  56. var stoctodd = cvtdate.getDateFormat("YYYYMM")+ cvtdate.getMonthDay();
  57. model.setValue("/root/send/stocfrdd",stocfrdd);
  58. model.setValue("/root/send/stoctodd", stoctodd);
  59. //출금요청일
  60. //model.setValue(ipt_reqdd.attribute("ref"), curdate);
  61. model.refresh();
  62. }
  63. ]]>
  64. </script>
  65. </xhtml:head>
  66. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  67. <line id="line7" class="line_1" style="x1:0px; y1:37px; x2:377px; y2:37px; "/>
  68. <line id="line19" class="line_2" style="x1:0px; y1:88px; x2:377px; y2:88px; "/>
  69. <line id="line28" class="line_2" style="x1:0px; y1:136px; x2:377px; y2:136px; "/>
  70. <line id="line1" class="line_2" style="x1:0px; y1:64px; x2:377px; y2:64px; "/>
  71. <line id="line35" class="line_3" style="x1:0px; y1:137px; x2:377px; y2:137px; "/>
  72. <line id="line23" class="line_2" style="x1:0px; y1:112px; x2:377px; y2:112px; "/>
  73. <group id="grp_tle" style="left:0px; top:0px; width:380; height:13px; ">
  74. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:243px; height:14px; ">월자동분개작업</caption>
  75. </group>
  76. <shape id="rectangle9" fillStyle="solid" shape="rectangle" fillColor="#bbbbbb" style="left:0px; top:41px; width:375px; height:98px; border-color:#788daf; "/>
  77. <button id="btn_gen" class="btn2_letter2" style="left:330px; top:17px; width:42px; height:19px; ">
  78. <caption>생성</caption>
  79. <script type="javascript" ev:event="DOMActivate">
  80. <![CDATA[
  81. model.setValue("/root/send/status","i");
  82. model.setValue("/root/send/stocym",model.getValue(ipt_stocym.attribute("ref")));
  83. submit("TXRST00601");
  84. if (model.getValue(gvErrorMsgPath + "/type") != "error")messageBox(model.getValue(gvErrorMsgPath + "/msg"),"I");
  85. ]]>
  86. </script>
  87. </button>
  88. <button id="btn_del" class="btn2_letter2" visibility="hidden" style="left:280px; top:17px; width:42px; height:19px; ">
  89. <caption>삭제</caption>
  90. <script type="javascript" ev:event="DOMFocusIn">
  91. <![CDATA[
  92. model.setValue("/root/send/iudflag","D");
  93. model.setValue("/root/send/stocym",model.getValue(ipt_stocym.attribute("ref")));
  94. submit("TXRST00101");
  95. if (model.getValue(gvErrorMsgPath + "/type") != "error")messageBox(model.getValue(gvErrorMsgPath + "/msg"),"I");
  96. ]]>
  97. </script>
  98. </button>
  99. <caption id="caption61" class="tit_2" style="left:5px; top:22px; width:69px; height:14px; ">월분개</caption>
  100. <caption id="caption44" class="cell_1" style="left:0px; top:90px; width:108px; height:23px; vertical-align:middle; ">작업년월</caption>
  101. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_essential" appearance="minimal" style="left:110px; top:44px; width:213px; height:19px; ">
  102. <choices>
  103. <itemset nodeset="/root/init/instcd">
  104. <label ref="cdnm"/>
  105. <value ref="cdid"/>
  106. </itemset>
  107. </choices>
  108. </select1>
  109. <caption id="caption1" class="cell_1" style="left:0px; top:114px; width:108px; height:23px; vertical-align:middle; ">작업부서</caption>
  110. <input id="ipt_deptcd" ref="/root/send/stocdeptcd" class="input_default" appearance="input" style="left:110px; top:116px; width:79px; height:19px; ">
  111. <script type="javascript" ev:event="xforms-value-changed">
  112. <![CDATA[
  113. if(ipt_deptcd.value.length == 0)
  114. ipt_deptnm.value = "";
  115. else
  116. misfValidationCheck("02", "", "stocdeptcd,stocdeptnm" );
  117. model.refresh();
  118. ]]>
  119. </script>
  120. </input>
  121. <input id="ipt_deptnm" ref="/root/send/stocdeptnm" class="input_default" appearance="input" style="left:213px; top:116px; width:157px; height:19px; ">
  122. <script type="javascript" ev:event="xforms-value-changed">
  123. <![CDATA[
  124. if(ipt_deptnm.value.length == 0)
  125. ipt_deptcd.value = "";
  126. else
  127. misfValidationCheck("02", "", "stocdeptcd,stocdeptnm" );
  128. model.refresh();
  129. ]]>
  130. </script>
  131. </input>
  132. <button id="btn_stocdeptcd" class="icon_search" style="left:194px; top:116px; width:16px; height:16px; ">
  133. <caption/>
  134. <script type="javascript" ev:event="DOMActivate">
  135. <![CDATA[
  136. var recv_list = "stocdeptcd,stocdeptnm";
  137. var instcd = cmb_instcd.value;
  138. misfOpenPopUpList("02", ipt_deptcd,"", recv_list, instcd, "instcd") ;
  139. model.refresh();
  140. ]]>
  141. </script>
  142. </button>
  143. <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; ">
  144. <script type="javascript" ev:event="xforms-value-changed">
  145. <![CDATA[
  146. var stocym = model.getValue("/root/send/stocym");
  147. var cvtdate = stocym.toDate("YYYYMM");
  148. var stocfrdd = stocym+"01";
  149. var stoctodd = stocym+ cvtdate.getMonthDay();
  150. //alert("stocym="+stocfrdd + " : " + stoctodd);
  151. model.setValue("/root/send/stocfrdd",stocfrdd);
  152. model.setValue("/root/send/stoctodd", stoctodd);
  153. ]]>
  154. </script>
  155. </input>
  156. <caption id="caption8" class="cell_1" style="left:0px; top:42px; width:108px; height:23px; vertical-align:middle; ">기관코드</caption>
  157. <select1 id="cmb_goodflag" ref="/root/send/goodflag" class="combo_essential" appearance="minimal" style="left:110px; top:68px; width:213px; height:19px; ">
  158. <choices>
  159. <itemset nodeset="/root/init/goodflag">
  160. <label ref="cdnm"/>
  161. <value ref="cdid"/>
  162. </itemset>
  163. </choices>
  164. </select1>
  165. <caption id="caption3" class="cell_1" style="left:0px; top:66px; width:108px; height:23px; vertical-align:middle; ">물품구분</caption>
  166. </xhtml:body>
  167. </xhtml:html>