SMRSC00500_입출유형코드관리.xrw 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  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. <main>
  10. <rscmiocdlist/>
  11. </main>
  12. <send>
  13. <instcd/>
  14. </send>
  15. <init>
  16. <ioflag>
  17. <label>입고</label>
  18. <value>I</value>
  19. <label>출고</label>
  20. <value>O</value>
  21. </ioflag>
  22. <abactflag>
  23. <label>장부</label>
  24. <value>0</value>
  25. <label>실물</label>
  26. <value>1</value>
  27. <label>장부/실물</label>
  28. <value>2</value>
  29. </abactflag>
  30. <stocupdtbase>
  31. <label>-</label>
  32. <value>-</value>
  33. <label>+</label>
  34. <value>+</value>
  35. </stocupdtbase>
  36. <unitcostappbase>
  37. <label>선입선출</label>
  38. <value>1</value>
  39. <label>단가입력</label>
  40. <value>2</value>
  41. <label>후입선출</label>
  42. <value>3</value>
  43. </unitcostappbase>
  44. <etccd>
  45. <label>ENTRY</label>
  46. <value>E</value>
  47. <label>QUERY</label>
  48. <value>Q</value>
  49. <label>사용안함</label>
  50. <value>N</value>
  51. </etccd>
  52. </init>
  53. <hidden/>
  54. <temp/>
  55. </root>
  56. </instance>
  57. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  58. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  59. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  60. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  61. <script type="javascript" ev:event="xforms-ready">
  62. <![CDATA[
  63. fInitialize();
  64. //화면 권한 설정
  65. btn_save.disabled = !(checkAuth("X"));
  66. btn_prt.disabled= !(checkAuth("P"));
  67. model.refresh();
  68. ]]>
  69. </script>
  70. <submission id="TRRSC00501" ref="/root/send" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/main/rscmiocdlist"/>
  71. <submission id="TXRSC00501" ref="/root/main/rscmpcomlist" method="post" mediatype="application/x-www-form-urlencoded" resultref="/root/temp"/>
  72. </model>
  73. <script type="javascript">
  74. <![CDATA[
  75. function fInitialize()
  76. {
  77. misfGridInit(grd_rscmiocdlist);
  78. //기관코드 설정.
  79. misfComboComCdList("Z0007", cmb_instcd);
  80. // 사용자 기관코드 기본 설정.
  81. cmb_instcd.value = getUserInfo("dutplceinstcd");
  82. misfMsterDetailSet(grd_rscmiocdlist, null, "TRRSC00501", "Y");
  83. // 조회.
  84. btn_search.dispatch("DOMActivate");
  85. }
  86. function fCheckGridNotUpdate()
  87. {
  88. for(var fRow = grd_rscmiocdlist.fixedRows; fRow < grd_rscmiocdlist.rows; fRow++)
  89. {
  90. grd_rscmiocdlist.isReadOnly(fRow, grd_rscmiocdlist.colRef("iokindcd")) = true;
  91. }
  92. }
  93. ]]>
  94. </script>
  95. </xhtml:head>
  96. <xhtml:body>
  97. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  98. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:152px; height:14px; ">입출유형코드관리</caption>
  99. </group>
  100. <group id="grp_biz" scroll="auto" style="left:0px; top:38px; width:1195px; height:744px; ">
  101. <group id="grp_sea" style="left:0px; top:10px; width:1195px; height:35px; ">
  102. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:35px; "/>
  103. <caption id="cap_instcd" class="search_name" style="left:15px; top:9px; width:95px; height:17px; ">기관코드 :</caption>
  104. <line id="line13" class="line_4" style="x1:1110px; y1:7px; x2:1110px; y2:29px; "/>
  105. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:7px; width:56px; height:22px; ">
  106. <caption>조회</caption>
  107. <script type="javascript" ev:event="DOMActivate">
  108. <![CDATA[
  109. if( getGridUpdateData(grd_rscmiocdlist) != "" )
  110. {
  111. if( messageBox("작업중인 Data가 있습니다.\n조회를 하시면 작업중인 Data가 사라집니다.", "Q005") == '6'){
  112. misfMsterDetailRetrieve();
  113. fCheckGridNotUpdate();
  114. }else{
  115. return;
  116. }
  117. }else{
  118. //Mater에 해당하는 정보를 클릭시 Detail이 출력됨
  119. misfMsterDetailRetrieve();
  120. fCheckGridNotUpdate();
  121. }
  122. ]]>
  123. </script>
  124. </button>
  125. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" appearance="minimal" style="left:108px; top:8px; width:200px; height:19px; ">
  126. <choices>
  127. <itemset>
  128. <label/>
  129. <value/>
  130. </itemset>
  131. </choices>
  132. <script type="javascript" ev:event="xforms-value-changed">
  133. <![CDATA[
  134. btn_search.dispatch("DOMActivate");
  135. ]]>
  136. </script>
  137. </select1>
  138. </group>
  139. <caption id="caption1" class="tit_2" style="left:5px; top:54px; width:157px; height:14px; ">입출유형코드List</caption>
  140. <line id="line1" class="line_1" style="x1:0px; y1:69px; x2:1195px; y2:69px; "/>
  141. <datagrid id="grd_rscmiocdlist" nodeset="/root/main/rscmiocdlist" caption="기관코드^입출유형코드^입출유형명^입출력구분^장부실물구분^재고반영기준^단가적용기준^ID^구매사용코드구분^영양사용코드구분^약국사용코드구분^비고^기관코드^물품구분^최초등록자ID^최초등록일시^최종수정자ID^최종수정일시^최종수정일시" colwidth="100, 85, 130, 100, 101, 95, 100, 80, 110, 110, 110, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" colsep="^" tooltip="true" style="left:0px; top:74px; width:1195px; height:661px; ">
  142. <col ref="instcd" visibility="hidden"/>
  143. <col class="input_s_essential" ref="iokindcd" type="input" _key="true"/>
  144. <col ref="iokindnm" type="input"/>
  145. <col ref="ioflag" type="combo" style="text-align:center; ">
  146. <choices>
  147. <itemset nodeset="/root/init/ioflag">
  148. <value ref="value"/>
  149. <label ref="label"/>
  150. </itemset>
  151. </choices>
  152. </col>
  153. <col ref="abactflag" type="combo" style="text-align:center; ">
  154. <choices>
  155. <itemset nodeset="/root/init/abactflag">
  156. <value ref="value"/>
  157. <label ref="label"/>
  158. </itemset>
  159. </choices>
  160. </col>
  161. <col ref="stocupdtbase" type="combo" style="text-align:center; ">
  162. <choices>
  163. <itemset nodeset="/root/init/stocupdtbase">
  164. <value ref="value"/>
  165. <label ref="label"/>
  166. </itemset>
  167. </choices>
  168. </col>
  169. <col ref="unitcostappbase" type="combo" style="text-align:center; ">
  170. <choices>
  171. <itemset nodeset="/root/init/unitcostappbase">
  172. <value ref="value"/>
  173. <label ref="label"/>
  174. </itemset>
  175. </choices>
  176. </col>
  177. <col ref="updtcolmid" visibility="hidden"/>
  178. <col ref="purcetccd" type="combo" style="text-align:center; ">
  179. <choices>
  180. <itemset nodeset="/root/init/etccd">
  181. <value ref="value"/>
  182. <label ref="label"/>
  183. </itemset>
  184. </choices>
  185. </col>
  186. <col ref="nutetccd" type="combo" style="text-align:center; ">
  187. <choices>
  188. <itemset nodeset="/root/init/etccd">
  189. <value ref="value"/>
  190. <label ref="label"/>
  191. </itemset>
  192. </choices>
  193. </col>
  194. <col ref="parmetccd" type="combo" style="text-align:center; ">
  195. <choices>
  196. <itemset nodeset="/root/init/etccd">
  197. <value ref="value"/>
  198. <label ref="label"/>
  199. </itemset>
  200. </choices>
  201. </col>
  202. <col ref="cmt" type="input"/>
  203. <script type="javascript" ev:event="onaftersort">
  204. <![CDATA[
  205. grd_rscmiocdlist.gridToInstance();
  206. ]]>
  207. </script>
  208. </datagrid>
  209. <button id="btn_add" class="btn2_letter3" style="left:1085px; top:48px; width:53px; height:19px; ">
  210. <caption>행추가</caption>
  211. <script type="javascript" ev:event="DOMActivate">
  212. <![CDATA[
  213. misfGridIUD(grd_rscmiocdlist, "A");
  214. ]]>
  215. </script>
  216. </button>
  217. <button id="btn_del" class="btn2_letter3" style="left:1141px; top:48px; width:53px; height:19px; ">
  218. <caption>행삭제</caption>
  219. <script type="javascript" ev:event="DOMActivate">
  220. <![CDATA[
  221. misfGridIUD(grd_rscmiocdlist, "D");
  222. ]]>
  223. </script>
  224. </button>
  225. </group>
  226. <group id="group4" style="left:0px; top:12px; width:1195px; height:27px; ">
  227. <button id="btn_save" class="btn4_letter2" style="left:1068px; top:3px; width:56px; height:22px; ">
  228. <caption>저장</caption>
  229. <script type="javascript" ev:event="DOMActivate">
  230. <![CDATA[
  231. if( getGridUpdateData(grd_rscmiocdlist) == "" )
  232. {
  233. messageBox("업데이트 된 내용이", "I004");
  234. return;
  235. }
  236. if( !checkKeyColumn("grd_rscmiocdlist") ) return;
  237. misfSave("TXRSC00501");
  238. btn_search.dispatch("DOMAtivate");
  239. if (model.getValue(gvErrorMsgPath + "/type") != "error" ) btn_search.dispatch("DOMActivate");
  240. ]]>
  241. </script>
  242. </button>
  243. <line id="line14" class="line_6" style="x1:0px; y1:25; x2:1195; y2:25; "/>
  244. <button id="btn_clear" class="btn4_letter3" style="left:1127px; top:3px; width:68px; height:22px; ">
  245. <caption>초기화</caption>
  246. <script type="javascript" ev:event="DOMActivate">
  247. <![CDATA[
  248. fInitialize();
  249. ]]>
  250. </script>
  251. </button>
  252. <button id="btn_prt" class="btn6_letter2" visibility="hidden" style="left:0px; top:3px; width:56px; height:22px; ">
  253. <caption>출력</caption>
  254. </button>
  255. </group>
  256. </xhtml:body>
  257. </xhtml:html>