SMLLF10500_통합검사코드관리.xfdl 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLLF10500" position="absolute 0 0 1196 789" titletext="New Form" oninit="SMLLF10500_oninit" onload="SMLLF10500_onload">
  5. <Layouts>
  6. <Layout>
  7. <Button id="btn_save" taborder="1" text="저장" class="btn4" position="absolute 1068 2 1124 24" onclick="btn_save_onclick" anchor="top right"/>
  8. <Button id="btn_reset" taborder="2" text="초기화" class="btn4" position="absolute 1127 2 1195 24" anchor="top right" onclick="btn_reset_onclick"/>
  9. <Static id="caption6" text="검사코드관리" class="tit_1" position="absolute 0 0 121 25" anchor="left top"/>
  10. <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 90 860 96" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  11. <Shape id="line11" linetype="vertical" position="absolute 1105 34 1111 56" anchor="top right"/>
  12. <Static id="caption2" text="검사분류상세내역" class="tit_2" position="absolute 1 74 132 90" anchor="left top"/>
  13. <Grid id="grd_tclscd" taborder="3" binddataset="ds_main_tclslist_tclscdlist1" useinputpanel="false" position="absolute 0 95 860 764" cellsizingtype="col" anchor="all">
  14. <Formats>
  15. <Format id="default">
  16. <Columns>
  17. <Column size="23"/>
  18. <Column size="85"/>
  19. <Column size="85"/>
  20. <Column size="100"/>
  21. <Column size="70"/>
  22. <Column size="150"/>
  23. <Column size="65"/>
  24. <Column size="85"/>
  25. <Column size="85"/>
  26. <Column size="85"/>
  27. <Column size="85"/>
  28. <Column size="100"/>
  29. <Column size="60"/>
  30. <Column size="60"/>
  31. <Column size="0"/>
  32. <Column size="0"/>
  33. <Column size="0"/>
  34. <Column size="0"/>
  35. <Column size="0"/>
  36. <Column size="0"/>
  37. <Column size="0"/>
  38. <Column size="0"/>
  39. <Column size="0"/>
  40. <Column size="0"/>
  41. <Column size="0"/>
  42. </Columns>
  43. <Rows>
  44. <Row size="24" band="head"/>
  45. <Row size="24"/>
  46. </Rows>
  47. <Band id="head">
  48. <Cell/>
  49. <Cell col="1" text="등록일자"/>
  50. <Cell col="2" text="종료일자"/>
  51. <Cell col="3" text="중분류"/>
  52. <Cell col="4" text="검사코드"/>
  53. <Cell col="5" text="검사명"/>
  54. <Cell col="6" text="검사구분"/>
  55. <Cell col="7" text="검사명(화면)"/>
  56. <Cell col="8" text="검사명(약어)"/>
  57. <Cell col="9" text="검사명(출력)"/>
  58. <Cell col="10" text="검사명(라벨)"/>
  59. <Cell col="11" text="검사방법"/>
  60. <Cell col="12" text="본원"/>
  61. <Cell col="13" text="칠곡"/>
  62. <Cell col="14" text="의정부"/>
  63. <Cell col="15" text="부천성모"/>
  64. <Cell col="16" text="성바오로"/>
  65. <Cell col="17" text="성모자애"/>
  66. <Cell col="18" text="성빈센트"/>
  67. <Cell col="19" text="대전"/>
  68. <Cell col="20" text="EDI코드"/>
  69. <Cell col="21" text="대분류"/>
  70. <Cell col="22" text="level"/>
  71. <Cell col="23" text="htclscd"/>
  72. <Cell col="24" text="hspccd"/>
  73. </Band>
  74. <Band id="body">
  75. <Cell celltype="head"/>
  76. <Cell col="1" displaytype="date" edittype="date" text="bind:tclscdfromdd" mask="yyyy-MM-dd"/>
  77. <Cell col="2" displaytype="date" edittype="date" text="bind:tclscdtodd" mask="yyyy-MM-dd"/>
  78. <Cell col="3" displaytype="combo" edittype="combo" text="bind:testmdlcd" combodataset="ds_init_LB3102" combocodecol="cd" combodatacol="nm" combodisplayrowcount="20"/>
  79. <Cell col="4" displaytype="text" edittype="text" editfilter="upper,number,char" text="bind:tclscd"/>
  80. <Cell col="5" displaytype="text" edittype="text" text="bind:tclsnm"/>
  81. <Cell col="6" displaytype="combo" edittype="combo" text="bind:tclskind" combodataset="ds_choices" combocodecol="value" combodatacol="label" combodisplayrowcount="7"/>
  82. <Cell col="7" displaytype="text" edittype="text" text="bind:tclsscrnnm"/>
  83. <Cell col="8" displaytype="text" edittype="text" text="bind:tclsabbrnm"/>
  84. <Cell col="9" displaytype="text" edittype="text" text="bind:tclsprntnm"/>
  85. <Cell col="10" displaytype="text" edittype="text" text="bind:tclslblnm"/>
  86. <Cell col="11" displaytype="text" edittype="text" text="bind:testmthd"/>
  87. <Cell col="12" displaytype="checkbox" edittype="checkbox" text="bind:his011" expr="expr:his011 == 'Y' ? '1' : '0'"/>
  88. <Cell col="13" displaytype="checkbox" edittype="checkbox" text="bind:his012" expr="expr:his012 == 'Y' ? '1' : '0'"/>
  89. <Cell col="14" displaytype="checkbox" edittype="checkbox" text="bind:his013"/>
  90. <Cell col="15" displaytype="checkbox" edittype="checkbox" text="bind:his014"/>
  91. <Cell col="16" displaytype="checkbox" edittype="checkbox" text="bind:his015"/>
  92. <Cell col="17" displaytype="checkbox" edittype="checkbox" text="bind:his016"/>
  93. <Cell col="18" displaytype="checkbox" edittype="checkbox" text="bind:his017"/>
  94. <Cell col="19" displaytype="checkbox" edittype="checkbox" text="bind:his018"/>
  95. <Cell col="20" text="bind:testlrgcd"/>
  96. <Cell col="21" text="bind:level"/>
  97. <Cell col="22" text="bind:htclscd"/>
  98. <Cell col="23" text="bind:hspccd"/>
  99. <Cell col="24" text="bind:htodd"/>
  100. </Band>
  101. </Format>
  102. </Formats>
  103. </Grid>
  104. <Div id="group1" taborder="4" position="absolute 0 26 1195 66" class="div_SA" anchor="left top right">
  105. <Layouts>
  106. <Layout>
  107. <Shape id="line2" linetype="vertical" class="line_4" position="absolute 1105 7 1111 29" anchor="top right"/>
  108. <Static id="caption1" text="조회구분 :" class="search_name" position="absolute 642 11 732 28" anchor="top right"/>
  109. <Static id="caption4" text="조회항목구분 :" class="search_name" position="absolute 12 11 110 28" anchor="left top"/>
  110. <Combo id="cmb_mdl" taborder="1" innerdataset="@ds_init_LB3102" codecolumn="cd" datacolumn="nm" class="combo_search" position="absolute 298 8 448 27" anchor="default"/>
  111. <Combo id="cmb_lrg" taborder="2" innerdataset="@ds_init_LB3104" codecolumn="cd" datacolumn="nm" class="combo_search" position="absolute 298 8 448 27" anchor="left top"/>
  112. <Radio id="rdo_lrgmdl" taborder="3" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" onitemclick="group3_group1_rdo_lrgmdl_onitemclick" onitemchanged="group3_group1_rdo_lrgmdl_onitemchanged" class="radio_search" position="absolute 118 10 281 27" anchor="left top">
  113. <Dataset id="innerdataset">
  114. <ColumnInfo>
  115. <Column id="codecolumn"/>
  116. <Column id="datacolumn"/>
  117. </ColumnInfo>
  118. <Rows>
  119. <Row>
  120. <Col id="codecolumn">1</Col>
  121. <Col id="datacolumn">대분류콤보</Col>
  122. </Row>
  123. <Row>
  124. <Col id="codecolumn">2</Col>
  125. <Col id="datacolumn">중분류콤보</Col>
  126. </Row>
  127. </Rows>
  128. </Dataset>
  129. </Radio>
  130. <Combo id="cmb_refgbn" taborder="4" codecolumn="codecolumn" datacolumn="datacolumn" class="combo_search" position="absolute 735 10 885 29" anchor="top right">
  131. <Dataset id="innerdataset">
  132. <ColumnInfo>
  133. <Column id="codecolumn"/>
  134. <Column id="datacolumn"/>
  135. </ColumnInfo>
  136. <Rows>
  137. <Row>
  138. <Col id="codecolumn">1</Col>
  139. <Col id="datacolumn">검사코드</Col>
  140. </Row>
  141. <Row>
  142. <Col id="codecolumn">2</Col>
  143. <Col id="datacolumn">검사명</Col>
  144. </Row>
  145. </Rows>
  146. </Dataset>
  147. </Combo>
  148. <Edit id="ipt_search" taborder="5" class="input_s_button" position="absolute 888 10 998 29" anchor="top right" onkeyup="group1_ipt_search_onkeyup"/>
  149. <Button id="btn_ref" taborder="6" text="조회" onclick="group3_group1_btn_ref_onclick" class="btn1" position="absolute 1125 9 1181 31" anchor="top right"/>
  150. <Button id="btn_reftext" taborder="7" position="absolute 980 12 996 27" anchor="top right" onclick="group1_btn_reftext_onclick"/>
  151. </Layout>
  152. </Layouts>
  153. </Div>
  154. <Button id="button6" taborder="5" text="* 임시 r" class="btn2" visible="false" position="absolute 850 69 936 88" anchor="top right"/>
  155. <Grid id="grd_calc" taborder="6" binddataset="ds_main_tclslist_tclscdlist2" useinputpanel="false" position="absolute 865 95 1194 764" anchor="top right bottom" cellsizingtype="col">
  156. <Formats>
  157. <Format id="default">
  158. <Columns>
  159. <Column size="25"/>
  160. <Column size="70"/>
  161. <Column size="80"/>
  162. <Column size="160"/>
  163. <Column size="80"/>
  164. <Column size="0"/>
  165. <Column size="0"/>
  166. </Columns>
  167. <Rows>
  168. <Row size="24" band="head"/>
  169. <Row size="24"/>
  170. </Rows>
  171. <Band id="head">
  172. <Cell/>
  173. <Cell col="1" text="수가코드"/>
  174. <Cell col="2" text="보험코드"/>
  175. <Cell col="3" text="처방명"/>
  176. <Cell col="4" text="구분"/>
  177. <Cell col="5" text="대분류"/>
  178. <Cell col="6" text="level"/>
  179. </Band>
  180. <Band id="body">
  181. <Cell celltype="head" text="expr:currow + 1"/>
  182. <Cell col="1" text="bind:calcscorcd"/>
  183. <Cell col="2" text="bind:insuedicd"/>
  184. <Cell col="3" text="bind:ordnm"/>
  185. <Cell col="4" text="bind:grupsnglflag"/>
  186. <Cell col="5" text="bind:tclscd"/>
  187. <Cell col="6" text="bind:spccd"/>
  188. </Band>
  189. </Format>
  190. </Formats>
  191. </Grid>
  192. <Button id="btn_insert" taborder="7" text="행삽입" onclick="group3_btn_insert_onclick" class="btn2" position="absolute 1141 69 1194 88" anchor="top right"/>
  193. <Button id="btn_add" taborder="8" text="행추가" onclick="group3_btn_add_onclick" class="btn2" position="absolute 1085 69 1138 88" anchor="top right"/>
  194. <Button id="btn_del" taborder="9" text="행삭제" onclick="group3_btn_del_onclick" class="btn2" visible="false" position="absolute 1029 69 1082 88" anchor="top right"/>
  195. <Shape id="line00" class="line_1" position="absolute 865 90 1194 96" style="strokepen:3 solid #33bbbbff;" anchor="top right"/>
  196. </Layout>
  197. </Layouts>
  198. <Objects>
  199. <Dataset id="ds_main_tclslist_tclscdlist1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_main_tclslist_tclscdlist1_oncolumnchanged">
  200. <ColumnInfo>
  201. <Column id="tclscdfromdd" type="STRING"/>
  202. <Column id="tclscdtodd" type="STRING"/>
  203. <Column id="testmdlcd" type="STRING"/>
  204. <Column id="tclscd" type="STRING"/>
  205. <Column id="tclsnm" type="STRING"/>
  206. <Column id="tclskind" type="STRING"/>
  207. <Column id="tclsscrnnm" type="STRING"/>
  208. <Column id="tclsabbrnm" type="STRING"/>
  209. <Column id="tclsprntnm" type="STRING"/>
  210. <Column id="tclslblnm" type="STRING"/>
  211. <Column id="testmthd" type="STRING"/>
  212. <Column id="his011" type="STRING"/>
  213. <Column id="his012" type="STRING"/>
  214. <Column id="his013" type="STRING"/>
  215. <Column id="his014" type="STRING"/>
  216. <Column id="his015" type="STRING"/>
  217. <Column id="his016" type="STRING"/>
  218. <Column id="his017" type="STRING"/>
  219. <Column id="his018" type="STRING"/>
  220. <Column id="testlrgcd" type="STRING"/>
  221. <Column id="level" type="STRING"/>
  222. <Column id="htclscd" type="STRING"/>
  223. <Column id="hspccd" type="STRING"/>
  224. <Column id="htodd" type="STRING"/>
  225. </ColumnInfo>
  226. </Dataset>
  227. <Dataset id="ds_main_tclslist_tclscdlist2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  228. <ColumnInfo>
  229. <Column id="calcscorcd" type="STRING"/>
  230. <Column id="insuedicd" type="STRING"/>
  231. <Column id="ordnm" type="STRING"/>
  232. <Column id="grupsnglflag" type="STRING"/>
  233. <Column id="tclscd" type="STRING"/>
  234. <Column id="spccd" type="STRING"/>
  235. </ColumnInfo>
  236. </Dataset>
  237. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  238. <ColumnInfo>
  239. <Column id="codeflag" type="STRING" size="256"/>
  240. <Column id="refgbn" type="STRING" size="256"/>
  241. <Column id="searchgbn" type="STRING" size="256"/>
  242. <Column id="lrgselect" type="STRING" size="256"/>
  243. <Column id="mdlselect" type="STRING" size="256"/>
  244. <Column id="grddata" type="STRING" size="256"/>
  245. <Column id="deptflag" type="STRING" size="256"/>
  246. <Column id="searchtext" type="STRING" size="256"/>
  247. </ColumnInfo>
  248. <Rows>
  249. <Row/>
  250. </Rows>
  251. </Dataset>
  252. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  253. <ColumnInfo>
  254. <Column id="refgbn" type="STRING" size="256"/>
  255. <Column id="searchgbn" type="STRING" size="256"/>
  256. <Column id="searchselect" type="STRING" size="256"/>
  257. <Column id="lrgselect" type="STRING" size="256"/>
  258. <Column id="mdlselect" type="STRING" size="256"/>
  259. <Column id="spclist" type="STRING" size="256"/>
  260. <Column id="searchtext" type="STRING" size="256"/>
  261. </ColumnInfo>
  262. <Rows>
  263. <Row>
  264. <Col id="refgbn">1</Col>
  265. <Col id="searchgbn">1</Col>
  266. <Col id="searchselect">1</Col>
  267. <Col id="lrgselect">00</Col>
  268. <Col id="mdlselect">00</Col>
  269. </Row>
  270. </Rows>
  271. </Dataset>
  272. <Dataset id="ds_init_LB3102" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  273. <ColumnInfo>
  274. <Column id="cd" type="STRING" size="256" sumtext="코드"/>
  275. <Column id="nm" type="STRING" size="256" sumtext="코드명"/>
  276. <Column id="chk" type="STRING" size="256" sumtext="chk"/>
  277. <Column id="etc01" type="STRING" size="256" sumtext="기타1"/>
  278. <Column id="etc02" type="STRING" size="256" sumtext="기타2"/>
  279. <Column id="etc03" type="STRING" size="256" sumtext="기타3"/>
  280. <Column id="etc04" type="STRING" size="256" sumtext="기타4"/>
  281. <Column id="etc05" type="STRING" size="256" sumtext="기타4"/>
  282. </ColumnInfo>
  283. </Dataset>
  284. <Dataset id="ds_init_LB3104" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  285. <ColumnInfo>
  286. <Column id="cd" type="STRING" size="256" sumtext="코드"/>
  287. <Column id="nm" type="STRING" size="256" sumtext="코드명"/>
  288. <Column id="chk" type="STRING" size="256" sumtext="chk"/>
  289. <Column id="etc01" type="STRING" size="256" sumtext="기타1"/>
  290. <Column id="etc02" type="STRING" size="256" sumtext="기타2"/>
  291. <Column id="etc03" type="STRING" size="256" sumtext="기타3"/>
  292. <Column id="etc04" type="STRING" size="256" sumtext="기타4"/>
  293. <Column id="etc05" type="STRING" size="256" sumtext="기타4"/>
  294. </ColumnInfo>
  295. </Dataset>
  296. <Dataset id="ds_init_LB0000" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  297. <ColumnInfo>
  298. <Column id="cd" type="STRING" size="256" sumtext="코드"/>
  299. <Column id="nm" type="STRING" size="256" sumtext="코드명"/>
  300. <Column id="chk" type="STRING" size="256" sumtext="chk"/>
  301. <Column id="etc01" type="STRING" size="256" sumtext="기타1"/>
  302. <Column id="etc02" type="STRING" size="256" sumtext="기타2"/>
  303. <Column id="etc03" type="STRING" size="256" sumtext="기타3"/>
  304. <Column id="etc04" type="STRING" size="256" sumtext="기타4"/>
  305. <Column id="etc05" type="STRING" size="256" sumtext="기타4"/>
  306. </ColumnInfo>
  307. </Dataset>
  308. <Dataset id="ds_choices" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  309. <ColumnInfo>
  310. <Column id="label" type="STRING" size="256"/>
  311. <Column id="value" type="STRING" size="256"/>
  312. </ColumnInfo>
  313. <Rows>
  314. <Row>
  315. <Col id="label">Group</Col>
  316. <Col id="value">0</Col>
  317. </Row>
  318. <Row>
  319. <Col id="label">Panel</Col>
  320. <Col id="value">1</Col>
  321. </Row>
  322. <Row>
  323. <Col id="label">Single</Col>
  324. <Col id="value">2</Col>
  325. </Row>
  326. <Row>
  327. <Col id="label">Parent</Col>
  328. <Col id="value">3</Col>
  329. </Row>
  330. <Row>
  331. <Col id="label">Child</Col>
  332. <Col id="value">4</Col>
  333. </Row>
  334. <Row>
  335. <Col id="label">Abnormal</Col>
  336. <Col id="value">5</Col>
  337. </Row>
  338. <Row>
  339. <Col id="label">성분제제</Col>
  340. <Col id="value">6</Col>
  341. </Row>
  342. </Rows>
  343. </Dataset>
  344. </Objects>
  345. <Bind>
  346. <BindItem id="item0" compid="group1.rdo_lrgmdl" propid="value" datasetid="ds_hidden" columnid="searchgbn"/>
  347. <BindItem id="item1" compid="group1.cmb_lrg" propid="value" datasetid="ds_hidden" columnid="lrgselect"/>
  348. <BindItem id="item2" compid="group1.cmb_refgbn" propid="value" datasetid="ds_hidden" columnid="refgbn"/>
  349. <BindItem id="item3" compid="group1.ipt_search" propid="value" datasetid="ds_hidden" columnid="searchtext"/>
  350. <BindItem id="item4" compid="group1.cmb_mdl" propid="value" datasetid="ds_hidden" columnid="mdlselect"/>
  351. </Bind>
  352. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  353. * System Name :
  354. * Job Name :
  355. * Creator : SMLLF10500_통합검사코드관리.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 SMLLF10500_oninit(obj:Form, e:InitEventInfo)
  368. {
  369. frmf_initForm(obj);
  370. }
  371. function SMLLF10500_onload(obj:Form, e:LoadEventInfo)
  372. {
  373. grdf_initGrid(grd_tclscd);
  374. grdf_initGrid(grd_calc);
  375. grdf_setRowTypeIcon(grd_tclscd, 0);
  376. // 초기정보 조회
  377. ds_send.setColumn(0, "codeflag", "3102|3104|0000|"); // 3102= [CMCDB]중분류 // 3104 [CMCDB]대분류
  378. var oParam = {};
  379. oParam.id = "TRLZZ00101";
  380. oParam.service = "diagtestapplib.DiagTestBaseInfoMngt";
  381. oParam.method = "reqGetInitCodeInfo";
  382. oParam.inds = "cond=ds_send";
  383. oParam.outds = "ds_init_LB3102=3102 ds_init_LB3104=3104 ds_init_LB0000=0000";
  384. oParam.async = false;
  385. //oParam.callback = "cf_TRLZZ00101";
  386. tranf_submit(oParam);
  387. }
  388. function group3_group1_btn_ref_onclick(obj:Button, e:ClickEventInfo)
  389. {
  390. fGetTclscdList();
  391. }
  392. function fGetTclscdList()
  393. {
  394. ds_send.setColumn(0, "refgbn", ds_hidden.getColumn(0, "refgbn"));
  395. ds_send.setColumn(0, "searchgbn", ds_hidden.getColumn(0, "searchgbn"));
  396. ds_send.setColumn(0, "lrgselect", ds_hidden.getColumn(0, "lrgselect"));
  397. ds_send.setColumn(0, "mdlselect", ds_hidden.getColumn(0, "mdlselect"));
  398. ds_send.setColumn(0, "searchtext", ds_hidden.getColumn(0, "searchtext"));
  399. ds_send.setColumn(0, "deptflag", ds_init_LB0000.getColumn(0, "nm"));
  400. var oParam = {};
  401. oParam.id = "TRLLF00501";
  402. oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
  403. oParam.method = "reqGetUnityTclscdList";
  404. oParam.inds = "cond=ds_send";
  405. oParam.outds = "ds_main_tclslist_tclscdlist1=gettclscd ds_main_tclslist_tclscdlist2=gettclscd";
  406. oParam.async = false;
  407. //oParam.callback = "cf_TRLLF00501";
  408. tranf_submit(oParam);
  409. }
  410. function group3_group1_rdo_lrgmdl_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  411. {
  412. fSetLrgMdlflag();
  413. }
  414. // 조회항목구분 (대분류/중분류)
  415. function fSetLrgMdlflag(lrgmdlflag)
  416. {
  417. var lrgmdlflag = ds_hidden.getColumn(0, "searchgbn");
  418. if(lrgmdlflag == "1") // 대분류
  419. {
  420. group1.cmb_lrg.visible = true;
  421. group1.cmb_mdl.visible = false;
  422. }
  423. else if(lrgmdlflag == "2") // 중분류
  424. {
  425. group1.cmb_lrg.visible = false;
  426. group1.cmb_mdl.visible = true;
  427. }
  428. }
  429. //행추가
  430. function group3_btn_add_onclick(obj:Button, e:ClickEventInfo)
  431. {
  432. fSetAddRow("A");
  433. }
  434. //행삽입
  435. function group3_btn_insert_onclick(obj:Button, e:ClickEventInfo)
  436. {
  437. fSeInsertRow("I");
  438. }
  439. // 행추가
  440. function fSetAddRow(ref)
  441. {
  442. ds_main_tclslist_tclscdlist1.addRow();
  443. ds_main_tclslist_tclscdlist2.addRow();
  444. var row = ds_main_tclslist_tclscdlist1.rowcount;
  445. fSetRowData(row-1);
  446. ds_main_tclslist_tclscdlist1.rowposition = ds_main_tclslist_tclscdlist1.rowcount-1;
  447. }
  448. // 행삽입
  449. function fSeInsertRow(ref)
  450. {
  451. var row = ds_main_tclslist_tclscdlist1.rowposition;
  452. ds_main_tclslist_tclscdlist1.insertRow(row+1);
  453. ds_main_tclslist_tclscdlist2.insertRow(row+1);
  454. fSetRowData(row+1);
  455. }
  456. // 행추가, 행삽입 됐을때 초기값
  457. function fSetRowData(row)
  458. {
  459. var today = utlf_getCurrentDate();
  460. ds_main_tclslist_tclscdlist1.setColumn(row, "tclscdfromdd", today);
  461. ds_main_tclslist_tclscdlist1.setColumn(row, "tclscdtodd", "99991231");
  462. ds_main_tclslist_tclscdlist1.setColumn(row, "tclsabbrnm", "-");
  463. ds_main_tclslist_tclscdlist1.setColumn(row, "tclsprntnm", "-");
  464. ds_main_tclslist_tclscdlist1.setColumn(row, "tclslblnm", "-");
  465. }
  466. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  467. {
  468. fExeTclscdSave();
  469. }
  470. // 통합검사코드 수정,등록
  471. function fExeTclscdSave()
  472. {
  473. //필수항목 체크
  474. if(fExeNotNull())
  475. {
  476. dsf_createDsRow("ds_temp", [{col : "gbn", val : ds_hidden.getColumn(0, "refgbn")}
  477. ,{col : "deptflag", val : ds_init_LB0000.getColumn(0, "nm")}]);
  478. var oParam = {};
  479. oParam.id = "TXLLF00501";
  480. oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
  481. oParam.method = "reqExeUnitySaveTclscdInfo";
  482. oParam.inds = "cond=ds_temp tclscdlist=ds_main_tclslist_tclscdlist1:A";
  483. oParam.outds = "";
  484. oParam.async = false;
  485. oParam.callback = "cf_TXLLF00501";
  486. tranf_submit(oParam);
  487. }
  488. }
  489. function cf_TXLLF00501(sSvcId, nErrorCode, sErrorMsg)
  490. {
  491. if(nErrorCode < 0)
  492. {
  493. return;
  494. }
  495. else
  496. {
  497. fGetTclscdList();
  498. }
  499. }
  500. // 필수입력항목 체크
  501. function fExeNotNull()
  502. {
  503. var msg = "";
  504. var status;
  505. for(i = 0; i < ds_main_tclslist_tclscdlist1.rowcount; i++)
  506. {
  507. status = ds_main_tclslist_tclscdlist1.getRowType(i);
  508. if(status == 1 || status == 2 || status == 4)
  509. {
  510. if(utlf_isNull(ds_main_tclslist_tclscdlist1.getColumn(i, "tclscd")))
  511. {
  512. msg = "[검사코드] 는 " ;
  513. sysf_messageBox(msg , "I003", "");
  514. ds_main_tclslist_tclscdlist1.rowposition = i;
  515. return false;
  516. }
  517. if(utlf_isNull(ds_main_tclslist_tclscdlist1.getColumn(i, "tclscdfromdd")))
  518. {
  519. msg = "[사용시작일자] 는 " ;
  520. sysf_messageBox(msg , "I003", "");
  521. ds_main_tclslist_tclscdlist1.rowposition = i;
  522. return false;
  523. }
  524. if(utlf_isNull(ds_main_tclslist_tclscdlist1.getColumn(i, "tclscdtodd")))
  525. {
  526. msg = "[사용종료일자] 는 " ;
  527. sysf_messageBox(msg , "I003", "");
  528. ds_main_tclslist_tclscdlist1.rowposition = i;
  529. return false;
  530. }
  531. if(utlf_isNull(ds_main_tclslist_tclscdlist1.getColumn(i, "tclsnm")))
  532. {
  533. msg = "[검사명] 은 " ;
  534. sysf_messageBox(msg , "I003", "");
  535. ds_main_tclslist_tclscdlist1.rowposition = i;
  536. return false;
  537. }
  538. if(utlf_isNull(ds_main_tclslist_tclscdlist1.getColumn(i, "tclsscrnnm")))
  539. {
  540. msg = "[검사화면명] 은 " ;
  541. sysf_messageBox(msg , "I003", "");
  542. ds_main_tclslist_tclscdlist1.rowposition = i;
  543. return false;
  544. }
  545. if(utlf_isNull(ds_main_tclslist_tclscdlist1.getColumn(i, "testmdlcd")))
  546. {
  547. msg = "[검사중분류코드] 는 " ;
  548. sysf_messageBox(msg , "I003", "");
  549. ds_main_tclslist_tclscdlist1.rowposition = i;
  550. return false;
  551. }
  552. if(utlf_isNull(ds_main_tclslist_tclscdlist1.getColumn(i, "tclskind")))
  553. {
  554. msg = "[검사구분] 은 " ;
  555. sysf_messageBox(msg , "I003", "");
  556. ds_main_tclslist_tclscdlist1.rowposition = i;
  557. return false;
  558. }
  559. }
  560. }
  561. return true;
  562. }
  563. function btn_reset_onclick(obj:Button, e:ClickEventInfo)
  564. {
  565. LLZ_reset();
  566. }
  567. // 초기화
  568. function LLZ_reset()
  569. {
  570. this.reload();
  571. }
  572. function group1_btn_reftext_onclick(obj:Button, e:ClickEventInfo)
  573. {
  574. ds_hidden.setColumn(0, "searchtext", group1.ipt_search.text);
  575. fGetTclscdList();
  576. }
  577. function group1_ipt_search_onkeyup(obj:Edit, e:KeyEventInfo)
  578. {
  579. if(e.keycode == 13)
  580. {
  581. ds_hidden.setColumn(0, "searchtext", group1.ipt_search.text);
  582. fGetTclscdList();
  583. }
  584. }
  585. function ds_main_tclslist_tclscdlist1_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  586. {
  587. if( e.columnid == "his011" )
  588. {
  589. obj.setColumn(e.row, "his011", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  590. }
  591. if( e.columnid == "his012" )
  592. {
  593. obj.setColumn(e.row, "his012", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  594. }
  595. }
  596. ]]></Script>
  597. </Form>
  598. </FDL>