SMARH00600_협력병의원체결현황.xfdl 30 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMARH00600" position="absolute 0 0 1202 748" titletext="병의원현황조회" oninit="SMARH00600_oninit" onload="SMARH00600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption2" text="병의원현황조회" class="tit_1" position="absolute 0 0 194 24"/>
  8. <Div id="group1" anchor="left top right" taborder="1" class="div_SA" position="absolute 0 24 1195 104">
  9. <Layouts>
  10. <Layout>
  11. <cp_checkboxList id="chk_hospgrade" taborder="24" scrollbars="none" position="absolute 570 4 902 58" style="background:transparent; " col="1" row="1" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="20" overflow="visible" anchor="default"/>
  12. <Static id="caption5" text="~" class="search_no_b" position="absolute 294 12 306 29" anchor="default"/>
  13. <Calendar id="ipt_fromdd" taborder="1" class="input_search" position="absolute 187 9 290 28" autoselect="true" autoskip="true" anchor="default"/>
  14. <Calendar id="ipt_todd" taborder="2" class="input_search" position="absolute 310 10 413 29" anchor="default" autoselect="true"/>
  15. <Shape id="line8" linetype="vertical" class="line_4" position="absolute 1116 5 1122 53" anchor="default"/>
  16. <Static id="caption9" text="조회일자 :" class="search_name" position="absolute 12 10 84 27" anchor="default"/>
  17. <Static id="caption13" text="병원구분 :" class="search_name" position="absolute 420 10 499 27" anchor="default"/>
  18. <Button id="btn_search" taborder="3" text="조회" class="btn1" position="absolute 1126 11 1182 33" onclick="group1_btn_search_onclick" anchor="default"/>
  19. <Static id="caption35" text="지역명 :" class="search_name" position="absolute 865 9 934 26" anchor="default"/>
  20. <Static id="caption10" text="주요특성분야 :" class="search_name" position="absolute 12 58 142 75" anchor="default"/>
  21. <Static id="caption1" text="병의원명 :" class="search_name" position="absolute 865 35 952 52" anchor="default"/>
  22. <Edit id="ipt_coophospnm" taborder="21" position="absolute 952 34 1107 53" onkeyup="group1_ipt_coophospnm_onkeyup" anchor="default" autoselect="true"/>
  23. <CheckBox id="chk_hosp" taborder="22" position="absolute 496 6 566 26" text="병원전체" truevalue="H" onclick="group1_chk_hosp_onclick" anchor="default"/>
  24. <CheckBox id="chk_clinic" taborder="23" position="absolute 496 29 566 49" text="의원전체" truevalue="C" onclick="group1_chk_clinic_onclick" anchor="default"/>
  25. <Combo id="cmb_dayflag" taborder="25" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 86 9 186 28" anchor="default" onitemchanged="group1_cmb_dayflag_onitemchanged" index="-1">
  26. <Dataset id="innerdataset">
  27. <ColumnInfo>
  28. <Column id="codecolumn" size="256"/>
  29. <Column id="datacolumn" size="256"/>
  30. </ColumnInfo>
  31. <Rows>
  32. <Row>
  33. <Col id="codecolumn">1</Col>
  34. <Col id="datacolumn">협력체결일자</Col>
  35. </Row>
  36. <Row>
  37. <Col id="codecolumn">2</Col>
  38. <Col id="datacolumn">폐업일자</Col>
  39. </Row>
  40. </Rows>
  41. </Dataset>
  42. </Combo>
  43. <CheckBox id="chk_mjfieldall" taborder="26" text="전체" value="N" truevalue="Y" falsevalue="N" position="absolute 117 55 173 75" anchor="default" onclick="group1_chk_mjfieldall_onclick"/>
  44. <CheckBox id="chk_mjfield15" taborder="27" text="간호통합" value="N" truevalue="Y" falsevalue="N" onclick="grp_mjfield_chk_mjfield01_onclick" position="absolute 167 55 239 75" anchor="default"/>
  45. <CheckBox id="chk_mjfield17" taborder="28" text="공동간병" value="N" truevalue="Y" falsevalue="N" onclick="grp_mjfield_chk_mjfield01_onclick" position="absolute 245 55 317 75" anchor="default"/>
  46. <CheckBox id="chk_mjfield04" taborder="29" text="인공호흡기" value="N" truevalue="Y" falsevalue="N" position="absolute 324 55 408 75" anchor="default"/>
  47. <CheckBox id="chk_mjfield13" taborder="30" text="항생제" value="N" truevalue="Y" falsevalue="N" position="absolute 410 55 472 75" anchor="default"/>
  48. <CheckBox id="chk_mjfield16" taborder="31" text="입원실" value="N" truevalue="Y" falsevalue="N" position="absolute 473 55 531 75" anchor="default"/>
  49. <CheckBox id="chk_mjfield07" taborder="32" text="감염" value="N" truevalue="Y" falsevalue="N" position="absolute 538 55 588 75" anchor="default"/>
  50. <CheckBox id="chk_mjfield08" taborder="33" text="투석" value="N" truevalue="Y" falsevalue="N" position="absolute 590 55 640 75" anchor="default"/>
  51. <CheckBox id="chk_mjfield11" taborder="34" text="호스피스 말기암관리" value="N" truevalue="Y" falsevalue="N" position="absolute 693 55 825 75" anchor="default"/>
  52. <CheckBox id="chk_mjfield09" taborder="35" text="재활" value="N" truevalue="Y" falsevalue="N" position="absolute 641 55 692 75" anchor="default"/>
  53. <Combo id="cmb_condareacd" taborder="36" innerdataset="ds_init_areacd" codecolumn="sidocd" datacolumn="sidonm" onitemchanged="group1_cmb_condareacd_onitemchanged" class="combo_search" position="absolute 933 8 1015 27"/>
  54. <Combo id="cmb_areacddelt" taborder="37" innerdataset="ds_cmb_areadetl" codecolumn="sidocddetl" datacolumn="sidonmdetl" class="combo_search" enable="false" position="absolute 1017 8 1107 27"/>
  55. </Layout>
  56. </Layouts>
  57. </Div>
  58. <Shape id="line1" class="line_10" position="absolute 0 136 1195 142" anchor="left top right"/>
  59. <Button id="btn_excel" taborder="2" text="엑셀" class="btn7" position="absolute 1137 117 1195 136" onclick="btn_excel_onclick"/>
  60. <Static id="caption8" text="병의원현황 리스트" class="tit_2" position="absolute 0 120 230 142"/>
  61. <Grid id="grd_list" taborder="3" binddataset="ds_main_list_hosp_list" autoenter="select" useinputpanel="false" cellsizingtype="both" position="absolute 0 141 1195 715" anchor="all" oncelldblclick="grd_list_oncelldblclick" extendsizetype="row" autosizingtype="row" onvscrolllastover="grd_list_onvscrolllastover">
  62. <Formats>
  63. <Format id="default">
  64. <Columns>
  65. <Column size="27" band="left"/>
  66. <Column size="0" band="left"/>
  67. <Column size="60" band="left"/>
  68. <Column size="140" band="left"/>
  69. <Column size="59"/>
  70. <Column size="40"/>
  71. <Column size="80"/>
  72. <Column size="28"/>
  73. <Column size="28"/>
  74. <Column size="150"/>
  75. <Column size="130"/>
  76. <Column size="90"/>
  77. <Column size="90"/>
  78. <Column size="40"/>
  79. <Column size="80"/>
  80. <Column size="80"/>
  81. <Column size="80"/>
  82. <Column size="0"/>
  83. <Column size="100"/>
  84. <Column size="50"/>
  85. <Column size="65"/>
  86. <Column size="100"/>
  87. <Column size="100"/>
  88. <Column size="70"/>
  89. <Column size="40"/>
  90. <Column size="40"/>
  91. <Column size="40"/>
  92. <Column size="40"/>
  93. <Column size="40"/>
  94. <Column size="40"/>
  95. <Column size="40"/>
  96. <Column size="40"/>
  97. <Column size="60"/>
  98. </Columns>
  99. <Rows>
  100. <Row size="28" 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" text="병원장명"/>
  109. <Cell col="5" colspan="2" text="지역" taborder="undefined"/>
  110. <Cell col="7" colspan="2" text="우편번호" taborder="undefined"/>
  111. <Cell col="9" colspan="2" text="주소" taborder="undefined"/>
  112. <Cell col="11" text="전화번호"/>
  113. <Cell col="12" text="팩스번호"/>
  114. <Cell col="13" text="동문&#13;&#10;여부"/>
  115. <Cell col="14" text="등록일자"/>
  116. <Cell col="15" text="협력체결일자"/>
  117. <Cell col="16" text="협력종료일자"/>
  118. <Cell col="17" text="폐업일자"/>
  119. <Cell col="18" text="대표과"/>
  120. <Cell col="19" text="실무자명"/>
  121. <Cell col="20" text="직책"/>
  122. <Cell col="21" text="전화번호"/>
  123. <Cell col="22" text="휴대전화"/>
  124. <Cell col="23" text="병원구분"/>
  125. <Cell col="24" text="간호&#13;&#10;통합"/>
  126. <Cell col="25" text="공동&#13;&#10;간병"/>
  127. <Cell col="26" text="인공&#13;&#10;호흡기"/>
  128. <Cell col="27" text="항생제"/>
  129. <Cell col="28" text="입원실"/>
  130. <Cell col="29" text="감염"/>
  131. <Cell col="30" text="투석"/>
  132. <Cell col="31" text="재활"/>
  133. <Cell col="32" text="호스피스&#13;&#10;말기암관리"/>
  134. </Band>
  135. <Band id="body">
  136. <Cell celltype="head" expr="currow+1"/>
  137. <Cell col="1" text="bind:coophospcd"/>
  138. <Cell col="2" text="bind:corpno"/>
  139. <Cell col="3" style="align:left top;padding:2 2 2 2;" text="bind:coophospnm" wordwrap="word" autosizerow="limitmin"/>
  140. <Cell col="4" style="align:left middle;padding:0 0 0 3;" text="bind:dirofhospnm" wordwrap="word"/>
  141. <Cell col="5" displaytype="combo" style="align:center middle;padding:0 0 0 3;" text="bind:sidocd" combodataset="ds_init_areacd" combocodecol="sidocd" combodatacol="sidonm" enable="false"/>
  142. <Cell col="6" displaytype="combo" style="align:center middle;" text="bind:sidocddetl" combodataset="ds_init_areacddelt" combocodecol="sidocddetl" combodatacol="sidonmdetl"/>
  143. <Cell col="7" text="bind:zipcd1"/>
  144. <Cell col="8" text="bind:zipcd2"/>
  145. <Cell col="9" style="align:left middle;padding:3 3 3 3;" text="bind:addr" wordwrap="word" autosizerow="limitmin"/>
  146. <Cell col="10" style="align:left middle;padding:0 0 0 3;" text="bind:detladdr"/>
  147. <Cell col="11" style="align:left middle;padding:0 0 0 3;" text="bind:telno"/>
  148. <Cell col="12" style="align:left middle;padding:0 0 0 3;" text="bind:faxno"/>
  149. <Cell col="13" text="bind:clsmatyn"/>
  150. <Cell col="14" displaytype="date" text="bind:rgstdd" calendardisplaynulltype="nulltext"/>
  151. <Cell col="15" displaytype="date" text="bind:coopconcltdd" calendardisplaynulltype="nulltext"/>
  152. <Cell col="16" displaytype="date" text="bind:cooptodd" calendardisplaynulltype="nulltext"/>
  153. <Cell col="17" displaytype="date" text="bind:closedd" calendardisplaynulltype="nulltext"/>
  154. <Cell col="18" style="align:left middle;padding:0 0 0 3;" text="bind:reprorddeptnm"/>
  155. <Cell col="19" text="bind:perchgrnm"/>
  156. <Cell col="20" text="bind:perchgrjobpos"/>
  157. <Cell col="21" text="bind:perchgrtel"/>
  158. <Cell col="22" text="bind:perchgrmpphone"/>
  159. <Cell col="23" text="bind:hospgradenm"/>
  160. <Cell col="24" style="align:center middle;" text="bind:mjfield15"/>
  161. <Cell col="25" style="align:center middle;" text="bind:mjfield17"/>
  162. <Cell col="26" style="align:center middle;" text="bind:mjfield04"/>
  163. <Cell col="27" style="align:center middle;" text="bind:mjfield13"/>
  164. <Cell col="28" style="align:center middle;" text="bind:mjfield16"/>
  165. <Cell col="29" style="align:center middle;" text="bind:mjfield07"/>
  166. <Cell col="30" style="align:center middle;" text="bind:mjfield08"/>
  167. <Cell col="31" style="align:center middle;" text="bind:mjfield09"/>
  168. <Cell col="32" style="align:center middle;" text="bind:mjfield11"/>
  169. </Band>
  170. </Format>
  171. </Formats>
  172. </Grid>
  173. <Button id="button10" taborder="4" text="초기화" class="btn4" position="absolute 1127 721 1195 743" anchor="right bottom" onclick="button10_onclick"/>
  174. </Layout>
  175. </Layouts>
  176. <Objects>
  177. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  178. <ColumnInfo>
  179. <Column id="f_date" type="STRING" size="256"/>
  180. <Column id="t_date" type="STRING" size="256"/>
  181. <Column id="hospgrade" type="STRING" size="256"/>
  182. <Column id="coophospnm" type="STRING" size="256"/>
  183. <Column id="offset" type="INT" size="256"/>
  184. <Column id="pagesize" type="INT" size="256"/>
  185. <Column id="sidocd" type="STRING" size="256"/>
  186. <Column id="sidocddetl" type="STRING" size="256"/>
  187. <Column id="mjfield15" type="STRING" size="256"/>
  188. <Column id="mjfield17" type="STRING" size="256"/>
  189. <Column id="mjfield04" type="STRING" size="256"/>
  190. <Column id="mjfield13" type="STRING" size="256"/>
  191. <Column id="mjfield16" type="STRING" size="256"/>
  192. <Column id="mjfield07" type="STRING" size="256"/>
  193. <Column id="mjfield08" type="STRING" size="256"/>
  194. <Column id="mjfield09" type="STRING" size="256"/>
  195. <Column id="mjfield11" type="STRING" size="256"/>
  196. <Column id="flag" type="STRING" size="256"/>
  197. </ColumnInfo>
  198. <Rows>
  199. <Row>
  200. <Col id="f_date"/>
  201. <Col id="t_date"/>
  202. <Col id="hospgrade"/>
  203. <Col id="coophospnm"/>
  204. <Col id="offset">0</Col>
  205. <Col id="pagesize">5000</Col>
  206. </Row>
  207. </Rows>
  208. </Dataset>
  209. <Dataset id="ds_main_list_hosp_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  210. <ColumnInfo>
  211. <Column id="coophospcd" type="STRING" size="256" sumtext="병의원코드"/>
  212. <Column id="coophospnm" type="STRING" size="256" sumtext="병의원명"/>
  213. <Column id="dirofhospnm" type="STRING" size="256" sumtext="병원장명"/>
  214. <Column id="areacd" type="STRING" size="256" sumtext="지역코드"/>
  215. <Column id="addr" type="STRING" size="256" sumtext="주소1"/>
  216. <Column id="detladdr" type="STRING" size="256" sumtext="주소2"/>
  217. <Column id="zipcd1" type="STRING" size="256" sumtext="우편번호1"/>
  218. <Column id="zipcd2" type="STRING" size="256" sumtext="우편번호2"/>
  219. <Column id="telno" type="STRING" size="256" sumtext="전화번호"/>
  220. <Column id="faxno" type="STRING" size="256" sumtext="팩스번호"/>
  221. <Column id="clsmatyn" type="STRING" size="256" sumtext="동문여부"/>
  222. <Column id="reprorddeptnm" type="STRING" size="256" sumtext="대표과"/>
  223. <Column id="coopconcltdd" type="STRING" size="256" sumtext="협력체결일"/>
  224. <Column id="perchgrnm" type="STRING" size="256" sumtext="실무자명"/>
  225. <Column id="perchgrjobpos" type="STRING" size="256" sumtext="실무자직위"/>
  226. <Column id="perchgrtel" type="STRING" size="256" sumtext="실무자전화번호"/>
  227. <Column id="perchgrmpphone" type="STRING" size="256" sumtext="실무자핸드폰"/>
  228. <Column id="hospgrade" type="STRING" size="256" sumtext="병원구분"/>
  229. <Column id="hospgradenm" type="STRING" size="256" sumtext="병원구분명"/>
  230. <Column id="mjfield01" type="STRING" size="256" sumtext="주요특성분야(응급실운영)"/>
  231. <Column id="mjfield02" type="STRING" size="256" sumtext="주요특성분야(수술여부)"/>
  232. <Column id="mjfield03" type="STRING" size="256" sumtext="주요특성분야(중환자실)"/>
  233. <Column id="mjfield04" type="STRING" size="256" sumtext="주요특성분야(인공호흡기)"/>
  234. <Column id="mjfield05" type="STRING" size="256" sumtext="주요특성분야(재원:항암,RT환자)"/>
  235. <Column id="mjfield06" type="STRING" size="256" sumtext="주요특성분야(혈액,종양내과)"/>
  236. <Column id="mjfield07" type="STRING" size="256" sumtext="주요특성분야(감염관리)"/>
  237. <Column id="mjfield08" type="STRING" size="256" sumtext="주요특성분야(투석)"/>
  238. <Column id="mjfield09" type="STRING" size="256" sumtext="주요특성분야(재활)"/>
  239. <Column id="mjfield10" type="STRING" size="256" sumtext="주요특성분야(장기요양)"/>
  240. <Column id="mjfield11" type="STRING" size="256" sumtext="주요특성분야(호스피스 말기암관리)"/>
  241. <Column id="mjfield12" type="STRING" size="256" sumtext="주요특성분야(수혈)"/>
  242. <Column id="mjfield13" type="STRING" size="256" sumtext="주요특성분야(항생제)"/>
  243. <Column id="mjfield14" type="STRING" size="256" sumtext="주요특성분야(통증)"/>
  244. </ColumnInfo>
  245. </Dataset>
  246. <Dataset id="ds_init_hospgrade_A0429" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  247. <Dataset id="ds_temp_list_hosp_list" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  248. <Dataset id="ds_init_areacd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  249. <Dataset id="ds_init_areacddelt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  250. <Dataset id="ds_cmb_areadetl" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  251. </Objects>
  252. <Bind>
  253. <BindItem id="item0" compid="group1.ipt_fromdd" propid="value" datasetid="ds_send" columnid="f_date"/>
  254. <BindItem id="item1" compid="group1.ipt_todd" propid="value" datasetid="ds_send" columnid="t_date"/>
  255. <BindItem id="item2" compid="group1.chk_hosp" propid="value" datasetid="ds_temp" columnid="chkhosp"/>
  256. <BindItem id="item3" compid="group1.chk_clinic" propid="value" datasetid="ds_temp" columnid="chkclinic"/>
  257. <BindItem id="item20" compid="group1.ipt_coophospnm" propid="value" datasetid="ds_send" columnid="coophospnm"/>
  258. <BindItem id="item21" compid="group1.cmb_dayflag" propid="value" datasetid="ds_send" columnid="flag"/>
  259. <BindItem id="item42" compid="group1.chk_mjfield15" propid="value" datasetid="ds_send" columnid="mjfield15"/>
  260. <BindItem id="item53" compid="group1.chk_mjfield17" propid="value" datasetid="ds_send" columnid="mjfield17"/>
  261. <BindItem id="item43" compid="group1.chk_mjfield04" propid="value" datasetid="ds_send" columnid="mjfield04"/>
  262. <BindItem id="item44" compid="group1.chk_mjfield13" propid="value" datasetid="ds_send" columnid="mjfield13"/>
  263. <BindItem id="item46" compid="group1.chk_mjfield16" propid="value" datasetid="ds_send" columnid="mjfield16"/>
  264. <BindItem id="item47" compid="group1.chk_mjfield07" propid="value" datasetid="ds_send" columnid="mjfield07"/>
  265. <BindItem id="item50" compid="group1.chk_mjfield08" propid="value" datasetid="ds_send" columnid="mjfield08"/>
  266. <BindItem id="item48" compid="group1.chk_mjfield11" propid="value" datasetid="ds_send" columnid="mjfield11"/>
  267. <BindItem id="item49" compid="group1.chk_mjfield09" propid="value" datasetid="ds_send" columnid="mjfield09"/>
  268. <BindItem id="item80" compid="group1.cmb_condareacd" propid="value" datasetid="ds_send" columnid="sidocd"/>
  269. <BindItem id="item51" compid="group1.cmb_areacddelt" propid="value" datasetid="ds_send" columnid="sidocddetl"/>
  270. </Bind>
  271. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  272. * System Name :
  273. * Job Name :
  274. * Creator :
  275. * Make Date : 2015-11-13
  276. * Description :
  277. *---------------------------------------------------------------------------------------
  278. * Modify Date Modifier Modify Description
  279. *---------------------------------------------------------------------------------------
  280. * 2015-11-13 Live Converter TF->XP
  281. *
  282. *---------------------------------------------------------------------------------------
  283. ****************************************************************************************/
  284. include "com_commonxp::comm_main.xjs";
  285. include "emr_prcpmngtxp::MMOCommon.xjs";
  286. include "emr_prcpmngtxp::MMO001.xjs";
  287. var arErrorCode = new HashArray();
  288. var lgv_offset = 0;
  289. var lgv_pagesize = 1000;
  290. function SMARH00600_oninit(obj:Form, e:InitEventInfo)
  291. {
  292. frmf_initForm(obj);
  293. }
  294. function SMARH00600_onload(obj:Form, e:LoadEventInfo)
  295. {
  296. grdf_initGrid(grd_list);
  297. fInit();
  298. }
  299. // 초기값 셋팅
  300. function fInit()
  301. {
  302. group1.cmb_dayflag.index = 0;
  303. // 공통코드 목록 가져오기
  304. var arrParam = [{dsNm: "ds_init_hospgrade_A0429", cdGrpId: "A0429"}]
  305. appf_getCodeList(arrParam);
  306. //진료협력에서 관리하는 시/도 지역코드 조회
  307. var oParam = {};
  308. oParam.id = "TXARH00101";
  309. oParam.service = "healcarecoopapp.CoopHospMngt";
  310. oParam.method = "reqGetAreaSDList";
  311. oParam.inds = "req=ds_send_search";
  312. oParam.outds = "ds_init_areacd=hosparea";
  313. oParam.async = false;
  314. tranf_submit(oParam);
  315. //진료협력에서 관리하는 전체 지역코드 조회
  316. var oParam = {};
  317. oParam.id = "TXARH00101";
  318. oParam.service = "healcarecoopapp.CoopHospMngt";
  319. oParam.method = "reqGetAreaList";
  320. oParam.inds = "req=ds_send_search";
  321. oParam.outds = "ds_init_areacddelt=hosparea";
  322. oParam.async = false;
  323. tranf_submit(oParam);
  324. //병의원 정보 저장 시, 사용할 수 있도록 copy
  325. ds_cmb_areadetl.copyData(ds_init_areacddelt);
  326. frmf_addComboItem("group1.cmb_condareacd","- 전 체 -","-","above");
  327. group1.cmb_condareacd.index = 0;
  328. var sProp="col=4,row=2,cellspacing=5,vcellspacing=0,itemWidth=-1,itemHeight=25,overflow='visible'";
  329. group1.chk_hospgrade.setInitComp(sProp, ds_init_hospgrade_A0429,"cdid","cdnm","fn_cmpEvent");
  330. // 오늘 날짜로 세팅(시작일자는 그해 1월1일로 설정)
  331. var CurrentDate = utlf_getCurrentDate();
  332. ds_send.setColumn(0, "f_date", utlf_getYear() + "0101");
  333. ds_send.setColumn(0, "t_date", CurrentDate);
  334. var chkvalue = "C1|C2|C6";
  335. ds_send.setColumn(0, "hospgrade","C1|C2|C6");
  336. group1.chk_hospgrade.setData(chkvalue.split("|"), "",false);
  337. }
  338. function fn_cmpEvent()
  339. {
  340. var Data = group1.chk_hospgrade.getData();
  341. Data = String(Data).replace(",", "|");
  342. ds_send.setColumn(0, "hospgrade", Data);
  343. }
  344. function mjFieldEvent(sVisible, h)
  345. {
  346. group1.caption10.visible = sVisible;
  347. group1.chk_mjfieldall.visible = sVisible;
  348. group1.chk_mjfield15.visible = sVisible;
  349. group1.chk_mjfield17.visible = sVisible;
  350. group1.chk_mjfield04.visible = sVisible;
  351. group1.chk_mjfield13.visible = sVisible;
  352. group1.chk_mjfield16.visible = sVisible;
  353. group1.chk_mjfield07.visible = sVisible;
  354. group1.chk_mjfield08.visible = sVisible;
  355. group1.chk_mjfield09.visible = sVisible;
  356. group1.chk_mjfield11.visible = sVisible;
  357. //group1 높이 수정
  358. group1.position.height = h;
  359. if(sVisible)
  360. {
  361. grd_list.setFormatColProperty(17, "size", 0);
  362. }
  363. else
  364. {
  365. grd_list.setFormatColProperty(17, "size", 80);
  366. }
  367. }
  368. function group1_cmb_dayflag_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  369. {
  370. if(obj.index == 0)
  371. {
  372. mjFieldEvent(true, 80);
  373. }
  374. else
  375. {
  376. mjFieldEvent(false, 60);
  377. }
  378. }
  379. function group1_chk_hosp_onclick(obj:CheckBox, e:ClickEventInfo)
  380. {
  381. var strChkHosp = "C1|C2|C4|C6";
  382. if(obj.value == "H")
  383. {
  384. group1.chk_hospgrade.setData(strChkHosp.split("|"), "",false);
  385. }
  386. else
  387. {
  388. group1.chk_hospgrade.setData("", strChkHosp.split("|"),false);
  389. }
  390. fn_cmpEvent();
  391. }
  392. function group1_chk_clinic_onclick(obj:CheckBox, e:ClickEventInfo)
  393. {
  394. var strChkClinic = "C3|C5|C7|C8";
  395. if(obj.value == "C")
  396. {
  397. group1.chk_hospgrade.setData(strChkClinic.split("|"), "",false);
  398. }
  399. else
  400. {
  401. group1.chk_hospgrade.setData("", strChkClinic.split("|"),false);
  402. }
  403. fn_cmpEvent();
  404. }
  405. function group1_cmb_condareacd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  406. {
  407. var areacd = obj.value;
  408. if(areacd != "-")
  409. {
  410. ds_init_areacddelt.filterstr = "sidocd == '"+areacd+"'";
  411. ds_cmb_areadetl.copyData(ds_init_areacddelt, true);
  412. ds_init_areacddelt.filterstr = "";
  413. group1.cmb_areacddelt.enable = true;
  414. frmf_addComboItem("group1.cmb_areacddelt", "- 전 체 -", "-", "above");
  415. group1.cmb_areacddelt.index = 0;
  416. group1.cmb_areacddelt.value = "-";
  417. }
  418. else
  419. {
  420. ds_cmb_areadetl.clearData();
  421. group1.cmb_areacddelt.enable = false;
  422. }
  423. }
  424. function group1_ipt_coophospnm_onkeyup(obj:Edit, e:KeyEventInfo)
  425. {
  426. if(e.keycode == 13)
  427. {
  428. obj.updateToDataset();
  429. group1.btn_search.click();
  430. }
  431. }
  432. function group1_btn_search_onclick(obj:Button, e:ClickEventInfo)
  433. {
  434. fSearch();
  435. }
  436. function fSearch()
  437. {
  438. ds_main_list_hosp_list.clearData();
  439. ds_send.setColumn(0, "offset", "0"); // grid의 header row는 제외
  440. ds_send.setColumn(0, "pagesize", lgv_pagesize);
  441. dsf_setDefaultVal(ds_send, "sidocd:-,sidocddetl:-");
  442. var oParam = {};
  443. oParam.id = "TRARH00601";
  444. oParam.service = "healcarecoopapp.CoopHospMngt";
  445. oParam.method = "reqGetCoopHospConCltList";
  446. oParam.inds = "req=ds_send";
  447. oParam.outds = "ds_main_list_hosp_list=hosp_list";
  448. oParam.async = false;
  449. //oParam.callback = "cf_TRARH00601";
  450. tranf_submit(oParam);
  451. lgv_offset = 0;
  452. lgv_pagesize = 1000;
  453. }
  454. function grd_list_onvscrolllastover(obj:Grid, e:ScrollEventInfo)
  455. {
  456. lgv_offset += 1000;
  457. fSubmitOnScroll();
  458. }
  459. function fSubmitOnScroll()
  460. {
  461. // end of scroll
  462. ds_send.setColumn(0, "offset", lgv_offset);
  463. ds_send.setColumn(0, "pagesize", lgv_pagesize);
  464. dsf_setDefaultVal(ds_send, "sidocd:-,sidocddetl:-");
  465. var oParam = {};
  466. oParam.id = "TRARH00601";
  467. oParam.service = "healcarecoopapp.CoopHospMngt";
  468. oParam.method = "reqGetCoopHospConCltList";
  469. oParam.inds = "req=ds_send";
  470. oParam.outds = "ds_temp_list_hosp_list=hosp_list";
  471. oParam.async = false;
  472. //oParam.callback = "cf_TRARH00601";
  473. tranf_submit(oParam);
  474. if(ds_temp_list_hosp_list.rowcount > 0)
  475. {
  476. ds_main_list_hosp_list.copyData(ds_temp_list_hosp_list);
  477. }
  478. ds_temp_list_hosp_list.clearData();
  479. }
  480. function cf_TRARH00601(sSvcId, nErrorCode, sErrorMsg)
  481. {
  482. if(nErrorCode < 0) return;
  483. }
  484. function grd_list_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  485. {
  486. fGrdListClick();
  487. }
  488. function fGrdListClick()
  489. {
  490. if (ds_main_list_hosp_list.rowposition < 0) return;
  491. var lrow = ds_main_list_hosp_list.rowposition ;
  492. var coophospnm = ds_main_list_hosp_list.getColumn(lrow, "coophospnm");
  493. var corpno = ds_main_list_hosp_list.getColumn(lrow, "corpno");
  494. frmf_setParameter("SMARH00600_coophospnm", coophospnm);
  495. frmf_setParameter("SMARH00600_corpno", corpno);
  496. var hideOption = frmf_setParameter("hideoption", "ALL");
  497. var wndobj = frmf_findPopup("SMARH00100");
  498. if( utlf_isNull(wndobj))
  499. {
  500. frmf_open("SMARH00100", "SMARH00100", "", "", "", "", "", "", "", "", "", "", "M");
  501. }
  502. else
  503. {
  504. wndobj.grd_cooplist.setFocus();
  505. wndobj.fCUDBtnDisable();
  506. wndobj.fPersonalInfoHide();
  507. wndobj.fAutoListUp();
  508. }
  509. }
  510. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  511. {
  512. fExcel();
  513. }
  514. function fExcel()
  515. {
  516. var title = "";
  517. if (ds_main_list_hosp_list.rowcount < 0) return;
  518. if(group1.cmb_dayflag.value == "1")
  519. {
  520. title = "협력병의원 체결리스트";
  521. }
  522. else
  523. {
  524. title = "폐업병원리스트";
  525. }
  526. grdf_exportExcel(grd_list, title+"("+ds_send.getColumn(0, "f_date")+"~"+ds_send.getColumn(0, "t_date")+")", "Sheet1", "true", "", "");
  527. }
  528. function button10_onclick(obj:Button, e:ClickEventInfo)
  529. {
  530. fAllClear();
  531. }
  532. function fAllClear()
  533. {
  534. ds_send.clearData();
  535. ds_send.addRow();
  536. // 오늘 날짜로 세팅(시작일자는 그해 1월1일로 설정)
  537. var CurrentDate = utlf_getCurrentDate();
  538. ds_send.setColumn(0, "f_date", utlf_getYear() + "0101");
  539. ds_send.setColumn(0, "t_date", CurrentDate);
  540. ds_main_list_hosp_list.clearData();
  541. var chkvalue = "C1|C2|C6";
  542. ds_send.setColumn(0, "hospgrade", chkvalue);
  543. group1.chk_hospgrade.setCheckAll(false);
  544. group1.chk_hospgrade.setData(String(chkvalue).split("|"), "", false);
  545. group1.cmb_dayflag.index = 0;
  546. group1.cmb_condareacd.index = 0;
  547. }
  548. function group1_chk_mjfieldall_onclick(obj:CheckBox, e:ClickEventInfo)
  549. {
  550. if(obj.value == "Y")
  551. {
  552. group1.chk_mjfield04.value = "Y";
  553. group1.chk_mjfield07.value = "Y";
  554. group1.chk_mjfield08.value = "Y";
  555. group1.chk_mjfield09.value = "Y";
  556. group1.chk_mjfield11.value = "Y";
  557. group1.chk_mjfield13.value = "Y";
  558. group1.chk_mjfield15.value = "Y";
  559. group1.chk_mjfield16.value = "Y";
  560. group1.chk_mjfield17.value = "Y";
  561. }
  562. else
  563. {
  564. group1.chk_mjfield04.value = "N";
  565. group1.chk_mjfield07.value = "N";
  566. group1.chk_mjfield08.value = "N";
  567. group1.chk_mjfield09.value = "N";
  568. group1.chk_mjfield11.value = "N";
  569. group1.chk_mjfield13.value = "N";
  570. group1.chk_mjfield15.value = "N";
  571. group1.chk_mjfield16.value = "N";
  572. group1.chk_mjfield17.value = "N";
  573. }
  574. }
  575. ]]></Script>
  576. </Form>
  577. </FDL>