SMRSS01401_CSR 멸균물품 등록.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441
  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>부서별CSR물품관리</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <csrdeptlist/>
  11. <csrreqdeptnm>
  12. <csrreqdeptnm/>
  13. </csrreqdeptnm>
  14. <csrinfo>
  15. <csrbipumlist>
  16. <deptcd/>
  17. <deptnm/>
  18. <goodcd/>
  19. <goodnm/>
  20. <goodspec/>
  21. <goodmodel/>
  22. <deliveunit/>
  23. <safestocqty/>
  24. <chngsafestocqty/>
  25. <goodmngtflag/>
  26. <cmt/>
  27. <certyn/>
  28. <lastupdtrid/>
  29. <lastupdtrnm/>
  30. <lastupdtdt/>
  31. <fstrgstdt/>
  32. <reqflag/>
  33. <instcd/>
  34. <goodflag/>
  35. <purcunit/>
  36. <minexch/>
  37. <ddavguseqty/>
  38. <lrgcd/>
  39. <lrgnm/>
  40. <mdlcd/>
  41. <mdlnm/>
  42. <smlcd/>
  43. <smlnm/>
  44. </csrbipumlist>
  45. <csrsomolist>
  46. <deptcd/>
  47. <deptnm/>
  48. <goodcd/>
  49. <goodnm/>
  50. <goodspec/>
  51. <goodmodel/>
  52. <deliveunit/>
  53. <safestocqty/>
  54. <chngsafestocqty/>
  55. <goodmngtflag/>
  56. <cmt/>
  57. <certyn/>
  58. <lastupdtrid/>
  59. <lastupdtrnm/>
  60. <lastupdtdt/>
  61. <fstrgstdt/>
  62. <reqflag/>
  63. <instcd/>
  64. <goodflag/>
  65. <purcunit/>
  66. <minexch/>
  67. <ddavguseqty/>
  68. <lrgcd/>
  69. <lrgnm/>
  70. <mdlcd/>
  71. <mdlnm/>
  72. <smlcd/>
  73. <smlnm/>
  74. </csrsomolist>
  75. <csrdinflist>
  76. <deptcd/>
  77. <deptnm/>
  78. <goodcd/>
  79. <goodnm/>
  80. <goodspec/>
  81. <goodmodel/>
  82. <deliveunit/>
  83. <safestocqty/>
  84. <chngsafestocqty/>
  85. <goodmngtflag/>
  86. <cmt/>
  87. <certyn/>
  88. <lastupdtrid/>
  89. <lastupdtrnm/>
  90. <lastupdtdt/>
  91. <fstrgstdt/>
  92. <reqflag/>
  93. <instcd/>
  94. <goodflag/>
  95. <purcunit/>
  96. <minexch/>
  97. <ddavguseqty/>
  98. <lrgcd/>
  99. <lrgnm/>
  100. <mdlcd/>
  101. <mdlnm/>
  102. <smlcd/>
  103. <smlnm/>
  104. </csrdinflist>
  105. </csrinfo>
  106. </main>
  107. <send>
  108. <deptlist>
  109. <goodflag/>
  110. <deptcd/>
  111. <instcd/>
  112. <goodcd/>
  113. </deptlist>
  114. <goodbaseqtylist/>
  115. <goodcd/>
  116. <deptcd/>
  117. <deptnm/>
  118. <csrreqdeptcd2/>
  119. <instcd/>
  120. <goodflag>TM</goodflag>
  121. <csrreqdeptcd/>
  122. <goodnm/>
  123. <goodflag2/>
  124. <dept/>
  125. <reqflag/>
  126. </send>
  127. <init>
  128. <mlist/>
  129. </init>
  130. <hidden/>
  131. <temp/>
  132. <copynode/>
  133. </root>
  134. </instance>
  135. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  136. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  137. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  138. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  139. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  140. <script type="javascript" ev:event="xforms-ready">
  141. <![CDATA[
  142. fInitialize();
  143. ]]>
  144. </script>
  145. <submission id="TRRSS00101" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/retvcond" resultref="/root/main/deptlist"/>
  146. <submission id="TRRSS00102" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/deptlist" resultref="/root/main/goodbaseqtylist"/>
  147. <submission id="TRRSS01211" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/csrreqdeptlist"/>
  148. <submission id="TRRSS01212" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/csrdeptlist"/>
  149. <submission id="TRRSD00112" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/csrinfo"/>
  150. <submission id="TXRSD00111" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp"/>
  151. <submission id="TRRSC05303" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp"/>
  152. <submission id="TRZBC00101" mediatype="application/x-www-form-urlencoded" method="post"/>
  153. <submission id="TRRSD06021" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/csrbipumlist"/>
  154. </model>
  155. <script type="javascript">
  156. <![CDATA[
  157. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  158. var curRow = -1;
  159. function fInitialize()
  160. {
  161. // model.removeNodeset("/root/main/deptlist");
  162. // model.removeNodeset("/root/main/goodbaseqtylist");
  163. //model.resetInstanceNode("/root/send");
  164. //그리드를 초기화 한다.
  165. misfGridInit(grd_deptlist);
  166. misfGridInit(grd_csrbipumlist);
  167. misfComboComCdListMulti("Z0007", "cmb_instcd");
  168. zbcfGetCodeList( new Array (
  169. "R0039" //불출단위
  170. )
  171. , new Array ( "/root/init/mlist" //청구방법
  172. )
  173. );
  174. //기관코드, 물품구분 공통 코드를 가져온다.
  175. model.makeValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
  176. model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
  177. submit("TRRSS01211");
  178. model.refresh();
  179. // model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
  180. // submit("TRRSD06021");
  181. //cmb_csrreqdeptcd.select(0);
  182. // btn_search.dispatch("DOMActivate");
  183. }
  184. function fSearch2() {
  185. // model.copyNode("/root/main/cond", "/root/main/csrreqdeptlist[" + grd_csrreqdeptlist.row + "]"); //부서구분이 가지고 있는 instance를 복사(아래 상세 화면에 보여줌.)
  186. model.makeValue("/root/send/reqdata/csrreqdeptcd", cmb_csrreqdeptcd.value); //청구부서구분코드
  187. model.makeValue("/root/send/reqdata/useyn", model.getValue("/root/send/useyn"));
  188. model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
  189. submit("TRRSS01212");
  190. }
  191. function fSearch()
  192. {
  193. curRow = grd_deptlist.row;
  194. var deptcd = grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("deptcd"));
  195. var instcd = grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("instcd"));
  196. model.setValue(ipt_deptcd.attribute("ref"), deptcd);
  197. ipt_deptcd.refresh();
  198. model.makeValue("/root/send/reqdata/deptcd", deptcd);
  199. model.makeValue("/root/send/reqdata/instcd", instcd);
  200. model.makeValue("/root/send/reqdata/reqflag", model.getValue(rdo_reqflag.attribute("ref")));
  201. model.makeValue("/root/send/reqdata/reqflag2", "2");
  202. submit("TRRSD06021");
  203. }
  204. ]]>
  205. </script>
  206. </xhtml:head>
  207. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  208. <group id="grp_tle" style="left:0px; top:0px; width:880px; height:13px; ">
  209. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:141px; height:14px; ">부서별 CSR물품조회</caption>
  210. </group>
  211. <group id="grp_biz" scroll="auto" style="left:0px; top:12px; width:880px; height:727px; ">
  212. <input id="ipt_deptcd" ref="/root/send/dept" visibility="hidden" style="left:325px; top:76px; width:100px; height:19px; "/>
  213. <input id="ipt_goodflag" ref="/root/send/goodflag2" visibility="hidden" style="left:90px; top:75px; width:100px; height:19px; "/>
  214. <input id="ipt+csrreqdeptcd2" ref="/root/send/csrreqdeptcd2" visibility="hidden" style="left:220px; top:75px; width:100px; height:19px; "/>
  215. <group id="grp_sea" style="left:0px; top:5px; width:880px; height:62px; vertical-align:top; ">
  216. <shape id="roundrect1" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:880px; height:62px; background-color:#fffbf2; border-color:#ffd799; "/>
  217. <caption id="caption2" class="search_name" style="left:15px; top:9; width:89px; height:17px; ">기관코드 :</caption>
  218. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" appearance="minimal" style="left:105px; top:9px; width:115px; height:19px; ">
  219. <choices>
  220. <itemset>
  221. <label/>
  222. <value/>
  223. </itemset>
  224. </choices>
  225. </select1>
  226. <caption id="cap_csrreqdeptcd" class="search_name" style="left:240px; top:10px; width:89px; height:17px; ">부서구분 :</caption>
  227. <select1 id="cmb_csrreqdeptcd" ref="/root/send/csrreqdeptcd" class="combo_s_essential" appearance="minimal" style="left:329px; top:9px; width:76px; height:19px; ">
  228. <choices>
  229. <itemset nodeset="/root/main/csrreqdeptlist">
  230. <label ref="csrreqdeptnm"/>
  231. <value ref="csrreqdeptcd"/>
  232. </itemset>
  233. </choices>
  234. <script type="javascript" ev:event="xforms-value-changed">
  235. <![CDATA[
  236. btn_search.dispatch("DOMActivate");
  237. ]]>
  238. </script>
  239. </select1>
  240. <line id="line3" class="line_4" style="x1:795px; y1:4px; x2:795px; y2:30px; border-color:#ffe4bb; border-left-style:solid; "/>
  241. <button id="btn_search" class="btn1_letter2" style="left:810px; top:7px; width:56px; height:22px; ">
  242. <caption>조회</caption>
  243. <script type="javascript" ev:event="DOMActivate">
  244. <![CDATA[
  245. if(isRequiredControls("cmb_csrreqdeptcd")) {
  246. fSearch2();
  247. }
  248. fSearch();
  249. //fSerachData();
  250. ]]>
  251. </script>
  252. </button>
  253. <button id="btn_reqdept" class="icon_search" style="left:581px; top:9px; width:16px; height:16px; ">
  254. <caption/>
  255. <script type="javascript" ev:event="DOMActivate">
  256. <![CDATA[
  257. misfOpenPopUpList("52", ipt_reqdeptcd, "", "deptcd,deptnm,csrreqdeptcd2");
  258. model.refresh();
  259. // grd_csrdeptnm.valueMatrix(1,0) = model.getValue("/root/send/deptnm");
  260. // getCsrDeptList();
  261. cmb_csrreqdeptcd.value = model.getValue("/root/send/csrreqdeptcd2");
  262. //btn_search.dispatch("DOMActivate");
  263. if(cmb_csrreqdeptcd.value != "") {
  264. if(isRequiredControls("cmb_csrreqdeptcd")) {
  265. // grd_csrreqdeptnm.valueMatrix(1, grd_csrreqdeptnm.colRef("csrreqdeptnm")) = cmb_csrreqdeptcd.label;
  266. fSearch2();
  267. for(var i = 1; i <= grd_deptlist.rows; i++) {
  268. if( grd_deptlist.valueMatrix(i, grd_deptlist.colRef("deptcd")) == ipt_reqdeptcd.value ) {
  269. grd_deptlist.row = i;
  270. fSearch();
  271. break;
  272. }
  273. }
  274. }
  275. }
  276. ]]>
  277. </script>
  278. </button>
  279. <caption id="caption3" class="search_name" style="left:420px; top:10px; width:88px; height:17px; ">부 서 명 :</caption>
  280. <input id="ipt_reqdeptnm" ref="/root/send/deptnm" class="input_search" style="left:603px; top:9px; width:162px; height:19px; ">
  281. <script type="javascript" ev:event="xforms-value-changed">
  282. <![CDATA[
  283. misfValidationCheck("02", "", "deptcd,deptnm");
  284. model.refresh();
  285. ]]>
  286. </script>
  287. </input>
  288. <input id="ipt_reqdeptcd" ref="/root/send/deptcd" class="input_default" maxlength="10" style="left:510px; top:9px; width:70px; height:19px; "/>
  289. <input id="ipt_goodnm" ref="/root/send/goodnm" class="input_search" appearance="input" style="left:218px; top:34px; width:147px; height:19px; ">
  290. <script type="javascript" ev:event="xforms-value-changed">
  291. <![CDATA[
  292. if(ipt_goodnm.value != "")
  293. {
  294. rszfValidationCheck("TRRSD00191", "goodlist", "refcond,instcd,goodflag,goodcd,goodnm",
  295. "goodnm" + "," + model.getValue(cmb_instcd.attribute("ref")) + "," + ipt_goodflag.value + ",," + ipt_goodnm.value,
  296. "", "goodcd,goodnm",
  297. ipt_goodcd,"SPRSD00210","instcd,goodflag","cmb_instcd,ipt_goodflag");
  298. }else{
  299. ipt_goodcd.value = "";
  300. }
  301. model.refresh();
  302. ]]>
  303. </script>
  304. </input>
  305. <button id="btn_searchgoodcd" class="icon_search" style="left:196px; top:35px; width:16px; height:16px; ">
  306. <caption/>
  307. <script type="javascript" ev:event="DOMActivate">
  308. <![CDATA[
  309. rszfOpenPopUpListByWndName(ipt_goodcd,"","goodcd,ab,goodnm","SPRSD00210","instcd,goodflag","cmb_instcd,ipt_goodflag");
  310. model.refresh();
  311. ]]>
  312. </script>
  313. </button>
  314. <caption id="cap_goodcd" class="search_name" style="left:15px; top:35px; width:91px; height:17px; ">물품코드 :</caption>
  315. <input id="ipt_goodcd" ref="/root/send/goodcd" class="input_fix" maxlength="10" style="left:105px; top:34px; width:85px; height:19px; ">
  316. <script type="javascript" ev:event="xforms-value-changed">
  317. <![CDATA[
  318. if(ipt_goodcd.value != "")
  319. {
  320. rszfValidationCheck("TRRSD00191", "goodlist", "refcond,instcd,goodflag,goodcd",
  321. "goodcd" + "," + model.getValue(cmb_instcd.attribute("ref")) + "," + ipt_goodflag.value + "," + ipt_goodcd.value, "",
  322. "goodcd,goodnm",
  323. ipt_goodcd,"SPRSD00210","instcd,goodflag","cmb_instcd,ipt_goodflag");
  324. }else{
  325. ipt_goodnm.value = "";
  326. }
  327. model.refresh();
  328. ]]>
  329. </script>
  330. </input>
  331. </group>
  332. <caption id="caption1" class="tit_2" style="left:5px; top:104px; width:157px; height:13px; ">부서</caption>
  333. <line id="line1" class="line_1" style="x1:205px; y1:119px; x2:880px; y2:119px; "/>
  334. <caption id="caption4" class="tit_2" style="left:209px; top:104px; width:91px; height:13px; ">CSR 비품</caption>
  335. <line id="line2" class="line_1" style="x1:0px; y1:119px; x2:200px; y2:119px; "/>
  336. <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:124px; width:200px; height:561px; ">
  337. <col disabled="true" ref="deptnm"/>
  338. <col ref="deptcd" visibility="hidden"/>
  339. <col ref="instcd" visibility="hidden"/>
  340. <col ref="goodflag" visibility="hidden"/>
  341. <script type="javascript" ev:event="onclick">
  342. <![CDATA[
  343. if(grd_deptlist.isCell(event.target) && grd_deptlist.mouseRow >= grd_deptlist.fixedrows){
  344. model.setValue(ipt_reqdeptcd.attribute("ref"), grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("deptcd")));
  345. model.setValue(ipt_reqdeptnm.attribute("ref"), grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("deptnm")));
  346. fSearch();
  347. }
  348. ]]>
  349. </script>
  350. <script type="javascript" ev:event="onaftersort">
  351. <![CDATA[
  352. grd_deptlist.gridToInstance();
  353. ]]>
  354. </script>
  355. </datagrid>
  356. <datagrid id="grd_csrbipumlist" nodeset="/root/main/csrbipumlist" class="datagrid2" caption="부서명^물품코드^물품명^규격^모델^단위^안전&#xA;재고" colsep="^" colwidth="100, 70, 150, 113, 113, 40, 50" mergecellsfixedrows="bycolrec" rowheader="update" rowsep="|" style="left:205px; top:124px; width:675px; height:561px; ">
  357. <col ref="deptnm"/>
  358. <col class="input_essential" ref="goodcd" _key="true"/>
  359. <col ref="goodnm"/>
  360. <col ref="goodspec"/>
  361. <col ref="goodmodel"/>
  362. <col ref="deliveunit"/>
  363. <col ref="safestocqty" format="(-)#,###.##" style="text-align:right; "/>
  364. </datagrid>
  365. <select1 id="rdo_reqflag" ref="/root/send/reqflag" overflow="visible" appearance="full" cellspacing="\" cols="5" style="left:300px; top:102px; width:275px; height:13px; border-style:none; ">
  366. <choices>
  367. <item>
  368. <label>전체</label>
  369. <value/>
  370. </item>
  371. <item>
  372. <label>비품</label>
  373. <value>1</value>
  374. </item>
  375. <item>
  376. <label>소모품</label>
  377. <value>2</value>
  378. </item>
  379. <item>
  380. <label>린넨</label>
  381. <value>4</value>
  382. </item>
  383. <item>
  384. <label>멸균품목</label>
  385. <value>3</value>
  386. </item>
  387. </choices>
  388. <script type="javascript" ev:event="xforms-value-changed">
  389. <![CDATA[
  390. fSearch();
  391. ]]>
  392. </script>
  393. </select1>
  394. </group>
  395. </xhtml:body>
  396. </xhtml:html>