SPARH00200_병원명조회.xfdl 34 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPARH00200" position="absolute 0 0 876 497" titletext="병원명조회" onload="SPARH00200_onload" oninit="SPARH00200_oninit">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption2" text="병원명조회" class="tit_1" position="absolute 0 0 158 23"/>
  8. <Div id="group1" taborder="1" class="div_SA" position="absolute 0 23 860 86">
  9. <Layouts>
  10. <Layout>
  11. <Shape id="line8" linetype="vertical" class="line_4" position="absolute 782 5 788 58"/>
  12. <Static id="caption13" text="병원구분 :" class="search_name" position="absolute 535 10 626 27"/>
  13. <Static id="caption1" text="지역 :" class="search_name" position="absolute 20 35 111 52"/>
  14. <Static id="caption4" text="의뢰의사 :" class="search_name" position="absolute 340 10 418 27"/>
  15. <Static id="caption3" text="의뢰병원명 :" class="search_name" position="absolute 20 10 119 27"/>
  16. <Static id="caption5" text="면허번호 :" class="search_name" position="absolute 340 35 418 52"/>
  17. <Edit id="ipt_coophospnm" taborder="1" class="input_search" position="absolute 117 9 319 28" autoselect="true" onkeydown="group1_ipt_coophospnm_onkeydown"/>
  18. <Edit id="ipt_drnm" taborder="2" class="input_search" position="absolute 419 9 519 28" autoselect="true" onkeydown="group1_ipt_drnm_onkeydown"/>
  19. <Combo id="cmb_hospgrade" taborder="3" innerdataset="@ds_init_hospgrade_A0429" codecolumn="cdid" datacolumn="cdnm" class="combo_search" position="absolute 621 9 761 28" onitemchanged="group1_cmb_hospgrade_onitemchanged"/>
  20. <Combo id="cmb_areacd" taborder="4" innerdataset="ds_init_areacd" codecolumn="sidocd" datacolumn="sidonm" class="combo_search" position="absolute 117 34 193 53" onitemchanged="group1_cmb_areacd_onitemchanged"/>
  21. <Edit id="ipt_licnsno" taborder="5" class="input_search" position="absolute 419 34 519 53" autoselect="true" onkeydown="group1_ipt_licnsno_onkeydown"/>
  22. <CheckBox id="chk_clsmatyn" taborder="6" text="동문" position="absolute 540 35 595 55" onchanged="group1_chk_clsmatyn_onchanged" onclick="group1_chk_clsmatyn_onclick"/>
  23. <Button id="btn_search" taborder="7" text="조회" class="btn1" position="absolute 795 20 851 42" onclick="group1_btn_search_onclick"/>
  24. <Combo id="cmb_areacddetl" taborder="8" innerdataset="@ds_cmb_areadetl" codecolumn="sidocddetl" datacolumn="sidonmdetl" class="combo_search" position="absolute 194 34 318 53" enable="false"/>
  25. </Layout>
  26. </Layouts>
  27. </Div>
  28. <Shape id="line1" class="line_1" position="absolute 0 88 860 94" style="strokepen:3 solid #33bbbbff;"/>
  29. <Grid id="grd_list" taborder="2" binddataset="ds_main_list_req_hosp_list" useinputpanel="false" cellsizingtype="both" cellsizebandtype="allband" autosizingtype="row" position="absolute 0 93 860 469" autoenter="select" oncelldblclick="grd_list_oncelldblclick" onvscroll="grd_list_onvscroll">
  30. <Formats>
  31. <Format id="default">
  32. <Columns>
  33. <Column size="26" band="left"/>
  34. <Column size="150" band="left"/>
  35. <Column size="67" band="left"/>
  36. <Column size="100" band="left"/>
  37. <Column size="60"/>
  38. <Column size="60"/>
  39. <Column size="230"/>
  40. <Column size="180"/>
  41. <Column size="100"/>
  42. <Column size="100"/>
  43. <Column size="150"/>
  44. <Column size="80"/>
  45. <Column size="80"/>
  46. <Column size="50"/>
  47. <Column size="0"/>
  48. <Column size="0"/>
  49. <Column size="0"/>
  50. <Column size="0"/>
  51. <Column size="0"/>
  52. <Column size="0"/>
  53. <Column size="0"/>
  54. <Column size="0"/>
  55. <Column size="0"/>
  56. <Column size="0"/>
  57. <Column size="0"/>
  58. <Column size="0"/>
  59. <Column size="0"/>
  60. <Column size="0"/>
  61. <Column size="0"/>
  62. <Column size="0"/>
  63. <Column size="0"/>
  64. <Column size="0"/>
  65. <Column size="0"/>
  66. <Column size="0"/>
  67. <Column size="0"/>
  68. <Column size="0"/>
  69. <Column size="0"/>
  70. <Column size="0"/>
  71. <Column size="0"/>
  72. <Column size="0"/>
  73. <Column size="0"/>
  74. <Column size="0"/>
  75. <Column size="0"/>
  76. <Column size="0"/>
  77. <Column size="0"/>
  78. <Column size="0"/>
  79. <Column size="0"/>
  80. <Column size="0"/>
  81. <Column size="0"/>
  82. <Column size="0"/>
  83. <Column size="0"/>
  84. <Column size="0"/>
  85. <Column size="0"/>
  86. <Column size="0"/>
  87. <Column size="0"/>
  88. <Column size="0"/>
  89. <Column size="0"/>
  90. <Column size="0"/>
  91. <Column size="0"/>
  92. <Column size="0"/>
  93. <Column size="0"/>
  94. <Column size="0"/>
  95. <Column size="100"/>
  96. <Column size="0"/>
  97. <Column size="0"/>
  98. </Columns>
  99. <Rows>
  100. <Row size="24" band="head"/>
  101. <Row size="24"/>
  102. </Rows>
  103. <Band id="head">
  104. <Cell/>
  105. <Cell col="1" text="병원명"/>
  106. <Cell col="2" text="요양코드"/>
  107. <Cell col="3" text="의사명"/>
  108. <Cell col="4" colspan="2" text="지역" taborder="undefined"/>
  109. <Cell col="6" colspan="2" text="주소" taborder="undefined"/>
  110. <Cell col="8" text="전화번호"/>
  111. <Cell col="9" text="FAX번호"/>
  112. <Cell col="10" text="E-mail"/>
  113. <Cell col="11" text="면허번호"/>
  114. <Cell col="12" text="병원구분"/>
  115. <Cell col="13" text="동문"/>
  116. <Cell col="14" text="caption1"/>
  117. <Cell col="15" text="caption2"/>
  118. <Cell col="16" text="caption3"/>
  119. <Cell col="17" text="caption4"/>
  120. <Cell col="18" text="caption5"/>
  121. <Cell col="19" text="caption6"/>
  122. <Cell col="20" text="caption7"/>
  123. <Cell col="21" text="caption8"/>
  124. <Cell col="22" text="caption9"/>
  125. <Cell col="23" text="caption10"/>
  126. <Cell col="24" text="caption11"/>
  127. <Cell col="25" text="caption12"/>
  128. <Cell col="26" text="caption13"/>
  129. <Cell col="27" text="caption14"/>
  130. <Cell col="28" text="caption15"/>
  131. <Cell col="29" text="caption16"/>
  132. <Cell col="30" text="caption17"/>
  133. <Cell col="31" text="caption18"/>
  134. <Cell col="32" text="caption19"/>
  135. <Cell col="33" text="caption20"/>
  136. <Cell col="34" text="caption21"/>
  137. <Cell col="35" text="caption22"/>
  138. <Cell col="36" text="caption23"/>
  139. <Cell col="37" text="caption24"/>
  140. <Cell col="38" text="caption25"/>
  141. <Cell col="39" text="caption26"/>
  142. <Cell col="40" text="caption27"/>
  143. <Cell col="41" text="caption28"/>
  144. <Cell col="42" text="caption29"/>
  145. <Cell col="43" text="caption30"/>
  146. <Cell col="44" text="caption31"/>
  147. <Cell col="45" text="caption32"/>
  148. <Cell col="46" text="caption33"/>
  149. <Cell col="47" text="caption34"/>
  150. <Cell col="48" text="caption35"/>
  151. <Cell col="49" text="caption36"/>
  152. <Cell col="50" text="caption37"/>
  153. <Cell col="51" text="caption38"/>
  154. <Cell col="52" text="caption39"/>
  155. <Cell col="53" text="caption40"/>
  156. <Cell col="54" text="caption41"/>
  157. <Cell col="55" text="caption42"/>
  158. <Cell col="56" text="caption43"/>
  159. <Cell col="57" text="caption44"/>
  160. <Cell col="58" text="caption45"/>
  161. <Cell col="59" text="caption46"/>
  162. <Cell col="60" text="caption47"/>
  163. <Cell col="61" text="caption48"/>
  164. <Cell col="62" text="caption49"/>
  165. <Cell col="63" text="replflag"/>
  166. <Cell col="64" text="repltype"/>
  167. </Band>
  168. <Band id="body">
  169. <Cell celltype="head" expr="currow+1"/>
  170. <Cell col="1" style="align:left middle;padding:5 3 5 3;" text="bind:coophospnm" wordwrap="char"/>
  171. <Cell col="2" text="bind:corpno"/>
  172. <Cell col="3" style="align:left middle;padding:5 3 5 3;" text="bind:drnm" combodataset="ds_init_areacd1_a0426" combocodecol="cdid" combodatacol="cdnm"/>
  173. <Cell col="4" displaytype="combo" style="align:center middle;padding:5 3 5 3;" text="bind:sidocd" combodataset="ds_init_areacd" combocodecol="sidocd" combodatacol="sidonm" enable="false"/>
  174. <Cell col="5" displaytype="combo" style="align:center middle;" text="bind:sidocddetl" wordwrap="word" combodataset="ds_init_areacddelt" combocodecol="sidocddetl" combodatacol="sidonmdetl"/>
  175. <Cell col="6" style="align:left middle;padding:5 3 5 3;" text="bind:detladdr1" wordwrap="char"/>
  176. <Cell col="7" style="align:left middle;padding:5 3 5 3;" text="bind:detladdr2" wordwrap="char"/>
  177. <Cell col="8" style="align:left middle;padding:5 3 5 3;" text="bind:telno"/>
  178. <Cell col="9" style="align:left middle;padding:5 3 5 3;" text="bind:faxno"/>
  179. <Cell col="10" style="align:left middle;padding:5 3 5 3;" text="bind:emailnm"/>
  180. <Cell col="11" style="align:left middle;padding:5 3 5 3;" text="bind:licnsno"/>
  181. <Cell col="12" displaytype="combo" style="align:left middle;padding:5 3 5 3;" text="bind:hospgrade" combodataset="ds_init_hospgrade_a0429" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  182. <Cell col="13" displaytype="checkbox" text="bind:clsmatyn" expr="expr:clsmatyn == 'Y' ? 1 : 0" enable="false"/>
  183. <Cell col="14" text="bind:coophospcd"/>
  184. <Cell col="15" text="bind:coopdrcd"/>
  185. <Cell col="16" text="bind:fromdd"/>
  186. <Cell col="17" text="bind:coopconcltdd"/>
  187. <Cell col="18" text="bind:cooptodd"/>
  188. <Cell col="19" text="bind:opnofhospdd"/>
  189. <Cell col="20" text="bind:dirofhospnm"/>
  190. <Cell col="21" text="bind:bedcnt"/>
  191. <Cell col="22" text="bind:rgstdd"/>
  192. <Cell col="23" text="bind:perchgrnm"/>
  193. <Cell col="24" text="bind:perchgrjobpos"/>
  194. <Cell col="25" text="bind:perchgrtel"/>
  195. <Cell col="26" text="bind:perchgrmpphone"/>
  196. <Cell col="27" text="bind:zipcd1"/>
  197. <Cell col="28" text="bind:zipcd2"/>
  198. <Cell col="29" text="bind:zipcdseq"/>
  199. <Cell col="30" text="bind:homepgnm"/>
  200. <Cell col="31" text="bind:hospemailid"/>
  201. <Cell col="32" text="bind:hospemailaddr"/>
  202. <Cell col="33" text="bind:corpno"/>
  203. <Cell col="34" text="bind:rgstflag"/>
  204. <Cell col="35" text="bind:hosprem"/>
  205. <Cell col="36" text="bind:todd"/>
  206. <Cell col="37" text="bind:rrgstno1"/>
  207. <Cell col="38" text="bind:rrgstno2"/>
  208. <Cell col="39" text="bind:tradehosp"/>
  209. <Cell col="40" text="bind:gradsch"/>
  210. <Cell col="41" text="bind:drflag"/>
  211. <Cell col="42" text="bind:orddeptcd"/>
  212. <Cell col="43" text="bind:drcls"/>
  213. <Cell col="44" text="bind:medispclno"/>
  214. <Cell col="45" text="bind:drclsmatyn"/>
  215. <Cell col="46" text="bind:gradyear"/>
  216. <Cell col="47" text="bind:replmethod"/>
  217. <Cell col="48" text="bind:drtelno"/>
  218. <Cell col="49" text="bind:drmpphontel"/>
  219. <Cell col="50" text="bind:dremailid"/>
  220. <Cell col="51" text="bind:dremailaddr"/>
  221. <Cell col="52" text="bind:detlfrmrmert"/>
  222. <Cell col="53" text="bind:relign"/>
  223. <Cell col="54" text="bind:hoby"/>
  224. <Cell col="55" text="bind:btype"/>
  225. <Cell col="56" text="bind:epid"/>
  226. <Cell col="57" text="bind:localrgstdd"/>
  227. <Cell col="58" text="bind:eprgstdd"/>
  228. <Cell col="59" text="bind:aprvdd"/>
  229. <Cell col="60" text="bind:secssdd"/>
  230. <Cell col="61" text="bind:secssresn"/>
  231. <Cell col="62" text="bind:drrem"/>
  232. <Cell col="63" text="bind:replflag"/>
  233. <Cell col="64" text="bind:repltype"/>
  234. </Band>
  235. </Format>
  236. </Formats>
  237. </Grid>
  238. <Button id="btn_smarh00100" taborder="3" text="병의원의사관리" class="btn3" position="absolute 0 473 116 495" onclick="btn_smarh00100_onclick"/>
  239. <Shape id="line32" class="line_6" position="absolute 0 469 518 475"/>
  240. <Button id="btn_confirm" taborder="4" text="확인" class="btn4" position="absolute 745 473 801 495" onclick="btn_confirm_onclick"/>
  241. <Button id="btn_cancel" taborder="5" text="취소" class="btn4" position="absolute 804 473 860 495" onclick="btn_cancel_onclick"/>
  242. </Layout>
  243. </Layouts>
  244. <Objects>
  245. <Dataset id="ds_send_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  246. <coophospnm/>
  247. <drnm/>
  248. <hospgrade/>
  249. <areacd/>
  250. <licnsno/>
  251. <clsmatyn/>
  252. <offset>0</offset>
  253. <pagesize>1000</pagesize>
  254. <ColumnInfo>
  255. <Column id="coophospnm" type="STRING" size="256"/>
  256. <Column id="drnm" type="STRING" size="256"/>
  257. <Column id="hospgrade" type="STRING" size="256"/>
  258. <Column id="areacd" type="STRING" size="256"/>
  259. <Column id="licnsno" type="STRING" size="256"/>
  260. <Column id="clsmatyn" type="STRING" size="256"/>
  261. <Column id="offset" type="STRING" size="256"/>
  262. <Column id="pagesize" type="STRING" size="256"/>
  263. <Column id="sidocddetl" type="STRING" size="256"/>
  264. <Column id="sidocd" type="STRING" size="256"/>
  265. </ColumnInfo>
  266. <Rows>
  267. <Row>
  268. <Col id="coophospnm"/>
  269. <Col id="drnm"/>
  270. <Col id="hospgrade"/>
  271. <Col id="areacd"/>
  272. <Col id="licnsno"/>
  273. <Col id="clsmatyn"/>
  274. <Col id="offset">0</Col>
  275. <Col id="pagesize">1000</Col>
  276. </Row>
  277. </Rows>
  278. </Dataset>
  279. <Dataset id="ds_main_list_req_hosp_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  280. <Dataset id="ds_init_areacd_A0014A0426" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  281. <ColumnInfo>
  282. <Column id="cdid" type="STRING" size="256"/>
  283. <Column id="cdnm" type="STRING" size="256"/>
  284. </ColumnInfo>
  285. </Dataset>
  286. <Dataset id="ds_init_hardcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  287. <ColumnInfo>
  288. <Column id="cdnm" type="STRING" size="256"/>
  289. <Column id="cdid" type="STRING" size="256"/>
  290. </ColumnInfo>
  291. </Dataset>
  292. <Dataset id="ds_init_hospgradeall_A0429" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  293. <Dataset id="ds_init_hospgrade_A0429" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  294. <Dataset id="ds_init_areacddelt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  295. <Dataset id="ds_init_areacd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  296. <Dataset id="ds_cmb_areadetl" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  297. </Objects>
  298. <Bind>
  299. <BindItem id="item0" compid="group1.ipt_coophospnm" propid="value" datasetid="ds_send_search" columnid="coophospnm"/>
  300. <BindItem id="item1" compid="group1.ipt_drnm" propid="value" datasetid="ds_send_search" columnid="drnm"/>
  301. <BindItem id="item2" compid="group1.cmb_hospgrade" propid="value" datasetid="ds_send_search" columnid="hospgrade"/>
  302. <BindItem id="item3" compid="group1.cmb_areacd" propid="value" datasetid="ds_send_search" columnid="sidocd"/>
  303. <BindItem id="item4" compid="group1.ipt_licnsno" propid="value" datasetid="ds_send_search" columnid="licnsno"/>
  304. <BindItem id="item5" compid="group1.chk_clsmatyn" propid="value" datasetid="ds_send_search" columnid="clsmatyn"/>
  305. <BindItem id="item6" compid="group1.cmb_areacddetl" propid="value" datasetid="ds_send_search" columnid="sidocddetl"/>
  306. </Bind>
  307. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  308. * System Name :
  309. * Job Name :
  310. * Creator :
  311. * Make Date : 2015-05-06
  312. * Description :
  313. *---------------------------------------------------------------------------------------
  314. * Modify Date Modifier Modify Description
  315. *---------------------------------------------------------------------------------------
  316. * 2015-05-06 Live Converter TF->XP
  317. *
  318. *---------------------------------------------------------------------------------------
  319. ****************************************************************************************/
  320. include "com_commonxp::comm_main.xjs";
  321. include "ast_soclworkxp::AWMCommon.xjs";
  322. include "emr_prcpmngtxp::MMO001.xjs";
  323. var arErrorCode = new HashArray();
  324. function SPARH00200_oninit(obj:Form, e:InitEventInfo)
  325. {
  326. frmf_initForm(obj); // 폼 초기화
  327. }
  328. function SPARH00200_onload(obj:Form, e:LoadEventInfo)
  329. {
  330. grdf_initGrid(grd_list);
  331. fInit();
  332. }
  333. // 초기값
  334. function fInit()
  335. {
  336. // hard코드 가져오기
  337. lf_getHardCDList("N", 9915, null, ds_init_hardcd);
  338. // 공통코드 목록 가져오기
  339. var arrParam = [{dsNm: "ds_init_hospgrade_A0429", cdGrpId: "A0429"}
  340. ,{dsNm: "ds_init_hospgradeall_A0429", cdGrpId: "A0429"}];
  341. appf_getCodeList(arrParam, true);
  342. // 유형코드
  343. appf_getKindCodeList([{bizId:"A0014", cdGrpId:"A0426", dsNm:"ds_init_areacd_A0014A0426", sortField:"dispseq", sortMehotd:""}
  344. ,{bizId:"A0014", cdGrpId:"A0426", dsNm:"ds_init_areacd1_A0014A0426", sortField:"dispseq", sortMehotd:""}]);
  345. //진료협력에서 관리하는 전체 지역코드 조회
  346. var oParam = {};
  347. oParam.id = "TXARH00101";
  348. oParam.service = "healcarecoopapp.CoopHospMngt";
  349. oParam.method = "reqGetAreaList";
  350. oParam.inds = "req=ds_send";
  351. oParam.outds = "ds_init_areacddelt=hosparea";
  352. oParam.async = false;
  353. tranf_submit(oParam);
  354. //진료협력에서 관리하는 시/도 지역코드 조회
  355. var oParam = {};
  356. oParam.id = "TXARH00101";
  357. oParam.service = "healcarecoopapp.CoopHospMngt";
  358. oParam.method = "reqGetAreaSDList";
  359. oParam.inds = "req=ds_send";
  360. oParam.outds = "ds_init_areacd=hosparea";
  361. oParam.async = false;
  362. tranf_submit(oParam);
  363. frmf_addComboItem("group1.cmb_areacd", "- 전 체 -", "-", "above");
  364. frmf_addComboItem("group1.cmb_hospgrade", "- 전 체 -", "", "above");
  365. group1.cmb_areacd.index = 0;
  366. group1.cmb_hospgrade.index = 0;
  367. ds_main_list_req_hosp_list.clearData();
  368. }
  369. function group1_ipt_coophospnm_onkeydown(obj:Edit, e:KeyEventInfo)
  370. {
  371. if(e.keycode == 13)
  372. {
  373. obj.updateToDataset();
  374. group1.btn_search.click();
  375. }
  376. }
  377. function group1_ipt_drnm_onkeydown(obj:Edit, e:KeyEventInfo)
  378. {
  379. if(e.keycode == 13)
  380. {
  381. obj.updateToDataset();
  382. group1.btn_search.click();
  383. }
  384. }
  385. function group1_cmb_hospgrade_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  386. {
  387. group1.btn_search.click();
  388. }
  389. function group1_cmb_areacd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  390. {
  391. var areacd = obj.value;
  392. if(areacd != "-")
  393. {
  394. ds_init_areacddelt.filterstr = "sidocd == '"+areacd+"'";
  395. ds_cmb_areadetl.copyData(ds_init_areacddelt, true);
  396. ds_init_areacddelt.filterstr = "";
  397. group1.cmb_areacddetl.enable = true;
  398. frmf_addComboItem("group1.cmb_areacddetl", "- 전 체 -", "-", "above");
  399. group1.cmb_areacddetl.index = 0;
  400. group1.cmb_areacddetl.value = "-";
  401. }
  402. else
  403. {
  404. sidocddetl.clearData();
  405. group1.cmb_areacddetl.enable = false;
  406. }
  407. //group1.btn_search.click();
  408. }
  409. function group1_ipt_licnsno_onkeydown(obj:Edit, e:KeyEventInfo)
  410. {
  411. if(e.keycode == 13)
  412. {
  413. obj.updateToDataset();
  414. group1.btn_search.click();
  415. }
  416. }
  417. function group1_chk_clsmatyn_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
  418. {
  419. group1.btn_search.click();
  420. }
  421. function group1_chk_clsmatyn_onclick(obj:CheckBox, e:ClickEventInfo)
  422. {
  423. if(obj.value == "Y")
  424. {}
  425. else
  426. {
  427. ds_send_search.setColumn(0, "clsmatyn", "");
  428. }
  429. }
  430. function group1_btn_search_onclick(obj:Button, e:ClickEventInfo)
  431. {
  432. if ( !fCheckDate() ) return; //필수 저장여부 체크
  433. fSearch();
  434. }
  435. function fCheckDate()
  436. {
  437. var coophospnm = ds_send_search.getColumn(0, "coophospnm");
  438. var drnm = ds_send_search.getColumn(0, "drnm");
  439. var hospgrade = ds_send_search.getColumn(0, "hospgrade");
  440. var sidocd = ds_send_search.getColumn(0, "sidocd");
  441. if (utlf_isNull(coophospnm) && utlf_isNull(drnm) && utlf_isNull(hospgrade) && utlf_isNull(sidocd))
  442. {
  443. sysf_messageBox("의뢰병원명, 의뢰의사, 병원구분, 지역 조건 중 하나의 조건을 ","C002");
  444. return false;
  445. }
  446. if (String(group1.ipt_coophospnm.value).length > 0 && String(group1.ipt_coophospnm.value).length < 2)
  447. {
  448. sysf_messageBox("의뢰병원명은 2글자 이상으로 해주십시요!","E999","");
  449. group1.ipt_coophospnm.setFocus();
  450. return false;
  451. }
  452. if (String(group1.ipt_drnm.value).length > 0 && String(group1.ipt_drnm.value).length < 2)
  453. {
  454. sysf_messageBox("의뢰의사명은 2글자 이상으로 해주십시요!","E999","");
  455. group1.ipt_drnm.setFocus();
  456. return false;
  457. }
  458. return true;
  459. }
  460. // 조회
  461. function fSearch()
  462. {
  463. ds_main_list_req_hosp_list.clearData();
  464. ds_send_search.setColumn(0, "offset", "0"); // grid의 header row는 제외
  465. dsf_setDefaultVal(ds_send_search, "sidocd:-,sidocddetl:-");
  466. var oParam = {};
  467. oParam.id = "TRARH00201";
  468. oParam.service = "healcarecoopapp.CoopHospMngt";
  469. oParam.method = "reqGetHospList";
  470. oParam.inds = "req=ds_send_search";
  471. oParam.outds = "ds_main_list_req_hosp_list=req_hosp_list";
  472. oParam.async = false;
  473. oParam.callback = "cf_TRARH00201";
  474. tranf_submit(oParam);
  475. if(arErrorCode.pop("TRARH00201") > -1)
  476. {
  477. if (ds_main_list_req_hosp_list.rowcount == 0)
  478. {
  479. sysf_messageBox("조회된 병원이 없습니다.", "I999");
  480. }
  481. }
  482. }
  483. function cf_TRARH00201(sSvcId, nErrorCode, sErrorMsg) {
  484. arErrorCode.push(sSvcId, nErrorCode);
  485. }
  486. function grd_list_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  487. {
  488. fConfirm();
  489. }
  490. function fConfirm()
  491. {
  492. if (ds_main_list_req_hosp_list.rowcount == 0) return;
  493. if (ds_main_list_req_hosp_list.rowposition < 0) return;
  494. if ( frmf_checkOpener() )
  495. {
  496. var row = ds_main_list_req_hosp_list.rowposition;
  497. if( row >= 0 )
  498. {
  499. var receiveref = eval("opener.ds_main_hospinfo_hospinfolist");
  500. receiveref.clearData();
  501. opener.dsf_makeValue(receiveref, "coophospnm", "string", ds_main_list_req_hosp_list.getColumn(row, "coophospnm"), 0);
  502. opener.dsf_makeValue(receiveref, "drnm", "string", ds_main_list_req_hosp_list.getColumn(row, "drnm"), 0);
  503. //opener.dsf_makeValue(receiveref, "areacd", "string", ds_main_list_req_hosp_list.getColumn(row, "areacd"), 0);
  504. opener.dsf_makeValue(receiveref, "detladdr1", "string", ds_main_list_req_hosp_list.getColumn(row, "detladdr1"), 0);
  505. opener.dsf_makeValue(receiveref, "detladdr2", "string", ds_main_list_req_hosp_list.getColumn(row, "detladdr2"), 0);
  506. opener.dsf_makeValue(receiveref, "telno", "string", ds_main_list_req_hosp_list.getColumn(row, "telno"), 0);
  507. opener.dsf_makeValue(receiveref, "faxno", "string", ds_main_list_req_hosp_list.getColumn(row, "faxno"), 0);
  508. opener.dsf_makeValue(receiveref, "emailnm", "string", ds_main_list_req_hosp_list.getColumn(row, "emailnm"), 0);
  509. opener.dsf_makeValue(receiveref, "licnsno", "string", ds_main_list_req_hosp_list.getColumn(row, "licnsno"), 0);
  510. opener.dsf_makeValue(receiveref, "hospgrade", "string", ds_main_list_req_hosp_list.getColumn(row, "hospgrade"), 0);
  511. opener.dsf_makeValue(receiveref, "clsmatyn", "string", ds_main_list_req_hosp_list.getColumn(row, "clsmatyn"), 0);
  512. opener.dsf_makeValue(receiveref, "coophospcd", "string", ds_main_list_req_hosp_list.getColumn(row, "coophospcd"), 0);
  513. opener.dsf_makeValue(receiveref, "coopdrcd", "string", ds_main_list_req_hosp_list.getColumn(row, "coopdrcd"), 0);
  514. opener.dsf_makeValue(receiveref, "fromdd", "string", ds_main_list_req_hosp_list.getColumn(row, "fromdd"), 0);
  515. opener.dsf_makeValue(receiveref, "coopconcltdd", "string", ds_main_list_req_hosp_list.getColumn(row, "coopconcltdd"), 0);
  516. opener.dsf_makeValue(receiveref, "cooptodd", "string", ds_main_list_req_hosp_list.getColumn(row, "cooptodd"), 0);
  517. opener.dsf_makeValue(receiveref, "opnofhospdd", "string", ds_main_list_req_hosp_list.getColumn(row, "opnofhospdd"), 0);
  518. opener.dsf_makeValue(receiveref, "dirofhospnm", "string", ds_main_list_req_hosp_list.getColumn(row, "dirofhospnm"), 0);
  519. opener.dsf_makeValue(receiveref, "bedcnt", "string", ds_main_list_req_hosp_list.getColumn(row, "bedcnt"), 0);
  520. opener.dsf_makeValue(receiveref, "rgstdd", "string", ds_main_list_req_hosp_list.getColumn(row, "rgstdd"), 0);
  521. opener.dsf_makeValue(receiveref, "perchgrnm", "string", ds_main_list_req_hosp_list.getColumn(row, "perchgrnm"), 0);
  522. opener.dsf_makeValue(receiveref, "perchgrjobpos", "string", ds_main_list_req_hosp_list.getColumn(row, "perchgrjobpos"), 0);
  523. opener.dsf_makeValue(receiveref, "perchgrtel", "string", ds_main_list_req_hosp_list.getColumn(row, "perchgrtel"), 0);
  524. opener.dsf_makeValue(receiveref, "perchgrmpphone", "string", ds_main_list_req_hosp_list.getColumn(row, "perchgrmpphone"), 0);
  525. opener.dsf_makeValue(receiveref, "zipcd1", "string", ds_main_list_req_hosp_list.getColumn(row, "zipcd1"), 0);
  526. opener.dsf_makeValue(receiveref, "zipcd2", "string", ds_main_list_req_hosp_list.getColumn(row, "zipcd2"), 0);
  527. opener.dsf_makeValue(receiveref, "zipcdseq", "string", ds_main_list_req_hosp_list.getColumn(row, "zipcdseq"), 0);
  528. opener.dsf_makeValue(receiveref, "homepgnm", "string", ds_main_list_req_hosp_list.getColumn(row, "homepgnm"), 0);
  529. opener.dsf_makeValue(receiveref, "hospemailid", "string", ds_main_list_req_hosp_list.getColumn(row, "hospemailid"), 0);
  530. opener.dsf_makeValue(receiveref, "hospemailaddr", "string", ds_main_list_req_hosp_list.getColumn(row, "hospemailaddr"), 0);
  531. opener.dsf_makeValue(receiveref, "corpno", "string", ds_main_list_req_hosp_list.getColumn(row, "corpno"), 0);
  532. opener.dsf_makeValue(receiveref, "rgstflag", "string", ds_main_list_req_hosp_list.getColumn(row, "rgstflag"), 0);
  533. opener.dsf_makeValue(receiveref, "hosprem", "string", ds_main_list_req_hosp_list.getColumn(row, "hosprem"), 0);
  534. opener.dsf_makeValue(receiveref, "todd", "string", ds_main_list_req_hosp_list.getColumn(row, "todd"), 0);
  535. opener.dsf_makeValue(receiveref, "rrgstno1", "string", ds_main_list_req_hosp_list.getColumn(row, "rrgstno1"), 0);
  536. opener.dsf_makeValue(receiveref, "rrgstno2", "string", ds_main_list_req_hosp_list.getColumn(row, "rrgstno2"), 0);
  537. opener.dsf_makeValue(receiveref, "tradehosp", "string", ds_main_list_req_hosp_list.getColumn(row, "tradehosp"), 0);
  538. opener.dsf_makeValue(receiveref, "gradsch", "string", ds_main_list_req_hosp_list.getColumn(row, "gradsch"), 0);
  539. opener.dsf_makeValue(receiveref, "drflag", "string", ds_main_list_req_hosp_list.getColumn(row, "drflag"), 0);
  540. opener.dsf_makeValue(receiveref, "orddeptcd", "string", ds_main_list_req_hosp_list.getColumn(row, "orddeptcd"), 0);
  541. opener.dsf_makeValue(receiveref, "drcls", "string", ds_main_list_req_hosp_list.getColumn(row, "drcls"), 0);
  542. opener.dsf_makeValue(receiveref, "medispclno", "string", ds_main_list_req_hosp_list.getColumn(row, "medispclno"), 0);
  543. opener.dsf_makeValue(receiveref, "drclsmatyn", "string", ds_main_list_req_hosp_list.getColumn(row, "drclsmatyn"), 0);
  544. opener.dsf_makeValue(receiveref, "gradyear", "string", ds_main_list_req_hosp_list.getColumn(row, "gradyear"), 0);
  545. opener.dsf_makeValue(receiveref, "replmethod", "string", ds_main_list_req_hosp_list.getColumn(row, "replmethod"), 0);
  546. opener.dsf_makeValue(receiveref, "drtelno", "string", ds_main_list_req_hosp_list.getColumn(row, "drtelno"), 0);
  547. opener.dsf_makeValue(receiveref, "drmpphontel", "string", ds_main_list_req_hosp_list.getColumn(row, "drmpphontel"), 0);
  548. opener.dsf_makeValue(receiveref, "dremailid", "string", ds_main_list_req_hosp_list.getColumn(row, "dremailid"), 0);
  549. opener.dsf_makeValue(receiveref, "dremailaddr", "string", ds_main_list_req_hosp_list.getColumn(row, "dremailaddr"), 0);
  550. opener.dsf_makeValue(receiveref, "detlfrmrmert", "string", ds_main_list_req_hosp_list.getColumn(row, "detlfrmrmert"), 0);
  551. opener.dsf_makeValue(receiveref, "relign", "string", ds_main_list_req_hosp_list.getColumn(row, "relign"), 0);
  552. opener.dsf_makeValue(receiveref, "hoby", "string", ds_main_list_req_hosp_list.getColumn(row, "hoby"), 0);
  553. opener.dsf_makeValue(receiveref, "btype", "string", ds_main_list_req_hosp_list.getColumn(row, "btype"), 0);
  554. opener.dsf_makeValue(receiveref, "epid", "string", ds_main_list_req_hosp_list.getColumn(row, "epid"), 0);
  555. opener.dsf_makeValue(receiveref, "localrgstdd", "string", ds_main_list_req_hosp_list.getColumn(row, "localrgstdd"), 0);
  556. opener.dsf_makeValue(receiveref, "eprgstdd", "string", ds_main_list_req_hosp_list.getColumn(row, "eprgstdd"), 0);
  557. opener.dsf_makeValue(receiveref, "aprvdd", "string", ds_main_list_req_hosp_list.getColumn(row, "aprvdd"), 0);
  558. opener.dsf_makeValue(receiveref, "secssdd", "string", ds_main_list_req_hosp_list.getColumn(row, "secssdd"), 0);
  559. opener.dsf_makeValue(receiveref, "secssresn", "string", ds_main_list_req_hosp_list.getColumn(row, "secssresn"), 0);
  560. opener.dsf_makeValue(receiveref, "drrem", "string", ds_main_list_req_hosp_list.getColumn(row, "drrem"), 0);
  561. opener.dsf_makeValue(receiveref, "repltype", "string", ds_main_list_req_hosp_list.getColumn(row, "repltype"), 0);
  562. opener.dsf_makeValue(receiveref, "replflag", "string", ds_main_list_req_hosp_list.getColumn(row, "replflag"), 0);
  563. //[요청번호 20191216011] 원무쪽 요양병원의뢰서 추가 20190102이아영
  564. opener.dsf_makeValue(receiveref, "corpno", "string", ds_main_list_req_hosp_list.getColumn(row, "corpno"), 0);
  565. opener.dsf_makeValue(receiveref, "hospkind", "string", ds_main_list_req_hosp_list.getColumn(row, "hospkind"), 0);
  566. var receiveref = eval("opener.ds_main");
  567. opener.dsf_makeValue(receiveref, "hospflag", "string", "Y", 0);
  568. this.close();
  569. }
  570. }
  571. else
  572. {
  573. sysf_messageBox("상위화면이 변경되어 데이터를 가져올 수", "I004");
  574. }
  575. }
  576. function grd_list_onvscroll(obj:Grid, e:ScrollEventInfo)
  577. {
  578. // if(obj.vscrollbar.max == obj.vscrollbar.pos)
  579. // {
  580. // // end of scroll
  581. // ds_send_search.setColumn(0, "offset", ds_main_list_req_hosp_list.rowcount); // grid의 header row는 제외
  582. // var oParam = {};
  583. // oParam.id = "TRARH00201";
  584. // oParam.service = "healcarecoopapp.CoopHospMngt";
  585. // oParam.method = "reqGetHospList";
  586. // oParam.inds = "req=ds_send_search";
  587. // oParam.outds = "ds_main_list_req_hosp_list=req_hosp_list";
  588. // oParam.async = false;
  589. // //oParam.callback = "cf_TRARH00201";
  590. //
  591. // tranf_submit(oParam);
  592. // }
  593. }
  594. function btn_smarh00100_onclick(obj:Button, e:ClickEventInfo)
  595. {
  596. fHospPopup();
  597. }
  598. function fHospPopup()
  599. {
  600. var coophospnm = frmf_setParameter("coophospnm", ds_send_search.getColumn(0, "coophospnm"));
  601. var status = frmf_setParameter("status", "i");
  602. var hardcd = ds_init_hardcd.lookup("hardcd", sysf_getUserInfo("dutplcecd"), "hardcd");
  603. if(utlf_isNull(hardcd))
  604. {
  605. var hideOption = frmf_setParameter("hideoption", "ALL");
  606. }
  607. frmf_modal("SMARH00100", "SMARH00100", "", "", 1, 1, 1, "", "", "", "", "", "M");
  608. fSearch();
  609. }
  610. function btn_confirm_onclick(obj:Button, e:ClickEventInfo)
  611. {
  612. fConfirm();
  613. }
  614. function btn_cancel_onclick(obj:Button, e:ClickEventInfo)
  615. {
  616. if (frmf_checkOpener())
  617. {
  618. var receiveref = eval("opener.ds_main");
  619. opener.dsf_makeValue(receiveref, "hospflag", "string", "N", 0);
  620. this.close();
  621. }
  622. this.close();
  623. }
  624. ]]></Script>
  625. </Form>
  626. </FDL>