SPPMO02000_외래미시행내역조회.xfdl 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPPMO02000" position="absolute 0 0 669 349" titletext="외래 미시행내역조회" onload="SPPMO02000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp" taborder="1" class="div_SA2" position="absolute 0 0 662 35">
  8. <Layouts>
  9. <Layout width="662" height="35">
  10. <Static id="caption2" text="등록번호 :" class="search_name" position="absolute 0 9 86 26"/>
  11. <Button id="btn_search" taborder="1" text="조회" class="btn1" position="absolute 590 7 646 29" onclick="grp_btn_search_onclick"/>
  12. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 571 7 577 29"/>
  13. <Edit id="input3" taborder="2" class="input_search" position="absolute 86 8 156 27" onkeydown="grp_input3_onkeydown"/>
  14. <Static id="caption3" text="조회일자 :" class="search_name" position="absolute 260 9 346 26"/>
  15. <Button id="button1" taborder="3" class="icon_search" position="absolute 160 9 176 25" onclick="grp_button1_onclick"/>
  16. <Calendar id="ipt_srchfromdd" taborder="4" class="input_essential" position="absolute 345 8 440 27" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" value="null"/>
  17. <Static id="caption50" text="~" class="search_n_b" position="absolute 444 9 456 26"/>
  18. <Calendar id="ipt_srchtodd" taborder="5" class="input_essential" position="absolute 460 8 555 27" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" value="null"/>
  19. <Edit id="input1" taborder="6" class="input_search" enable="false" position="absolute 180 8 250 27" onkeydown="grp_input1_onkeydown"/>
  20. </Layout>
  21. </Layouts>
  22. </Div>
  23. <Static id="caption1" text="외래 미시행내역" class="tit_2" position="absolute 5 42 144 58"/>
  24. <Grid id="grd_dethotptlist" taborder="2" binddataset="ds_main_dethotptinfo" useinputpanel="false" position="absolute 0 60 662 309" autofittype="col">
  25. <Formats>
  26. <Format id="default">
  27. <Columns>
  28. <Column size="25"/>
  29. <Column size="0"/>
  30. <Column size="0"/>
  31. <Column size="90"/>
  32. <Column size="120"/>
  33. <Column size="90"/>
  34. <Column size="100"/>
  35. </Columns>
  36. <Rows>
  37. <Row size="24" band="head"/>
  38. <Row size="24"/>
  39. </Rows>
  40. <Band id="head">
  41. <Cell/>
  42. <Cell col="1" text="환자번호"/>
  43. <Cell col="2" text="진료일자"/>
  44. <Cell col="3" displaytype="normal" text="진료일자"/>
  45. <Cell col="4" text="진료과"/>
  46. <Cell col="5" text="진료의사"/>
  47. <Cell col="6" text="비고"/>
  48. </Band>
  49. <Band id="body">
  50. <Cell celltype="head" text="expr:currow + 1"/>
  51. <Cell col="1" text="bind:pid"/>
  52. <Cell col="2" text="bind:orddd" mask="yyyy-mm-dd"/>
  53. <Cell col="3" displaytype="date" style="align:center middle;" text="bind:orddd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  54. <Cell col="4" style="align:left middle;" text="bind:orddeptnm"/>
  55. <Cell col="5" style="align:center middle;" text="bind:orddrnm"/>
  56. <Cell col="6" style="align:left middle;" text="bind:type"/>
  57. </Band>
  58. </Format>
  59. </Formats>
  60. </Grid>
  61. <Button id="btn_close" taborder="3" text="닫기" class="btn4" position="absolute 606 319 662 341" onclick="btn_close_onclick"/>
  62. <Shape id="line32" linetype="horizontal" class="line_6" position="absolute 0 311 662 317"/>
  63. </Layout>
  64. </Layouts>
  65. <Objects>
  66. <Dataset id="ds_main_dethotptinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  67. <ColumnInfo>
  68. <Column id="pid" type="STRING"/>
  69. <Column id="orddd" type="STRING"/>
  70. <Column id="orddeptnm" type="STRING"/>
  71. <Column id="orddrnm" type="STRING"/>
  72. <Column id="type" type="STRING"/>
  73. </ColumnInfo>
  74. </Dataset>
  75. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  76. <ColumnInfo>
  77. <Column id="pid" type="STRING" size="256"/>
  78. <Column id="hngnm" type="STRING" size="256"/>
  79. <Column id="srchfromdd" type="STRING" size="256"/>
  80. <Column id="srchtodd" type="STRING" size="256"/>
  81. </ColumnInfo>
  82. <Rows>
  83. <Row>
  84. <Col id="pid"/>
  85. <Col id="hngnm"/>
  86. <Col id="srchfromdd"/>
  87. <Col id="srchtodd"/>
  88. </Row>
  89. </Rows>
  90. </Dataset>
  91. <Dataset id="ds_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  92. <ColumnInfo>
  93. <Column id="pid" type="STRING" size="256" sumtext="환자등록번호"/>
  94. <Column id="bindyn" type="STRING" size="256" sumtext="환자등록번호"/>
  95. <Column id="hngnm" type="STRING" size="256" sumtext="한글이름"/>
  96. <Column id="hngnm2" type="STRING" size="256" sumtext="표시이름"/>
  97. <Column id="engnm" type="STRING" size="256" sumtext="영문이름"/>
  98. <Column id="chinm" type="STRING" size="256" sumtext="영문이름"/>
  99. <Column id="rrgstno1" type="STRING" size="256" sumtext="주민번호앞6자리"/>
  100. <Column id="rrgstno2" type="STRING" size="256" sumtext="주민번호뒤7자리"/>
  101. <Column id="rrgstno3" type="STRING" size="256" sumtext="주민번호뒤4자리와별표3자리"/>
  102. <Column id="lastinsukind" type="STRING" size="256" sumtext="최근보험유형"/>
  103. <Column id="brthdd" type="STRING" size="256" sumtext="생년월일"/>
  104. <Column id="sex" type="STRING" size="256" sumtext="성별"/>
  105. <Column id="age" type="STRING" size="256" sumtext="나이"/>
  106. <Column id="bindpid" type="STRING" size="256" sumtext="합본등록번호"/>
  107. <Column id="hometel" type="STRING" size="256" sumtext="집전화번호"/>
  108. <Column id="mpphontel" type="STRING" size="256" sumtext="휴대전화번호"/>
  109. <Column id="etctel1" type="STRING" size="256" sumtext="기타전화번호1"/>
  110. <Column id="etctel2" type="STRING" size="256" sumtext="기타전화번호2"/>
  111. <Column id="smsaprvyn" type="STRING" size="256" sumtext="SMS전송 승인 여부"/>
  112. <Column id="email" type="STRING" size="256" sumtext="이메일 게정"/>
  113. <Column id="zipcd1" type="STRING" size="256" sumtext="우편번호 앞 3자리"/>
  114. <Column id="zipcd2" type="STRING" size="256" sumtext="우편번호 뒤 3자리"/>
  115. <Column id="zipcdseq" type="STRING" size="256" sumtext="우편일련번호"/>
  116. <Column id="addr" type="STRING" size="256" sumtext="기본주소"/>
  117. <Column id="detladdr" type="STRING" size="256" sumtext="상세주소"/>
  118. <Column id="btype" type="STRING" size="256" sumtext="혈액형"/>
  119. <Column id="rh" type="STRING" size="256" sumtext="RH혈액형"/>
  120. <Column id="forgeryn" type="STRING" size="256" sumtext="외국인여부"/>
  121. <Column id="nati" type="STRING" size="256" sumtext="국적"/>
  122. <Column id="psptno" type="STRING" size="256" sumtext="여권번호"/>
  123. <Column id="recmyn" type="STRING" size="256" sumtext="추천여부"/>
  124. <Column id="recmerid" type="STRING" size="256" sumtext="추천인ID"/>
  125. <Column id="recmernm" type="STRING" size="256" sumtext="추천인명"/>
  126. <Column id="recmerrela" type="STRING" size="256" sumtext="추천인과의 관계"/>
  127. <Column id="vipyn" type="STRING" size="256" sumtext="VIP여부"/>
  128. <Column id="viprem" type="STRING" size="256" sumtext="VIP비고"/>
  129. <Column id="religncd" type="STRING" size="256" sumtext="종교코드"/>
  130. <Column id="baptnm" type="STRING" size="256" sumtext="세례명"/>
  131. <Column id="chchnm" type="STRING" size="256" sumtext="성당명"/>
  132. <Column id="dethyn" type="STRING" size="256" sumtext="사망여부"/>
  133. <Column id="dethdt" type="STRING" size="256" sumtext="사망일시"/>
  134. <Column id="dethdd" type="STRING" size="256" sumtext="사망일자"/>
  135. <Column id="dethtm" type="STRING" size="256" sumtext="사망시간"/>
  136. <Column id="chosresn" type="STRING" size="256" sumtext="내원사유"/>
  137. <Column id="animyn" type="STRING" size="256" sumtext="동물여부"/>
  138. <Column id="exptresncd" type="STRING" size="256" sumtext="원외예외사유코드"/>
  139. <Column id="inhospyn" type="STRING" size="256" sumtext="재원여부"/>
  140. <Column id="handicapryn" type="STRING" size="256" sumtext="장애인여부"/>
  141. <Column id="pidflag" type="STRING" size="256" sumtext="등록번호구분"/>
  142. <Column id="remfact" type="STRING" size="256" sumtext="참고사항"/>
  143. <Column id="ptunyn" type="STRING" size="256" sumtext="미수안내"/>
  144. <Column id="lastorddd" type="STRING" size="256" sumtext="최근내원일"/>
  145. <Column id="lastorddeptcd" type="STRING" size="256" sumtext="최근내원과"/>
  146. <Column id="outuncoamt" type="STRING" size="256" sumtext="외래미수금"/>
  147. <Column id="dschuncoamt" type="STRING" size="256" sumtext="입원미수금"/>
  148. <Column id="kioskrcptnoyn" type="STRING" size="256" sumtext="무인수납불가여부"/>
  149. <Column id="carnum" type="STRING" size="256" sumtext="차량번호"/>
  150. <Column id="acptdd" type="STRING" size="256" sumtext="가예약 접수일자"/>
  151. <Column id="acptno" type="STRING" size="256" sumtext="가예약 접수일련번호"/>
  152. <Column id="patspcfyn" type="STRING" size="256" sumtext="특이환자여부"/>
  153. <Column id="tdaydsch" type="STRING" size="256" sumtext="특이환자여부"/>
  154. <Column id="mig" type="STRING" size="256" sumtext="마이그레이션여부"/>
  155. <Column id="scanyn" type="STRING" size="256" sumtext="동의서출력여부"/>
  156. <Column id="spifscanyn" type="STRING" size="256" sumtext="선택진료신청서스캔여부"/>
  157. <Column id="isolinfo" type="STRING" size="256" sumtext="격리환자정보"/>
  158. <Column id="builno" type="STRING" size="256" sumtext="도로명주소 코드"/>
  159. </ColumnInfo>
  160. </Dataset>
  161. </Objects>
  162. <Bind>
  163. <BindItem id="item0" compid="grp.input3" propid="value" datasetid="ds_send" columnid="pid"/>
  164. <BindItem id="item1" compid="grp.input1" propid="value" datasetid="ds_send" columnid="hngnm"/>
  165. <BindItem id="item2" compid="grp.ipt_srchfromdd" propid="value" datasetid="ds_send" columnid="srchfromdd"/>
  166. <BindItem id="item3" compid="grp.ipt_srchtodd" propid="value" datasetid="ds_send" columnid="srchtodd"/>
  167. </Bind>
  168. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  169. * System Name :
  170. * Job Name :
  171. * Creator :
  172. * Make Date : 2016-05-24
  173. * Description :
  174. *---------------------------------------------------------------------------------------
  175. * Modify Date Modifier Modify Description
  176. *---------------------------------------------------------------------------------------
  177. * 2016-05-24 Live Converter TF->XP
  178. *
  179. *---------------------------------------------------------------------------------------
  180. ****************************************************************************************/
  181. //=======================================================================================
  182. // Lib Include
  183. //---------------------------------------------------------------------------------------
  184. include 'com_commonxp::comm_main.xjs';
  185. var arErrorCode = new HashArray();
  186. //=======================================================================================
  187. // Local Methods
  188. //---------------------------------------------------------------------------------------
  189. /****************************************************************************************
  190. * Argument :
  191. * Description :
  192. ****************************************************************************************/
  193. //=======================================================================================
  194. // Events
  195. //---------------------------------------------------------------------------------------
  196. /****************************************************************************************
  197. * Argument :
  198. * Description : onload
  199. ****************************************************************************************/
  200. function SPPMO02000_onload(obj:Form, e:LoadEventInfo){
  201. // 폼 초기화
  202. frmf_initForm(obj);
  203. // 날짜 기간 선택
  204. ds_send.setColumn(0, 'srchfromdd', utlf_getCurrentDate().toDate().getAddDate(-1, 'Y').getDateFormat());
  205. ds_send.setColumn(0, 'srchtodd', '99991231');
  206. if(frmf_checkOpener()){
  207. var pid = opener.frmf_getParameter('SPPMO02000_PID');
  208. if(!utlf_isNull(pid) && pid != '' && pid != ' ' && pid != '-'){
  209. ds_send.setColumn(0, 'pid', pid);
  210. grp.btn_search.click();
  211. }
  212. }
  213. }
  214. /****************************************************************************************
  215. * Argument :
  216. * Description : 등록번호 키보드 입력 이벤트
  217. ****************************************************************************************/
  218. function grp_input3_onkeydown(obj:Edit, e:KeyEventInfo){
  219. if(e.keycode == 13){
  220. obj.updateToDataset();
  221. grp.btn_search.click();
  222. }
  223. }
  224. /****************************************************************************************
  225. * Argument :
  226. * Description : 등록번호 검색 아이콘 버튼 클릭 이벤트
  227. ****************************************************************************************/
  228. function grp_button1_onclick(obj:Button, e:ClickEventInfo){
  229. var obj = new Object();
  230. obj.arg_ds_send = ds_send;
  231. // child 팝업 창에서 부모의 dataset 에 값을 채워넣는다
  232. frmf_modal("SPPMC02500", "SPPMC02500", obj, "", '', '', '', "", "", "", "", "", "M");
  233. if(frmf_getParameter('SPPMC02500_popupendflag') == 'ok'){
  234. ds_send.setColumn(0, 'pid', ds_patinfolist.getColumn(0, 'pid'));
  235. ds_send.setColumn(0, 'hngnm', ds_patinfolist.getColumn(0, 'hngnm'));
  236. }
  237. }
  238. /****************************************************************************************
  239. * Argument :
  240. * Description : 한글이름 키보드 입력 이벤트
  241. ****************************************************************************************/
  242. function grp_input1_onkeydown(obj:Edit, e:KeyEventInfo){
  243. if(e.keycode == 13){
  244. obj.updateToDataset();
  245. grp.btn_search.click();
  246. }
  247. }
  248. /****************************************************************************************
  249. * Argument :
  250. * Description : 조회 버튼 클릭 이벤트
  251. ****************************************************************************************/
  252. function grp_btn_search_onclick(obj:Button, e:ClickEventInfo){
  253. var pid = ds_send.getColumn(0, 'pid');
  254. var hngnm = ds_send.getColumn(0, 'hngnm');
  255. if(utlf_isNull(pid) || pid == '' || pid == ' ' || pid == '-'){
  256. sysf_messageBox('등록번호가 없ㅅ브니다. 환자조회 후 다시 시도해 주세요', 'E999');
  257. return false;
  258. }
  259. dsf_createDsRow("ds_req", [
  260. { col: "srchcond", type: "INT", size: 256, val: '1' },
  261. { col: "checkfnexam", type: "INT", size: 256, val: '' },
  262. { col: "pid", type: "STRING", size: 256, val: pid },
  263. { col: "hngnm", type: "STRING", size: 256, val: hngnm },
  264. { col: "rrgstno1", type: "STRING", size: 256, val: '' },
  265. { col: "rrgstno2", type: "STRING", size: 256, val: '' },
  266. { col: "acptdd", type: "STRING", size: 256, val: '' },
  267. { col: "instcd", type: "STRING", size: 256, val: '' },
  268. { col: "insukind", type: "STRING", size: 256, val: '' },
  269. { col: "inhospyn", type: "STRING", size: 256, val: '' },
  270. { col: "sex", type: "STRING", size: 256, val: '' },
  271. { col: "hiddenflag", type: "STRING", size: 256, val: '' }
  272. ], false);
  273. var oParam = {};
  274. oParam.id = "TRPMC02500";
  275. oParam.service = "patinfomngtapp.PatBaseInfo";
  276. oParam.method = "reqGetPatInfo";
  277. oParam.inds = "req=ds_req";
  278. oParam.outds = "ds_patinfolist=patinfolist";
  279. oParam.async = false;
  280. //oParam.callback = "cf_TRPMC02500";
  281. tranf_submit(oParam);
  282. if(arErrorCode.pop("TRPMC02500") < 0){
  283. return false;
  284. }
  285. if(ds_patinfolist.rowcount > 0){
  286. ds_send.setColumn(0, 'pid', ds_patinfolist.getColumn(0, 'pid'));
  287. ds_send.setColumn(0, 'hngnm', ds_patinfolist.getColumn(0, 'hngnm'));
  288. }
  289. else{
  290. sysf_messageBox('존재하지 않는 등록번호입니다. 등록번호를 확인하세요', 'E999');
  291. }
  292. oParam = {};
  293. oParam.id = "TRPAO00002";
  294. oParam.service = "pamcomnapp.PamComn";
  295. oParam.method = "reqGetDethOtptInfo";
  296. oParam.inds = "req=ds_send";
  297. oParam.outds = "ds_main_dethotptinfo=dethotptinfo";
  298. oParam.async = false;
  299. //oParam.callback = "cf_TRPAO00002";
  300. tranf_submit(oParam);
  301. }
  302. /****************************************************************************************
  303. * Argument :
  304. * Description : 닫기 버튼 클릭 이벤트
  305. ****************************************************************************************/
  306. function btn_close_onclick(obj:Button, e:ClickEventInfo){
  307. this.close();
  308. }
  309. ]]></Script>
  310. </Form>
  311. </FDL>