SPMMO03100_진단.xfdl 64 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMMO03100" position="absolute 0 0 1178 529" titletext="진단" oninit="SPMMO03100_oninit" onload="SPMMO03100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static text="진단" position="absolute 0 0 56 20" align="align:center middle;" id="caption2" class="tit_2"/>
  8. <Tab position="absolute 0 18 530 506" id="switch1" canchange="switch1_canchange">
  9. <Tabpages>
  10. <Tabpage text="ICD10색인" id="icd10">
  11. <Layouts>
  12. <Layout>
  13. <Grid position="absolute 0 0 530 460" id="datagrid3" binddataset="ds_datagrid3">
  14. <Formats>
  15. <Format id="default">
  16. <Columns>
  17. <Column size="0"/>
  18. <Column size="530"/>
  19. <Column size="0"/>
  20. </Columns>
  21. <Rows>
  22. <Row size="24" band="head"/>
  23. <Row size="24"/>
  24. </Rows>
  25. <Band id="head">
  26. <Cell text="levl"/>
  27. <Cell col="1" text="ICD-10"/>
  28. <Cell col="2" text="indxcd"/>
  29. </Band>
  30. <Band id="body">
  31. <Cell text="bind:levl"/>
  32. <Cell col="1" text="bind:chosinfo"/>
  33. <Cell col="2" text="bind:indxcd"/>
  34. </Band>
  35. </Format>
  36. </Formats>
  37. </Grid>
  38. <Grid position="absolute 0 26 530 461" treeusecheckbox="false" autofit="col" id="trv_icd10indxcdlist" binddataset="ds_main_indxcdlist" style="border:0 solid #33bbbbff,0 solid #bac5ccff,1 solid #bac5ccff,0 solid #bac5ccff;" selecttype="treecell" oncellclick="switch1_icd10_trv_icd10indxcdlist_oncellclick" oncelldblclick="switch1_icd10_trv_icd10indxcdlist_oncelldblclick">
  39. <Formats>
  40. <Format id="default">
  41. <Columns>
  42. <Column size="530"/>
  43. </Columns>
  44. <Rows>
  45. <Row size="24"/>
  46. </Rows>
  47. <Band id="body">
  48. <Cell displaytype="tree" edittype="tree" style="line:0 none #808080ff ;background:white;background2:white;" text="bind:hngnm" treestartlevel="1" treelevel="bind:levl"/>
  49. </Band>
  50. </Format>
  51. </Formats>
  52. </Grid>
  53. </Layout>
  54. </Layouts>
  55. </Tabpage>
  56. <Tabpage text="과색인" id="deptindx">
  57. <Layouts>
  58. <Layout>
  59. <Grid position="absolute 0 0 530 461" id="datagrid1" binddataset="ds_datagrid1">
  60. <Formats>
  61. <Format id="default">
  62. <Columns>
  63. <Column size="0"/>
  64. <Column size="530"/>
  65. <Column size="0"/>
  66. </Columns>
  67. <Rows>
  68. <Row size="24" band="head"/>
  69. <Row size="24"/>
  70. </Rows>
  71. <Band id="head">
  72. <Cell text="levl"/>
  73. <Cell col="1" text="과색인"/>
  74. <Cell col="2" text="indxcd"/>
  75. </Band>
  76. <Band id="body">
  77. <Cell text="bind:levl"/>
  78. <Cell col="1" text="bind:chosinfo"/>
  79. <Cell col="2" text="bind:indxcd"/>
  80. </Band>
  81. </Format>
  82. </Formats>
  83. </Grid>
  84. <Grid position="absolute 0 26 530 461" treeusecheckbox="false" autofit="col" id="trv_deptindxcdlist" binddataset="ds_main_deptindxcdlist" style="border:0 solid #33bbbbff,0 solid #bac5ccff,1 solid #bac5ccff,0 solid #bac5ccff;" selecttype="treecell" treeinitstatus="expand,null" oncellclick="switch1_deptindx_trv_deptindxcdlist_oncellclick">
  85. <Formats>
  86. <Format id="default">
  87. <Columns>
  88. <Column size="530"/>
  89. </Columns>
  90. <Rows>
  91. <Row size="24"/>
  92. </Rows>
  93. <Band id="body">
  94. <Cell displaytype="tree" edittype="tree" style="line:0 none #808080ff ;background:white;background2:white;" text="bind:deptindxnm" treestartlevel="1" treelevel="bind:levl"/>
  95. </Band>
  96. </Format>
  97. </Formats>
  98. </Grid>
  99. </Layout>
  100. </Layouts>
  101. </Tabpage>
  102. <Tabpage text="개인SET" id="indset">
  103. <Layouts>
  104. <Layout>
  105. <Grid position="absolute 0 0 530 458" id="grd_indset" binddataset="ds_grd_indset">
  106. <Formats>
  107. <Format id="default">
  108. <Columns>
  109. <Column size="530"/>
  110. </Columns>
  111. <Rows>
  112. <Row size="24" band="head"/>
  113. <Row size="24"/>
  114. </Rows>
  115. <Band id="head">
  116. <Cell text="개인SET"/>
  117. </Band>
  118. <Band id="body">
  119. <Cell text="bind:setnm"/>
  120. </Band>
  121. </Format>
  122. </Formats>
  123. </Grid>
  124. <Grid position="absolute 0 26 530 461" treeusecheckbox="false" autofit="col" id="trv_prmsprcpsetlist" binddataset="ds_main_prmsprcpsetlist" style="border:0 solid #33bbbbff,0 solid #bac5ccff,1 solid #bac5ccff,0 solid #bac5ccff;" treeinitstatus="expand,null" selecttype="treecell" oncellclick="switch1_indset_trv_prmsprcpsetlist_oncellclick">
  125. <Formats>
  126. <Format id="default">
  127. <Columns>
  128. <Column size="530"/>
  129. </Columns>
  130. <Rows>
  131. <Row size="24"/>
  132. </Rows>
  133. <Band id="body">
  134. <Cell displaytype="tree" edittype="tree" style="line:0 none #808080ff ;background:white;background2:white;" text="bind:setnm" treestartlevel="1" treelevel="bind:levl"/>
  135. </Band>
  136. </Format>
  137. </Formats>
  138. </Grid>
  139. </Layout>
  140. </Layouts>
  141. </Tabpage>
  142. <Tabpage text="상병력" position="absolute 0 0 533 486" id="snwhist">
  143. <Layouts>
  144. <Layout>
  145. <Grid position="absolute 0 0 530 461" align="align:center middle;" id="grd_snwhistinfo" binddataset="ds_main_snwhistlist" oncelldblclick="switch1_snwhist_grd_snwhistinfo_oncelldblclick">
  146. <Formats>
  147. <Format id="default">
  148. <Columns>
  149. <Column size="85"/>
  150. <Column size="55"/>
  151. <Column size="80"/>
  152. <Column size="130"/>
  153. <Column size="100"/>
  154. <Column size="0"/>
  155. <Column size="0"/>
  156. <Column size="80"/>
  157. </Columns>
  158. <Rows>
  159. <Row size="24" band="head"/>
  160. <Row size="24"/>
  161. </Rows>
  162. <Band id="head">
  163. <Cell text="진료과"/>
  164. <Cell col="1" text="진료의"/>
  165. <Cell col="2" text="진단코드"/>
  166. <Cell col="3" text="영문명"/>
  167. <Cell col="4" text="한글명"/>
  168. <Cell col="5" text="dispdiagcd"/>
  169. <Cell col="6" text="orgdiagcd"/>
  170. <Cell col="7" text="최초진단일"/>
  171. </Band>
  172. <Band id="body">
  173. <Cell style="align:left middle;" text="bind:deptnm"/>
  174. <Cell col="1" text="bind:orddrnm"/>
  175. <Cell col="2" text="bind:dispdiagcd"/>
  176. <Cell col="3" style="align:left middle;" text="bind:diagengnm"/>
  177. <Cell col="4" style="align:left middle;" text="bind:diaghngnm"/>
  178. <Cell col="5" text="bind:dispdiagcd"/>
  179. <Cell col="6" text="bind:orgdiagcd"/>
  180. <Cell col="7" text="bind:fstrgstdd" mask="####-##-##"/>
  181. </Band>
  182. </Format>
  183. </Formats>
  184. </Grid>
  185. </Layout>
  186. </Layouts>
  187. </Tabpage>
  188. <Tabpage text="다빈도(개인)" id="multifreq">
  189. <Layouts>
  190. <Layout>
  191. <Grid position="absolute 0 0 530 461" id="grd_multifreq" binddataset="ds_main_multifreqlist" oncelldblclick="switch1_multifreq_grd_multifreq_oncelldblclick">
  192. <Formats>
  193. <Format id="default">
  194. <Columns>
  195. <Column size="100"/>
  196. <Column size="200"/>
  197. <Column size="200"/>
  198. <Column size="0"/>
  199. <Column size="0"/>
  200. <Column size="0"/>
  201. </Columns>
  202. <Rows>
  203. <Row size="24" band="head"/>
  204. <Row size="24"/>
  205. </Rows>
  206. <Band id="head">
  207. <Cell text="진단코드"/>
  208. <Cell col="1" text="영문명"/>
  209. <Cell col="2" text="한글명"/>
  210. <Cell col="3"/>
  211. <Cell col="4"/>
  212. <Cell col="5"/>
  213. </Band>
  214. <Band id="body">
  215. <Cell style="align:left middle;" text="bind:diagcd"/>
  216. <Cell col="1" style="align:left middle;" text="bind:diagengnm"/>
  217. <Cell col="2" style="align:left middle;" text="bind:diaghngnm"/>
  218. <Cell col="3" text="bind:spclinfo"/>
  219. <Cell col="4" text="bind:icd10cd"/>
  220. <Cell col="5" text="bind:dispdiagcd"/>
  221. </Band>
  222. </Format>
  223. </Formats>
  224. </Grid>
  225. </Layout>
  226. </Layouts>
  227. </Tabpage>
  228. <Tabpage text="내원정보" id="choshist">
  229. <Layouts>
  230. <Layout>
  231. <Combo position="absolute 96 9 198 29" id="cmb_deptlist" innerdataset="@ds_orddept" datacolumn="depthngnm" codecolumn="deptcd" onitemchanged="switch1_choshist_cmb_deptlist_onitemchanged"/>
  232. <Combo position="absolute 199 9 288 29" id="cmb_drlist" visible="false" innerdataset="ds_userlist" datacolumn="usernm" codecolumn="userid"/>
  233. <Grid position="absolute 0 40 530 461" id="grd_chosinfo" binddataset="ds_main_choshistlist" oncelldblclick="switch1_choshist_grd_chosinfo_oncelldblclick">
  234. <Formats>
  235. <Format id="default">
  236. <Columns>
  237. <Column size="0"/>
  238. <Column size="76"/>
  239. <Column size="122"/>
  240. <Column size="208"/>
  241. <Column size="0"/>
  242. <Column size="0"/>
  243. <Column size="0"/>
  244. <Column size="124"/>
  245. <Column size="0"/>
  246. <Column size="0"/>
  247. <Column size="0"/>
  248. <Column size="0"/>
  249. </Columns>
  250. <Rows>
  251. <Row size="24" band="head"/>
  252. <Row size="24"/>
  253. </Rows>
  254. <Band id="head">
  255. <Cell text="levl"/>
  256. <Cell col="1" text="구분"/>
  257. <Cell col="2" text="진단일"/>
  258. <Cell col="3" text="진단과"/>
  259. <Cell col="4" text="pid"/>
  260. <Cell col="5" text="orddd"/>
  261. <Cell col="6" text="cretno"/>
  262. <Cell col="7" text="진단의사"/>
  263. <Cell col="8" text="pid"/>
  264. <Cell col="9" text="orddd"/>
  265. <Cell col="10" text="cretno"/>
  266. <Cell col="11" text="indxcd"/>
  267. </Band>
  268. <Band id="body">
  269. <Cell text="bind:ioflag"/>
  270. <Cell col="1" displaytype="combo" edittype="none" style="align:left middle;" text="bind:ioflag" combodataset="ds_ioflag" combocodecol="value" combodatacol="label"/>
  271. <Cell col="2" style="align:left middle;" text="bind:diagdd" mask="####-##-##"/>
  272. <Cell col="3" style="align:left middle;" text="bind:orddeptnm"/>
  273. <Cell col="4" style="align:left middle;" text="bind:pid"/>
  274. <Cell col="5" style="align:left middle;" text="bind:orddd"/>
  275. <Cell col="6" style="align:left middle;" text="bind:cretno"/>
  276. <Cell col="7" style="align:left middle;" text="bind:orddrnm"/>
  277. <Cell col="8" text="bind:pid"/>
  278. <Cell col="9" text="bind:orddd"/>
  279. <Cell col="10" text="bind:cretno"/>
  280. <Cell col="11" text="bind:indxcd"/>
  281. </Band>
  282. </Format>
  283. </Formats>
  284. </Grid>
  285. <Combo position="absolute 7 9 95 29" id="cmb_choscond" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="switch1_choshist_cmb_choscond_onitemchanged">
  286. <Dataset id="innerdataset">
  287. <ColumnInfo>
  288. <Column id="codecolumn"/>
  289. <Column id="datacolumn"/>
  290. </ColumnInfo>
  291. <Rows>
  292. <Row>
  293. <Col id="codecolumn">diagdd</Col>
  294. <Col id="datacolumn">진단일</Col>
  295. </Row>
  296. <Row>
  297. <Col id="codecolumn">orddept</Col>
  298. <Col id="datacolumn">진료과</Col>
  299. </Row>
  300. <Row>
  301. <Col id="codecolumn">orddr</Col>
  302. <Col id="datacolumn">진단의사</Col>
  303. </Row>
  304. </Rows>
  305. </Dataset>
  306. </Combo>
  307. <Button position="absolute 292 9 346 29" id="btn_srch" class="btn1" text="검색" onclick="switch1_choshist_btn_srch_onclick"/>
  308. <Calendar position="absolute 100 9 184 29" id="ipt_diagfromdd" dateformat="yyyy-MM-dd" value="null" autoselect="true" onkeydown="switch1_choshist_ipt_diagfromdd_onkeydown"/>
  309. <Calendar position="absolute 199 9 283 29" id="ipt_diagtodd" dateformat="yyyy-MM-dd" value="null" autoselect="true" onkeydown="switch1_choshist_ipt_diagtodd_onkeydown"/>
  310. <Static text="~" position="absolute 185 9 202 29" id="caption5"/>
  311. </Layout>
  312. </Layouts>
  313. </Tabpage>
  314. </Tabpages>
  315. </Tab>
  316. <Static text="진단내역" position="absolute 539 341 619 361" align="align:center middle;" id="caption1" class="tit_2"/>
  317. <Button position="absolute 1059 332 1112 352" id="btn_init" class="btn2" text="초기화" onclick="btn_init_onclick" tooltiptext="조회된 진단코드를 화면에서 지웁니다" tooltiptype="hover"/>
  318. <Button position="absolute 1114 332 1178 352" id="btn_adddiag" class="btn2" text="진단추가" onclick="btn_adddiag_onclick"/>
  319. <Button position="absolute 1065 509 1121 529" id="btn_savediag" class="btn4" text="확인" onclick="btn_savediag_onclick"/>
  320. <Button position="absolute 1122 509 1178 529" id="btn_diagcncl" class="btn4" text="삭제" onclick="btn_diagcncl_onclick"/>
  321. <Grid position="absolute 539 45 1178 329" id="grd_diagcdlist" binddataset="ds_main_diagcdlist" autofittype="none" oncelldblclick="grd_diagcdlist_oncelldblclick" oncellclick="grd_diagcdlist_oncellclick" onrbuttondown="grd_diagcdlist_onrbuttondown" selecttype="multirow" cellsizingtype="col">
  322. <Formats>
  323. <Format id="default">
  324. <Columns>
  325. <Column size="28"/>
  326. <Column size="0"/>
  327. <Column size="96"/>
  328. <Column size="175"/>
  329. <Column size="175"/>
  330. <Column size="55"/>
  331. <Column size="27"/>
  332. <Column size="32"/>
  333. <Column size="50"/>
  334. </Columns>
  335. <Rows>
  336. <Row size="24" band="head"/>
  337. <Row size="24"/>
  338. </Rows>
  339. <Band id="head">
  340. <Cell/>
  341. <Cell col="1" text="진단코드"/>
  342. <Cell col="2" text="진단코드"/>
  343. <Cell col="3" text="영문명"/>
  344. <Cell col="4" text="한글명"/>
  345. <Cell col="5" text="참고"/>
  346. <Cell col="6" text="특례"/>
  347. <Cell col="7" text="경증"/>
  348. <Cell col="8" text="치식"/>
  349. </Band>
  350. <Band id="body">
  351. <Cell displaytype="checkbox" edittype="checkbox" style="background:white;background2:white;" text="bind:status"/>
  352. <Cell col="1" style="background:white;background2:white;" text="bind:icd10cd"/>
  353. <Cell col="2" style="align:left middle;background:white;background2:white;" text="bind:dispdiagcd"/>
  354. <Cell col="3" style="align:left middle;background:white;background2:white;" text="bind:diagengnm"/>
  355. <Cell col="4" style="align:left middle;background:white;background2:white;" text="bind:diaghngnm"/>
  356. <Cell col="5" style="align:left middle;background:white;background2:white;" text="bind:refval"/>
  357. <Cell col="6" displaytype="combo" edittype="none" style="align:center middle;background:white;background2:white;" text="bind:spclinfo" combodataset="ds_combo_spclinfo" combocodecol="value" combodatacol="label"/>
  358. <Cell col="7" style="align:center middle;background:white;background2:white;color:expr:drginfo==&quot;경증&quot; ? &quot;#0000ff&quot; : &quot;default&quot;;color2:expr:drginfo==&quot;경증&quot; ? &quot;#0000ff&quot; : &quot;default&quot;;" text="bind:lightcase"/>
  359. <Cell col="8" displaytype="combo" edittype="none" style="align:left middle;background:white;background2:white;" text="bind:tootflagcd" combodataset="ds_combo_tootflagcd" combocodecol="value" combodatacol="label"/>
  360. </Band>
  361. </Format>
  362. </Formats>
  363. </Grid>
  364. <Button position="absolute 544 51 560 67" id="btn_expand" class="icon_pre_year" text="" onclick="btn_expand_onclick"/>
  365. <Grid position="absolute 539 362 1178 506" id="grd_diaghist" binddataset="ds_param_diagcdlist" cellclickbound="cell" autofittype="col" cellsizingtype="col">
  366. <Formats>
  367. <Format id="default">
  368. <Columns>
  369. <Column size="30"/>
  370. <Column size="92"/>
  371. <Column size="245"/>
  372. <Column size="212"/>
  373. <Column size="0"/>
  374. <Column size="27"/>
  375. <Column size="0"/>
  376. <Column size="0"/>
  377. <Column size="0"/>
  378. <Column size="0"/>
  379. <Column size="32"/>
  380. </Columns>
  381. <Rows>
  382. <Row size="24" band="head"/>
  383. <Row size="24"/>
  384. </Rows>
  385. <Band id="head">
  386. <Cell/>
  387. <Cell col="1" text="진단코드"/>
  388. <Cell col="2" text="영문명"/>
  389. <Cell col="3" text="한글명"/>
  390. <Cell col="4" text="유사/동의어"/>
  391. <Cell col="5" text="특례"/>
  392. <Cell col="6" text="orgdiagcd"/>
  393. <Cell col="7" text="tootfact"/>
  394. <Cell col="8" text="icd10cd"/>
  395. <Cell col="9" text="diagcd"/>
  396. <Cell col="10" text="경증"/>
  397. </Band>
  398. <Band id="body">
  399. <Cell displaytype="combo" edittype="combo" text="bind:status" expr="expr:(status == &quot;I&quot; || status == 1) ? 1 : 0"/>
  400. <Cell col="1" style="align:left middle;" text="bind:dispdiagcd"/>
  401. <Cell col="2" style="align:left middle;" text="bind:diagengnm"/>
  402. <Cell col="3" style="align:left middle;" text="bind:diaghngnm"/>
  403. <Cell col="4" text="bind:orgdiagnm"/>
  404. <Cell col="5" text="bind:spclinfo"/>
  405. <Cell col="6" text="bind:orgdiagcd"/>
  406. <Cell col="7" text="bind:tootfact"/>
  407. <Cell col="8" text="bind:icd10cd"/>
  408. <Cell col="9" text="bind:diagcd"/>
  409. <Cell col="10" style="color:expr:drginfo==&quot;경증&quot; ? &quot;#0000ff&quot; : &quot;default&quot;;color2:expr:drginfo==&quot;경증&quot; ? &quot;#0000ff&quot; : &quot;default&quot;;" text="bind:lightcase"/>
  410. </Band>
  411. </Format>
  412. </Formats>
  413. </Grid>
  414. <Div id="Div00" taborder="1" text="Div00" position="absolute 539 3 1178 39" class="div_SA2">
  415. <Layouts>
  416. <Layout>
  417. <Shape id="line1" linetype="vertical" position="absolute 559 6 565 28" anchor="default"/>
  418. <Button id="btn_req" taborder="1" text="조회" class="btn1" position="absolute 574 8 630 28" anchor="default" onclick="Div00_btn_req_onclick"/>
  419. <CheckBox id="checkbox1" taborder="2" position="absolute 315 8 369 28" anchor="default" text="전체" truevalue="all" tooltiptext="대표어를 포함한 전체 진단조회" tooltiptype="hover"/>
  420. <Edit id="ipt_search" taborder="3" position="absolute 94 8 303 28" anchor="default" autoselect="true" onkeydown="Div00_ipt_search_onkeydown"/>
  421. <Static id="caption3" text="검색어 :" class="search_name" position="absolute 13 8 83 28" anchor="default"/>
  422. </Layout>
  423. </Layouts>
  424. </Div>
  425. <PopupMenu id="pmn_menu" innerdataset="@ds_menu" idcolumn="func" captioncolumn="name" levelcolumn="level" onmenuclick="pmn_menu_onmenuclick" position="absolute 1183 74 1272 96"/>
  426. </Layout>
  427. </Layouts>
  428. <Objects>
  429. <Dataset id="ds_paminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  430. <Dataset id="ds_patflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  431. <Dataset id="ds_main_prmsprcpsetlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  432. <ColumnInfo>
  433. <Column id="levl" type="INT" size="256" sumtext="level값"/>
  434. <Column id="setno" type="STRING" size="256" sumtext="set번호"/>
  435. <Column id="settypecd" type="STRING" size="256" sumtext="set종류코드"/>
  436. <Column id="supsetno" type="STRING" size="256" sumtext="상위set번호"/>
  437. <Column id="setkindcd" type="STRING" size="256" sumtext="set종류코드"/>
  438. <Column id="setclscd" type="STRING" size="256" sumtext="set분류코드"/>
  439. <Column id="settrgtcd" type="STRING" size="256" sumtext="대상코드(과,개인)"/>
  440. <Column id="prtlno" type="STRING" size="256" sumtext="프로토콜번호"/>
  441. <Column id="setnm" type="STRING" size="256" sumtext="set명"/>
  442. <Column id="ioflag" type="STRING" size="256" sumtext="외래입원구분"/>
  443. <Column id="setrefseq" type="STRING" size="256" sumtext="순서"/>
  444. </ColumnInfo>
  445. </Dataset>
  446. <Dataset id="ds_main_indxcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  447. <ColumnInfo>
  448. <Column id="levl" type="STRING" size="256" sumtext="레벨"/>
  449. <Column id="indxcd" type="STRING" size="256" sumtext="index코드"/>
  450. <Column id="upindxcd" type="STRING" size="256" sumtext="상위index코드"/>
  451. <Column id="hngnm" type="STRING" size="256" sumtext="index한글명"/>
  452. <Column id="engnm" type="STRING" size="256" sumtext="index영문명"/>
  453. </ColumnInfo>
  454. </Dataset>
  455. <Dataset id="ds_main_snwhistlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  456. <ColumnInfo>
  457. <Column id="deptnm" type="STRING" size="256" sumtext="부서명"/>
  458. <Column id="orddrnm" type="STRING" size="256" sumtext="진료의명"/>
  459. <Column id="diagcd" type="STRING" size="256" sumtext="진단코드"/>
  460. <Column id="diagengnm" type="STRING" size="256" sumtext="진단영문명"/>
  461. <Column id="diaghngnm" type="STRING" size="256" sumtext="진단한글명"/>
  462. <Column id="fstrgstdd" type="STRING" size="256" sumtext="최초등록일"/>
  463. <Column id="orgdiagcd" type="STRING" size="256" sumtext="원진단코드"/>
  464. <Column id="dispdiagcd" type="STRING" size="256" sumtext="display진단코드"/>
  465. </ColumnInfo>
  466. </Dataset>
  467. <Dataset id="ds_main_deptindxcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  468. <ColumnInfo>
  469. <Column id="levl" type="STRING" size="256" sumtext="level값"/>
  470. <Column id="deptcd" type="STRING" size="256" sumtext="부서코드"/>
  471. <Column id="deptindxcd" type="STRING" size="256" sumtext="부서index코드"/>
  472. <Column id="deptupindxcd" type="STRING" size="256" sumtext="부서상위index코드"/>
  473. <Column id="deptindxnm" type="STRING" size="256" sumtext="부서index명"/>
  474. </ColumnInfo>
  475. </Dataset>
  476. <Dataset id="ds_main_multifreqlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  477. <ColumnInfo>
  478. <Column id="diagcd" type="STRING" size="256" sumtext="진단코드"/>
  479. <Column id="diagengnm" type="STRING" size="256" sumtext="진단영문명"/>
  480. <Column id="diaghngnm" type="STRING" size="256" sumtext="진단한글명"/>
  481. <Column id="spclinfo" type="STRING" size="256" sumtext="특례정보"/>
  482. <Column id="icd10cd" type="STRING" size="256" sumtext="특례정보"/>
  483. <Column id="dispdiagcd" type="STRING" size="256" sumtext="특례정보"/>
  484. </ColumnInfo>
  485. </Dataset>
  486. <Dataset id="ds_main_choscond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  487. <ColumnInfo>
  488. <Column id="cmbflag" type="STRING" size="256"/>
  489. <Column id="diagfromdd" type="STRING" size="256"/>
  490. <Column id="drid" type="STRING" size="256"/>
  491. <Column id="orddeptcd" type="STRING" size="256"/>
  492. <Column id="diagtodd" type="STRING" size="256"/>
  493. </ColumnInfo>
  494. <Rows>
  495. <Row>
  496. <Col id="cmbflag">diagdd</Col>
  497. </Row>
  498. </Rows>
  499. </Dataset>
  500. <Dataset id="ds_orddept" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  501. <Dataset id="ds_main_choshistlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  502. <ColumnInfo>
  503. <Column id="ioflag" type="STRING" size="256" sumtext="진료구분"/>
  504. <Column id="diagdd" type="STRING" size="256" sumtext="진단일자"/>
  505. <Column id="orddeptcd" type="STRING" size="256" sumtext="부서코드"/>
  506. <Column id="orddeptnm" type="STRING" size="256" sumtext="부서명"/>
  507. <Column id="orddrid" type="STRING" size="256" sumtext="의사ID"/>
  508. <Column id="orddrnm" type="STRING" size="256" sumtext="의사명"/>
  509. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  510. <Column id="orddd" type="STRING" size="256" sumtext="진료일자"/>
  511. <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
  512. </ColumnInfo>
  513. </Dataset>
  514. <Dataset id="ds_main_diagcdlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  515. <ColumnInfo>
  516. <Column id="status" type="STRING" size="256" sumtext="status"/>
  517. <Column id="diagdd" type="STRING" size="256" sumtext="진단일자"/>
  518. <Column id="diagno" type="STRING" size="256" sumtext="진단번호"/>
  519. <Column id="diaghistno" type="STRING" size="256" sumtext="진단이력번호"/>
  520. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  521. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  522. <Column id="orddd" type="STRING" size="256" sumtext="진료일자"/>
  523. <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
  524. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과코드"/>
  525. <Column id="orddrid" type="STRING" size="256" sumtext="진료의ID"/>
  526. <Column id="genrflagcd" type="STRING" size="256" sumtext="발생구분코드"/>
  527. <Column id="diaghistcd" type="STRING" size="256" sumtext="진단이력코드"/>
  528. <Column id="diagcd" type="STRING" size="256" sumtext="진단코드"/>
  529. <Column id="diagtypecd" type="STRING" size="256" sumtext="진단형태코드"/>
  530. <Column id="diagkindcd" type="STRING" size="256" sumtext="진단종류코드"/>
  531. <Column id="diagkindcdflag" type="STRING" size="256" sumtext="진단종류코드구분"/>
  532. <Column id="anamneflag" type="STRING" size="256" sumtext="기왕증구분"/>
  533. <Column id="tootflagcd" type="STRING" size="256" sumtext="치식구분코드"/>
  534. <Column id="diagsignflag" type="STRING" size="256" sumtext="진단서명구분"/>
  535. <Column id="tootfact" type="STRING" size="256" sumtext="치식사항"/>
  536. <Column id="diagengnm" type="STRING" size="256" sumtext="진단영문명"/>
  537. <Column id="diaghngnm" type="STRING" size="256" sumtext="진단한글명"/>
  538. <Column id="icd10cd" type="STRING" size="256" sumtext="ICD10코드"/>
  539. <Column id="spclinfo" type="STRING" size="256" sumtext="특례정보"/>
  540. <Column id="dispdiagcd" type="STRING" size="256" sumtext="전시진단코드"/>
  541. <Column id="lightcase" type="STRING" size="256" sumtext="경증유무"/>
  542. </ColumnInfo>
  543. </Dataset>
  544. <Dataset id="ds_param_diagcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_param_diagcdlist_oncolumnchanged">
  545. <ColumnInfo>
  546. <Column id="status" type="STRING" size="256"/>
  547. <Column id="dispdiagcd" type="STRING" size="256"/>
  548. <Column id="diagengnm" type="STRING" size="256"/>
  549. <Column id="diaghngnm" type="STRING" size="256"/>
  550. <Column id="orgdiagnm" type="STRING" size="256"/>
  551. <Column id="spclinfo" type="STRING" size="256"/>
  552. <Column id="orgdiagcd" type="STRING" size="256"/>
  553. <Column id="tootfact" type="STRING" size="256"/>
  554. <Column id="icd10cd" type="STRING" size="256"/>
  555. <Column id="diagcd" type="STRING" size="256"/>
  556. <Column id="lightcase" type="STRING" size="256" sumtext="경증"/>
  557. </ColumnInfo>
  558. </Dataset>
  559. <Dataset id="ds_userlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  560. <Dataset id="ds_ioflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  561. <ColumnInfo>
  562. <Column id="label" type="STRING" size="256"/>
  563. <Column id="value" type="STRING" size="256"/>
  564. </ColumnInfo>
  565. <Rows>
  566. <Row>
  567. <Col id="label">외래</Col>
  568. <Col id="value">O</Col>
  569. </Row>
  570. <Row>
  571. <Col id="label">입원</Col>
  572. <Col id="value">I</Col>
  573. </Row>
  574. <Row>
  575. <Col id="label">응급</Col>
  576. <Col id="value">E</Col>
  577. </Row>
  578. </Rows>
  579. </Dataset>
  580. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  581. <ColumnInfo>
  582. <Column id="reqdata" type="STRING" size="256"/>
  583. <Column id="reqflag" type="STRING" size="256"/>
  584. </ColumnInfo>
  585. <Rows>
  586. <Row/>
  587. </Rows>
  588. </Dataset>
  589. <Dataset id="ds_menu" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  590. <ColumnInfo>
  591. <Column id="name" type="STRING" size="256"/>
  592. <Column id="func" type="STRING" size="256"/>
  593. <Column id="level" type="STRING" size="256"/>
  594. </ColumnInfo>
  595. <Rows>
  596. <Row>
  597. <Col id="name">즐겨찾기 추가</Col>
  598. <Col id="func">fAddEnjoyPrivate</Col>
  599. <Col id="level">0</Col>
  600. </Row>
  601. </Rows>
  602. </Dataset>
  603. <PropertyAnimation id="PropertyAnimation00" endingmode="to" repeat="1" repeattype="normal" duration="0" starttime="0"/>
  604. <Dataset id="ds_combo_spclinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  605. <ColumnInfo>
  606. <Column id="label" type="STRING" size="256"/>
  607. <Column id="value" type="STRING" size="256"/>
  608. </ColumnInfo>
  609. <Rows>
  610. <Row>
  611. <Col id="label">Y</Col>
  612. <Col id="value">Y</Col>
  613. </Row>
  614. <Row>
  615. <Col id="label">N</Col>
  616. <Col id="value">N</Col>
  617. </Row>
  618. </Rows>
  619. </Dataset>
  620. <Dataset id="ds_combo_tootflagcd" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  621. <ColumnInfo>
  622. <Column id="label" type="STRING" size="256"/>
  623. <Column id="value" type="STRING" size="256"/>
  624. </ColumnInfo>
  625. <Rows>
  626. <Row>
  627. <Col id="label">Y</Col>
  628. <Col id="value">Y</Col>
  629. </Row>
  630. <Row>
  631. <Col id="label">N</Col>
  632. <Col id="value">N</Col>
  633. </Row>
  634. </Rows>
  635. </Dataset>
  636. </Objects>
  637. <Bind>
  638. <BindItem id="item0" compid="switch1.choshist.cmb_choscond" propid="value" datasetid="ds_main_choscond" columnid="cmbflag"/>
  639. <BindItem id="item1" compid="switch1.choshist.ipt_diagfromdd" propid="value" datasetid="ds_main_choscond" columnid="diagfromdd"/>
  640. <BindItem id="item2" compid="switch1.choshist.ipt_diagtodd" propid="value" datasetid="ds_main_choscond" columnid="diagtodd"/>
  641. <BindItem id="item3" compid="switch1.choshist.cmb_deptlist" propid="value" datasetid="ds_main_choscond" columnid="orddeptcd"/>
  642. <BindItem id="item4" compid="switch1.choshist.cmb_drlist" propid="value" datasetid="ds_main_choscond" columnid="drid"/>
  643. <BindItem id="item5" compid="Div00.ipt_search" propid="value" datasetid="ds_main_cond" columnid="reqdata"/>
  644. <BindItem id="item6" compid="Div00.checkbox1" propid="value" datasetid="ds_main_cond" columnid="reqflag"/>
  645. </Bind>
  646. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  647. * System Name :
  648. * Job Name :
  649. * Creator :
  650. * Make Date : 2014-12-10
  651. * Description :
  652. *---------------------------------------------------------------------------------------
  653. * Modify Date Modifier Modify Description
  654. *---------------------------------------------------------------------------------------
  655. * 2014-12-10 Live Converter TF->XP
  656. *
  657. *---------------------------------------------------------------------------------------
  658. ****************************************************************************************/
  659. include "com_commonxp::comm_main.xjs";
  660. include "emr_prcpmngtxp::MMO001.xjs";
  661. var exndflag = true; //진단화면의 grid 확대, 축소 상태값
  662. var gPRCPDD = ""; //처방일자(입원환자 상단정보 조회를 위한)
  663. var gPID = "";
  664. var gORDDD = "";
  665. var sORDERBY = "desc";
  666. function SPMMO03100_oninit(obj:Form, e:InitEventInfo)
  667. {
  668. frmf_initForm(obj);
  669. grdf_initGrid(switch1.snwhist.grd_snwhistinfo);
  670. grdf_initGrid(grd_diagcdlist);
  671. grdf_initGrid(grd_diaghist);
  672. }
  673. function SPMMO03100_onload(obj:Form, e:LoadEventInfo)
  674. {
  675. grdf_setToolTipBind(switch1.snwhist.grd_snwhistinfo);
  676. grdf_setToolTipBind(switch1.multifreq.grd_multifreq);
  677. grdf_setToolTipBind(grd_diagcdlist);
  678. grdf_setToolTipBind(grd_diaghist);
  679. fInitialize_SPMMO03100();
  680. }
  681. function switch1_canchange(obj:Tab, e:TabIndexChangeEventInfo)
  682. {
  683. fChngDiagScrn(obj.components[e.postindex].name);
  684. }
  685. function switch1_indset_trv_prmsprcpsetlist_oncellclick(obj:Grid, e:GridClickEventInfo)
  686. {
  687. fSelectPrmsSET();
  688. }
  689. function ds_param_diagcdlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  690. {
  691. if(e.columnid == "status")
  692. obj.setColumn(e.row, e.columnid, (e.newvalue == "I" || e.newvalue == 1) ? "I" : "N");
  693. }
  694. function switch1_snwhist_grd_snwhistinfo_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  695. {
  696. if(e.row < 0 || e.col < 0) return;
  697. var currow = e.row;
  698. var diagcd = ds_main_snwhistlist.getColumn(currow, "orgdiagcd");
  699. dsf_createDsRow("ds_send_reqdata", [{col:"cond1", type:"string", size:256, val:1} //코드로 조회
  700. ,{col:"cond2", type:"string", size:256, val:1} //코드로 조회
  701. ,{col:"cond3", type:"string", size:256, val:"E"}
  702. ,{col:"cond4", type:"string", size:256, val:utlf_getCurrentDate()}
  703. ,{col:"cond5", type:"string", size:256, val:diagcd}]);
  704. var oParam = {};
  705. oParam.id = "TRMMO03103";
  706. oParam.service = "prcpmngtapp.PatDiagMngt";
  707. oParam.method = "reqGetDiagTermSrch";
  708. oParam.inds = "req=ds_send_reqdata";
  709. oParam.outds = "ds_main_diagcdlist=diagcdlist";
  710. oParam.async = true;
  711. oParam.callback = "cf_TRMMO03103";
  712. tranf_submit(oParam); // 코드로 검색 하여 결과가 있으면 바로 진단 내역으로 추가 한다.
  713. }
  714. function cf_TRMMO03103(sSvcId, nErrorCode, sErrorMsg) {
  715. if(nErrorCode < 0) return;
  716. for(var i = 0; i < ds_main_diagcdlist.rowcount; i++) {
  717. fAddDiagHist(i);
  718. }
  719. }
  720. function switch1_icd10_trv_icd10indxcdlist_oncellclick(obj:Grid, e:GridClickEventInfo)
  721. {
  722. fSelectICD10(e.row);
  723. }
  724. function switch1_icd10_trv_icd10indxcdlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  725. {
  726. var row = obj.getTreeRow(e.row);
  727. if(obj.getTreeStatus(row) == 0)
  728. obj.setTreeStatus(row, true);
  729. else if(obj.getTreeStatus(row) == 1)
  730. obj.setTreeStatus(row, false);
  731. }
  732. function switch1_choshist_cmb_deptlist_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  733. {
  734. if(obj.value != "-"){
  735. lf_mmbfGetUserComboList(ds_userlist, obj.value, "0330");
  736. frmf_addComboItem("switch1.choshist.cmb_drlist"); //의사콤보(담당교수) 전체항목 추가
  737. }else{
  738. ds_main_choscond.setColumn(0, "drid", "");
  739. }
  740. }
  741. function switch1_choshist_grd_chosinfo_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  742. {
  743. if(e.row < 0 || e.col < 0) return;
  744. var currow = e.row;
  745. var pid = ds_main_choshistlist.getColumn(currow, "pid");
  746. var orddd = ds_main_choshistlist.getColumn(currow, "orddd");
  747. var cretno = ds_main_choshistlist.getColumn(currow, "cretno");
  748. var orddeptcd = ds_main_choshistlist.getColumn(currow, "orddeptcd");
  749. dsf_createDsRow("ds_send_reqdata", [{col:"pid", type:"string", size:256, val:pid}
  750. ,{col:"orddd", type:"string", size:256, val:orddd}
  751. ,{col:"cretno", type:"string", size:256, val:cretno}
  752. ,{col:"orddeptcd", type:"string", size:256, val:orddeptcd}]);
  753. var oParam = {};
  754. oParam.id = "TRMMO03114";
  755. oParam.service = "prcpmngtapp.PatDiagMngt";
  756. oParam.method = "reqGetPatChosDiagList";
  757. oParam.inds = "req=ds_send_reqdata";
  758. oParam.outds = "ds_main_diagcdlist=diagcdlist";
  759. oParam.async = true;
  760. tranf_submit(oParam);
  761. }
  762. function switch1_choshist_cmb_choscond_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  763. {
  764. fChngChosCond();
  765. }
  766. function switch1_choshist_btn_srch_onclick(obj:Button, e:ClickEventInfo)
  767. {
  768. fReqPatChosHistList();
  769. }
  770. function switch1_choshist_ipt_diagfromdd_onkeydown(obj:Calendar, e:KeyEventInfo)
  771. {
  772. if(e.keycode == 13)
  773. switch1.choshist.btn_srch.onclick.fireEvent(switch1.choshist.btn_srch, new ClickEventInfo());
  774. }
  775. function switch1_choshist_ipt_diagtodd_onkeydown(obj:Calendar, e:KeyEventInfo)
  776. {
  777. if(e.keycode == 13)
  778. switch1.choshist.btn_srch.onclick.fireEvent(switch1.choshist.btn_srch, new ClickEventInfo());
  779. }
  780. function switch1_deptindx_trv_deptindxcdlist_oncellclick(obj:Grid, e:GridClickEventInfo)
  781. {
  782. fSelectDeptIndx(e.row);
  783. }
  784. function switch1_multifreq_grd_multifreq_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  785. {
  786. if(e.row < 0 || e.col < 0) return;
  787. var currow = e.row;
  788. var diagcd = ds_main_multifreqlist.getColumn(currow, "diagcd");
  789. dsf_createDsRow("ds_send_reqdata", [{col:"cond1", type:"string", size:256, val:1} //코드로 조회
  790. ,{col:"cond2", type:"string", size:256, val:1} //코드로 조회
  791. ,{col:"cond3", type:"string", size:256, val:"E"}
  792. ,{col:"cond4", type:"string", size:256, val:utlf_getCurrentDate()}
  793. ,{col:"cond5", type:"string", size:256, val:diagcd}]);
  794. var oParam = {};
  795. oParam.id = "TRMMO03103";
  796. oParam.service = "prcpmngtapp.PatDiagMngt";
  797. oParam.method = "reqGetDiagTermSrch";
  798. oParam.inds = "req=ds_send_reqdata";
  799. oParam.outds = "ds_main_diagcdlist=diagcdlist";
  800. oParam.async = true;
  801. oParam.callback = "cf_TRMMO03103";
  802. tranf_submit(oParam); // 코드로 검색 하여 결과가 있으면 바로 진단 내역으로 추가 한다.
  803. }
  804. function btn_init_onclick(obj:Button, e:ClickEventInfo)
  805. {
  806. ds_main_diagcdlist.clearData();
  807. }
  808. function btn_adddiag_onclick(obj:Button, e:ClickEventInfo)
  809. {
  810. var totrow = ds_main_diagcdlist.rowcount;
  811. for(var i = 0; i < totrow; i++){
  812. var status = ds_main_diagcdlist.getColumn(i, "status");
  813. if(status == "true"){
  814. fAddDiagHist(i);
  815. }
  816. }
  817. }
  818. function btn_savediag_onclick(obj:Button, e:ClickEventInfo)
  819. {
  820. var rtn1 = dsf_getDsCSV(ds_param_diagcdlist, null, "N", "status:I", "Y");
  821. if ( rtn1 == "N" ) {
  822. sysf_messageBox ( "선택된 진단이", "I004" );
  823. } else {
  824. opener.frmf_setParameter( "SPMMO03100_rtn", rtn1 );
  825. opener.frmf_setParameter( "SPMMO03100_rtn_useyn", "Y");
  826. close();
  827. }
  828. }
  829. function btn_diagcncl_onclick(obj:Button, e:ClickEventInfo)
  830. {
  831. fClkBtnDel();
  832. }
  833. function Div00_btn_req_onclick(obj:Button, e:ClickEventInfo)
  834. {
  835. fReqDiagInfo();
  836. }
  837. function grd_diagcdlist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  838. {
  839. fAddDiagHist(e.row);
  840. }
  841. function grd_diagcdlist_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
  842. {
  843. if(e.row < 0) return;
  844. grdf_setSelectedCell(obj, e);
  845. pmn_menu.trackPopup(e.screenX,e.screenY);
  846. }
  847. function pmn_menu_onmenuclick(obj:PopupMenu, e:MenuClickEventInfo)
  848. {
  849. eval(e.id + "()");
  850. }
  851. function grd_diagcdlist_oncellclick(obj:Grid, e:GridClickEventInfo)
  852. {
  853. if(e.row < 0 || e.col < 0) return;
  854. if(e.col != grd_diagcdlist.getBindCellIndex("body", "status")){
  855. var status = ds_main_diagcdlist.getColumn(e.row, "status");
  856. if(status == "true"){
  857. ds_main_diagcdlist.setColumn(e.row, "status", "false");
  858. }else{
  859. ds_main_diagcdlist.setColumn(e.row, "status", "true");
  860. }
  861. }
  862. }
  863. function btn_expand_onclick(obj:Button, e:ClickEventInfo)
  864. {
  865. fCtrlSizeDiagList();
  866. }
  867. function Div00_ipt_search_onkeydown(obj:Edit, e:KeyEventInfo)
  868. {
  869. if(e.keycode == 13) {
  870. ds_main_cond.setColumn(0, "reqdata", Div00.ipt_search.value);
  871. //Div00.btn_req.onclick.fireEvent(Div00.btn_req, new ClickEventInfo());
  872. var ev = new ClickEventInfo;
  873. frmf_inputEnterKey("Div00.btn_req", "onclick", ev );
  874. }
  875. }
  876. /**
  877. * @desc : 화면 초기화
  878. * @
  879. * @param :
  880. * @return :
  881. * @author : 오지훈
  882. * @---------------------------------------------------
  883. */
  884. function fInitialize_SPMMO03100(){
  885. ds_main_diagcdlist.clearData();
  886. ds_param_diagcdlist.clearData();
  887. ds_main_snwhistlist.clearData();
  888. ds_main_choshistlist.clearData();
  889. var patinfo = opener.frmf_getParameter("SPMMO03100_patinfo");
  890. if(!utlf_isNull(patinfo) && patinfo.length > 0){ // parameter가 있는 경우
  891. patinfo = patinfo.split("▦");
  892. gPID = patinfo[0];
  893. gORDDD = patinfo[1];
  894. }else{ // parameter가 없는 경우
  895. var paminfo = sysf_getGlobalVariable("paminfo");
  896. var patflag = sysf_getGlobalVariable("patflag");
  897. if(paminfo.length <1){ //환자 원무 정보를 찾을 수 없는 경우
  898. sysf_messageBox("선택된 환자 정보를 찾을 수", "I004");
  899. close();
  900. return;
  901. }else{
  902. dsf_setCSVToDs("ds_paminfo", paminfo);
  903. dsf_setCSVToDs("ds_patflag", patflag);
  904. gPID = ds_paminfo.getColumn(0, "pid");
  905. var ioflag = ds_patflag.getColumn(0, "prcpgenrflag");
  906. if(ioflag == "O" || ioflag == "S"){
  907. gORDDD= ds_paminfo.getColumn(0, "orddd");
  908. }else{
  909. gORDDD= ds_paminfo.getColumn(0, "indd");
  910. }
  911. }
  912. }
  913. // 2009. 02.10 pymi
  914. if(opener.frmf_getParameter("SPMMO03100_param") == "Y") {
  915. //fChngDiagScrn("deptindx");
  916. switch1.tabindex = 1; // 과색인
  917. } else {
  918. //fChngDiagScrn("snwhist"); //default로 상병력코드 탭을 설정
  919. switch1.tabindex = 3; //default로 상병력코드 탭을 설정
  920. }
  921. }
  922. /**
  923. * @desc : 복수의 진단코드, 진단내역 등록
  924. * @
  925. * @param :
  926. * @return :
  927. * @author : 오지훈
  928. * @---------------------------------------------------
  929. */
  930. function fAddDiagHist(srcRow){
  931. var diagcd = ds_main_diagcdlist.getColumn(srcRow, "diagcd");
  932. var diagengnm = ds_main_diagcdlist.getColumn(srcRow, "diagengnm");
  933. var diaghngnm = ds_main_diagcdlist.getColumn(srcRow, "diaghngnm");
  934. var icd10cd = ds_main_diagcdlist.getColumn(srcRow, "icd10cd");
  935. var dispdiagcd= ds_main_diagcdlist.getColumn(srcRow, "dispdiagcd");
  936. var spclinfo = ds_main_diagcdlist.getColumn(srcRow, "spclinfo");
  937. //20191015 이돈희 : 4주기 상급종합병원 지정 평가를 위한 경증 정보 추가
  938. var lightcase = ds_main_diagcdlist.getColumn(srcRow, "lightcase");
  939. var desRow = ds_param_diagcdlist.addRow();
  940. ds_param_diagcdlist.setColumn(desRow, "status" , "I");
  941. ds_param_diagcdlist.setColumn(desRow, "dispdiagcd" , dispdiagcd);
  942. ds_param_diagcdlist.setColumn(desRow, "diagengnm" , diagengnm);
  943. ds_param_diagcdlist.setColumn(desRow, "diaghngnm" , diaghngnm);
  944. ds_param_diagcdlist.setColumn(desRow, "spclinfo" , spclinfo);
  945. ds_param_diagcdlist.setColumn(desRow, "orgdiagcd" , diagcd);
  946. ds_param_diagcdlist.setColumn(desRow, "icd10cd" , icd10cd);
  947. ds_param_diagcdlist.setColumn(desRow, "diagcd" , diagcd);
  948. ds_param_diagcdlist.setColumn(desRow, "lightcase" , lightcase);
  949. }
  950. /**
  951. * @desc : 진단화면 변경
  952. * @
  953. * @param : scrnflag - 화면구분 ( indset : 개인SET )
  954. * ( deptset : 과SET )
  955. * @return :
  956. * @author : 오지훈
  957. * @---------------------------------------------------
  958. */
  959. function fChngDiagScrn(caseID){
  960. if(caseID == "indset"){ //개인SET선택
  961. //switch1.tabindex = 2;
  962. //grd_indset.caption = "개인SET";
  963. dsf_createDsRow("ds_send_reqdata", [{col:"setkindcd", type:"string", size:256, val:"P"}
  964. ,{col:"setclscd", type:"string", size:256, val:"D"}
  965. ,{col:"settypecd", type:"string", size:256, val:"D"}
  966. ,{col:"ioflag", type:"string", size:256, val:"N"}]);
  967. var oParam = {};
  968. oParam.id = "TRMMB00601";
  969. oParam.service = "prcpbaseapp.PrmsPrcpMngt";
  970. oParam.method = "reqGetPrmsPrcpSetList";
  971. oParam.inds = "req=ds_send_reqdata";
  972. oParam.outds = "ds_main_prmsprcpsetlist=prmsprcpsetlist";
  973. oParam.async = true;
  974. tranf_submit(oParam);
  975. }else if(caseID == "icd10"){ //ICD10선택
  976. //switch1.tabindex = 0;
  977. dsf_createDsRow("ds_send_reqdata", [{col:"indxflag", type:"string", size:256, val:"0"}]);
  978. var oParam = {};
  979. oParam.id = "TRMMO03101";
  980. oParam.service = "prcpmngtapp.PatDiagMngt";
  981. oParam.method = "reqGetIndxList";
  982. oParam.inds = "req=ds_send_reqdata";
  983. oParam.outds = "ds_main_indxcdlist=indxcdlist";
  984. oParam.async = true;
  985. tranf_submit(oParam);
  986. }else if(caseID == "snwhist"){ //상병력선택
  987. //switch1.tabindex = 3;
  988. dsf_createDsRow("ds_send_reqdata", [{col:"pid", type:"string", size:256, val:gPID}]);
  989. var oParam = {};
  990. oParam.id = "TRMMO03107";
  991. oParam.service = "prcpmngtapp.PatDiagMngt";
  992. oParam.method = "reqGetPatSnwHistInfo";
  993. oParam.inds = "req=ds_send_reqdata";
  994. oParam.outds = "ds_main_snwhistlist=snwhistlist";
  995. oParam.async = true;
  996. tranf_submit(oParam);
  997. }else if(caseID == "choshist"){ //내원이력선택
  998. //switch1.tabindex = 5;
  999. ds_main_choscond.setColumn(0, "diagtodd", utlf_getCurrentDate());
  1000. var dd = ds_main_choscond.getColumn(0, "diagtodd");
  1001. var diagfromdd = (dd.toDate()).getAddDate(-7);
  1002. diagfromdd = diagfromdd.getDateFormat();
  1003. ds_main_choscond.setColumn(0, "diagfromdd", diagfromdd);
  1004. switch1.choshist.ipt_diagfromdd.visible = true;
  1005. switch1.choshist.ipt_diagtodd.visible = true;
  1006. switch1.choshist.caption5.visible = true;
  1007. switch1.choshist.cmb_drlist.visible = false;
  1008. switch1.choshist.cmb_deptlist.visible = false;
  1009. lf_mmbfGetDeptCodeComboList(ds_orddept, "A"); //부서코드 콤보
  1010. frmf_addComboItem("switch1.choshist.cmb_deptlist"); //부서콤보 전체항목 추가
  1011. var deptcd = ds_orddept.lookup(deptcd, sysf_getUserInfo("dutplcecd"), "deptcd");
  1012. if(!utlf_isNull(deptcd)){
  1013. ds_main_choscond.setColumn(0, "orddeptcd", deptcd);
  1014. }else{
  1015. ds_main_choscond.setColumn(0, "orddeptcd", "-");
  1016. }
  1017. switch1.choshist.btn_srch.onclick.fireEvent(switch1.choshist.btn_srch, new ClickEventInfo());
  1018. }else if(caseID == "deptindx"){ //과색인선택
  1019. //switch1.tabindex = 1;
  1020. dsf_createDsRow("ds_send_reqdata", [{col:"deptindxflag", type:"string", size:256, val:"0"}]);
  1021. var oParam = {};
  1022. oParam.id = "TRMMO03111";
  1023. oParam.service = "prcpmngtapp.PatDiagMngt";
  1024. oParam.method = "reqGetDeptIndxList";
  1025. oParam.inds = "req=ds_send_reqdata";
  1026. oParam.outds = "ds_main_deptindxcdlist=deptindxcdlist";
  1027. oParam.async = true;
  1028. tranf_submit(oParam); //과색인조회
  1029. } else if(caseID == "multifreq") { // 다빈도(개인)
  1030. //switch1.tabindex = 4;
  1031. dsf_createDsRow("ds_send_reqdata", [{col:"instcd", type:"string", size:256, val:sysf_getUserInfo("dutplceinstcd")}
  1032. ,{col:"orddrid", type:"string", size:256, val:sysf_getUserInfo("userid")}]);
  1033. var oParam = {};
  1034. oParam.id = "TRMMO03117";
  1035. oParam.service = "prcpmngtapp.PatDiagMngt";
  1036. oParam.method = "reqGetMultiFreqList";
  1037. oParam.inds = "req=ds_send_reqdata";
  1038. oParam.outds = "ds_main_multifreqlist=multifreqlist";
  1039. oParam.async = true;
  1040. tranf_submit(oParam);
  1041. }
  1042. }
  1043. /**
  1044. * @desc : 진단코드 조회
  1045. * @
  1046. * @param :
  1047. * @return :
  1048. * @author : 오지훈
  1049. * @---------------------------------------------------
  1050. */
  1051. function fReqDiagInfo(){
  1052. var cond1 = "";
  1053. var cond2 = "";
  1054. ds_main_cond.setColumn(0, "reqdata", Div00.ipt_search.value);
  1055. var cond5 = ds_main_cond.getColumn(0, "reqdata");
  1056. if(utlf_isNull(cond5) || cond5.length < 1){ //검색어를 입력하지 않은 경우
  1057. sysf_messageBox("검색어를 ", "C002");
  1058. return;
  1059. }
  1060. var cond3 = utlf_isHangul(cond5); //한글, 영문구분
  1061. var cond4 = utlf_getCurrentDate(); //기준일자
  1062. if(cond3 == "H"){ //한글인 경우
  1063. cond1 = 2;
  1064. cond2 = 3;
  1065. }else if(cond3 == "E"){ //영문인 경우
  1066. if(utlf_isNum(cond5.charAt(1)) == true){ //두번째 자리가 숫자는 영문코드
  1067. cond1 = 1;
  1068. cond2 = 1;
  1069. }else{ //두번째 자리가 숫자가 아닌 경우, 영문단어
  1070. cond1 = 2;
  1071. cond2 = 3;
  1072. }
  1073. }
  1074. dsf_createDsRow("ds_send_reqdata", [{col:"cond1", type:"string", size:256, val:cond1} //검색구분 1:코드, 2:명
  1075. ,{col:"cond2", type:"string", size:256, val:cond2} //명칭검색구분, 1:코드, 2:단어, 3:문장, 4:첫단어
  1076. ,{col:"cond3", type:"string", size:256, val:cond3} //한영구분(H:한글, E:영문)
  1077. ,{col:"cond4", type:"string", size:256, val:cond4} //기준일자
  1078. ,{col:"cond5", type:"string", size:256, val:cond5}]); //검색내용
  1079. /*===============================================================================
  1080. * 진단검색시 조건 추가 (나이/성별)
  1081. * by sonjy 2008-07-21
  1082. ===============================================================================*/
  1083. var vAge = appf_getPatientInfo("age") ;
  1084. if( !utlf_isNull(vAge) ){
  1085. dsf_makeValue(ds_send_reqdata, "sexflag", "string", lf_getArrayData (vAge, 0, 0, "^", "/" ));
  1086. dsf_makeValue(ds_send_reqdata, "ageflag", "string", lf_getArrayData (vAge, 0, 1, "^", "/" ));
  1087. }
  1088. var oParam = {};
  1089. oParam.id = "TRMMO03103";
  1090. oParam.service = "prcpmngtapp.PatDiagMngt";
  1091. oParam.method = "reqGetDiagTermSrch";
  1092. oParam.inds = "req=ds_send_reqdata";
  1093. oParam.outds = "ds_main_diagcdlist=diagcdlist";
  1094. oParam.async = true;
  1095. tranf_submit(oParam);
  1096. }
  1097. /**
  1098. * @desc : ICD10코드로 진단코드 조회
  1099. * @
  1100. * @param :
  1101. * @return :
  1102. * @author : 오지훈
  1103. * @---------------------------------------------------
  1104. */
  1105. function fSelectICD10(currow){
  1106. var levl = ds_main_indxcdlist.getColumn(currow, "levl");
  1107. if(levl == 1){ //상위index만을 클릭한 경우 return한다.
  1108. return;
  1109. }
  1110. var indxcd = ds_main_indxcdlist.getColumn(currow, "indxcd");
  1111. dsf_createDsRow("ds_send_reqdata", [{col:"reqflag", type:"string", size:256, val:ds_main_cond.getColumn(0, "reqflag")}
  1112. ,{col:"icd10indxcd", type:"string", size:256, val:indxcd}]);
  1113. var oParam = {};
  1114. oParam.id = "TRMMO03102";
  1115. oParam.service = "prcpmngtapp.PatDiagMngt";
  1116. oParam.method = "reqGetICD10CdList";
  1117. oParam.inds = "req=ds_send_reqdata";
  1118. oParam.outds = "ds_main_diagcdlist=diagcdlist";
  1119. oParam.async = true;
  1120. tranf_submit(oParam);
  1121. }
  1122. /**
  1123. * @desc : 환자 내원이력 조회
  1124. * @
  1125. * @param :
  1126. * @return :
  1127. * @author : 오지훈
  1128. * @---------------------------------------------------
  1129. */
  1130. function fReqPatChosHistList(){
  1131. dsf_createDsRow("ds_send_reqdata", [{col:"pid", type:"string", size:256, val:gPID}
  1132. ,{col:"orddd", type:"string", size:256, val:gORDDD}
  1133. ,{col:"diagfromdd", type:"string", size:256}
  1134. ,{col:"diagtodd", type:"string", size:256}
  1135. ,{col:"orddeptcd", type:"string", size:256}
  1136. ,{col:"orddrid", type:"string", size:256}
  1137. ,{col:"queryflag", type:"string", size:256}]);
  1138. var cmbflag = ds_main_choscond.getColumn(0, "cmbflag");
  1139. if(cmbflag == "diagdd"){ //진단일로 조회할 경우
  1140. ds_send_reqdata.setColumn(0, "queryflag" , "diagdd");
  1141. ds_send_reqdata.setColumn(0, "diagfromdd", ds_main_choscond.getColumn(0, "diagfromdd"));
  1142. ds_send_reqdata.setColumn(0, "diagtodd" , ds_main_choscond.getColumn(0, "diagtodd"));
  1143. }else if(cmbflag == "orddept"){ //진료과로 조회할 경우
  1144. ds_send_reqdata.setColumn(0, "queryflag", "orddept");
  1145. ds_send_reqdata.setColumn(0, "orddeptcd", ds_main_choscond.getColumn(0, "orddeptcd"));
  1146. }else if(cmbflag == "orddr"){ //진료의사로 조회할 경우
  1147. ds_send_reqdata.setColumn(0, "queryflag", "orddr");
  1148. ds_send_reqdata.setColumn(0, "orddrid" , ds_main_choscond.getColumn(0, "drid"));
  1149. }
  1150. var oParam = {};
  1151. oParam.id = "TRMMO03108";
  1152. oParam.service = "prcpmngtapp.PatDiagMngt";
  1153. oParam.method = "reqGetPatChosHistInfo";
  1154. oParam.inds = "req=ds_send_reqdata";
  1155. oParam.outds = "ds_main_choshistlist=choshistlist";
  1156. oParam.async = true;
  1157. tranf_submit(oParam);
  1158. }
  1159. /**
  1160. * @desc : 진단내역 확장
  1161. * :
  1162. * @
  1163. * @param :
  1164. * @return :
  1165. * @author : 오지훈
  1166. * @---------------------------------------------------
  1167. */
  1168. function fCtrlSizeDiagList(){
  1169. if(exndflag == true){
  1170. btn_expand.class = "icon_next_year";
  1171. switch1.position.height = 30;
  1172. grd_diagcdlist.position.left = 0;
  1173. grd_diaghist.position.left = 0;
  1174. btn_expand.position.x = 17;
  1175. exndflag = false;
  1176. }else{
  1177. btn_expand.class = "icon_pre_year";
  1178. switch1.position.height = 488;
  1179. grd_diagcdlist.position.left = 539;
  1180. grd_diaghist.position.left = 539;
  1181. btn_expand.position.x = 545;
  1182. exndflag = true;
  1183. }
  1184. }
  1185. /**
  1186. * @desc : 약속SET 선택시 진단 조회
  1187. * @
  1188. * @param :
  1189. * @return :
  1190. * @author : 오지훈
  1191. * @---------------------------------------------------
  1192. */
  1193. function fSelectPrmsSET(){
  1194. var iRow = ds_main_prmsprcpsetlist.rowposition;
  1195. var iSetNO = ds_main_prmsprcpsetlist.getColumn(iRow, "setno");
  1196. var sSetTypeCD = ds_main_prmsprcpsetlist.getColumn(iRow, "settypecd");
  1197. dsf_createDsRow("ds_send_reqdata", [{col:"setno", type:"string", size:256, val:iSetNO}
  1198. ,{col:"settypecd", type:"string", size:256, val:sSetTypeCD}]);
  1199. var oParam = {};
  1200. oParam.id = "TRMMO03104";
  1201. oParam.service = "prcpmngtapp.PatDiagMngt";
  1202. oParam.method = "reqGetIndDiagSetList";
  1203. oParam.inds = "req=ds_send_reqdata";
  1204. oParam.outds = "ds_main_diagcdlist=diagcdlist";
  1205. oParam.async = true;
  1206. oParam.callback = "cf_TRMMO03104";
  1207. tranf_submit(oParam); //약속진단SET상세(진단코드) 조회
  1208. }
  1209. function cf_TRMMO03104(sSvcId, nErrorCode, sErrorMsg) {
  1210. if(nErrorCode < 0) return;
  1211. ds_main_diagcdlist.rowposition = -1;
  1212. }
  1213. /**
  1214. * @desc : 과색인 조회
  1215. * @
  1216. * @param :
  1217. * @return :
  1218. * @author : 오지훈
  1219. * @---------------------------------------------------
  1220. */
  1221. function fSelectDeptIndx(currow){
  1222. var deptindxcd = ds_main_deptindxcdlist.getColumn(currow, "deptindxcd");
  1223. if(utlf_isNull(deptindxcd)){
  1224. return;
  1225. }
  1226. dsf_createDsRow("ds_send_reqdata", [{col:"deptindxflag", type:"string", size:256, val:"0"}
  1227. ,{col:"deptindxcd", type:"string", size:256, val:deptindxcd}
  1228. ,{col:"deptcd", type:"string", size:256, val:sysf_getUserInfo("dutplcecd")}]);
  1229. var oParam = {};
  1230. oParam.id = "TRMMO03112";
  1231. oParam.service = "prcpmngtapp.PatDiagMngt";
  1232. oParam.method = "reqGetDeptIndxDiagTermList";
  1233. oParam.inds = "req=ds_send_reqdata";
  1234. oParam.outds = "ds_main_diagcdlist=diagcdlist";
  1235. oParam.async = true;
  1236. tranf_submit(oParam);
  1237. }
  1238. /**
  1239. * @desc : 내원이력 조회조건 변경
  1240. * @
  1241. * @param :
  1242. * @return :
  1243. * @author : 오지훈
  1244. * @---------------------------------------------------
  1245. */
  1246. function fChngChosCond(){
  1247. var cmbflag = ds_main_choscond.getColumn(0, "cmbflag");
  1248. if(cmbflag == "diagdd"){
  1249. switch1.choshist.ipt_diagfromdd.visible = true;
  1250. switch1.choshist.ipt_diagtodd.visible = true;
  1251. switch1.choshist.caption5.visible = true;
  1252. switch1.choshist.cmb_drlist.visible = false;
  1253. switch1.choshist.cmb_deptlist.visible = false;
  1254. }else if(cmbflag == "orddept"){
  1255. switch1.choshist.cmb_drlist.enable = false;
  1256. switch1.choshist.cmb_drlist.visible = true;
  1257. switch1.choshist.cmb_deptlist.visible = true;
  1258. switch1.choshist.ipt_diagfromdd.visible = false;
  1259. switch1.choshist.ipt_diagtodd.visible = false;
  1260. switch1.choshist.caption5.visible = false;
  1261. ds_main_choscond.setColumn(0, "drid", ""); //진단의사가 선택된 경우 값을 지운다
  1262. }else if(cmbflag == "orddr"){
  1263. switch1.choshist.ipt_diagfromdd.visible = false;
  1264. switch1.choshist.ipt_diagtodd.visible = false;
  1265. switch1.choshist.cmb_drlist.enable = true;
  1266. switch1.choshist.cmb_drlist.visible = true;
  1267. switch1.choshist.cmb_deptlist.visible = true;
  1268. switch1.choshist.caption5.visible = false;
  1269. switch1.choshist.cmb_deptlist.onitemchanged.fireEvent(switch1.choshist.cmb_deptlist, new ItemChangeEventInfo());
  1270. }
  1271. }
  1272. /**
  1273. * @desc : 우측상단 진단화면에서 개인진단 즐겨찾기 추가
  1274. * @
  1275. * @param :
  1276. * @return :
  1277. * @author : 오지훈
  1278. * @---------------------------------------------------
  1279. */
  1280. function fAddEnjoyPrivate(){
  1281. var settrgtcd = sysf_getUserInfo("userid");
  1282. var header = "settypecd▦setkindcd▦setclscd▦settrgtcd▦detlsetcd▩";
  1283. var totRow = ds_main_diagcdlist.rowcount;
  1284. for(var i = 0; i < totRow; i++){
  1285. if(ds_main_diagcdlist.getSelect(i)){
  1286. var diagcd = ds_main_diagcdlist.getColumn(i, "diagcd");
  1287. header += "E▦P▦D▦" + settrgtcd + "▦" + diagcd + "▩";
  1288. }
  1289. }
  1290. dsf_setCSVToDs("ds_send_savedata", header);
  1291. var oParam = {};
  1292. oParam.id = "TXMMB00604";
  1293. oParam.service = "prcpbaseapp.PrmsPrcpMngt";
  1294. oParam.method = "reqInsDirectPrmsDiagEnjoy";
  1295. oParam.inds = "req=ds_send_savedata";
  1296. oParam.async = false;
  1297. tranf_submit(oParam);
  1298. }
  1299. /**
  1300. * @desc : 삭제버튼 클릭
  1301. * @
  1302. * @param :
  1303. * @return :
  1304. * @author : 오지훈
  1305. * @---------------------------------------------------
  1306. */
  1307. function fClkBtnDel(){
  1308. var currow = ds_param_diagcdlist.rowposition;
  1309. if(currow < 0){
  1310. return;
  1311. }
  1312. var status = ds_param_diagcdlist.getColumn(currow, "status");
  1313. if(status == "I"){
  1314. ds_param_diagcdlist.deleteRow(currow);
  1315. }else{
  1316. ds_param_diagcdlist.setColumn(currow, "status", "D");
  1317. }
  1318. }
  1319. ]]></Script>
  1320. </Form>
  1321. </FDL>