SPMMD02000_항생제Empirical.xfdl 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMMD02000" position="absolute 0 0 350 709" titletext="New Form" oninit="SPMMD02000_oninit" onload="SPMMD02000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption3" text="Classification" class="tit_2" position="absolute 0 0 115 20"/>
  8. <Grid id="grd_lrgno" taborder="1" binddataset="ds_grd_lrgno" useinputpanel="false" position="absolute 0 20 350 309" autofittype="col" oncellclick="grd_lrgno_oncellclick">
  9. <Formats>
  10. <Format id="default">
  11. <Columns>
  12. <Column size="332"/>
  13. <Column size="0"/>
  14. <Column size="0"/>
  15. <Column size="0"/>
  16. </Columns>
  17. <Rows>
  18. <Row size="24" band="head"/>
  19. <Row size="24"/>
  20. </Rows>
  21. <Band id="head">
  22. <Cell text="대분류"/>
  23. <Cell col="1"/>
  24. <Cell col="2"/>
  25. <Cell col="3"/>
  26. </Band>
  27. <Band id="body">
  28. <Cell style="align:left middle;" text="bind:lrgnm"/>
  29. <Cell col="1" text="bind:lrgno"/>
  30. <Cell col="2" text="bind:antibioflag"/>
  31. <Cell col="3" text="bind:refseq"/>
  32. </Band>
  33. </Format>
  34. </Formats>
  35. </Grid>
  36. <Grid id="grd_mdlno" taborder="2" binddataset="ds_grd_mdlno" useinputpanel="false" position="absolute 0 315 350 469" autofittype="col" oncellclick="grd_mdlno_oncellclick">
  37. <Formats>
  38. <Format id="default">
  39. <Columns>
  40. <Column size="332"/>
  41. <Column size="0"/>
  42. <Column size="0"/>
  43. <Column size="0"/>
  44. </Columns>
  45. <Rows>
  46. <Row size="24" band="head"/>
  47. <Row size="24"/>
  48. </Rows>
  49. <Band id="head">
  50. <Cell text="중분류"/>
  51. <Cell col="1"/>
  52. <Cell col="2"/>
  53. <Cell col="3"/>
  54. </Band>
  55. <Band id="body">
  56. <Cell style="align:left middle;" text="bind:mdlnm"/>
  57. <Cell col="1" text="bind:mdlno"/>
  58. <Cell col="2" text="bind:lrgno"/>
  59. <Cell col="3" text="bind:refseq"/>
  60. </Band>
  61. </Format>
  62. </Formats>
  63. </Grid>
  64. <Grid id="grd_smlno" taborder="3" binddataset="ds_grd_smlno" useinputpanel="false" position="absolute 0 475 350 709" autofittype="col" oncellclick="grd_smlno_oncellclick">
  65. <Formats>
  66. <Format id="default">
  67. <Columns>
  68. <Column size="332"/>
  69. <Column size="0"/>
  70. <Column size="0"/>
  71. <Column size="0"/>
  72. </Columns>
  73. <Rows>
  74. <Row size="24" band="head"/>
  75. <Row size="24"/>
  76. </Rows>
  77. <Band id="head">
  78. <Cell text="소분류"/>
  79. <Cell col="1"/>
  80. <Cell col="2"/>
  81. <Cell col="3"/>
  82. </Band>
  83. <Band id="body">
  84. <Cell style="align:left middle;" text="bind:smlnm"/>
  85. <Cell col="1" text="bind:smlno"/>
  86. <Cell col="2" text="bind:mdlno"/>
  87. <Cell col="3" text="bind:refseq"/>
  88. </Band>
  89. </Format>
  90. </Formats>
  91. </Grid>
  92. </Layout>
  93. </Layouts>
  94. <Objects>
  95. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  96. <ColumnInfo>
  97. <Column id="resnflagno" type="STRING" size="256"/>
  98. </ColumnInfo>
  99. <Rows>
  100. <Row>
  101. <Col id="resnflagno">13</Col>
  102. </Row>
  103. </Rows>
  104. </Dataset>
  105. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  106. <ColumnInfo>
  107. <Column id="resnflagno" type="INT" size="256" sumtext="항생제구분번호"/>
  108. <Column id="lrgno" type="STRING" size="256" sumtext="대분류번호"/>
  109. <Column id="mdlno" type="INT" size="256" sumtext="중분류번호"/>
  110. </ColumnInfo>
  111. </Dataset>
  112. <Dataset id="ds_antibiolrgnolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  113. <ColumnInfo>
  114. <Column id="lrgno" type="STRING" size="256" sumtext="대분류번호"/>
  115. <Column id="antibioflag" type="STRING" size="256" sumtext="항생제구분번호"/>
  116. <Column id="lrgnm" type="STRING" size="256" sumtext="대분류명"/>
  117. <Column id="refseq" type="STRING" size="256" sumtext="조회순서"/>
  118. </ColumnInfo>
  119. </Dataset>
  120. <Dataset id="ds_antibiomdlnolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  121. <ColumnInfo>
  122. <Column id="lrgno" type="STRING" size="256" sumtext="대분류번호"/>
  123. <Column id="mdlno" type="STRING" size="256" sumtext="중분류번호"/>
  124. <Column id="mdlnm" type="STRING" size="256" sumtext="중분류명"/>
  125. <Column id="refseq" type="STRING" size="256" sumtext="조회순서"/>
  126. </ColumnInfo>
  127. </Dataset>
  128. <Dataset id="ds_antibiosmlnolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  129. <ColumnInfo>
  130. <Column id="smlno" type="STRING" size="256" sumtext="소분류번호"/>
  131. <Column id="mdlno" type="STRING" size="256" sumtext="중분류번호"/>
  132. <Column id="smlnm" type="STRING" size="256" sumtext="소분류명"/>
  133. <Column id="smlcomment" type="STRING" size="256" sumtext="비고"/>
  134. <Column id="refseq" type="STRING" size="256" sumtext="조회순서"/>
  135. <Column id="drugkind" type="STRING" size="256" sumtext="약품종류코드"/>
  136. </ColumnInfo>
  137. </Dataset>
  138. </Objects>
  139. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  140. * System Name :
  141. * Job Name :
  142. * Creator :
  143. * Make Date : 2014-12-18
  144. * Description :
  145. *---------------------------------------------------------------------------------------
  146. * Modify Date Modifier Modify Description
  147. *---------------------------------------------------------------------------------------
  148. * 2014-12-18 Live Converter TF->XP
  149. *
  150. *---------------------------------------------------------------------------------------
  151. ****************************************************************************************/
  152. include "com_commonxp::comm_main.xjs";
  153. var oOpener;
  154. function SPMMD02000_oninit(obj:Form, e:InitEventInfo)
  155. {
  156. frmf_initForm(obj);
  157. }
  158. function SPMMD02000_onload(obj:Form, e:LoadEventInfo)
  159. {
  160. oOpener = this.getOwnerFrame().form;
  161. oOpener.fInit();
  162. fGetLrgNo();
  163. fGetMdlNo(ds_antibiolrgnolist.rowposition);
  164. fGetSmlNo(ds_antibiomdlnolist.rowposition);
  165. fGetRecommNo(ds_antibiosmlnolist.rowposition);
  166. }
  167. function fGetLrgNo(){
  168. if( !utlf_isNull(ds_hidden.getColumn(0, "resnflagno")) ){
  169. ds_send_reqdata.clearData();
  170. ds_send_reqdata.addRow();
  171. ds_send_reqdata.setColumn(0, "resnflagno", ds_hidden.getColumn(0, "resnflagno"));
  172. //model.makeValue("/root/send/reqdata/lrgno", opener.model.getValue("/root/main/cond/lrgno"));
  173. var oParam = {};
  174. oParam.id = "TRMMD01601";
  175. oParam.service = "prcpmngtapp.AntiBioPrcpMngt";
  176. oParam.method = "reqGetAntiBioLrgNoList";
  177. oParam.inds = "req=ds_send_reqdata";
  178. oParam.outds = "ds_antibiolrgnolist=info";
  179. oParam.async = false;
  180. tranf_submit(oParam);
  181. var lrgSelectedCnt = 0;
  182. for( var idx = 0; idx < ds_antibiolrgnolist.rowcount; idx++ ){
  183. if(oOpener.ds_main_cond.getColumn(0, "lrgno") == ds_antibiolrgnolist.getColumn(idx, "lrgno")) {
  184. lrgSelectedCnt = idx;
  185. break;
  186. }
  187. }
  188. ds_antibiolrgnolist.rowposition = lrgSelectedCnt;
  189. /*
  190. if(grd_lrgno.rows - grd_lrgno.fixedRows > 0){
  191. grd_lrgno.select(1,1) = true;
  192. }
  193. */
  194. }
  195. }
  196. function fGetMdlNo(grdRow){
  197. if(ds_antibiolrgnolist.rowcount > 0){
  198. ds_send_reqdata.clearData();
  199. ds_send_reqdata.addRow();
  200. ds_antibiomdlnolist.clearData();
  201. //opener.javascript.fInit();
  202. // 대분류 파라메터 세팅
  203. /*if(clickyn == 'Y') { // 대분류에서 선택시 클릭된 값 세팅
  204. model.makeValue("/root/send/reqdata/lrgno", model.getValue("/root/main/antibiolrgnolist/info["+ grdRow + "]/lrgno"));
  205. } else {
  206. if(opener.model.getValue("/root/main/cond/lrgno") == "") { // 처음 로드시 1 세팅
  207. model.makeValue("/root/send/reqdata/lrgno", model.getValue("/root/main/antibiolrgnolist/info["+ grdRow + "]/lrgno"));
  208. } else { // 검색시 더블클릭된 값 세팅
  209. model.makeValue("/root/send/reqdata/lrgno", opener.model.getValue("/root/main/cond/lrgno"));
  210. }
  211. }
  212. */
  213. ds_send_reqdata.setColumn(0, "lrgno", ds_antibiolrgnolist.getColumn(grdRow, "lrgno"));
  214. var oParam = {};
  215. oParam.id = "TRMMD01602";
  216. oParam.service = "prcpmngtapp.AntiBioPrcpMngt";
  217. oParam.method = "reqGetAntiBioMdlNoList";
  218. oParam.inds = "req=ds_send_reqdata";
  219. oParam.outds = "ds_antibiomdlnolist=info";
  220. oParam.async = false;
  221. tranf_submit(oParam);
  222. var mdlSelectedCnt = 0;
  223. for( var idx = 0; idx < ds_antibiomdlnolist.rowcount; idx++ ){
  224. if(oOpener.ds_main_cond.getColumn(0, "mdlno") == ds_antibiomdlnolist.getColumn(idx, "mdlno")) {
  225. mdlSelectedCnt = idx;
  226. }
  227. }
  228. ds_antibiomdlnolist.rowposition = mdlSelectedCnt;
  229. }
  230. }
  231. function fGetSmlNo(grdRow){
  232. if(ds_antibiomdlnolist.rowcount > 0){
  233. ds_send_reqdata.clearData();
  234. ds_send_reqdata.addRow();
  235. ds_send_reqdata.setColumn(0, "mdlno", ds_antibiomdlnolist.getColumn(grdRow, "mdlno"));
  236. var oParam = {};
  237. oParam.id = "TRMMD01603";
  238. oParam.service = "prcpmngtapp.AntiBioPrcpMngt";
  239. oParam.method = "reqGetAntiBioSmlNoList";
  240. oParam.inds = "req=ds_send_reqdata";
  241. oParam.outds = "ds_antibiosmlnolist=info";
  242. oParam.async = false;
  243. tranf_submit(oParam);
  244. var smlSelectedCnt = 0;
  245. for( var idx = 0; idx < ds_antibiosmlnolist.rowcount; idx++ ){
  246. if(oOpener.ds_main_cond.getColumn(0, "smlno") == ds_antibiosmlnolist.getColumn(idx, "smlno")) {
  247. smlSelectedCnt = idx;
  248. }
  249. }
  250. ds_antibiosmlnolist.rowposition = smlSelectedCnt;
  251. }
  252. }
  253. function fGetRecommNo(grdRow){
  254. if(ds_antibiosmlnolist.rowcount > 0){
  255. oOpener.fRecommendedList(ds_hidden.getColumn(0, "resnflagno"), ds_antibiosmlnolist.getColumn(grdRow, "smlno"), ds_antibiosmlnolist.getColumn(grdRow, "drugkind"));
  256. }
  257. }
  258. function grd_lrgno_oncellclick(obj:Grid, e:GridClickEventInfo)
  259. {
  260. if( e.row < 0 || e.col < 0 ) return;
  261. oOpener.fInit();
  262. fGetMdlNo(e.row);
  263. fGetSmlNo(0);
  264. fGetRecommNo(0);
  265. }
  266. function grd_mdlno_oncellclick(obj:Grid, e:GridClickEventInfo)
  267. {
  268. if( e.row < 0 || e.col < 0 ) return;
  269. oOpener.fInit();
  270. fGetSmlNo(e.row);
  271. fGetRecommNo(0);
  272. }
  273. function grd_smlno_oncellclick(obj:Grid, e:GridClickEventInfo)
  274. {
  275. if( e.row < 0 || e.col < 0 ) return;
  276. oOpener.fInit();
  277. fGetRecommNo(e.row);
  278. }
  279. ]]></Script>
  280. </Form>
  281. </FDL>