SPADB61600_상병분류관리.xfdl 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPADB61600" position="absolute 0 0 913 432" titletext="Untitle" onload="SPADB61600_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static text="질병분류관리" position="absolute 0 0 106 25" id="caption19" class="tit_1"/>
  8. <Static text="질병분류" position="absolute 0 32 75 48" id="caption5" class="tit_2"/>
  9. <Shape position="absolute 0 47 470 53" linetype="horizontal" id="line4" class="line_1"/>
  10. <Static text="질병정보" position="absolute 475 32 550 50" id="caption1" class="tit_2"/>
  11. <Shape position="absolute 475 47 910 53" linetype="horizontal" id="line1" class="line_1" anchor="left top right"/>
  12. <Button position="absolute 855 52 908 74" id="button5" class="btn2" text="행삭제" onclick="button5_onclick" anchor="top right"/>
  13. <Button position="absolute 745 52 798 74" id="button6" class="btn2" text="행추가" onclick="button6_onclick" anchor="top right"/>
  14. <Button position="absolute 800 52 853 74" id="button7" class="btn2" text="행복사" anchor="top right"/>
  15. <Button position="absolute 675 52 739 74" id="button8" class="btn2" text="질병정보" onclick="button8_onclick" anchor="top right"/>
  16. <Button position="absolute 295 52 359 74" id="btn_grdadd" class="btn2" text="하위추가" onclick="btn_grdadd_onclick"/>
  17. <Button position="absolute 360 52 413 74" id="btn_grdcoopy" class="btn2" text="행복사"/>
  18. <Button position="absolute 415 52 468 74" id="btn_grddel" class="btn2" text="행삭제" onclick="btn_grddel_onclick"/>
  19. <Button position="absolute 855 408 911 430" id="btn_save" class="btn4" text="저장" onclick="btn_save_onclick" anchor="right bottom"/>
  20. <Button position="absolute 413 408 469 430" id="btn_cfm" class="btn4" text="확인" onclick="btn_cfm_onclick"/>
  21. <Button position="absolute 476 408 532 430" id="btn_can" class="btn4" visible="false" text="취소"/>
  22. <Grid position="absolute 0 75 470 405" id="grd_sickclslist" binddataset="ds_grd_sickclslist" autofittype="col" treeuseimage="false" oncellclick="grd_sickclslist_oncellclick" treeusebutton="use" treeusecheckbox="false" treeuseexpandkey="false" treeinitstatus="expand,null" cellsizingtype="col" style="align:left middle;" oncelldblclick="grd_sickclslist_oncelldblclick" anchor="left bottom">
  23. <Formats>
  24. <Format id="default">
  25. <Columns>
  26. <Column size="24"/>
  27. <Column size="109"/>
  28. <Column size="87"/>
  29. <Column size="250"/>
  30. <Column size="33"/>
  31. </Columns>
  32. <Rows>
  33. <Row size="24" band="head"/>
  34. <Row size="24"/>
  35. </Rows>
  36. <Band id="head">
  37. <Cell/>
  38. <Cell col="1" displaytype="normal" text="대표코드"/>
  39. <Cell col="2" text="분류코드"/>
  40. <Cell col="3" text="명칭"/>
  41. <Cell col="4" text="레벨"/>
  42. </Band>
  43. <Band id="body">
  44. <Cell celltype="head"/>
  45. <Cell col="1" displaytype="tree" style="align:left middle;padding:0 -3 0 0;" text="bind:sickclsreprcd" treelevel="bind:sickclslevl"/>
  46. <Cell col="2" displaytype="text" edittype="text" text="bind:sickclscd"/>
  47. <Cell col="3" displaytype="text" edittype="text" text="bind:sickclsnm"/>
  48. <Cell col="4" text="bind:sickclslevl"/>
  49. </Band>
  50. </Format>
  51. </Formats>
  52. </Grid>
  53. <Grid position="absolute 475 75 910 405" id="grd_sickclsdetaillist" binddataset="ds_grd_sickclsdetaillist" autofittype="col" anchor="all">
  54. <Formats>
  55. <Format id="default">
  56. <Columns>
  57. <Column size="22"/>
  58. <Column size="65"/>
  59. <Column size="221"/>
  60. <Column size="100"/>
  61. </Columns>
  62. <Rows>
  63. <Row size="24" band="head"/>
  64. <Row size="24"/>
  65. </Rows>
  66. <Band id="head">
  67. <Cell/>
  68. <Cell col="1" text="코드"/>
  69. <Cell col="2" text="영문명"/>
  70. <Cell col="3" text="한글명"/>
  71. </Band>
  72. <Band id="body">
  73. <Cell celltype="head"/>
  74. <Cell col="1" displaytype="text" edittype="text" text="bind:icd10cd"/>
  75. <Cell col="2" displaytype="text" edittype="text" text="bind:icd10engnm"/>
  76. <Cell col="3" displaytype="text" edittype="text" text="bind:icd10hngnm"/>
  77. </Band>
  78. </Format>
  79. </Formats>
  80. </Grid>
  81. <Button position="absolute 230 52 294 74" id="button1" class="btn2" text="상위추가" onclick="button1_onclick"/>
  82. </Layout>
  83. </Layouts>
  84. <Objects>
  85. <Dataset id="ds_grd_sickclslist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  86. <ColumnInfo>
  87. <Column id="sickclsreprcd" type="STRING"/>
  88. <Column id="sickclscd" type="STRING"/>
  89. <Column id="sickclsnm" type="STRING"/>
  90. <Column id="sickclslevl" type="STRING"/>
  91. </ColumnInfo>
  92. </Dataset>
  93. <Dataset id="ds_grd_sickclsdetaillist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  94. <ColumnInfo>
  95. <Column id="icd10cd" type="STRING"/>
  96. <Column id="icd10engnm" type="STRING"/>
  97. <Column id="icd10hngnm" type="STRING"/>
  98. </ColumnInfo>
  99. </Dataset>
  100. <Dataset id="ds_send_srchdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  101. <ColumnInfo>
  102. <Column id="sickclsflag" type="STRING" size="256"/>
  103. <Column id="sickclscd" type="STRING" size="256"/>
  104. <Column id="sickclsreprcd" type="STRING" size="256"/>
  105. </ColumnInfo>
  106. <Rows>
  107. <Row>
  108. <Col id="sickclsflag">C</Col>
  109. </Row>
  110. </Rows>
  111. </Dataset>
  112. <Dataset id="ds_hidden_ret_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  113. <ColumnInfo>
  114. <Column id="count" type="STRING" size="256"/>
  115. </ColumnInfo>
  116. </Dataset>
  117. </Objects>
  118. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  119. * System Name :
  120. * Job Name :
  121. * Creator :
  122. * Make Date : 2015-06-09
  123. * Description :
  124. *---------------------------------------------------------------------------------------
  125. * Modify Date Modifier Modify Description
  126. *---------------------------------------------------------------------------------------
  127. * 2015-06-09 Live Converter TF->XP
  128. *
  129. *---------------------------------------------------------------------------------------
  130. ****************************************************************************************/
  131. //=======================================================================================
  132. // Lib Include
  133. //---------------------------------------------------------------------------------------
  134. include "com_commonxp::comm_main.xjs"
  135. include "ast_commonxp::AST.xjs"
  136. /****************************************************
  137. * 질병분류 List 호출
  138. *****************************************************/
  139. function SPADB61600_onload(obj:Form, e:LoadEventInfo)
  140. {
  141. grdf_setRowTypeIcon(grd_sickclslist, 0);
  142. grdf_setRowTypeIcon(grd_sickclsdetaillist, 0);
  143. //submit("TRADB61601");
  144. frmf_initForm(obj);
  145. var oParam = {};
  146. oParam.id = "TRADB61601";
  147. oParam.service = "pharmacybaseapp.AnticancerProtocol";
  148. oParam.method = "reqGetSickCls";
  149. oParam.inds = "srchdata=ds_send_srchdata";
  150. oParam.outds = "ds_grd_sickclslist=item";
  151. oParam.async = false;
  152. //oParam.callback = "cf_TRADB61601";
  153. tranf_submit(oParam);
  154. //setTree(grd_sickclslist, grd_sickclslist.colRef("sickclslevl"),grd_sickclslist.colRef("sickclsreprcd"), false );
  155. }
  156. // 질병분류 상위추가
  157. function button1_onclick(obj:Button, e:ClickEventInfo)
  158. {
  159. //grd_sickclslist.addItem(grd_sickclslist.row);
  160. var addRow = ds_grd_sickclslist.addRow();
  161. //model.setValue( "/root/main/sickclslist/item["+grd_sickclslist.row+"]/sickclscd","00000");
  162. ds_grd_sickclslist.setColumn(addRow, "sickclscd", "00000");
  163. //model.setValue( "/root/main/sickclslist/item["+grd_sickclslist.row+"]/sickclslevl","1");
  164. ds_grd_sickclslist.setColumn(addRow, "sickclslevl", "1");
  165. }
  166. // 질병분류 하위추가
  167. function btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
  168. {
  169. var row = ds_grd_sickclslist.rowposition;
  170. if ( row > 0 ) {
  171. var nRow = (ds_grd_sickclslist.rowposition)+1;
  172. var sickclsreprcd = ds_grd_sickclslist.getColumn(ds_grd_sickclslist.rowposition,"sickclsreprcd");
  173. var insertRow = ds_grd_sickclslist.insertRow(nRow);
  174. ds_grd_sickclslist.setColumn(insertRow,"sickclsreprcd", sickclsreprcd);
  175. ds_grd_sickclslist.setColumn(insertRow, "sickclslevl", "2");
  176. } else {
  177. sysf_messageBox("행이 정확히 선택되지", "E007");
  178. }
  179. }
  180. function grd_sickclslist_oncellclick(obj:Grid, e:GridClickEventInfo)
  181. {
  182. //model.setValue("/root/send/srchdata/sickclscd", model.getValue("/root/main/sickclslist/item["+grd_sickclslist.row+"]/sickclscd"));
  183. ds_send_srchdata.setColumn(0, "sickclscd", ds_grd_sickclslist.getColumn(obj.currentrow,"sickclscd"));
  184. //model.setValue("/root/send/srchdata/sickclsreprcd", model.getValue("/root/main/sickclslist/item["+grd_sickclslist.row+"]/sickclsreprcd"));
  185. ds_send_srchdata.setColumn(0,"sickclsreprcd",ds_grd_sickclslist.getColumn(obj.currentrow,"sickclsreprcd"));
  186. //dsf_createDs("tmp_TRADB61602");
  187. //tmp_TRADB61602.assign(ds_grd_sickclslist);
  188. //submit("TRADB61602");
  189. var oParam = {};
  190. oParam.id = "TRADB61602";
  191. oParam.service = "pharmacyprotocolapp.AnticancerProtocol";
  192. oParam.method = "reqGetSickClsDetail";
  193. oParam.inds = "srchdata=ds_send_srchdata";
  194. oParam.outds = "ds_grd_sickclsdetaillist=item";
  195. oParam.async = false;
  196. //oParam.callback = "cf_TRADB61602";
  197. tranf_submit(oParam);
  198. }
  199. function grd_sickclslist_oncelldblclick(obj:Grid, e:GridClickEventInfo)
  200. {
  201. if ( frmf_checkOpener() ) {
  202. //if (model.getValue( "/root/main/sickclslist/item["+grd_sickclslist.row+"]/sickclscd") =="") {
  203. if (ds_grd_sickclslist.getColumn( ds_grd_sickclslist.getColumn(ds_grd_sickclslist.rowposition,"sickclsreprcd") == "")) {
  204. return;
  205. }
  206. //opener.javascript.fSetComCode(model.getValue( "/root/main/grid/item["+grd_com.row+"]/comcd"),model.getValue( "/root/main/grid/item["+grd_com.row+"]/comnm"));
  207. astfInsertGridData(ds_grd_sickclslist, opener.grd_sicklist, "1", "", "", "sickclscd,sickclsnm");
  208. //opener.model.refresh();
  209. //window.close();
  210. } else {
  211. alert("상위화면이 변경되어 데이터를 전달할 수 없습니다.");
  212. }
  213. }
  214. //질병분류 행삭제
  215. function btn_grddel_onclick(obj:Button, e:ClickEventInfo)
  216. {
  217. //grd_sickclslist.addStatus(grd_sickclslist.row,"delete");
  218. grdf_setStatus(grd_sickclslist, "D", grdf_getSelectedRows(grd_sickclslist));
  219. }
  220. // 확인
  221. function btn_cfm_onclick(obj:Button, e:ClickEventInfo)
  222. {
  223. if ( frmf_checkOpener() ) {
  224. var row = ds_grd_sickclslist.rowposition;
  225. var vSickclscd = ds_grd_sickclslist.getColumn(ds_grd_sickclslist.rowposition,"sickclscd");
  226. var vSickclsnm = ds_grd_sickclslist.getColumn(ds_grd_sickclslist.rowposition,"sickclsnm");
  227. var findRow = opener.ds_grd_sicklist.findRow("sickclscd",vSickclscd);
  228. if ( row > 0 && findRow < 0) {
  229. var addRow = opener.ds_grd_sicklist.addRow();
  230. opener.ds_grd_sicklist.setColumn(addRow, "sickclscd", vSickclscd);
  231. opener.ds_grd_sicklist.setColumn(addRow, "sickclsnm", vSickclsnm);
  232. this.close();
  233. } else {
  234. sysf_messageBox("중복 또는 행이 정확히 선택되지", "E007");
  235. }
  236. } else {
  237. alert("상위화면이 변경되어 데이터를 전달할 수 없습니다.");
  238. }
  239. }
  240. //질병정보
  241. function button8_onclick(obj:Button, e:ClickEventInfo)
  242. {
  243. //modal("SPADB61700",0,600,150,"SPADB61700","/root/hidden/receivesickcls","/root/hidden/receiveref");
  244. frmf_modal("SPADB61700", "SPADB61700", null, null, 1, null, 50, 600, 150, "resize=true", null, null, "M")
  245. }
  246. //질병정보 행추가
  247. function button6_onclick(obj:Button, e:ClickEventInfo)
  248. {
  249. ds_grd_sickclsdetaillist.addRow();
  250. }
  251. //질병정보 행삭제
  252. function button5_onclick(obj:Button, e:ClickEventInfo)
  253. {
  254. grdf_setStatus(grd_sickclsdetaillist, "D", grdf_getSelectedRows(grd_sickclsdetaillist));
  255. }
  256. //질병정보 저장
  257. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  258. {
  259. //model.setValue("/root/send/req/sickclsdata", grd_sickclslist.getUpdateData());
  260. //model.setValue("/root/send/req/sickclsdetaildata", grd_sickclsdetaillist.getUpdateData());
  261. // dsf_createDs("ds_grd_sickclslist");
  262. grdf_setStatusColumn(this.objects[grd_sickclslist.binddataset], 'm');
  263. ds_grd_sickclslist.copyData(grdf_getGridUpdateData(grd_sickclslist), true);
  264. // dsf_createDs("ds_grd_sickclsdetaillist");
  265. grdf_setStatusColumn(this.objects[grd_sickclsdetaillist.binddataset], 'm');
  266. ds_grd_sickclsdetaillist.copyData(grdf_getGridUpdateData(grd_sickclsdetaillist), true);
  267. //submit("TXADB61601");
  268. var oParam = {};
  269. oParam.id = "TXADB61601";
  270. oParam.service = "pharmacyprotocolapp.AnticancerProtocol";
  271. oParam.method = "reqExeSickCls";
  272. oParam.inds = "srchdata=ds_send_srchdata sickclsdata=ds_grd_sickclslist sickclsdetaildata=ds_grd_sickclsdetaillist";
  273. oParam.outds = "ds_hidden_ret_item=item";
  274. oParam.async = false;
  275. //oParam.callback = "cf_TXADB61601";
  276. tranf_submit(oParam);
  277. //submit("TRADB61601");
  278. var oParam = {};
  279. oParam.id = "TRADB61601";
  280. oParam.service = "pharmacyprotocolapp.AnticancerProtocol";
  281. oParam.method = "reqGetSickCls";
  282. oParam.inds = "srchdata=ds_send_srchdata";
  283. oParam.outds = "ds_grd_sickclslist=item";
  284. oParam.async = false;
  285. oParam.callback = "cf_TRADB61601";
  286. tranf_submit(oParam);
  287. //submit("TRADB61602");
  288. var oParam = {};
  289. oParam.id = "TRADB61602";
  290. oParam.service = "pharmacyprotocolapp.AnticancerProtocol";
  291. oParam.method = "reqGetSickClsDetail";
  292. oParam.inds = "srchdata=ds_send_srchdata";
  293. oParam.outds = "ds_grd_sickclsdetaillist=item";
  294. oParam.async = false;
  295. //oParam.callback = "cf_TRADB61602";
  296. tranf_submit(oParam);
  297. }
  298. function cf_TRADB61601(sSvcId, nErrorCode, sErrorMsg) {
  299. if(nErrorCode < 0) return;
  300. ds_grd_sickclslist.rowposition = -1;
  301. }
  302. ]]></Script>
  303. </Form>
  304. </FDL>