SMRSD11700_일일수불내역조회.xrw 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.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. <goodreqcsrdeptlist>
  11. <deptcd/>
  12. <deptnm/>
  13. <instcd/>
  14. <goodflag/>
  15. </goodreqcsrdeptlist>
  16. <csrinfo>
  17. <csrbipumlist>
  18. <instcd/>
  19. <goodcd/>
  20. <goodnm/>
  21. <goodspec/>
  22. <delivedeptcd/>
  23. <delivedeptnm/>
  24. <deliveunit/>
  25. <destqty/>
  26. <goodsaveqty/>
  27. <scrubberqty/>
  28. <dinfqty/>
  29. <csrrealqty/>
  30. <lendqty/>
  31. <csrtotlqty/>
  32. <nodelive/>
  33. <cmt/>
  34. </csrbipumlist>
  35. <csrsomolist>
  36. <instcd/>
  37. <goodcd/>
  38. <goodnm/>
  39. <goodspec/>
  40. <delivedeptcd/>
  41. <delivedeptnm/>
  42. <deliveunit/>
  43. <destqty/>
  44. <goodsaveqty/>
  45. <scrubberqty/>
  46. <dinfqty/>
  47. <csrrealqty/>
  48. <lendqty/>
  49. <csrtotlqty/>
  50. <nodelive/>
  51. <cmt/>
  52. </csrsomolist>
  53. <csrdinflist>
  54. <instcd/>
  55. <goodcd/>
  56. <goodnm/>
  57. <goodspec/>
  58. <delivedeptcd/>
  59. <delivedeptnm/>
  60. <deliveunit/>
  61. <destqty/>
  62. <goodsaveqty/>
  63. <scrubberqty/>
  64. <dinfqty/>
  65. <csrrealqty/>
  66. <lendqty/>
  67. <csrtotlqty/>
  68. <nodelive/>
  69. <cmt/>
  70. </csrdinflist>
  71. </csrinfo>
  72. <csrbipumlist/>
  73. </main>
  74. <send>
  75. <instcd/>
  76. <deptcd/>
  77. <deptnm/>
  78. <workdd/>
  79. <goodcd/>
  80. <goodnm/>
  81. <deliveflag>1</deliveflag>
  82. <reqpridflag/>
  83. <chkyn/>
  84. <csrreqdeptcd2/>
  85. <goodflag>T</goodflag>
  86. <deliveflag/>
  87. <reqpridflag/>
  88. <csrreqdeptcd/>
  89. <reqpridflag/>
  90. <eryn/>
  91. </send>
  92. <init>
  93. </init>
  94. <hidden/>
  95. <temp/>
  96. </root>
  97. </instance>
  98. <script type="javascript">
  99. <![CDATA[
  100. var rowStat = "C";
  101. var curRow = -1;
  102. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  103. function fInitialize() {
  104. model.removeNodeset("/root/main/reqlist");
  105. model.removeNodeset("/root/main/goodreqcsrdeptlist");
  106. misfComboComCdListMulti("Z0007", "cmb_instcd");
  107. //
  108. model.setValue(cmb_instcd.attribute("ref"), getUserInfo("dutplceinstcd"));
  109. model.setValue(ipt_workdd.attribute("ref"), getCurrentDate());
  110. cmb_instcd.refresh();
  111. ipt_workdd.refresh();
  112. fsearch();
  113. fsearch3();
  114. }
  115. function fsearch() {
  116. model.makeValue("/root/send/reqdata/reqdeptcd", getUserInfo("dutplcecd"));
  117. model.makeValue("/root/send/reqdata/instcd" , getUserInfo("dutplceinstcd"));
  118. var daykind = "";
  119. if(getCurrentWeek() == "0" ||getCurrentWeek() == "6") {
  120. daykind = "2";
  121. } else {
  122. daykind = "1";
  123. }
  124. model.makeValue("/root/send/reqdata/daykind" , daykind);
  125. submit("TRRSD06013");
  126. var degr = model.getValue("/root/init/reqseqlist/reqseq");
  127. var node = instance1.selectSingleNode("/root/init/reqtimslist");
  128. addComboItem( "cmb_reqpridflag", "전체", "", "above");
  129. if(node != null) {
  130. cmb_reqpridflag.value = degr;
  131. model.setValue(chk_eryn.attribute("ref"), "1");
  132. chk_eryn.refresh();
  133. } else {
  134. model.setValue(chk_eryn.attribute("ref"), "Y");
  135. chk_eryn.refresh();
  136. chk_eryn.dispatch("xforms-value-changed");
  137. chk_eryn.disabled = true;
  138. }
  139. }
  140. function fsearch2() {
  141. // model.makeValue("/root/send/reqdata/csrreqdeptcd", cmb_csrreqdeptcd.value);
  142. // model.makeValue("/root/send/reqdata/useyn", "Y");
  143. model.makeValue("/root/send/delivedd", model.getValue(ipt_workdd.attribute("ref")));
  144. submit("TRRSE00121");
  145. }
  146. function fsearch3() {
  147. model.makeValue("/root/send/reqdata/instcd", getUserInfo("dutplceinstcd"));
  148. model.makeValue("/root/send/reqdata/useyn" , "Y");
  149. submit("TRRSS01211");
  150. addComboItem( "cmb_csrreqdeptcd", "전체", "", "above");
  151. }
  152. function fsearch4() {
  153. model.makeValue("/root/send/reqdata/deptcd", grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("deptcd")));
  154. model.makeValue("/root/send/reqdata/instcd", model.getValue(cmb_instcd.attribute("ref")));
  155. model.makeValue("/root/send/reqdata/workdd", model.getValue(ipt_workdd.attribute("ref")));
  156. model.makeValue("/root/send/reqdata/goodcd", model.getValue(ipt_goodcd.attribute("ref")));
  157. model.makeValue("/root/send/reqdata/goodnm", model.getValue(ipt_goodnm.attribute("ref")));
  158. submit("TRRSD11701");
  159. }
  160. ]]>
  161. </script>
  162. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  163. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  164. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  165. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  166. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  167. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  168. <script type="javascript" ev:event="xforms-ready">
  169. <![CDATA[
  170. fInitialize();
  171. // btn_search.dispatch("DOMActivate");
  172. ]]>
  173. </script>
  174. <submission id="TRRSD11701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/csrbipumlist"/>
  175. <submission id="TXRSD11701" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/temp"/>
  176. <submission id="TRRSD06013" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/init/reqtimslist"/>
  177. <submission id="TRRSS01211" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/csrdeptlist"/>
  178. <submission id="TRRSS01212" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqdata" resultref="/root/main/csrdeptlist"/>
  179. <submission id="TRRSE00121" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/csrdeptlist"/>
  180. </model>
  181. </xhtml:head>
  182. <xhtml:body pagewidth="1211" pageheight="784" style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  183. <group id="grp_tle" style="left:0px; top:0px; width:1195px; height:13px; ">
  184. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:106px; height:13px; ">CSR 수불내역</caption>
  185. </group>
  186. <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  187. <group id="grp_sea" style="left:0px; top:0px; width:1195px; height:65px; vertical-align:top; ">
  188. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1195px; height:65px; background-color:#fffbf2; border-color:#ffd799; "/>
  189. <caption id="cap_instcd" class="search_name" style="left:15px; top:9px; width:86px; height:17px; ">기관코드 :</caption>
  190. <line id="line13" class="line_4" style="x1:1000px; y1:20px; x2:1000px; y2:45px; border-color:#ffe4bb; border-left-style:solid; "/>
  191. <button id="btn_search" class="btn1_letter2" style="left:1015px; top:23px; width:56px; height:22px; ">
  192. <caption>조회</caption>
  193. <script type="javascript" ev:event="DOMActivate">
  194. <![CDATA[
  195. if(!isRequiredControls("cmb_instcd")) return;
  196. fsearch2();
  197. ]]>
  198. </script>
  199. </button>
  200. <select1 id="cmb_instcd" ref="/root/send/instcd" class="combo_s_essential" appearance="minimal" style="left:102px; top:8px; width:123px; height:19px; ">
  201. <choices>
  202. <itemset>
  203. <label/>
  204. <value/>
  205. </itemset>
  206. </choices>
  207. <script type="javascript" ev:event="xforms-value-changed">
  208. <![CDATA[
  209. btn_search.dispatch("DOMActivate");
  210. ]]>
  211. </script>
  212. </select1>
  213. <button id="btn_excel" class="btn1_letter2" style="left:1073px; top:23px; width:56px; height:22px; ">
  214. <caption>엑셀</caption>
  215. <script type="javascript" ev:event="DOMActivate">
  216. <![CDATA[
  217. var fileName = window.fileDialog("save", ",", false, "CSR마감기준시간", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  218. if (fileName != "")
  219. {
  220. grd_bipumlist.saveExcel(fileName, "청구현황List");
  221. }
  222. ]]>
  223. </script>
  224. </button>
  225. <button id="btn_prt" class="btn1_letter2" style="left:1131px; top:23px; width:56px; height:22px; ">
  226. <caption>출력</caption>
  227. <script type="javascript" ev:event="DOMActivate">
  228. <![CDATA[
  229. var fileName = window.fileDialog("save", ",", false, "CSR마감기준시간", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  230. if (fileName != "")
  231. {
  232. grd_csrtmlist.saveExcel(fileName, "청구현황List");
  233. }
  234. ]]>
  235. </script>
  236. </button>
  237. <caption id="caption1" class="search_name" style="left:16px; top:35px; width:88px; height:17px; ">부서구분 :</caption>
  238. <caption id="cap_goodcd" class="search_name" style="left:235px; top:40px; width:91px; height:17px; ">물품코드 :</caption>
  239. <input id="ipt_goodnm" ref="/root/send/goodnm" class="input_search" appearance="input" style="left:448px; top:39px; width:170px; height:19px; ">
  240. <script type="javascript" ev:event="xforms-value-changed">
  241. <![CDATA[
  242. if(ipt_goodnm.value != "")
  243. {
  244. rszfValidationCheck("TRRSD00191", "goodlist", "refcond,instcd,goodflag,goodcd,goodnm",
  245. "goodnm" + "," + model.getValue(cmb_instcd.attribute("ref")) + "," + ipt_goodflag.value + ",," + ipt_goodnm.value,
  246. "", "goodcd,goodnm",
  247. ipt_goodcd,"SPRSD00210","instcd,goodflag","cmb_instcd,ipt_goodflag");
  248. }else{
  249. ipt_goodcd.value = "";
  250. }
  251. model.refresh();
  252. ]]>
  253. </script>
  254. </input>
  255. <input id="ipt_goodcd" ref="/root/send/goodcd" class="input_fix" style="left:328px; top:39px; width:95px; height:19px; ">
  256. <script type="javascript" ev:event="xforms-value-changed">
  257. <![CDATA[
  258. if(ipt_goodcd.value != "")
  259. {
  260. rszfValidationCheck("TRRSD00191", "goodlist", "refcond,instcd,goodflag,goodcd",
  261. "goodcd" + "," + model.getValue(cmb_instcd.attribute("ref")) + "," + ipt_goodflag.value + "," + ipt_goodcd.value, "",
  262. "goodcd,goodnm",
  263. ipt_goodcd,"SPRSD00210","instcd,goodflag","cmb_instcd,ipt_goodflag");
  264. }else{
  265. ipt_goodnm.value = "";
  266. }
  267. model.refresh();
  268. ]]>
  269. </script>
  270. </input>
  271. <caption id="caption2" class="search_name" style="left:235px; top:10px; width:86px; height:17px; ">조회일자 :</caption>
  272. <input id="ipt_workdd" ref="/root/send/workdd" inputtype="date" style="left:328px; top:8px; width:100px; height:19px; "/>
  273. <select1 id="cmb_csrreqdeptcd" ref="/root/send/csrreqdeptcd" class="combo_s_essential" appearance="minimal" style="left:102px; top:35px; width:123px; height:19px; ">
  274. <choices>
  275. <itemset nodeset="/root/main/csrreqdeptlist">
  276. <label ref="csrreqdeptnm"/>
  277. <value ref="csrreqdeptcd"/>
  278. </itemset>
  279. </choices>
  280. <script type="javascript" ev:event="xforms-value-changed">
  281. <![CDATA[
  282. btn_search.dispatch("DOMActivate");
  283. ]]>
  284. </script>
  285. </select1>
  286. <button id="btn_goodcd" class="icon_search" style="left:427px; top:40px; width:16px; height:16px; ">
  287. <caption/>
  288. <script type="javascript" ev:event="DOMActivate">
  289. <![CDATA[
  290. modal("SMRSS00130");
  291. model.setValue(ipt_goodcd.attribute("ref"), model.property("goodcd"));
  292. model.setValue(ipt_goodnm.attribute("ref"), model.property("goodnm"));
  293. ipt_goodcd.refresh();
  294. ipt_goodnm.refresh();
  295. //btn_search.dispatch("DOMActivate");
  296. ]]>
  297. </script>
  298. </button>
  299. <select id="chk_eryn" ref="/root/send/eryn" overflow="visible" appearance="full" cellspacing="70" cols="2" style="left:535px; top:10px; width:190px; height:15px; border-style:none; ">
  300. <choices>
  301. <item>
  302. <label>정규</label>
  303. <value>1</value>
  304. </item>
  305. <item>
  306. <label>응급</label>
  307. <value>2</value>
  308. </item>
  309. </choices>
  310. <script type="javascript" ev:event="xforms-value-changed">
  311. <![CDATA[
  312. var eryn = model.getValue(chk_eryn.attribute("ref"));
  313. var std = isSearchString(eryn, "1");
  314. var er = isSearchString(eryn, "2");
  315. if(std) {
  316. cmb_reqpridflag.disabled = false;
  317. model.setValue(cmb_reqpridflag.attribute("ref"), model.getValue("/root/init/reqseqlist/reqseq"));
  318. cmb_reqpridflag.refresh();
  319. } else {
  320. cmb_reqpridflag.disabled = true;
  321. cmb_reqpridflag.value = "-";
  322. }
  323. ]]>
  324. </script>
  325. </select>
  326. <caption id="caption5" class="search_name" style="left:450px; top:10px; width:86px; height:17px; ">청구주기 :</caption>
  327. <select1 id="cmb_reqpridflag" ref="/root/send/reqpridflag" appearance="minimal" style="left:580px; top:8px; width:65px; height:19px; ">
  328. <choices>
  329. <itemset nodeset="/root/init/reqtimslist">
  330. <label ref="cdnm"/>
  331. <value ref="cdid"/>
  332. </itemset>
  333. </choices>
  334. <script type="javascript" ev:event="xforms-value-changed">
  335. <![CDATA[
  336. ]]>
  337. </script>
  338. </select1>
  339. </group>
  340. <caption id="caption3" class="tit_2" style="left:5px; top:90px; width:100px; height:14px; ">부서구분</caption>
  341. <line id="line1" class="line_1" style="x1:5px; y1:105px; x2:164px; y2:105px; "/>
  342. <input id="ipt_csrreqdeptcd2" ref="/root/send/csrreqdeptcd2" class="input_search" visibility="hidden" style="left:640px; top:80px; width:172px; height:19px; ">
  343. <script type="javascript" ev:event="xforms-value-changed">
  344. <![CDATA[
  345. misfValidationCheck("02", "", "deptcd,deptnm");
  346. model.refresh();
  347. ]]>
  348. </script>
  349. </input>
  350. <input id="ipt_goodflag" ref="/root/send/goodflag" visibility="hidden" style="left:525px; top:80px; width:100px; height:19px; "/>
  351. <caption id="caption4" class="tit_2" style="left:155px; top:90px; width:100px; height:13px; ">CSR 비품</caption>
  352. <datagrid id="grd_deptlist" nodeset="/root/main/goodreqcsrdeptlist" caption="부서명^부서코드^기관코드^물품구분" colsep="^" colwidth="96, 139, 97, 100" dataheight="25" ellipsis="true" explorerbar="sortshow" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowheight="25" rowsep="|" tooltip="true" style="left:5px; top:110px; width:159px; height:630px; ">
  353. <col disabled="true" ref="delivedeptnm"/>
  354. <col ref="delivedeptcd" visibility="hidden"/>
  355. <col ref="instcd" visibility="hidden"/>
  356. <col ref="goodflag" visibility="hidden"/>
  357. <script type="javascript" ev:event="onclick">
  358. <![CDATA[
  359. if(grd_deptlist.isCell(event.target) && grd_deptlist.mouseRow >= grd_deptlist.fixedrows){
  360. fsearch4();
  361. }
  362. ]]>
  363. </script>
  364. <script type="javascript" ev:event="onaftersort">
  365. <![CDATA[
  366. grd_deptlist.gridToInstance();
  367. ]]>
  368. </script>
  369. </datagrid>
  370. <datagrid id="grd_csrbipumlist" nodeset="/root/main/csrbipumlist" class="datagrid2" caption="instcd^물품코드^물품명^규격^불출부서코드^불출부서^단위^수리^파손^물품&#xA;보관^세척^멸균^CSR&#xA;실재고^대여량^안전&#xA;재고량^청구&#xA;수량^불출&#xA;수량^미불출^비고" colsep="^" colwidth="0, 85, 165, 80, 0, 100, 41, 40, 40, 40, 40, 40, 45, 45, 45, 45, 45, 45, 100" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:169px; top:110px; width:1025px; height:630px; ">
  371. <col ref="instcd" visibility="hidden"/>
  372. <col ref="goodcd"/>
  373. <col ref="goodnm"/>
  374. <col ref="goodspec"/>
  375. <col ref="delivedeptcd" visibility="hidden"/>
  376. <col ref="depthngnm"/>
  377. <col ref="requnit"/>
  378. <col ref="rpirqty" style="text-align:right; "/>
  379. <col ref="hdrncqty" style="text-align:right; "/>
  380. <col ref="rtnexchngqty3" style="text-align:right; "/>
  381. <col ref="rtnexchngqty1" style="text-align:right; "/>
  382. <col ref="rtnexchngqty2" style="text-align:right; "/>
  383. <col ref="curqty" style="text-align:right; "/>
  384. <col ref="dlvlendqty" style="text-align:right; "/>
  385. <col ref="safestocqty" style="text-align:right; "/>
  386. <col ref="reqqty" style="text-align:right; "/>
  387. <col ref="dlvexchngqty" style="text-align:right; "/>
  388. <col ref="nodlvrqty" style="text-align:right; "/>
  389. <col ref="cmt"/>
  390. </datagrid>
  391. <line id="line3" class="line_1" style="x1:169px; y1:105px; x2:1194px; y2:105px; "/>
  392. </group>
  393. </xhtml:body>
  394. </xhtml:html>