SPLLF90800_통합검사코드목록.xfdl 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPLLF90800" position="absolute 0 0 1199 760" titletext="통합검사코드목록" oninit="SPLLF90800_oninit" onload="SPLLF90800_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="검사코드추가" class="tit_2" position="absolute 1 10 127 27"/>
  8. <Div id="group3" taborder="1" class="div_SA2" position="absolute 0 30 1195 70">
  9. <Layouts>
  10. <Layout>
  11. <Shape id="line4" linetype="vertical" class="line_4" position="absolute 1107 9 1113 31" anchor="default"/>
  12. <Static id="caption7" text="검색구분 :" class="search_name" position="absolute 785 11 875 28" anchor="default"/>
  13. <Combo id="cmb_refgbn" taborder="1" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="group2_group3_cmb_refgbn_onitemchanged" class="combo_search" position="absolute 880 10 965 29" anchor="default">
  14. <Dataset id="innerdataset">
  15. <ColumnInfo>
  16. <Column id="codecolumn" size="256"/>
  17. <Column id="datacolumn" size="256"/>
  18. </ColumnInfo>
  19. <Rows>
  20. <Row>
  21. <Col id="codecolumn">1</Col>
  22. <Col id="datacolumn">검사코드</Col>
  23. </Row>
  24. <Row>
  25. <Col id="codecolumn">2</Col>
  26. <Col id="datacolumn">검사명</Col>
  27. </Row>
  28. </Rows>
  29. </Dataset>
  30. </Combo>
  31. <Edit id="ipt_refgbn" taborder="2" class="input_s_button" position="absolute 970 10 1090 29" anchor="default" onkeyup="group3_ipt_refgbn_onkeyup"/>
  32. <Button id="btn_search" taborder="3" text="검색" class="btn1" position="absolute 1120 9 1176 31" anchor="default" onclick="group3_btn_search_onclick"/>
  33. <Static id="caption8" text="조회구분 :" class="search_name" position="absolute 17 11 104 28" anchor="default"/>
  34. <Combo id="cmb_TestLrgCd" taborder="4" innerdataset="@ds_init_LB0104" codecolumn="cd" datacolumn="nm" onitemchanged="group2_group3_cmb_TestLrgCd_onitemchanged" class="combo_s_essential" position="absolute 109 10 244 29" anchor="default"/>
  35. <Combo id="cmb_TestMdlCd" taborder="5" innerdataset="@ds_init_LB0102" codecolumn="cd" datacolumn="nm" class="combo_s_essential" position="absolute 247 10 382 29" anchor="default"/>
  36. <Button id="btn_ref" taborder="6" text="조회" class="btn1" position="absolute 413 9 469 31" anchor="default" onclick="group3_btn_ref_onclick"/>
  37. <Shape id="line5" linetype="vertical" class="line_4" position="absolute 395 9 401 31" anchor="default"/>
  38. <Button id="btn_search00" taborder="7" onclick="group4_btn_search_onclick" position="absolute 1072 12 1088 27" style="background:skyblue;"/>
  39. </Layout>
  40. </Layouts>
  41. </Div>
  42. <Shape id="line6" class="line_1" position="absolute 0 91 365 97" style="strokepen:3 solid #33bbbbff;"/>
  43. <Grid id="grd_tclsinstlist" taborder="2" binddataset="ds_main_tclsinst_tclslist" useinputpanel="false" position="absolute 0 96 365 756" autofittype="col" cellsizingtype="col" oncellclick="grd_tclsinstlist_oncellclick">
  44. <Formats>
  45. <Format id="default">
  46. <Columns>
  47. <Column size="0"/>
  48. <Column size="0"/>
  49. <Column size="0"/>
  50. <Column size="27"/>
  51. <Column size="70"/>
  52. <Column size="158"/>
  53. <Column size="85"/>
  54. </Columns>
  55. <Rows>
  56. <Row size="24" band="head"/>
  57. <Row size="24"/>
  58. </Rows>
  59. <Band id="head">
  60. <Cell/>
  61. <Cell col="1" text="fromdd"/>
  62. <Cell col="2" text="todd"/>
  63. <Cell col="3"/>
  64. <Cell col="4" text="검사코드"/>
  65. <Cell col="5" text="검사명"/>
  66. <Cell col="6" text="검사구분코드"/>
  67. </Band>
  68. <Band id="body">
  69. <Cell displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
  70. <Cell col="1" displaytype="date" edittype="date" text="bind:fromdd" mask="yyyy-mm-dd"/>
  71. <Cell col="2" displaytype="date" edittype="date" text="bind:todd" mask="yyyy-mm-dd"/>
  72. <Cell col="3" celltype="head" expr="expr:currow + 1"/>
  73. <Cell col="4" style="align:left middle;" text="bind:tclscd"/>
  74. <Cell col="5" style="align:left middle;" text="bind:tclsnm"/>
  75. <Cell col="6" displaytype="combo" edittype="combo" text="bind:tclskind" combodataset="ds_init_tclskind" combocodecol="value" combodatacol="label" enable="false"/>
  76. </Band>
  77. </Format>
  78. </Formats>
  79. </Grid>
  80. <Grid id="grd_tclscdlist" taborder="3" binddataset="ds_main_tclslist_tclscdlist" useinputpanel="false" position="absolute 410 455 1190 756">
  81. <Formats>
  82. <Format id="default">
  83. <Columns>
  84. <Column size="26"/>
  85. <Column size="85"/>
  86. <Column size="85"/>
  87. <Column size="74"/>
  88. <Column size="216"/>
  89. <Column size="80"/>
  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. </Band>
  103. <Band id="body">
  104. <Cell celltype="head" expr="expr:currow + 1"/>
  105. <Cell col="1" displaytype="date" text="bind:tclscdfromdd" mask="yyyy-MM-dd"/>
  106. <Cell col="2" displaytype="date" text="bind:tclstodd" mask="yyyy-MM-dd"/>
  107. <Cell col="3" style="align:left middle;" text="bind:tclscd"/>
  108. <Cell col="4" style="align:left middle;" text="bind:tclsnm"/>
  109. <Cell col="5" displaytype="combo" edittype="combo" text="bind:tclskind" combodataset="ds_init_tclskind" combocodecol="value" combodatacol="label" enable="false"/>
  110. </Band>
  111. </Format>
  112. </Formats>
  113. </Grid>
  114. <Static id="caption9" text="통합검사코드 목록" class="tit_2" position="absolute 1 75 137 91"/>
  115. <Static id="caption10" text="병원별 등록 할 코드 목록" class="tit_2" position="absolute 410 75 587 91"/>
  116. <Button id="btn_save" taborder="4" text="저장" class="btn4" enable="false" position="absolute 1078 7 1134 29" onclick="btn_save_onclick"/>
  117. <Button id="btn_close" taborder="5" text="닫기" class="btn4" position="absolute 1137 7 1193 29" onclick="btn_close_onclick"/>
  118. <Grid id="grd_instclslist" taborder="6" binddataset="ds_main_instclslist_tclslist" useinputpanel="false" position="absolute 410 96 1190 415" ontextchange="grd_instclslist_ontextchange">
  119. <Formats>
  120. <Format id="default">
  121. <Columns>
  122. <Column size="0"/>
  123. <Column size="28"/>
  124. <Column size="85"/>
  125. <Column size="85"/>
  126. <Column size="74"/>
  127. <Column size="136"/>
  128. <Column size="130"/>
  129. <Column size="132"/>
  130. <Column size="80"/>
  131. <Column size="0"/>
  132. <Column size="0"/>
  133. <Column size="0"/>
  134. <Column size="0"/>
  135. <Column size="0"/>
  136. <Column size="0"/>
  137. <Column size="0"/>
  138. </Columns>
  139. <Rows>
  140. <Row size="24" band="head"/>
  141. <Row size="24"/>
  142. </Rows>
  143. <Band id="head">
  144. <Cell/>
  145. <Cell col="1"/>
  146. <Cell col="2" text="시작일자"/>
  147. <Cell col="3" text="종료일자"/>
  148. <Cell col="4" text="검사코드"/>
  149. <Cell col="5" text="검사명"/>
  150. <Cell col="6" text="검체"/>
  151. <Cell col="7" text="시행부서"/>
  152. <Cell col="8" text="검사구분"/>
  153. <Cell col="9" text="tclsscrnnm"/>
  154. <Cell col="10" text="tclsabbrnm"/>
  155. <Cell col="11" text="tclsprntnm"/>
  156. <Cell col="12" text="tclslblnm"/>
  157. <Cell col="13" text="testlrgcd"/>
  158. <Cell col="14" text="testmdlcd"/>
  159. <Cell col="15" text="userdeptflagcd"/>
  160. </Band>
  161. <Band id="body">
  162. <Cell displaytype="checkbox" edittype="checkbox" text="bind:chk"/>
  163. <Cell col="1" celltype="head" expr="expr:currow + 1"/>
  164. <Cell col="2" displaytype="date" edittype="date" text="bind:fromdd" mask="yyyy-MM-dd"/>
  165. <Cell col="3" displaytype="date" edittype="date" text="bind:todd" mask="yyyy-MM-dd"/>
  166. <Cell col="4" text="bind:tclscd"/>
  167. <Cell col="5" text="bind:tclsnm"/>
  168. <Cell col="6" displaytype="combo" edittype="combo" text="bind:spccd" combodataset="ds_init_LB0105" combocodecol="cd" combodatacol="nm" combodisplayrowcount="30"/>
  169. <Cell col="7" displaytype="combo" edittype="combo" text="bind:tsectcd" combodataset="ds_init_LB0106" combocodecol="cd" combodatacol="nm" combodisplayrowcount="30"/>
  170. <Cell col="8" displaytype="combo" edittype="combo" text="bind:tclskind" combodataset="ds_init_tclskind" combocodecol="value" combodatacol="label" enable="false"/>
  171. <Cell col="9" text="bind:tclsscrnnm"/>
  172. <Cell col="10" text="bind:tclsabbrnm"/>
  173. <Cell col="11" text="bind:tclsprntnm"/>
  174. <Cell col="12" text="bind:tclslblnm"/>
  175. <Cell col="13" text="bind:testlrgcd"/>
  176. <Cell col="14" text="bind:testmdlcd"/>
  177. <Cell col="15" text="bind:userdeptflagcd"/>
  178. </Band>
  179. </Format>
  180. </Formats>
  181. </Grid>
  182. <Static id="caption11" text="병원별 등록 된 코드 목록" class="tit_2" position="absolute 410 434 587 450"/>
  183. <Shape id="line8" class="line_1" position="absolute 410 451 1190 457" style="strokepen:3 solid #33bbbbff;"/>
  184. <Button id="btn_move" taborder="7" class="icon_right" position="absolute 374 220 400 239" onclick="btn_move_onclick"/>
  185. <Button id="button8" taborder="8" text="초기화" class="btn2" position="absolute 1136 71 1189 90" onclick="button8_onclick"/>
  186. <Button id="button5" taborder="9" text="행삭제" class="btn2" position="absolute 1081 71 1134 90" onclick="button5_onclick"/>
  187. <Shape id="line00" class="line_1" position="absolute 410 92 1191 98" style="strokepen:3 solid #33bbbbff;"/>
  188. </Layout>
  189. </Layouts>
  190. <Objects>
  191. <Dataset id="ds_main_tclsinst_tclslist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  192. <ColumnInfo>
  193. <Column id="chk" type="STRING"/>
  194. <Column id="fromdd" type="STRING"/>
  195. <Column id="todd" type="STRING"/>
  196. <Column id="tclscd" type="STRING"/>
  197. <Column id="tclsnm" type="STRING"/>
  198. <Column id="spccd" type="STRING"/>
  199. <Column id="tsectcd" type="STRING"/>
  200. <Column id="tclskind" type="STRING"/>
  201. <Column id="tclsscrnnm" type="STRING"/>
  202. <Column id="tclsabbrnm" type="STRING"/>
  203. <Column id="tclsprntnm" type="STRING"/>
  204. <Column id="tclslblnm" type="STRING"/>
  205. <Column id="testlrgcd" type="STRING"/>
  206. <Column id="testmdlcd" type="STRING"/>
  207. <Column id="userdeptflagcd" type="STRING"/>
  208. <Column id="datechk" type="STRING" size="256"/>
  209. <Column id="reffromdd" type="STRING" size="256"/>
  210. </ColumnInfo>
  211. </Dataset>
  212. <Dataset id="ds_main_tclslist_tclscdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  213. <ColumnInfo>
  214. <Column id="tclscdfromdd" type="STRING"/>
  215. <Column id="tclstodd" type="STRING"/>
  216. <Column id="tclscd" type="STRING"/>
  217. <Column id="tclsnm" type="STRING"/>
  218. <Column id="tclskind" type="STRING"/>
  219. </ColumnInfo>
  220. </Dataset>
  221. <Dataset id="ds_main_instclslist_tclslist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  222. <ColumnInfo>
  223. <Column id="chk" type="STRING"/>
  224. <Column id="fromdd" type="STRING"/>
  225. <Column id="todd" type="STRING"/>
  226. <Column id="tclscd" type="STRING"/>
  227. <Column id="tclsnm" type="STRING"/>
  228. <Column id="spccd" type="STRING"/>
  229. <Column id="tsectcd" type="STRING"/>
  230. <Column id="tclskind" type="STRING"/>
  231. <Column id="tclsscrnnm" type="STRING"/>
  232. <Column id="tclsabbrnm" type="STRING"/>
  233. <Column id="tclsprntnm" type="STRING"/>
  234. <Column id="tclslblnm" type="STRING"/>
  235. <Column id="testlrgcd" type="STRING"/>
  236. <Column id="testmdlcd" type="STRING"/>
  237. <Column id="userdeptflagcd" type="STRING"/>
  238. <Column id="datechk" type="STRING" size="256"/>
  239. <Column id="reffromdd" type="STRING" size="256"/>
  240. </ColumnInfo>
  241. </Dataset>
  242. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  243. <ColumnInfo>
  244. <Column id="codeflag" type="STRING" size="256"/>
  245. <Column id="btngbn" type="STRING" size="256"/>
  246. <Column id="tclscd" type="STRING" size="256"/>
  247. <Column id="userdeptflagcd" type="STRING" size="256"/>
  248. <Column id="searchgbn" type="STRING" size="256"/>
  249. <Column id="searchtext" type="STRING" size="256"/>
  250. <Column id="testlrgcd" type="STRING" size="256"/>
  251. <Column id="testmdlcd" type="STRING" size="256"/>
  252. <Column id="addtclscd" type="STRING" size="256"/>
  253. </ColumnInfo>
  254. <Rows>
  255. <Row/>
  256. </Rows>
  257. </Dataset>
  258. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  259. <ColumnInfo>
  260. <Column id="testlrg" type="STRING" size="256"/>
  261. <Column id="testmdl" type="STRING" size="256"/>
  262. </ColumnInfo>
  263. <Rows>
  264. <Row/>
  265. </Rows>
  266. </Dataset>
  267. <Dataset id="ds_hidden_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  268. <ColumnInfo>
  269. <Column id="searchtext" type="STRING" size="256"/>
  270. <Column id="searchgbn" type="STRING" size="256"/>
  271. </ColumnInfo>
  272. <Rows>
  273. <Row/>
  274. </Rows>
  275. </Dataset>
  276. <Dataset id="ds_hidden_searchgbn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  277. <ColumnInfo>
  278. <Column id="label" type="STRING" size="256"/>
  279. <Column id="value" type="STRING" size="256"/>
  280. </ColumnInfo>
  281. <Rows>
  282. <Row>
  283. <Col id="label">검사코드</Col>
  284. <Col id="value">1</Col>
  285. </Row>
  286. <Row>
  287. <Col id="label">검사명</Col>
  288. <Col id="value">2</Col>
  289. </Row>
  290. </Rows>
  291. </Dataset>
  292. <Dataset id="ds_init_LB0102" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  293. <ColumnInfo>
  294. <Column id="cd" type="STRING" size="256" sumtext="코드"/>
  295. <Column id="nm" type="STRING" size="256" sumtext="코드명"/>
  296. <Column id="chk" type="STRING" size="256" sumtext="chk"/>
  297. <Column id="etc01" type="STRING" size="256" sumtext="기타1"/>
  298. <Column id="etc02" type="STRING" size="256" sumtext="기타2"/>
  299. <Column id="etc03" type="STRING" size="256" sumtext="기타3"/>
  300. <Column id="etc04" type="STRING" size="256" sumtext="기타4"/>
  301. <Column id="etc05" type="STRING" size="256" sumtext="기타4"/>
  302. </ColumnInfo>
  303. </Dataset>
  304. <Dataset id="ds_init_LB0104" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  305. <Dataset id="ds_init_LB0105" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  306. <Dataset id="ds_init_LB0106" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  307. <Dataset id="ds_init_LB0000" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  308. <Dataset id="ds_init_LB9999" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  309. <Dataset id="ds_init_tclskind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  310. <ColumnInfo>
  311. <Column id="label" type="STRING" size="256"/>
  312. <Column id="value" type="STRING" size="256"/>
  313. </ColumnInfo>
  314. <Rows>
  315. <Row>
  316. <Col id="label">Group</Col>
  317. <Col id="value">0</Col>
  318. </Row>
  319. <Row>
  320. <Col id="label">Panel</Col>
  321. <Col id="value">1</Col>
  322. </Row>
  323. <Row>
  324. <Col id="label">Single</Col>
  325. <Col id="value">2</Col>
  326. </Row>
  327. <Row>
  328. <Col id="label">Parent</Col>
  329. <Col id="value">3</Col>
  330. </Row>
  331. <Row>
  332. <Col id="label">Child</Col>
  333. <Col id="value">4</Col>
  334. </Row>
  335. <Row>
  336. <Col id="label">Abnormal</Col>
  337. <Col id="value">5</Col>
  338. </Row>
  339. <Row>
  340. <Col id="label">성분제제</Col>
  341. <Col id="value">6</Col>
  342. </Row>
  343. </Rows>
  344. </Dataset>
  345. </Objects>
  346. <Bind>
  347. <BindItem id="item0" compid="group3.cmb_TestLrgCd" propid="value" datasetid="ds_hidden" columnid="testlrg"/>
  348. <BindItem id="item1" compid="group3.cmb_TestMdlCd" propid="value" datasetid="ds_hidden" columnid="testmdl"/>
  349. <BindItem id="item2" compid="group3.cmb_refgbn" propid="value" datasetid="ds_hidden_search" columnid="searchgbn"/>
  350. <BindItem id="item3" compid="group3.ipt_refgbn" propid="value" datasetid="ds_hidden_search" columnid="searchtext"/>
  351. </Bind>
  352. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  353. * System Name :
  354. * Job Name :
  355. * Creator : SPLLF90800_통합검사코드목록.xfdl
  356. * Make Date : 2015-12-16
  357. * Description :
  358. *---------------------------------------------------------------------------------------
  359. * Modify Date Modifier Modify Description
  360. *---------------------------------------------------------------------------------------
  361. * 2015-11-09 Live Converter TF->XP
  362. *
  363. *---------------------------------------------------------------------------------------
  364. ****************************************************************************************/
  365. include "com_commonxp::comm_main.xjs";
  366. include "lis_commonxp::LLZ001.xjs";
  367. function SPLLF90800_oninit(obj:Form, e:InitEventInfo)
  368. {
  369. frmf_initForm(obj);
  370. }
  371. function SPLLF90800_onload(obj:Form, e:LoadEventInfo)
  372. {
  373. grdf_initGrid(grd_tclscdlist);
  374. grdf_initGrid(grd_instclslist);
  375. grdf_initGrid(grd_tclsinstlist);
  376. ds_send.setColumn(0, "codeflag", "0102|0104|0105|0106|0000|9999|");
  377. var oParam = {};
  378. oParam.id = "TRLZZ00101";
  379. oParam.service = "diagtestapplib.DiagTestBaseInfoMngt";
  380. oParam.method = "reqGetInitCodeInfo";
  381. oParam.inds = "cond=ds_send";
  382. oParam.outds = "ds_init_LB0102=0102 ds_init_LB0104=0104 ds_init_LB0105=0105 ds_init_LB0106=0106 ds_init_LB0000=0000 ds_init_LB9999=9999";
  383. oParam.async = false;
  384. //oParam.callback = "cf_TRLZZ00101";
  385. tranf_submit(oParam);
  386. group3.cmb_refgbn.index = 0;
  387. ds_hidden_search.setColumn(0, "searchtext", "");
  388. ds_hidden.setColumn(0, "testlrg", "00");
  389. ds_hidden.setColumn(0, "testmdl", "00");
  390. ds_main_instclslist_tclslist.clearData();
  391. //검사코드 추가 권한자이면 저장 버튼 활성화
  392. var Chkuserid1 = ds_init_LB0000.getColumn(0, "cd");
  393. ds_init_LB9999.filterstr = "cd =='" + Chkuserid1 + "'";
  394. var n = ds_init_LB9999.rowcount;
  395. //권한있음
  396. if(n > 0)
  397. {
  398. btn_save.enable = true;
  399. }
  400. }
  401. //조회
  402. function group3_btn_ref_onclick(obj:Button, e:ClickEventInfo)
  403. {
  404. fGetTclsInstList("B");
  405. }
  406. //통합검사코드목록 검색 Function
  407. function fGetTclsInstList(btngbn)
  408. {
  409. if(btngbn == "A") //검색버튼
  410. {
  411. if(utlf_isNull(ds_hidden_search.getColumn(0, "searchtext")))
  412. {
  413. sysf_messageBox("검색내용을 입력하세요.", "I");
  414. return;
  415. }
  416. ds_send.setColumn(0, "searchtext", group3.ipt_refgbn.text); //검색내용
  417. ds_send.setColumn(0, "searchgbn", ds_hidden_search.getColumn(0, "searchgbn")); //검색구분
  418. }
  419. else if(btngbn == "B") //조회버튼
  420. {
  421. if(ds_hidden.getColumn(0, "testlrg") == "00" && ds_hidden.getColumn(0, "testmdl") == "00")
  422. {
  423. sysf_messageBox("조회구분을 선택해주세요.", "I");
  424. return;
  425. }
  426. ds_send.setColumn(0, "testlrgcd", ds_hidden.getColumn(0, "testlrg")); //대분류
  427. ds_send.setColumn(0, "testmdlcd", ds_hidden.getColumn(0, "testmdl")); //중분류
  428. }
  429. ds_send.setColumn(0, "btngbn", btngbn) //버튼구분
  430. ds_send.setColumn(0, "userdeptflagcd", ds_init_LB0000.getColumn(0, "nm")); //부서구분(L:진검, P:병리, N:핵체외)
  431. var oParam = {};
  432. oParam.id = "TRLLF90801";
  433. oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
  434. oParam.method = "reqGetSytsTestCdList";
  435. oParam.inds = "cond=ds_send";
  436. oParam.outds = "ds_main_tclsinst_tclslist=getSytsTestCdList";
  437. oParam.async = false;
  438. //oParam.callback = "cf_TRLLF90801";
  439. tranf_submit(oParam);
  440. }
  441. //검색
  442. function group3_btn_search_onclick(obj:Button, e:ClickEventInfo)
  443. {
  444. fGetTclsInstList("A");
  445. }
  446. function btn_move_onclick(obj:Button, e:ClickEventInfo)
  447. {
  448. fSetInslTestList();
  449. }
  450. //추가할 검사코드 목록 이동
  451. function fSetInslTestList(){
  452. //통합검사코드목록에서 선택한 코드와 등록된 코드목록에 조회된 코드가 다르면 다시 조회
  453. if(ds_main_tclsinst_tclslist.getColumn(ds_main_tclsinst_tclslist.rowposition, "tclscd") != ds_main_tclslist_tclscdlist.getColumn(0, "tclscd"))
  454. {
  455. fGetTclsList(ds_main_tclsinst_tclslist, ds_main_tclslist_tclscdlist.rowposition);
  456. }
  457. var toDay = utlf_getCurrentDate();
  458. var mDate;
  459. //통합검사 코드목록
  460. var tclscd = ds_main_tclsinst_tclslist.getColumn(ds_main_tclsinst_tclslist.rowposition, "tclscd");
  461. //통합검사코드목록 선택한 검사코드가 등록할 그리드에 있는지 체크
  462. var findRowNum = ds_main_instclslist_tclslist.findRow("tclscd", tclscd);
  463. //병원별 이미 등록 된 코드 목록
  464. var tclscdlistRows = ds_main_tclslist_tclscdlist.rowcount1;
  465. //병원별 등록된 코드목록 중에서 마지막 종료일자. 첫번째 row가 가장 마지막이다. 쿼리에서 종료일자 desc
  466. var tclslistTodd = ds_main_tclslist_tclscdlist.getColumn(0, "tclstodd");
  467. //----------------------
  468. //종료일자가 99991231 이 있으면 등록 안한다.
  469. if(tclslistTodd == "99991231")
  470. {
  471. sysf_messageBox("해당 코드는 등록할 수 없습니다.\n\n사용중인 코드의 종료일자가 9999-12-31 입니다.", "I");
  472. return;
  473. }
  474. //----------------------
  475. //등록할 그리드에 있으면 등록 추가 안한다.
  476. trace("findRowNum = " + findRowNum);
  477. if(findRowNum >= 0)
  478. {
  479. sysf_messageBox(tclscd + "는 " + findRowNum+ "행에 존재합니다.", "I");
  480. return;
  481. }
  482. else
  483. {
  484. //등록할 그리드에 추가한다.
  485. var tclrow = ds_main_instclslist_tclslist.addRow();
  486. ds_main_instclslist_tclslist.copyRow(tclrow, ds_main_tclsinst_tclslist, ds_main_tclsinst_tclslist.rowposition);
  487. //추가한 행으로 포커스 이동
  488. ds_main_instclslist_tclslist.rowposition = ds_main_instclslist_tclslist.rowcount -1;
  489. }
  490. //------------------------------------
  491. //병원별 이미 등록된 코드가 있다면.
  492. if(tclscdlistRows > 0)
  493. {
  494. //병원별 등록된 것의 가장 마지막 종료일자가 99991231 이 아니면 +1일 , 99991231 이면 99991231
  495. if(tclslistTodd == "99991231")
  496. {
  497. ds_main_instclslist_tclslist.setColumn(ds_main_instclslist_tclslist.rowposition, "fromdd", tclslistTodd);
  498. }
  499. else
  500. {
  501. mDate = tclslistTodd.toDate("YYYYMMDD").getAddDate(+1);
  502. ds_main_instclslist_tclslist.setColumn(ds_main_instclslist_tclslist.rowposition, "fromdd", mDate);
  503. }
  504. }
  505. else
  506. {
  507. //현재일자
  508. ds_main_instclslist_tclslist.setColumn(ds_main_instclslist_tclslist.rowposition, "fromdd", toDay);
  509. }
  510. ds_main_instclslist_tclslist.setColumn(ds_main_instclslist_tclslist.rowposition, "todd", "99991231");
  511. //시작일자 변경시 체크하기 위해 셋팅한다.
  512. ds_main_instclslist_tclslist.setColumn(ds_main_instclslist_tclslist.rowposition, "reffromdd", ds_main_instclslist_tclslist.getColumn(ds_main_instclslist_tclslist.rowposition, "fromdd"));
  513. //날짜체크 이상 없음.
  514. ds_main_instclslist_tclslist.setColumn(ds_main_instclslist_tclslist.rowposition, "datechk", "Y");
  515. ds_main_instclslist_tclslist.setColumn(ds_main_instclslist_tclslist.rowposition, "chk", "Y");
  516. //핵의학일때는 시행부서 셋팅
  517. if(ds_init_LB0000.getColumn(0, "nm") == "N")
  518. {
  519. ds_main_instclslist_tclslist.setColumn(ds_main_instclslist_tclslist.rowposition, "tsectcd", "NR");
  520. }
  521. }
  522. function grd_tclsinstlist_oncellclick(obj:Grid, e:GridClickEventInfo)
  523. {
  524. fGetTclsList(ds_main_tclsinst_tclslist, ds_main_tclsinst_tclslist.rowposition);
  525. }
  526. //등록된 검사코드 목록
  527. function fGetTclsList(ref, row)
  528. {
  529. ds_send.setColumn(0, "tclscd", ref.getColumn(row, "tclscd"));
  530. ds_send.setColumn(0, "userdeptflagcd", ds_init_LB0000.getColumn(0, "nm"));
  531. var oParam = {};
  532. oParam.id = "TRLLF90802";
  533. oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
  534. oParam.method = "reqGetUseTclsList";
  535. oParam.inds = "cond=ds_send";
  536. oParam.outds = "ds_main_tclslist_tclscdlist=getUseTclsList";
  537. oParam.async = false;
  538. //oParam.callback = "cf_TRLLF90802";
  539. tranf_submit(oParam);
  540. }
  541. function button5_onclick(obj:Button, e:ClickEventInfo)
  542. {
  543. fDeleteRow();
  544. }
  545. //행삭제
  546. function fDeleteRow()
  547. {
  548. ds_main_instclslist_tclslist.deleteRow(ds_main_instclslist_tclslist.rowposition);
  549. }
  550. function button8_onclick(obj:Button, e:ClickEventInfo)
  551. {
  552. ds_main_instclslist_tclslist.clearData();
  553. }
  554. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  555. {
  556. fSaveTclsList();
  557. fGetTclsList(ds_main_tclsinst_tclslist, ds_main_tclsinst_tclslist.rowposition);
  558. }
  559. //병원별 검사코드 등록
  560. function fSaveTclsList()
  561. {
  562. var rowCnt = ds_main_instclslist_tclslist.rowcount;
  563. var spccd = "";
  564. var tsectcd = "";
  565. if(rowCnt > 0)
  566. {
  567. for(iRow = 0; iRow < rowCnt; iRow++)
  568. {
  569. spccd = ds_main_instclslist_tclslist.getColumn(iRow, "spccd");
  570. tsectcd = ds_main_instclslist_tclslist.getColumn(iRow, "tsectcd");
  571. //날짜체크
  572. if(ds_main_instclslist_tclslist.getColumn(iRow, "datechk") != "Y" || utlf_isNull(ds_main_instclslist_tclslist.getColumn(iRow, "fromdd"))
  573. || utlf_isNull(ds_main_instclslist_tclslist.getColumn(iRow, "todd")))
  574. {
  575. sysf_messageBox("시작일자, 종료일자를 체크해주세요.", "I");
  576. return;
  577. }
  578. //검체체크 //핵의학일때는 000도 막음.
  579. if(utlf_isNull(spccd) || spccd == "00" || spccd == "998" || spccd == "999" || ds_init_LB0000.getColumn(0, "nm") == "N" && spccd == "000")
  580. {
  581. sysf_messageBox((iRow+1) + " 행의 검체를 체크해주세요.", "I");
  582. return;
  583. }
  584. //시행부서체크
  585. if(utlf_isNull(tsectcd) || tsectcd == "00")
  586. {
  587. sysf_messageBox((iRow+1) + " 행의 시행부서를 체크해주세요.", "I");
  588. return;
  589. }
  590. ds_main_instclslist_tclslist.setColumn(iRow, "chk", "Y");
  591. //grd_instclslist.addStatus(iRow, "insert")
  592. }
  593. var oParam = {};
  594. oParam.id = "TXLLF90801";
  595. oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
  596. oParam.method = "reqInsHospTclsCd";
  597. oParam.inds = "cond=ds_main_instclslist_tclslist:I";
  598. oParam.async = false;
  599. //oParam.callback = "cf_TXLLF90801";
  600. tranf_submit(oParam);
  601. }
  602. else
  603. {
  604. sysf_messageBox("등록 할 검사 코드가 없습니다.");
  605. return;
  606. }
  607. }
  608. function btn_close_onclick(obj:Button, e:ClickEventInfo)
  609. {
  610. this.close();
  611. }
  612. function grd_instclslist_ontextchange(obj:Grid, e:GridEditTextChangeEventInfo)
  613. {
  614. var fromdd = ds_main_instclslist_tclslist.getColumn(ds_main_instclslist_tclslist.rowcount, "fromdd");
  615. var todd = ds_main_instclslist_tclslist.getColumn(ds_main_instclslist_tclslist.rowcount, "todd");
  616. var reffromdd = ds_main_instclslist_tclslist.getColumn(ds_main_instclslist_tclslist.rowcount, "reffromdd");
  617. var spccd = ds_main_instclslist_tclslist.getColumn(ds_main_instclslist_tclslist.rowcount, "spccd");
  618. var tsectcd = ds_main_instclslist_tclslist.getColumn(ds_main_instclslist_tclslist.rowcount, "tsectcd");
  619. //시작일자,종료일자 체크시
  620. //if((grd_instclslist.col == grd_instclslist.colRef("todd") || grd_instclslist.col == grd_instclslist.colRef("fromdd") ) )
  621. if(e.col == 3 || e.col == 2)
  622. {
  623. if(!utlf_isNull(fromdd) && !utlf_isNull(todd))
  624. {
  625. if(fromdd > todd)
  626. {
  627. sysf_messageBox("종료일자가 시작일자보다 이전 날짜입니다.", "I");
  628. ds_main_instclslist_tclslist.setColumn(ds_main_instclslist_tclslist.rowposition, "todd", "99991231");
  629. return;
  630. }
  631. }
  632. if(!utlf_isNull(fromdd))
  633. {
  634. if(reffromdd > fromdd)
  635. {
  636. sysf_messageBox("시작일자가 " + reffromdd.toDate("YYYYMMDD").getDateFormat("YYYY-MM-DD") + " 보다 이후 날짜이어야 합니다.", "I");
  637. ds_main_instclslist_tclslist.setColumn(ds_main_instclslist_tclslist.rowposition, "fromdd", reffromdd);
  638. return;
  639. }
  640. }
  641. }
  642. //검체 선택시
  643. if(e.col == 6)
  644. {
  645. if(spccd == "00" || spccd == "998" || spccd == "999")
  646. {
  647. sysf_messageBox((ds_main_instclslist_tclslist.rowposition+1) + "행의 검체코드를 확인해주세요.", "I");
  648. return;
  649. }
  650. }
  651. //시행부서 선택시
  652. if(e.col == 7)
  653. {
  654. if(tsectcd == "00")
  655. {
  656. sysf_messageBox((ds_main_instclslist_tclslist+1) + "행의 시행부서를 확인해주세요.", "I");
  657. return;
  658. }
  659. }
  660. }
  661. function group3_ipt_refgbn_onkeyup(obj:Edit, e:KeyEventInfo)
  662. {
  663. if(e.keycode == 13)
  664. {
  665. ds_hidden_search.setColumn(0, "searchtext", group3.ipt_refgbn.text);
  666. fGetTclsInstList("A");
  667. }
  668. }
  669. function group4_btn_search_onclick(obj:Button, e:ClickEventInfo)
  670. {
  671. ds_hidden_search.setColumn(0, "searchtext", group3.ipt_refgbn.text);
  672. fGetTclsInstList("A");
  673. }
  674. function group2_group3_cmb_TestLrgCd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  675. {
  676. fSetTestLrgCd();
  677. }
  678. //중분류 초기정보 조회
  679. function fSetTestLrgCd()
  680. {
  681. var lrg = ds_hidden.getColumn(0, "testlrg");
  682. if(lrg == "00")
  683. {
  684. ds_init_LB0102.filterstr = "";
  685. ds_hidden.setColumn(0, "testmdl", "00");
  686. }
  687. else
  688. {
  689. ds_hidden.setColumn(0, "testmdl", "00");
  690. ds_init_LB0102.filterstr = "cd == '00' || etc01 == '" + lrg +"'";
  691. }
  692. } ]]></Script>
  693. </Form>
  694. </FDL>