SPLBD91400_외래환자접수목록조회.xfdl 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPLBD91400" position="absolute 0 0 620 343" titletext="외래환자 접수목록 조회" onload="SPLBD91400_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 311 601 338" id="group1" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Button position="absolute 486 5 542 27" id="btn_confirm" class="btn4" taborder="8" text="접수" onclick="group1_btn_confirm_onclick"/>
  11. <Button position="absolute 545 5 601 27" id="btn_cancel" class="btn4" taborder="9" text="취소" onclick="group1_btn_cancel_onclick"/>
  12. <Shape position="absolute 0 -2 600 4" linetype="horizontal" id="line32" class="line_6"/>
  13. </Layout>
  14. </Layouts>
  15. </Div>
  16. <Static id="caption1" text="접수목록" class="tit_2" position="absolute 1 57 96 73"/>
  17. <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 74 601 80" style="strokepen:3 solid #33bbbbff;"/>
  18. <Static id="cap_regno" text="등록번호" class="cell_1" position="absolute 0 25 70 48"/>
  19. <Static id="caption2" text="환자정보" class="tit_2" position="absolute 1 5 96 21"/>
  20. <Shape id="line2" class="line_3" position="absolute 0 21 601 27" style="strokepen:2 solid #33bbbbff;"/>
  21. <Static id="caption3" text="환자성명" class="cell_1" position="absolute 176 25 246 48"/>
  22. <Static id="caption4" text="성별" class="cell_1" position="absolute 352 25 412 48"/>
  23. <Static id="caption5" text="나이" class="cell_1" position="absolute 478 25 538 48"/>
  24. <Shape id="line9" class="line_3" position="absolute 0 45 601 51"/>
  25. <Grid id="grd_otptlist" taborder="1" binddataset="ds_grd_otptlist" useinputpanel="false" oncellclick="group3_grd_otptlist_oncellclick" position="absolute 0 78 601 308">
  26. <Formats>
  27. <Format id="default">
  28. <Columns>
  29. <Column size="0"/>
  30. <Column size="0"/>
  31. <Column size="0"/>
  32. <Column size="0"/>
  33. <Column size="31"/>
  34. <Column size="100"/>
  35. <Column size="150"/>
  36. <Column size="100"/>
  37. <Column size="101"/>
  38. <Column size="100"/>
  39. <Column size="0"/>
  40. <Column size="0"/>
  41. <Column size="0"/>
  42. <Column size="0"/>
  43. <Column size="0"/>
  44. <Column size="0"/>
  45. <Column size="0"/>
  46. <Column size="0"/>
  47. <Column size="0"/>
  48. <Column size="0"/>
  49. <Column size="0"/>
  50. <Column size="0"/>
  51. </Columns>
  52. <Rows>
  53. <Row size="24" band="head"/>
  54. <Row size="24"/>
  55. </Rows>
  56. <Band id="head">
  57. <Cell text="pid"/>
  58. <Cell col="1" text="hngnm"/>
  59. <Cell col="2" text="sex"/>
  60. <Cell col="3" text="age"/>
  61. <Cell col="4"/>
  62. <Cell col="5" text="진료일자"/>
  63. <Cell col="6" text="진료과"/>
  64. <Cell col="7" text="진료의사"/>
  65. <Cell col="8" text="특진"/>
  66. <Cell col="9" text="보험유형"/>
  67. <Cell col="10" text="orddeptcd"/>
  68. <Cell col="11" text="orddrid"/>
  69. <Cell col="12" text="ordtm"/>
  70. <Cell col="13" text="rsrvflag"/>
  71. <Cell col="14" text="etcordflag"/>
  72. <Cell col="15" text="instcd"/>
  73. <Cell col="16" text="medamtestmyn"/>
  74. <Cell col="17" text="medamtfreeresn"/>
  75. <Cell col="18" text="insukind"/>
  76. <Cell col="19" text="suppkind"/>
  77. <Cell col="20" text="insucd"/>
  78. <Cell col="21" text="suppkindresn"/>
  79. </Band>
  80. <Band id="body">
  81. <Cell text="bind:pid"/>
  82. <Cell col="1" text="bind:hngnm"/>
  83. <Cell col="2" text="bind:sex"/>
  84. <Cell col="3" text="bind:age"/>
  85. <Cell col="4" text="expr:currow + 1"/>
  86. <Cell col="5" displaytype="date" edittype="date" text="bind:orddd" mask="yyyy-MM-dd"/>
  87. <Cell col="6" text="bind:orddeptnm"/>
  88. <Cell col="7" text="bind:orddrnm"/>
  89. <Cell col="8" text="bind:suppkind2"/>
  90. <Cell col="9" text="bind:insukind2"/>
  91. <Cell col="10" text="bind:orddeptcd"/>
  92. <Cell col="11" text="bind:orddrid"/>
  93. <Cell col="12" text="bind:ordtm"/>
  94. <Cell col="13" text="bind:rsrvflag"/>
  95. <Cell col="14" text="bind:etcordflag"/>
  96. <Cell col="15" text="bind:instcd"/>
  97. <Cell col="16" text="bind:medamtestmyn"/>
  98. <Cell col="17" text="bind:medamtfreeresn"/>
  99. <Cell col="18" text="bind:insukind"/>
  100. <Cell col="19" text="bind:suppkind"/>
  101. <Cell col="20" text="bind:insucd"/>
  102. <Cell col="21" text="bind:suppkindresn"/>
  103. </Band>
  104. </Format>
  105. </Formats>
  106. </Grid>
  107. <Edit id="opt_pid" taborder="2" readonly="true" position="absolute 73 26 173 45"/>
  108. <Edit id="opt_hngnm" taborder="3" readonly="true" position="absolute 249 26 349 45"/>
  109. <Edit id="opt_sex" taborder="4" readonly="true" position="absolute 415 26 475 45"/>
  110. <Edit id="opt_age" taborder="5" readonly="true" position="absolute 541 26 601 45"/>
  111. </Layout>
  112. </Layouts>
  113. <Objects>
  114. <Dataset id="ds_grd_otptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  115. <ColumnInfo>
  116. <Column id="pid" type="STRING"/>
  117. <Column id="hngnm" type="STRING"/>
  118. <Column id="sex" type="STRING"/>
  119. <Column id="age" type="STRING"/>
  120. <Column id="orddd" type="STRING"/>
  121. <Column id="orddeptnm" type="STRING"/>
  122. <Column id="orddrnm" type="STRING"/>
  123. <Column id="suppkind2" type="STRING"/>
  124. <Column id="insukind2" type="STRING"/>
  125. <Column id="orddeptcd" type="STRING"/>
  126. <Column id="orddrid" type="STRING"/>
  127. <Column id="ordtm" type="STRING"/>
  128. <Column id="rsrvflag" type="STRING"/>
  129. <Column id="etcordflag" type="STRING"/>
  130. <Column id="instcd" type="STRING"/>
  131. <Column id="medamtestmyn" type="STRING"/>
  132. <Column id="medamtfreeresn" type="STRING"/>
  133. <Column id="insukind" type="STRING"/>
  134. <Column id="suppkind" type="STRING"/>
  135. <Column id="insucd" type="STRING"/>
  136. <Column id="suppkindresn" type="STRING"/>
  137. </ColumnInfo>
  138. </Dataset>
  139. <Dataset id="ds_patinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  140. <ColumnInfo>
  141. <Column id="pid" type="STRING" size="256"/>
  142. <Column id="hngnm" type="STRING" size="256"/>
  143. <Column id="sex" type="STRING" size="256"/>
  144. <Column id="age" type="STRING" size="256"/>
  145. </ColumnInfo>
  146. <Rows>
  147. <Row/>
  148. </Rows>
  149. </Dataset>
  150. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  151. <ColumnInfo>
  152. <Column id="pid" type="STRING" size="256"/>
  153. <Column id="orddd" type="STRING" size="256"/>
  154. <Column id="orddeptcd" type="STRING" size="256"/>
  155. <Column id="orddrid" type="STRING" size="256"/>
  156. <Column id="ordtm" type="STRING" size="256"/>
  157. <Column id="instcd" type="STRING" size="256"/>
  158. <Column id="insukind" type="STRING" size="256"/>
  159. <Column id="insucd" type="STRING" size="256"/>
  160. <Column id="suppkindresn" type="STRING" size="256"/>
  161. </ColumnInfo>
  162. <Rows>
  163. <Row>
  164. <Col id="pid"/>
  165. <Col id="orddd"/>
  166. <Col id="orddeptcd"/>
  167. <Col id="orddrid"/>
  168. <Col id="ordtm"/>
  169. <Col id="instcd"/>
  170. <Col id="insukind"/>
  171. <Col id="insucd"/>
  172. <Col id="suppkindresn"/>
  173. </Row>
  174. </Rows>
  175. </Dataset>
  176. </Objects>
  177. <Bind>
  178. <BindItem id="item0" compid="opt_pid" propid="value" datasetid="ds_patinfo" columnid="pid"/>
  179. <BindItem id="item1" compid="opt_hngnm" propid="value" datasetid="ds_patinfo" columnid="hngnm"/>
  180. <BindItem id="item2" compid="opt_sex" propid="value" datasetid="ds_patinfo" columnid="sex"/>
  181. <BindItem id="item3" compid="opt_age" propid="value" datasetid="ds_patinfo" columnid="age"/>
  182. </Bind>
  183. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  184. * System Name :
  185. * Job Name :
  186. * Creator :
  187. * Make Date : 2015-05-19
  188. * Description :
  189. *---------------------------------------------------------------------------------------
  190. * Modify Date Modifier Modify Description
  191. *---------------------------------------------------------------------------------------
  192. * 2015-05-19 Live Converter TF->XP
  193. *
  194. *---------------------------------------------------------------------------------------
  195. ****************************************************************************************/
  196. include "com_commonxp::comm_main.xjs";
  197. var arErrorCode = new HashArray();
  198. function cf_TRLBD91401(sSvcId, nErrorCode, sErrorMsg) {
  199. if(nErrorCode < 0) return;
  200. if(ds_grd_otptlist.rowcount > 0){
  201. opt_pid.value = ds_grd_otptlist.getColumn(0,"pid");
  202. opt_hngnm.value = ds_grd_otptlist.getColumn(0,"hngnm");
  203. opt_sex.value = ds_grd_otptlist.getColumn(0,"sex");
  204. opt_age.value = ds_grd_otptlist.getColumn(0,"age");
  205. }
  206. }
  207. function cf_TXLBD91401(sSvcId, nErrorCode, sErrorMsg) {
  208. arErrorCode.push(sSvcId, nErrorCode);
  209. }
  210. // 초기화
  211. function lf_SetInit(){
  212. if(utlf_isNull(arg_pid)){ // 등록번호 없으면 초기화
  213. ds_grd_otptlist.clearData();
  214. opt_pid.value = "";
  215. opt_hngnm.value = "";
  216. opt_sex.value = "";
  217. opt_age.value = "";
  218. return;
  219. }
  220. // 등록번호 오면 접수내역 조회
  221. ds_send.setColumn(0,"pid",arg_pid);
  222. var oParam = {};
  223. oParam.id = "TRLBD91401";
  224. oParam.service = "donmngtapp.DonRgst";
  225. oParam.method = "reqGetOtptlist";
  226. oParam.inds = "cond=ds_send";
  227. oParam.outds = "ds_grd_otptlist=getOtptlist";
  228. oParam.async = true;
  229. oParam.callback = "cf_TRLBD91401";
  230. tranf_submit(oParam);
  231. }
  232. // 확인, 그리드선택 B=확인버튼 G=그리드선택
  233. function lf_SetOtptAcpt(gbn)
  234. {
  235. if(ds_grd_otptlist.rowposition < 0 )
  236. {
  237. alert("접수내역을 선택하십시오.");
  238. return;
  239. }
  240. var currow = ds_grd_otptlist.rowposition;
  241. // ds_send.setColumn(0,"pid", ds_grd_otptlist.getColumn(currow,"pid"));
  242. // ds_send.setColumn(0,"orddd", utlf_getCurrentDate());
  243. // ds_send.setColumn(0,"orddeptcd", ds_grd_otptlist.getColumn(currow,"orddeptcd"));
  244. // ds_send.setColumn(0,"orddrid", ds_grd_otptlist.getColumn(currow,"orddrid"));
  245. // ds_send.setColumn(0,"ordtm", ds_grd_otptlist.getColumn(currow,"ordtm"));
  246. // ds_send.setColumn(0,"instcd", ds_grd_otptlist.getColumn(currow,"instcd"));
  247. // ds_send.setColumn(0,"insukind", ds_grd_otptlist.getColumn(currow,"insukind"));
  248. // ds_send.setColumn(0,"insucd", ds_grd_otptlist.getColumn(currow,"insucd"));
  249. // ds_send.setColumn(0,"suppkindresn", ds_grd_otptlist.getColumn(currow,"suppkindresn"));
  250. dsf_createDsRow("ds_send_cond", [{col : "otpt_pid", val : ds_grd_otptlist.getColumn(currow, "pid")}
  251. ,{col : "otpt_flag", val : "I"}
  252. ,{col : "otpt_orddd", val : utlf_getCurrentDate()}
  253. ,{col : "otpt_orddeptcd", val : ds_grd_otptlist.getColumn(currow, "orddeptcd")}
  254. ,{col : "otpt_orddrid", val : ds_grd_otptlist.getColumn(currow, "orddrid")}
  255. ,{col : "otpt_ordtm", val : ds_grd_otptlist.getColumn(currow, "ordtm")}
  256. ,{col : "otpt_rsrvflag", val : "P"}
  257. ,{col : "otpt_etcordflag", val : "A"}
  258. ,{col : "otpt_instcd", val : ds_grd_otptlist.getColumn(currow,"instcd")}
  259. ,{col : "otpt_medamtestmyn", val : "N"}
  260. ,{col : "otpt_medamtfreeresn", val : "19"}
  261. ,{col : "otpt_insukind", val : ds_grd_otptlist.getColumn(currow, "insukind")}
  262. ,{col : "otpt_suppkind", val : "01"}
  263. ,{col : "otpt_insucd", val : ds_grd_otptlist.getColumn(currow,"insucd")}
  264. ,{col : "otpt_suppkindresn", val : ds_grd_otptlist.getColumn(currow, "suppkindresn")}]);
  265. if(gbn=="B")
  266. {
  267. // 외래접수 태우기
  268. var oParam = {};
  269. oParam.id = "TXLBD91401";
  270. oParam.service = "donmngtapp.DonRgst";
  271. oParam.method = "reqExeOtptAcpt";
  272. oParam.inds = "cond=ds_send_cond";
  273. oParam.async = false;
  274. oParam.callback = "cf_TXLBD91401";
  275. tranf_submit(oParam);
  276. if(arErrorCode.pop("TXLBD91401") > -1)
  277. {
  278. alert("접수성공");
  279. opener.ds_hidden.setColumn(0,"otptyn", "Y");
  280. this.close();
  281. }
  282. }
  283. }
  284. function SPLBD91400_onload(obj:Form, e:LoadEventInfo)
  285. {
  286. frmf_initForm(obj);
  287. lf_SetInit();
  288. }
  289. function group3_grd_otptlist_oncellclick(obj:Grid, e:GridClickEventInfo)
  290. {
  291. lf_SetOtptAcpt("G");
  292. }
  293. function group1_btn_confirm_onclick(obj:Button, e:ClickEventInfo)
  294. {
  295. lf_SetOtptAcpt("B");
  296. }
  297. function group1_btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  298. {
  299. opener.ds_hidden.setColumn(0,"otptyn", "N");
  300. this.close();
  301. }
  302. ]]></Script>
  303. </Form>
  304. </FDL>