SMRSD05400_신규재료견적서조회.xrw 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362
  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. <init>
  10. <instnm/>
  11. <reqfromdd/>
  12. <reqtodd/>
  13. <goodflag/>
  14. <goodhngnm/>
  15. <reqpsnid/>
  16. <reqpsnnm/>
  17. <reqdeptcd/>
  18. <reqdeptnm/>
  19. <instcd/>
  20. <frreqconfdd/>
  21. <toreqconfdd/>
  22. </init>
  23. <send>
  24. <report>
  25. <newfestinfo/>
  26. </report>
  27. </send>
  28. <main>
  29. <newfestinfo>
  30. <newfestinfo>
  31. <instnm/>
  32. <instcd/>
  33. <reqdept/>
  34. <reqdeptnm/>
  35. <reqdd/>
  36. <suplplcecd/>
  37. <subsuplplcecd/>
  38. <goodhngnm/>
  39. <goodspec/>
  40. <goodmodel/>
  41. <purcunit/>
  42. <deliveunit/>
  43. <purcqty/>
  44. <goodunitcost/>
  45. <reqamt/>
  46. <edicd/>
  47. <custnm/>
  48. <prsdnm/>
  49. <infaddr/>
  50. <bizcont/>
  51. <supsubplcenm/>
  52. <chrgnm/>
  53. <chrgtel/>
  54. </newfestinfo>
  55. </newfestinfo>
  56. </main>
  57. <temp>
  58. <reqData>
  59. <req/>
  60. </reqData>
  61. </temp>
  62. <hidden/>
  63. </root>
  64. </instance>
  65. <script type="javascript" ev:event="xforms-ready">
  66. <![CDATA[
  67. //화면 Control을 초기화한다
  68. if(checkOpener()) {
  69. model.setValue(cmb_goodflag_search.attribute("ref") , opener.javascript.getParameter("goodflag"));
  70. model.setValue(ipt_goodnm_search.attribute("ref") , opener.javascript.getParameter("goodnm"));
  71. model.setValue(ipt_reqdeptcd_search.attribute("ref") , opener.javascript.getParameter("reqdeptcd"));
  72. model.setValue(ipt_reqdeptnm_search.attribute("ref") , opener.javascript.getParameter("reqdeptnm"));
  73. model.setValue(ipt_reqfromdd_search.attribute("ref") , opener.javascript.getParameter("reqfromdd"));
  74. model.setValue(ipt_reqpsnid_search.attribute("ref") , opener.javascript.getParameter("reqpsnid"));
  75. model.setValue(ipt_reqpsnnm_search.attribute("ref") , opener.javascript.getParameter("reqpsnnm"));
  76. model.setValue(ipt_reqtodd_search.attribute("ref") , opener.javascript.getParameter("reqtodd"));
  77. }
  78. //
  79. model.setValue(opt_instcdnm.attribute("ref") , getUserInfo("dutplceinstnm"));
  80. model.setValue(ipt_instcd.attribute("ref") , getUserInfo("dutplceinstcd"));
  81. model.refresh();
  82. // model.setValue(ipt_reqfromdd_search.attribute("ref") , getCurrentDate());
  83. // model.setValue(ipt_reqtodd_search.attribute("ref") , getCurrentDate());
  84. grd_newfestinfo.fixedcellcheckbox(0,grd_newfestinfo.colRef("chkyn"),false) = true;
  85. grd_newfestinfo.explorerbar = "sortshow";
  86. ipt_instcd.refresh();
  87. opt_instcdnm.refresh();
  88. // ipt_reqfromdd_search.refresh();
  89. // ipt_reqtodd_search.refresh();
  90. ]]>
  91. </script>
  92. <submission id="TRRSD05401" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/sendlist" resultref="/root/main/newfestinfo"/>
  93. </model>
  94. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  95. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  96. <script type="javascript" src="../../../mis/miscommonweb/js/MIS.js"/>
  97. <script type="javascript" src="../../../mis/miscommonweb/js/RSZ001.js"/>
  98. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  99. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  100. <script type="javascript">
  101. <![CDATA[
  102. function fOpenUrl(photurl){
  103. if(photurl != ""){
  104. var file = encodeURI(photurl);
  105. htmlwindow.open(file);
  106. }
  107. }
  108. ]]>
  109. </script>
  110. </xhtml:head>
  111. <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
  112. <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
  113. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:200px; height:14px; ">신규 재료 견적서조회</caption>
  114. <caption id="caption1" class="patient_text_black" style="left:828px; top:0px; width:366px; "/>
  115. </group>
  116. <group id="group3" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
  117. <group id="group2" style="left:0px; top:5px; width:1191px; height:70px; vertical-align:top; ">
  118. <shape id="roundrect2" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:1191px; height:70px; background-color:#fffbf2; border-color:#ffd799; "/>
  119. <input id="ipt_reqdeptnm_search" ref="/root/init/reqdeptnm" class="input_search" style="left:794px; top:35px; width:108px; height:19px; ">
  120. <script type="javascript" ev:event="xforms-value-changed">
  121. <![CDATA[
  122. misfValidationCheck("02", "", "reqdeptcd,reqdeptnm", opt_instcd.value, "instcd");
  123. ipt_reqdeptcd_search.refresh();
  124. ipt_reqdeptnm_search.refresh();
  125. ]]>
  126. </script>
  127. </input>
  128. <button id="button5" class="icon_search" style="left:773px; top:35px; width:16px; height:16px; ">
  129. <caption/>
  130. <script type="javascript" ev:event="DOMActivate">
  131. <![CDATA[
  132. var recv_list = "reqdeptcd,reqdeptnm";
  133. misfOpenPopUpList("02", ipt_reqdeptcd_search,"", recv_list, opt_instcd.value, "instcd") ;
  134. fPurcAuthInfo(ipt_reqdeptcd_search);
  135. ipt_reqdeptcd_search.refresh();
  136. ipt_reqdeptnm_search.refresh();
  137. ]]>
  138. </script>
  139. </button>
  140. <caption id="caption3" class="search_name" style="left:771px; top:9px; width:73px; height:17px; ">물품명 :</caption>
  141. <caption id="caption4" class="search_name" style="left:5px; top:9px; width:90px; height:17px; ">기관코드 :</caption>
  142. <caption id="caption8" class="search_name" style="left:588px; top:35px; width:87px; height:17px; ">청구부서 :</caption>
  143. <caption id="caption10" class="search_name" style="left:270px; top:9px; width:87px; height:17px; ">청구일자 :</caption>
  144. <input id="ipt_reqdeptcd_search" ref="/root/init/reqdeptcd" class="input_default" style="left:677px; top:35px; width:88px; height:19px; ">
  145. <script type="javascript" ev:event="xforms-value-changed">
  146. <![CDATA[
  147. //misfValidationCheck("02", "", "reqdeptcd,reqdeptnm" );
  148. misfValidationCheck("02", "", "reqdeptcd,reqdeptnm", opt_instcd.value, "instcd");
  149. ipt_reqdeptcd_search.refresh();
  150. ipt_reqdeptnm_search.refresh();
  151. ]]>
  152. </script>
  153. </input>
  154. <input id="ipt_goodnm_search" ref="/root/init/goodhngnm" class="input_default" style="left:850px; top:9px; width:205px; height:19px; "/>
  155. <input id="ipt_reqtodd_search" ref="/root/init/reqtodd" class="input_search" inputtype="date" style="left:469px; top:9px; width:88px; height:19px; "/>
  156. <caption id="caption14" class="search_no_b" style="left:450px; top:9px; width:12px; height:17px; ">~</caption>
  157. <input id="ipt_reqfromdd_search" ref="/root/init/reqfromdd" class="input_search" inputtype="date" style="left:357px; top:9px; width:88px; height:19px; "/>
  158. <caption id="caption20" class="search_name" style="left:588px; top:9px; width:86px; height:17px; ">물품구분 :</caption>
  159. <select1 id="cmb_goodflag_search" ref="/root/init/goodflag" appearance="minimal" editmode="search" style="left:675px; top:9px; width:85px; height:19px; ">
  160. <choices>
  161. <item>
  162. <label>의료비품</label>
  163. <value>U</value>
  164. </item>
  165. <item>
  166. <label>의료소모품</label>
  167. <value>Y</value>
  168. </item>
  169. <item>
  170. <label>일반소모품</label>
  171. <value>Z</value>
  172. </item>
  173. </choices>
  174. <script type="javascript" ev:event="xforms-value-changed">
  175. <![CDATA[
  176. // btn_search.dispatch("DOMActivate");
  177. ]]>
  178. </script>
  179. </select1>
  180. <line id="line14" class="line_4" style="x1:1115px; y1:10px; x2:1115px; y2:51px; border-color:#ffe4bb; border-left-style:solid; "/>
  181. <output id="opt_instcd" ref="/root/cond/instcd" class="output_fix" visibility="hidden" style="left:92px; top:9px; width:29px; height:19px; "/>
  182. <output id="opt_instcdnm" ref="/root/init/instnm" class="output_fix" style="left:92px; top:9px; width:168px; height:19px; "/>
  183. <input id="ipt_reqpsnid_search" ref="/root/init/reqpsnid" class="input_search" maxlength="10" appearance="input" style="left:92px; top:35px; width:68px; height:19px; ">
  184. <script type="javascript" ev:event="xforms-value-changed">
  185. <![CDATA[
  186. //misfValidationCheck("01-1", "", "emplno,emplnm,dummy,dummy1,dummy,dummy1,dummy,dummy1,dummy,dummy1,dummy,dummy1,dummy,dummy1,dummy,dummy1,dummy,dummy1,dummy,dummy1,dummy,dummy1,dummy,dummy1,dummy,dummy1,dummy1,dummy1" );
  187. model.refresh();
  188. var recv_list = "reqpsnid,reqpsnnm";
  189. misfValidationCheck("01-1","", recv_list);
  190. ipt_reqpsnid_search.refresh();
  191. ipt_reqpsnnm_search.refresh();
  192. ]]>
  193. </script>
  194. </input>
  195. <button id="btn_reqpsn" class="icon_search" style="left:167px; top:35px; width:16px; height:16px; ">
  196. <caption/>
  197. <script type="javascript" ev:event="DOMActivate">
  198. <![CDATA[
  199. var recv_list = "reqpsnid,reqpsnnm";
  200. misfOpenPopUpList("12",ipt_reqpsnid_search ,"",recv_list); // 사용자 조회
  201. ipt_reqpsnid_search.refresh();
  202. ipt_reqpsnnm_search.refresh();
  203. ]]>
  204. </script>
  205. </button>
  206. <input id="ipt_reqpsnnm_search" ref="/root/init/reqpsnnm" class="output_fix" style="left:188px; top:35px; width:72px; height:19px; ">
  207. <script type="javascript" ev:event="xforms-value-changed">
  208. <![CDATA[
  209. var recv_list = "reqpsnid,reqpsnnm";
  210. misfValidationCheck("01-2","", recv_list);
  211. ipt_reqpsnid_search.refresh();
  212. ipt_reqpsnnm_search.refresh();
  213. ]]>
  214. </script>
  215. </input>
  216. <caption id="caption21" class="search_name" style="left:5px; top:35px; width:90px; height:17px; ">신 청 자 :</caption>
  217. <input id="ipt_instcd" ref="/root/init/instcd" visibility="hidden" style="left:1055px; top:35px; width:40px; height:19px; "/>
  218. <caption id="caption2" class="search_name" style="left:268px; top:35px; width:96px; height:17px; ">견적등록 :</caption>
  219. <caption id="caption5" class="search_no_b" style="left:450px; top:35px; width:12px; height:17px; ">~</caption>
  220. <input id="ipt_frreqconfdd" ref="/root/init/frreqconfdd" class="input_search" inputtype="date" style="left:357px; top:35px; width:88px; height:19px; "/>
  221. <input id="ipt_toreqconfdd" ref="/root/init/toreqconfdd" class="input_search" inputtype="date" style="left:469px; top:35px; width:88px; height:19px; "/>
  222. </group>
  223. <datagrid id="grd_newfestinfo" nodeset="/root/main/newfestinfo/newfestinfo" class="datagrid2" caption="기관^^기관명^물품코드^물품명(한)^물품명^규격^모델^AllSize규격^포장&#xA;단위^기본&#xA;단위^물품단위^수량^단가^금액^계정/EDI^청구부서^청구부서^청구일자^청구번호^보조거래처^주거래처^보조거래처^주거래처명^대표자명^주소^담당자명^담당자전화^업태/종목^청구자명^견적서등록일^담당자^useinstname^비고^제조사코드^제조사^파일다운로드URL^파일&#xA;다운로드^제조국^담당자핸드폰" colsep="^" colwidth="0, 31, 100, 80, 100, 100, 100, 100, 75, 40, 40, 100, 70, 80, 80, 80, 0, 100, 80, 0, 100, 0, 0, 100, 100, 100, 100, 100, 100, 100, 100, 100, 100, 150, 33, 100, 100, 58, 100, 100" dataheight="25" ellipsis="true" frozencols="8" mergecellsfixedrows="bycolrec" rowheader="update" rowheight="25" rowsep="|" tooltip="true" style="left:1px; top:105px; width:1188px; height:630px; ">
  224. <col ref="instcd" visibility="hidden" style="text-align:center; "/>
  225. <col checkvalue="Y,N" ref="chkyn" type="checkbox"/>
  226. <col ref="instnm" style="text-align:center; "/>
  227. <col ref="goodcd" style="text-align:center; "/>
  228. <col ref="goodhngnm" visibility="hidden"/>
  229. <col ref="goodengnm"/>
  230. <col ref="goodspec"/>
  231. <col ref="goodmodel"/>
  232. <col ref="allsizespecid"/>
  233. <col ref="purcunit"/>
  234. <col ref="deliveunit"/>
  235. <col ref="goodunit" visibility="hidden"/>
  236. <col ref="reqqty" format="#,###" style="text-align:right; "/>
  237. <col ref="goodunitcost" format="#,###" style="text-align:right; "/>
  238. <col ref="reqamt" format="#,###" style="text-align:right; "/>
  239. <col ref="edicd"/>
  240. <col ref="reqdept" visibility="hidden"/>
  241. <col ref="reqdeptnm"/>
  242. <col ref="reqdd" format="yyyy-mm-dd" style="text-align:center; "/>
  243. <col ref="reqseqno" visibility="hidden"/>
  244. <col ref="subsuplplcenm"/>
  245. <col ref="subsuplplcecd" visibility="hidden"/>
  246. <col ref="subsuplplcecdnm" visibility="hidden"/>
  247. <col ref="custnm"/>
  248. <col ref="prsdnm"/>
  249. <col ref="infaddr"/>
  250. <col ref="chrgnm"/>
  251. <col ref="chrgtel"/>
  252. <col ref="bizcontitem"/>
  253. <col ref="reqpsnnm"/>
  254. <col ref="reqconfdd"/>
  255. <col ref="custrecvnm"/>
  256. <col ref="useinstname" visibility="hidden"/>
  257. <col ref="cmt"/>
  258. <col ref="prodcmpycd" visibility="hidden"/>
  259. <col ref="prodcmpycdnm"/>
  260. <col ref="photurl" visibility="hidden"/>
  261. <col ref="photimg"/>
  262. <col ref="prodplcenm"/>
  263. <col ref="chrgmpphon"/>
  264. <script type="javascript" ev:event="onclick">
  265. <![CDATA[
  266. if(!eval(grd_newfestinfo.iscell(event.target))) return false;
  267. if (grd_newfestinfo.row == 0 && grd_newfestinfo.col== 2) {
  268. for (var fRow = grd_newfestinfo.fixedRows ; fRow < grd_newfestinfo.rows ; fRow++) {
  269. if (model.getValue(grd_newfestinfo.nodeset+"["+fRow+"]/chkyn") == "Y") {
  270. grd_newfestinfo.rowStatus(fRow) = "2";
  271. } else {
  272. grd_newfestinfo.removeStatus(fRow, "update");
  273. }
  274. }
  275. }
  276. if(eval(grd_newfestinfo.row) < eval(grd_newfestinfo.fixedRows)) return false;
  277. var photurl = grd_newfestinfo.valueMatrix(grd_newfestinfo.row, grd_newfestinfo.colRef("photurl"));
  278. if(grd_newfestinfo.col == grd_newfestinfo.colRef("photimg")){
  279. var photurl = grd_newfestinfo.valueMatrix(grd_newfestinfo.row, grd_newfestinfo.colRef("photurl"));
  280. fOpenUrl(photurl);
  281. }
  282. ]]>
  283. </script>
  284. <script type="javascript" ev:event="onaftersort">
  285. <![CDATA[
  286. grd_newfestinfo.gridToInstance();
  287. ]]>
  288. </script>
  289. </datagrid>
  290. <caption id="caption26" class="tit_2" style="left:0px; top:85px; width:139px; height:13px; ">신규재료 견적서조회</caption>
  291. <line id="line2" class="line_1" style="x1:1px; y1:100px; x2:1189px; y2:100px; "/>
  292. <button id="btn_search" class="btn1_letter2" style="left:1125px; top:30px; width:56px; height:22px; ">
  293. <caption>조회</caption>
  294. <script type="javascript" ev:event="DOMActivate">
  295. <![CDATA[
  296. model.makeNode("/root/send/sendlist");
  297. model.copyNode("/root/send/sendlist", "/root/init");
  298. model.makeValue("/root/send/sendlist/reqdata", model.getValue("/root/temp/reqData/req"));
  299. submit("TRRSD05401");
  300. for(var i=grd_newfestinfo.fixedRows; i<grd_newfestinfo.rows; i++){
  301. if(grd_newfestinfo.valueMatrix(i, grd_newfestinfo.colRef("photurl")) != ""){
  302. grd_newfestinfo.cellStyle("background-image", i, grd_newfestinfo.colRef("photimg")) = "../../../com/commonweb/images/icon_list.gif";
  303. grd_newfestinfo.cellStyle("background-position", i, grd_newfestinfo.colRef("photimg")) = "center";
  304. }
  305. }
  306. ]]>
  307. </script>
  308. </button>
  309. <button id="button1" class="btn2_letter2" style="left:1147px; top:80px; width:42px; height:19px; ">
  310. <caption>출력</caption>
  311. <script type="javascript" ev:event="DOMActivate">
  312. <![CDATA[
  313. if(getGridUpdateData(grd_newfestinfo) == "") {
  314. messageBox("선택된 내역이 존재하지않습니다.", "E");
  315. return;
  316. }
  317. model.removeNodeset("/root/send/report/newfestinfo");
  318. model.makeNode("/root/send/report/newfestinfo");
  319. copyNodesetType("/root/send/report/newfestinfo", grd_newfestinfo.nodeset + "[chkyn='Y']");
  320. // alert(instance1.selectNodesXml("/root/send/report"));
  321. exeReportPreview("RPRSD05402", "XMLSTR", "/root/send/report");
  322. ]]>
  323. </script>
  324. </button>
  325. </group>
  326. </xhtml:body>
  327. </xhtml:html>