SPMRT01000_상병선택Help.xfdl 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMRT01000" position="absolute 0 0 968 641" titletext="전체마스터" onload="SPMRT01000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp_srch" taborder="0" position="absolute 280 8 967 48" class="div_SA2">
  8. <Layouts>
  9. <Layout>
  10. <Shape id="line13" class="line_4" position="absolute 607 9 613 31" anchor="default" linetype="vertical"/>
  11. <Calendar id="input1" taborder="7" class="input_search" position="absolute 80 10 165 29" anchor="default"/>
  12. <Static id="caption1" text="기준일 :" class="search_name" position="absolute 10 12 86 29" anchor="default"/>
  13. <Button id="btn_search" taborder="8" text="조회" class="btn1" position="absolute 620 9 676 31" anchor="default" onclick="grp_srch_btn_search_onclick"/>
  14. <Radio id="radio2" taborder="9" columncount="3" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" class="radio_search" position="absolute 234 10 395 30" anchor="default">
  15. <Dataset id="innerdataset">
  16. <ColumnInfo>
  17. <Column id="codecolumn"/>
  18. <Column id="datacolumn"/>
  19. </ColumnInfo>
  20. <Rows>
  21. <Row>
  22. <Col id="codecolumn">C</Col>
  23. <Col id="datacolumn">코드</Col>
  24. </Row>
  25. <Row>
  26. <Col id="codecolumn">E</Col>
  27. <Col id="datacolumn">영문명</Col>
  28. </Row>
  29. <Row>
  30. <Col id="codecolumn">H</Col>
  31. <Col id="datacolumn">한글명</Col>
  32. </Row>
  33. </Rows>
  34. </Dataset>
  35. </Radio>
  36. <Static id="caption8" text="검색어 :" class="search_name" position="absolute 409 12 474 29" anchor="default"/>
  37. <Static id="caption9" text="구분 :" class="search_name" position="absolute 182 12 234 29" anchor="default"/>
  38. <Edit id="input5" taborder="10" class="input_search" position="absolute 475 10 600 29" anchor="default" onkeyup="grp_srch_input5_onkeyup"/>
  39. </Layout>
  40. </Layouts>
  41. </Div>
  42. <Tab id="swt_indxinfo" taborder="1" tabindex="0" class="tab_Normal" position="absolute 0 0 274 640">
  43. <Tabpages>
  44. <Tabpage id="case_opindx">
  45. <Layouts>
  46. <Layout>
  47. <Shape id="line1" class="line_10" position="absolute 0 16 274 22"/>
  48. <Static id="caption2" text="수술 확장 색인 정보" class="tit_2" position="absolute 0 0 187 17"/>
  49. <Grid id="trv_diagindxinfo" taborder="1" useinputpanel="false" treeusecheckbox="false" position="absolute 0 21 274 627" autofit="col" binddataset="ds_main_indxlist_item" oncellclick="swt_indxinfo_case_opindx_trv_diagindxinfo_oncellclick">
  50. <Formats>
  51. <Format id="default">
  52. <Columns>
  53. <Column size="273"/>
  54. </Columns>
  55. <Rows>
  56. <Row size="20"/>
  57. </Rows>
  58. <Band id="body">
  59. <Cell displaytype="tree" edittype="tree" text="bind:indxhngnm" treestartlevel="1" treelevel="bind:depth"/>
  60. </Band>
  61. </Format>
  62. </Formats>
  63. </Grid>
  64. </Layout>
  65. </Layouts>
  66. </Tabpage>
  67. <Tabpage id="case_diagindx">
  68. <Layouts>
  69. <Layout>
  70. <Shape id="line3" class="line_10" position="absolute 0 16 274 22"/>
  71. <Static id="caption4" text="진단 확장 색인 정보" class="tit_2" position="absolute 0 0 179 17"/>
  72. <Grid id="trv_opindxinfo" taborder="1" useinputpanel="false" treeusecheckbox="false" position="absolute 0 21 274 627" autofit="col" binddataset="ds_main_indxlist_item" oncellclick="swt_indxinfo_case_diagindx_trv_opindxinfo_oncellclick">
  73. <Formats>
  74. <Format id="default">
  75. <Columns>
  76. <Column size="273"/>
  77. </Columns>
  78. <Rows>
  79. <Row size="20"/>
  80. </Rows>
  81. <Band id="body">
  82. <Cell displaytype="tree" edittype="tree" text="bind:indxhngnm" treestartlevel="1" treelevel="bind:depth"/>
  83. </Band>
  84. </Format>
  85. <Format id="format_copy"/>
  86. </Formats>
  87. </Grid>
  88. </Layout>
  89. </Layouts>
  90. </Tabpage>
  91. <Tabpage id="case_ccindx">
  92. <Layouts>
  93. <Layout>
  94. <Static id="caption6" text="주호소 확장 색인 정보" class="tit_2" position="absolute 0 0 179 17"/>
  95. <Shape id="line5" class="line_10" position="absolute 0 16 274 22"/>
  96. <Grid id="trv_ccindxinfo" taborder="1" useinputpanel="false" treeusecheckbox="false" position="absolute 0 21 274 627" autofit="col" binddataset="ds_main_indxlist_item" oncellclick="swt_indxinfo_case_ccindx_trv_ccindxinfo_oncellclick">
  97. <Formats>
  98. <Format id="default">
  99. <Columns>
  100. <Column size="273"/>
  101. </Columns>
  102. <Rows>
  103. <Row size="20"/>
  104. </Rows>
  105. <Band id="body">
  106. <Cell displaytype="tree" edittype="tree" treestartlevel="1" treelevel="bind:depth"/>
  107. </Band>
  108. </Format>
  109. </Formats>
  110. </Grid>
  111. </Layout>
  112. </Layouts>
  113. </Tabpage>
  114. </Tabpages>
  115. </Tab>
  116. <Tab id="swt_terminfo" taborder="2" tabindex="0" class="tab_Normal" position="absolute 280 36 967 640">
  117. <Tabpages>
  118. <Tabpage id="case_opterminfo">
  119. <Layouts>
  120. <Layout>
  121. <Static id="caption3" text="수술 정보" class="tit_2" position="absolute 0 7 179 24"/>
  122. <Shape id="line2" class="line_10" position="absolute 0 23 687 29"/>
  123. <Grid id="grd_opinfo" taborder="8" binddataset="ds_main_termlist_terminfo" useinputpanel="false" position="absolute 0 28 687 591" cellclickbound="cell">
  124. <Formats>
  125. <Format id="default">
  126. <Columns>
  127. <Column size="25" band="left"/>
  128. <Column size="40"/>
  129. <Column size="82"/>
  130. <Column size="293"/>
  131. <Column size="283"/>
  132. </Columns>
  133. <Rows>
  134. <Row size="24" band="head"/>
  135. <Row size="24"/>
  136. </Rows>
  137. <Band id="head">
  138. <Cell/>
  139. <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
  140. <Cell col="2" text="ICD-9"/>
  141. <Cell col="3" text="수술영문명"/>
  142. <Cell col="4" text="수술한글명"/>
  143. </Band>
  144. <Band id="body">
  145. <Cell celltype="head" text="expr:currow+1"/>
  146. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:check" expr="expr:(check==&quot;Y&quot;||check==1)?1:0"/>
  147. <Cell col="2" displaytype="text" text="bind:termcd"/>
  148. <Cell col="3" displaytype="text" text="bind:termengnm"/>
  149. <Cell col="4" displaytype="text" text="bind:termhngnm"/>
  150. </Band>
  151. </Format>
  152. </Formats>
  153. </Grid>
  154. <Button id="btn_sendop" taborder="9" text="선택" class="btn2" position="absolute 601 1 643 23" onclick="swt_terminfo_case_opterminfo_btn_sendop_onclick"/>
  155. <Button id="btn_closeop" taborder="10" text="닫기" class="btn2" position="absolute 645 1 687 23" onclick="swt_terminfo_case_opterminfo_btn_closeop_onclick"/>
  156. </Layout>
  157. </Layouts>
  158. </Tabpage>
  159. <Tabpage id="case_diagterminfo">
  160. <Layouts>
  161. <Layout>
  162. <Static id="caption5" text="진단 정보" class="tit_2" position="absolute 0 7 179 24"/>
  163. <Shape id="line4" class="line_10" position="absolute 0 23 687 29"/>
  164. <Grid id="grd_diaginfo" taborder="8" binddataset="ds_main_termlist_terminfo" useinputpanel="false" position="absolute 0 28 687 591" cellclickbound="cell">
  165. <Formats>
  166. <Format id="default">
  167. <Columns>
  168. <Column size="25" band="left"/>
  169. <Column size="40"/>
  170. <Column size="82"/>
  171. <Column size="293"/>
  172. <Column size="283"/>
  173. </Columns>
  174. <Rows>
  175. <Row size="24" band="head"/>
  176. <Row size="24"/>
  177. </Rows>
  178. <Band id="head">
  179. <Cell/>
  180. <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
  181. <Cell col="2" text="ICD-10"/>
  182. <Cell col="3" text="진단영문명"/>
  183. <Cell col="4" text="진단한글명"/>
  184. </Band>
  185. <Band id="body">
  186. <Cell celltype="head" text="expr:currow+1"/>
  187. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:check" expr="expr:(check==&quot;Y&quot;||check==1)?1:0"/>
  188. <Cell col="2" displaytype="text" text="bind:termcd"/>
  189. <Cell col="3" displaytype="text" text="bind:termengnm"/>
  190. <Cell col="4" displaytype="text" text="bind:termhngnm"/>
  191. </Band>
  192. </Format>
  193. </Formats>
  194. </Grid>
  195. <Button id="btn_senddiag" taborder="9" text="선택" class="btn2" position="absolute 601 1 643 23" onclick="swt_terminfo_case_diagterminfo_btn_senddiag_onclick"/>
  196. <Button id="btn_closediag" taborder="10" text="닫기" class="btn2" position="absolute 645 1 687 23" onclick="swt_terminfo_case_diagterminfo_btn_closediag_onclick"/>
  197. </Layout>
  198. </Layouts>
  199. </Tabpage>
  200. <Tabpage id="case_ccterminfo">
  201. <Layouts>
  202. <Layout>
  203. <Button id="button2" taborder="8" text="선택" class="btn2" position="absolute 601 1 643 23" onclick="swt_terminfo_case_ccterminfo_button2_onclick"/>
  204. <Button id="button4" taborder="9" text="닫기" class="btn2" position="absolute 645 1 687 23" onclick="swt_terminfo_case_ccterminfo_button4_onclick"/>
  205. <Static id="caption7" text="주호소 정보" class="tit_2" position="absolute 0 7 179 24"/>
  206. <Shape id="line6" class="line_10" position="absolute 0 23 687 29"/>
  207. <Grid id="grd_ccinfo" taborder="10" binddataset="ds_main_termlist_terminfo" useinputpanel="false" position="absolute 0 28 687 591" cellclickbound="cell">
  208. <Formats>
  209. <Format id="default">
  210. <Columns>
  211. <Column size="25" band="left"/>
  212. <Column size="40"/>
  213. <Column size="82"/>
  214. <Column size="293"/>
  215. <Column size="283"/>
  216. </Columns>
  217. <Rows>
  218. <Row size="24" band="head"/>
  219. <Row size="24"/>
  220. </Rows>
  221. <Band id="head">
  222. <Cell/>
  223. <Cell col="1" displaytype="checkbox" edittype="checkbox"/>
  224. <Cell col="2" text="주호소코드"/>
  225. <Cell col="3" text="주호소 영문명"/>
  226. <Cell col="4" text="주호소 한글명"/>
  227. </Band>
  228. <Band id="body">
  229. <Cell celltype="head" text="expr:currow+1"/>
  230. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:check" expr="expr:(check==&quot;Y&quot;||check==1)?1:0"/>
  231. <Cell col="2" displaytype="text" text="bind:termcd"/>
  232. <Cell col="3" displaytype="text" text="bind:termengnm"/>
  233. <Cell col="4" displaytype="text" text="bind:termhngnm"/>
  234. </Band>
  235. </Format>
  236. </Formats>
  237. </Grid>
  238. </Layout>
  239. </Layouts>
  240. </Tabpage>
  241. </Tabpages>
  242. </Tab>
  243. </Layout>
  244. </Layouts>
  245. <Objects>
  246. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  247. <ColumnInfo/>
  248. </Dataset>
  249. <Dataset id="ds_main_termlist_terminfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_main_termlist_terminfo_oncolumnchanged">
  250. <ColumnInfo>
  251. <Column id="check" type="STRING" size="256"/>
  252. <Column id="termcd" type="STRING" size="256"/>
  253. <Column id="termengnm" type="STRING" size="256"/>
  254. <Column id="termhngnm" type="STRING" size="256"/>
  255. </ColumnInfo>
  256. <Rows>
  257. <Row>
  258. <Col id="check"/>
  259. <Col id="termcd"/>
  260. <Col id="termengnm"/>
  261. <Col id="termhngnm"/>
  262. </Row>
  263. </Rows>
  264. </Dataset>
  265. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  266. <ColumnInfo>
  267. <Column id="send" type="STRING" size="256"/>
  268. </ColumnInfo>
  269. <Rows>
  270. <Row>
  271. <Col id="send"/>
  272. </Row>
  273. </Rows>
  274. </Dataset>
  275. <Dataset id="ds_hidden_condition" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  276. <ColumnInfo>
  277. <Column id="basedd" type="STRING" size="256"/>
  278. <Column id="indxcd" type="STRING" size="256"/>
  279. <Column id="indxflag" type="STRING" size="256"/>
  280. <Column id="deptcd" type="STRING" size="256"/>
  281. <Column id="deptindxcd" type="STRING" size="256"/>
  282. <Column id="deptnm" type="STRING" size="256"/>
  283. <Column id="srchflag" type="STRING" size="256"/>
  284. <Column id="srchnm" type="STRING" size="256"/>
  285. </ColumnInfo>
  286. <Rows>
  287. <Row>
  288. <Col id="basedd"/>
  289. <Col id="indxcd"/>
  290. <Col id="indxflag"/>
  291. <Col id="deptcd"/>
  292. <Col id="deptindxcd"/>
  293. <Col id="deptnm"/>
  294. <Col id="srchflag"/>
  295. <Col id="srchnm"/>
  296. </Row>
  297. </Rows>
  298. </Dataset>
  299. <Dataset id="ds_main_indxlist_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  300. <ColumnInfo>
  301. <Column id="depth" type="STRING" size="256"/>
  302. <Column id="indxcd" type="STRING" size="256"/>
  303. <Column id="upindxcd" type="STRING" size="256"/>
  304. <Column id="indxhngnm" type="STRING" size="256"/>
  305. </ColumnInfo>
  306. <Rows>
  307. <Row>
  308. <Col id="depth"/>
  309. <Col id="indxcd"/>
  310. <Col id="upindxcd"/>
  311. <Col id="indxhngnm"/>
  312. </Row>
  313. </Rows>
  314. </Dataset>
  315. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  316. <ColumnInfo>
  317. <Column id="init" type="STRING" size="256"/>
  318. </ColumnInfo>
  319. </Dataset>
  320. </Objects>
  321. <Bind>
  322. <BindItem id="item0" compid="grp_srch.input1" propid="value" datasetid="ds_hidden_condition" columnid="basedd"/>
  323. <BindItem id="item1" compid="grp_srch.radio2" propid="value" datasetid="ds_hidden_condition" columnid="srchflag"/>
  324. <BindItem id="item2" compid="grp_srch.input5" propid="value" datasetid="ds_hidden_condition" columnid="srchnm"/>
  325. </Bind>
  326. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  327. * System Name :
  328. * Job Name :
  329. * Creator :
  330. * Make Date : 2017-12-04
  331. * Description :
  332. *---------------------------------------------------------------------------------------
  333. * Modify Date Modifier Modify Description
  334. *---------------------------------------------------------------------------------------
  335. * 2017-06-19 Live Converter TF->XP
  336. *
  337. *---------------------------------------------------------------------------------------
  338. ****************************************************************************************/
  339. //=======================================================================================
  340. // Lib Include
  341. //---------------------------------------------------------------------------------------
  342. include "com_commonxp::comm_main.xjs";
  343. //include "emr_termmngtxp::SPMRT01000.xjs";
  344. //=======================================================================================
  345. // Global Form Variable
  346. //---------------------------------------------------------------------------------------
  347. var arErrorCode = new HashArray();
  348. //=======================================================================================
  349. // Function
  350. //---------------------------------------------------------------------------------------
  351. ////////////////////////////////////////////////SMMRT00200.xjs////////////////////////////////////////////////
  352. var xCondPath = "ds_hidden_condition";
  353. var xIndxListPath = "ds_main_indxlist_item";
  354. var xTermListPath = "ds_main_termlist_terminfo";
  355. /*-**************************************************************************************
  356. * Argument : N/A
  357. * Description : 화면을 초기화 한다
  358. ****************************************************************************************/
  359. function fInitalize() {
  360. var indxflag = opener.frmf_getParameter("indxflag");
  361. // Edited by NJ 2007-07-21 getDate() -> utlf_getCurrentDate()
  362. this.objects[xCondPath].setColumn(0, "basedd", utlf_getCurrentDate());
  363. this.objects[xCondPath].setColumn(0, "indxflag", indxflag); // 0 : 진단, 9 : 수술, 2 : 주호소
  364. switch(indxflag){
  365. case "0" : // 진단
  366. swt_indxinfo.tabindex = 1;
  367. swt_terminfo.tabindex = 1;
  368. break;
  369. case "9" : // 수술
  370. swt_indxinfo.tabindex = 0;
  371. swt_terminfo.tabindex = 0;
  372. break;
  373. case "2" : // 조호소
  374. swt_indxinfo.tabindex = 2;
  375. swt_terminfo.tabindex = 2;
  376. break;
  377. }
  378. this.objects[xIndxListPath].clearData();
  379. this.objects[xTermListPath].clearData();
  380. dsf_makeValue( ds_send, "indxflag", "string", indxflag);
  381. var oParam = {};
  382. oParam.id = "TRMRT01001";
  383. oParam.service = "termmngtapp.DeptSetMngt";
  384. oParam.method = "reqGetIndxList";
  385. oParam.inds = "reqCond=ds_send";
  386. oParam.outds = "ds_main_indxlist_item=item";
  387. oParam.async = false;
  388. //oParam.callback = "cf_TRMRT01001";
  389. tranf_submit(oParam);
  390. }
  391. /*-**************************************************************************************
  392. * Argument : flag - index / Null
  393. * Description : 용어 조회
  394. ****************************************************************************************/
  395. function fSearchTermInfo(flag){
  396. ds_send.clearData();
  397. if(flag == "index"){
  398. dsf_makeValue( ds_send, "srchflag", "string", "");
  399. dsf_makeValue( ds_send, "srchnm", "string", "");
  400. } else {
  401. dsf_makeValue( ds_send, "srchflag", "string", this.objects[xCondPath].getColumn(0,"srchflag"));
  402. dsf_makeValue( ds_send, "srchnm", "string", this.objects[xCondPath].getColumn(0,"srchnm"));
  403. }
  404. dsf_makeValue( ds_send, "indxflag", "string", this.objects[xCondPath].getColumn(0,"indxflag"));
  405. dsf_makeValue( ds_send, "indxcd", "string", this.objects[xCondPath].getColumn(0,"indxcd"));
  406. dsf_makeValue( ds_send, "basedd", "string", this.objects[xCondPath].getColumn(0,"basedd"));
  407. var oParam = {};
  408. oParam.id = "TRMRT01002";
  409. oParam.service = "termmngtapp.DeptSetMngt";
  410. oParam.method = "reqGetTermList";
  411. oParam.inds = "reqCond=ds_send";
  412. oParam.outds = "ds_main_termlist_terminfo=terminfo";
  413. oParam.async = false;
  414. //oParam.callback = "cf_TRMRT01002";
  415. tranf_submit(oParam);
  416. }
  417. /*-**************************************************************************************
  418. * Argument : N/A
  419. * Description : 선택된 용어 등록
  420. ****************************************************************************************/
  421. function fSendTermInfo(){
  422. var indxflag = this.objects[xCondPath].getColumn(0,"indxflag"); // 0 : 진단, 9 : 수술
  423. var sRowCnt = 0;
  424. var iSrchDiagRow = 0;
  425. var sTermCd = "";
  426. switch(indxflag){
  427. case "0" : // 진단
  428. sRowCnt = ds_main_termlist_terminfo.rowcount;
  429. // var sSrchDiagObj = frmf_getComponents("grd_srcheddiaginfo", opener);
  430. // var dsSrchDiagObj = opener.objects[sSrchDiagObj.binddataset];
  431. var sSrchDiagListPath = "ds_main_srcheddiagcdlist_srcheddiagcdinfo";
  432. for(var iRow = 0; iRow < sRowCnt; iRow++){
  433. if(this.objects[xTermListPath].getColumn(iRow, "check") == "Y"){
  434. sTermCd = this.objects[xTermListPath].getColumn(iRow, "termcd");
  435. if(utlf_isNull(opener.objects[sSrchDiagListPath].lookup("termcd", sTermCd, "termcd"))) {
  436. var iSrchDiagRow = opener.objects[sSrchDiagListPath].addRow();
  437. opener.objects[sSrchDiagListPath].setColumn( iSrchDiagRow, "termcd", sTermCd);
  438. opener.objects[sSrchDiagListPath].setColumn( iSrchDiagRow, "termengnm", this.objects[xTermListPath].getColumn(iRow, "termengnm"));
  439. opener.objects[sSrchDiagListPath].setColumn( iSrchDiagRow, "termhngnm", this.objects[xTermListPath].getColumn(iRow, "termhngnm"));
  440. }
  441. }
  442. }
  443. break;
  444. case "9" : // 수술
  445. sRowCnt = ds_main_termlist_terminfo.rowcount;
  446. // var sSrchOpObj = frmf_getComponents("grd_srchedopinfo", opener);
  447. // var dsSrchOpObj = opener.objects[sSrchOpObj.binddataset];
  448. var sSrchOpListPath = "ds_main_srchedopcdlist_srchedopcdinfo";
  449. for(var iRow = 0; iRow < sRowCnt; iRow++){
  450. if(this.objects[xTermListPath].getColumn(iRow, "check") == "Y"){
  451. sTermCd = this.objects[xTermListPath].getColumn(iRow, "termcd");
  452. if(utlf_isNull(opener.objects[sSrchOpListPath].lookup("termcd", sTermCd, "termcd"))) {
  453. var iSrchOpRow = opener.objects[sSrchOpListPath].addRow();
  454. opener.objects[sSrchOpListPath].setColumn( iSrchOpRow, "termcd", sTermCd);
  455. opener.objects[sSrchOpListPath].setColumn( iSrchOpRow, "termengnm", this.objects[xTermListPath].getColumn(iRow, "termengnm"));
  456. opener.objects[sSrchOpListPath].setColumn( iSrchOpRow, "termhngnm", this.objects[xTermListPath].getColumn(iRow, "termhngnm"));
  457. }
  458. }
  459. }
  460. break;
  461. case "2" : // 주호소
  462. sRowCnt = ds_main_termlist_terminfo.rowcount;
  463. // var sSrchCCObj = frmf_getComponents("grd_srchedccinfo", opener);
  464. // var dsSrchCCObj = opener.objects[sSrchCCObj.binddataset];
  465. var sSrchCCListPath = "ds_main_srchedcccdlist_srchedcccdinfo";
  466. for(var iRow = 0; iRow < sRowCnt; iRow++){
  467. if(this.objects[xTermListPath].getColumn(iRow, "check") == "Y"){
  468. sTermCd = this.objects[xTermListPath].getColumn(iRow, "termcd");
  469. if(utlf_isNull(opener.objects[sSrchCCListPath].lookup("termcd", sTermCd, "termcd"))) {
  470. var iSrchCCRow = opener.objects[sSrchCCListPath].addRow();
  471. opener.objects[sSrchCCListPath].setColumn( iSrchCCRow, "termcd", sTermCd);
  472. opener.objects[sSrchCCListPath].setColumn( iSrchCCRow, "termengnm", this.objects[xTermListPath].getColumn(iRow, "termengnm"));
  473. opener.objects[sSrchCCListPath].setColumn( iSrchCCRow, "termhngnm", this.objects[xTermListPath].getColumn(iRow, "termhngnm"));
  474. }
  475. }
  476. }
  477. break;
  478. }
  479. }
  480. ////////////////////////////////////////////////SMMRT00200.xjs////////////////////////////////////////////////
  481. //=======================================================================================
  482. // Event
  483. //---------------------------------------------------------------------------------------
  484. /****************************************************************************************
  485. * Components : Form
  486. * Description : 화면 처음 초기화시 폼초기화
  487. ****************************************************************************************/
  488. function SPMRT01000_onload(obj:Form, e:LoadEventInfo) {
  489. frmf_initForm(obj);
  490. grdf_initGrid(swt_terminfo.case_opterminfo.grd_opinfo);
  491. grdf_initGrid(swt_terminfo.case_diagterminfo.grd_diaginfo);
  492. grdf_initGrid(swt_terminfo.case_ccterminfo.grd_ccinfo);
  493. //grdf_setGridSort(grd_XXX);
  494. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  495. fInitalize();
  496. }
  497. /****************************************************************************************
  498. * Components : Button
  499. * Description : 조회
  500. ****************************************************************************************/
  501. function grp_srch_btn_search_onclick(obj:Button, e:ClickEventInfo) {
  502. fSearchTermInfo();
  503. }
  504. /****************************************************************************************
  505. * Components : Edit
  506. * Description : 검색어 입력 후 조회
  507. ****************************************************************************************/
  508. function grp_srch_input5_onkeyup(obj:Edit, e:KeyEventInfo) {
  509. if(e.keycode == 13) {
  510. obj.updateToDataset();
  511. grp_srch.btn_search.click();
  512. }
  513. }
  514. /****************************************************************************************
  515. * Components : Grid
  516. * Description : 수술확장색인정보 선택
  517. ****************************************************************************************/
  518. function swt_indxinfo_case_opindx_trv_diagindxinfo_oncellclick(obj:Grid, e:GridClickEventInfo) {
  519. fSearchTermInfo("index");
  520. }
  521. /****************************************************************************************
  522. * Components : Grid
  523. * Description : 진단확장색인정보 선택
  524. ****************************************************************************************/
  525. function swt_indxinfo_case_diagindx_trv_opindxinfo_oncellclick(obj:Grid, e:GridClickEventInfo) {
  526. fSearchTermInfo("index");
  527. }
  528. /****************************************************************************************
  529. * Components : Grid
  530. * Description : 주호소확장색인정보 선택
  531. ****************************************************************************************/
  532. function swt_indxinfo_case_ccindx_trv_ccindxinfo_oncellclick(obj:Grid, e:GridClickEventInfo) {
  533. fSearchTermInfo("index");
  534. }
  535. function swt_terminfo_case_opterminfo_grd_opinfo_oncellclick(obj:Grid, e:GridClickEventInfo) {
  536. // if(swt_terminfo.case_opterminfo.grd_opinfo.row == 0){
  537. // var sFlag = "";
  538. // if(ds_main_termlist_terminfo.getColumn(1, "check") == "true"){
  539. // sFlag = "false";
  540. // }else{
  541. // sFlag = "true";
  542. // }
  543. // var sRowCnt = swt_terminfo.case_opterminfo.grd_opinfo.rows- swt_terminfo.case_opterminfo.grd_opinfo.fixedRows;
  544. // for(var iRow = 1; iRow <= sRowCnt; iRow++){
  545. // eval(xTermListPath).setColumn( iRow, "check", sFlag);
  546. // }
  547. // swt_terminfo.case_opterminfo.grd_opinfo.rebuild();
  548. // }
  549. }
  550. /****************************************************************************************
  551. * Components : Button
  552. * Description : 진단정보 선택
  553. ****************************************************************************************/
  554. function swt_terminfo_case_opterminfo_btn_sendop_onclick(obj:Button, e:ClickEventInfo) {
  555. fSendTermInfo();
  556. }
  557. /****************************************************************************************
  558. * Components : Button
  559. * Description : 진단정보 닫기
  560. ****************************************************************************************/
  561. function swt_terminfo_case_opterminfo_btn_closeop_onclick(obj:Button, e:ClickEventInfo) {
  562. this.close();
  563. }
  564. /****************************************************************************************
  565. * Components : Grid
  566. * Description : 진단정보 선택
  567. ****************************************************************************************/
  568. function swt_terminfo_case_diagterminfo_grd_diaginfo_oncellclick(obj:Grid, e:GridClickEventInfo) {
  569. // if(ds_main_termlist_terminfo.rowposition == 0){
  570. // var sFlag = "";
  571. // if(ds_main_termlist_terminfo.getColumn(0, "check") == "Y"){
  572. // sFlag = "N";
  573. // }else{
  574. // sFlag = "Y";
  575. // }
  576. //
  577. // var sRowCnt = ds_main_termlist_terminfo.rowcount;
  578. // for(var iRow = 0; iRow <= sRowCnt; iRow++){
  579. // eval(xTermListPath).setColumn( iRow, "check", sFlag);
  580. // }
  581. // swt_terminfo.case_diagterminfo.grd_diaginfo.rebuild();
  582. // }
  583. }
  584. /****************************************************************************************
  585. * Components : Button
  586. * Description : 진단정보 선택
  587. ****************************************************************************************/
  588. function swt_terminfo_case_diagterminfo_btn_senddiag_onclick(obj:Button, e:ClickEventInfo) {
  589. fSendTermInfo();
  590. }
  591. /****************************************************************************************
  592. * Components : Button
  593. * Description : 진단정보 닫기
  594. ****************************************************************************************/
  595. function swt_terminfo_case_diagterminfo_btn_closediag_onclick(obj:Button, e:ClickEventInfo) {
  596. this.close();
  597. }
  598. /****************************************************************************************
  599. * Components : Button
  600. * Description : 진단정보 선택
  601. ****************************************************************************************/
  602. function swt_terminfo_case_ccterminfo_button2_onclick(obj:Button, e:ClickEventInfo) {
  603. fSendTermInfo();
  604. }
  605. /****************************************************************************************
  606. * Components : Button
  607. * Description : 진단정보 닫기
  608. ****************************************************************************************/
  609. function swt_terminfo_case_ccterminfo_button4_onclick(obj:Button, e:ClickEventInfo) {
  610. this.close();
  611. }
  612. function swt_terminfo_case_ccterminfo_grd_ccinfo_oncellclick(obj:Grid, e:GridClickEventInfo) {
  613. // if(swt_terminfo.case_ccterminfo.grd_ccinfo.row == 0){
  614. // var sFlag = "";
  615. // if(ds_main_termlist_terminfo.getColumn(1, "check") == "true"){
  616. // sFlag = "false";
  617. // }else{
  618. // sFlag = "true";
  619. // }
  620. // var sRowCnt = swt_terminfo.case_ccterminfo.grd_ccinfo.rows- swt_terminfo.case_ccterminfo.grd_ccinfo.fixedRows;
  621. // for(var iRow = 1; iRow <= sRowCnt; iRow++){
  622. // eval(xTermListPath).setColumn( iRow, "check", sFlag);
  623. // }
  624. // swt_terminfo.case_ccterminfo.grd_ccinfo.rebuild();
  625. // }
  626. }
  627. function ds_main_termlist_terminfo_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  628. {
  629. if(e.columnid=="check") {
  630. obj.setColumn(e.row,e.columnid,(e.newvalue=="Y"||e.newvalue==1)?"Y":"N");
  631. }
  632. }
  633. ]]></Script>
  634. </Form>
  635. </FDL>