SPRSS00111_부서별CSR물품이력조회.xrw 14 KB

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