SPMRI09010_연명진료Guide.xfdl 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMRI09010" position="absolute 0 0 930 735" titletext="연명의료가이드" onload="SPMRI09010_onload" oninit="SPMRI09010_oninit">
  5. <Layouts>
  6. <Layout>
  7. <Button position="absolute 734 5 776 24" id="btn_srch" class="btn2" taborder="7" visible="false" text="조회" onclick="btn_srch_onclick" anchor="top right"/>
  8. <Static text="연명의료가이드" position="absolute 0 11 126 27" id="caption2" class="tit_2"/>
  9. <Grid position="absolute 0 32 930 735" id="grd_oplist" binddataset="ds_main_list" visible="true" oncelldblclick="grd_oplist_oncelldblclick" anchor="all">
  10. <Formats>
  11. <Format id="default">
  12. <Columns>
  13. <Column size="313"/>
  14. <Column size="284"/>
  15. <Column size="134"/>
  16. <Column size="146"/>
  17. </Columns>
  18. <Rows>
  19. <Row size="24" band="head"/>
  20. <Row size="24"/>
  21. </Rows>
  22. <Band id="head">
  23. <Cell text="분류"/>
  24. <Cell col="1" text="서식"/>
  25. <Cell col="2" text="처방코드"/>
  26. <Cell col="3" text="서식구분"/>
  27. </Band>
  28. <Band id="body">
  29. <Cell style="align:center middle;" text="bind:gbnnm" suppress="1" suppressalign="middle,over"/>
  30. <Cell col="1" style="align:left;" text="bind:formnm"/>
  31. <Cell col="2" text="bind:prcpcd"/>
  32. <Cell col="3" text="bind:formprogflagnm"/>
  33. </Band>
  34. </Format>
  35. </Formats>
  36. </Grid>
  37. <Button id="btn_yexplain" taborder="12" text="연명의료설명" class="btn4" position="absolute 621 7 730 27" onclick="btn_yexplain_onclick" anchor="left top" visible="false"/>
  38. <Button id="btn_prcpcd" taborder="13" text="개별처방입력" class="btn2" position="absolute 372 6 461 25" onclick="btn_prcpcd_onclick" anchor="top right"/>
  39. <ImageViewer id="iv_msg" taborder="14" image="URL('theme://images\msg_connected.gif')" onclick="iv_msg_onclick" position="absolute 788 5 813 22" anchor="left top" tooltiptext="메세지함" style="background:transparent;border:0 none #e5e5e5ff ;cursor:hand;shadow:drop 2,2 1 gray;" visible="false"/>
  40. <Shape id="line5" class="line_10" position="absolute 0 27 930 33" anchor="left top right"/>
  41. <Button id="btn_msg" taborder="15" text="SMS" class="btn2" position="absolute 227 6 274 25" anchor="top right" onclick="btn_msg_onclick"/>
  42. <Button id="btn_list" taborder="16" text="등록문서목록" class="btn2" position="absolute 133 6 222 25" onclick="btn_list_onclick"/>
  43. <Button id="btn_prcpcds" taborder="17" text="그룹일괄처방" class="btn2" position="absolute 279 6 369 25" anchor="top right" onclick="btn_prcpcds_onclick"/>
  44. </Layout>
  45. </Layouts>
  46. <Objects>
  47. <Dataset id="ds_main_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_pathistlist_oncolumnchanged">
  48. <ColumnInfo>
  49. <Column id="gbnnm" type="STRING" size="256" sumtext=""/>
  50. <Column id="formcd" type="STRING" size="256"/>
  51. <Column id="formnm" type="STRING" size="256"/>
  52. <Column id="bigo" type="STRING" size="256"/>
  53. <Column id="srcformcd" type="STRING" size="256"/>
  54. <Column id="formprogflag" type="STRING" size="256"/>
  55. <Column id="formprogflagnm" type="STRING" size="256"/>
  56. <Column id="prcpcd" type="STRING" size="256"/>
  57. <Column id="prcpcds" type="STRING" size="256"/>
  58. </ColumnInfo>
  59. <Rows>
  60. <Row/>
  61. </Rows>
  62. </Dataset>
  63. <Dataset id="ds_send_deptcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  64. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  65. <Dataset id="ds_main_patinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  66. <ColumnInfo>
  67. <Column id="pid" type="STRING" size="256"/>
  68. <Column id="hngnm" type="STRING" size="256"/>
  69. <Column id="rrgstno1" type="STRING" size="256"/>
  70. <Column id="rrgstno2" type="STRING" size="256"/>
  71. <Column id="hometel" type="STRING" size="256"/>
  72. <Column id="prntcnt" type="STRING" size="256"/>
  73. <Column id="srchcond" type="STRING" size="256"/>
  74. <Column id="age" type="STRING" size="256"/>
  75. <Column id="brthdd" type="STRING" size="256"/>
  76. <Column id="addr" type="STRING" size="256"/>
  77. <Column id="ioflag" type="STRING" size="256"/>
  78. <Column id="patinfolist" type="STRING" size="256"/>
  79. <Column id="orddd" type="STRING" size="256"/>
  80. <Column id="cretno" type="STRING" size="256"/>
  81. <Column id="ordtm" type="STRING" size="256"/>
  82. <Column id="orddeptcd" type="STRING" size="256"/>
  83. <Column id="orddeptnm" type="STRING" size="256"/>
  84. <Column id="issformrecseq" type="STRING" size="256"/>
  85. <Column id="isslangflag" type="STRING" size="256"/>
  86. </ColumnInfo>
  87. <Rows>
  88. <Row>
  89. <Col id="prntcnt">1</Col>
  90. </Row>
  91. </Rows>
  92. </Dataset>
  93. </Objects>
  94. <Bind/>
  95. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  96. * System Name :
  97. * Job Name :
  98. * Creator :
  99. * Make Date : 2014-09-17
  100. * Description :
  101. *---------------------------------------------------------------------------------------
  102. * Modify Date Modifier Modify Description
  103. *---------------------------------------------------------------------------------------
  104. * 2014-09-17 Live Converter TF->XP
  105. *
  106. *---------------------------------------------------------------------------------------
  107. ****************************************************************************************/
  108. include "com_commonxp::comm_main.xjs";
  109. include "emr_prcpmngtxp::MMOCommon.xjs" // lf_mmbfGetDeptCodeComboList include
  110. include "emr_prcpmngtxp::MMO001.xjs"
  111. function SPMRI09010_oninit(obj:Form, e:InitEventInfo)
  112. {
  113. frmf_initForm(obj);
  114. }
  115. function SPMRI09010_onload(obj:Form, e:LoadEventInfo)
  116. {
  117. fIni();
  118. fSearch();
  119. }
  120. function fSearch() {
  121. var oParam = {};
  122. oParam.id = "TRMMR05501";
  123. oParam.service = "recmngtapp.IntegrityRec";
  124. oParam.method = "reqGetYeonGuideList";
  125. //oParam.inds = "req=ds_send_patinfo";
  126. oParam.outds = "ds_main_list=list";
  127. oParam.async = true;
  128. //oParam.callback = "cf_TRMMR05501";
  129. tranf_submit(oParam);
  130. }
  131. function btn_srch_onclick(obj:Button, e:ClickEventInfo)
  132. {
  133. fSearch();
  134. }
  135. function fIni(){
  136. try{
  137. ds_main_patinfo.copyData(arg_ds_main_patinfo);
  138. }catch(e){
  139. sysf_catchTrace(e);
  140. }
  141. }
  142. function grd_oplist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  143. {
  144. if(e.row < 0) return;
  145. var formcd = ds_main_list.getColumn(e.row,"formcd");
  146. var srcformcd = ds_main_list.getColumn(e.row,"srcformcd");
  147. var formprogflag = ds_main_list.getColumn(e.row,"formprogflag");
  148. if (formprogflag == "PROF") {
  149. opener.frmf_setParameter("SPMRI09010_formcd", formcd);
  150. opener.frmf_setParameter("SPMRI09010_srcformcd", srcformcd);
  151. opener.frmf_setParameter("SPMRI09010_formprogflag", formprogflag);
  152. opener.fChosProflist();
  153. }
  154. else if (formprogflag == "OCR") {
  155. opener.frmf_setParameter("SPMRI09010_formcd", formcd);
  156. if ("6" != sysf_messageBox("OCR이 출력됩니다 진행하시겠습니까?","Q")) return;
  157. opener.fPrntOCR();
  158. }
  159. }
  160. function btn_yexplain_onclick(obj:Button, e:ClickEventInfo)
  161. {
  162. lf_yexplain();
  163. }
  164. function lf_yexplain()
  165. {
  166. var parammsg = "B@연명의료설명@YEON01";
  167. if( !utlf_isNull(parammsg) ){
  168. frmf_setParameter("SPMQR06000_param", parammsg); // 파라미터 설정
  169. frmf_modal("SPMQR06000", "SPMQR06000", null, null, null, null, null, null, null, null, null, null, "M");
  170. }
  171. }
  172. function btn_prcpcd_onclick(obj:Button, e:ClickEventInfo)
  173. {
  174. var row = ds_main_list.rowposition;
  175. if( row < 0) return;
  176. var prcpcd = ds_main_list.getColumn(row,"prcpcd");
  177. if (utlf_isNull(prcpcd)) {
  178. sysf_messageBox("처방입력 대상이 아닙니다","I");
  179. return;
  180. }
  181. if ("6" != sysf_messageBox("해당처방이 발행됩니다. 진행하시겠습니까?","Q")) return;
  182. opener.frmf_setParameter("SPMRI09010_prcpcds", prcpcd);
  183. opener.fMakePrcp();
  184. }
  185. /****************************************************************************************
  186. * Components : ImageViewer
  187. * Components ID : iv_msg
  188. * Event : onclick
  189. * Argument : 01.obj : Object Event has occurred
  190. * : 02.e : Event Object
  191. * Description : 메지시 보내기
  192. ****************************************************************************************/
  193. function iv_msg_onclick(obj:ImageViewer, e:ClickEventInfo)
  194. {
  195. // Step1. 메시지 설정
  196. dsf_createDsRow("ds_msgdata", [{col:"msgcnts", val:""} // 메시지
  197. , {col:"calltype", val:""} // 호출형태 : msg - 메시지만, call - 호출만, msgcall - 메시지 + 호출
  198. ]);
  199. /*
  200. // Step2. 수진자 설정
  201. dsf_createDsRow("ds_msgdata_recvr", [{col:"userid", val:""}
  202. , {col:"mpphonno", val:""}
  203. , {col:"deptcd", val:""}
  204. , {col:"pid", val:""}
  205. , {col:"pdano", val:""}
  206. ]);
  207. */
  208. var objArg = new Object();
  209. objArg.arg_ds_msgdata = ds_msgdata;
  210. //objArg.arg_ds_msgdata_recvr = ds_msgdata_recvr;
  211. frmf_modalInternal("msgbox", "com_hismainxp::form_msgbox.xfdl", objArg, null, null, null, null, null, null, null, null, null, "P");
  212. }
  213. function btn_msg_onclick(obj:Button, e:ClickEventInfo)
  214. {
  215. opener.fYeonSendMsg();
  216. }
  217. function btn_list_onclick(obj:Button, e:ClickEventInfo)
  218. {
  219. opener.fYeonList();
  220. }
  221. function btn_prcpcds_onclick(obj:Button, e:ClickEventInfo)
  222. {
  223. var row = ds_main_list.rowposition;
  224. if( row < 0) return;
  225. var prcpcds = ds_main_list.getColumn(row,"prcpcds");
  226. var gbnnm = ds_main_list.getColumn(row,"gbnnm");
  227. if ( 6 != sysf_messageBox(gbnnm+"\n 분류에 속한 모든 처방이 발행됩니다 진행하시겠습니까?","Q")) return ;
  228. if (utlf_isNull(prcpcds)) {
  229. sysf_messageBox("처방입력 대상이 아닙니다","I");
  230. return;
  231. }
  232. opener.frmf_setParameter("SPMRI09010_prcpcds", prcpcds);
  233. opener.fMakePrcp();
  234. }
  235. ]]></Script>
  236. </Form>
  237. </FDL>