SPRSS00112_CSR물품이력조회.xrw 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <!--
  3. * 수정이력 :
  4. [2007.10.18 HBH : 공급실 불출구분이 "응급"이면 마감차수를 입력받지 않는다.
  5. -->
  6. <?xml-stylesheet href="../../../com/commonweb/css/common.css" type="text/css" ?>
  7. <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">
  8. <xhtml:head>
  9. <xhtml:title>부서별 CSR물품이력조회.</xhtml:title>
  10. <model id="model1">
  11. <instance id="instance1">
  12. <root xmlns="">
  13. <main>
  14. <csrgoodinfo>
  15. <reqflag/>
  16. <deptnm/>
  17. <goodcd/>
  18. <goodnm/>
  19. <goodspec/>
  20. <goodmodel/>
  21. <deliveunit/>
  22. <dinfdivs/>
  23. </csrgoodinfo>
  24. <csrinfo>
  25. <csrbipumhistlist/>
  26. </csrinfo>
  27. </main>
  28. <send>
  29. <instcd/>
  30. <csrreqdeptcd/>
  31. <deptcd/>
  32. <deptnm/>
  33. <goodflag/>
  34. <csrreqdeptcd2/>
  35. <goodcd/>
  36. <goodnm/>
  37. </send>
  38. </root>
  39. </instance>
  40. <bind id="savedeliveprcsflag" ref="/root/main/list/goodreq/goodreqlist/savedeliveprcsflag" calculate="../deliveprcsflag"/>
  41. <script type="javascript" ev:event="xforms-ready">
  42. <![CDATA[
  43. misfComboComCdListMulti("Z0007", "cmb_instcd");
  44. model.setValue(cmb_instcd.attribute("ref"), model.property("instcd"));
  45. model.setValue(ipt_reqdeptcd.attribute("ref"), model.property("deptcd"));
  46. model.setValue(ipt_reqdeptnm.attribute("ref"), model.property("deptnm"));
  47. model.setValue(ipt_goodcd.attribute("ref"), model.property("goodcd"));
  48. model.setValue(ipt_goodnm.attribute("ref"), model.property("goodnm"));
  49. cmb_instcd.refresh();
  50. ipt_reqdeptcd.refresh();
  51. ipt_reqdeptnm.refresh();
  52. ipt_goodcd.refresh();
  53. ipt_goodnm.refresh();
  54. grd_csrgoodinfo.valueMatrix(1, grd_csrgoodinfo.colRef("reqflag")) = model.property("reqflag");
  55. grd_csrgoodinfo.valueMatrix(1, grd_csrgoodinfo.colRef("deptnm")) = model.property("deptnm");
  56. grd_csrgoodinfo.valueMatrix(1, grd_csrgoodinfo.colRef("goodcd")) = model.property("goodcd");
  57. grd_csrgoodinfo.valueMatrix(1, grd_csrgoodinfo.colRef("goodnm")) = model.property("goodnm");
  58. grd_csrgoodinfo.valueMatrix(1, grd_csrgoodinfo.colRef("goodspec")) = model.property("goodspec");
  59. grd_csrgoodinfo.valueMatrix(1, grd_csrgoodinfo.colRef("goodmodel")) = model.property("goodmodel");
  60. grd_csrgoodinfo.valueMatrix(1, grd_csrgoodinfo.colRef("deliveunit")) = model.property("deliveunit");
  61. grd_csrgoodinfo.valueMatrix(1, grd_csrgoodinfo.colRef("dinfdivs")) = model.property("dinfdivs");
  62. fSearch();
  63. ]]>
  64. </script>
  65. <submission id="TRRSD00114" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/csrinfo"/>
  66. </model>
  67. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  68. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  69. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  70. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  71. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  72. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  73. <script type="javascript">
  74. <![CDATA[
  75. function fSearch()
  76. {
  77. submit("TRRSD00114");
  78. }
  79. ]]>
  80. </script>
  81. </xhtml:head>
  82. <xhtml:body guideline="1,625;" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  83. <group id="grp_tle" style="left:0px; top:0px; width:1015px; height:13px; ">
  84. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:243px; height:14px; ">부서별 CSR물품이력조회</caption>
  85. </group>
  86. <group id="grp_biz" style="left:0px; top:13px; width:1015px; height:744px; ">
  87. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:10px; width:1015px; height:40px; "/>
  88. <button id="btn_search" class="btn1_letter2" navindex="7" style="left:830px; top:20px; width:56px; height:22px; text-align:left; ">
  89. <caption>조회</caption>
  90. <script type="javascript" ev:event="DOMActivate">
  91. <![CDATA[
  92. fSearch();
  93. ]]>
  94. </script>
  95. </button>
  96. <line id="line14" class="line_4" style="x1:815px; y1:18px; x2:815px; y2:40px; "/>
  97. <caption id="caption14" class="search_name" style="left:15; top:19; width:86px; height:17px; ">기관코드 :</caption>
  98. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" appearance="minimal" style="left:105px; top:19px; width:95px; height:19px; ">
  99. <choices>
  100. <itemset>
  101. <label/>
  102. <value/>
  103. </itemset>
  104. </choices>
  105. </select1>
  106. <button id="btn_excel" class="btn1_letter2" navindex="7" style="left:890px; top:20px; width:56px; height:22px; text-align:left; ">
  107. <caption>엑셀</caption>
  108. <script type="javascript" ev:event="DOMActivate">
  109. <![CDATA[
  110. var fileName = window.fileDialog("save", ",", false, "CSR물품이력조회", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  111. if (fileName != "")
  112. {
  113. grd_csrbipumlist.saveExcel(fileName, "CSR물품이력조회");
  114. }
  115. ]]>
  116. </script>
  117. </button>
  118. <button id="button3" class="btn1_letter2" navindex="7" style="left:950px; top:20px; width:56px; height:22px; text-align:left; ">
  119. <caption>출력</caption>
  120. <script type="javascript" ev:event="DOMActivate">
  121. <![CDATA[
  122. ]]>
  123. </script>
  124. </button>
  125. <line id="line3" class="line_1" style="x1:0px; y1:153px; x2:1015px; y2:153px; "/>
  126. <button id="btn_reqdept" class="icon_search" style="left:383px; top:20px; width:16px; height:16px; ">
  127. <caption/>
  128. <script type="javascript" ev:event="DOMActivate">
  129. <![CDATA[
  130. modal("SPRSS01203");
  131. model.setValue(ipt_reqdeptcd.attribute("ref"), model.property("deptcd"));
  132. model.setValue(ipt_reqdeptnm.attribute("ref"), model.property("deptnm"));
  133. model.setValue(ipt_csrreqdeptcd2.attribute("ref"), model.property("csrreqdeptcd"));
  134. ipt_reqdeptcd.refresh();
  135. ipt_reqdeptnm.refresh();
  136. ipt_csrreqdeptcd2.refresh();
  137. // grd_csrdeptnm.valueMatrix(1,0) = model.getValue("/root/send/deptnm");
  138. // getCsrDeptList();
  139. cmb_csrreqdeptcd.value = model.getValue("/root/send/csrreqdeptcd2");
  140. //btn_search.dispatch("DOMActivate");
  141. if(cmb_csrreqdeptcd.value != "") {
  142. if(isRequiredControls("cmb_csrreqdeptcd")) {
  143. opt_csrdeptnm.value = cmb_csrreqdeptcd.label;
  144. //fSearch2();
  145. //
  146. // for(var i = 1; i <= grd_deptlist.rows; i++) {
  147. //
  148. // if( grd_deptlist.valueMatrix(i, grd_deptlist.colRef("deptcd")) == ipt_reqdeptcd.value ) {
  149. // grd_deptlist.row = i;
  150. // curRow = grd_deptlist.row;
  151. // fSearch();
  152. // break;
  153. // }
  154. // }
  155. }
  156. }
  157. ]]>
  158. </script>
  159. </button>
  160. <caption id="caption1" class="search_name" style="left:220px; top:20px; width:88px; height:17px; ">부 서 명 :</caption>
  161. <input id="ipt_reqdeptnm" ref="/root/send/deptnm" class="input_search" style="left:405px; top:20px; width:102px; height:19px; ">
  162. <script type="javascript" ev:event="xforms-value-changed">
  163. <![CDATA[
  164. misfValidationCheck("02", "", "deptcd,deptnm");
  165. model.refresh();
  166. ]]>
  167. </script>
  168. </input>
  169. <input id="ipt_reqdeptcd" ref="/root/send/deptcd" class="input_default" maxlength="10" style="left:310px; top:19px; width:70px; height:19px; "/>
  170. <datagrid id="grd_csrbipumlist" nodeset="/root/main/csrinfo/csrbipumhistlist" class="datagrid2" caption="부서코드^상태^물품&#xA;구분^부서명^물품코드^물품명^규격^모델^단위^멸균구분^처음&#xA;재고^비품&#xA;수량^재고&#xA;수량^청구&#xA;수량^반납&#xA;수량^파손&#xA;수량^분실&#xA;수량^분실상세^실사량^사유^수리&#xA;수량^확정^비품관리구분^불출/반납&#xA;수량^최종&#xA;저장일시^최종&#xA;저장자^최종&#xA;확정일시^최종&#xA;확정자^수정자ID^수정자^수정일자^최초&#xA;등록일자^청구구분^instcd^goodflag^purcunit^minexch^ddavguseqty^lrgcd^lrgnm^mdlcd^mdlnm^smlcd^smlnm^reqflag" colsep="^" colwidth="0, 44, 0, 0, 0, 0, 0, 0, 0, 0, 0, 50, 50, 50, 50, 50, 50, 100, 55, 100, 48, 37, 60, 77, 100, 60, 100, 60, 70, 70, 80, 80, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100" frozencols="8" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:0px; top:158px; width:1015px; height:582px; ">
  171. <col class="input_essential" ref="deptcd" visibility="hidden" _key="true"/>
  172. <col disabled="true" ref="rgstflag" type="combo">
  173. <choices>
  174. <item>
  175. <label>등록</label>
  176. <value>1</value>
  177. </item>
  178. <item>
  179. <label>변경</label>
  180. <value>2</value>
  181. </item>
  182. <item>
  183. <label>실사</label>
  184. <value>3</value>
  185. </item>
  186. <item>
  187. <label>확정</label>
  188. <value>4</value>
  189. </item>
  190. </choices>
  191. </col>
  192. <col disabled="true" ref="reqflag" type="combo" visibility="hidden" style="text-align:center; ">
  193. <choices>
  194. <item>
  195. <label>비품</label>
  196. <value>1</value>
  197. </item>
  198. <item>
  199. <label>소모품</label>
  200. <value>2</value>
  201. </item>
  202. <item>
  203. <label>린넨</label>
  204. <value>4</value>
  205. </item>
  206. <item>
  207. <label>멸균품목</label>
  208. <value>3</value>
  209. </item>
  210. <item>
  211. <label>세척멸균품목</label>
  212. <value>5</value>
  213. </item>
  214. </choices>
  215. </col>
  216. <col ref="deptnm" visibility="hidden"/>
  217. <col class="input_essential" ref="goodcd" type="inputbutton" visibility="hidden" _key="true"/>
  218. <col ref="goodnm" visibility="hidden"/>
  219. <col ref="goodspec" visibility="hidden"/>
  220. <col ref="goodmodel" visibility="hidden"/>
  221. <col ref="deliveunit" visibility="hidden"/>
  222. <col disabled="true" ref="dinfdivs" type="combo" visibility="hidden">
  223. <choices>
  224. <item>
  225. <label>멸균</label>
  226. <value>1</value>
  227. </item>
  228. <item>
  229. <label>비멸균</label>
  230. <value>2</value>
  231. </item>
  232. </choices>
  233. </col>
  234. <col ref="minexch"/>
  235. <!-- 처음재고수량(처음 안전재고를 입력시에 처음 가질 재고량) -->
  236. <col ref="safestocqty" type="input" format="(-)#,###.##" style="text-align:right; "/>
  237. <col ref="realqty"/>
  238. <col disabled="true" ref="chngsafestocqty" type="input" style="text-align:right; "/>
  239. <col ref="reqlmtqty" type="input" style="text-align:right; "/>
  240. <col/>
  241. <col/>
  242. <col type="combo">
  243. <choices>
  244. <item>
  245. <label>비품변경없이청구</label>
  246. <value>1</value>
  247. </item>
  248. <item>
  249. <label>비품수량감소</label>
  250. <value>2</value>
  251. </item>
  252. </choices>
  253. </col>
  254. <col ref="orginspqty"/>
  255. <col ref="cmt" type="input"/>
  256. <col ref="rpirqty" type="input" visibility="hidden" style="text-align:right; "/>
  257. <col checkvalue="Y,N" ref="certyn" type="checkbox" visibility="hidden"/>
  258. <col class="input_essential" ref="goodmngtflag" type="combo" visibility="hidden" _key="true">
  259. <choices>
  260. <item>
  261. <label>청구</label>
  262. <value>1</value>
  263. </item>
  264. <item>
  265. <label>반납</label>
  266. <value>2</value>
  267. </item>
  268. </choices>
  269. </col>
  270. <col ref="mngtqty" visibility="hidden"/>
  271. <col ref="lastupdtdt" format="yyyy-mm-dd hh:nn"/>
  272. <col ref="lastupdtrnm"/>
  273. <col ref="certdt" format="yyyy-mm-dd hh:nn"/>
  274. <col ref="certnm"/>
  275. <col ref="lastupdtrid" visibility="hidden"/>
  276. <col ref="lastupdtrnm" visibility="hidden"/>
  277. <col ref="lastupdtdt" visibility="hidden" format="yyyy-mm-dd"/>
  278. <col ref="fstrgstdt" visibility="hidden" format="yyyy-mm-dd"/>
  279. <col ref="reqflag" visibility="hidden"/>
  280. <col ref="instcd" visibility="hidden"/>
  281. <col ref="goodflag" visibility="hidden"/>
  282. <col ref="purcunit" visibility="hidden"/>
  283. <col ref="minexch" visibility="hidden"/>
  284. <col ref="ddavguseqty" visibility="hidden"/>
  285. <col ref="lrgcd" visibility="hidden"/>
  286. <col ref="lrgnm" visibility="hidden"/>
  287. <col ref="mdlcd" visibility="hidden"/>
  288. <col ref="mdlnm" visibility="hidden"/>
  289. <col ref="smlcd" visibility="hidden"/>
  290. <col ref="smlnm" visibility="hidden"/>
  291. <col ref="reqflag" visibility="hidden"/>
  292. <script type="javascript" ev:event="onbuttonclick">
  293. <![CDATA[
  294. fGridSetData("grd_csrbipumlist");
  295. ]]>
  296. </script>
  297. </datagrid>
  298. <caption id="caption3" class="tit_2" style="left:5px; top:139px; width:77px; height:13px; ">물품이력</caption>
  299. <caption id="caption2" class="search_name" style="left:520px; top:21px; width:88px; height:17px; ">물품코드 :</caption>
  300. <input id="ipt_goodnm" ref="/root/send/goodnm" class="input_search" style="left:705px; top:21px; width:102px; height:19px; ">
  301. <script type="javascript" ev:event="xforms-value-changed">
  302. <![CDATA[
  303. misfValidationCheck("02", "", "deptcd,deptnm");
  304. model.refresh();
  305. ]]>
  306. </script>
  307. </input>
  308. <input id="ipt_goodcd" ref="/root/send/goodcd" class="input_default" maxlength="10" style="left:610px; top:20px; width:70px; height:19px; "/>
  309. <caption id="caption4" class="tit_2" style="left:5px; top:61px; width:77px; height:14px; ">물품정보</caption>
  310. <line id="line1" class="line_1" style="x1:0px; y1:75px; x2:1015px; y2:75px; "/>
  311. <datagrid id="grd_csrgoodinfo" nodeset="/root/main/csrgoodinfo" caption="물품구분^부서명^물품코드^물품명^규격^모델^단위^멸균구분" colsep="^" colwidth="63, 99, 100, 150, 164, 146, 48, 64" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:80px; width:1015px; height:48px; ">
  312. <col ref="reqflag" type="combo">
  313. <choices>
  314. <item>
  315. <label>비품</label>
  316. <value>1</value>
  317. </item>
  318. <item>
  319. <label>소모품</label>
  320. <value>2</value>
  321. </item>
  322. <item>
  323. <label>린넨</label>
  324. <value>4</value>
  325. </item>
  326. <item>
  327. <label>멸균품목</label>
  328. <value>3</value>
  329. </item>
  330. <item>
  331. <label>세척멸균품목</label>
  332. <value>5</value>
  333. </item>
  334. </choices>
  335. </col>
  336. <col ref="deptnm"/>
  337. <col ref="goodcd"/>
  338. <col ref="goodnm"/>
  339. <col ref="goodspec"/>
  340. <col ref="goodmodel"/>
  341. <col ref="deliveunit"/>
  342. <col ref="dinfdivs" type="combo">
  343. <choices>
  344. <item>
  345. <label>멸균</label>
  346. <value>1</value>
  347. </item>
  348. <item>
  349. <label>비멸균</label>
  350. <value>2</value>
  351. </item>
  352. </choices>
  353. </col>
  354. </datagrid>
  355. <button id="btn_goodcd" class="icon_search" style="left:685px; top:22px; width:16px; height:16px; ">
  356. <caption/>
  357. <script type="javascript" ev:event="DOMActivate">
  358. <![CDATA[
  359. modal("SMRSS00130");
  360. model.setValue(ipt_goodcd.attribute("ref"), model.property("goodcd"));
  361. model.setValue(ipt_goodnm.attribute("ref"), model.property("goodnm"));
  362. model.removeNodeset("/root/send/reqdata");
  363. model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
  364. model.makeValue("/root/send/reqdata/goodcd", model.getValue(ipt_goodcd.attribute("ref")));
  365. model.makeValue("/root/send/reqdata/deptcd", "");
  366. model.makeValue("/root/send/reqdata/reqflag", model.getValue(rdo_reqflag.attribute("ref")));
  367. model.makeValue("/root/send/reqdata/reqflag2", model.getValue(rdo_reqflag2.attribute("ref")));
  368. model.makeValue("/root/send/reqdata/reqflag3", "1");
  369. model.makeValue("/root/send/reqdata/rgstflag" , "");
  370. ipt_goodcd.refresh();
  371. ipt_goodnm.refresh();
  372. fSearch();
  373. ]]>
  374. </script>
  375. </button>
  376. </group>
  377. </xhtml:body>
  378. </xhtml:html>