SPPMC03903_사전승인관리.xfdl 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPPMC03903" position="absolute 0 0 1196 761" titletext="중증 치매 자격 승인 관리" onload="SPPMC03903_onload" oninit="SPPMC03903_oninit">
  5. <Layouts>
  6. <Layout>
  7. <Static id="cap_title" class="tit_1" position="absolute 0 0 140 25" style="" text="사전 승인 관리" anchor="left top"/>
  8. <Shape id="line16" class="line_1" linetype="horizontal" position="absolute 0 90 1195 94" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  9. <Button id="btn_save" class="btn2" position="absolute 1153 67 1195 89" style="" text="저장" onclick="btn_save_onclick" anchor="top right"/>
  10. <Static id="caption1" class="tit_2" position="absolute 0 73 80 90" style="" text="승인 내역" anchor="left top"/>
  11. <Grid id="grd_aprv" binddataset="ds_main_aprvlist_aprvinfo" position="absolute 0 94 1195 760" style="align:center ;" onaftersort="grd_aprv_onaftersort" onrbuttondown="grd_aprv_onrbuttondown" anchor="all" cellsizingtype="col">
  12. <Formats>
  13. <Format id="default">
  14. <Columns>
  15. <Column size="25" band="left"/>
  16. <Column size="55"/>
  17. <Column size="60"/>
  18. <Column size="100"/>
  19. <Column size="70"/>
  20. <Column size="0"/>
  21. <Column size="120"/>
  22. <Column size="60"/>
  23. <Column size="120"/>
  24. <Column size="60"/>
  25. <Column size="55"/>
  26. <Column size="70"/>
  27. <Column size="60"/>
  28. <Column size="80"/>
  29. <Column size="90"/>
  30. <Column size="280"/>
  31. <Column size="60"/>
  32. <Column size="80"/>
  33. <Column size="80"/>
  34. <Column size="60"/>
  35. <Column size="60"/>
  36. <Column size="120"/>
  37. <Column size="60"/>
  38. <Column size="140"/>
  39. </Columns>
  40. <Rows>
  41. <Row size="36" band="head"/>
  42. <Row size="24"/>
  43. </Rows>
  44. <Band id="head">
  45. <Cell/>
  46. <Cell col="1" text="등록번호"/>
  47. <Cell col="2" text="이름"/>
  48. <Cell col="3" text="주민등록번호"/>
  49. <Cell col="4" text="진료일"/>
  50. <Cell col="5" text="생성번호"/>
  51. <Cell col="6" text="진료과"/>
  52. <Cell col="7" text="진료의"/>
  53. <Cell col="8" text="보조유형"/>
  54. <Cell col="9" text="진료형태"/>
  55. <Cell col="10" text="특정코드"/>
  56. <Cell col="11" text="실시일"/>
  57. <Cell col="12" text="재원일수"/>
  58. <Cell col="13" text="신청일"/>
  59. <Cell col="14" text="주상병코드"/>
  60. <Cell col="15" text="주상병명"/>
  61. <Cell col="16" text="사전승인&#10;구분"/>
  62. <Cell col="17" text="사전승인&#10;시작일"/>
  63. <Cell col="18" text="사전승인&#10;종료일"/>
  64. <Cell col="19" text="사전승인&#10;일수"/>
  65. <Cell col="20" text="사전승인&#10;심사"/>
  66. <Cell col="21" text="사전승인번호"/>
  67. <Cell col="22" text="처방전&#10;발급여부"/>
  68. <Cell col="23" text="처방전 발급번호"/>
  69. </Band>
  70. <Band id="body">
  71. <Cell celltype="head"/>
  72. <Cell col="1" text="bind:pid"/>
  73. <Cell col="2" text="bind:hngnm"/>
  74. <Cell col="3" text="bind:rrgstno"/>
  75. <Cell col="4" displaytype="date" text="bind:orddd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  76. <Cell col="5" text="bind:cretno"/>
  77. <Cell col="6" text="bind:orddeptnm"/>
  78. <Cell col="7" text="bind:orddrnm"/>
  79. <Cell col="8" text="bind:suppkindnm"/>
  80. <Cell col="9" displaytype="combo" style="align:center middle;" text="bind:ordtype" combodataset="ds_cmb_ordtype" combocodecol="value" combodatacol="label"/>
  81. <Cell col="10" text="bind:spclcd"/>
  82. <Cell col="11" displaytype="date" text="bind:execdd" calendardisplaynulltype="none"/>
  83. <Cell col="12" text="bind:indays"/>
  84. <Cell col="13" displaytype="date" style="color:#0000ffff;color2:#0000ffff;font:BIND(fontFace);" text="bind:rqstdd" calendardisplaynulltype="none"/>
  85. <Cell col="14" style="color:#0000ffff;color2:#0000ffff;font:BIND(fontFace);" text="bind:diagcd"/>
  86. <Cell col="15" style="align:left middle;color:#0000ffff;color2:#0000ffff;font:BIND(fontFace);" text="bind:diagnm"/>
  87. <Cell col="16" displaytype="combo" style="align:center middle;color:#0000ffff;color2:#0000ffff;font:BIND(fontFace);" text="bind:aprvflag" combodataset="ds_cmb_aprvflag" combocodecol="value" combodatacol="label"/>
  88. <Cell col="17" displaytype="date" style="color:#0000ffff;color2:#0000ffff;font:BIND(fontFace);" text="bind:aprvfromdd" calendardisplaynulltype="none"/>
  89. <Cell col="18" displaytype="date" style="color:#0000ffff;color2:#0000ffff;font:BIND(fontFace);" text="bind:aprvtodd" calendardisplaynulltype="none"/>
  90. <Cell col="19" style="color:#0000ffff;color2:#0000ffff;font:BIND(fontFace);" text="bind:aprvdays"/>
  91. <Cell col="20" displaytype="combo" style="align:center middle;color:#0000ffff;color2:#0000ffff;font:BIND(fontFace);" text="bind:aprvjudg" combodataset="ds_cmb_aprvjudg" combocodecol="value" combodatacol="label"/>
  92. <Cell col="21" displaytype="text" style="align:center middle;color:#0000ffff;color2:#0000ffff;font:BIND(fontFace);" text="bind:aprvno"/>
  93. <Cell col="22" style="color:#0000ffff;color2:#0000ffff;font:BIND(fontFace);" text="bind:drugyn"/>
  94. <Cell col="23" style="color:#0000ffff;color2:#0000ffff;font:BIND(fontFace);" text="bind:drugno"/>
  95. </Band>
  96. </Format>
  97. </Formats>
  98. </Grid>
  99. <Button id="btn_excl" class="btn7" position="absolute 1028 67 1151 89" style="" text="엑셀파일불러오기" onclick="btn_excl_onclick" anchor="top right"/>
  100. <Div id="grp_sea" taborder="4" position="absolute 0 25 1195 65" class="div_SA" anchor="left top right">
  101. <Layouts>
  102. <Layout width="1195" height="35">
  103. <Static id="caption17" text="진료일 :" class="search_name" position="absolute 5 12 65 29" anchor="left top"/>
  104. <Static id="caption2" text="~" position="absolute 169 13 179 30" style="align:center ;" anchor="left top"/>
  105. <Button id="btn_search" taborder="1" text="조회" onclick="btn_search_onclick" class="btn1" position="absolute 1132 10 1188 32" anchor="top right"/>
  106. <Shape id="line1" linetype="vertical" class="line_4" position="absolute 1120 10 1123 32" anchor="top right"/>
  107. <Calendar id="ipt_fromdd" taborder="2" position="absolute 76 11 165 30" anchor="left top" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" value="null"/>
  108. <Calendar id="ipt_todd" taborder="3" position="absolute 183 11 272 30" anchor="left top" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd"/>
  109. <Static id="caption3" text="특정 코드 :" class="search_name" position="absolute 293 13 373 30" anchor="left top"/>
  110. <CheckBox id="chk_all" taborder="4" text="전체" truevalue="Y" position="absolute 379 11 428 31" innerdataset="[object Dataset]" datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" anchor="left top" falsevalue="N" value="N" onclick="grp_sea_chk_all_onclick">
  111. <Dataset id="innerdataset">
  112. <ColumnInfo>
  113. <Column id="codecolumn"/>
  114. <Column id="datacolumn"/>
  115. </ColumnInfo>
  116. <Rows>
  117. <Row>
  118. <Col id="codecolumn">Y</Col>
  119. <Col id="datacolumn">전체</Col>
  120. </Row>
  121. </Rows>
  122. </Dataset>
  123. </CheckBox>
  124. <cp_checkboxList id="chk_spclcd" titletext="CheckBox List" taborder="5" text="chk_spclcd" scrollbars="none" position="absolute 435 11 635 31" col="1" row="1" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="20" overflow="visible" anchor="left top"/>
  125. <Static id="caption4" text="승인 여부 :" class="search_name" position="absolute 650 12 730 29" anchor="left top"/>
  126. <Radio id="chk_aprvflag" taborder="6" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 741 11 896 31" anchor="left top" style="textpadding:0 3 0 3;" index="-1" columncount="-1" rowcount="-1">
  127. <Dataset id="innerdataset">
  128. <ColumnInfo>
  129. <Column id="codecolumn"/>
  130. <Column id="datacolumn"/>
  131. </ColumnInfo>
  132. <Rows>
  133. <Row>
  134. <Col id="codecolumn">N</Col>
  135. <Col id="datacolumn">미승인</Col>
  136. </Row>
  137. <Row>
  138. <Col id="codecolumn">Y</Col>
  139. <Col id="datacolumn">승인</Col>
  140. </Row>
  141. <Row>
  142. <Col id="codecolumn">A</Col>
  143. <Col id="datacolumn">전체</Col>
  144. </Row>
  145. </Rows>
  146. </Dataset>
  147. </Radio>
  148. <Static id="cap_pid" text="등록번호 :" class="search_name" position="absolute 913 12 988 29" anchor="left top"/>
  149. <Edit id="ipt_pid" taborder="7" position="absolute 996 11 1066 30" anchor="left top" onkeydown="grp_sea_ipt_pid_onkeydown" autoselect="true"/>
  150. <Button id="btn_pid" taborder="8" class="icon_search" position="absolute 1071 13 1085 29" anchor="left top" onclick="grp_sea_btn_pid_onclick"/>
  151. </Layout>
  152. </Layouts>
  153. </Div>
  154. <Grid id="grd_excl" taborder="5" binddataset="ds_temp_excllist_exclinfo" useinputpanel="false" onrbuttondown="grd_aprv_onrbuttondown" position="absolute 175 198 1176 730" anchor="all" style="align:center ;" onaftersort="grd_aprv_onaftersort" visible="false">
  155. <Formats>
  156. <Format id="default">
  157. <Columns>
  158. <Column size="100"/>
  159. <Column size="100"/>
  160. <Column size="100"/>
  161. <Column size="100"/>
  162. <Column size="100"/>
  163. <Column size="100"/>
  164. <Column size="100"/>
  165. <Column size="100"/>
  166. <Column size="100"/>
  167. <Column size="100"/>
  168. <Column size="100"/>
  169. <Column size="100"/>
  170. <Column size="100"/>
  171. <Column size="100"/>
  172. <Column size="100"/>
  173. <Column size="100"/>
  174. <Column size="100"/>
  175. <Column size="100"/>
  176. <Column size="100"/>
  177. <Column size="100"/>
  178. </Columns>
  179. <Rows>
  180. <Row size="24"/>
  181. </Rows>
  182. <Band id="body">
  183. <Cell displaytype="normal" text="bind:no"/>
  184. <Cell col="1" displaytype="normal" text="bind:hngnm"/>
  185. <Cell col="2" displaytype="normal" text="bind:rrgstno"/>
  186. <Cell col="3" displaytype="normal" text="bind:rgstno" calendardisplaynulltype="none"/>
  187. <Cell col="4" displaytype="normal" text="bind:rqstdd"/>
  188. <Cell col="5" displaytype="normal" text="bind:aprvflag"/>
  189. <Cell col="6" displaytype="normal" text="bind:ordtype"/>
  190. <Cell col="7" displaytype="normal" style="align:center middle;" text="bind:aprvfromdd"/>
  191. <Cell col="8" displaytype="normal" text="bind:aprvtodd"/>
  192. <Cell col="9" displaytype="normal" text="bind:aprvdays" calendardisplaynulltype="none"/>
  193. <Cell col="10" displaytype="normal" text="bind:diagcd"/>
  194. <Cell col="11" displaytype="normal" text="bind:diagnm" calendardisplaynulltype="none"/>
  195. <Cell col="12" displaytype="normal" text="bind:drlcno"/>
  196. <Cell col="13" displaytype="normal" style="align:left middle;" text="bind:drnm"/>
  197. <Cell col="14" displaytype="normal" text="bind:drflag"/>
  198. <Cell col="15" displaytype="normal" text="bind:drugyn" calendardisplaynulltype="none"/>
  199. <Cell col="16" displaytype="normal" text="bind:drugno" calendardisplaynulltype="none"/>
  200. <Cell col="17" displaytype="normal" text="bind:aprvjudg"/>
  201. <Cell col="18" displaytype="normal" text="bind:aprvno"/>
  202. <Cell col="19" displaytype="normal" text="bind:instcd"/>
  203. </Band>
  204. </Format>
  205. </Formats>
  206. </Grid>
  207. <Button id="btn_excl_down" taborder="6" text="EXCEL" class="btn7" position="absolute 959 67 1026 89" anchor="top right" onclick="btn_excl_down_onclick"/>
  208. <PopupMenu id="pmn_menu1" position="absolute 1227 114 1323 139" innerdataset="@ds_hidden_popupmenu_item" idcolumn="func" captioncolumn="label" levelcolumn="label" onmenuclick="pmn_menu1_onmenuclick" onmouseleave="pmn_menu1_onmouseleave"/>
  209. </Layout>
  210. </Layouts>
  211. <Objects>
  212. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  213. <ColumnInfo>
  214. <Column id="fromdd" type="STRING" size="256"/>
  215. <Column id="todd" type="STRING" size="256"/>
  216. <Column id="spclcd" type="STRING" size="256"/>
  217. <Column id="aprvflag" type="STRING" size="256"/>
  218. <Column id="aprvupdt" type="STRING" size="256"/>
  219. <Column id="pid" type="STRING" size="256"/>
  220. <Column id="spclcdflag" type="STRING" size="256"/>
  221. </ColumnInfo>
  222. <Rows>
  223. <Row>
  224. <Col id="fromdd"/>
  225. <Col id="todd"/>
  226. <Col id="spclcd"/>
  227. <Col id="aprvflag">N</Col>
  228. <Col id="aprvupdt"/>
  229. <Col id="pid"/>
  230. </Row>
  231. </Rows>
  232. </Dataset>
  233. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  234. <ColumnInfo>
  235. <Column id="allflag" type="STRING" size="256"/>
  236. <Column id="spclcdflag" type="STRING" size="256"/>
  237. </ColumnInfo>
  238. <Rows>
  239. <Row>
  240. <Col id="allflag">Y</Col>
  241. <Col id="spclcdflag"/>
  242. </Row>
  243. </Rows>
  244. </Dataset>
  245. <Dataset id="ds_main_aprvlist_aprvinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  246. <ColumnInfo>
  247. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  248. <Column id="hngnm" type="STRING" size="256" sumtext="이름"/>
  249. <Column id="rrgstno" type="STRING" size="256" sumtext="주민등록번호"/>
  250. <Column id="orddd" type="STRING" size="256" sumtext="진료일"/>
  251. <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
  252. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과"/>
  253. <Column id="orddeptnm" type="STRING" size="256" sumtext="진료과명"/>
  254. <Column id="orddrid" type="STRING" size="256" sumtext="진료의"/>
  255. <Column id="orddrnm" type="STRING" size="256" sumtext="진료의명"/>
  256. <Column id="suppkind" type="STRING" size="256" sumtext="보조유형"/>
  257. <Column id="suppkindnm" type="STRING" size="256" sumtext="보조유형명"/>
  258. <Column id="ordtype" type="STRING" size="256" sumtext="진료형태"/>
  259. <Column id="spclcd" type="STRING" size="256" sumtext="특정코드"/>
  260. <Column id="execdd" type="STRING" size="256" sumtext="실시일"/>
  261. <Column id="indays" type="STRING" size="256" sumtext="재원일수"/>
  262. <Column id="diagcd" type="STRING" size="256" sumtext="주상병코드"/>
  263. <Column id="diagnm" type="STRING" size="256" sumtext="주상병명"/>
  264. <Column id="rqstdd" type="STRING" size="256" sumtext="신청일"/>
  265. <Column id="aprvflag" type="STRING" size="256" sumtext="사전승인구분"/>
  266. <Column id="aprvfromdd" type="STRING" size="256" sumtext="사전승인시작일"/>
  267. <Column id="aprvtodd" type="STRING" size="256" sumtext="사전승인종료일"/>
  268. <Column id="aprvdays" type="STRING" size="256" sumtext="사전승인일수"/>
  269. <Column id="aprvjudg" type="STRING" size="256" sumtext="사전승인심사여부"/>
  270. <Column id="aprvno" type="STRING" size="256" sumtext="사전승인번호"/>
  271. <Column id="drugyn" type="STRING" size="256" sumtext="처방전발급여부"/>
  272. <Column id="drugno" type="STRING" size="256" sumtext="처방전발급번호"/>
  273. </ColumnInfo>
  274. </Dataset>
  275. <Dataset id="ds_temp_excllist_exclinfo" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  276. <ColumnInfo>
  277. <Column id="no" type="STRING" size="256"/>
  278. <Column id="hngnm" type="STRING" size="256"/>
  279. <Column id="rrgstno" type="STRING" size="256"/>
  280. <Column id="rgstno" type="STRING" size="256"/>
  281. <Column id="rqstdd" type="STRING" size="256"/>
  282. <Column id="aprvflag" type="STRING" size="256"/>
  283. <Column id="ordtype" type="STRING" size="256"/>
  284. <Column id="aprvfromdd" type="STRING" size="256"/>
  285. <Column id="aprvtodd" type="STRING" size="256"/>
  286. <Column id="aprvdays" type="STRING" size="256"/>
  287. <Column id="diagcd" type="STRING" size="256"/>
  288. <Column id="diagnm" type="STRING" size="256"/>
  289. <Column id="drlcno" type="STRING" size="256"/>
  290. <Column id="drnm" type="STRING" size="256"/>
  291. <Column id="drflag" type="STRING" size="256"/>
  292. <Column id="drugyn" type="STRING" size="256"/>
  293. <Column id="drugno" type="STRING" size="256"/>
  294. <Column id="aprvjudg" type="STRING" size="256"/>
  295. <Column id="aprvno" type="STRING" size="256"/>
  296. <Column id="instcd" type="STRING" size="256"/>
  297. </ColumnInfo>
  298. </Dataset>
  299. <Dataset id="ds_main_aprvlist_rsltinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  300. <ColumnInfo>
  301. <Column id="rtncnt" type="STRING" size="256" sumtext="실행결과"/>
  302. </ColumnInfo>
  303. </Dataset>
  304. <Dataset id="ds_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  305. <Dataset id="ds_hidden_popupmenu_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  306. <ColumnInfo>
  307. <Column id="level" type="STRING" size="256"/>
  308. <Column id="func" type="STRING" size="256"/>
  309. <Column id="label" type="STRING" size="256"/>
  310. </ColumnInfo>
  311. <Rows>
  312. <Row>
  313. <Col id="label">승인 내역 삭제</Col>
  314. <Col id="func">fDelAprv</Col>
  315. </Row>
  316. </Rows>
  317. </Dataset>
  318. <Dataset id="ds_send_aprvupdt" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  319. <Dataset id="ds_cmb_ordtype" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  320. <ColumnInfo>
  321. <Column id="label" type="STRING" size="256"/>
  322. <Column id="value" type="STRING" size="256"/>
  323. </ColumnInfo>
  324. <Rows>
  325. <Row>
  326. <Col id="label">외래</Col>
  327. <Col id="value">O</Col>
  328. </Row>
  329. <Row>
  330. <Col id="label">입원</Col>
  331. <Col id="value">I</Col>
  332. </Row>
  333. <Row>
  334. <Col id="label">응급</Col>
  335. <Col id="value">E</Col>
  336. </Row>
  337. <Row>
  338. <Col id="label">DSC</Col>
  339. <Col id="value">D</Col>
  340. </Row>
  341. </Rows>
  342. </Dataset>
  343. <Dataset id="ds_cmb_aprvflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  344. <ColumnInfo>
  345. <Column id="label" type="STRING" size="256"/>
  346. <Column id="value" type="STRING" size="256"/>
  347. </ColumnInfo>
  348. <Rows>
  349. <Row>
  350. <Col id="label">기본</Col>
  351. <Col id="value">0</Col>
  352. </Row>
  353. <Row>
  354. <Col id="label">연장</Col>
  355. <Col id="value">1</Col>
  356. </Row>
  357. </Rows>
  358. </Dataset>
  359. <Dataset id="ds_cmb_aprvjudg" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  360. <ColumnInfo>
  361. <Column id="label" type="STRING" size="256"/>
  362. <Column id="value" type="STRING" size="256"/>
  363. </ColumnInfo>
  364. <Rows>
  365. <Row>
  366. <Col id="label"/>
  367. <Col id="value">0</Col>
  368. </Row>
  369. <Row>
  370. <Col id="label">승인</Col>
  371. <Col id="value">1</Col>
  372. </Row>
  373. </Rows>
  374. </Dataset>
  375. <Dataset id="ds_chk_spclcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  376. <ColumnInfo>
  377. <Column id="label" type="STRING" size="256"/>
  378. <Column id="value" type="STRING" size="256"/>
  379. </ColumnInfo>
  380. <Rows>
  381. <Row>
  382. <Col id="label">V800</Col>
  383. <Col id="value">V800</Col>
  384. </Row>
  385. <Row>
  386. <Col id="label">V810</Col>
  387. <Col id="value">V810</Col>
  388. </Row>
  389. <Row>
  390. <Col id="label">V801</Col>
  391. <Col id="value">V801</Col>
  392. </Row>
  393. <Row>
  394. <Col id="label">V811</Col>
  395. <Col id="value">V811</Col>
  396. </Row>
  397. </Rows>
  398. </Dataset>
  399. </Objects>
  400. <Bind>
  401. <BindItem id="item0" compid="grp_sea.ipt_fromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
  402. <BindItem id="item1" compid="grp_sea.ipt_todd" propid="value" datasetid="ds_send" columnid="todd"/>
  403. <BindItem id="item2" compid="grp_sea.chk_all" propid="value" datasetid="ds_hidden" columnid="allflag"/>
  404. <BindItem id="item3" compid="grp_sea.chk_spclcd" propid="value" datasetid="ds_hidden" columnid="spclcdflag"/>
  405. <BindItem id="item4" compid="grp_sea.chk_aprvflag" propid="value" datasetid="ds_send" columnid="aprvflag"/>
  406. <BindItem id="item5" compid="grp_sea.ipt_pid" propid="value" datasetid="ds_send" columnid="pid"/>
  407. </Bind>
  408. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  409. * System Name :
  410. * Job Name :
  411. * Creator :
  412. * Make Date : 2016-05-24
  413. * Description :
  414. *---------------------------------------------------------------------------------------
  415. * Modify Date Modifier Modify Description
  416. *---------------------------------------------------------------------------------------
  417. * 2016-05-24 Live Converter TF->XP
  418. *
  419. *---------------------------------------------------------------------------------------
  420. ****************************************************************************************/
  421. include 'com_commonxp::comm_main.xjs';
  422. var arErrorCode = new HashArray();
  423. function SPPMC03903_oninit(obj:Form, e:InitEventInfo)
  424. {
  425. frmf_initForm(obj);
  426. }
  427. function SPPMC03903_onload(obj: Form, e: LoadEventInfo)
  428. {
  429. grdf_setGridSort(grd_aprv);
  430. grdf_setRowTypeIcon(grd_aprv, 0);
  431. var props = "col=4,row=1,cellspacing=4,vcellspacing=0,itemWidth=-1,itemHeight=20,overflow='visible'";
  432. grp_sea.chk_spclcd.setInitComp(props, ds_chk_spclcd,"value","label","fn_checkbox1");
  433. ds_send.setColumn(0, "fromdd", utlf_getCurrentDate());
  434. ds_send.setColumn(0, "todd", utlf_getCurrentDate());
  435. }
  436. function fn_checkbox1()
  437. {
  438. ds_hidden.setColumn(0, "spclcdflag", String(grp_sea.chk_spclcd.getData()).replace(",", " "));
  439. if(utlf_transNullToEmpty(ds_hidden.getColumn(0, 'spclcdflag')) != '')
  440. {
  441. ds_hidden.setColumn(0, 'allflag', '');
  442. }
  443. }
  444. function grp_sea_chk_all_onclick(obj: CheckBox, e: ClickEventInfo)
  445. {
  446. if (obj.value == "Y")
  447. {
  448. grp_sea.chk_spclcd.setCheckAll(false);
  449. ds_hidden.setColumn(0, "spclcdflag", "V800','V810','V801','V811");
  450. }
  451. }
  452. function grp_sea_ipt_pid_onkeydown(obj: Edit, e: KeyEventInfo)
  453. {
  454. if (e.keycode == 13)
  455. {
  456. obj.updateToDataset();
  457. grp_sea.btn_search.click();
  458. }
  459. }
  460. function grp_sea_btn_pid_onclick(obj: Button, e: ClickEventInfo)
  461. {
  462. ds_patinfolist.clearData();
  463. frmf_modal("SPPMC02500", "SPPMC02500", "", "", "", "", "", "", "", "", "", "", "M");
  464. if (frmf_getParameter('SPPMC02500_popupendflag') != "cancel")
  465. {
  466. ds_send.setColumn(0, "pid", ds_patinfolist.getColumn(0, "pid"));
  467. }
  468. }
  469. function btn_search_onclick(obj: Button, e: ClickEventInfo)
  470. {
  471. fSetSpclCd();
  472. var oParam = {};
  473. oParam.id = "TRPMC03921";
  474. oParam.service = "pamcomnapp.PamComn";
  475. oParam.method = "reqGetPreAprvList";
  476. oParam.inds = "req=ds_send";
  477. oParam.outds = "ds_main_aprvlist_aprvinfo=aprv";
  478. oParam.async = false;
  479. oParam.callback = "cf_TRPMC03921";
  480. tranf_submit(oParam);
  481. }
  482. function cf_TRPMC03921(sSvcId, nErrorCode, sErrorMsg)
  483. {
  484. if(nErrorCode < 0) return;
  485. ds_main_aprvlist_aprvinfo.addColumn("fontFace", "string");
  486. }
  487. function fSetSpclCd()
  488. {
  489. if (ds_hidden.getColumn(0, "allflag") == "Y")
  490. {
  491. ds_send.setColumn(0, "spclcd", "'V800','V810','V801','V811'");
  492. }
  493. else
  494. {
  495. ds_send.setColumn(0, "spclcd", "'" + utlf_transNullToEmpty(ds_hidden.getColumn(0, "spclcdflag")).replace(/ /g, "','") + "'");
  496. }
  497. }
  498. function btn_excl_down_onclick(obj:Button, e:ClickEventInfo)
  499. {
  500. grdf_exportExcel(grd_aprv, "중증 치매 승인 관리", "Sheet1", "true", "", "");
  501. }
  502. function btn_excl_onclick(obj: Button, e: ClickEventInfo)
  503. {
  504. ds_temp_excllist_exclinfo.clearData();
  505. grdf_ImportExcel("ds_temp_excllist_exclinfo", 2, grd_excl, 0);
  506. var cnt = 0;
  507. for (var i = 0; i < ds_temp_excllist_exclinfo.rowcount; i++)
  508. {
  509. var ePath = ds_temp_excllist_exclinfo;
  510. var rrgstno = ePath.getColumn(i, "rrgstno");
  511. var aprvfromdd = utlf_transNullToEmpty(ePath.getColumn(i, "aprvfromdd")).replace(/\./g, "");
  512. var aprvtodd = utlf_transNullToEmpty(ePath.getColumn(i, "aprvtodd")).replace(/\./g, "");
  513. for (var j = 0; j < ds_main_aprvlist_aprvinfo.rowcount; j++)
  514. {
  515. var aPath = ds_main_aprvlist_aprvinfo;
  516. if (aPath.getColumn(j, "rrgstno") == rrgstno && aPath.getColumn(j, "execdd") >= aprvfromdd && aPath.getColumn(j, "execdd") <= aprvtodd )
  517. {
  518. aPath.setColumn(j, "rqstdd", utlf_transNullToEmpty(ePath.getColumn(i, "rqstdd")).replace(/\./g, ""));
  519. aPath.setColumn(j, "diagcd", ePath.getColumn(i, "diagcd"));
  520. aPath.setColumn(j, "diagnm", ePath.getColumn(i, "diagnm"));
  521. switch (ePath.getColumn(i, "aprvflag"))
  522. {
  523. case "기본":
  524. aPath.setColumn(j, "aprvflag", "0");
  525. break;
  526. case "연장":
  527. aPath.setColumn(j, "aprvflag", "1");
  528. break;
  529. default:
  530. aPath.setColumn(j, "aprvflag", "");
  531. break;
  532. }
  533. aPath.setColumn(j, "aprvfromdd", utlf_transNullToEmpty(ePath.getColumn(i, "aprvfromdd")).replace(/\./g, ""));
  534. aPath.setColumn(j, "aprvtodd", utlf_transNullToEmpty(ePath.getColumn(i, "aprvtodd")).replace(/\./g, ""));
  535. aPath.setColumn(j, "aprvdays", utlf_transNullToEmpty(ePath.getColumn(i, "aprvdays")).replace(/일/g, ""));
  536. switch (ePath.getColumn(i, "aprvjudg"))
  537. {
  538. case "":
  539. aPath.setColumn(j, "aprvjudg", "0");
  540. break;
  541. case "승인":
  542. aPath.setColumn(j, "aprvjudg", "1");
  543. break;
  544. default:
  545. aPath.setColumn(j, "aprvjudg", "");
  546. break;
  547. }
  548. aPath.setColumn(j, "aprvno", ePath.getColumn(i, "aprvno"));
  549. aPath.setColumn(j, "drugyn", ePath.getColumn(i, "drugyn"));
  550. aPath.setColumn(j, "drugno", ePath.getColumn(i, "drugno"));
  551. aPath.updatecontrol = false;
  552. aPath.setRowType(j, "u");
  553. dsf_makeValue(aPath, "fontFace", "string", "Dotum,9,bold", j);
  554. aPath.updatecontrol = true;
  555. cnt++;
  556. }
  557. }
  558. }
  559. if (cnt < 1)
  560. {
  561. sysf_messageBox("일치하는 항목이 없습니다.", "E999");
  562. }
  563. else
  564. {
  565. sysf_messageBox("[ " + cnt + " ] 건의 승인 정보를 불러왔습니다.", "I999");
  566. }
  567. }
  568. function grd_aprv_onrbuttondown(obj: Grid, e: GridMouseEventInfo)
  569. {
  570. grdf_setSelectedCell(obj, e);
  571. ds_main_aprvlist_aprvinfo.rowposition = e.row;
  572. pmn_menu1.trackPopup(e.screenX,e.screenY);
  573. }
  574. function pmn_menu1_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo)
  575. {
  576. obj.closePopup();
  577. eval(e.id +"();");
  578. }
  579. function pmn_menu1_onmouseleave(obj:PopupMenu, e:MenuMouseEventInfo)
  580. {
  581. obj.closePopup();
  582. }
  583. function btn_save_onclick(obj: Button, e: ClickEventInfo)
  584. {
  585. if (sysf_messageBox("변경 내역을 저장하시겠습니까?", "Q999") != 6) return;
  586. var updategrid = grdf_getGridUpdateData(grd_aprv);
  587. grdf_setStatusColumn(updategrid, "status");
  588. ds_send_aprvupdt.copyData(updategrid, true);
  589. fSetSpclCd();
  590. var oParam = {};
  591. oParam.id = "TXPMC03911";
  592. oParam.service = "pamcomnapp.PamComn";
  593. oParam.method = "reqSetPreAprvList";
  594. oParam.inds = "req=ds_send aprv=ds_send_aprvupdt";
  595. oParam.outds = "ds_main_aprvlist_aprvinfo=aprv ds_main_aprvlist_rsltinfo=rslt";
  596. oParam.async = false;
  597. oParam.callback = "cf_TXPMC03911";
  598. tranf_submit(oParam);
  599. var rtnCnt = ds_main_aprvlist_rsltinfo.getColumn(0, "rtncnt");
  600. if (rtnCnt > 0)
  601. {
  602. sysf_messageBox("[ " + rtnCnt + " ] 건의 내역이 저장되었습니다.", "I999");
  603. }
  604. else
  605. {
  606. sysf_messageBox("변경 내역이 없습니다.", "E999");
  607. }
  608. }
  609. function cf_TXPMC03911(sSvcId, nErrorCode, sErrorMsg)
  610. {
  611. if(nErrorCode < 0) return;
  612. ds_main_aprvlist_aprvinfo.addColumn("fontFace", "string");
  613. }
  614. function fDelAprv()
  615. {
  616. if (utlf_transNullToEmpty(ds_main_aprvlist_aprvinfo.getColumn(grd_aprv.currentrow, "rqstdd")) == "")
  617. {
  618. sysf_messageBox("승인 정보가 없습니다.", "E999");
  619. return;
  620. }
  621. for (var i = 0; i < ds_main_aprvlist_aprvinfo.rowcount; i++)
  622. {
  623. if (ds_main_aprvlist_aprvinfo.getRowType(i) > 1)
  624. {
  625. sysf_messageBox("변경된 내역을 저장한 후 삭제해 주십시오.", "E999");
  626. return;
  627. }
  628. }
  629. if (sysf_messageBox("해당 내역을 삭제하시겠습니까?", "Q999") != 6) return;
  630. ds_main_aprvlist_aprvinfo.updatecontrol = false;
  631. ds_main_aprvlist_aprvinfo.setRowType(ds_main_aprvlist_aprvinfo.rowposition, "d");
  632. ds_main_aprvlist_aprvinfo.updatecontrol = true;
  633. var updategrid = grdf_getGridUpdateData(grd_aprv);
  634. grdf_setStatusColumn(updategrid, "status");
  635. ds_send_aprvupdt.copyData(updategrid, true);
  636. fSetSpclCd();
  637. var oParam = {};
  638. oParam.id = "TXPMC03911";
  639. oParam.service = "pamcomnapp.PamComn";
  640. oParam.method = "reqSetPreAprvList";
  641. oParam.inds = "req=ds_send aprv=ds_send_aprvupdt";
  642. oParam.outds = "ds_main_aprvlist_aprvinfo=aprv ds_main_aprvlist_rsltinfo=rslt";
  643. oParam.async = false;
  644. oParam.callback = "cf_TXPMC03911";
  645. tranf_submit(oParam);
  646. var rtnCnt = ds_main_aprvlist_rsltinfo.getColumn(0, "rtncnt");
  647. if (rtnCnt < 1)
  648. {
  649. sysf_messageBox("삭제에 실패했습니다.", "C999");
  650. }
  651. }
  652. ]]></Script>
  653. </Form>
  654. </FDL>