SMRSG02300_월별지출결의서.xrw 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195
  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. <send>
  11. <instcd/>
  12. <stocym/>
  13. <goodflag/>
  14. <stocdeptcd/>
  15. </send>
  16. <temp/>
  17. <main>
  18. <list>
  19. <nutrstoccustbiyul/>
  20. </list>
  21. </main>
  22. </root>
  23. </instance>
  24. <script type="javascript" ev:event="xforms-ready">
  25. <![CDATA[
  26. //화면 Control을 초기화한다
  27. fInitialize();
  28. ]]>
  29. </script>
  30. <submission id="TRRSG02101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/list"/>
  31. </model>
  32. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  33. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  34. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  35. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  36. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  37. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  38. <script type="javascript">
  39. <![CDATA[
  40. var RetrYn = "Y";
  41. function fInitialize() {
  42. misfGridInit(grd_nutrcustbiyul);
  43. grd_nutrcustbiyul.rowHeight(0) = "20";
  44. grd_nutrcustbiyul.rowHeight(1) = "20";
  45. rszfUserInstList(cmb_instcd,getUserInfo("userid"));
  46. misfMsterDetailSet(grd_nutrcustbiyul,null, "TRRSG02101" ,"N");
  47. var curdate = getCurrentDate();
  48. model.setValue(ipt_stocym.attribute("ref") ,curdate);
  49. // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= P) => (goodflag= PH)
  50. model.setValue(ipt_goodflag.attribute("ref"),"PH");
  51. // hidden column
  52. // [2010.08.26]AS-IS 코드 TO_BE 코드 전환을 위한 물품구분 변경 (goodflag= S) => (goodflag= SF)
  53. model.setValue(ipt_goodflag.attribute("ref"),'SF');
  54. //model.setValue(ipt_stocdeptcd.attribute("ref") ,"3251000000"); // getUserInfo("dutplcecd"));
  55. model.setValue(ipt_stocdeptcd.attribute("ref") , getUserInfo("dutplcecd"));
  56. model.setValue(cmb_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  57. model.refresh();
  58. }
  59. function fCheckRetrieveData(pmsg)
  60. {
  61. if(model.getValue(cmb_instcd.attribute("ref")).length== 0 )
  62. {
  63. if(pmsg == true)
  64. {
  65. messageBox("기관코드를 " ,"C002");
  66. model.setFocus("cmb_instcd");
  67. }
  68. return false;
  69. }
  70. if(model.getValue(ipt_stocym.attribute("ref")).length== 0 )
  71. {
  72. if(pmsg == true)
  73. {
  74. messageBox("기준년월 " ,"C002");
  75. model.setFocus("ipt_stocym");
  76. }
  77. return false;
  78. }
  79. /*
  80. if(model.getValue(ipt_suplplcecd.attribute("ref")).length== 0 )
  81. {
  82. if(pmsg == true)
  83. {
  84. messageBox("공급처를 " ,"C001");
  85. model.setFocus("ipt_suplplcecd");
  86. }
  87. return false;
  88. }
  89. */
  90. if(model.getValue(ipt_windeptcd.attribute("ref")).length== 0 )
  91. {
  92. if(pmsg == true)
  93. {
  94. messageBox("입고부서를 " ,"C001");
  95. model.setFocus("ipt_windeptcd");
  96. }
  97. return false;
  98. }
  99. if(model.getValue(ipt_winfrdd.attribute("ref")).length== 0 )
  100. {
  101. if(pmsg == true)
  102. {
  103. messageBox("입고시작일자를 " ,"C001");
  104. model.setFocus("ipt_winfrdd");
  105. }
  106. return false;
  107. }
  108. if(model.getValue(ipt_wintodd.attribute("ref")).length== 0 )
  109. {
  110. if(pmsg == true)
  111. {
  112. messageBox("입고종료일자를 " ,"C001");
  113. model.setFocus("ipt_wintodd");
  114. }
  115. return false;
  116. }
  117. return true;
  118. }
  119. ]]>
  120. </script>
  121. </xhtml:head>
  122. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  123. <group id="group1" style="left:0px; top:0px; width:1195; height:13px; ">
  124. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:189px; height:14px; ">월별 지출결의서</caption>
  125. </group>
  126. <group id="group5" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  127. <caption id="caption21" class="tit_2" style="left:5px; top:54px; width:188px; height:14px; ">지출현황</caption>
  128. <group id="group6" style="left:0px; top:10px; width:1195px; height:35px; vertical-align:top; ">
  129. <shape id="roundrect3" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  130. <caption id="caption4" class="search_name" style="left:225px; top:9px; width:86px; height:17px; ">지출년월 :</caption>
  131. <caption id="caption2" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">기관코드 :</caption>
  132. <button id="button1" class="btn1_letter2" style="left:1125px; top:7px; width:56px; height:22px; ">
  133. <caption>조회</caption>
  134. <script type="javascript" ev:event="DOMActivate">
  135. <![CDATA[
  136. //if(fCheckRetrieveData(false) == false)return;
  137. misfMsterDetailRetrieve();
  138. //fAfterRetrieve();
  139. ]]>
  140. </script>
  141. </button>
  142. <line id="line13" class="line_4" style="x1:1110px; y1:7px; x2:1110px; y2:29px; border-color:#ffe4bb; border-left-style:solid; "/>
  143. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_search" appearance="minimal" style="left:100px; top:8px; width:100; height:19px; ">
  144. <choices>
  145. <itemset>
  146. <label/>
  147. <value/>
  148. </itemset>
  149. </choices>
  150. </select1>
  151. <input id="ipt_stocym" ref="/root/send/stocym" class="input_s_essential" inputtype="date" format="yyyy-mm" style="left:311px; top:8px; width:100px; height:19px; text-align:center; "/>
  152. <input id="ipt_goodflag" ref="/root/send/goodflag" visibility="hidden" style="left:615px; top:8px; width:100px; height:19px; "/>
  153. <input id="ipt_stocdeptcd" ref="/root/send/stocdeptcd" visibility="hidden" style="left:745px; top:8px; width:100px; height:19px; "/>
  154. </group>
  155. <line id="line15" class="line_1" style="x1:0px; y1:69px; x2:1195px; y2:69px; "/>
  156. <button id="button14" class="btn2_letter2" style="left:1153px; top:48px; width:42px; height:19px; ">
  157. <caption>엑셀</caption>
  158. <script type="javascript" ev:event="DOMActivate">
  159. <![CDATA[
  160. misfSaveExcel(grd_nutrcustbiyul,"월별지출결의서");
  161. ]]>
  162. </script>
  163. </button>
  164. <datagrid id="grd_nutrcustbiyul" nodeset="/root/main/list/nutrstoccustbiyul" caption="거래처^거래처^VAT금액^환자식(일반식+치료식)^직원식(직원식+직원야식)^총계^" colsep="^" colwidth="78, 100, 203, 229, 207, 290" dataheight="25" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" style="left:0px; top:74px; width:1195px; height:660px; ">
  165. <col ref="maincustlastsuplplce"/>
  166. <col ref="maincustlastsuplplcenm"/>
  167. <col ref="winamtvat" format="#,###" style="text-align:right; "/>
  168. <col ref="custpatwinamt" format="#,###" style="text-align:right; "/>
  169. <col ref="custempwinamt" format="#,###" style="text-align:right; "/>
  170. <col ref="totwinamtwithvat" format="#,###" style="text-align:right; "/>
  171. </datagrid>
  172. </group>
  173. <group id="group4" scroll="auto" style="left:0px; top:12; width:1195px; height:27px; ">
  174. <button id="button34" class="btn6_letter2" visibility="hidden" style="left:0; top:3px; width:56px; height:22px; ">
  175. <caption>출력</caption>
  176. </button>
  177. <line id="line17" class="line_6" style="x1:0px; y1:25; x2:1195; y2:25; "/>
  178. </group>
  179. </xhtml:body>
  180. </xhtml:html>