SMLLF02000_판독예문코드관리.xfdl 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMLLF02000" position="absolute 0 0 1259 808" titletext="판독예문코드관리" onload="SMLLF02000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp3" position="absolute 0 25 1256 805" anchor="all" positiontype="position" scrollbars="autoboth">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption1" class="tit_2" position="absolute 0 52 75 72" anchor="default" text="검사목록" positiontype="position"/>
  11. <Static id="caption3" class="tit_2" position="absolute 645 52 752 72" text="판독코드목록" anchor="default" positiontype="position"/>
  12. <Grid id="grd_SpclTclscd" position="absolute 0 73 635 778" anchor="left top bottom" onclick="grd_SpclTclscd_onclick" binddataset="ds_grid_grd_SpclTclscd" oncellclick="grp3_grd_SpclTclscd_oncellclick" positiontype="position">
  13. <Formats>
  14. <Format id="default">
  15. <Columns>
  16. <Column size="0"/>
  17. <Column size="30"/>
  18. <Column size="80"/>
  19. <Column size="370"/>
  20. <Column size="70"/>
  21. <Column size="70"/>
  22. <Column size="0"/>
  23. </Columns>
  24. <Rows>
  25. <Row size="24" band="head"/>
  26. <Row size="24"/>
  27. </Rows>
  28. <Band id="head">
  29. <Cell/>
  30. <Cell col="1" text="상태"/>
  31. <Cell col="2" text="검사코드"/>
  32. <Cell col="3" text="검사내용"/>
  33. <Cell col="4" text="검사구분"/>
  34. <Cell col="5" text="표시순서"/>
  35. <Cell col="6" text="spccd(숨)"/>
  36. </Band>
  37. <Band id="body">
  38. <Cell celltype="head" expr="currow+1"/>
  39. <Cell col="1" celltype="head" displaytype="image"/>
  40. <Cell col="2" displaytype="text" edittype="text" style="align:left middle;" text="bind:tclscd"/>
  41. <Cell col="3" style="align:left middle;" text="bind:tclsnm"/>
  42. <Cell col="4" displaytype="combo" text="bind:tclskind" combodataset="ds_tclskind" combocodecol="cd" combodatacol="nm"/>
  43. <Cell col="5" style="align:right middle;" text="bind:rsltdispseq"/>
  44. <Cell col="6" text="bind:spccd"/>
  45. </Band>
  46. </Format>
  47. </Formats>
  48. </Grid>
  49. <Static id="caption4" class="tit_2" position="absolute 645 248 776 268" text="판독예문 상세내용" anchor="default" positiontype="position"/>
  50. <Static id="caption5" class="tit_2" position="absolute 645 558 780 578" text="Interpretation" anchor="default" positiontype="position"/>
  51. <Button id="btn_add" class="btn2" position="absolute 1141 50 1197 70" anchor="top right" text="행추가" onclick="grp3_btn_add_onclick" positiontype="position"/>
  52. <Button id="btn_del" class="btn2" position="absolute 1200 50 1256 70" anchor="top right" text="행삭제" onclick="grp3_btn_del_onclick" positiontype="position"/>
  53. <Grid id="grd_readexmp" position="absolute 645 72 1256 238" anchor="left top right" onclick="grd_readexmp_onclick" binddataset="ds_grid_grd_readexmp" oncellclick="grp3_grd_readexmp_oncellclick" autoenter="select" positiontype="position" autofittype="col">
  54. <Formats>
  55. <Format id="default">
  56. <Columns>
  57. <Column size="0"/>
  58. <Column size="30"/>
  59. <Column size="90"/>
  60. <Column size="354"/>
  61. <Column size="70"/>
  62. <Column size="0"/>
  63. <Column size="0"/>
  64. <Column size="0"/>
  65. </Columns>
  66. <Rows>
  67. <Row size="24" band="head"/>
  68. <Row size="22"/>
  69. </Rows>
  70. <Band id="head">
  71. <Cell/>
  72. <Cell col="1" text="상태"/>
  73. <Cell col="2" text="판독예문코드"/>
  74. <Cell col="3" text="판독예문내용"/>
  75. <Cell col="4" text="표시순서"/>
  76. <Cell col="5" text="상세(숨)"/>
  77. <Cell col="6" text="interfre(숨)"/>
  78. <Cell col="7" text="Comments(숨)"/>
  79. </Band>
  80. <Band id="body">
  81. <Cell celltype="head" expr="currow+1"/>
  82. <Cell col="1" celltype="head" displaytype="image"/>
  83. <Cell col="2" displaytype="text" edittype="text" style="align:center middle;" text="bind:readexmpcd" editlimit="10" editlengthunit="utf8"/>
  84. <Cell col="3" displaytype="text" edittype="text" text="bind:readexmpcnts"/>
  85. <Cell col="4" displaytype="text" edittype="text" style="align:center middle;" text="bind:readexmpcddispseq"/>
  86. <Cell col="5" text="bind:readexmpdetlcnts"/>
  87. <Cell col="6" text="bind:interfretationcnts"/>
  88. <Cell col="7" text="bind:cmt"/>
  89. </Band>
  90. </Format>
  91. </Formats>
  92. </Grid>
  93. <TextArea id="tar_readexmpdetl" position="absolute 645 268 1256 548" anchor="left top right" imemode="hangul" canchange="grp3_tar_readexmpdetl_canchange" style="font:돋움체,9;" maxlength="4000" positiontype="position" acceptstab="false" autoselect="true" wordwrap="both"/>
  94. <TextArea id="tar_interfretation" position="absolute 645 578 1256 648" anchor="left top right" imemode="hangul" maxlength="4000" canchange="grp3_tar_interfretation_canchange" style="font:돋움체,9;" positiontype="position" acceptstab="false" autoselect="true" wordwrap="both"/>
  95. <Static id="caption7" class="tit_2" position="absolute 645 659 743 679" anchor="default" text="Comments" positiontype="position"/>
  96. <TextArea id="tar_cmt" position="absolute 645 679 1256 780" anchor="all" imemode="hangul" maxlength="4000" canchange="grp3_tar_cmt_canchange" style="font:돋움체,9;" positiontype="position" acceptstab="false" autoselect="true" wordwrap="both"/>
  97. <Div id="grp_sea" anchor="left top right" taborder="1" style="align:center top;" position="absolute 0 0 1256 42" class="div_SA">
  98. <Layouts>
  99. <Layout>
  100. <Button id="btn_sea" taborder="15" text="조회" class="btn1" position="absolute 1188 10 1245 30" anchor="top right" onclick="grp3_grp_sea_btn_sea_onclick"/>
  101. <Static id="caption2" text="조회구분" class="search_name" position="absolute 8 10 82 30" anchor="default" positiontype="position"/>
  102. <Combo id="cmb_select01" taborder="17" innerdataset="ds_init_cmb_select01" codecolumn="cd" datacolumn="nm" onitemchanged="group6_group7_cmb_select01_onitemchanged" class="combo_s_essential" position="absolute 78 10 188 30" anchor="default"/>
  103. <Combo id="cmb_select02" taborder="18" innerdataset="ds_init_cmb_select02" codecolumn="cd" datacolumn="nm" onitemchanged="group6_group7_cmb_select02_onitemchanged" class="combo_s_essential" position="absolute 191 10 344 30" anchor="default"/>
  104. </Layout>
  105. </Layouts>
  106. </Div>
  107. </Layout>
  108. </Layouts>
  109. </Div>
  110. <Div id="grp2" position="absolute 0 0 1256 26" anchor="left top right" positiontype="position">
  111. <Layouts>
  112. <Layout>
  113. <Static id="caption6" class="tit_1" position="absolute 0 0 144 25" anchor="left top" positiontype="position" text="판독예문코드관리"/>
  114. <Button id="btn_Save" taborder="1" text="저장" class="btn4" position="absolute 1129 0 1185 20" anchor="top right" onclick="grp2_btn_Save_onclick"/>
  115. <Button id="btn_Init" taborder="2" text="초기화" class="btn4" position="absolute 1187 0 1256 20" anchor="top right" onclick="grp2_btn_Init_onclick"/>
  116. </Layout>
  117. </Layouts>
  118. </Div>
  119. </Layout>
  120. </Layouts>
  121. <Objects>
  122. <Dataset id="ds_init_lb0000" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  123. <ColumnInfo>
  124. <Column id="cd" type="STRING"/>
  125. <Column id="nm" type="STRING"/>
  126. </ColumnInfo>
  127. </Dataset>
  128. <Dataset id="ds_init_lb0102" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  129. <ColumnInfo>
  130. <Column id="cd" type="STRING"/>
  131. <Column id="nm" type="STRING"/>
  132. </ColumnInfo>
  133. </Dataset>
  134. <Dataset id="ds_init_lb0104" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  135. <ColumnInfo>
  136. <Column id="cd" type="STRING"/>
  137. <Column id="nm" type="STRING"/>
  138. </ColumnInfo>
  139. </Dataset>
  140. <Dataset id="ds_grid_grd_SpclTclscd" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  141. <ColumnInfo>
  142. <Column id="tclscd" type="STRING"/>
  143. <Column id="tclsnm" type="STRING"/>
  144. <Column id="tclskind" type="STRING"/>
  145. <Column id="rsltdispseq" type="STRING"/>
  146. <Column id="spccd" type="STRING"/>
  147. </ColumnInfo>
  148. </Dataset>
  149. <Dataset id="ds_grid_grd_readexmp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  150. <ColumnInfo>
  151. <Column id="readexmpcd" type="STRING"/>
  152. <Column id="readexmpcnts" type="STRING"/>
  153. <Column id="readexmpcddispseq" type="STRING"/>
  154. <Column id="readexmpdetlcnts" type="STRING"/>
  155. <Column id="interfretationcnts" type="STRING"/>
  156. <Column id="cmt" type="STRING"/>
  157. </ColumnInfo>
  158. </Dataset>
  159. <Dataset id="ds_tclskind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  160. <ColumnInfo>
  161. <Column id="cd" type="STRING" size="256"/>
  162. <Column id="nm" type="STRING" size="256"/>
  163. </ColumnInfo>
  164. <Rows>
  165. <Row>
  166. <Col id="cd">0</Col>
  167. <Col id="nm">Group</Col>
  168. </Row>
  169. <Row>
  170. <Col id="cd">1</Col>
  171. <Col id="nm">Panel</Col>
  172. </Row>
  173. <Row>
  174. <Col id="cd">2</Col>
  175. <Col id="nm">Single</Col>
  176. </Row>
  177. <Row>
  178. <Col id="cd">3</Col>
  179. <Col id="nm">parent</Col>
  180. </Row>
  181. <Row>
  182. <Col id="cd">4</Col>
  183. <Col id="nm">Child</Col>
  184. </Row>
  185. <Row>
  186. <Col id="cd">5</Col>
  187. <Col id="nm">Abnormal</Col>
  188. </Row>
  189. <Row>
  190. <Col id="cd">6</Col>
  191. <Col id="nm">성분제제</Col>
  192. </Row>
  193. <Row>
  194. <Col id="cd">7</Col>
  195. <Col id="nm">배양결과</Col>
  196. </Row>
  197. </Rows>
  198. </Dataset>
  199. <Dataset id="ds_init_cmb_select01" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  200. <ColumnInfo>
  201. <Column id="cd" type="STRING" size="256"/>
  202. <Column id="nm" type="STRING" size="256"/>
  203. </ColumnInfo>
  204. </Dataset>
  205. <Dataset id="ds_init_cmb_select02" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  206. <ColumnInfo>
  207. <Column id="cd" type="STRING" size="256"/>
  208. <Column id="nm" type="STRING" size="256"/>
  209. </ColumnInfo>
  210. </Dataset>
  211. <Dataset id="ds_init_lb0106" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  212. <ColumnInfo>
  213. <Column id="cd" type="STRING" size="256"/>
  214. <Column id="nm" type="STRING" size="256"/>
  215. </ColumnInfo>
  216. </Dataset>
  217. <Dataset id="ds_init_lb0111" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  218. <ColumnInfo>
  219. <Column id="cd" type="STRING" size="256"/>
  220. <Column id="nm" type="STRING" size="256"/>
  221. </ColumnInfo>
  222. </Dataset>
  223. <Dataset id="ds_print" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  224. <ColumnInfo>
  225. <Column id="able" type="STRING" size="256"/>
  226. </ColumnInfo>
  227. </Dataset>
  228. <Dataset id="ds_execute" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  229. <ColumnInfo>
  230. <Column id="able" type="STRING" size="256"/>
  231. </ColumnInfo>
  232. </Dataset>
  233. </Objects>
  234. <Bind>
  235. <BindItem id="item0" compid="grp2.btn_Save" propid="enable" datasetid="ds_execute" columnid="able"/>
  236. <BindItem id="item1" compid="grp3.btn_add" propid="enable" datasetid="ds_execute" columnid="able"/>
  237. <BindItem id="item2" compid="grp3.btn_del" propid="enable" datasetid="ds_execute" columnid="able"/>
  238. <BindItem id="item4" compid="grp3.tar_readexmpdetl" propid="enable" datasetid="ds_execute" columnid="able"/>
  239. </Bind>
  240. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  241. * System Name :
  242. * Job Name :
  243. * Creator :
  244. * Make Date : 2015-11-09
  245. * Description :
  246. *---------------------------------------------------------------------------------------
  247. * Modify Date Modifier Modify Description
  248. *---------------------------------------------------------------------------------------
  249. * 2015-11-09 Live Converter TF->XP
  250. *
  251. *---------------------------------------------------------------------------------------
  252. ****************************************************************************************/
  253. include "com_commonxp::comm_main.xjs";
  254. include "lis_commonxp::LLZ001.xjs";
  255. include "lis_commonxp::LZZ001.xjs";
  256. include "com_commodulexp::SMZFS00501.xjs"; //공통코드조회용
  257. var testcd = "";
  258. function SMLLF02000_onload(obj:Form, e:LoadEventInfo)
  259. {
  260. //폼 초기화 함수
  261. frmf_initForm(obj);
  262. grdf_setRowTypeIcon(grp3.grd_SpclTclscd, 1);
  263. grdf_setRowTypeIcon(grp3.grd_readexmp, 1);
  264. //초기값 셋팀
  265. lf_initDataSet();
  266. lf_selectGbn();
  267. //검사목록조회
  268. //특수결과화면에서 팝업데이터 넘기는 부분.수정필요(1)
  269. if (!utlf_isNull(opener)) {
  270. var objParentWin = opener.getOwnerFrame().name;
  271. if(objParentWin != "ChildFrameTop"){ //팝업으로 열었을때
  272. testcd = opener.frmf_getParameter("testcd");
  273. trace("testcd="+testcd);
  274. if(!utlf_isNull(testcd)) { //특수결과화면에서 판독예문버튼을 눌렀을 경우
  275. lf_fGetSpclTclscd(); //자동으로 조회
  276. }
  277. }
  278. }
  279. lf_menumaster();//메뉴권한
  280. }
  281. function lf_initDataSet(){
  282. //0104 대분류 0102 중분류 0000 유저과flag
  283. lf_getDbDeptcd("0104|0102|0000|","cbf_SMLLF02000");
  284. }
  285. //시행부서 검사계 초기정보 조회
  286. function lf_fSetMdlCD(){
  287. var sEtc = grp3.grp_sea.cmb_lrgcd.value;
  288. var sFilter = "cd =='00' || etc01 =='" + sEtc + "'";
  289. grp3.grp_sea.cmb_mdlcd.innerdataset="ds_init_lb0102";
  290. if(sEtc != "00") {
  291. ds_init_lb0102.filter(sFilter);
  292. } else {
  293. ds_init_lb0102.filter("");
  294. }
  295. grp3.grp_sea.cmb_mdlcd.codecolumn="cd";
  296. grp3.grp_sea.cmb_mdlcd.datacolumn="nm";
  297. grp3.grp_sea.cmb_mdlcd.index=0;
  298. }
  299. // 특수검사목록 조회
  300. function lf_fGetSpclTclscd(flag){
  301. if(flag != "R") { //조회버튼 눌렀을 경우가 아니라면.수정필요(2)(데이터셋생성부분포함)
  302. }
  303. var testlrgcd = grp3.grp_sea.cmb_select01.value;
  304. var testmdlcd = grp3.grp_sea.cmb_select02.value;
  305. var sInDsName = dsf_createDsRow("ds_temp_search"
  306. , [{col: "userdeptflagcd", val: lgv_sUserdeptflagcd}
  307. , {col: "lrgcd", val: testlrgcd }
  308. , {col: "testcd", val: (flag !="R" ? opener.frmf_getParameter("testcd") : "")}
  309. , {col: "mdlcd", val: testmdlcd }]);
  310. var oParam = {};
  311. oParam.id = "TRLLF02001";
  312. oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
  313. oParam.method = "reqGetSpclTclscd";
  314. oParam.inds = "cond="+sInDsName;
  315. oParam.outds = "ds_grid_grd_SpclTclscd=getSpclTclscd";
  316. oParam.async = false;
  317. oParam.callback = "cbf_SMLLF02000";
  318. tranf_submit(oParam);
  319. testcd = "";
  320. lf_fGetReadExmp();
  321. }
  322. //판독코드목록조회
  323. function lf_fGetReadExmp(){
  324. var sInDsName = dsf_createDsRow("ds_temp_search"
  325. , [{col: "userdeptflagcd", val: lgv_sUserdeptflagcd}
  326. , {col: "tclscd", val: grp3.grd_SpclTclscd.getCellValue(grp3.grd_SpclTclscd.currentrow,2)}
  327. , {col: "spccd", val: ds_grid_grd_SpclTclscd.getColumn(ds_grid_grd_SpclTclscd.rowposition, "spccd")}]);
  328. var oParam = {};
  329. oParam.id = "TRLLF02002";
  330. oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
  331. oParam.method = "reqGetReadExmplist";
  332. oParam.inds = "cond="+sInDsName;
  333. oParam.outds = "ds_grid_grd_readexmp=getReadExmplist";
  334. oParam.async = false;
  335. oParam.callback = "cbf_SMLLF02000";
  336. tranf_submit(oParam);
  337. if (ds_grid_grd_readexmp.rowcount > 0)
  338. {
  339. ds_grid_grd_readexmp.rowposition = 0;
  340. }
  341. // 판독예문 상세, interfretationcnts 조회
  342. lf_fGetReadExmpDetl();
  343. }
  344. // 판독예문 상세, interfretationcnts 조회
  345. function lf_fGetReadExmpDetl(){
  346. if( grp3.grd_readexmp.rowcount > 0){
  347. grp3.tar_readexmpdetl.value = grp3.grd_readexmp.getCellValue(grp3.grd_readexmp.currentrow,5);
  348. grp3.tar_interfretation.value = grp3.grd_readexmp.getCellValue(grp3.grd_readexmp.currentrow,6);
  349. grp3.tar_cmt.value = grp3.grd_readexmp.getCellValue(grp3.grd_readexmp.currentrow,7);
  350. } else {
  351. grp3.tar_readexmpdetl.value = "";
  352. grp3.tar_interfretation.value = "";
  353. grp3.tar_cmt.value = "";
  354. }
  355. }
  356. // 행추가
  357. function lf_fSetAddRow(){
  358. var nRow = ds_grid_grd_readexmp.addRow();
  359. var rowCount = ds_grid_grd_readexmp.rowcount;
  360. if(rowCount == "1") {
  361. var sSeq = 0;
  362. } else{
  363. var sSeq = grp3.grd_readexmp.getCellValue(grp3.grd_readexmp.rowcount -2,4);
  364. }
  365. ds_grid_grd_readexmp.setColumn(grp3.grd_readexmp.rowcount - 1,"readexmpcddispseq",parseInt(sSeq) + 1);
  366. }
  367. // 행삭제
  368. function lf_fSetDelRow(){
  369. var arrPostion = new Array();
  370. arrPostion[0] = ds_grid_grd_readexmp.rowposition;
  371. if(ds_grid_grd_readexmp.getRowType(arrPostion)==Dataset.ROWTYPE_INSERT){
  372. ds_grid_grd_readexmp.deleteRow(arrPostion);
  373. } else {
  374. grdf_setStatus(grp3.grd_readexmp, "D", arrPostion);
  375. }
  376. }
  377. // 상세내용 변경시
  378. function lf_fSetReadDetl(){
  379. if(grp3.grd_readexmp.rowcount > 0) {
  380. ds_grid_grd_readexmp.setColumn(grp3.grd_readexmp.currentrow ,"readexmpdetlcnts",grp3.tar_readexmpdetl.value);
  381. }
  382. }
  383. // interfretation 변경시
  384. function lf_fSetInterfretation(){
  385. if(grp3.grd_readexmp.rowcount > 0) {
  386. ds_grid_grd_readexmp.setColumn(grp3.grd_readexmp.currentrow ,"interfretationcnts",grp3.tar_interfretation.value);
  387. }
  388. }
  389. // Comments 변경시
  390. function lf_fSetcmt(){
  391. if(grp3.grd_readexmp.rowcount > 0) {
  392. ds_grid_grd_readexmp.setColumn(grp3.grd_readexmp.currentrow ,"cmt",grp3.tar_cmt.value);
  393. }
  394. }
  395. // 판독예문코드등록,수정
  396. function lf_fExeReadExmp(){
  397. if(grp3.grd_readexmp.rowcount < 1) {
  398. sysf_messageBox("등록할 판독 예문 코드가","I004",""); //없습니다.
  399. return;
  400. }
  401. if(!frmf_chkMdtGrid(grp3.grd_readexmp, [2,3], ["판독예문코드","판독예문"])) {
  402. return;
  403. }
  404. var cTclscd = ds_grid_grd_SpclTclscd.getColumn(grp3.grd_SpclTclscd.currentrow,"tclscd");
  405. var sInDsName = dsf_createDsRow("ds_temp_search"
  406. , [{col: "tclscd", val: ds_grid_grd_SpclTclscd.getColumn(grp3.grd_SpclTclscd.currentrow,"tclscd")}
  407. , {col: "spccd", val: ds_grid_grd_SpclTclscd.getColumn(grp3.grd_SpclTclscd.currentrow,"spccd")}]);
  408. var oParam = {};
  409. oParam.id = "TXLLF02001";
  410. oParam.service = "diagtestbaseinfomngtapp.GeneralTestBaseInfoMngt";
  411. oParam.method = "reqExeReadExmp";
  412. oParam.inds = "rlist=ds_grid_grd_readexmp:U cond="+sInDsName;
  413. oParam.async = false;
  414. oParam.callback = "cbf_SMLLF02000";
  415. tranf_submit(oParam);
  416. var nRow = ds_grid_grd_SpclTclscd.findRowExpr("tclscd == '" + cTclscd + "'");
  417. if (nRow > -1)
  418. {
  419. ds_grid_grd_SpclTclscd.rowposition = nRow;
  420. lf_fGetReadExmp();
  421. }
  422. }
  423. //콜백함수
  424. function cbf_SMLLF02000(strSvcID, nErrorCode, strErrorMag){
  425. if(nErrorCode != 0) sysf_messageBox("ID: " + strSvcID + " Error: " + strErrorMag, "E009", "");
  426. if(strSvcID == "TXLLF02001" && nErrorCode==0){
  427. lf_fGetSpclTclscd();
  428. sysf_messageBox("","I001","");
  429. }
  430. }
  431. function grp3_grp_sea_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  432. {
  433. lf_fGetSpclTclscd("R");
  434. }
  435. function grp3_grp_sea_cmb_lrgcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  436. {
  437. lf_fSetMdlCD();
  438. }
  439. function grp3_grd_SpclTclscd_oncellclick(obj:Grid, e:GridClickEventInfo)
  440. {
  441. lf_fGetReadExmp();
  442. }
  443. function grp3_btn_add_onclick(obj:Button, e:ClickEventInfo)
  444. {
  445. lf_fSetAddRow();
  446. }
  447. function grp3_btn_del_onclick(obj:Button, e:ClickEventInfo)
  448. {
  449. lf_fSetDelRow();
  450. }
  451. function grp3_grd_readexmp_oncellclick(obj:Grid, e:GridClickEventInfo)
  452. {
  453. lf_fGetReadExmpDetl();
  454. }
  455. function grp3_tar_readexmpdetl_canchange(obj:TextArea, e:ChangeEventInfo)
  456. {
  457. lf_fSetReadDetl();
  458. }
  459. function grp3_tar_interfretation_canchange(obj:TextArea, e:ChangeEventInfo)
  460. {
  461. lf_fSetInterfretation();
  462. }
  463. function grp3_tar_cmt_canchange(obj:TextArea, e:ChangeEventInfo)
  464. {
  465. lf_fSetcmt();
  466. }
  467. function grp2_btn_Save_onclick(obj:Button, e:ClickEventInfo)
  468. {
  469. lf_fExeReadExmp();
  470. }
  471. function grp2_btn_Init_onclick(obj:Button, e:ClickEventInfo)
  472. {
  473. grp3.grp_sea.cmb_lrgcd.index = 0;
  474. grp3.grp_sea.cmb_mdlcd.index = 0;
  475. ds_grid_grd_SpclTclscd.clearData();
  476. ds_grid_grd_readexmp.clearData();
  477. lf_fGetReadExmpDetl();
  478. }
  479. // 조회구분에 따른 대분류,중분류 변경
  480. function lf_selectGbn(){
  481. ds_init_cmb_select01.copyData(ds_init_lb0104);
  482. ds_init_cmb_select02.copyData(ds_init_lb0102);
  483. grp3.grp_sea.cmb_select01.value = "00";
  484. grp3.grp_sea.cmb_select02.value = "00";
  485. }
  486. function group6_group7_cmb_select01_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  487. {
  488. lf_setSelect02();
  489. }
  490. //첫번째 콤보 선택시, 두번째 콤보 셋팅
  491. function lf_setSelect02(){
  492. var nRow=0;
  493. var sLcode = grp3.grp_sea.cmb_select01.value;
  494. var sMcode="";
  495. ds_init_cmb_select02.clearData();
  496. if (sLcode == "00"){
  497. ds_init_cmb_select02.copyData(ds_init_lb0102);
  498. } else {
  499. nRow = ds_init_cmb_select02.addRow();
  500. ds_init_cmb_select02.setColumn(nRow,"cd","00");
  501. ds_init_cmb_select02.setColumn(nRow,"nm","- 전체 -");
  502. for(var i=0;i<=ds_init_lb0102.rowcount -1; i++){
  503. sMcode=ds_init_lb0102.getColumn(i,"cd");
  504. sMcode=sMcode.substr(0, 1);
  505. if (sLcode==sMcode){
  506. nRow = ds_init_cmb_select02.addRow();
  507. ds_init_cmb_select02.copyRow(nRow,ds_init_lb0102,i);
  508. }
  509. }
  510. }
  511. grp3.grp_sea.cmb_select02.index=0;
  512. }
  513. function group6_group7_cmb_select02_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  514. {
  515. lf_fGetSpclTclscd();
  516. }
  517. //진검 사용자별 메뉴권한
  518. function lf_menumaster(){
  519. var edit = frmf_checkAuth("X");
  520. var print = frmf_checkAuth("P");
  521. var eRow = ds_execute.addRow();
  522. var pRow = ds_print.addRow();
  523. if(edit == true){
  524. ds_execute.setColumn(eRow,"able",true);
  525. }
  526. if(print == true){
  527. ds_print.setColumn(pRow,"able",true);
  528. }
  529. }]]></Script>
  530. </Form>
  531. </FDL>