SMARC00200_의뢰환자현황.xfdl 31 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMARC00200" position="absolute 0 0 1199 783" titletext="의뢰환자현황" onload="SMARC00200_onload" oninit="SMARC00200_oninit">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption2" text="의뢰환자현황" class="tit_1" position="absolute 0 0 158 24"/>
  8. <Div id="group1" taborder="1" style="align: top;" class="div_SA" position="absolute 0 24 1195 104">
  9. <Layouts>
  10. <Layout>
  11. <Button id="button5" taborder="31" text="조회" class="btn1" position="absolute 1126 29 1182 51" anchor="top right" onclick="group1_button5_onclick"/>
  12. <Shape id="line8" linetype="vertical" class="line_4" position="absolute 1110 9 1113 73" anchor="top right"/>
  13. <Static id="caption9" text="등록일자 :" class="search_name" position="absolute 12 6 106 23"/>
  14. <Static id="caption11" text="진료과 :" class="search_name" position="absolute 334 32 428 49"/>
  15. <Static id="caption13" text="병원구분 :" class="search_name" position="absolute 557 6 648 23"/>
  16. <Static id="caption5" text="~" class="search_no_b" position="absolute 201 6 213 23"/>
  17. <Static id="caption12" text="회신유형 :" class="search_name" position="absolute 334 57 428 74"/>
  18. <Static id="caption1" text="지역 :" class="search_name" position="absolute 12 57 103 74"/>
  19. <Static id="caption4" text="의뢰의사 :" class="search_name" position="absolute 12 32 106 49"/>
  20. <Static id="caption3" text="의뢰병원명 :" class="search_name" position="absolute 795 6 894 23"/>
  21. <CheckBox id="checkbox1" taborder="32" text="동문" truevalue="E" position="absolute 796 55 851 75" innerdataset="[object Dataset]" datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" onclick="group1_checkbox1_onclick">
  22. <Dataset id="innerdataset">
  23. <ColumnInfo>
  24. <Column id="codecolumn"/>
  25. <Column id="datacolumn"/>
  26. </ColumnInfo>
  27. <Rows>
  28. <Row>
  29. <Col id="codecolumn">E</Col>
  30. <Col id="datacolumn">동문</Col>
  31. </Row>
  32. </Rows>
  33. </Dataset>
  34. </CheckBox>
  35. <Static id="caption17" text="One-Stop :" class="search_name" position="absolute 557 57 684 74"/>
  36. <Calendar id="ipt_fromdd" taborder="33" autoselect="true" class="input_search" position="absolute 94 6 194 25" autoskip="true"/>
  37. <Calendar id="ipt_todd" taborder="34" autoselect="true" class="input_search" position="absolute 219 6 319 25"/>
  38. <Combo id="cmb_hospgrade" taborder="35" innerdataset="ds_init_hospgrade_A0429" codecolumn="cdid" datacolumn="cdnm" class="combo_search" position="absolute 662 5 770 24" columncount="-1" rowcount="-1"/>
  39. <Edit id="ipt_coophospnm" taborder="36" class="input_search" position="absolute 908 5 1072 24"/>
  40. <Edit id="ipt_drnm" taborder="37" class="input_search" position="absolute 94 31 194 50" autoselect="true"/>
  41. <Combo id="cmb_orddeptcd" taborder="38" innerdataset="ds_init_dept_dept" codecolumn="deptcd" datacolumn="depthngnm" class="combo_search" position="absolute 412 30 528 49" columncount="-1" rowcount="-1" onitemchanged="group1_cmb_orddeptcd_onitemchanged"/>
  42. <Combo id="cmb_repltype" taborder="39" innerdataset="ds_init_repltype_A0423" codecolumn="cdid" datacolumn="cdnm" class="combo_search" position="absolute 412 55 528 74" columncount="-1" rowcount="-1"/>
  43. <Combo id="cmb_cptype" taborder="40" innerdataset="ds_init_cptype_A0420" codecolumn="cdid" datacolumn="cdnm" class="combo_search" position="absolute 662 55 770 74" columncount="-1" rowcount="-1"/>
  44. <Combo id="cmb_orddrid" taborder="41" innerdataset="ds_init_doctlist_medispcl" codecolumn="doctid" datacolumn="doctnm" class="combo_search" position="absolute 662 30 770 49" columncount="-1" rowcount="-1"/>
  45. <Static id="caption6" text="진료의사 :" class="search_name" position="absolute 557 31 651 48"/>
  46. <Static id="caption7" text="진료정보공개동의여부 :" class="search_name" position="absolute 795 32 959 49"/>
  47. <Combo id="cmb_replflag" taborder="42" innerdataset="ds_init_replflag_A0636" codecolumn="cdid" datacolumn="cdnm" class="combo_search" position="absolute 952 30 1072 49" columncount="-1" rowcount="-1"/>
  48. <Combo id="cmb_areacd" taborder="43" innerdataset="@ds_init_areacd" codecolumn="sidocd" datacolumn="sidonm" class="combo_search" position="absolute 95 55 193 74" onitemchanged="group1_cmb_condareacd_onitemchanged"/>
  49. <Combo id="cmb_areacddelt" taborder="44" innerdataset="ds_cmb_areadetl" codecolumn="sidocddetl" datacolumn="sidonmdetl" class="combo_search" enable="false" position="absolute 199 55 289 74"/>
  50. </Layout>
  51. </Layouts>
  52. </Div>
  53. <Shape id="line1" class="line_1" position="absolute 0 142 1195 145" style="strokepen:5 solid #33bbbbff;" anchor="left top right"/>
  54. <Grid id="grd_list" taborder="2" binddataset="ds_main_list_reqlist" useinputpanel="false" cellsizingtype="col" position="absolute 0 146 1195 753" style="align: middle;" onaftersort="group3_group2_grd_list_onaftersort" autoenter="select" anchor="all" oncelldblclick="grd_list_oncelldblclick">
  55. <Formats>
  56. <Format id="default">
  57. <Columns>
  58. <Column size="32" band="left"/>
  59. <Column size="60" band="left"/>
  60. <Column size="57" band="left"/>
  61. <Column size="58" band="left"/>
  62. <Column size="40" band="left"/>
  63. <Column size="35" band="left"/>
  64. <Column size="80" band="left"/>
  65. <Column size="90"/>
  66. <Column size="72"/>
  67. <Column size="90"/>
  68. <Column size="81"/>
  69. <Column size="100"/>
  70. <Column size="67"/>
  71. <Column size="289"/>
  72. <Column size="64"/>
  73. <Column size="80"/>
  74. <Column size="120"/>
  75. <Column size="80"/>
  76. <Column size="50"/>
  77. <Column size="150"/>
  78. <Column size="56"/>
  79. <Column size="80"/>
  80. <Column size="80"/>
  81. <Column size="100"/>
  82. <Column size="63"/>
  83. <Column size="50"/>
  84. <Column size="80"/>
  85. <Column size="80"/>
  86. <Column size="80"/>
  87. <Column size="0"/>
  88. <Column size="0"/>
  89. <Column size="0"/>
  90. <Column size="0"/>
  91. <Column size="0"/>
  92. </Columns>
  93. <Rows>
  94. <Row size="25" band="head"/>
  95. <Row size="25"/>
  96. </Rows>
  97. <Band id="head">
  98. <Cell celltype="none"/>
  99. <Cell col="1" celltype="none" text="환자명"/>
  100. <Cell col="2" colspan="2" celltype="none" text="주민번호" taborder="undefined"/>
  101. <Cell col="4" celltype="none" text="성별"/>
  102. <Cell col="5" celltype="none" text="나이"/>
  103. <Cell col="6" celltype="none" text="등록번호"/>
  104. <Cell col="7" text="등록일자"/>
  105. <Cell col="8" text="의뢰등록자"/>
  106. <Cell col="9" text="의뢰일자"/>
  107. <Cell col="10" text="진료일자"/>
  108. <Cell col="11" text="진료과"/>
  109. <Cell col="12" text="진료의사"/>
  110. <Cell col="13" text="상병명"/>
  111. <Cell col="14" colspan="2" text="지역" taborder="undefined"/>
  112. <Cell col="16" text="의뢰병원명"/>
  113. <Cell col="17" text="의뢰의사명"/>
  114. <Cell col="18" text="동문"/>
  115. <Cell col="19" text="주호소"/>
  116. <Cell col="20" text="동의여부"/>
  117. <Cell col="21" text="회신유형"/>
  118. <Cell col="22" text="의뢰경로"/>
  119. <Cell col="23" text="One-Stop"/>
  120. <Cell col="24" text="입원여부"/>
  121. <Cell col="25" text="병실"/>
  122. <Cell col="26" text="보험유형"/>
  123. <Cell col="27" text="병원구분"/>
  124. <Cell col="28" text="초재진구분"/>
  125. <Cell col="29" text="caption1"/>
  126. <Cell col="30" text="caption2"/>
  127. <Cell col="31" text="caption3"/>
  128. <Cell col="32" text="caption4"/>
  129. <Cell col="33" text="caption5"/>
  130. </Band>
  131. <Band id="body">
  132. <Cell celltype="head" expr="currow+1"/>
  133. <Cell col="1" text="bind:hngnm"/>
  134. <Cell col="2" text="bind:rrgstno1"/>
  135. <Cell col="3" text="bind:rrgstno2" mask="#aaaaaa" maskchar="*"/>
  136. <Cell col="4" text="bind:sex"/>
  137. <Cell col="5" text="bind:age"/>
  138. <Cell col="6" text="bind:pid"/>
  139. <Cell col="7" displaytype="date" text="bind:rgstdd" calendardisplaynulltype="nulltext"/>
  140. <Cell col="8" text="bind:reqnm"/>
  141. <Cell col="9" displaytype="date" text="bind:reqdd" mask="yyyy-MM-dd" calendardisplaynulltype="nulltext"/>
  142. <Cell col="10" displaytype="date" text="bind:orddd" calendardisplaynulltype="nulltext"/>
  143. <Cell col="11" style="align:left middle;" text="bind:orddeptnm"/>
  144. <Cell col="12" text="bind:orddrnm"/>
  145. <Cell col="13" style="align:left middle;" text="bind:diagnm"/>
  146. <Cell col="14" displaytype="combo" style="align:center middle;" text="bind:sidocd" combodataset="ds_init_areacd" combocodecol="sidocd" combodatacol="sidonm"/>
  147. <Cell col="15" displaytype="combo" style="align:center middle;" text="bind:sidocddetl" combodataset="ds_init_areacddelt" combocodecol="sidocddetl" combodatacol="sidonmdetl"/>
  148. <Cell col="16" style="align:left middle;" text="bind:coophospnm"/>
  149. <Cell col="17" text="bind:drnm"/>
  150. <Cell col="18" text="bind:clsmatyn"/>
  151. <Cell col="19" text="bind:cc"/>
  152. <Cell col="20" displaytype="combo" style="align:center middle;" text="bind:replflag" combodataset="ds_init_replflag_A0636" combocodecol="cdid" combodatacol="cdnm"/>
  153. <Cell col="21" displaytype="combo" style="align:center middle;" text="bind:repltype" combodataset="ds_init_repltype_A0423" combocodecol="cdid" combodatacol="cdnm"/>
  154. <Cell col="22" displaytype="combo" style="align:center middle;" text="bind:reqpath" combodataset="ds_init_reqtype_A0421" combocodecol="cdid" combodatacol="cdnm"/>
  155. <Cell col="23" text="bind:cptype"/>
  156. <Cell col="24" text="bind:inyn"/>
  157. <Cell col="25" text="bind:roomcd"/>
  158. <Cell col="26" displaytype="combo" style="align:center middle;" text="bind:insukind" combodataset="ds_init_insukind_P0008" combocodecol="cdid" combodatacol="cdnm"/>
  159. <Cell col="27" displaytype="combo" style="align:center middle;" text="bind:hospgrade" combodataset="ds_init_hospgrade1_A0429" combocodecol="cdid" combodatacol="cdnm"/>
  160. <Cell col="28" displaytype="combo" style="align:center middle;" text="bind:fsexamflag" combodataset="ds_init_fsexamflag_P0021" combocodecol="cdid" combodatacol="cdnm"/>
  161. <Cell col="29" text="bind:cretno"/>
  162. <Cell col="30" text="bind:acptseqno"/>
  163. <Cell col="31" text="bind:ordtype"/>
  164. <Cell col="32" text="bind:dschdd"/>
  165. <Cell col="33" text="bind:indschacptstat"/>
  166. </Band>
  167. </Format>
  168. </Formats>
  169. </Grid>
  170. <Button id="btn_excel" taborder="3" text="엑셀" class="btn7" position="absolute 1138 122 1195 141" anchor="top right" onclick="btn_excel_onclick"/>
  171. <Static id="caption8" text="의뢰환자 리스트" class="tit_2" position="absolute 0 125 139 147"/>
  172. <Button id="btn_allclear" taborder="4" text="초기화" class="btn4" position="absolute 1127 755 1195 777" anchor="right bottom" onclick="btn_allclear_onclick"/>
  173. </Layout>
  174. </Layouts>
  175. <Objects>
  176. <Dataset id="ds_send_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  177. <ColumnInfo>
  178. <Column id="fromdd" type="STRING" size="256"/>
  179. <Column id="todd" type="STRING" size="256"/>
  180. <Column id="hospgrade" type="STRING" size="256"/>
  181. <Column id="coophospnm" type="STRING" size="256"/>
  182. <Column id="drnm" type="STRING" size="256"/>
  183. <Column id="orddeptcd" type="STRING" size="256"/>
  184. <Column id="orddrid" type="STRING" size="256"/>
  185. <Column id="sidocd" type="STRING" size="256"/>
  186. <Column id="sidocddetl" type="STRING" size="256"/>
  187. <Column id="repltype" type="STRING" size="256"/>
  188. <Column id="clsmatyn" type="STRING" size="256"/>
  189. <Column id="cptype" type="STRING" size="256"/>
  190. <Column id="replflag" type="STRING" size="256"/>
  191. </ColumnInfo>
  192. <Rows>
  193. <Row>
  194. <Col id="fromdd"/>
  195. <Col id="todd"/>
  196. <Col id="hospgrade"/>
  197. <Col id="coophospnm"/>
  198. <Col id="drnm"/>
  199. <Col id="orddeptcd"/>
  200. <Col id="orddrid"/>
  201. <Col id="sidocddetl"/>
  202. <Col id="repltype"/>
  203. <Col id="clsmatyn"/>
  204. <Col id="cptype"/>
  205. <Col id="replflag"/>
  206. </Row>
  207. </Rows>
  208. </Dataset>
  209. <Dataset id="ds_main_list_reqlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  210. <ColumnInfo>
  211. <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
  212. <Column id="rrgstno1" type="STRING" size="256" sumtext="주민번호1"/>
  213. <Column id="rrgstno2" type="STRING" size="256" sumtext="주민번호2"/>
  214. <Column id="sex" type="STRING" size="256" sumtext="성별"/>
  215. <Column id="age" type="INT" size="256" sumtext="나이"/>
  216. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  217. <Column id="rgstdd" type="STRING" size="256" sumtext="등록일자"/>
  218. <Column id="reqdd" type="STRING" size="256" sumtext="의뢰일자"/>
  219. <Column id="orddd" type="STRING" size="256" sumtext="진료일자"/>
  220. <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과명"/>
  221. <Column id="orddrnm" type="STRING" size="256" sumtext="진료의명"/>
  222. <Column id="diagnm" type="STRING" size="256" sumtext="상병명"/>
  223. <Column id="areacd" type="STRING" size="256" sumtext="지역"/>
  224. <Column id="coophospnm" type="STRING" size="256" sumtext="의뢰병원명"/>
  225. <Column id="drnm" type="STRING" size="256" sumtext="의뢰의사명"/>
  226. <Column id="clsmatyn" type="STRING" size="256" sumtext="동문여부"/>
  227. <Column id="cc" type="STRING" size="256" sumtext="주호소"/>
  228. <Column id="replflag" type="STRING" size="256" sumtext="진료공개동의여부"/>
  229. <Column id="repltype" type="STRING" size="256" sumtext="회신유형"/>
  230. <Column id="reqpath" type="STRING" size="256" sumtext="의뢰경로"/>
  231. <Column id="cptype" type="STRING" size="256" sumtext="onestop"/>
  232. <Column id="inyn" type="STRING" size="256" sumtext="입원여부"/>
  233. <Column id="roomcd" type="STRING" size="256" sumtext="병실"/>
  234. <Column id="insukind" type="STRING" size="256" sumtext="보험유형"/>
  235. <Column id="hospgrade" type="STRING" size="256" sumtext="병원구분"/>
  236. <Column id="fsexamflag" type="STRING" size="256" sumtext="초재진구분"/>
  237. <Column id="cretno" type="INT" size="256" sumtext="생성일자"/>
  238. <Column id="acptseqno" type="INT" size="256" sumtext="등록이력번호"/>
  239. <Column id="ordtype" type="STRING" size="256" sumtext="진료상태"/>
  240. <Column id="dschdd" type="STRING" size="256" sumtext="퇴원일자"/>
  241. <Column id="indschacptstat" type="STRING" size="256" sumtext="입퇴원접수상태"/>
  242. <Column id="reqnm" type="STRING" size="256" sumtext="의뢰자"/>
  243. </ColumnInfo>
  244. </Dataset>
  245. <Dataset id="ds_init_areacd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  246. <ColumnInfo>
  247. <Column id="sidocd" type="STRING" size="256"/>
  248. <Column id="sidonm" type="STRING" size="256"/>
  249. </ColumnInfo>
  250. </Dataset>
  251. <Dataset id="ds_init_areacddelt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  252. <Dataset id="ds_init_dept_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  253. <Dataset id="ds_init_repltype_A0423" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  254. <Dataset id="ds_init_hospgrade_A0429" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  255. <Dataset id="ds_init_doctlist_medispcl" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  256. <Dataset id="ds_init_cptype_A0420" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  257. <Dataset id="ds_init_replflag_A0636" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  258. <Dataset id="ds_init_reqtype_A0421" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  259. <Dataset id="ds_init_fsexamflag_P0021" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  260. <Dataset id="ds_init_hospgrade1_A0429" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  261. <Dataset id="ds_init_insukind_P0008" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  262. <Dataset id="ds_send_doctor" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  263. <ColumnInfo>
  264. <Column id="orddd" type="STRING" size="256"/>
  265. <Column id="orddeptcd" type="STRING" size="256"/>
  266. </ColumnInfo>
  267. </Dataset>
  268. <Dataset id="ds_cmb_areadetl" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  269. </Objects>
  270. <Bind>
  271. <BindItem id="item0" compid="group1.ipt_fromdd" propid="value" datasetid="ds_send_search" columnid="fromdd"/>
  272. <BindItem id="item1" compid="group1.ipt_todd" propid="value" datasetid="ds_send_search" columnid="todd"/>
  273. <BindItem id="item2" compid="group1.ipt_drnm" propid="value" datasetid="ds_send_search" columnid="drnm"/>
  274. <BindItem id="item3" compid="group1.cmb_areacd" propid="value" datasetid="ds_send_search" columnid="sidocd"/>
  275. <BindItem id="item4" compid="group1.cmb_areacddelt" propid="value" datasetid="ds_send_search" columnid="sidocddetl"/>
  276. <BindItem id="item5" compid="group1.cmb_orddeptcd" propid="value" datasetid="ds_send_search" columnid="orddeptcd"/>
  277. <BindItem id="item6" compid="group1.cmb_repltype" propid="value" datasetid="ds_send_search" columnid="repltype"/>
  278. <BindItem id="item7" compid="group1.cmb_cptype" propid="value" datasetid="ds_send_search" columnid="cptype"/>
  279. <BindItem id="item8" compid="group1.cmb_orddrid" propid="value" datasetid="ds_send_search" columnid="orddrid"/>
  280. <BindItem id="item9" compid="group1.cmb_hospgrade" propid="value" datasetid="ds_send_search" columnid="hospgrade"/>
  281. <BindItem id="item10" compid="group1.checkbox1" propid="value" datasetid="ds_send_search" columnid="clsmatyn"/>
  282. <BindItem id="item11" compid="group1.cmb_replflag" propid="value" datasetid="ds_send_search" columnid="replflag"/>
  283. <BindItem id="item12" compid="group1.ipt_coophospnm" propid="value" datasetid="ds_send_search" columnid="coophospnm"/>
  284. </Bind>
  285. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  286. * System Name :
  287. * Job Name : KUN2.0 Project
  288. * Creator : 김도형
  289. * Make Date : 2015-11-13
  290. * Description : 외래 등록 컨버젼 작업시
  291. *---------------------------------------------------------------------------------------
  292. * Modify Date Modifier Modify Description
  293. *---------------------------------------------------------------------------------------
  294. * 2015-11-13 Live Converter TF->XP
  295. * 2016-07-20 DoHyoung.Kim_idatabank.com
  296. *---------------------------------------------------------------------------------------
  297. ****************************************************************************************/
  298. include "com_commonxp::comm_main.xjs";
  299. function SMARC00200_oninit(obj:Form, e:InitEventInfo)
  300. {
  301. frmf_initForm(obj);
  302. }
  303. function SMARC00200_onload(obj:Form, e:LoadEventInfo)
  304. {
  305. grdf_initGrid(grd_list);
  306. fInit();
  307. }
  308. function fInit()
  309. {
  310. // 오늘 날짜로 세팅
  311. var CurrentDate = utlf_getCurrentDate();
  312. ds_send_search.setColumn(0, "fromdd", CurrentDate);
  313. ds_send_search.setColumn(0, "todd", CurrentDate);
  314. // 진료과
  315. var instcd = sysf_getUserInfo("dutplceinstcd");
  316. var standard_yn = "rcptuseyn";
  317. var ord_deptflag = 'D';
  318. var sort_method = "depthngnm";
  319. sort_field = "depthngnm"
  320. var rslt_ref1 = "ds_init_dept_dept";
  321. appf_getDeptCodeList(instcd, standard_yn, ord_deptflag, sort_field, "", "", "", "", rslt_ref1, false, "");
  322. var arrParam = [{dsNm: "ds_init_hospgrade_A0429", cdGrpId: "A0429" }
  323. ,{dsNm: "ds_init_hospgrade1_A0429", cdGrpId: "A0429" }
  324. ,{dsNm: "ds_init_repltype_A0423", cdGrpId: "A0423" }
  325. ,{dsNm: "ds_init_cptype_A0420", cdGrpId: "A0420" }
  326. ,{dsNm: "ds_init_insukind_P0008", cdGrpId: "P0008" }
  327. ,{dsNm: "ds_init_reqtype_A0421", cdGrpId: "A0421" }
  328. ,{dsNm: "ds_init_fsexamflag_P0021", cdGrpId: "P0021" }
  329. ,{dsNm: "ds_init_replflag_A0636", cdGrpId: "A0636" }];
  330. appf_getCodeList(arrParam, true);
  331. //진료협력에서 관리하는 전체 지역코드 조회
  332. var oParam = {};
  333. oParam.id = "TXARH00101";
  334. oParam.service = "healcarecoopapp.CoopHospMngt";
  335. oParam.method = "reqGetAreaList";
  336. oParam.inds = "req=ds_send";
  337. oParam.outds = "ds_init_areacddelt=hosparea";
  338. oParam.async = false;
  339. tranf_submit(oParam);
  340. //병의원 정보 저장 시, 사용할 수 있도록 copy
  341. ds_cmb_areadetl.copyData(ds_init_areacddelt);
  342. //진료협력에서 관리하는 시/도 지역코드 조회
  343. var oParam = {};
  344. oParam.id = "TXARH00101";
  345. oParam.service = "healcarecoopapp.CoopHospMngt";
  346. oParam.method = "reqGetAreaSDList";
  347. oParam.inds = "req=ds_send";
  348. oParam.outds = "ds_init_areacd=hosparea";
  349. oParam.async = false;
  350. tranf_submit(oParam);
  351. frmf_addComboItem("group1.cmb_orddeptcd", "- 전 체 -", "", "above");
  352. fDoctSerach();
  353. frmf_addComboItem("group1.cmb_hospgrade", "협력병의원", "CA", "above");
  354. frmf_addComboItem("group1.cmb_hospgrade", "- 전 체 -", "", "above");
  355. frmf_addComboItem("group1.cmb_repltype", "- 전 체 -", "-", "above");
  356. frmf_addComboItem("group1.cmb_cptype", "- 전 체 -", "-", "above");
  357. frmf_addComboItem("group1.cmb_areacd", "- 전 체 -", "-", "above");
  358. frmf_addComboItem("group1.cmb_replflag", "- 전 체 -", "-", "above");
  359. group1.cmb_hospgrade.index = 0;
  360. group1.cmb_orddeptcd.index = 0;
  361. group1.cmb_repltype.index = 0;
  362. group1.cmb_cptype.index = 0;
  363. group1.cmb_areacd.index = 0;
  364. group1.cmb_replflag.index = 0;
  365. ds_main_list_reqlist.clearData();
  366. }
  367. // 진료의사 조회
  368. function fDoctSerach()
  369. {
  370. // 진료의사
  371. ds_init_doctlist_medispcl.clearData();
  372. ds_send_doctor.clearData();
  373. ds_send_doctor.addRow();
  374. dsf_setDefaultVal(ds_send_doctor, "alllyn:Y");
  375. var oParam = {};
  376. oParam.id = "TRARC01302";
  377. oParam.service = "healcarecoopapp.ReqAgnMngt";
  378. oParam.method = "reqGetDoctList";
  379. oParam.inds = "req=ds_send_doctor";
  380. oParam.outds = "ds_init_doctlist_medispcl=medispcl";
  381. oParam.async = false;
  382. //oParam.callback = "cf_TRARC01302";
  383. tranf_submit(oParam);
  384. group1.cmb_orddrid.index = 0;
  385. }
  386. function group1_cmb_condareacd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  387. {
  388. var areacd = obj.value;
  389. if(areacd != "-")
  390. {
  391. ds_init_areacddelt.filterstr = "sidocd == '"+areacd+"'";
  392. ds_cmb_areadetl.copyData(ds_init_areacddelt, true);
  393. ds_init_areacddelt.filterstr = "";
  394. group1.cmb_areacddelt.enable = true;
  395. frmf_addComboItem("group1.cmb_areacddelt", "- 전 체 -", "-", "above");
  396. group1.cmb_areacddelt.index = 0;
  397. group1.cmb_areacddelt.value = "-";
  398. }
  399. else
  400. {
  401. ds_cmb_areadetl.clearData();
  402. group1.cmb_areacddelt.enable = false;
  403. }
  404. }
  405. function group1_cmb_orddeptcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  406. {
  407. fDoctSerach();
  408. }
  409. function group1_checkbox1_onclick(obj:CheckBox, e:ClickEventInfo)
  410. {
  411. if(obj.value == "E"){}
  412. else
  413. {
  414. ds_send_search.setColumn(0, "clsmatyn", "");
  415. }
  416. }
  417. function group1_button5_onclick(obj:Button, e:ClickEventInfo)
  418. {
  419. if ( !fCheckDate() ) return; //필수 저장여부 체크
  420. fSearch();
  421. }
  422. function fCheckDate()
  423. {
  424. var fromdd = ds_send_search.getColumn(0, "fromdd");
  425. var todd = ds_send_search.getColumn(0, "todd");
  426. if( ! utlf_isValidDateTime( fromdd, 'YYYYMMDD') || ! utlf_isValidDateTime( todd, 'YYYYMMDD') )
  427. {
  428. sysf_messageBox("입력하신 일자구분이 정확한 날짜타입이 아닙니다.", "E999", "");
  429. return false;
  430. }
  431. if( utlf_getDateInterval(fromdd, todd) < 0 )
  432. {
  433. sysf_messageBox("일자구분에서 시작일자가 종료일자보다 미래일자 입니다. 확인하세요!", "E999", "");
  434. return false;
  435. }
  436. if (!utlf_isNull(ds_send_search.getColumn(0, "coophospnm")) || String(ds_send_search.getColumn(0, "coophospnm")).length < 0)
  437. {
  438. sysf_messageBox("의뢰병원명은 2글자 이상으로 해주십시요!","E999","");
  439. group1.ipt_coophospnm.setFocus();
  440. return false;
  441. }
  442. if (!utlf_isNull(ds_send_search.getColumn(0, "drnm")) || String(ds_send_search.getColumn(0, "drnm")).length < 0)
  443. {
  444. sysf_messageBox("의뢰의사명은 2글자 이상으로 해주십시요!","E999","");
  445. group1.ipt_drnm.setFocus();
  446. return false;
  447. }
  448. return true;
  449. }
  450. function fSearch()
  451. {
  452. var oParam = {};
  453. oParam.id = "TRARC00201";
  454. oParam.service = "healcarecoopapp.ReqMngt";
  455. oParam.method = "reqGetReqPatList";
  456. oParam.inds = "req=ds_send_search";
  457. oParam.outds = "ds_main_list_reqlist=reqlist";
  458. oParam.async = false;
  459. oParam.callback = "cf_TRARC00201";
  460. tranf_submit(oParam);
  461. }
  462. function cf_TRARC00201(sSvcId, nErrorCode, sErrorMsg)
  463. {
  464. if(nErrorCode < 0)
  465. {
  466. sysf_messageBox("조회를", "E009");
  467. return;
  468. }
  469. }
  470. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  471. {
  472. fExcel();
  473. }
  474. function fExcel()
  475. {
  476. if (ds_main_list_reqlist.rowcount == 0) return;
  477. grdf_exportExcel(grd_list, "의뢰환자 리스트", "Sheet1", "true", "", "");
  478. }
  479. function btn_allclear_onclick(obj:Button, e:ClickEventInfo)
  480. {
  481. fAllClear();
  482. }
  483. function fAllClear()
  484. {
  485. ds_send_search.clearData();
  486. ds_send_search.addRow();
  487. // 오늘 날짜로 세팅
  488. var CurrentDate = utlf_getCurrentDate();
  489. ds_send_search.setColumn(0, "fromdd", CurrentDate);
  490. ds_send_search.setColumn(0, "todd", CurrentDate);
  491. group1.cmb_hospgrade.index = 0;
  492. group1.cmb_orddeptcd.index = 0;
  493. group1.cmb_repltype.index = 0;
  494. group1.cmb_cptype.index = 0;
  495. group1.cmb_areacd.index = 0;
  496. frmf_inputEnterKey("group1.cmb_areacd", "onitemchanged", new ItemChangeEventInfo);
  497. //group1.cmb_areacddelt.index = 0;
  498. group1.cmb_replflag.index = 0;
  499. ds_main_list_reqlist.clearData();
  500. }
  501. function grd_list_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  502. {
  503. fOpen();
  504. }
  505. function fOpen()
  506. {
  507. if (ds_main_list_reqlist.rowcount == 0) return;
  508. if (ds_main_list_reqlist.rowposition < 0) return;
  509. var idxRow = ds_main_list_reqlist.rowposition; //그리드에서 해당 환자 선택
  510. var pid = ds_main_list_reqlist.getColumn(idxRow, "pid");
  511. var orddd = ds_main_list_reqlist.getColumn(idxRow, "orddd");
  512. var cretno = ds_main_list_reqlist.getColumn(idxRow, "cretno");
  513. var acptseqno = ds_main_list_reqlist.getColumn(idxRow, "acptseqno");
  514. var ordtype = ds_main_list_reqlist.getColumn(idxRow, "ordtype");
  515. var dschdd = ds_main_list_reqlist.getColumn(idxRow, "dschdd");
  516. var indschacptstat = ds_main_list_reqlist.getColumn(idxRow, "indschacptstat");
  517. var instcd = sysf_getUserInfo("dutplceinstcd");
  518. var curdate = utlf_getCurrentDate();
  519. frmf_clearParameter("pid");
  520. if (ordtype == "E")
  521. {
  522. curdate = orddd;
  523. }
  524. else if (ordtype == "I")
  525. {
  526. if (indschacptstat == "D")
  527. {
  528. curdate = dschdd;
  529. }
  530. else if (indschacptstat == "T")
  531. {
  532. if (dschdd != "99991231")
  533. {
  534. curdate = dschdd;
  535. }
  536. }
  537. }
  538. else if (ordtype == "O")
  539. {
  540. curdate = orddd;
  541. }
  542. if (ordtype != "O" && ordtype != "I" && ordtype !="E")
  543. {
  544. if(sysf_getGlobalVariable("paminfo").length > 0)
  545. {
  546. appf_delPatientInfos();
  547. }
  548. var pid = setParameter("pid", pid);
  549. }
  550. else
  551. {
  552. var condparam = ordtype + '▦' + pid + '▦' + orddd + '▦' + cretno + '▦' + instcd + '▦' + curdate;
  553. frmf_setParameter("condparam", condparam);
  554. appf_initPatientInfo(condparam);
  555. }
  556. curEmrRecObj = frmf_findPopup("SPARC00100"); //활성화된 진료기록 화면 object loading
  557. if (curEmrRecObj != null)
  558. {
  559. curEmrRecObj.fInit();
  560. }
  561. else
  562. {
  563. frmf_open("SPARC00100", "SPARC00100", "", "","","","","","","","","","M");
  564. }
  565. }
  566. ]]></Script>
  567. </Form>
  568. </FDL>