SMADB00700_항암질병등록.xfdl 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMADB00700" position="absolute 0 0 1202 770" titletext="Untitle" onload="SMADB00700_onload" oninit="SMADB00700_oninit">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption19" text="질병별 항암프로토콜 등록" class="tit_1" position="absolute 0 0 200 26"/>
  8. <Button id="button1" taborder="1" text="행추가" onclick="group3_button1_onclick" class="btn2" position="absolute 465 287 518 309"/>
  9. <Button id="button2" taborder="2" text="행삭제" onclick="group3_button2_onclick" class="btn2" position="absolute 520 287 573 309"/>
  10. <Button id="button3" taborder="3" text="행복사" class="btn2" position="absolute 409 287 462 309" visible="false"/>
  11. <Button id="button4" taborder="4" text="행추가" onclick="group3_button4_onclick" class="btn2" position="absolute 1092 287 1145 309" anchor="top right"/>
  12. <Button id="button5" taborder="5" text="행삭제" onclick="group3_button5_onclick" class="btn2" position="absolute 1147 287 1200 309" anchor="top right"/>
  13. <Button id="button6" taborder="6" text="행복사" onclick="group3_button6_onclick" class="btn2" position="absolute 1036 287 1089 309" anchor="top right" visible="false"/>
  14. <Static id="caption1" text="질병정보" class="tit_2" position="absolute 375 41 470 57"/>
  15. <Static id="caption2" text="외래" class="tit_2" position="absolute 625 293 720 311"/>
  16. <Button id="button8" taborder="7" text="질병분류정보" onclick="group3_button8_onclick" class="btn2" position="absolute 1005 35 1091 57" anchor="top right"/>
  17. <Button id="button9" taborder="8" onclick="group3_button9_onclick" class="icon_left" position="absolute 587 469 613 488"/>
  18. <Shape id="line1" linetype="horizontal" class="line_3" position="absolute 0 763 573 769"/>
  19. <Button id="button52" taborder="9" text="행추가" onclick="group3_button52_onclick" class="btn2" position="absolute 1093 35 1146 57" anchor="top right"/>
  20. <Shape id="line2" class="line_1" position="absolute 0 308 573 314"/>
  21. <Button id="button53" taborder="10" text="행삭제" onclick="group3_button53_onclick" class="btn2" position="absolute 1148 35 1201 57" anchor="top right"/>
  22. <Button id="button10" taborder="11" onclick="group3_button10_onclick" class="icon_right" position="absolute 587 499 613 518"/>
  23. <Shape id="line3" class="line_1" position="absolute 375 56 1200 62" anchor="left top right"/>
  24. <Static id="caption7" text="입원" class="tit_2" position="absolute 0 293 95 311"/>
  25. <Button id="button54" taborder="12" text="행복사" class="btn2" position="absolute 1093 11 1146 33" anchor="top right" onclick="button54_onclick" visible="false"/>
  26. <Shape id="line5" linetype="horizontal" class="line_3" position="absolute 625 763 1200 769"/>
  27. <Shape id="line6" class="line_1" position="absolute 625 308 1199 314" anchor="left top right"/>
  28. <Grid id="grd_sicklist" taborder="13" binddataset="ds_grd_sicklist" useinputpanel="false" selecttype="multirow" autofittype="col" oncellclick="group3_grd_sicklist_oncellclick" position="absolute 375 62 1200 274" anchor="left top right" autoenter="key" cellsizingtype="both" extendsizetype="row">
  29. <Formats>
  30. <Format id="default">
  31. <Columns>
  32. <Column size="25" band="left"/>
  33. <Column size="159"/>
  34. <Column size="641"/>
  35. </Columns>
  36. <Rows>
  37. <Row size="24" band="head"/>
  38. <Row size="24"/>
  39. </Rows>
  40. <Band id="head">
  41. <Cell/>
  42. <Cell col="1" text="질병분류코드"/>
  43. <Cell col="2" text="질병분류명"/>
  44. </Band>
  45. <Band id="body">
  46. <Cell celltype="head" displaytype="normal"/>
  47. <Cell col="1" displaytype="text" edittype="text" text="bind:sickclscd" editautoselect="true"/>
  48. <Cell col="2" style="align:left middle;" text="bind:sickclsnm"/>
  49. </Band>
  50. </Format>
  51. </Formats>
  52. </Grid>
  53. <Grid id="grd_prtlin" taborder="14" binddataset="ds_grd_prtlin" useinputpanel="false" selecttype="multirow" autofittype="col" oncellclick="group3_grd_prtlin_oncellclick" position="absolute 0 314 573 764" anchor="left top bottom" autoenter="key" cellsizingtype="both" extendsizetype="row">
  54. <Formats>
  55. <Format id="default">
  56. <Columns>
  57. <Column size="25" band="left"/>
  58. <Column size="82"/>
  59. <Column size="181"/>
  60. <Column size="54"/>
  61. <Column size="50"/>
  62. <Column size="78"/>
  63. <Column size="55"/>
  64. <Column size="48"/>
  65. </Columns>
  66. <Rows>
  67. <Row size="24" band="head"/>
  68. <Row size="24"/>
  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="Remark"/>
  77. <Cell col="6" text="투여단계"/>
  78. <Cell col="7" text="Cycle"/>
  79. </Band>
  80. <Band id="body">
  81. <Cell celltype="head"/>
  82. <Cell col="1" displaytype="text" edittype="text" text="bind:prtlcd" editautoselect="true"/>
  83. <Cell col="2" displaytype="text" edittype="text" text="bind:prtlnm" editautoselect="true"/>
  84. <Cell col="3" displaytype="text" edittype="text" text="bind:drugprid" editautoselect="true"/>
  85. <Cell col="4" displaytype="combo" edittype="combo" text="bind:rateioflag"/>
  86. <Cell col="5" displaytype="text" edittype="text" text="bind:remark" editautoselect="true"/>
  87. <Cell col="6" displaytype="text" edittype="text" text="bind:drugstage" editautoselect="true"/>
  88. <Cell col="7" displaytype="text" edittype="text" text="bind:drugcycle" editautoselect="true"/>
  89. </Band>
  90. </Format>
  91. </Formats>
  92. </Grid>
  93. <Grid id="grd_prtlout" taborder="15" binddataset="ds_grd_prtlout" useinputpanel="false" selecttype="multirow" autofittype="col" position="absolute 625 314 1200 764" anchor="all" autoenter="key" cellsizingtype="both" extendsizetype="row">
  94. <Formats>
  95. <Format id="default">
  96. <Columns>
  97. <Column size="25" band="left"/>
  98. <Column size="88"/>
  99. <Column size="188"/>
  100. <Column size="54"/>
  101. <Column size="46"/>
  102. <Column size="74"/>
  103. <Column size="55"/>
  104. <Column size="46"/>
  105. </Columns>
  106. <Rows>
  107. <Row size="24" band="head"/>
  108. <Row size="24"/>
  109. </Rows>
  110. <Band id="head">
  111. <Cell/>
  112. <Cell col="1" text="프로토콜 코드"/>
  113. <Cell col="2" text="프로토콜 명"/>
  114. <Cell col="3" text="투여주기"/>
  115. <Cell col="4" text="요율"/>
  116. <Cell col="5" text="Remark"/>
  117. <Cell col="6" text="투여단계"/>
  118. <Cell col="7" text="Cycle"/>
  119. </Band>
  120. <Band id="body">
  121. <Cell celltype="head"/>
  122. <Cell col="1" displaytype="text" edittype="text" text="bind:prtlcd" editautoselect="true"/>
  123. <Cell col="2" displaytype="text" edittype="text" text="bind:prtlnm" editautoselect="true"/>
  124. <Cell col="3" displaytype="text" edittype="text" text="bind:drugprid" editautoselect="true"/>
  125. <Cell col="4" displaytype="combo" edittype="combo" text="bind:rateioflag"/>
  126. <Cell col="5" displaytype="text" edittype="text" text="bind:remark" editautoselect="true"/>
  127. <Cell col="6" displaytype="text" edittype="text" text="bind:drugstage" editautoselect="true"/>
  128. <Cell col="7" displaytype="text" edittype="text" text="bind:drugcycle" editautoselect="true"/>
  129. </Band>
  130. </Format>
  131. </Formats>
  132. </Grid>
  133. <Static id="caption3" text="진료과정보" class="tit_2" position="absolute 0 41 95 57"/>
  134. <Shape id="line7" class="line_1" position="absolute 0 56 370 62"/>
  135. <Grid id="grd_orddeptlist" taborder="16" binddataset="ds_main_orddeptlist_item" useinputpanel="false" autofittype="col" oncellclick="group3_grd_orddeptlist_oncellclick" position="absolute 0 62 370 274" autoenter="key" cellsizingtype="both" extendsizetype="row">
  136. <Formats>
  137. <Format id="default">
  138. <Columns>
  139. <Column size="25" band="left"/>
  140. <Column size="103"/>
  141. <Column size="242"/>
  142. </Columns>
  143. <Rows>
  144. <Row size="24" band="head"/>
  145. <Row size="24"/>
  146. </Rows>
  147. <Band id="head">
  148. <Cell/>
  149. <Cell col="1" text="진료과코드"/>
  150. <Cell col="2" text="진료과명"/>
  151. </Band>
  152. <Band id="body">
  153. <Cell celltype="head" displaytype="normal"/>
  154. <Cell col="1" displaytype="text" edittype="text" text="bind:orddeptcd" editautoselect="true"/>
  155. <Cell col="2" style="align:left middle;" text="bind:orddeptnm"/>
  156. </Band>
  157. </Format>
  158. </Formats>
  159. </Grid>
  160. <Button id="button11" taborder="17" text="행삭제" onclick="group3_button11_onclick" class="btn2" position="absolute 316 35 369 57"/>
  161. <Button id="button90" taborder="18" text="추가" onclick="group3_button90_onclick" class="btn2" position="absolute 272 35 314 57"/>
  162. <Button id="button7" taborder="19" text="저장" onclick="group4_button7_onclick" class="btn4" position="absolute 1144 10 1200 32" anchor="top right"/>
  163. <Shape id="line00" class="line_3" position="absolute 0 275 1199 278" anchor="left top right"/>
  164. <Shape id="line04" class="line_1" position="absolute 0 57 370 63"/>
  165. <Shape id="line08" class="line_1" position="absolute 375 57 1200 63" anchor="left top right"/>
  166. <Shape id="line09" class="line_1" position="absolute 0 309 573 315"/>
  167. <Shape id="line10" class="line_1" position="absolute 625 309 1199 315" anchor="left top right"/>
  168. <Shape id="line11" class="line_1" position="absolute 0 58 370 64"/>
  169. <Shape id="line12" class="line_1" position="absolute 375 58 1200 64" anchor="left top right"/>
  170. <Shape id="line13" class="line_1" position="absolute 0 310 573 316"/>
  171. <Shape id="line14" class="line_1" position="absolute 625 310 1199 316" anchor="left top right"/>
  172. </Layout>
  173. </Layouts>
  174. <Objects>
  175. <Dataset id="ds_grd_sicklist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  176. <ColumnInfo>
  177. <Column id="sickclscd" type="STRING"/>
  178. <Column id="sickclsnm" type="STRING"/>
  179. </ColumnInfo>
  180. <Rows>
  181. <Row/>
  182. </Rows>
  183. </Dataset>
  184. <Dataset id="ds_grd_prtlin" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  185. <ColumnInfo>
  186. <Column id="prtlcd" type="STRING"/>
  187. <Column id="prtlnm" type="STRING"/>
  188. <Column id="drugprid" type="STRING"/>
  189. <Column id="rateioflag" type="STRING"/>
  190. <Column id="remark" type="STRING"/>
  191. <Column id="drugstage" type="STRING"/>
  192. <Column id="drugcycle" type="STRING"/>
  193. </ColumnInfo>
  194. <Rows>
  195. <Row/>
  196. </Rows>
  197. </Dataset>
  198. <Dataset id="ds_grd_prtlout" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  199. <ColumnInfo>
  200. <Column id="prtlcd" type="STRING"/>
  201. <Column id="prtlnm" type="STRING"/>
  202. <Column id="drugprid" type="STRING"/>
  203. <Column id="rateioflag" type="STRING"/>
  204. <Column id="remark" type="STRING"/>
  205. <Column id="drugstage" type="STRING"/>
  206. <Column id="drugcycle" type="STRING"/>
  207. </ColumnInfo>
  208. <Rows>
  209. <Row/>
  210. </Rows>
  211. </Dataset>
  212. <Dataset id="ds_main_orddeptlist_item" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  213. <ColumnInfo>
  214. <Column id="m" type="STRING" size="256" sumtext="실행구분"/>
  215. <Column id="orddeptcd" type="STRING"/>
  216. <Column id="orddeptnm" type="STRING"/>
  217. </ColumnInfo>
  218. </Dataset>
  219. <Dataset id="ds_send_srchdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  220. <ColumnInfo>
  221. <Column id="loguser" type="STRING" size="256"/>
  222. <Column id="sickclscd" type="STRING" size="256"/>
  223. <Column id="orddeptcd" type="STRING" size="256"/>
  224. </ColumnInfo>
  225. <Rows>
  226. <Row/>
  227. </Rows>
  228. </Dataset>
  229. <Dataset id="ds_hidden_ret_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  230. <ColumnInfo>
  231. <Column id="count" type="STRING" size="256"/>
  232. </ColumnInfo>
  233. </Dataset>
  234. <Dataset id="ds_hidden_data" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  235. <ColumnInfo>
  236. <Column id="orddeptcd" type="STRING" size="256"/>
  237. <Column id="orddeptnm" type="STRING" size="256"/>
  238. </ColumnInfo>
  239. </Dataset>
  240. </Objects>
  241. <Bind/>
  242. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  243. * System Name : SMADB00700_항암질병등록.xfdl
  244. * Job Name :
  245. * Creator :
  246. * Make Date : 2015-06-08
  247. * Description :
  248. *---------------------------------------------------------------------------------------
  249. * Modify Date Modifier Modify Description
  250. *---------------------------------------------------------------------------------------
  251. * 2015-06-04 Live Converter TF->XP
  252. *
  253. *---------------------------------------------------------------------------------------
  254. ****************************************************************************************/
  255. //=======================================================================================
  256. // xjs Include
  257. //---------------------------------------------------------------------------------------
  258. include "com_commonxp::comm_main.xjs"
  259. include "com_departmentcodexp::ZSD001.xjs"
  260. /******************************************************************
  261. * Argument :
  262. * Description : 초기화
  263. ******************************************************************/
  264. function SMADB00700_oninit(obj:Form, e:InitEventInfo)
  265. {
  266. frmf_initForm(obj);
  267. }
  268. function SMADB00700_onload(obj:Form, e:LoadEventInfo)
  269. {
  270. grdf_setRowTypeIcon(grd_orddeptlist, 0);
  271. grdf_setRowTypeIcon(grd_sicklist, 0);
  272. grdf_setRowTypeIcon(grd_prtlin, 0);
  273. grdf_setRowTypeIcon(grd_prtlout, 0);
  274. button7.enable = frmf_checkAuth("X"); // 저장
  275. button8.enable = frmf_checkAuth("X"); // 질병분류정보
  276. // var oParam = {};
  277. // oParam.id = "TRADB00701";
  278. // oParam.service = "pharmacybaseapp.AnticancerProtocol";
  279. // oParam.method = "reqGetAnticancerProtocolOrdDeptList";
  280. // oParam.inds = "req=ds_send_srchdata";
  281. // oParam.outds = "ds_main_orddeptlist_item=item";
  282. // oParam.async = false;
  283. // //oParam.callback = "cf_TRADB00701";
  284. //
  285. // tranf_submit(oParam);
  286. var oParam = {};
  287. oParam.id = "TRADB00701";
  288. oParam.service = "pharmacyprotocolapp.AnticancerProtocol";
  289. oParam.method = "reqGetAnticancerProtocolOrdDeptList";
  290. oParam.inds = "req=ds_send_srchdata";
  291. oParam.outds = "ds_main_orddeptlist_item=item";
  292. oParam.async = false;
  293. // oParam.callback = "cf_TRADB00701";
  294. tranf_submit(oParam);
  295. }
  296. /******************************************************************
  297. * Argument :
  298. * Description : 진료과 정보 추가
  299. ******************************************************************/
  300. function group3_button90_onclick(obj:Button, e:ClickEventInfo)
  301. {
  302. var search_condition = "deptnm";
  303. var search_term = "";
  304. var standard_yn = "orduseyn";
  305. var ord_deptflag = ""; //D
  306. // ds_hidden_data.setColumn(0,"orddeptcd","");
  307. // ds_hidden_data.setColumn(0,"orddeptnm","");
  308. var rtnObj = appf_openInstDeptCodeList(search_condition, search_term, standard_yn, ord_deptflag, "deptcd depthngnm");
  309. if (!utlf_isNull(rtnObj)){
  310. ds_main_orddeptlist_item.addRow();
  311. ds_main_orddeptlist_item.setColumn(ds_main_orddeptlist_item.rowposition,"orddeptcd",rtnObj.deptcd);
  312. ds_main_orddeptlist_item.setColumn(ds_main_orddeptlist_item.rowposition,"orddeptnm", rtnObj.depthngnm);
  313. }
  314. }
  315. /******************************************************************
  316. * Argument :
  317. * Description : 진료과정보 행삭제
  318. ******************************************************************/
  319. function group3_button11_onclick(obj:Button, e:ClickEventInfo)
  320. {
  321. var cRow = ds_main_orddeptlist_item.rowposition;
  322. if( ds_main_orddeptlist_item.getRowType(cRow) == 2 ){
  323. ds_main_orddeptlist_item.deleteRow(cRow);
  324. } else {
  325. grdf_setStatus(grd_orddeptlist, "D", grdf_getSelectedRows(grd_orddeptlist));
  326. }
  327. }
  328. /******************************************************************
  329. * Argument :
  330. * Description :
  331. ******************************************************************/
  332. function group3_grd_orddeptlist_oncellclick(obj:Grid, e:GridClickEventInfo)
  333. {
  334. // model.setValue("/root/send/srchdata/orddeptcd", model.getValue("/root/main/orddeptlist/item["+grd_orddeptlist.row+"]/orddeptcd"));
  335. ds_send_srchdata.setColumn(0, "orddeptcd", ds_main_orddeptlist_item.getColumn(obj.currentrow, "orddeptcd"));
  336. // submit("TRADB00702");
  337. // var oParam = {};
  338. // oParam.id = "TRADB00702";
  339. // oParam.service = "pharmacybaseapp.AnticancerProtocol";
  340. // oParam.method = "reqGetAnticancerProtocolSickList";
  341. // oParam.inds = "req=ds_send_srchdata";
  342. // oParam.outds = "ds_grd_sicklist=item";
  343. // oParam.async = false;
  344. // //oParam.callback = "cf_TRADB00702";
  345. //
  346. // tranf_submit(oParam);
  347. var oParam = {};
  348. oParam.id = "TRADB00702";
  349. oParam.service = "pharmacyprotocolapp.AnticancerProtocol";
  350. oParam.method = "reqGetAnticancerProtocolSickList";
  351. oParam.inds = "req=ds_send_srchdata";
  352. oParam.outds = "ds_grd_sicklist=item";
  353. oParam.async = false;
  354. // oParam.callback = "cf_TRADB00702";
  355. tranf_submit(oParam);
  356. }
  357. /******************************************************************
  358. * Argument :
  359. * Description : 질병정보 리스트
  360. ******************************************************************/
  361. function group3_grd_sicklist_oncellclick(obj:Grid, e:GridClickEventInfo)
  362. {
  363. // model.setValue("/root/send/srchdata/sickclscd", model.getValue("/root/main/sicklist/item["+grd_sicklist.row+"]/sickclscd"));
  364. // model.setValue( "/root/main/sickclslist/item["+grd_sickclslist.row+"]/sickclscd","00000");
  365. ds_send_srchdata.setColumn(0, "sickclscd", ds_grd_sicklist.getColumn(obj.currentrow, "sickclscd"));
  366. // submit("TRADB00703");
  367. // var oParam = {};
  368. // oParam.id = "TRADB00703";
  369. // oParam.service = "pharmacybaseapp.AnticancerProtocol";
  370. // oParam.method = "reqGetAnticancerProtocolListIO";
  371. // oParam.inds = "req=ds_send_srchdata";
  372. // oParam.outds = "ds_grd_prtlin=itemin ds_grd_prtlout=itemout";
  373. // oParam.async = false;
  374. // //oParam.callback = "cf_TRADB00703";
  375. //
  376. // tranf_submit(oParam);
  377. var oParam = {};
  378. oParam.id = "TRADB00703";
  379. oParam.service = "pharmacyprotocolapp.AnticancerProtocol";
  380. oParam.method = "reqGetAnticancerProtocolListIO";
  381. oParam.inds = "req=ds_send_srchdata";
  382. oParam.outds = "ds_grd_prtlin=itemin ds_grd_prtlout=itemout";
  383. oParam.async = false;
  384. // oParam.callback = "cf_TRADB00703";
  385. tranf_submit(oParam);
  386. }
  387. /******************************************************************
  388. * Argument :
  389. * Description : 외래정보 => 입원정보로 복사
  390. ******************************************************************/
  391. function group3_button9_onclick(obj:Button, e:ClickEventInfo)
  392. {
  393. // rd_prtlin.addItem();s
  394. var addRow = ds_grd_prtlin.addRow();
  395. // model.copyNode( "/root/main/prtllist/itemin["+grd_prtlin.row+"]", "/root/main/prtllist/itemout["+grd_prtlout.row+"]");
  396. ds_grd_prtlin.copyRow(addRow,ds_grd_prtlout,ds_grd_prtlout.rowposition);
  397. // model.refresh();
  398. }
  399. /******************************************************************
  400. * Argument :
  401. * Description : 입원정보 => 외래정보로 복사
  402. ******************************************************************/
  403. function group3_button10_onclick(obj:Button, e:ClickEventInfo)
  404. {
  405. // grd_prtlout.addItem();
  406. var addRow = ds_grd_prtlout.addRow();
  407. // model.copyNode( "/root/main/prtllist/itemout["+grd_prtlout.row+"]","/root/main/prtllist/itemin["+grd_prtlin.row+"]");
  408. ds_grd_prtlout.copyRow(addRow,ds_grd_prtlin,ds_grd_prtlin.rowposition);
  409. }
  410. /******************************************************************
  411. * Argument :
  412. * Description : 질병분류정보 추가
  413. ******************************************************************/
  414. function group3_button8_onclick(obj:Button, e:ClickEventInfo)
  415. {
  416. //modal("SPADB61600",0,600,150,"SPADB61600","/root/hidden/receivesickcls","/root/hidden/receiveref");
  417. frmf_modal("SPADB61600", "SPADB61600", null, null, 1, null, 50, 600, 150, null, null, null, "M")
  418. //frmf_open("SPADB61600", "SPMMO50500", null, null, 2, null, null, null, null, null, null, null, "M");
  419. }
  420. /******************************************************************
  421. * Argument :
  422. * Description : 질병분류정보 행추가
  423. ******************************************************************/
  424. function group3_button52_onclick(obj:Button, e:ClickEventInfo)
  425. {
  426. ds_grd_sicklist.addRow();
  427. }
  428. /******************************************************************
  429. * Argument :
  430. * Description : 질병정보 행삭제
  431. ******************************************************************/
  432. function group3_button53_onclick(obj:Button, e:ClickEventInfo)
  433. {
  434. var cRow = ds_grd_sicklist.rowposition;
  435. if( ds_grd_sicklist.getRowType(cRow) == 2 ){
  436. ds_grd_sicklist.deleteRow(cRow);
  437. } else {
  438. grdf_setStatus(grd_sicklist, "D", grdf_getSelectedRows(grd_sicklist));
  439. }
  440. }
  441. /******************************************************************
  442. * Argument :
  443. * Description : 입원 행추가
  444. ******************************************************************/
  445. function group3_button1_onclick(obj:Button, e:ClickEventInfo)
  446. {
  447. ds_grd_prtlin.addRow();
  448. }
  449. /******************************************************************
  450. * Argument :
  451. * Description : 입원 행삭제
  452. ******************************************************************/
  453. function group3_button2_onclick(obj:Button, e:ClickEventInfo)
  454. {
  455. var cRow = ds_grd_prtlin.rowposition;
  456. if( ds_grd_prtlin.getRowType(cRow) == 2 ){
  457. ds_grd_prtlin.deleteRow(cRow);
  458. } else {
  459. grdf_setStatus(grd_prtlin, "D", grdf_getSelectedRows(grd_prtlin));
  460. }
  461. }
  462. /******************************************************************
  463. * Argument :
  464. * Description : 외래 행추가
  465. ******************************************************************/
  466. function group3_button4_onclick(obj:Button, e:ClickEventInfo)
  467. {
  468. ds_grd_prtlout.addRow();
  469. }
  470. /******************************************************************
  471. * Argument :
  472. * Description : 외래 행삭제
  473. ******************************************************************/
  474. function group3_button5_onclick(obj:Button, e:ClickEventInfo)
  475. {
  476. var cRow = ds_grd_prtlout.rowposition;
  477. if( ds_grd_prtlout.getRowType(cRow) == 2 ){
  478. ds_grd_prtlout.deleteRow(cRow);
  479. } else {
  480. grdf_setStatus(grd_prtlout, "D", grdf_getSelectedRows(grd_prtlout));
  481. }
  482. }
  483. /******************************************************************
  484. * Argument :
  485. * Description : 항암프로토콜 전체 저장
  486. ******************************************************************/
  487. function group4_button7_onclick(obj:Button, e:ClickEventInfo)
  488. {
  489. dsf_createDs("ds_send_req_orddeptdata");
  490. grdf_setStatusColumn(this.objects[grd_orddeptlist.binddataset], 'm');
  491. ds_send_req_orddeptdata.copyData(grdf_getGridUpdateData(grd_orddeptlist), true);
  492. dsf_createDs("ds_send_req_sickdata");
  493. grdf_setStatusColumn(this.objects[grd_sicklist.binddataset], 'm');
  494. ds_send_req_sickdata.copyData(grdf_getGridUpdateData(grd_sicklist), true);
  495. dsf_createDs("ds_send_req_prtlindata");
  496. grdf_setStatusColumn(this.objects[grd_prtlin.binddataset], 'm');
  497. ds_send_req_prtlindata.copyData(grdf_getGridUpdateData(grd_prtlin), true);
  498. dsf_createDs("ds_send_req_prtloutdata");
  499. grdf_setStatusColumn(this.objects[grd_prtlout.binddataset], 'm');
  500. ds_send_req_prtloutdata.copyData(grdf_getGridUpdateData(grd_prtlout), true);
  501. // var oParam = {};
  502. // oParam.id = "TXADB00701";
  503. // oParam.service = "pharmacybaseapp.AnticancerProtocol";
  504. // oParam.method = "reqExeAnticancerProtocol";
  505. // oParam.inds = "srchdata=ds_send_srchdata orddeptdata=ds_send_req_orddeptdata sickdata=ds_send_req_sickdata prtlindata=ds_send_req_prtlindata prtloutdata=ds_send_req_prtloutdata";
  506. // oParam.outds = "ds_hidden_ret_item=item";
  507. // oParam.async = false;
  508. // // oParam.callback = "cf_TXADB00701";
  509. //
  510. // tranf_submit(oParam);
  511. var oParam = {};
  512. oParam.id = "TXADB00701";
  513. oParam.service = "pharmacyprotocolapp.AnticancerProtocol";
  514. oParam.method = "reqExeAnticancerProtocol";
  515. oParam.inds = "srchdata=ds_send_srchdata orddeptdata=ds_send_req_orddeptdata sickdata=ds_send_req_sickdata prtlindata=ds_send_req_prtlindata prtloutdata=ds_send_req_prtloutdata";
  516. oParam.outds = "ds_hidden_ret_item=item";
  517. oParam.async = false;
  518. //oParam.callback = "cf_TXADB00701";
  519. tranf_submit(oParam);
  520. // submit("TRADB00701");
  521. var oParam = {};
  522. oParam.id = "TRADB00701";
  523. oParam.service = "pharmacyprotocolapp.AnticancerProtocol";
  524. oParam.method = "reqGetAnticancerProtocolOrdDeptList";
  525. oParam.inds = "req=ds_send_srchdata";
  526. oParam.outds = "ds_main_orddeptlist_item=item";
  527. oParam.async = false;
  528. // oParam.callback = "cf_TRADB00701";
  529. tranf_submit(oParam);
  530. // submit("TRADB00702");
  531. var oParam = {};
  532. oParam.id = "TRADB00702";
  533. oParam.service = "pharmacyprotocolapp.AnticancerProtocol";
  534. oParam.method = "reqGetAnticancerProtocolSickList";
  535. oParam.inds = "req=ds_send_srchdata";
  536. oParam.outds = "ds_grd_sicklist=item";
  537. oParam.async = false;
  538. // oParam.callback = "cf_TRADB00702";
  539. tranf_submit(oParam);
  540. // submit("TRADB00703");
  541. var oParam = {};
  542. oParam.id = "TRADB00703";
  543. oParam.service = "pharmacybaseapp.AnticancerProtocol";
  544. oParam.method = "reqGetAnticancerProtocolListIO";
  545. oParam.inds = "req=ds_send_srchdata";
  546. oParam.outds = "ds_grd_prtlin=itemin ds_grd_prtlout=itemout";
  547. oParam.async = false;
  548. // oParam.callback = "cf_TRADB00703";
  549. tranf_submit(oParam);
  550. }
  551. ]]></Script>
  552. </Form>
  553. </FDL>