SPMMD01800_항생제Prophylaxis.xfdl 12 KB

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