SMMRC02800_차트보관관리.xfdl 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMRC02800" position="absolute 0 0 1197 781" titletext="차트현황조회" onload="SMMRC02800_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="cpt_title" class="tit_1" position="absolute 5 0 212 23" style="" text="차트보관관리"/>
  8. <Div id="group1" position="absolute 5 20 1190 773" style="">
  9. <Layouts>
  10. <Layout>
  11. <Div id="Div00" taborder="21" position="absolute 0 2 1185 42" class="div_SA" anchor="default">
  12. <Layouts>
  13. <Layout/>
  14. </Layouts>
  15. </Div>
  16. <Button id="button1" class="icon_search" position="absolute 428 13 444 29" style="" text="" onclick="group1_button1_onclick" anchor="default"/>
  17. <Shape id="line2" class="line_4" linetype="vertical" position="absolute 1100 12 1103 34" style="" anchor="default"/>
  18. <Edit id="ipt_lendapppid" anchor="default" class="input_search" position="absolute 320 13 420 32" style=""/>
  19. <Static id="caption44" class="search_name" position="absolute 15 14 96 31" style="" text="대출과 :" anchor="default"/>
  20. <Static id="caption2" class="search_name" position="absolute 230 14 316 31" style="align: middle;" text="환자번호 :" anchor="default"/>
  21. <Radio datacolumn="datacolumn" codecolumn="codecolumn" columncount="-1" rowcount="-1" id="radio4" position="absolute 550 15 740 30" style="" anchor="default" index="0">
  22. <Dataset id="innerdataset">
  23. <ColumnInfo>
  24. <Column id="codecolumn"/>
  25. <Column id="datacolumn"/>
  26. </ColumnInfo>
  27. <Rows>
  28. <Row>
  29. <Col id="codecolumn"/>
  30. <Col id="datacolumn">전체</Col>
  31. </Row>
  32. <Row>
  33. <Col id="codecolumn">Y</Col>
  34. <Col id="datacolumn">과보관</Col>
  35. </Row>
  36. <Row>
  37. <Col id="codecolumn">N</Col>
  38. <Col id="datacolumn">과보관제외</Col>
  39. </Row>
  40. </Rows>
  41. </Dataset>
  42. </Radio>
  43. <Combo innerdataset="ds_init_orddept_dept" datacolumn="depthnm" codecolumn="deptcd" columncount="-1" rowcount="-1" id="cbo_lendappdeptcd" class="combo_search" position="absolute 95 13 215 32" style="" anchor="default"/>
  44. <Static id="caption4" class="search_name" position="absolute 460 14 546 31" style="" text="보관여부 :" anchor="default"/>
  45. <Button id="btn_r_rendlist" class="btn1_letter2" position="absolute 1115 12 1171 34" style="" text="조회" onclick="group1_btn_r_rendlist_onclick" anchor="default"/>
  46. <Button id="btn_e_rendlist" class="btn6_letter2" position="absolute 0 731 56 753" style="" text="엑셀" onclick="group1_btn_e_rendlist_onclick" anchor="default"/>
  47. <Grid id="grd_lendlist" binddataset="ds_main_lendlist" position="absolute 0 50 1185 730" style="" onkillfocus="group1_grd_lendlist_onkillfocus" onrbuttonup="group1_grd_lendlist_onrbuttonup" anchor="default">
  48. <Formats>
  49. <Format id="default">
  50. <Columns>
  51. <Column size="65"/>
  52. <Column size="60"/>
  53. <Column size="50"/>
  54. <Column size="50"/>
  55. <Column size="90"/>
  56. <Column size="60"/>
  57. <Column size="65"/>
  58. <Column size="65"/>
  59. <Column size="110"/>
  60. <Column size="110"/>
  61. <Column size="80"/>
  62. <Column size="150"/>
  63. <Column size="70"/>
  64. <Column size="70"/>
  65. <Column size="60"/>
  66. <Column size="50"/>
  67. <Column size="30"/>
  68. <Column size="30"/>
  69. <Column size="30"/>
  70. <Column size="30"/>
  71. </Columns>
  72. <Rows>
  73. <Row size="25" band="head"/>
  74. <Row size="25"/>
  75. </Rows>
  76. <Band id="head">
  77. <Cell text="등록번호"/>
  78. <Cell col="1" text="환자이름"/>
  79. <Cell col="2" text="초_재진"/>
  80. <Cell col="3" text="차트과"/>
  81. <Cell col="4" text="대출과(센터)"/>
  82. <Cell col="5" text="진료과"/>
  83. <Cell col="6" text="대출자"/>
  84. <Cell col="7" text="신청자"/>
  85. <Cell col="8" text="대출용도"/>
  86. <Cell col="9" text="대출일시"/>
  87. <Cell col="10" text="반납예정일"/>
  88. <Cell col="11" text="대출메세지"/>
  89. <Cell col="12" text="과보관사유"/>
  90. <Cell col="13" text="과보관사유"/>
  91. <Cell col="14" text="연락처"/>
  92. <Cell col="15" text="병실"/>
  93. <Cell col="16" text="대출번호"/>
  94. <Cell col="17" text="차트번호"/>
  95. <Cell col="18" text="pid"/>
  96. <Cell col="19" text="rendcd"/>
  97. </Band>
  98. <Band id="body">
  99. <Cell text="bind:pid"/>
  100. <Cell col="1" text="bind:pnm"/>
  101. <Cell col="2" text="bind:fsexam"/>
  102. <Cell col="3" text="bind:chrtdeptabbr"/>
  103. <Cell col="4" text="bind:appdeptabbr"/>
  104. <Cell col="5" text="bind:orddeptabbr"/>
  105. <Cell col="6" text="bind:lendman"/>
  106. <Cell col="7" text="bind:appman"/>
  107. <Cell col="8" text="bind:rendresn"/>
  108. <Cell col="9" text="bind:renddt"/>
  109. <Cell col="10" text="bind:rtnschedd"/>
  110. <Cell col="11" text="bind:msgcnts"/>
  111. <Cell col="12" text="bind:deptkeepcd"/>
  112. <Cell col="13" text="bind:deptkeepresn"/>
  113. <Cell col="14" text="bind:cntctelno"/>
  114. <Cell col="15" text="bind:roomcd"/>
  115. <Cell col="16" text="bind:chrtseqno"/>
  116. <Cell col="17" text="bind:medirecno"/>
  117. <Cell col="18" text="bind:prnpid"/>
  118. <Cell col="19" text="bind:rendcd"/>
  119. </Band>
  120. </Format>
  121. </Formats>
  122. </Grid>
  123. <Shape id="line3" class="line_1" linetype="horizontal" position="absolute 0 46 1185 50" style="strokepen:3 solid #33bbbbff;" anchor="default"/>
  124. <Static id="caption10" class="search_name" position="absolute 760 14 850 31" style="" text="대출일자 :" anchor="default"/>
  125. <Calendar id="ipt_fromrendd" anchor="default" class="input_search" position="absolute 855 13 955 32" style="" dateformat="yyyy-MM-dd" value="null"/>
  126. <Calendar id="ipt_torendd" anchor="default" class="input_search" position="absolute 960 13 1060 32" style="" dateformat="yyyy-MM-dd" value="null"/>
  127. <Div id="grup_deptkeep" position="absolute 705 110 959 244" style="background:whitesmoke;border:3 solid #adceffff #adceffff;" anchor="default">
  128. <Layouts>
  129. <Layout>
  130. <Button id="button20" class="btn2_letter2" position="absolute 202 106 244 125" style="" text="취소" onclick="group1_grup_deptkeep_button20_onclick" anchor="default"/>
  131. <Shape id="line41" class="line_3" linetype="horizontal" position="absolute 4 3 245 6" style="" anchor="default"/>
  132. <Static id="caption68" class="cell_1" position="absolute 5 5 77 28" style="align: middle;" text="과보관사유" anchor="default"/>
  133. <Shape id="line46" class="line_3" linetype="horizontal" position="absolute 4 29 245 32" style="" anchor="default"/>
  134. <Button id="button21" class="btn2_letter2" position="absolute 157 106 199 125" style="" text="확인" onclick="group1_grup_deptkeep_button21_onclick" anchor="default"/>
  135. <Combo innerdataset="ds_init_M0412_M0412" datacolumn="cdnm" codecolumn="cdid" columncount="-1" rowcount="-1" id="combo4" class="combo_search" position="absolute 79 7 244 26" style="" anchor="default"/>
  136. <TextArea id="textarea2" position="absolute 79 31 244 101" style="" anchor="default"/>
  137. <Shape id="line47" class="line_3" linetype="horizontal" position="absolute 4 102 245 105" style="" anchor="default"/>
  138. <Static id="caption80" class="cell_1" position="absolute 5 31 77 100" style="align: middle;" text="메모" anchor="default"/>
  139. </Layout>
  140. </Layouts>
  141. </Div>
  142. <Button id="btn_p_lendlist" taborder="20" class="btn6_letter2" position="absolute 60 731 116 753" style="" text="출력" onclick="group1_btn_p_lendlist_onclick" anchor="default"/>
  143. <CheckBox id="lendterm_disabled" taborder="22" position="absolute 1065 13 1086 30" onchanged="group1_lendterm_disabled_onchanged" truevalue="Y" falsevalue="N" anchor="default" onclick="group1_lendterm_disabled_onclick" value="Y"/>
  144. </Layout>
  145. </Layouts>
  146. </Div>
  147. </Layout>
  148. </Layouts>
  149. <Objects>
  150. <Dataset id="ds_init_orddept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  151. <ColumnInfo/>
  152. </Dataset>
  153. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  154. <ColumnInfo/>
  155. </Dataset>
  156. <Dataset id="ds_hidden_tmp_pidpopupinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  157. <ColumnInfo>
  158. <Column id="checkfnexam" type="STRING" size="256"/>
  159. <Column id="autoflag" type="STRING" size="256"/>
  160. <Column id="srchcond" type="STRING" size="256"/>
  161. </ColumnInfo>
  162. <Rows>
  163. <Row>
  164. <Col id="checkfnexam"/>
  165. <Col id="autoflag"/>
  166. <Col id="srchcond"/>
  167. </Row>
  168. </Rows>
  169. </Dataset>
  170. <Dataset id="ds_hidden_tmp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  171. <ColumnInfo/>
  172. </Dataset>
  173. <Dataset id="ds_main_deptkeep" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  174. <ColumnInfo>
  175. <Column id="deptkeepcd" type="STRING" size="256"/>
  176. <Column id="deptkeepresn" type="STRING" size="256"/>
  177. </ColumnInfo>
  178. </Dataset>
  179. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  180. <ColumnInfo>
  181. <Column id="M0412" type="STRING" size="256"/>
  182. </ColumnInfo>
  183. <Rows>
  184. <Row>
  185. <Col id="M0412"/>
  186. </Row>
  187. </Rows>
  188. </Dataset>
  189. <Dataset id="ds_hidden_menu_menu" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  190. <ColumnInfo>
  191. <Column id="hardcdnm" type="STRING" size="256"/>
  192. <Column id="hardcd" type="STRING" size="256"/>
  193. </ColumnInfo>
  194. <Rows>
  195. <Row>
  196. <Col id="hardcdnm">과보관사유입력</Col>
  197. <Col id="hardcd">fsetdeptkeep</Col>
  198. </Row>
  199. </Rows>
  200. </Dataset>
  201. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  202. <ColumnInfo>
  203. <Column id="popupendflag" type="STRING" size="256"/>
  204. </ColumnInfo>
  205. </Dataset>
  206. <Dataset id="ds_hidden_menu" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  207. <ColumnInfo/>
  208. </Dataset>
  209. <Dataset id="ds_condition" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  210. <ColumnInfo>
  211. <Column id="appdeptcd" type="STRING" size="256"/>
  212. <Column id="pid" type="STRING" size="256"/>
  213. <Column id="deptkeepyn" type="STRING" size="256"/>
  214. <Column id="ioflag" type="STRING" size="256"/>
  215. <Column id="rendfromdd" type="STRING" size="256"/>
  216. <Column id="rendtodd" type="STRING" size="256"/>
  217. <Column id="lendtermdisabled" type="STRING" size="256"/>
  218. </ColumnInfo>
  219. </Dataset>
  220. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  221. <ColumnInfo>
  222. <Column id="reqdata" type="STRING" size="256"/>
  223. <Column id="savedata" type="STRING" size="256"/>
  224. </ColumnInfo>
  225. </Dataset>
  226. <Dataset id="ds_main_lendlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  227. <ColumnInfo>
  228. <Column id="chrtseqno" type="STRING" size="256"/>
  229. <Column id="pid" type="STRING" size="256"/>
  230. <Column id="appdeptcd" type="STRING" size="256"/>
  231. <Column id="lendmanid" type="STRING" size="256"/>
  232. <Column id="appmanid" type="STRING" size="256"/>
  233. <Column id="cntctelno" type="STRING" size="256"/>
  234. <Column id="appdt" type="STRING" size="256"/>
  235. <Column id="fstacptprndt" type="STRING" size="256"/>
  236. <Column id="rendschedd" type="STRING" size="256"/>
  237. <Column id="renddt" type="STRING" size="256"/>
  238. <Column id="rtndt" type="STRING" size="256"/>
  239. <Column id="delyn" type="STRING" size="256"/>
  240. <Column id="rendcd" type="STRING" size="256"/>
  241. <Column id="rendresn" type="STRING" size="256"/>
  242. <Column id="unrendcd" type="STRING" size="256"/>
  243. <Column id="unrendresn" type="STRING" size="256"/>
  244. <Column id="deptkeepcd" type="STRING" size="256"/>
  245. <Column id="deptkeepresn" type="STRING" size="256"/>
  246. <Column id="unrtnresn" type="STRING" size="256"/>
  247. <Column id="msgcnts" type="STRING" size="256"/>
  248. <Column id="roomcd" type="STRING" size="256"/>
  249. <Column id="fsexamflag" type="STRING" size="256"/>
  250. <Column id="fsexam" type="STRING" size="256"/>
  251. <Column id="rsrvflag" type="STRING" size="256"/>
  252. <Column id="rsrv" type="STRING" size="256"/>
  253. <Column id="prnpid" type="STRING" size="256"/>
  254. <Column id="pnm" type="STRING" size="256"/>
  255. <Column id="rrgstno" type="STRING" size="256"/>
  256. <Column id="medirecno" type="STRING" size="256"/>
  257. <Column id="allchrtyn" type="STRING" size="256"/>
  258. <Column id="chrtdeptcd" type="STRING" size="256"/>
  259. <Column id="chrtdeptnm" type="STRING" size="256"/>
  260. <Column id="chrtdeptabbr" type="STRING" size="256"/>
  261. <Column id="orddeptcd" type="STRING" size="256"/>
  262. <Column id="orddeptnm" type="STRING" size="256"/>
  263. <Column id="orddeptabbr" type="STRING" size="256"/>
  264. <Column id="orddt" type="STRING" size="256"/>
  265. <Column id="appdeptnm" type="STRING" size="256"/>
  266. <Column id="appdeptabbr" type="STRING" size="256"/>
  267. <Column id="appman" type="STRING" size="256"/>
  268. <Column id="lendman" type="STRING" size="256"/>
  269. <Column id="keepno" type="STRING" size="256"/>
  270. <Column id="keepplce" type="STRING" size="256"/>
  271. <Column id="chrtlendyn" type="STRING" size="256"/>
  272. <Column id="dschdd" type="STRING" size="256"/>
  273. </ColumnInfo>
  274. <Rows>
  275. <Row>
  276. <Col id="chrtseqno"/>
  277. <Col id="pid"/>
  278. <Col id="appdeptcd"/>
  279. <Col id="lendmanid"/>
  280. <Col id="appmanid"/>
  281. <Col id="cntctelno"/>
  282. <Col id="appdt"/>
  283. <Col id="fstacptprndt"/>
  284. <Col id="rendschedd"/>
  285. <Col id="renddt"/>
  286. <Col id="rtndt"/>
  287. <Col id="delyn"/>
  288. <Col id="rendcd"/>
  289. <Col id="rendresn"/>
  290. <Col id="unrendcd"/>
  291. <Col id="unrendresn"/>
  292. <Col id="deptkeepcd"/>
  293. <Col id="deptkeepresn"/>
  294. <Col id="unrtnresn"/>
  295. <Col id="msgcnts"/>
  296. <Col id="roomcd"/>
  297. <Col id="fsexamflag"/>
  298. <Col id="fsexam"/>
  299. <Col id="rsrvflag"/>
  300. <Col id="rsrv"/>
  301. <Col id="prnpid"/>
  302. <Col id="pnm"/>
  303. <Col id="rrgstno"/>
  304. <Col id="medirecno"/>
  305. <Col id="allchrtyn"/>
  306. <Col id="chrtdeptcd"/>
  307. <Col id="chrtdeptnm"/>
  308. <Col id="chrtdeptabbr"/>
  309. <Col id="orddeptcd"/>
  310. <Col id="orddeptnm"/>
  311. <Col id="orddeptabbr"/>
  312. <Col id="orddt"/>
  313. <Col id="appdeptnm"/>
  314. <Col id="appdeptabbr"/>
  315. <Col id="appman"/>
  316. <Col id="lendman"/>
  317. <Col id="keepno"/>
  318. <Col id="keepplce"/>
  319. <Col id="chrtlendyn"/>
  320. <Col id="dschdd"/>
  321. </Row>
  322. </Rows>
  323. </Dataset>
  324. <Dataset id="ds_init_orddept_dept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  325. <ColumnInfo>
  326. <Column id="deptcd" type="STRING" size="256"/>
  327. <Column id="depthnm" type="STRING" size="256"/>
  328. <Column id="deptenm" type="STRING" size="256"/>
  329. <Column id="deptabbr" type="STRING" size="256"/>
  330. </ColumnInfo>
  331. </Dataset>
  332. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  333. <Dataset id="ds_init_orddept_chrtdept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  334. <ColumnInfo>
  335. <Column id="deptcd" type="STRING" size="256"/>
  336. <Column id="depthnm" type="STRING" size="256"/>
  337. <Column id="deptenm" type="STRING" size="256"/>
  338. <Column id="deptabbr" type="STRING" size="256"/>
  339. </ColumnInfo>
  340. </Dataset>
  341. <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  342. <Dataset id="ds_source" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  343. <Dataset id="ds_init_M0412_M0412" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  344. <Dataset id="ds_main_patinfo_patinfolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  345. <Dataset id="Dataset00" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  346. </Objects>
  347. <Bind>
  348. <BindItem id="item0" compid="group1.radio4" probid="value" datasetid="ds_condition" columnid="deptkeepyn"/>
  349. <BindItem id="item1" compid="group1.cbo_lendappdeptcd" probid="value" datasetid="ds_condition" columnid="appdeptcd"/>
  350. <BindItem id="item2" compid="group1.grup_deptkeep.combo4" probid="value" datasetid="ds_main_deptkeep" columnid="deptkeepcd"/>
  351. <BindItem id="item3" compid="group1.grup_deptkeep.textarea2" probid="value" datasetid="ds_main_deptkeep" columnid="deptkeepresn"/>
  352. <BindItem id="item5" compid="group1.cbo_lendappdeptcd" propid="value" datasetid="ds_condition" columnid="appdeptcd"/>
  353. <BindItem id="item4" compid="group1.ipt_lendapppid" propid="value" datasetid="ds_condition" columnid="pid"/>
  354. <BindItem id="item6" compid="group1.radio4" propid="value" datasetid="ds_condition" columnid="deptkeepyn"/>
  355. <BindItem id="item7" compid="group1.ipt_fromrendd" propid="value" datasetid="ds_condition" columnid="rendfromdd"/>
  356. <BindItem id="item8" compid="group1.ipt_torendd" propid="value" datasetid="ds_condition" columnid="rendtodd"/>
  357. <BindItem id="item9" compid="group1.lendterm_disabled" propid="value" datasetid="ds_condition" columnid="lendtermdisabled"/>
  358. </Bind>
  359. <Script type="xscript4.0"><![CDATA[include "com_commonxp::comm_main.xjs"
  360. //include "com_basiccodexp::ZBC001.xjs"
  361. include "emr_commonxp::EMRCommon.xjs"
  362. include "emr_chrtmngtxp::SMMRC02800.xjs"
  363. function SMMRC02800_onload(obj:Form, e:LoadEventInfo) {
  364. frmf_initForm(obj);
  365. //grdf_initGrid(grd_XXX);
  366. //grdf_setGridSort(grd_XXX);
  367. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  368. fFormInit();
  369. }
  370. // header파일 중 SMMRC02800.js 파일 시작
  371. var m_clientY = 0;
  372. function getNodeSetCnt(path)
  373. {
  374. // var insXml = model.instances(0);
  375. // var nodeList = insXml.selectNodes(path);
  376. // return nodeList.length;
  377. return eval(path).rowcount;
  378. }
  379. /**
  380. * _desc : 폼초기화
  381. * _
  382. * _param :
  383. * _return :
  384. * _authur : 이은영 2008.06.12
  385. * _---------------------------------------------------
  386. */
  387. function fFormInit()
  388. {
  389. //진료과/ 챠트과 불러오기.
  390. ds_send_reqdata.clearData();
  391. ds_send_reqdata.addRow();
  392. dsf_makeValue( ds_send_reqdata, "ioflag", "string", "O");
  393. dsf_makeValue( ds_send_reqdata, "orddeptflag", "string", "'D', 'X'");
  394. // submit("TRMRC00050");
  395. var oParam = {};
  396. oParam.id = "TRMRC00050";
  397. oParam.service = "chrtmngtapp.ChrtRendMngt";
  398. oParam.method = "reqGetDept";
  399. oParam.inds = "req=ds_send_reqdata";
  400. oParam.outds = "ds_init_orddept_dept=dept ds_init_orddept_chrtdept=chrtdept";
  401. oParam.async = false;
  402. tranf_submit(oParam);
  403. //공통코드 가져오기...
  404. //M0412:과보관사유코드
  405. var arrParam = [ {dsNm : "ds_init_M0412_M0412",
  406. cdGrpId: "M0412" } ];
  407. appf_getCodeList(arrParam, true);
  408. ds_main_lendlist.clearData();
  409. ds_condition.clearData();
  410. ds_condition.addRow();
  411. // 대출내역 초기값
  412. ds_condition.setColumn( 0, "ioflag" , "O");
  413. ds_condition.setColumn( 0, "appdeptcd" , sysf_getUserInfo("dutplcecd"));
  414. ds_condition.setColumn( 0, "pid" , "");
  415. ds_condition.setColumn( 0, "deptkeepyn" , "Y");
  416. ds_condition.setColumn( 0, "rendfromdd" , utlf_getCurrentDate());
  417. ds_condition.setColumn( 0, "rendtodd" , utlf_getCurrentDate());
  418. group1.grup_deptkeep.visible = false;
  419. //model.refresh();
  420. }
  421. /**
  422. * _desc : 차트 대출 현황 조회하기
  423. * _
  424. * _param :
  425. * _return :
  426. * _authur : 이은영 2008.07.21
  427. * _---------------------------------------------------
  428. */
  429. function fGetLendList()
  430. {
  431. ds_send_reqdata.clearData();
  432. ds_send_reqdata.addRow();
  433. var appdeptcd = ds_condition.getColumn(0, "appdeptcd");
  434. var rendfromdd = ds_condition.getColumn(0, "rendfromdd");
  435. var rendtodd = ds_condition.getColumn(0, "rendtodd");
  436. var deptkeepyn = ds_condition.getColumn(0, "deptkeepyn");
  437. dsf_makeValue( ds_send_reqdata, "appdeptcd", "string", appdeptcd);
  438. dsf_makeValue( ds_send_reqdata, "rendfromdd", "string", rendfromdd);
  439. dsf_makeValue( ds_send_reqdata, "rendtodd", "string", rendtodd);
  440. dsf_makeValue( ds_send_reqdata, "deptkeepyn", "string", deptkeepyn);
  441. dsf_makeValue( ds_send_reqdata, "apprendcd", "string", "ALL");
  442. //model.refresh();
  443. // submit("TRMRC00320");
  444. var oParam = {};
  445. oParam.id = "TRMRC00320";
  446. oParam.service = "chrtmngtapp.ChrtRendMngt";
  447. oParam.method = "reqGetLendChrtList";
  448. oParam.inds = "req=ds_send_reqdata";
  449. oParam.outds = "ds_main_lendlist=lendlist";
  450. oParam.async = false;
  451. tranf_submit(oParam);
  452. }
  453. /**
  454. * _desc : excel 저장 하기
  455. * _
  456. * _param :
  457. * _return :
  458. * _authur : 이은영 2008.07.14
  459. * _---------------------------------------------------
  460. */
  461. function fExcel(gridObj, title){
  462. grdf_exportExcel(gridObj, "Sheet1", title, false, "" , 'user' , true);
  463. }
  464. /**
  465. * _desc : 마우스 오른쪽 버튼 팝업창
  466. * _
  467. * _param :
  468. * _return :
  469. * _authur : 이은영 2008.03.18
  470. * _---------------------------------------------------
  471. */
  472. function fMouseRghtBtnPopup(gridObj, e)
  473. {
  474. if (e.button == "rbutton") {
  475. if (e.row >= 0 && e.col >= 0 ) {
  476. ds_send_savedata.clearData();
  477. //window.setPopupMenu(true, "ds_hidden_menu_menu", .text", "func", false);
  478. frmf_createPopupMenuDs("pmn_popupMenu", "pmn_popupMenu_onmenuclick", ds_hidden_menu_menu);
  479. pmn_popupMenu.trackPopup(e.screenX, e.screenY);
  480. } else {
  481. //window.setPopupMenu(false);
  482. }
  483. } else {
  484. //window.setPopupMenu(false);
  485. }
  486. }
  487. function pmn_popupMenu_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo)
  488. {
  489. eval(e.id+"()");
  490. }
  491. /**
  492. * _desc : 챠트 반납 우클릭시 - > 과보관 사유 입력
  493. * _
  494. * _param :
  495. * _return :
  496. * _authur : 이은영 2008.07.28
  497. * _---------------------------------------------------
  498. */
  499. function fsetdeptkeep()
  500. {
  501. if(group1.grd_lendlist.currentrow < 0){
  502. return;
  503. }
  504. // 2008.01.13. 과보관사유 입력하기...
  505. fShowWndIptBox();
  506. }
  507. /**
  508. * _desc : 팝업폼 보여주기..
  509. * _
  510. * _param :
  511. * _
  512. * _return :
  513. * _authur : 이은영 2008.07.28
  514. * _---------------------------------------------------
  515. */
  516. function fShowWndIptBox()
  517. {
  518. group1.grup_deptkeep.visible = false;
  519. ds_main_deptkeep.clearData();
  520. ds_main_deptkeep.addRow();
  521. ds_main_deptkeep.setColumn( 0, "deptkeepcd", "00");
  522. ds_main_deptkeep.setColumn( 0, "deptkeepresn", "");
  523. //model.refresh();
  524. var _height = group1.grup_deptkeep.position.height;
  525. if (m_clientY > 600) {
  526. group1.grup_deptkeep.position.top = m_clientY-90;
  527. } else {
  528. group1.grup_deptkeep.position.top = 600;
  529. }
  530. group1.grup_deptkeep.position.height = _height;
  531. group1.grup_deptkeep.visible = true;
  532. }
  533. /**
  534. * _desc : 챠트 반납 우클릭시 - > 과보관 사유 입력 (update)
  535. * _
  536. * _param :
  537. * _return :
  538. * _authur : 이은영 2008.07.28
  539. * _---------------------------------------------------
  540. */
  541. function fUpdateDeptKeepresn()
  542. {
  543. // 2008.01.13. 과보관사유 입력하기...
  544. var deptkeepcd = ds_main_deptkeep.getColumn(0, "deptkeepcd");
  545. var deptkeepresn = ds_main_deptkeep.getColumn(0, "deptkeepresn");
  546. var savedata ="chrtseqno▦deptkeepcd▦deptkeepresn▩";
  547. var dataString = "";
  548. var dataCount = 0;
  549. //for ( var i = 0; i <group1.grd_lendlist.selectedRows; i++)
  550. var selectedRows = grdf_getSelectedRows(group1.grd_lendlist);
  551. for(var i=0; i < selectedRows.length; i++)
  552. {
  553. // 2009.01.06. sort (정렬) 후 인스턴스가 바뀌어 저장시 오류 발생 수정함.
  554. // var chrtseqno = ds_main_lendlist.getColumn(group1.grd_lendlist.selectedrow(i), "chrtseqno");
  555. var row = selectedRows[i];
  556. var chrtseqno = this.ds_main_lendlist.getColumn(row, "chrtseqno");
  557. dataString = dataString + chrtseqno + "▦" + deptkeepcd + "▦" + deptkeepresn + "▩";
  558. dataCount = dataCount + 1;
  559. }
  560. if (dataString.length > 0)
  561. {
  562. alert("총 " + dataCount + " 건 과보관(사유입력) 되었습니다.");
  563. //dsf_makeValue( ds_send, "savedata", "string", savedata + dataString);
  564. dsf_setCSVToDs("ds_send_savedata",savedata + dataString);
  565. grdf_setStatusColumn(ds_send_savedata, "status");
  566. dsf_setFixVal(ds_send_savedata, "status:i");
  567. //model.refresh();
  568. // submit("TXMRC00103");
  569. var oParam = {};
  570. oParam.id = "TXMRC00103";
  571. oParam.service = "chrtmngtapp.ChrtRendMngt";
  572. oParam.method = "setDeptKeep";
  573. oParam.inds = "savedata=ds_send_savedata";
  574. oParam.outds = "";
  575. oParam.async = false;
  576. tranf_submit(oParam);
  577. }
  578. group1.grup_deptkeep.visible = false;
  579. // 다시 조회하기..
  580. fGetLendList();
  581. }
  582. /**
  583. * _desc : 환자등록번호 조회 팝업
  584. * _
  585. * _param : refPid - 환자번호 참고 node path
  586. * refPnm - 환자명 참고 node path
  587. * _return :
  588. * _authur : 이은영 2008.03.18
  589. * _---------------------------------------------------
  590. */
  591. function fGetPid(ref, refPid, refPnm)
  592. {
  593. //조회건수가 1건일 경우 팝업창을 바로 닫는다.
  594. ds_main.clearData();
  595. ds_main.addRow();
  596. ds_hidden_tmp_pidpopupinfo.clearData();
  597. ds_hidden_tmp_pidpopupinfo.addRow();
  598. ds_main_patinfo_patinfolist.clearData();
  599. ds_main_patinfo_patinfolist.addRow();
  600. dsf_makeValue( ds_hidden_tmp_pidpopupinfo, "checkfnexam", "string", "1");
  601. dsf_makeValue( ds_hidden_tmp_pidpopupinfo, "autoflag", "string", "N");
  602. if( ds_hidden_tmp_pidpopupinfo.getColumn(0, "srchcond") == '' ){
  603. dsf_makeValue( ds_hidden_tmp_pidpopupinfo, "srchcond", "string", '2');
  604. }
  605. var objArg = new Object();
  606. objArg.arg_ds_send = ds_hidden_tmp_pidpopupinfo;
  607. frmf_modal("SPPMC02500", "SPPMC02500", objArg, "", "1", "150", "150", "", "", "", "", "", "M");
  608. ds_source.clearData(); ds_source.addRow();
  609. eval(ref).setColumn(0, refPid, ds_patinfolist.getColumn(0, "pid"));
  610. if (refPnm == null) { refPnm = "" }
  611. if (refPnm != "") {
  612. eval(ref).setColumn(0, refPnm, ds_patinfolist.getColumn(0, "hngnm"));
  613. }
  614. }
  615. /**
  616. * _desc : 차트 보관 관리에서 대출일자 기간 콤보 보여줄까? 말까?
  617. * _
  618. * _param :
  619. * _return :
  620. * _authur : 이은영 2009.01.06
  621. * _---------------------------------------------------
  622. */
  623. function fLendTermDisabled()
  624. {
  625. var lendtermdisabled = group1.lendterm_disabled.value;
  626. if (lendtermdisabled == "Y") {
  627. var today = utlf_getCurrentDate();
  628. ds_condition.setColumn( 0, "rendfromdd", today);
  629. ds_condition.setColumn( 0, "rendtodd" , today);
  630. group1.ipt_fromrendd.enable = true;
  631. group1.ipt_torendd.enable = true;
  632. } else {
  633. ds_condition.setColumn( 0, "rendfromdd", "");
  634. ds_condition.setColumn( 0, "rendtodd" , "");
  635. group1.ipt_fromrendd.enable = false;
  636. group1.ipt_torendd.enable = false;
  637. }
  638. //group1.ipt_fromrendd.refresh();
  639. //group1.ipt_torendd.refresh();
  640. }
  641. // header파일 중 SMMRC02800.js 파일 끝
  642. function group1_button1_onclick(obj:Button, e:ClickEventInfo) {
  643. fGetPid("ds_condition", "pid");
  644. group1_btn_r_rendlist_onclick(null, null);
  645. }
  646. function group1_btn_r_rendlist_onclick(obj:Button, e:ClickEventInfo) {
  647. fGetLendList();
  648. }
  649. function group1_btn_e_rendlist_onclick(obj:Button, e:ClickEventInfo) {
  650. fExcel(group1.grd_lendlist, "차트보관목록");
  651. }
  652. function group1_grd_lendlist_onmousedown(obj:Grid, e:GridMouseEventInfo) {
  653. //fMouseRghtBtnPopup(group1.grd_lendlist);
  654. }
  655. function group1_grd_lendlist_onkillfocus(obj:Grid, e:KillFocusEventInfo) {
  656. //window.setPopupMenu(false);
  657. }
  658. function group1_grup_deptkeep_button20_onclick(obj:Button, e:ClickEventInfo) {
  659. group1.grup_deptkeep.visible = "false";
  660. }
  661. function group1_grup_deptkeep_button21_onclick(obj:Button, e:ClickEventInfo) {
  662. fUpdateDeptKeepresn();
  663. }
  664. function group1_lendterm_disabled_onkillfocus(obj:cp_checkboxList, e:KillFocusEventInfo) {
  665. fLendTermDisabled();
  666. }
  667. function group1_btn_p_lendlist_onclick(obj:Button, e:ClickEventInfo) {
  668. var objDOM = rptf_createDOM();
  669. var objParam = new Object();
  670. rptf_setNodeListToDOM(objDOM, "/root/main/lendlist" , ds_main_lendlist);
  671. objParam.xml_data_XML1 = objDOM.documentElement.source;
  672. var option = "open=1;save=1;directprint=0;printdialog=1;print=1;zoom=0";
  673. rptf_exeReportPreview30(["RPMRC02800"],[objParam], option);
  674. }
  675. function group1_grd_lendlist_onrbuttonup(obj:Grid, e:GridMouseEventInfo)
  676. {
  677. m_clientY = e.clientY;
  678. fMouseRghtBtnPopup(group1.grd_lendlist, e);
  679. return true;
  680. }
  681. function group1_lendterm_disabled_onchanged(obj:CheckBox, e:CheckBoxChangeEventInfo)
  682. {
  683. fLendTermDisabled();
  684. }
  685. function group1_lendterm_disabled_onclick(obj:CheckBox, e:ClickEventInfo)
  686. {
  687. }
  688. ]]></Script>
  689. </Form>
  690. </FDL>