SPMMB00600_진단연계수술.xfdl 29 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMMB00600" position="absolute 0 0 1150 761" titletext="진단연계수술관리" oninit="SPMMB00600_oninit" onload="SPMMB00600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static text="진단" position="absolute 238 16 409 33" align="align:center middle;" id="caption27" class="tit_2"/>
  8. <Static text="SET" position="absolute 0 16 50 33" align="align:center middle;" id="caption1" class="tit_2"/>
  9. <Radio position="absolute 122 14 220 33" id="radio1" columncount="2" rowcount="1" codecolumn="codecolumn" datacolumn="datacolumn" onitemchanged="radio1_onitemchanged">
  10. <Dataset id="innerdataset">
  11. <ColumnInfo>
  12. <Column id="codecolumn"/>
  13. <Column id="datacolumn"/>
  14. </ColumnInfo>
  15. <Rows>
  16. <Row>
  17. <Col id="codecolumn">P</Col>
  18. <Col id="datacolumn">개인</Col>
  19. </Row>
  20. <Row>
  21. <Col id="codecolumn">D</Col>
  22. <Col id="datacolumn">과</Col>
  23. </Row>
  24. </Rows>
  25. </Dataset>
  26. </Radio>
  27. <Static text="진단연계수술" position="absolute 701 16 801 33" align="align:center middle;" id="caption2" class="tit_2"/>
  28. <Grid position="absolute 234 35 695 759" id="grd_diaglinklist" binddataset="ds_main_diaglinklist" oncelldblclick="grd_diaglinklist_oncelldblclick" onenteredit="grd_diaglinklist_onenteredit" onenterdown="grd_diaglinklist_onenterdown">
  29. <Formats>
  30. <Format id="default">
  31. <Columns>
  32. <Column size="44"/>
  33. <Column size="0"/>
  34. <Column size="0"/>
  35. <Column size="0"/>
  36. <Column size="100"/>
  37. <Column size="309"/>
  38. <Column size="0"/>
  39. </Columns>
  40. <Rows>
  41. <Row size="24" band="head"/>
  42. <Row size="24"/>
  43. </Rows>
  44. <Band id="head">
  45. <Cell/>
  46. <Cell col="1" text="setno"/>
  47. <Cell col="2" text="settypecd"/>
  48. <Cell col="3" text="diagcd"/>
  49. <Cell col="4" text="진단코드"/>
  50. <Cell col="5" text="진단명"/>
  51. <Cell col="6" text="orgdiagcd"/>
  52. </Band>
  53. <Band id="body">
  54. <Cell displaytype="combo" edittype="combo" text="bind:status" combodataset="ds_cmb_status" combocodecol="value" combodatacol="label"/>
  55. <Cell col="1" text="bind:setno"/>
  56. <Cell col="2" text="bind:settypecd"/>
  57. <Cell col="3" text="bind:diagcd"/>
  58. <Cell col="4" displaytype="text" edittype="text" text="bind:dispdiagcd"/>
  59. <Cell col="5" displaytype="text" edittype="text" text="bind:diagengnm"/>
  60. <Cell col="6" text="bind:orgdiagcd"/>
  61. </Band>
  62. </Format>
  63. </Formats>
  64. </Grid>
  65. <Button position="absolute 606 13 648 32" id="btn_deldiag" class="btn2" text="삭제" onclick="btn_deldiag_onclick"/>
  66. <Grid position="absolute 699 35 1148 759" id="grd_oplinklist" binddataset="ds_main_oplinklist" onrbuttondown="grd_oplinklist_onrbuttondown" onenteredit="grd_oplinklist_onenteredit" onenterdown="grd_oplinklist_onenterdown">
  67. <Formats>
  68. <Format id="default">
  69. <Columns>
  70. <Column size="44"/>
  71. <Column size="0"/>
  72. <Column size="0"/>
  73. <Column size="0"/>
  74. <Column size="0"/>
  75. <Column size="100"/>
  76. <Column size="298"/>
  77. </Columns>
  78. <Rows>
  79. <Row size="24" band="head"/>
  80. <Row size="24"/>
  81. </Rows>
  82. <Band id="head">
  83. <Cell/>
  84. <Cell col="1" text="setno"/>
  85. <Cell col="2" text="settypecd"/>
  86. <Cell col="3" text="opcd"/>
  87. <Cell col="4" text="diagcd"/>
  88. <Cell col="5" text="수술코드"/>
  89. <Cell col="6" text="수술명"/>
  90. </Band>
  91. <Band id="body">
  92. <Cell displaytype="combo" edittype="combo" text="bind:status" combodataset="ds_cmb_status" combocodecol="value" combodatacol="label"/>
  93. <Cell col="1" text="bind:setno"/>
  94. <Cell col="2" text="bind:settypecd"/>
  95. <Cell col="3" text="bind:opcd"/>
  96. <Cell col="4" text="bind:diagcd"/>
  97. <Cell col="5" displaytype="text" edittype="text" text="bind:dispopcd"/>
  98. <Cell col="6" displaytype="text" edittype="text" text="bind:opengnm"/>
  99. </Band>
  100. </Format>
  101. </Formats>
  102. </Grid>
  103. <Button position="absolute 650 13 692 32" id="btn_savediag" class="btn5" text="저장" onclick="btn_savediag_onclick"/>
  104. <Button position="absolute 1058 13 1100 32" id="btn_delop" class="btn2" text="삭제" onclick="btn_delop_onclick"/>
  105. <Button position="absolute 1102 13 1144 32" id="btn_saveop" class="btn5" text="저장" onclick="btn_saveop_onclick"/>
  106. <Button position="absolute 247 39 263 55" id="btn_diag" class="icon_search" visible="true" text="" onclick="btn_diag_onclick"/>
  107. <Button position="absolute 713 39 729 55" id="btn_op" class="icon_search" visible="true" text="" onclick="btn_op_onclick"/>
  108. <Grid id="trv_prmsprcpsetlist" taborder="1" useinputpanel="false" position="absolute 0 35 230 759" binddataset="ds_main_prmsprcpsetlist" onlbuttonup="trv_prmsprcpsetlist_onlbuttonup" onrbuttondown="trv_prmsprcpsetlist_onrbuttondown" treeusecheckbox="false" treeuseexpandkey="true" treeinitstatus="expand,all" autofittype="col">
  109. <Formats>
  110. <Format id="default">
  111. <Columns>
  112. <Column size="227"/>
  113. </Columns>
  114. <Rows>
  115. <Row size="24"/>
  116. </Rows>
  117. <Band id="body">
  118. <Cell displaytype="tree" edittype="tree" text="bind:setnm" treelevel="bind:levl"/>
  119. </Band>
  120. </Format>
  121. </Formats>
  122. </Grid>
  123. <Div position="absolute 6 190 224 245" id="group1" visible="false" style="background:#99ccffff;border:1 solid #808080ff ;">
  124. <Layouts>
  125. <Layout>
  126. <Static text="폴더명" position="absolute 5 7 54 27" align="align:center middle;" id="caption4" style="font:Dotum,9,bold;"/>
  127. <Edit position="absolute 55 7 209 26" id="ipt_setnm" class="input_default" onkeydown="group1_ipt_setnm_onkeydown"/>
  128. <Button position="absolute 122 29 164 48" id="btn_cnfm" class="btn2" text="확인" onclick="group1_btn_cnfm_onclick"/>
  129. <Button position="absolute 166 29 208 48" id="button3" class="btn2" text="취소" onclick="group1_button3_onclick"/>
  130. </Layout>
  131. </Layouts>
  132. </Div>
  133. </Layout>
  134. </Layouts>
  135. <Objects>
  136. <Dataset id="ds_main_diaglinklist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  137. <ColumnInfo>
  138. <Column id="status" type="STRING"/>
  139. <Column id="setno" type="STRING"/>
  140. <Column id="settypecd" type="STRING"/>
  141. <Column id="diagcd" type="STRING"/>
  142. <Column id="dispdiagcd" type="STRING"/>
  143. <Column id="diagengnm" type="STRING"/>
  144. <Column id="orgdiagcd" type="STRING"/>
  145. </ColumnInfo>
  146. </Dataset>
  147. <Dataset id="ds_main_oplinklist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  148. <ColumnInfo>
  149. <Column id="status" type="STRING"/>
  150. <Column id="setno" type="STRING"/>
  151. <Column id="settypecd" type="STRING"/>
  152. <Column id="opcd" type="STRING"/>
  153. <Column id="diagcd" type="STRING"/>
  154. <Column id="dispopcd" type="STRING"/>
  155. <Column id="opengnm" type="STRING"/>
  156. </ColumnInfo>
  157. </Dataset>
  158. <Dataset id="ds_main_prmsprcpsetlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  159. <ColumnInfo>
  160. <Column id="levl" type="STRING" size="256"/>
  161. <Column id="setno" type="STRING" size="256"/>
  162. <Column id="supsetno" type="STRING" size="256"/>
  163. <Column id="sortno" type="STRING" size="256"/>
  164. <Column id="setkindcd" type="STRING" size="256"/>
  165. <Column id="setclscd" type="STRING" size="256"/>
  166. <Column id="settrgtcd" type="STRING" size="256"/>
  167. <Column id="setnm" type="STRING" size="256"/>
  168. <Column id="settypecd" type="STRING" size="256"/>
  169. <Column id="ioflag" type="STRING" size="256"/>
  170. </ColumnInfo>
  171. </Dataset>
  172. <Dataset id="ds_cmb_status" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  173. <ColumnInfo>
  174. <Column id="label" type="STRING" size="256"/>
  175. <Column id="value" type="STRING" size="256"/>
  176. </ColumnInfo>
  177. <Rows>
  178. <Row>
  179. <Col id="label">-</Col>
  180. <Col id="value">-</Col>
  181. </Row>
  182. <Row>
  183. <Col id="label">신규</Col>
  184. <Col id="value">i</Col>
  185. </Row>
  186. <Row>
  187. <Col id="label">수정</Col>
  188. <Col id="value">u</Col>
  189. </Row>
  190. <Row>
  191. <Col id="label">삭제</Col>
  192. <Col id="value">d</Col>
  193. </Row>
  194. </Rows>
  195. </Dataset>
  196. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  197. <ColumnInfo>
  198. <Column id="reqflag" type="STRING" size="256"/>
  199. <Column id="ioflag" type="STRING" size="256"/>
  200. </ColumnInfo>
  201. <Rows>
  202. <Row>
  203. <Col id="reqflag">D</Col>
  204. </Row>
  205. </Rows>
  206. </Dataset>
  207. <Dataset id="ds_main_iptbox" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  208. <ColumnInfo>
  209. <Column id="setnm" type="STRING" size="256"/>
  210. <Column id="setno" type="STRING" size="256"/>
  211. <Column id="diagcd" type="STRING" size="256"/>
  212. </ColumnInfo>
  213. <Rows>
  214. <Row/>
  215. </Rows>
  216. </Dataset>
  217. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  218. <Dataset id="ds_hidden_prmsprcpsetlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  219. <ColumnInfo>
  220. <Column id="status" type="STRING" size="256"/>
  221. <Column id="levl" type="STRING" size="256"/>
  222. <Column id="setno" type="STRING" size="256"/>
  223. <Column id="supsetno" type="STRING" size="256"/>
  224. <Column id="sortno" type="STRING" size="256"/>
  225. <Column id="setkindcd" type="STRING" size="256"/>
  226. <Column id="setclscd" type="STRING" size="256"/>
  227. <Column id="settrgtcd" type="STRING" size="256"/>
  228. <Column id="setnm" type="STRING" size="256"/>
  229. <Column id="settypecd" type="STRING" size="256"/>
  230. <Column id="ioflag" type="STRING" size="256"/>
  231. </ColumnInfo>
  232. <Rows>
  233. <Row/>
  234. </Rows>
  235. </Dataset>
  236. <Dataset id="ds_send_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  237. <Dataset id="ds_selected" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  238. <ColumnInfo>
  239. <Column id="setno" type="STRING" size="256"/>
  240. <Column id="diagcd" type="STRING" size="256"/>
  241. </ColumnInfo>
  242. <Rows>
  243. <Row/>
  244. </Rows>
  245. </Dataset>
  246. <Dataset id="ds_temp_selectdiaglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  247. </Objects>
  248. <Bind>
  249. <BindItem id="item0" compid="radio1" propid="value" datasetid="ds_main_cond" columnid="reqflag"/>
  250. <BindItem id="item1" compid="group1.ipt_setnm" propid="value" datasetid="ds_main_iptbox" columnid="setnm"/>
  251. </Bind>
  252. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  253. * System Name :
  254. * Job Name :
  255. * Creator :
  256. * Make Date : 2015-02-03
  257. * Description :
  258. *---------------------------------------------------------------------------------------
  259. * Modify Date Modifier Modify Description
  260. *---------------------------------------------------------------------------------------
  261. * 2015-02-03 Live Converter TF->XP
  262. *
  263. *---------------------------------------------------------------------------------------
  264. ****************************************************************************************/
  265. //=======================================================================================
  266. // Lib Include
  267. //---------------------------------------------------------------------------------------
  268. include "com_commonxp::comm_main.xjs"
  269. include "emr_prcpmngtxp::MMOCommon.xjs"
  270. include "emr_prcpmngtxp::SPMMB00600.xjs"
  271. var cusorY = 0;
  272. //=======================================================================================
  273. // Event
  274. //---------------------------------------------------------------------------------------
  275. /****************************************************************************************
  276. * Components : Form
  277. * Components ID : SPMMB00600
  278. * Event : oninit
  279. * Argument : 01.obj : Object Event has occurred
  280. * : 02.e : Event Object
  281. * Description : 화면 처음 초기화시 폼초기화
  282. ****************************************************************************************/
  283. function SPMMB00600_oninit(obj:Form, e:InitEventInfo)
  284. {
  285. frmf_initForm(obj); // 폼 초기화
  286. }
  287. /****************************************************************************************
  288. * Components : Form
  289. * Components ID : SPMMB00600
  290. * Event : onload
  291. * Argument : 01.obj : Object Event has occurred
  292. * : 02.e : Event Object
  293. * Description : 화면오픈시 폼load이후 실행
  294. ****************************************************************************************/
  295. function SPMMB00600_onload(obj:Form, e:LoadEventInfo)
  296. {
  297. fInitialize_SPMMB00600();
  298. frmf_createPopupMenu("popupmenu"
  299. ,"fPopupMenu"
  300. ,[{id: "N", level: "0", title: "새폴더"}
  301. ,{id: "R", level: "0", title: "폴더이름 바꾸기"}
  302. ,{id: "D", level: "0", title: "폴더삭제"}
  303. ]
  304. );
  305. frmf_createPopupMenu("gridmenu"
  306. ,"fSelectOpCD"
  307. ,[{id: "S", level: "0", title: "선택"}
  308. ]
  309. );
  310. }
  311. /****************************************************************************************
  312. * Components : Radio
  313. * Components ID : radio1
  314. * Event : onitemchanged
  315. * Argument : 01.obj : Object Event has occurred
  316. * : 02.e : Event Object
  317. * Description :
  318. ****************************************************************************************/
  319. function radio1_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  320. {
  321. fClearDiagOpGrd();
  322. fReqDiagOpCoordSETTree(e.postvalue);
  323. }
  324. /****************************************************************************************
  325. * Components : Grid
  326. * Components ID : trv_prmsprcpsetlist
  327. * Event : onrbuttondown
  328. * Argument : 01.obj : Object Event has occurred
  329. * : 02.e : Event Object
  330. * Description : Set 트리 우클릭하여 팝업메뉴 실행
  331. ****************************************************************************************/
  332. function trv_prmsprcpsetlist_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
  333. {
  334. if(e.row > -1) {
  335. ds_main_prmsprcpsetlist.rowposition = e.row;
  336. cusorY = e.clientY;
  337. popupmenu.trackPopup(e.screenX,e.screenY);
  338. }
  339. }
  340. /****************************************************************************************
  341. * Components : Grid
  342. * Components ID : trv_prmsprcpsetlist
  343. * Event : onlbuttonup
  344. * Argument : 01.obj : Object Event has occurred
  345. * : 02.e : Event Object
  346. * Description : Set 트리 클릭하여 선택
  347. ****************************************************************************************/
  348. function trv_prmsprcpsetlist_onlbuttonup(obj:Grid, e:GridMouseEventInfo)
  349. {
  350. if(e.row > -1) {
  351. fSelectTreeView();
  352. }
  353. }
  354. /****************************************************************************************
  355. * Components : Edit
  356. * Components ID : group1.ipt_setnm
  357. * Event : onkeydown
  358. * Argument : 01.obj : Object Event has occurred
  359. * : 02.e : Event Object
  360. * Description : 폴더명 입력후 엔터/ESC 입력
  361. ****************************************************************************************/
  362. function group1_ipt_setnm_onkeydown(obj:Edit, e:KeyEventInfo)
  363. {
  364. if(e.keycode == 13) {
  365. var ev = new ClickEventInfo;
  366. frmf_inputEnterKey("group1.btn_cnfm", "onclick", ev );
  367. }
  368. if(e.keycode == 27){
  369. group1.visible = false;
  370. //model.setFocus("trv_etcprmsprcpsetlist");
  371. trv_prmsprcpsetlist.setFocus();
  372. return;
  373. }
  374. }
  375. /****************************************************************************************
  376. * Components : Button
  377. * Components ID : group1.btn_cnfm
  378. * Event : onclick
  379. * Argument : 01.obj : Object Event has occurred
  380. * : 02.e : Event Object
  381. * Description : 폴더명 입력그룹 확인버튼 클릭
  382. ****************************************************************************************/
  383. function group1_btn_cnfm_onclick(obj:Button, e:ClickEventInfo)
  384. {
  385. group1.visible = false;
  386. //model.setFocus("trv_etcprmsprcpsetlist");
  387. trv_prmsprcpsetlist.setFocus();
  388. fSavePrmsDiagSet();
  389. }
  390. /****************************************************************************************
  391. * Components : Button
  392. * Components ID : group1.button3
  393. * Event : onclick
  394. * Argument : 01.obj : Object Event has occurred
  395. * : 02.e : Event Object
  396. * Description : 폴더명 입력그룹 취소버튼 클릭
  397. ****************************************************************************************/
  398. function group1_button3_onclick(obj:Button, e:ClickEventInfo)
  399. {
  400. group1.visible = false;
  401. }
  402. /****************************************************************************************
  403. * Components : Grid
  404. * Components ID : grd_diaglinklist
  405. * Event : oncelldblclick
  406. * Argument : 01.obj : Object Event has occurred
  407. * : 02.e : Event Object
  408. * Description : 진단그리드 더블클릭
  409. ****************************************************************************************/
  410. function grd_diaglinklist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  411. {
  412. var curcol = e.col;
  413. var diagcd = ds_main_diaglinklist.getColumn(e.row,"diagcd");
  414. if(e.row > -1 && !utlf_isNull(diagcd)) {
  415. fClkGrdDiagLinkList(curcol);
  416. }
  417. }
  418. /****************************************************************************************
  419. * Components : Grid
  420. * Components ID : grd_diaglinklist
  421. * Event : onenteredit
  422. * Argument : 01.obj : Object Event has occurred
  423. * : 02.e : Event Object
  424. * Description : 진단그리드 편집시작
  425. ****************************************************************************************/
  426. function grd_diaglinklist_onenteredit(obj:Grid, e:GridEditEventInfo)
  427. {
  428. gDIAGCOL = e.col;
  429. }
  430. /****************************************************************************************
  431. * Components : Grid
  432. * Components ID : grd_diaglinklist
  433. * Event : onenterdown
  434. * Argument : 01.obj : Object Event has occurred
  435. * : 02.e : Event Object
  436. * Description : 진단그리드 편집후 엔터 입력
  437. ****************************************************************************************/
  438. function grd_diaglinklist_onenterdown(obj:Grid, e:GridEditEventInfo)
  439. {
  440. fSearchDiagTermCD();
  441. }
  442. /****************************************************************************************
  443. * Components : Button
  444. * Components ID : btn_deldiag
  445. * Event : onclick
  446. * Argument : 01.obj : Object Event has occurred
  447. * : 02.e : Event Object
  448. * Description : 진단 삭제버튼 클릭
  449. ****************************************************************************************/
  450. function btn_deldiag_onclick(obj:Button, e:ClickEventInfo)
  451. {
  452. fClkBtnDel(grd_diaglinklist);
  453. }
  454. /****************************************************************************************
  455. * Components : Button
  456. * Components ID : btn_savediag
  457. * Event : onclick
  458. * Argument : 01.obj : Object Event has occurred
  459. * : 02.e : Event Object
  460. * Description : 진단 저장버튼 클릭
  461. ****************************************************************************************/
  462. function btn_savediag_onclick(obj:Button, e:ClickEventInfo)
  463. {
  464. ds_send_savedata.clear();
  465. ds_send_savedata.copyData(ds_main_diaglinklist);
  466. var oParam = {};
  467. oParam.id = "TXMMB00605";
  468. oParam.service = "prcpbaseapp.PrmsPrcpMngt";
  469. oParam.method = "reqSaveDiagLinkOpSetList";
  470. oParam.inds = "req=ds_send_savedata";
  471. oParam.outds = "ds_main_diaglinklist=diaglinklist";
  472. oParam.async = false;
  473. oParam.callback = "cf_TXMMB00605";
  474. tranf_submit(oParam);
  475. // if(submit("TXMMB00605")==true){
  476. // grd_diaglinklist.addRow();
  477. // }
  478. }
  479. /****************************************************************************************
  480. * Function : cf_TXMMB00605
  481. * Description : TXMMB00605 콜백 함수
  482. * Argument :
  483. * return type :
  484. * Creator :
  485. ****************************************************************************************/
  486. function cf_TXMMB00605(sSvcId, nErrorCode, sErrorMsg) {
  487. if(nErrorCode < 0) return;
  488. ds_main_diaglinklist.addRow();
  489. }
  490. /****************************************************************************************
  491. * Components : Button
  492. * Components ID : btn_diag
  493. * Event : onclick
  494. * Argument : 01.obj : Object Event has occurred
  495. * : 02.e : Event Object
  496. * Description : 진단 돋보기 버튼 클릭
  497. ****************************************************************************************/
  498. function btn_diag_onclick(obj:Button, e:ClickEventInfo)
  499. {
  500. var xpt = this.position.left + 50;
  501. var ypt = this.position.top + 80;
  502. // var coord = getRelativeCoordinate ( xpt, ypt );
  503. // var mon = coord[0];
  504. // xpt = coord[1];
  505. // ypt = coord[2];
  506. var mon = (sysf_getCurrentMonitorNumber()==1) ? 2 : 1;
  507. frmf_setParameter("SPMMO03200_diagParam", "Y");
  508. // modal("SPMMO03200", mon,xpt,ypt,"SPMMO03200", "", "", "", false);
  509. frmf_modal("SPMMO03200", "SPMMO03200", "", "", mon,xpt,ypt, "", "", "", "", "", "M");
  510. var useyn = frmf_getParameter("SPMMO03200_rtn_useyn");
  511. if(useyn == "Y") {
  512. var setno = ds_selected.getColumn(0,"setno");
  513. var reqflag = ds_main_cond.getColumn(0,"reqflag");
  514. if(reqflag == "P"){ //개인
  515. settypecd = "A";
  516. }else{
  517. settypecd = "B";
  518. }
  519. // var nodeList = model.instance1.selectNodes("/root/temp/selectdiaglist");
  520. var totcnt = ds_temp_selectdiaglist.rowcount;
  521. for(var i = 0; i < totcnt ; i++) {
  522. var currow = ds_main_diaglinklist.rowposition;
  523. ds_main_diaglinklist.setColumn(currow,"status" , "i");
  524. ds_main_diaglinklist.setColumn(currow,"dispdiagcd", ds_temp_selectdiaglist.getColumn(i,"dispdiagcd"));
  525. ds_main_diaglinklist.setColumn(currow,"diagcd" , ds_temp_selectdiaglist.getColumn(i,"diagcd"));
  526. ds_main_diaglinklist.setColumn(currow,"diagengnm" , ds_temp_selectdiaglist.getColumn(i,"diagengnm"));
  527. ds_main_diaglinklist.setColumn(currow,"setno" , setno);
  528. ds_main_diaglinklist.setColumn(currow,"settypecd" , settypecd);
  529. ds_main_diaglinklist.setColumn(currow,"orgdiagcd" , ds_temp_selectdiaglist.getColumn(i,"orgdiagcd"));
  530. // grd_diaglinklist.addRow(true, true);
  531. ds_main_diaglinklist.addRow();
  532. }
  533. }
  534. }
  535. /****************************************************************************************
  536. * Components : Grid
  537. * Components ID : grd_oplinklist
  538. * Event : onrbuttondown
  539. * Argument : 01.obj : Object Event has occurred
  540. * : 02.e : Event Object
  541. * Description : 진단연계수술 그리드 우클릭하여 팝업 띄우기
  542. ****************************************************************************************/
  543. function grd_oplinklist_onrbuttondown(obj:Grid, e:GridMouseEventInfo)
  544. {
  545. if(e.row > -1) {
  546. ds_main_prmsprcpsetlist.rowposition = e.row;
  547. // cusorY = e.clientY;
  548. gridmenu.trackPopup(e.screenX,e.screenY);
  549. }
  550. }
  551. /****************************************************************************************
  552. * Components : Grid
  553. * Components ID : grd_oplinklist
  554. * Event : onenteredit
  555. * Argument : 01.obj : Object Event has occurred
  556. * : 02.e : Event Object
  557. * Description : 진단연계수술그리드 편집시작
  558. ****************************************************************************************/
  559. function grd_oplinklist_onenteredit(obj:Grid, e:GridEditEventInfo)
  560. {
  561. gOPCOL = e.col;
  562. }
  563. /****************************************************************************************
  564. * Components : Grid
  565. * Components ID : grd_oplinklist
  566. * Event : onenterdown
  567. * Argument : 01.obj : Object Event has occurred
  568. * : 02.e : Event Object
  569. * Description : 진단연계수술그리드 편집후 엔터 입력
  570. ****************************************************************************************/
  571. function grd_oplinklist_onenterdown(obj:Grid, e:GridEditEventInfo)
  572. {
  573. fSearchOpTermCD();
  574. }
  575. /****************************************************************************************
  576. * Components : Button
  577. * Components ID : btn_delop
  578. * Event : onclick
  579. * Argument : 01.obj : Object Event has occurred
  580. * : 02.e : Event Object
  581. * Description : 진단연계수술 삭제 버튼 클릭
  582. ****************************************************************************************/
  583. function btn_delop_onclick(obj:Button, e:ClickEventInfo)
  584. {
  585. fClkBtnDel(grd_oplinklist);
  586. }
  587. /****************************************************************************************
  588. * Components : Button
  589. * Components ID : btn_saveop
  590. * Event : onclick
  591. * Argument : 01.obj : Object Event has occurred
  592. * : 02.e : Event Object
  593. * Description : 진단연계수술 저장 버튼 클릭
  594. ****************************************************************************************/
  595. function btn_saveop_onclick(obj:Button, e:ClickEventInfo)
  596. {
  597. ds_send_savedata.clear();
  598. ds_send_savedata.copyData(ds_main_oplinklist);
  599. // submit("TXMMB00606");
  600. var oParam = {};
  601. oParam.id = "TXMMB00606";
  602. oParam.service = "prcpbaseapp.PrmsPrcpMngt";
  603. oParam.method = "reqSaveDiagLinkOpDetlList";
  604. oParam.inds = "req=ds_send_savedata";
  605. oParam.outds = "ds_main_oplinklist=oplinklist";
  606. oParam.async = false;
  607. oParam.callback = "";
  608. tranf_submit(oParam);
  609. ds_main_oplinklist.addRow();
  610. }
  611. /****************************************************************************************
  612. * Components : Button
  613. * Components ID : btn_op
  614. * Event : onclick
  615. * Argument : 01.obj : Object Event has occurred
  616. * : 02.e : Event Object
  617. * Description : 진단연계수술 돋보기 버튼 클릭
  618. ****************************************************************************************/
  619. function btn_op_onclick(obj:Button, e:ClickEventInfo)
  620. {
  621. var xpt = this.position.left + 50;
  622. var ypt = this.position.top + 80;
  623. // var coord = getRelativeCoordinate ( xpt, ypt );
  624. // var mon = coord[0];
  625. // xpt = coord[1];
  626. // ypt = coord[2];
  627. var mon = (sysf_getCurrentMonitorNumber()==1) ? 2 : 1;
  628. frmf_setParameter("SPMMO03300_opParam", "Y");
  629. // modal("SPMMO03200", mon,xpt,ypt,"SPMMO03200", "", "", "", false);
  630. frmf_modal("SPMMO03300", "SPMMO03300", "", "", mon,xpt,ypt, "", "", "", "", "", "M");
  631. var useyn = frmf_getParameter("SPMMO03300_rtn_useyn");
  632. if(useyn == "Y") {
  633. var reqflag = ds_main_cond.getColumn(0,"reqflag");
  634. if(reqflag == "P"){ //개인
  635. settypecd = "A";
  636. }else{
  637. settypecd = "B";
  638. }
  639. // var nodeList = model.instance1.selectNodes("/root/temp/selectoplist");
  640. var totcnt = ds_temp_selectoplist.rowcount;
  641. for(var i = 0; i <= totcnt ; i++) {
  642. var currow = ds_main_oplinklist.rowcount-1;
  643. ds_main_oplinklist.setColumn(currow,"status" , "i");
  644. ds_main_oplinklist.setColumn(currow,"setno" , ds_selected.getColumn(0,"setno"));
  645. ds_main_oplinklist.setColumn(currow,"settypecd" , settypecd);
  646. ds_main_oplinklist.setColumn(currow,"diagcd" , ds_selected.getColumn(0,"diagcd"));
  647. ds_main_oplinklist.setColumn(currow,"opcd" , ds_temp_selectoplist.getColumn(i,"opcd"));
  648. ds_main_oplinklist.setColumn(currow,"dispopcd" , ds_temp_selectoplist.getColumn(i,"dispopcd"));
  649. ds_main_oplinklist.setColumn(currow,"opengnm" , ds_temp_selectoplist.getColumn(i,"opengnm"));
  650. ds_main_oplinklist.addRow();
  651. }
  652. }
  653. }
  654. ]]></Script>
  655. </Form>
  656. </FDL>