SMAHA03200_패키지별문진관리.xfdl 48 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMAHA03200" position="absolute 0 0 1196 796" titletext="패키지별문진관리" oninit="SMAHA03200_oninit" onload="SMAHA03200_onload">
  5. <Layouts>
  6. <Layout>
  7. <Tab id="swt_detl" taborder="3" tabindex="0" position="absolute 549 337 1195 765" anchor="left right bottom" onchanged="swt_detl_onchanged">
  8. <Tabpages>
  9. <Tabpage id="case_inqr" text="문진">
  10. <Layouts>
  11. <Layout>
  12. <Static id="caption4" text="문진내역" class="tit_2" position="absolute 0 2 123 24"/>
  13. <Shape id="line2" class="line_10" position="absolute 0 18 646 24" anchor="left top right"/>
  14. <Grid id="grd_inqrlst" taborder="1" binddataset="ds_main_pkgdetl_inqr" useinputpanel="false" position="absolute 0 23 646 401" autoenter="select" autofittype="col" cellsizingtype="col" anchor="left top right" selecttype="multirow">
  15. <Formats>
  16. <Format id="default">
  17. <Columns>
  18. <Column size="21"/>
  19. <Column size="100"/>
  20. <Column size="80"/>
  21. <Column size="200"/>
  22. <Column size="70"/>
  23. <Column size="0"/>
  24. <Column size="60"/>
  25. <Column size="0"/>
  26. <Column size="0"/>
  27. <Column size="70"/>
  28. <Column size="0"/>
  29. <Column size="0"/>
  30. </Columns>
  31. <Rows>
  32. <Row size="24" band="head"/>
  33. <Row size="24"/>
  34. </Rows>
  35. <Band id="head">
  36. <Cell/>
  37. <Cell col="1" text="문진구분"/>
  38. <Cell col="2" text="코드"/>
  39. <Cell col="3" text="문진내역"/>
  40. <Cell col="4" text="단압구분"/>
  41. <Cell col="5" text="단압선택수"/>
  42. <Cell col="6" text="사용여부"/>
  43. <Cell col="7" text="답안분류코드"/>
  44. <Cell col="8" text="기본값"/>
  45. <Cell col="9" text="출력순서"/>
  46. <Cell col="10" text="기타구분1"/>
  47. <Cell col="11" text="기타구분2"/>
  48. </Band>
  49. <Band id="body">
  50. <Cell celltype="head"/>
  51. <Cell col="1" displaytype="combo" style="align:left middle;padding:0 0 0 3;" text="bind:inqrflag" combodataset="ds_init_baseinfo_inqrflaglst_A0106" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  52. <Cell col="2" style="align:left middle;padding:0 0 0 3;" text="bind:inqrcd"/>
  53. <Cell col="3" style="align:left middle;padding:0 0 0 3;" text="bind:inqrnm"/>
  54. <Cell col="4" displaytype="combo" style="align:left middle;padding:0 0 0 3;" text="bind:answflag" combodataset="ds_init_baseinfo_answflaglst_A0066" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  55. <Cell col="5" text="bind:answcnt"/>
  56. <Cell col="6" displaytype="checkbox" style="controlbackground:silver;controlborder:1 solid #708090cc ;" text="bind:useyn" expr="expr:useyn == 'Y' ? 1 : 0" enable="false"/>
  57. <Cell col="7" text="bind:answclscd"/>
  58. <Cell col="8" text="bind:defltval"/>
  59. <Cell col="9" displaytype="text" edittype="text" style="align:left middle;padding:0 0 0 3;" text="bind:pkginqrseqno"/>
  60. <Cell col="10" text="bind:inqretcflag1"/>
  61. <Cell col="11" text="bind:inqretcflag2"/>
  62. </Band>
  63. </Format>
  64. </Formats>
  65. </Grid>
  66. </Layout>
  67. </Layouts>
  68. </Tabpage>
  69. <Tabpage id="case_medi" text="진찰">
  70. <Layouts>
  71. <Layout>
  72. <Static id="caption5" text="진찰내역" class="tit_2" position="absolute 0 2 115 24"/>
  73. <Shape id="line3" linetype="horizontal" class="line_10" position="absolute 0 18 646 24" anchor="left top right"/>
  74. <Grid id="grd_medilst" taborder="1" binddataset="ds_main_pkgdetl_medi" useinputpanel="false" position="absolute 0 23 646 401" autoenter="select" cellsizingtype="col" autofittype="col" anchor="left top right" selecttype="multirow">
  75. <Formats>
  76. <Format id="default">
  77. <Columns>
  78. <Column size="21"/>
  79. <Column size="100"/>
  80. <Column size="80"/>
  81. <Column size="200"/>
  82. <Column size="70"/>
  83. <Column size="0"/>
  84. <Column size="60"/>
  85. <Column size="0"/>
  86. <Column size="0"/>
  87. <Column size="70"/>
  88. <Column size="0"/>
  89. <Column size="0"/>
  90. </Columns>
  91. <Rows>
  92. <Row size="24" band="head"/>
  93. <Row size="24"/>
  94. </Rows>
  95. <Band id="head">
  96. <Cell/>
  97. <Cell col="1" text="문진구분"/>
  98. <Cell col="2" text="코드"/>
  99. <Cell col="3" text="문진내역"/>
  100. <Cell col="4" text="답안구분"/>
  101. <Cell col="5" text="단압선택수"/>
  102. <Cell col="6" text="사용여부"/>
  103. <Cell col="7" text="답안분류코드"/>
  104. <Cell col="8" text="기본값"/>
  105. <Cell col="9" text="출력순서"/>
  106. <Cell col="10" text="기타구분1"/>
  107. <Cell col="11" text="기타구분2"/>
  108. </Band>
  109. <Band id="body">
  110. <Cell celltype="head" combodataset="ds_init_baseinfo_inqrflaglst_A0106" combocodecol="cdid" combodatacol="cdnm"/>
  111. <Cell col="1" displaytype="combo" style="align:left middle;padding:0 0 0 3;" text="bind:inqrflag" combodataset="ds_init_baseinfo_inqrflaglst_A0106" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  112. <Cell col="2" style="align:left middle;padding:0 0 0 3;" text="bind:inqrcd"/>
  113. <Cell col="3" style="align:left middle;padding:0 0 0 3;" text="bind:inqrnm"/>
  114. <Cell col="4" displaytype="combo" style="align:left middle;padding:0 0 0 3;" text="bind:answflag" combodataset="ds_init_baseinfo_answflaglst_A0066" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  115. <Cell col="5" text="bind:answcnt"/>
  116. <Cell col="6" displaytype="checkbox" style="controlbackground:silver;controlborder:1 solid #708090cc ;" text="bind:useyn" expr="expr:useyn == 'Y' ? 1 : 0" enable="false"/>
  117. <Cell col="7" text="bind:answclscd"/>
  118. <Cell col="8" text="bind:defltval"/>
  119. <Cell col="9" displaytype="text" edittype="text" style="align:left middle;padding:0 0 0 3;" text="bind:pkginqrseqno"/>
  120. <Cell col="10" text="bind:inqretcflag1"/>
  121. <Cell col="11" text="bind:inqretcflag2"/>
  122. </Band>
  123. </Format>
  124. </Formats>
  125. </Grid>
  126. </Layout>
  127. </Layouts>
  128. </Tabpage>
  129. <Tabpage id="case_judg" text="판정">
  130. <Layouts>
  131. <Layout>
  132. <Static id="caption7" text="판정내역" class="tit_2" position="absolute 0 2 115 24"/>
  133. <Shape id="line4" linetype="horizontal" class="line_10" position="absolute 0 18 646 24" anchor="left top right"/>
  134. <Grid id="grd_judglst" taborder="1" binddataset="ds_main_pkgdetl_judg" useinputpanel="false" position="absolute 0 23 646 401" autoenter="select" autofittype="col" cellsizingtype="col" anchor="left top right" selecttype="multirow">
  135. <Formats>
  136. <Format id="default">
  137. <Columns>
  138. <Column size="22"/>
  139. <Column size="100"/>
  140. <Column size="80"/>
  141. <Column size="200"/>
  142. <Column size="70"/>
  143. <Column size="0"/>
  144. <Column size="60"/>
  145. <Column size="0"/>
  146. <Column size="0"/>
  147. <Column size="70"/>
  148. <Column size="0"/>
  149. <Column size="0"/>
  150. </Columns>
  151. <Rows>
  152. <Row size="24" band="head"/>
  153. <Row size="24"/>
  154. </Rows>
  155. <Band id="head">
  156. <Cell/>
  157. <Cell col="1" text="문진구분"/>
  158. <Cell col="2" text="코드"/>
  159. <Cell col="3" text="문진내역"/>
  160. <Cell col="4" text="답안구분"/>
  161. <Cell col="5" text="단압선택수"/>
  162. <Cell col="6" text="사용여부"/>
  163. <Cell col="7" text="답안분류코드"/>
  164. <Cell col="8" text="기본값"/>
  165. <Cell col="9" text="출력순서"/>
  166. <Cell col="10" text="기타구분1"/>
  167. <Cell col="11" text="기타구분2"/>
  168. </Band>
  169. <Band id="body">
  170. <Cell celltype="head"/>
  171. <Cell col="1" displaytype="combo" edittype="combo" style="align:left middle;padding:0 0 0 3;" text="bind:inqrflag" combodataset="ds_init_baseinfo_inqrflaglst_A0106" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  172. <Cell col="2" style="align:left middle;padding:0 0 0 3;" text="bind:inqrcd"/>
  173. <Cell col="3" style="align:left middle;padding:0 0 0 3;" text="bind:inqrnm"/>
  174. <Cell col="4" displaytype="combo" style="align:left middle;padding:0 0 0 3;" text="bind:answflag" combodataset="ds_init_baseinfo_answflaglst_A0066" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  175. <Cell col="5" text="bind:answcnt"/>
  176. <Cell col="6" displaytype="checkbox" edittype="checkbox" style="controlbackground:silver;controlborder:1 solid #708090cc ;" text="bind:useyn" expr="expr:useyn == 'Y' ? 1 : 0" enable="false"/>
  177. <Cell col="7" text="bind:answclscd"/>
  178. <Cell col="8" text="bind:defltval"/>
  179. <Cell col="9" displaytype="text" edittype="text" style="align:left middle;padding:0 0 0 3;" text="bind:pkginqrseqno"/>
  180. <Cell col="10" text="bind:inqretcflag1"/>
  181. <Cell col="11" text="bind:inqretcflag2"/>
  182. </Band>
  183. </Format>
  184. </Formats>
  185. </Grid>
  186. </Layout>
  187. </Layouts>
  188. </Tabpage>
  189. </Tabpages>
  190. </Tab>
  191. <Button id="btn_inqr" taborder="11" text="문진" position="absolute 549 337 589 361" class="btn_tab_S" onclick="btn_inqr_onclick" anchor="left bottom"/>
  192. <Button id="btn_medi" taborder="12" text="진찰" class="btn_tab" position="absolute 590 337 630 361" onclick="btn_medi_onclick" anchor="left bottom"/>
  193. <Button id="btn_judg" taborder="13" text="판정" class="btn_tab" position="absolute 631 337 671 361" onclick="btn_judg_onclick" anchor="left bottom"/>
  194. <Button id="btn_reduce" taborder="7" text="줄이기" class="btn2" visible="false" position="absolute 491 67 544 89" onclick="btn_reduce_onclick"/>
  195. <Button id="btn_spread" taborder="8" text="펼치기" class="btn2" position="absolute 491 67 544 89" onclick="btn_spread_onclick"/>
  196. <Static id="caption6" text="패키지별문진관리" class="tit_1" position="absolute 0 0 189 25"/>
  197. <Grid id="grd_baseinqrlst" taborder="1" binddataset="ds_main_inqrlst_item" useinputpanel="false" position="absolute 550 94 1195 335" autoenter="select" cellsizingtype="col" anchor="all" cellclickbound="cell">
  198. <Formats>
  199. <Format id="default">
  200. <Columns>
  201. <Column size="30"/>
  202. <Column size="100"/>
  203. <Column size="100"/>
  204. <Column size="250"/>
  205. <Column size="70"/>
  206. <Column size="0"/>
  207. <Column size="60"/>
  208. <Column size="0"/>
  209. <Column size="0"/>
  210. <Column size="0"/>
  211. <Column size="0"/>
  212. <Column size="0"/>
  213. </Columns>
  214. <Rows>
  215. <Row size="24" band="head"/>
  216. <Row size="24"/>
  217. </Rows>
  218. <Band id="head">
  219. <Cell text="선택"/>
  220. <Cell col="1" text="문진구분"/>
  221. <Cell col="2" text="코드"/>
  222. <Cell col="3" text="문진내역"/>
  223. <Cell col="4" text="답안구분"/>
  224. <Cell col="5" text="단압선택수"/>
  225. <Cell col="6" text="사용여부"/>
  226. <Cell col="7" text="답안분류코드"/>
  227. <Cell col="8" text="기본값"/>
  228. <Cell col="9" text="출력순서"/>
  229. <Cell col="10" text="기타구분1"/>
  230. <Cell col="11" text="기타구분2"/>
  231. </Band>
  232. <Band id="body">
  233. <Cell displaytype="checkbox" edittype="checkbox" text="bind:sel" expr="expr:sel == 'Y' ? 1 : 0"/>
  234. <Cell col="1" displaytype="combo" style="align:left middle;padding:0 0 0 3;" text="bind:inqrflag" combodataset="ds_init_baseinfo_inqrflaglst_A0106" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  235. <Cell col="2" style="align:left middle;padding:0 0 0 3;" text="bind:inqrcd"/>
  236. <Cell col="3" style="align:left middle;padding:0 0 0 3;" text="bind:inqrnm"/>
  237. <Cell col="4" displaytype="combo" style="align:left middle;padding:0 0 0 3;" text="bind:answflag" combodataset="ds_init_baseinfo_answflaglst_A0066" combocodecol="cdid" combodatacol="cdnm" enable="false"/>
  238. <Cell col="5" text="bind:answcnt"/>
  239. <Cell col="6" displaytype="checkbox" style="controlbackground:silver;controlborder:1 solid #708090cc ;" text="bind:useyn" expr="expr:useyn == 'Y' ? 1 : 0" enable="false"/>
  240. <Cell col="7" text="bind:answclscd"/>
  241. <Cell col="8" text="bind:defltval"/>
  242. <Cell col="9" text="bind:inqrdipseq"/>
  243. <Cell col="10" text="bind:inqretcflag1"/>
  244. <Cell col="11" text="bind:inqretcflag2"/>
  245. </Band>
  246. </Format>
  247. </Formats>
  248. </Grid>
  249. <Div id="group6" anchor="left top right" taborder="2" class="div_SA" position="absolute 0 25 1195 65">
  250. <Layouts>
  251. <Layout>
  252. <Static id="caption21" text="건진구분:" class="search_name" position="absolute 16 11 102 28"/>
  253. <Button id="btn_search" taborder="1" text="조회" class="btn1" position="absolute 1122 9 1178 31" anchor="top right" onclick="group6_btn_search_onclick"/>
  254. <Shape id="line18" linetype="vertical" class="line_4" position="absolute 1101 9 1107 31" anchor="top right"/>
  255. <Static id="caption22" text="건진상세구분 :" class="search_name" position="absolute 246 11 358 28"/>
  256. <Static id="caption2" text="패키지코드 :" class="search_name" position="absolute 506 11 618 28"/>
  257. <Static id="caption3" text="패키지명 :" class="search_name" position="absolute 761 11 873 28"/>
  258. <Combo id="cmb_healexamflag" taborder="2" innerdataset="@ds_init_baseinfo_healexamflag_A0068" codecolumn="cdid" datacolumn="cdnm" position="absolute 105 11 220 30" onitemchanged="group6_cmb_healexamflag_onitemchanged"/>
  259. <Combo id="cmb_healexamdetlflag" taborder="3" innerdataset="ds_init_baseinfo_healexamdetlflag_item" codecolumn="cdid" datacolumn="cdnm" position="absolute 366 11 481 30"/>
  260. <Edit id="ipt_pkgcd" taborder="4" position="absolute 607 10 732 29" onkeyup="group6_ipt_pkgcd_onkeyup"/>
  261. <Edit id="ipt_pkgnm" taborder="5" position="absolute 853 10 1043 29" onkeyup="group6_ipt_pkgnm_onkeyup"/>
  262. </Layout>
  263. </Layouts>
  264. </Div>
  265. <Static id="caption1" text="패키지 내역" class="tit_2" position="absolute 0 73 115 95"/>
  266. <Shape id="line1" class="line_10" position="absolute 0 89 545 95"/>
  267. <Grid id="grd_pkglst" taborder="4" binddataset="ds_main_pkglst_item" useinputpanel="false" position="absolute 0 94 545 765" autoenter="select" cellsizingtype="col" anchor="left top bottom" oncelldblclick="grd_pkglst_oncelldblclick">
  268. <Formats>
  269. <Format id="default">
  270. <Columns>
  271. <Column size="21"/>
  272. <Column size="0"/>
  273. <Column size="80"/>
  274. <Column size="70"/>
  275. <Column size="80"/>
  276. <Column size="0"/>
  277. <Column size="100"/>
  278. <Column size="100"/>
  279. <Column size="0"/>
  280. <Column size="0"/>
  281. <Column size="0"/>
  282. <Column size="80"/>
  283. <Column size="60"/>
  284. <Column size="60"/>
  285. <Column size="0"/>
  286. <Column size="0"/>
  287. <Column size="100"/>
  288. <Column size="100"/>
  289. <Column size="100"/>
  290. </Columns>
  291. <Rows>
  292. <Row size="24" band="head"/>
  293. <Row size="24"/>
  294. </Rows>
  295. <Band id="head">
  296. <Cell/>
  297. <Cell col="1" text="건진구분"/>
  298. <Cell col="2" text="건진상세구분"/>
  299. <Cell col="3" text="코드구분"/>
  300. <Cell col="4" text="패키지코드"/>
  301. <Cell col="5" text="구코드"/>
  302. <Cell col="6" text="패키지명"/>
  303. <Cell col="7" text="패키지명(영문)"/>
  304. <Cell col="8" text="수가코드"/>
  305. <Cell col="9" text="수가명칭"/>
  306. <Cell col="10" text="비자국가코드"/>
  307. <Cell col="11" text="가격"/>
  308. <Cell col="12" text="남여구분"/>
  309. <Cell col="13" text="사용여부"/>
  310. <Cell col="14" text="미수분류"/>
  311. <Cell col="15" text="수익분류"/>
  312. <Cell col="16" text="비고"/>
  313. <Cell col="17" text="검사설명"/>
  314. <Cell col="18" text="인터넷 적용여부"/>
  315. </Band>
  316. <Band id="body">
  317. <Cell celltype="head"/>
  318. <Cell col="1" displaytype="combo" edittype="combo" text="bind:healexamflag" enable="false"/>
  319. <Cell col="2" displaytype="combo" style="align:left middle;padding:0 0 0 3;" text="bind:healexamdetlflag" combodataset="ds_init_baseinfo_healexamdetlflag_item" combocodecol="cdid" combodatacol="cdnm" id="colflag" enable="false"/>
  320. <Cell col="3" displaytype="combo" style="align:left middle;padding:0 0 0 3;" text="bind:pkgflag" combodataset="ds_cmb_pkgflag" combocodecol="value" combodatacol="label" enable="false"/>
  321. <Cell col="4" style="align:left middle;padding:0 0 0 3;" text="bind:pkgcd" enable="false"/>
  322. <Cell col="5" style="align:left middle;padding:0 0 0 3;" text="bind:oldordcd"/>
  323. <Cell col="6" style="align:left middle;padding:0 0 0 3;" text="bind:pkgnm"/>
  324. <Cell col="7" style="align:left middle;padding:0 0 0 3;" text="bind:pkgengnm"/>
  325. <Cell col="8" text="bind:calcscorcd"/>
  326. <Cell col="9" text="bind:calcscornm"/>
  327. <Cell col="10" displaytype="combo" edittype="combo" text="bind:brthareacnts" enable="false"/>
  328. <Cell col="11" displaytype="number" text="bind:pkgamt"/>
  329. <Cell col="12" displaytype="combo" style="align:left middle;padding:3 3 3 3;" text="bind:gndrflag" combodataset="ds_cmb_gndrflag" combocodecol="value" combodatacol="label" enable="false"/>
  330. <Cell col="13" displaytype="checkbox" style="controlbackground:silver;controlborder:1 solid #708090cc ;" text="bind:useyn" expr="expr:useyn == 'Y' ? 1 : 0" enable="false"/>
  331. <Cell col="14" displaytype="combo" edittype="combo" text="bind:uncoflag"/>
  332. <Cell col="15" displaytype="combo" edittype="combo" text="bind:earnclscd"/>
  333. <Cell col="16" style="align:left middle;padding:3 3 3 3;" text="bind:remcnts"/>
  334. <Cell col="17" style="align:left middle;padding:3 3 3 3;" text="bind:pkgdesc"/>
  335. <Cell col="18" displaytype="checkbox" style="controlbackground:silver;controlborder:1 solid #708090cc ;" text="bind:inetyn" expr="expr:inetyn == 'Y' ? 1 : 0" enable="false"/>
  336. </Band>
  337. </Format>
  338. </Formats>
  339. </Grid>
  340. <Static id="caption8" text="문진코드 내역" class="tit_2" position="absolute 551 73 666 95"/>
  341. <Shape id="line5" class="line_10" position="absolute 550 89 1195 95" anchor="left top right"/>
  342. <Button id="btn_del" taborder="5" text="행삭제" class="btn2" position="absolute 1142 337 1195 359" anchor="right bottom" onclick="btn_del_onclick"/>
  343. <Button id="button1" taborder="9" text="문진등록" class="btn2" position="absolute 1131 67 1195 89" anchor="top right" onclick="button1_onclick"/>
  344. <Button id="btn_save" taborder="10" text="저장" class="btn4" position="absolute 1139 769 1195 791" anchor="right bottom" onclick="btn_save_onclick"/>
  345. </Layout>
  346. </Layouts>
  347. <Objects>
  348. <Dataset id="ds_init_baseinfo_inqrflaglst_A0106" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  349. <Dataset id="ds_init_baseinfo_answflaglst_A0066" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  350. <Dataset id="ds_init_baseinfo_healexamflag_A0068" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  351. <Dataset id="ds_init_baseinfo_ahealexamdetlflag_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  352. <Dataset id="ds_init_baseinfo_healexamdetlflag_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  353. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  354. <ColumnInfo>
  355. <Column id="srchhealexamflag" type="STRING" size="256"/>
  356. <Column id="srchhealexamdetlflag" type="STRING" size="256"/>
  357. <Column id="srchpkgcd" type="STRING" size="256"/>
  358. <Column id="srchpkgnm" type="STRING" size="256"/>
  359. </ColumnInfo>
  360. <Rows>
  361. <Row>
  362. <Col id="srchhealexamflag"/>
  363. <Col id="srchhealexamdetlflag"/>
  364. <Col id="srchpkgcd"/>
  365. <Col id="srchpkgnm"/>
  366. </Row>
  367. </Rows>
  368. </Dataset>
  369. <Dataset id="ds_main_pkglst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_pkglst_item_oncolumnchanged">
  370. <ColumnInfo>
  371. <Column id="healexamflag" type="STRING" size="256" sumtext="건진구분"/>
  372. <Column id="healexamdetlflag" type="STRING" size="256" sumtext="건진상세구분"/>
  373. <Column id="pkgflag" type="STRING" size="256" sumtext="패키지구분"/>
  374. <Column id="pkgcd" type="STRING" size="256" sumtext="패키지코드"/>
  375. <Column id="oldordcd" type="STRING" size="256" sumtext="구코드"/>
  376. <Column id="pkgnm" type="STRING" size="256" sumtext="패키지명"/>
  377. <Column id="pkgengnm" type="STRING" size="256" sumtext="패키지영문명"/>
  378. <Column id="calcscorcd" type="STRING" size="256" sumtext="수가코드"/>
  379. <Column id="calcscornm" type="STRING" size="256" sumtext="수가명"/>
  380. <Column id="brthareacnts" type="STRING" size="256" sumtext="국가"/>
  381. <Column id="pkgamt" type="INT" size="256" sumtext="패키지금액"/>
  382. <Column id="gndrflag" type="STRING" size="256" sumtext="성별구분"/>
  383. <Column id="useyn" type="STRING" size="256" sumtext="사용여부"/>
  384. <Column id="uncoflag" type="STRING" size="256" sumtext="미수구분"/>
  385. <Column id="earnclscd" type="STRING" size="256" sumtext="수익분류"/>
  386. <Column id="remcnts" type="STRING" size="256" sumtext="비고"/>
  387. <Column id="pkgdesc" type="STRING" size="256" sumtext="패키지설명"/>
  388. <Column id="inetyn" type="STRING" size="256" sumtext="인터넷사용여부"/>
  389. </ColumnInfo>
  390. </Dataset>
  391. <Dataset id="ds_main_inqrlst_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_inqrlst_item_oncolumnchanged">
  392. <ColumnInfo>
  393. <Column id="sel" type="STRING" size="256" sumtext="선택"/>
  394. <Column id="inqrflag" type="STRING" size="256" sumtext="문진구분"/>
  395. <Column id="inqrflag" type="STRING" size="256" sumtext="문진구분"/>
  396. <Column id="inqrcd" type="STRING" size="256" sumtext="문진코드"/>
  397. <Column id="inqrnm" type="STRING" size="256" sumtext="문진명"/>
  398. <Column id="answflag" type="STRING" size="256" sumtext="단안구분"/>
  399. <Column id="answcnt" type="STRING" size="256" sumtext="답안갯수"/>
  400. <Column id="useyn" type="STRING" size="256" sumtext="사용여부"/>
  401. <Column id="answclscd" type="STRING" size="256" sumtext="답안분류코드"/>
  402. <Column id="defltval" type="STRING" size="256" sumtext="기본결과값"/>
  403. <Column id="pkginqrseqno" type="STRING" size="256" sumtext="일련번호"/>
  404. <Column id="inqretcflag1" type="STRING" size="256" sumtext="문진기타구분1"/>
  405. <Column id="inqretcflag2" type="STRING" size="256" sumtext="문진구타구분2"/>
  406. </ColumnInfo>
  407. </Dataset>
  408. <Dataset id="ds_main_pkgdetl_inqr" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_pkgdetl_inqr_oncolumnchanged">
  409. <ColumnInfo>
  410. <Column id="inqrflag" type="STRING" size="256" sumtext="문진구분"/>
  411. <Column id="inqrcd" type="STRING" size="256" sumtext="문진코드"/>
  412. <Column id="inqrnm" type="STRING" size="256" sumtext="문진명"/>
  413. <Column id="answflag" type="STRING" size="256" sumtext="단안구분"/>
  414. <Column id="answcnt" type="STRING" size="256" sumtext="답안갯수"/>
  415. <Column id="useyn" type="STRING" size="256" sumtext="사용여부"/>
  416. <Column id="answclscd" type="STRING" size="256" sumtext="답안분류코드"/>
  417. <Column id="defltval" type="STRING" size="256" sumtext="기본결과값"/>
  418. <Column id="pkginqrseqno" type="STRING" size="256" sumtext="일련번호"/>
  419. <Column id="inqretcflag1" type="STRING" size="256" sumtext="문진기타구분1"/>
  420. <Column id="inqretcflag2" type="STRING" size="256" sumtext="문진구타구분2"/>
  421. </ColumnInfo>
  422. </Dataset>
  423. <Dataset id="ds_main_pkgdetl_medi" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_pkgdetl_medi_oncolumnchanged">
  424. <ColumnInfo>
  425. <Column id="inqrflag" type="STRING" size="256" sumtext="문진구분"/>
  426. <Column id="inqrcd" type="STRING" size="256" sumtext="문진코드"/>
  427. <Column id="inqrnm" type="STRING" size="256" sumtext="문진명"/>
  428. <Column id="answflag" type="STRING" size="256" sumtext="단안구분"/>
  429. <Column id="answcnt" type="STRING" size="256" sumtext="답안갯수"/>
  430. <Column id="useyn" type="STRING" size="256" sumtext="사용여부"/>
  431. <Column id="answclscd" type="STRING" size="256" sumtext="답안분류코드"/>
  432. <Column id="defltval" type="STRING" size="256" sumtext="기본결과값"/>
  433. <Column id="pkginqrseqno" type="STRING" size="256" sumtext="일련번호"/>
  434. <Column id="inqretcflag1" type="STRING" size="256" sumtext="문진기타구분1"/>
  435. <Column id="inqretcflag2" type="STRING" size="256" sumtext="문진구타구분2"/>
  436. </ColumnInfo>
  437. </Dataset>
  438. <Dataset id="ds_main_pkgdetl_judg" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  439. <ColumnInfo>
  440. <Column id="inqrflag" type="STRING" size="256" sumtext="문진구분"/>
  441. <Column id="inqrcd" type="STRING" size="256" sumtext="문진코드"/>
  442. <Column id="inqrnm" type="STRING" size="256" sumtext="문진명"/>
  443. <Column id="answflag" type="STRING" size="256" sumtext="단안구분"/>
  444. <Column id="answcnt" type="STRING" size="256" sumtext="답안갯수"/>
  445. <Column id="useyn" type="STRING" size="256" sumtext="사용여부"/>
  446. <Column id="answclscd" type="STRING" size="256" sumtext="답안분류코드"/>
  447. <Column id="defltval" type="STRING" size="256" sumtext="기본결과값"/>
  448. <Column id="pkginqrseqno" type="STRING" size="256" sumtext="일련번호"/>
  449. <Column id="inqretcflag1" type="STRING" size="256" sumtext="문진기타구분1"/>
  450. <Column id="inqretcflag2" type="STRING" size="256" sumtext="문진구타구분2"/>
  451. </ColumnInfo>
  452. </Dataset>
  453. <Dataset id="ds_init_baseinfo_chealexamdetlflag_A0069" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  454. <Dataset id="ds_init_baseinfo_ghealexamdetlflag_A0070" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  455. <Dataset id="ds_cmb_gndrflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  456. <ColumnInfo>
  457. <Column id="label" type="STRING" size="256"/>
  458. <Column id="value" type="STRING" size="256"/>
  459. </ColumnInfo>
  460. <Rows>
  461. <Row>
  462. <Col id="label">공통</Col>
  463. <Col id="value">M</Col>
  464. </Row>
  465. <Row>
  466. <Col id="label">남</Col>
  467. <Col id="value">C</Col>
  468. </Row>
  469. <Row>
  470. <Col id="label">여</Col>
  471. <Col id="value">F</Col>
  472. </Row>
  473. </Rows>
  474. </Dataset>
  475. <Dataset id="ds_cmb_pkgflag" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  476. <ColumnInfo>
  477. <Column id="label" type="STRING" size="256"/>
  478. <Column id="value" type="STRING" size="256"/>
  479. </ColumnInfo>
  480. <Rows>
  481. <Row>
  482. <Col id="label">패키지</Col>
  483. <Col id="value">P</Col>
  484. </Row>
  485. <Row>
  486. <Col id="label">묶음처방</Col>
  487. <Col id="value">G</Col>
  488. </Row>
  489. </Rows>
  490. </Dataset>
  491. <Dataset id="ds_send_pkginfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  492. <ColumnInfo>
  493. <Column id="healexamflag" type="STRING" size="256" sumtext="건진구분"/>
  494. <Column id="healexamdetlflag" type="STRING" size="256" sumtext="건진상세구분"/>
  495. <Column id="pkgflag" type="STRING" size="256" sumtext="패키지구분"/>
  496. <Column id="pkgcd" type="STRING" size="256" sumtext="패키지코드"/>
  497. <Column id="oldordcd" type="STRING" size="256" sumtext="구코드"/>
  498. <Column id="pkgnm" type="STRING" size="256" sumtext="패키지명"/>
  499. <Column id="pkgengnm" type="STRING" size="256" sumtext="패키지영문명"/>
  500. <Column id="calcscorcd" type="STRING" size="256" sumtext="수가코드"/>
  501. <Column id="calcscornm" type="STRING" size="256" sumtext="수가명"/>
  502. <Column id="brthareacnts" type="STRING" size="256" sumtext="국가"/>
  503. <Column id="pkgamt" type="INT" size="256" sumtext="패키지금액"/>
  504. <Column id="gndrflag" type="STRING" size="256" sumtext="성별구분"/>
  505. <Column id="useyn" type="STRING" size="256" sumtext="사용여부"/>
  506. <Column id="uncoflag" type="STRING" size="256" sumtext="미수구분"/>
  507. <Column id="earnclscd" type="STRING" size="256" sumtext="수익분류"/>
  508. <Column id="remcnts" type="STRING" size="256" sumtext="비고"/>
  509. <Column id="pkgdesc" type="STRING" size="256" sumtext="패키지설명"/>
  510. <Column id="inetyn" type="STRING" size="256" sumtext="인터넷사용여부"/>
  511. </ColumnInfo>
  512. </Dataset>
  513. <Dataset id="ds_send_inqrinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  514. <Dataset id="ds_send_save" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  515. <Dataset id="ds_send_save_saveinqr" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  516. <Dataset id="ds_send_save_savemedi" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  517. <Dataset id="ds_send_save_savejudg" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  518. </Objects>
  519. <Bind>
  520. <BindItem id="item0" compid="group6.cmb_healexamflag" propid="value" datasetid="ds_send" columnid="srchhealexamflag"/>
  521. <BindItem id="item1" compid="group6.cmb_healexamdetlflag" propid="value" datasetid="ds_send" columnid="srchhealexamdetlflag"/>
  522. <BindItem id="item2" compid="group6.ipt_pkgcd" propid="value" datasetid="ds_send" columnid="srchpkgcd"/>
  523. <BindItem id="item3" compid="group6.ipt_pkgnm" propid="value" datasetid="ds_send" columnid="srchpkgnm"/>
  524. </Bind>
  525. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  526. * System Name :
  527. * Job Name :
  528. * Creator :
  529. * Make Date : 2015-11-13
  530. * Description :
  531. *---------------------------------------------------------------------------------------
  532. * Modify Date Modifier Modify Description
  533. *---------------------------------------------------------------------------------------
  534. * 2015-11-13 Live Converter TF->XP
  535. *
  536. *---------------------------------------------------------------------------------------
  537. ****************************************************************************************/
  538. include "com_commonxp::comm_main.xjs";
  539. include "ast_healexamxp::AHA001.xjs";
  540. var arErrorCode = new HashArray();
  541. var vHealexamFlag = "";
  542. var vHealexamdetlFlag = "";
  543. function SMAHA03200_oninit(obj:Form, e:InitEventInfo)
  544. {
  545. frmf_initForm(obj);
  546. }
  547. function SMAHA03200_onload(obj:Form, e:LoadEventInfo)
  548. {
  549. grdf_initGrid(grd_pkglst);
  550. grdf_setRowTypeIcon(grd_pkglst, 0);
  551. grdf_initGrid(grd_baseinqrlst);
  552. grdf_initGrid(swt_detl.case_inqr.grd_inqrlst);
  553. grdf_setRowTypeIcon(swt_detl.case_inqr.grd_inqrlst, 0);
  554. grdf_initGrid(swt_detl.case_judg.grd_judglst);
  555. grdf_setRowTypeIcon(swt_detl.case_judg.grd_judglst, 0);
  556. grdf_initGrid(swt_detl.case_medi.grd_medilst);
  557. grdf_setRowTypeIcon(swt_detl.case_medi.grd_medilst, 0);
  558. var sFlag = frmf_getMenuParam(); // 메뉴파라미터(건진구분을 셋팅)
  559. vHealexamFlag = String(sFlag).substr(0,1);
  560. vHealexamdetlFlag = sFlag;
  561. fGetBasicCdList();
  562. fSetInit();
  563. group6.btn_search.enable = frmf_checkAuth("R") ;
  564. btn_save.enable = frmf_checkAuth("X") ;
  565. }
  566. function fGetBasicCdList()
  567. {
  568. var arrParam = [{dsNm: "ds_init_baseinfo_healexamflag_A0068", cdGrpId: "A0068"}
  569. ,{dsNm: "ds_init_baseinfo_chealexamdetlflag_A0069", cdGrpId: "A0069"}
  570. ,{dsNm: "ds_init_baseinfo_ghealexamdetlflag_A0070", cdGrpId: "A0070"}
  571. ,{dsNm: "ds_init_baseinfo_uncolst_A0067", cdGrpId: "A0067"}
  572. ,{dsNm: "ds_init_baseinfo_earnclslst_A0435", cdGrpId: "A0435"}
  573. ,{dsNm: "ds_init_baseinfo_brthareacnts_A0465", cdGrpId: "A0465"}
  574. ,{dsNm: "ds_init_baseinfo_inqrflaglst_A0106", cdGrpId: "A0106"}
  575. ,{dsNm: "ds_init_baseinfo_answflaglst_A0066", cdGrpId: "A0066"}]
  576. appf_getCodeList(arrParam);
  577. ds_init_baseinfo_ahealexamdetlflag_item.copyData(ds_init_baseinfo_chealexamdetlflag_A0069);
  578. ds_init_baseinfo_chealexamdetlflag_A0069.appendData(ds_init_baseinfo_ghealexamdetlflag_A0070);
  579. }
  580. function fSetInit()
  581. {
  582. if(!utlf_isNull(vHealexamFlag) && !utlf_isNull(vHealexamdetlFlag))
  583. {
  584. group6.cmb_healexamflag.value = vHealexamFlag;
  585. fSetHealExamDetlFlag();
  586. group6.cmb_healexamdetlflag.value = vHealexamdetlFlag;
  587. }
  588. else
  589. {
  590. group6.cmb_healexamflag.index = 0;
  591. }
  592. }
  593. function fSetHealExamDetlFlag()
  594. {
  595. if(group6.cmb_healexamflag.value == "C")
  596. {
  597. ds_init_baseinfo_healexamdetlflag_item.copyData(ds_init_baseinfo_chealexamdetlflag_A0069);
  598. }
  599. else
  600. {
  601. ds_init_baseinfo_healexamdetlflag_item.copyData(ds_init_baseinfo_ghealexamdetlflag_A0070);
  602. }
  603. group6.cmb_healexamdetlflag.index = 0;
  604. }
  605. function group6_cmb_healexamflag_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  606. {
  607. fSetHealExamDetlFlag();
  608. }
  609. function group6_ipt_pkgcd_onkeyup(obj:Edit, e:KeyEventInfo)
  610. {
  611. if(e.keycode == 13)
  612. {
  613. obj.updateToDataset();
  614. group6.btn_search.click();
  615. }
  616. }
  617. function group6_ipt_pkgnm_onkeyup(obj:Edit, e:KeyEventInfo)
  618. {
  619. if(e.keycode == 13)
  620. {
  621. obj.updateToDataset();
  622. group6.btn_search.click();
  623. }
  624. }
  625. function group6_btn_search_onclick(obj:Button, e:ClickEventInfo)
  626. {
  627. fGetPkagList();
  628. }
  629. function fGetPkagList()
  630. {
  631. var oParam = {};
  632. oParam.id = "TRAHA03200";
  633. oParam.service = "healthexambaseapp.PkgInqrCode";
  634. oParam.method = "reqGetPkgCodeList";
  635. oParam.inds = "req=ds_send";
  636. oParam.outds = "ds_main_pkglst_item=item";
  637. oParam.async = false;
  638. //oParam.callback = "cf_TRAHA03200";
  639. tranf_submit(oParam);
  640. }
  641. function grd_pkglst_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  642. {
  643. fGetPkgInqrList();
  644. }
  645. function fGetPkgInqrList()
  646. {
  647. ds_send_pkginfo.clearData();
  648. ds_send_pkginfo.copyRow(ds_send_pkginfo.addRow(), ds_main_pkglst_item, ds_main_pkglst_item.rowposition);
  649. ds_main_inqrlst_item.clearData();
  650. var oParam = {};
  651. oParam.id = "TRAHA03200";
  652. oParam.service = "healthexambaseapp.PkgInqrCode";
  653. oParam.method = "reqGetPkgInqrList";
  654. oParam.inds = "req=ds_send_pkginfo";
  655. oParam.outds = "ds_main_pkgdetl_inqr=inqr ds_main_pkgdetl_medi=medi ds_main_pkgdetl_judg=judg";
  656. oParam.async = false;
  657. oParam.callback = "cf_submit";
  658. tranf_submit(oParam);
  659. if(arErrorCode.pop("TRAHA03200") > -1)
  660. {
  661. btn_inqr.click();
  662. }
  663. }
  664. function cf_submit(sSvcId, nErrorCode, sErrorMsg)
  665. {
  666. arErrorCode.push(sSvcId, nErrorCode);
  667. if(nErrorCode < 0) return;
  668. }
  669. function fGetInqrList(vFlag)
  670. {
  671. if(utlf_isNull(vFlag)) return;
  672. dsf_makeValue(ds_send_inqrinfo, "inqrflag", "string", vFlag);
  673. var oParam = {};
  674. oParam.id = "TRAHA03200";
  675. oParam.service = "healthexambaseapp.PkgInqrCode";
  676. oParam.method = "reqGetInqrList";
  677. oParam.inds = "req=ds_send_inqrinfo";
  678. oParam.outds = "ds_main_inqrlst_item=item";
  679. oParam.async = false;
  680. //oParam.callback = "cf_TRAHA03200";
  681. tranf_submit(oParam);
  682. }
  683. function button1_onclick(obj:Button, e:ClickEventInfo)
  684. {
  685. if(swt_detl.tabindex == 0)
  686. {
  687. fSetInqrList(ds_main_pkgdetl_inqr);
  688. }
  689. else if(swt_detl.tabindex == 1)
  690. {
  691. fSetInqrList(ds_main_pkgdetl_medi);
  692. }
  693. else
  694. {
  695. fSetInqrList(ds_main_pkgdetl_judg);
  696. }
  697. }
  698. function fSetInqrList(vGrd)
  699. {
  700. var dupChk = false;
  701. for(var i = 0; i < ds_main_inqrlst_item.rowcount; i++)
  702. {
  703. dupChk = true;
  704. var sel = ds_main_inqrlst_item.getColumn(i, "sel");
  705. if(sel == "Y")
  706. {
  707. var srcInqrFlag = ds_main_inqrlst_item.getColumn(i , "inqrflag");
  708. var srcInqrCd = ds_main_inqrlst_item.getColumn(i , "inqrcd");
  709. var inqrnm = ds_main_inqrlst_item.getColumn(i , "inqrnm");
  710. for(var j = 0; j < vGrd.rowcount; j++)
  711. {
  712. var desInqrFlag = vGrd.getColumn(j , "inqrflag");
  713. var desInqrCd = vGrd.getColumn(j , "inqrcd");
  714. if(srcInqrFlag == desInqrFlag && srcInqrCd == desInqrCd)
  715. {
  716. sysf_messageBox("선택한 [" + inqrnm + "]는","E006");
  717. dupChk = false;
  718. }
  719. }
  720. if(dupChk)
  721. {
  722. var insRow = vGrd.addRow();
  723. vGrd.setColumn(insRow, "inqrflag", ds_main_inqrlst_item.getColumn(i, "inqrflag"));
  724. vGrd.setColumn(insRow, "inqrcd", ds_main_inqrlst_item.getColumn(i, "inqrcd"));
  725. vGrd.setColumn(insRow, "inqrnm", ds_main_inqrlst_item.getColumn(i, "inqrnm"));
  726. vGrd.setColumn(insRow, "answflag", ds_main_inqrlst_item.getColumn(i, "answflag"));
  727. vGrd.setColumn(insRow, "answcnt", ds_main_inqrlst_item.getColumn(i, "answcnt"));
  728. vGrd.setColumn(insRow, "useyn", ds_main_inqrlst_item.getColumn(i, "useyn"));
  729. vGrd.setColumn(insRow, "answclscd", ds_main_inqrlst_item.getColumn(i, "answclscd"));
  730. vGrd.setColumn(insRow, "defltval", ds_main_inqrlst_item.getColumn(i, "defltval"));
  731. vGrd.setColumn(insRow, "inqretcflag1", ds_main_inqrlst_item.getColumn(i, "inqretcflag1"));
  732. vGrd.setColumn(insRow, "inqretcflag2", ds_main_inqrlst_item.getColumn(i, "inqretcflag2"));
  733. }
  734. }
  735. }
  736. }
  737. function btn_spread_onclick(obj:Button, e:ClickEventInfo)
  738. {
  739. grd_pkglst.position.width = group6.position.width;
  740. grd_pkglst.bringToFront();
  741. btn_spread.visible = false;
  742. btn_reduce.visible = true;
  743. }
  744. function btn_reduce_onclick(obj:Button, e:ClickEventInfo)
  745. {
  746. btn_spread.visible = true;
  747. btn_reduce.visible = false;
  748. grd_pkglst.position.right = 545;
  749. }
  750. function btn_del_onclick(obj:Button, e:ClickEventInfo)
  751. {
  752. if(swt_detl.tabindex == 0)
  753. {
  754. nDelteRow(swt_detl.case_inqr.grd_inqrlst)
  755. }
  756. else if(swt_detl.tabindex == 1)
  757. {
  758. nDelteRow(swt_detl.case_medi.grd_medilst)
  759. }
  760. else
  761. {
  762. nDelteRow(swt_detl.case_judg.grd_judglst)
  763. }
  764. }
  765. function nDelteRow(vGrid)
  766. {
  767. var rows = grdf_getSelectedRows(vGrid);
  768. var vDataSet = this.objects[vGrid.binddataset];
  769. for(var i = parseInt(rows.length-1); i >= 0; i--)
  770. {
  771. var m_row = rows[i];
  772. if(vDataSet.getRowType(m_row) == 2)
  773. {
  774. vDataSet.deleteRow(m_row);
  775. }
  776. else
  777. {
  778. vDataSet.updatecontrol = false;
  779. vDataSet.setRowType(m_row, "d");
  780. vDataSet.updatecontrol = true;
  781. }
  782. }
  783. }
  784. function ds_main_pkglst_item_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  785. {
  786. if(e.columnid == "useyn")
  787. {
  788. obj.setColumn(e.row, "useyn", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  789. }
  790. }
  791. function ds_main_inqrlst_item_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  792. {
  793. if(e.columnid == "sel")
  794. {
  795. obj.setColumn(e.row, "sel", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  796. }
  797. if(e.columnid == "useyn")
  798. {
  799. obj.setColumn(e.row, "useyn", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  800. }
  801. }
  802. function ds_main_pkgdetl_inqr_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  803. {
  804. if(e.columnid == "useyn")
  805. {
  806. obj.setColumn(e.row, "useyn", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  807. }
  808. }
  809. function ds_main_pkgdetl_medi_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  810. {
  811. if(e.columnid == "useyn")
  812. {
  813. obj.setColumn(e.row, "useyn", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  814. }
  815. }
  816. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  817. {
  818. fSavePkgInqr();
  819. }
  820. function fSavePkgInqr()
  821. {
  822. var inqrsave = grdf_getGridUpdateData(swt_detl.case_inqr.grd_inqrlst);
  823. grdf_setStatusColumn(inqrsave, "m");
  824. ds_send_save_saveinqr.copyData(inqrsave, true);
  825. var medisave = grdf_getGridUpdateData(swt_detl.case_medi.grd_medilst);
  826. grdf_setStatusColumn(medisave, "m");
  827. ds_send_save_savemedi.copyData(medisave, true);
  828. var judgsave = grdf_getGridUpdateData(swt_detl.case_judg.grd_judglst);
  829. grdf_setStatusColumn(judgsave, "m");
  830. ds_send_save_savejudg.copyData(judgsave, true);
  831. if(ds_send_save_saveinqr.rowcount == 0 && ds_send_save_savemedi.rowcount == 0 && ds_send_save_savejudg.rowcount == 0)
  832. {
  833. sysf_messageBox("저장할 내역이" , "I004");
  834. return;
  835. }
  836. else
  837. {
  838. dsf_makeValue(ds_send_save, "healexamflag", "string", ds_send_pkginfo.getColumn(0, "healexamflag"));
  839. dsf_makeValue(ds_send_save, "healexamdetlflag", "string", ds_send_pkginfo.getColumn(0, "healexamdetlflag"));
  840. dsf_makeValue(ds_send_save, "pkgcd", "string", ds_send_pkginfo.getColumn(0, "pkgcd"));
  841. var oParam = {};
  842. oParam.id = "TRAHA03200";
  843. oParam.service = "healthexambaseapp.PkgInqrCode";
  844. oParam.method = "reqExePkgInqrInfo";
  845. oParam.inds = "req=ds_send_save inqr=ds_send_save_saveinqr medi=ds_send_save_savemedi judg=ds_send_save_savejudg";
  846. oParam.outds = "ds_=item";
  847. oParam.async = false;
  848. oParam.callback = "cf_submit";
  849. tranf_submit(oParam);
  850. if(arErrorCode.pop("TRAHA03200") > -1)
  851. {
  852. var oParam = {};
  853. oParam.id = "TRAHA03200";
  854. oParam.service = "healthexambaseapp.PkgInqrCode";
  855. oParam.method = "reqGetPkgInqrList";
  856. oParam.inds = "req=ds_send_pkginfo";
  857. oParam.outds = "ds_main_pkgdetl_inqr=inqr ds_main_pkgdetl_medi=medi ds_main_pkgdetl_judg=judg";
  858. oParam.async = false;
  859. //oParam.callback = "cf_TRAHA03200";
  860. tranf_submit(oParam);
  861. }
  862. }
  863. }
  864. function btn_inqr_onclick(obj:Button, e:ClickEventInfo)
  865. {
  866. swt_detl.tabindex = 0;
  867. btn_inqr.class = "btn_tab_S";
  868. btn_medi.class = "btn_tab";
  869. btn_judg.class = "btn_tab";
  870. fGetInqrList("E");
  871. }
  872. function btn_medi_onclick(obj:Button, e:ClickEventInfo)
  873. {
  874. swt_detl.tabindex = 1;
  875. btn_inqr.class = "btn_tab";
  876. btn_medi.class = "btn_tab_S";
  877. btn_judg.class = "btn_tab";
  878. fGetInqrList("F");
  879. }
  880. function btn_judg_onclick(obj:Button, e:ClickEventInfo)
  881. {
  882. swt_detl.tabindex = 2;
  883. btn_inqr.class = "btn_tab";
  884. btn_medi.class = "btn_tab";
  885. btn_judg.class = "btn_tab_S";
  886. fGetInqrList("G");
  887. }
  888. ]]></Script>
  889. </Form>
  890. </FDL>