SPARC02100_의뢰환자조회.xfdl 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPARC02100" classname="SPARC02100_의뢰환자조회" inheritanceid="" position="absolute 0 0 876 478" titletext="의뢰환자조회" onload="SPARC02100_onload" oninit="SPARC02100_oninit">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group1" taborder="0" style="align: top;" position="absolute 0 24 870 65" class="div_SA">
  8. <Layouts>
  9. <Layout>
  10. <Button id="btn_search" taborder="1" text="조회" class="btn1" position="absolute 801 10 857 32" anchor="default" onclick="group1_btn_search_onclick"/>
  11. <Shape id="line8" linetype="vertical" class="line_4" position="absolute 782 5 785 37" anchor="default"/>
  12. <Static id="caption4" text="등록번호 :" class="search_name" position="absolute 11 13 105 30" anchor="default"/>
  13. <Static id="caption3" text="의뢰병원 :" class="search_name" position="absolute 323 13 422 30" anchor="default" visible="false"/>
  14. <Edit id="ipt_coophospnm" taborder="6" class="input_search" position="absolute 401 11 509 30" anchor="default" autoselect="true" visible="false"/>
  15. <Edit id="ipt_drnm" taborder="7" class="input_search" position="absolute 101 11 201 30" anchor="default" enable="false" onkeydown="group1_ipt_drnm_onkeydown"/>
  16. <Edit id="ipt_drnm00" taborder="8" class="input_search" position="absolute 202 11 302 30" anchor="default" enable="false"/>
  17. <Static id="caption00" text="의뢰의사 :" class="search_name" position="absolute 547 13 646 30" anchor="default" visible="false"/>
  18. <Edit id="input4" taborder="9" class="input_search" position="absolute 633 11 741 30" anchor="default" autoselect="true" visible="false"/>
  19. </Layout>
  20. </Layouts>
  21. </Div>
  22. <Static id="caption2" text="의뢰환자조회" class="tit_1" position="absolute 0 0 158 24"/>
  23. <Static id="caption8" text="의뢰환자 리스트" class="tit_2" position="absolute 0 79 139 101"/>
  24. <Grid id="grd_list" taborder="1" useinputpanel="false" position="absolute 0 100 871 455" binddataset="ds_main_list_reqlist" autofittype="col" autoenter="select" cellsizingtype="col" oncelldblclick="grd_list_oncelldblclick">
  25. <Formats>
  26. <Format id="default">
  27. <Columns>
  28. <Column size="23"/>
  29. <Column size="80"/>
  30. <Column size="80"/>
  31. <Column size="80"/>
  32. <Column size="80"/>
  33. <Column size="137"/>
  34. <Column size="80"/>
  35. <Column size="171"/>
  36. <Column size="71"/>
  37. <Column size="95"/>
  38. </Columns>
  39. <Rows>
  40. <Row size="24" band="head"/>
  41. <Row size="24"/>
  42. </Rows>
  43. <Band id="head">
  44. <Cell/>
  45. <Cell col="1" displaytype="normal" text="등록번호"/>
  46. <Cell col="2" displaytype="normal" text="환자명"/>
  47. <Cell col="3" displaytype="normal" text="의뢰일자"/>
  48. <Cell col="4" displaytype="normal" text="진료일자"/>
  49. <Cell col="5" displaytype="normal" text="진료과"/>
  50. <Cell col="6" displaytype="normal" text="진료의사"/>
  51. <Cell col="7" displaytype="normal" text="의뢰병원"/>
  52. <Cell col="8" displaytype="normal" text="의뢰의사"/>
  53. <Cell col="9" displaytype="normal" text="의뢰번호"/>
  54. </Band>
  55. <Band id="body">
  56. <Cell celltype="head" expr="currow+1"/>
  57. <Cell col="1" displaytype="normal" text="bind:pid"/>
  58. <Cell col="2" displaytype="normal" text="bind:hngnm"/>
  59. <Cell col="3" displaytype="date" text="bind:reqdd" calendardisplaynulltype="nulltext"/>
  60. <Cell col="4" displaytype="date" text="bind:orddd" calendardisplaynulltype="nulltext"/>
  61. <Cell col="5" displaytype="normal" text="bind:orddeptnm"/>
  62. <Cell col="6" displaytype="normal" text="bind:orddrnm"/>
  63. <Cell col="7" displaytype="normal" text="bind:coophospnm"/>
  64. <Cell col="8" displaytype="normal" text="bind:drnm"/>
  65. <Cell col="9" displaytype="normal" text="bind:reqpseqno"/>
  66. </Band>
  67. </Format>
  68. </Formats>
  69. </Grid>
  70. <Button id="btn_confirm" taborder="2" text="확인" position="absolute 751 456 810 476" class="btn4" onclick="btn_confirm_onclick"/>
  71. <Button id="btn_cancel" taborder="3" text="취소" class="btn4" position="absolute 812 456 871 476" onclick="btn_cancel_onclick"/>
  72. <Shape id="line8" class="line_1" position="absolute 0 95 870 101" style="strokepen:3 solid #33bbbbff;"/>
  73. </Layout>
  74. </Layouts>
  75. <Objects>
  76. <Dataset id="ds_send_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  77. <ColumnInfo>
  78. <Column id="pid" type="STRING" size="256"/>
  79. <Column id="hngnm" type="STRING" size="256"/>
  80. <Column id="coophospnm" type="STRING" size="256"/>
  81. <Column id="drnm" type="STRING" size="256"/>
  82. </ColumnInfo>
  83. <Rows>
  84. <Row>
  85. <Col id="pid"/>
  86. <Col id="hngnm"/>
  87. <Col id="coophospnm"/>
  88. <Col id="drnm"/>
  89. </Row>
  90. </Rows>
  91. </Dataset>
  92. <Dataset id="ds_main_list_reqlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  93. <ColumnInfo>
  94. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  95. <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
  96. <Column id="reqdd" type="STRING" size="256" sumtext="의뢰일자"/>
  97. <Column id="orddd" type="STRING" size="256" sumtext="진료일자"/>
  98. <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과"/>
  99. <Column id="orddrnm" type="STRING" size="256" sumtext="진료의사"/>
  100. <Column id="coophospnm" type="STRING" size="256" sumtext="의뢰병원"/>
  101. <Column id="drnm" type="STRING" size="256" sumtext="의뢰의사"/>
  102. <Column id="cretno" type="INT" size="256" sumtext="원무생성번호"/>
  103. <Column id="acptseqno" type="INT" size="256" sumtext="등록이력번호"/>
  104. <Column id="seqno" type="INT" size="256" sumtext="의뢰일련번호"/>
  105. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과코드"/>
  106. <Column id="orddrid" type="STRING" size="256" sumtext="진료의사코드"/>
  107. <Column id="coophospcd" type="STRING" size="256" sumtext="협력병원코드"/>
  108. <Column id="coopdrcd" type="STRING" size="256" sumtext="협력의사코드"/>
  109. <Column id="fromdd" type="STRING" size="256" sumtext="협력의사시작일자"/>
  110. <Column id="chospath" type="STRING" size="256" sumtext="내원경로"/>
  111. <Column id="fsexamflag" type="STRING" size="256" sumtext="초재진구분"/>
  112. <Column id="reqtype" type="STRING" size="256" sumtext="의뢰형태"/>
  113. <Column id="cptype" type="STRING" size="256" sumtext="CP형태"/>
  114. <Column id="reqpath" type="STRING" size="256" sumtext="의뢰경로"/>
  115. <Column id="replmthd" type="STRING" size="256" sumtext="회신방법"/>
  116. <Column id="enddd" type="STRING" size="256" sumtext="완료일자"/>
  117. <Column id="repltype" type="STRING" size="256" sumtext="회신유형"/>
  118. <Column id="rgstdd" type="STRING" size="256" sumtext="등록일자"/>
  119. <Column id="endflag" type="STRING" size="256" sumtext="완료구분"/>
  120. <Column id="replflag" type="STRING" size="256" sumtext="회신서동의여부"/>
  121. <Column id="endtype" type="STRING" size="256" sumtext="완료형태"/>
  122. <Column id="cc" type="STRING" size="256" sumtext="주호소"/>
  123. <Column id="rem" type="STRING" size="256" sumtext="참고사항"/>
  124. <Column id="fstprntdt" type="STRING" size="256" sumtext="1차회신출력일시"/>
  125. <Column id="indschprntdt" type="STRING" size="256" sumtext="입퇴원회신출력일시"/>
  126. <Column id="reqpseqno" type="STRING" size="256" sumtext="1차기관 의뢰번호"/>
  127. </ColumnInfo>
  128. </Dataset>
  129. </Objects>
  130. <Bind>
  131. <BindItem id="item0" compid="group1.ipt_drnm" propid="value" datasetid="ds_send_search" columnid="pid"/>
  132. <BindItem id="item1" compid="group1.ipt_drnm00" propid="value" datasetid="ds_send_search" columnid="hngnm"/>
  133. <BindItem id="item2" compid="group1.ipt_coophospnm" propid="value" datasetid="ds_send_search" columnid="coophospnm"/>
  134. <BindItem id="item3" compid="group1.input4" propid="value" datasetid="ds_send_search" columnid="coophospnm"/>
  135. </Bind>
  136. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  137. * System Name :
  138. * Job Name :
  139. * Creator :
  140. * Make Date : 2019-08-23
  141. * Description :
  142. *---------------------------------------------------------------------------------------
  143. * Modify Date Modifier Modify Description
  144. *---------------------------------------------------------------------------------------
  145. * 2019-08-23 Live Converter TF->XP
  146. *
  147. *---------------------------------------------------------------------------------------
  148. ****************************************************************************************/
  149. include "com_commonxp::comm_main.xjs"
  150. function SPARC02100_oninit(obj:Form, e:InitEventInfo)
  151. {
  152. frmf_initForm(obj);
  153. }
  154. function SPARC02100_onload(obj:Form, e:LoadEventInfo)
  155. {
  156. grdf_initGrid(grd_list);
  157. fInit();
  158. }
  159. function fInit()
  160. {
  161. // 공통코드 목록 가져오기
  162. var arrParam = [{dsNm: "ds_init_hospgrade_A0429", cdGrpId: "A0429" }
  163. ,{dsNm: "ds_init_areacd_A0426", cdGrpId: "A0426" }];
  164. appf_getCodeList(arrParam, true);
  165. ds_main_list_reqlist.clearData();
  166. if (frmf_checkOpener())
  167. {
  168. var pid = opener.frmf_getParameter("pid");
  169. var hngnm = opener.frmf_getParameter("hngnm");
  170. ds_send_search.setColumn(0, "pid", pid);
  171. ds_send_search.setColumn(0, "hngnm", hngnm);
  172. }
  173. else
  174. {
  175. sysf_messageBox("상위화면이 변경되어 데이터를 전달할 수 ", "I004");
  176. }
  177. if (!utlf_isNull(ds_send_search.getColumn(0, "pid")))
  178. {
  179. fSearch();
  180. }
  181. }
  182. function fSearch()
  183. {
  184. var oParam = {};
  185. oParam.id = "TRARC02101";
  186. oParam.service = "healcarecoopapp.ReqMngt";
  187. oParam.method = "reqGetReqPopupList";
  188. oParam.inds = "req=ds_send_search";
  189. oParam.outds = "ds_main_list_reqlist=reqlist";
  190. oParam.async = false;
  191. oParam.callback = "cf_TRARC02101";
  192. tranf_submit(oParam);
  193. }
  194. function cf_TRARC02101(sSvcId, nErrorCode, sErrorMsg)
  195. {
  196. if(nErrorCode < 0)
  197. {
  198. sysf_messageBox("조회를", "E009");
  199. return;
  200. }
  201. }
  202. function group1_btn_search_onclick(obj:Button, e:ClickEventInfo)
  203. {
  204. fSearch();
  205. }
  206. function grd_list_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  207. {
  208. fConfirm();
  209. }
  210. function fConfirm()
  211. {
  212. if (ds_main_list_reqlist.rowcount == 0) return;
  213. if (ds_main_list_reqlist.rowposition < 0) return;
  214. if ( frmf_checkOpener() )
  215. {
  216. var row = ds_main_list_reqlist.rowposition;
  217. if( row >= 0 )
  218. {
  219. opener.ds_reqhospinfo.copyData(ds_main_list_reqlist);
  220. opener.ds_reqhospinfo.clearData();
  221. opener.ds_reqhospinfo.copyRow(opener.ds_reqhospinfo.addRow(), ds_main_list_reqlist, row);
  222. this.close(true);
  223. }
  224. }
  225. else
  226. {
  227. sysf_messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
  228. }
  229. }
  230. function btn_confirm_onclick(obj:Button, e:ClickEventInfo)
  231. {
  232. fConfirm();
  233. }
  234. function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  235. {
  236. if (frmf_checkOpener())
  237. {
  238. this.close(false);
  239. }
  240. this.close(false);
  241. }
  242. ]]></Script>
  243. </Form>
  244. </FDL>