SPMNO10000_간호전산의뢰게시판.xrw 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450
  1. <?xml version="1.0" encoding="EUC-KR"?>
  2. <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
  3. <xhtml:html xmlns:ex="http://www.comsquare.co.kr/xforms/excel" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:my="http://www.comsquare.co.kr/example" xmlns:ms="urn:schemas-microsoft-com:xslt" 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" xmlns:cs="http://www.comsquare.co.kr/xforms">
  4. <xhtml:head>
  5. <xhtml:title>전산의뢰 게시판</xhtml:title>
  6. <model id="model1">
  7. <instance id="instance1">
  8. <root xmlns="">
  9. <main>
  10. <iteminfo>
  11. <seq_no/>
  12. <gbn>02</gbn>
  13. <instcd/>
  14. <reqdate/>
  15. <reqid/>
  16. <req/>
  17. <replydate/>
  18. <replyid/>
  19. <rep/>
  20. <status/>
  21. <savemode/>
  22. <req_title/>
  23. <req_text/>
  24. <reply_text/>
  25. <reqwardcd/>
  26. <reqward/>
  27. <attfilenm/>
  28. <attfilepath/>
  29. <reqphone/>
  30. </iteminfo>
  31. <reqbbsinfo>
  32. <reqbbslist>
  33. <seq_no/>
  34. <gbn/>
  35. <instcd/>
  36. <reqdate/>
  37. <reqid/>
  38. <replydate/>
  39. <replyid/>
  40. <status/>
  41. <req_title/>
  42. <req_text/>
  43. <reply_text/>
  44. <reqwardcd/>
  45. <attfilenm/>
  46. <attfilepath/>
  47. <reqphone/>
  48. </reqbbslist>
  49. </reqbbsinfo>
  50. <cond>
  51. <gbn>02</gbn>
  52. <todd/>
  53. <fromdd/>
  54. </cond>
  55. <itcinfo/>
  56. <reqphone/>
  57. </main>
  58. <send>
  59. <gbn/>
  60. <fromdd/>
  61. <todd/>
  62. <file/>
  63. </send>
  64. <hidden/>
  65. <init>
  66. <M0624/>
  67. </init>
  68. </root>
  69. </instance>
  70. <script type="javascript" ev:event="xforms-ready">
  71. <![CDATA[
  72. fInitialize() ;
  73. ]]>
  74. </script>
  75. <submission id="TRMNO10001" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" add="bottom" resultref="/root/main/reqbbsinfo/reqbbslist"/>
  76. <submission id="TRMNO10002" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" add="bottom" resultref="/root/main/itcinfo"/>
  77. <submission id="TRMNO10003" mediatype="multipart/form-data" method="form-data-post" ref="/root/send" resultref="/root/hidden"/>
  78. <submission id="TRMNO10004" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" add="bottom" resultref="/root/main/reqphone"/>
  79. <submission id="TXMNO10001" mediatype="multipart/form-data" method="form-data-post" ref="/root/send" resultref="/root/hidden"/>
  80. </model>
  81. <script type="javascript" src="../../../com/commonweb/js/common.js"/>
  82. <script type="javascript" src="../../../com/commonweb/js/numericHelper.js"/>
  83. <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
  84. <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
  85. <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
  86. <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
  87. <script type="javascript" src="../../../emr/outcareweb/js/SPMNO10000.js"/>
  88. </xhtml:head>
  89. <xhtml:body pagewidth="800" pageheight="860" guideline="1,944;" style="margin-left:8; margin-top:8; margin-right:8; margin-bottom:8; ">
  90. <group id="group1" style="left:0px; top:0px; width:775px; height:13px; ">
  91. <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:254px; height:14px; ">전산의뢰 게시판</caption>
  92. </group>
  93. <group id="group2" style="left:0px; top:19px; width:778px; height:36px; vertical-align:top; ">
  94. <shape id="roundrect1" class="roundrect_search" appearance="roundrect" ellipsewidth="10" ellipseheight="10" style="left:0px; top:0px; width:778px; height:35px; background-color:#fffbf2; border-color:#ffd799; "/>
  95. <caption id="caption2" class="search_name" style="left:225px; top:7px; width:86px; height:17px; ">의뢰일자 :</caption>
  96. <input id="ipt_fromdd" ref="/root/main/cond/fromdd" class="input_search" inputtype="date" style="left:315px; top:7px; width:85px; height:19px; "/>
  97. <caption id="caption10" style="left:400px; top:7px; width:15px; height:19px; font-weight:bold; text-align:center; vertical-align:middle; ">~</caption>
  98. <input id="ipt_todd" ref="/root/main/cond/todd" class="input_search" inputtype="date" style="left:415px; top:7px; width:85px; height:19px; "/>
  99. <line id="line1" class="line_4" style="x1:577px; y1:7px; x2:577px; y2:32px; border-color:#ffe4bb; border-left-style:solid; "/>
  100. <button id="btn_search" class="btn1_letter2" style="left:587px; top:7px; width:56px; height:22px; ">
  101. <caption>조회</caption>
  102. <script type="javascript" ev:event="DOMActivate">
  103. <![CDATA[
  104. fgetReqBbsList();
  105. ]]>
  106. </script>
  107. </button>
  108. <caption id="caption12" class="search_name" style="left:5px; top:7px; width:86px; height:17px; ">의뢰구분 :</caption>
  109. <select1 id="rdo_condgbn" ref="/root/main/cond/gbn" appearance="full" cellspacing="10" cols="2" overflow="visible" style="left:95px; top:7px; width:110px; height:20px; font-weight:bold; border-style:none; ">
  110. <choices>
  111. <item>
  112. <label>진료</label>
  113. <value>02</value>
  114. </item>
  115. <item>
  116. <label>간호</label>
  117. <value>01</value>
  118. </item>
  119. </choices>
  120. </select1>
  121. <button id="button1" class="btn2_letter3" style="left:703px; top:8px; width:53px; height:19px; ">
  122. <caption>Excel</caption>
  123. <script type="javascript" ev:event="DOMActivate">
  124. <![CDATA[
  125. var SheetName = model.getValue("/root/cond/fromdd");
  126. if(isNull(SheetName)) SheetName = "Sheet1";
  127. var fileName = window.fileDialog("save", ",", false, SheetName + " 전산의뢰게시판", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
  128. if (fileName != ""){
  129. //그리드의 내용을 Excel 파일로 저장하는 함수로.. 파일이름을 받아온것을 가지고 저장하러 간다.
  130. grd_bbs.saveExcel(fileName, SheetName, false, false, "", "");
  131. }
  132. ]]>
  133. </script>
  134. </button>
  135. <button id="button2" class="btn1_letter2" style="left:645px; top:7px; width:56px; height:22px; ">
  136. <caption>출력</caption>
  137. <script type="javascript" ev:event="DOMActivate">
  138. <![CDATA[
  139. fPrtBbs();
  140. ]]>
  141. </script>
  142. </button>
  143. </group>
  144. <datagrid id="grd_bbs" nodeset="/root/main/reqbbsinfo/reqbbslist" scroll="autovscroll" autoresize="false" caption="No.^상태^의뢰제목^의뢰내용^의뢰일자^의뢰자^의뢰부서^응답일자^응답자^첨부파일명^첨부파일패스^구분^기관^의뢰자ID^응답일자^응답자ID^응답내용^의뢰부서코드^의뢰전화" colsep="^" colwidth="50, 35, 230, 0, 116, 60, 90, 115, 60, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0" explorerbar="sort" extendlastcol="scroll" mergecellsfixedrows="bycolrec" rowsep="|" style="left:0px; top:60px; width:778px; height:340px; ">
  145. <!--col disabled="true" ref="bbscls" type="combo" style="text-align:center; ">
  146. <choices>
  147. <itemset nodeset="/root/init/M0624/M0624">
  148. <label ref="cdnm"/>
  149. <value ref="cdid"/>
  150. </itemset>
  151. </choices>
  152. </col-->
  153. <col ref="seq_no" style="text-align:right; "/>
  154. <col disabled="true" ref="status" type="combo">
  155. <choices>
  156. <item>
  157. <label>대기</label>
  158. <value>0</value>
  159. </item>
  160. <item>
  161. <label>진행</label>
  162. <value>1</value>
  163. </item>
  164. <item>
  165. <label>보류</label>
  166. <value>2</value>
  167. </item>
  168. <item>
  169. <label>완료</label>
  170. <value>3</value>
  171. </item>
  172. <item>
  173. <label>반려</label>
  174. <value>9</value>
  175. </item>
  176. </choices>
  177. </col>
  178. <col ref="req_title"/>
  179. <col ref="req_text"/>
  180. <col ref="reqdate" format="yyyy-mm-dd hh:nn:ss"/>
  181. <col ref="req"/>
  182. <col ref="reqward"/>
  183. <col ref="replydate" format="yyyy-mm-dd hh:nn:ss"/>
  184. <col ref="rep"/>
  185. <col ref="attfilenm"/>
  186. <col ref="attfilepath"/>
  187. <col ref="gbn"/>
  188. <col ref="instcd"/>
  189. <col ref="reqid"/>
  190. <col ref="replydate"/>
  191. <col ref="replyid"/>
  192. <col ref="reply_text"/>
  193. <col ref="reqwardcd"/>
  194. <col ref="reqphone"/>
  195. <script type="javascript" ev:event="ondblclick">
  196. <![CDATA[
  197. if (isDataCell() == true) {
  198. fgetReqBbsDetail(grd_bbs.row);
  199. }
  200. ]]>
  201. </script>
  202. <script type="javascript" ev:event="onaftersort">
  203. <![CDATA[
  204. grd_bbs.gridToInstance();
  205. ]]>
  206. </script>
  207. </datagrid>
  208. <line id="line2" class="line_1" style="x1:0px; y1:56px; x2:778px; y2:56px; "/>
  209. <line id="line4" class="line_3" style="x1:0px; y1:858px; x2:778px; y2:858px; "/>
  210. <button id="btn_cancel" class="btn2_letter4" navindex="5" visibility="hidden" style="left:542px; top:407px; width:64px; height:19px; ">
  211. <caption>작성취소</caption>
  212. <script type="javascript" ev:event="onclick">
  213. <![CDATA[
  214. btn_cancel.visible = false;
  215. btn_new.disabled = false;
  216. btn_mod.disabled = true;
  217. btn_save.disabled = true;
  218. btn_del.disabled = true;
  219. btn_reply.disabled = true;
  220. ipt_reply_text.disabled = true;
  221. rdo_status.disabled = true;
  222. model.makeValue("/root/main/iteminfo/savemode",'e');
  223. fNewBbs();
  224. ]]>
  225. </script>
  226. </button>
  227. <button id="btn_new" class="btn2_letter2" navindex="5" style="left:607px; top:407px; width:42px; height:19px; ">
  228. <caption>신규</caption>
  229. <script type="javascript" ev:event="onclick">
  230. <![CDATA[
  231. btn_cancel.visible = true;
  232. btn_new.disabled = true;
  233. btn_mod.disabled = true;
  234. btn_save.disabled = false;
  235. btn_del.disabled = true;
  236. btn_reply.disabled = true;
  237. btn_fileadd.disabled = false;
  238. ipt_req_title.disabled = false;
  239. ipt_req_text.disabled = false;
  240. ipt_attfilenm.disabled = false; //첨부파일기능보류
  241. ipt_reply_text.disabled = true;
  242. rdo_status.disabled = true;
  243. var jobkindcd = getUserInfo("jobkindcd");
  244. if (jobkindcd == "0330") {
  245. model.makeValue("/root/main/iteminfo/gbn", '02');
  246. } else {
  247. model.makeValue("/root/main/iteminfo/gbn", '01');
  248. }
  249. fNewBbs();
  250. model.makeValue("/root/main/iteminfo/savemode",'i');
  251. ]]>
  252. </script>
  253. </button>
  254. <button id="btn_mod" class="btn2_letter2" navindex="5" style="left:650px; top:407px; width:42px; height:19px; ">
  255. <caption>수정</caption>
  256. <script type="javascript" ev:event="onclick">
  257. <![CDATA[
  258. btn_new.disabled = true;
  259. btn_mod.disabled = true;
  260. btn_cancel.visible = true;
  261. btn_save.disabled = false;
  262. btn_del.disabled = true;
  263. btn_reply.disabled = true;
  264. ipt_req_text.disabled = false;
  265. ipt_reply_text.disabled = true;
  266. rdo_status.disabled = true;
  267. model.makeValue("/root/main/iteminfo/savemode","u"); // 수정표시
  268. ]]>
  269. </script>
  270. </button>
  271. <button id="btn_save" class="btn5_letter2" disabled="true" navindex="5" style="left:693px; top:407px; width:42px; height:19px; ">
  272. <caption>저장</caption>
  273. <script type="javascript" ev:event="DOMActivate">
  274. <![CDATA[
  275. // 각 필드값을 체크한다.
  276. // 공지내용 체크
  277. if(model.getValue("/root/main/iteminfo/gbn").getTrim()=="")
  278. {
  279. messageBox("의뢰구분은 ", "I003");
  280. model.setFocus("rdo_gbn");
  281. return;
  282. }
  283. if(model.getValue("/root/main/iteminfo/req_title").getTrim()=="")
  284. {
  285. messageBox("의뢰제목은 ", "I003");
  286. model.setFocus("ipt_req_title");
  287. return;
  288. }
  289. if(model.getValue("/root/main/iteminfo/req_text").getTrim()=="")
  290. {
  291. messageBox("의뢰내용은 ", "I003");
  292. model.setFocus("ipt_req_text");
  293. return;
  294. }
  295. fExeSave();
  296. ]]>
  297. </script>
  298. </button>
  299. <button id="btn_del" class="btn5_letter2" disabled="true" style="left:736px; top:407px; width:42px; height:19px; ">
  300. <caption>삭제</caption>
  301. <script type="javascript" ev:event="DOMActivate">
  302. <![CDATA[
  303. if (messageBox("해당 게시글을 삭제하시겠습니까?", "Q999") == 6) {
  304. fDelBbs();
  305. }
  306. ]]>
  307. </script>
  308. </button>
  309. <caption id="cap_cnts" class="cell_1" style="left:0px; top:481px; width:79px; height:147px; text-align:center; vertical-align:middle; ">의뢰내용</caption>
  310. <line id="line9" class="line_1" style="x1:0px; y1:427px; x2:778px; y2:427px; "/>
  311. <caption id="caption7" class="tit_2" style="left:0px; top:413px; width:134px; height:13px; ">내용</caption>
  312. <textarea id="ipt_req_text" ref="/root/main/iteminfo/req_text" class="text_essential" scroll="autovscroll" editable="false" maxlength="4000" style="left:81px; top:481px; width:697px; height:147px; font-family:돋움, Arial; font-size:10pt; "/>
  313. <caption id="caption1" class="cell_1" style="left:0px; top:683px; width:79px; height:147px; text-align:center; vertical-align:middle; ">응답내용</caption>
  314. <caption id="caption5" class="cell_1" style="left:614px; top:436px; width:44px; height:19px; text-align:center; vertical-align:middle; ">의뢰일</caption>
  315. <caption id="caption8" class="cell_1" style="left:186px; top:436px; width:44px; height:19px; text-align:center; vertical-align:middle; ">의뢰자</caption>
  316. <caption id="caption9" class="cell_1" style="left:464px; top:436px; width:44px; height:19px; text-align:center; vertical-align:middle; ">부서</caption>
  317. <input id="input1" ref="/root/main/iteminfo/req" editable="false" style="left:231px; top:436px; width:64px; height:19px; "/>
  318. <input id="input2" ref="/root/main/iteminfo/reqward" editable="false" style="left:509px; top:436px; width:102px; height:19px; "/>
  319. <input id="input3" ref="/root/main/iteminfo/reqdate" editable="false" format="yyyy-mm-dd hh:nn:ss" style="left:660px; top:436px; width:118px; height:19px; "/>
  320. <input id="input4" ref="/root/main/iteminfo/reqid" visibility="hidden" style="left:5px; top:433px; width:85px; height:19px; "/>
  321. <input id="input5" ref="/root/main/iteminfo/reqwardcd" visibility="hidden" style="left:20px; top:433px; width:130px; height:19px; "/>
  322. <caption id="caption3" class="cell_1" style="left:0px; top:833px; width:79px; height:22px; text-align:center; vertical-align:middle; ">상태</caption>
  323. <select1 id="rdo_status" ref="/root/main/iteminfo/status" disabled="true" appearance="full" cellspacing="100" cols="5" overflow="visible" style="left:85px; top:836px; width:660px; height:20px; border-style:none; ">
  324. <choices>
  325. <item>
  326. <label>대기</label>
  327. <value>0</value>
  328. </item>
  329. <item>
  330. <label>진행</label>
  331. <value>1</value>
  332. </item>
  333. <item>
  334. <label>보류</label>
  335. <value>2</value>
  336. </item>
  337. <item>
  338. <label>완료</label>
  339. <value>3</value>
  340. </item>
  341. <item>
  342. <label>반려</label>
  343. <value>9</value>
  344. </item>
  345. </choices>
  346. </select1>
  347. <textarea id="ipt_reply_text" ref="/root/main/iteminfo/reply_text" disabled="true" scroll="autovscroll" maxlength="4000" style="left:81px; top:683px; width:697px; height:147px; font-family:돋움, Arial; font-size:10pt; "/>
  348. <caption id="caption4" class="cell_1" style="left:570px; top:660px; width:44px; height:19px; text-align:center; vertical-align:middle; ">응답일</caption>
  349. <caption id="caption11" class="cell_1" style="left:438px; top:660px; width:44px; height:19px; text-align:center; vertical-align:middle; ">응답자</caption>
  350. <line id="line6" class="line_2" style="x1:0px; y1:655px; x2:778px; y2:655px; "/>
  351. <button id="btn_reply" class="btn2_letter2" navindex="5" style="left:736px; top:660px; width:42px; height:19px; ">
  352. <caption>응답</caption>
  353. <script type="javascript" ev:event="onclick">
  354. <![CDATA[
  355. btn_new.disabled = true;
  356. btn_mod.disabled = true;
  357. btn_cancel.visible = true;
  358. btn_save.disabled = false;
  359. btn_del.disabled = true;
  360. btn_reply.disabled = false;
  361. var userid = getUserInfo("userid");
  362. var usernm = getUserInfo("usernm");
  363. var replydate = getCurrentDate() + getCurrentTime();
  364. model.setValue("/root/main/iteminfo/replyid", userid);
  365. model.setValue("/root/main/iteminfo/rep", usernm);
  366. model.setValue("/root/main/iteminfo/replydate", replydate);
  367. model.makeValue("/root/main/iteminfo/savemode","r"); // 수정표시
  368. ipt_req_text.disabled = true;
  369. ipt_reply_text.disabled = false;
  370. rdo_status.disabled = false;
  371. model.refresh();
  372. ]]>
  373. </script>
  374. </button>
  375. <input id="ipt_replyid" ref="/root/main/iteminfo/replyid" visibility="hidden" style="left:170px; top:658px; width:85px; height:19px; "/>
  376. <input id="ipt_rep" ref="/root/main/iteminfo/rep" editable="false" style="left:483px; top:660px; width:85px; height:19px; "/>
  377. <input id="ipt_replydate" ref="/root/main/iteminfo/replydate" editable="false" format="yyyy-mm-dd hh:nn:ss" style="left:615px; top:660px; width:118px; height:19px; "/>
  378. <caption id="caption13" class="cell_1" style="left:0px; top:437px; width:79px; height:19px; text-align:center; vertical-align:middle; ">의뢰구분</caption>
  379. <select1 id="rdo_gbn" ref="/root/main/iteminfo/gbn" appearance="full" cols="2" overflow="visible" style="left:84px; top:436px; width:91px; height:20px; border-style:none; ">
  380. <choices>
  381. <item>
  382. <label>진료</label>
  383. <value>02</value>
  384. </item>
  385. <item>
  386. <label>간호</label>
  387. <value>01</value>
  388. </item>
  389. </choices>
  390. </select1>
  391. <button id="btn_down" class="btn2_letter4" navindex="6" style="left:673px; top:632px; width:64px; height:19px; ">
  392. <caption>다운로드</caption>
  393. <script type="javascript" ev:event="DOMActivate">
  394. <![CDATA[
  395. fFileDown();
  396. ]]>
  397. </script>
  398. </button>
  399. <input id="ipt_attfilenm" ref="/root/main/iteminfo/attfilenm" maxlength="100" style="left:81px; top:632px; width:482px; height:19px; "/>
  400. <button id="btn_filedel" class="btn2_letter2" style="left:738px; top:632px; width:42px; height:19px; ">
  401. <caption>삭제</caption>
  402. <script type="javascript" ev:event="DOMActivate">
  403. <![CDATA[
  404. fFileDel();
  405. ]]>
  406. </script>
  407. </button>
  408. <caption id="caption14" class="cell_1" style="left:0px; top:631px; width:79px; height:22px; text-align:center; vertical-align:middle; ">첨부</caption>
  409. <button id="btn_preview" class="btn2_letter4" navindex="6" style="left:608px; top:632px; width:64px; height:19px; ">
  410. <caption>미리보기</caption>
  411. <script type="javascript" ev:event="DOMActivate">
  412. <![CDATA[
  413. fFilePreview();
  414. ]]>
  415. </script>
  416. </button>
  417. <button id="btn_fileadd" class="btn2_letter2" style="left:565px; top:632px; width:42px; height:19px; ">
  418. <caption>첨부</caption>
  419. <script type="javascript" ev:event="DOMActivate">
  420. <![CDATA[
  421. fFileAdd();
  422. ]]>
  423. </script>
  424. </button>
  425. <input id="input6" ref="/root/main/iteminfo/reqphone" editable="true" style="left:343px; top:436px; width:119px; height:19px; "/>
  426. <caption id="caption15" class="cell_1" style="left:298px; top:436px; width:44px; height:19px; text-align:center; vertical-align:middle; ">연락처</caption>
  427. <textarea id="ipt_req_title" ref="/root/main/iteminfo/req_title" class="text_essential" scroll="autovscroll" maxlength="4000" style="left:81px; top:459px; width:697px; height:19px; font-family:돋움, Arial; font-size:10pt; "/>
  428. <caption id="caption16" class="cell_1" style="left:0px; top:459px; width:79px; height:19px; text-align:center; vertical-align:middle; ">의뢰제목</caption>
  429. <upload id="upload1" nodeset="/root/send/file/filename" ext="zip" filecount="5" filesize="10485760" validate="true" style="left:545px; top:635px; width:15px; height:15px; "/>
  430. </xhtml:body>
  431. </xhtml:html>