SPPPI00101_삭감대상처방코드조회.xfdl 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml" />
  4. <Form id="SPPPI00101" position="absolute 0 0 1000 700" titletext="삭감대상처방코드 조회" onload="SPPPI00101_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption1" class="tit_2" position="absolute 5 75 333 88" style="" text="삭감 처방코드 내역" />
  8. <Shape id="line7" class="line_1" linetype="horizontal" position="absolute 5 90 465 93" style="" anchor="default" />
  9. <Shape id="line8" class="line_1" linetype="horizontal" position="absolute 510 90 970 93" style="" anchor="default" />
  10. <Button id="btn_init" class="btn4_letter3" position="absolute 900 666 968 688" style="" text="닫 기" onclick="btn_init_onclick" />
  11. <Div id="group1" position="absolute 5 25 970 70" style="">
  12. <Layouts>
  13. <Layout>
  14. <Shape id="roundrect1" anchor="default" type="roundrectangle" position="absolute 0 0 960 40" style="" />
  15. <Button id="button1" class="btn4_letter2" position="absolute 895 10 950 30" style="" text="조회" onclick="group1_button1_onclick" />
  16. <Calendar id="input1" mask="yyyy-mm" position="absolute 110 10 200 29" style="" anchor="default" />
  17. <Static id="caption2" class="search_name" position="absolute 20 10 115 27" style="" text="조회기간 :" />
  18. <Static id="caption3" position="absolute 200 15 230 25" style="" text="~" />
  19. <Calendar id="input2" mask="yyyy-mm" position="absolute 220 10 310 29" style="" anchor="default" />
  20. </Layout>
  21. </Layouts>
  22. </Div>
  23. <Grid id="grd_discutlist" binddataset="ds_main_discut_discutlist" position="absolute 5 95 465 655" style="">
  24. <Formats>
  25. <Format id="default">
  26. <Columns>
  27. <Column size="80" />
  28. <Column size="90" />
  29. <Column size="250" />
  30. </Columns>
  31. <Rows>
  32. <Row size="24" band="head" />
  33. <Row size="24" />
  34. </Rows>
  35. <Band id="head">
  36. <Cell text="청구월" />
  37. <Cell col="1" text="처방코드" />
  38. <Cell col="2" text="처방병" />
  39. </Band>
  40. <Band id="body">
  41. <Cell text="bind:clamym" />
  42. <Cell col="1" text="bind:calcscorcd" />
  43. <Cell col="2" text="bind:hngnm" />
  44. </Band>
  45. </Format>
  46. </Formats>
  47. </Grid>
  48. <Grid id="grd_cutbflist" binddataset="ds_main_discut_cutbflist" position="absolute 510 95 970 655" style="">
  49. <Formats>
  50. <Format id="default">
  51. <Columns>
  52. <Column size="90" />
  53. <Column size="200" />
  54. <Column size="80" />
  55. <Column size="80" />
  56. <Column size="100" />
  57. </Columns>
  58. <Rows>
  59. <Row size="24" band="head" />
  60. <Row size="24" />
  61. </Rows>
  62. <Band id="head">
  63. <Cell text="처방코드" />
  64. <Cell col="1" text="처방명" />
  65. <Cell col="2" text="시작일자" />
  66. <Cell col="3" text="종료일자" />
  67. <Cell col="4" text="제어코드" />
  68. </Band>
  69. <Band id="body">
  70. <Cell text="bind:calcscorcd" />
  71. <Cell col="1" text="bind:hngnm" />
  72. <Cell col="2" text="bind:fromdd" />
  73. <Cell col="3" text="bind:todd" />
  74. <Cell col="4" text="bind:rulecd" />
  75. </Band>
  76. </Format>
  77. </Formats>
  78. </Grid>
  79. <Button id="button2" class="icon_left" position="absolute 475 350 501 369" style="" text="" onclick="button2_onclick" />
  80. <Button id="button3" class="icon_right" position="absolute 475 315 501 334" style="" text="" onclick="button3_onclick" />
  81. <Button id="button4" class="btn4_letter3" position="absolute 825 666 893 688" style="" text="저장" onclick="button4_onclick" />
  82. <Static id="caption4" class="tit_2" position="absolute 512 75 657 88" style="" text="제어 처방코드 내역" />
  83. <Static id="caption5" class="tit_1" position="absolute 10 5 110 25" style="" text="삭감대상처방조회" />
  84. </Layout>
  85. </Layouts>
  86. <Objects>
  87. <Dataset id="ds_main_discut" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  88. <ColumnInfo>
  89. <Column id="discutlist" type="STRING" size="256" />
  90. <Column id="cutbflist" type="STRING" size="256" />
  91. </ColumnInfo>
  92. </Dataset>
  93. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  94. <ColumnInfo>
  95. <Column id="fromdd" type="STRING" size="256" />
  96. <Column id="todd" type="STRING" size="256" />
  97. </ColumnInfo>
  98. <Rows>
  99. <Row>
  100. <Col id="fromdd"></Col>
  101. <Col id="todd"></Col>
  102. </Row>
  103. </Rows>
  104. </Dataset>
  105. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  106. <ColumnInfo />
  107. </Dataset>
  108. </Objects>
  109. <Bind>
  110. <BindItem id="item0" compid="group1.input1" propid="value" datasetid="ds_send" columnid="fromdd" />
  111. <BindItem id="item1" compid="group1.input2" propid="value" datasetid="ds_send" columnid="todd" />
  112. </Bind>
  113. <Script type="xscript4.0"><![CDATA[function SPPPI00101_onload(obj:Form, e:LoadEventInfo) {
  114. frmf_initForm(obj);
  115. //grdf_initGrid(grd_XXX);
  116. //grdf_setGridSort(grd_XXX);
  117. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  118. var today = utlf_getCurrentDate();
  119. var fromdd = (today.toDate().getAddDate(-1, "Y")).getAddDate(1, "M").getDateFormat("YYYYMM");
  120. var todd = today.toDate().getDateFormat("YYYYMM");
  121. ds_send.setColumn( 0, "todd", todd);
  122. ds_send.setColumn( 0, "fromdd", fromdd);
  123. //model.refresh();
  124. }
  125. include '../../.._com_commonweb_js_common.js'
  126. include '../../.._emr_prcpmngtweb_js_MMO001.js'
  127. include '../../.._com_basiccodeweb_js_ZBC001.js'
  128. include '../../.._com_commonweb_js_stringHelper.js'
  129. include '../../.._com_commonweb_js_tfHelper.js'
  130. include '../../.._com_commonweb_js_dateHelper.js'
  131. // 화면 open, 저장시 초기화 기능을 수행한다.
  132. function fClose() {
  133. window.close();
  134. }
  135. function btn_init_onclick(obj:Button, e:ClickEventInfo) {
  136. }
  137. function group1_button1_onclick(obj:Button, e:ClickEventInfo) {
  138. // submit("TRPPI00801");
  139. var oParam = {};
  140. oParam.id = "TRPPI00801";
  141. oParam.service = "bfjudgcareapp.BfJudgCareMngt";
  142. oParam.method = "reqGetDiscutBfInfo";
  143. oParam.inds = "req=ds_";
  144. oParam.outds = "ds_=discutlist ds_=cutbflist";
  145. oParam.async = false;
  146. oParam.callback = "cf_TRPPI00801";
  147. tranf_submit(oParam);
  148. /*
  149. function cf_TRPPI00801(sSvcId, nErrorCode, sErrorMsg) {
  150. if(nErrorCode < 0) return;
  151. }
  152. function cf_TRPPI00801(sSvcId, nErrorCode, sErrorMsg) {
  153. arErrorCode.push(sSvcId, nErrorCode);
  154. }
  155. arErrorCode.pop("TRPPI00801") > -1
  156. arErrorCode.pop("TRPPI00801") < 0
  157. */
  158. }
  159. function button2_onclick(obj:Button, e:ClickEventInfo) {
  160. var row = grd_cutbflist.selectedRows;
  161. if ( row > 0 ) {
  162. vrow = new Array(row);
  163. for ( i=0; i<row; i++) {
  164. var srow = grd_cutbflist.selectedRow(i);
  165. if ( grd_cutbflist.valueMatrix(srow, grd_cutbflist.colRef("rulecd")) != "" ) {
  166. grd_cutbflist.rowStatus(srow) = 4;
  167. grd_cutbflist.valueMatrix(srow, grd_cutbflist.colRef("todd")) = utlf_getCurrentDate();
  168. } else if ( grd_cutbflist.valueMatrix(srow, grd_cutbflist.colRef("rulecd")) == "" ) {
  169. vrow[i] = srow;
  170. }
  171. }
  172. alert(vrow[0]);
  173. if ( vrow.length > 0 && vrow[0] != "" && vrow[0] != null) {
  174. for ( j=0; j<vrow.length; j++) {
  175. grd_cutbflist.deleteRow(vrow[j] - j, false);
  176. }
  177. }
  178. }
  179. //grd_cutbflist.refresh();
  180. }
  181. function button3_onclick(obj:Button, e:ClickEventInfo) {
  182. var row = grd_discutlist.selectedRows;
  183. vrow = new Array(row-1);
  184. if ( row > 0 ) {
  185. for( i = 0; i < row; i++) {
  186. grd_cutbflist.addRow(false);
  187. var srow = grd_discutlist.selectedRow(i);
  188. var arow = grd_cutbflist.rows-1;
  189. var calcscorcd = grd_discutlist.valueMatrix(srow, grd_discutlist.colRef("calcscorcd"));
  190. var hngnm = grd_discutlist.valueMatrix(srow, grd_discutlist.colRef("hngnm"));
  191. grd_cutbflist.valueMatrix(arow, grd_cutbflist.colRef("calcscorcd")) = calcscorcd;
  192. grd_cutbflist.valueMatrix(arow, grd_cutbflist.colRef("hngnm")) = hngnm;
  193. grd_cutbflist.valueMatrix(arow, grd_cutbflist.colRef("fromdd")) = utlf_getCurrentDate();
  194. grd_cutbflist.valueMatrix(arow, grd_cutbflist.colRef("todd")) = "99991231";
  195. grd_cutbflist.gridToInstance();
  196. vrow[i] = srow;
  197. }
  198. //alert(vrow);
  199. for( j=0; j < vrow.length; j++) {
  200. grd_discutlist.deleteRow(vrow[j] - j, false);
  201. }
  202. //grd_discutlist.refresh();
  203. //grd_cutbflist.refresh();
  204. }
  205. }
  206. function button4_onclick(obj:Button, e:ClickEventInfo) {
  207. dsf_makeValue( ds_send_savedata_cutbf, "cutbflist", "string", "" );
  208. var update = getGridUpdateData(grd_cutbflist);
  209. ds_send_savedata_cutbf.setColumn( 0, "cutbflist", update);
  210. // submit("TXPPI00801");
  211. var oParam = {};
  212. oParam.id = "TXPPI00701";
  213. oParam.service = "bfjudgcareapp.BfJudgCareMngt";
  214. oParam.method = "reqSetCutBfList";
  215. oParam.inds = "req=ds_";
  216. oParam.outds = "ds_=item";
  217. oParam.async = false;
  218. oParam.callback = "cf_TXPPI00701";
  219. tranf_submit(oParam);
  220. /*
  221. function cf_TXPPI00701(sSvcId, nErrorCode, sErrorMsg) {
  222. if(nErrorCode < 0) return;
  223. }
  224. function cf_TXPPI00701(sSvcId, nErrorCode, sErrorMsg) {
  225. arErrorCode.push(sSvcId, nErrorCode);
  226. }
  227. arErrorCode.pop("TXPPI00701") > -1
  228. arErrorCode.pop("TXPPI00701") < 0
  229. */
  230. }
  231. ]]></Script>
  232. </Form>
  233. </FDL>