SPMMD08700_제한항생제등록.xfdl 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.4">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMMD08700" position="absolute 0 0 865 520" titletext="제한항생제 등록" oninit="SPMMD08700_oninit" onload="SPMMD08700_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption10" text="제한항생제 등록" class="tit_2" position="absolute 0 72 139 92"/>
  8. <Button id="btn_excel" taborder="1" text="엑셀" class="btn7" position="absolute 811 69 865 88" anchor="top right" onclick="btn_excel_onclick"/>
  9. <Grid id="grd_limantibioapplist" taborder="2" binddataset="ds_limantibiodruglist" position="absolute 0 90 865 493" anchor="all" autofittype="col" autoenter="select" onenterdown="grd_limantibioapplist_onenterdown" cellsizingtype="col" cellclickbound="cell" autoupdatetype="dateselect" oncloseup="grd_limantibioapplist_oncloseup">
  10. <Formats>
  11. <Format id="default">
  12. <Columns>
  13. <Column size="22"/>
  14. <Column size="60"/>
  15. <Column size="107"/>
  16. <Column size="385"/>
  17. <Column size="71"/>
  18. <Column size="100"/>
  19. <Column size="100"/>
  20. </Columns>
  21. <Rows>
  22. <Row size="24" band="head"/>
  23. <Row size="24"/>
  24. </Rows>
  25. <Band id="head">
  26. <Cell/>
  27. <Cell col="1" text="승인필요"/>
  28. <Cell col="2" text="처방코드"/>
  29. <Cell col="3" text="처방명"/>
  30. <Cell col="4" text="차수"/>
  31. <Cell col="5" text="시작일자"/>
  32. <Cell col="6" text="종료일자"/>
  33. </Band>
  34. <Band id="body">
  35. <Cell celltype="head"/>
  36. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:chkflag" expr="expr:(chkflag == &quot;Y&quot; || chkflag == 1) ? 1 : 0"/>
  37. <Cell col="2" style="align:left middle;" text="bind:prcpcd"/>
  38. <Cell col="3" style="align:left middle;" text="bind:prcpnm"/>
  39. <Cell col="4" displaytype="text" edittype="text" text="bind:dgflag" editautoselect="true" editacceptsenter="false"/>
  40. <Cell col="5" displaytype="date" edittype="date" text="bind:valifromdd" editautoselect="true"/>
  41. <Cell col="6" displaytype="date" edittype="date" text="bind:valitodd" editautoselect="true"/>
  42. </Band>
  43. </Format>
  44. </Formats>
  45. </Grid>
  46. <Static id="caption6" text="제한항생제 등록" class="tit_1" position="absolute 0 0 168 25"/>
  47. <Button id="button1" taborder="3" text="저장" class="btn4" onclick="button1_onclick" anchor="right bottom" position="absolute 810 499 865 520" positiontype="position"/>
  48. <Div id="Div00" anchor="left top right" taborder="4" class="div_SA" position="absolute 0 25 865 65" scrollbars="none">
  49. <Layouts>
  50. <Layout>
  51. <Static id="caption2" text="처방코드 :" class="search_name" position="absolute 10 11 89 31"/>
  52. <Edit id="input5" taborder="4" position="absolute 105 11 270 31" autoselect="true" onkeydown="Div00_input5_onkeydown" inputmode="upper"/>
  53. <Static id="caption13" text="처방명:" class="search_name" position="absolute 375 11 438 31"/>
  54. <Edit id="input6" taborder="5" position="absolute 452 11 617 31" autoselect="true" onkeydown="Div00_input6_onkeydown"/>
  55. <Shape id="line20" linetype="vertical" class="line_4" position="absolute 777 10 783 33" anchor="top right"/>
  56. <Button id="btn_search" taborder="6" text="조회" class="btn1" position="absolute 796 11 852 31" anchor="top right" onclick="Div00_btn_search_onclick"/>
  57. </Layout>
  58. </Layouts>
  59. </Div>
  60. </Layout>
  61. </Layouts>
  62. <Objects>
  63. <Dataset id="ds_limantibiodruglist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false" oncolumnchanged="ds_limantibiodruglist_oncolumnchanged">
  64. <ColumnInfo>
  65. <Column id="chkflag" type="STRING" size="256" sumtext="체크여부"/>
  66. <Column id="prcpnm" type="STRING" size="256" sumtext="처방명"/>
  67. <Column id="prcpcd" type="STRING" size="256" sumtext="처방코드"/>
  68. <Column id="dgflag" type="STRING" size="256" sumtext="차수구분"/>
  69. <Column id="valifromdd" type="STRING" size="256" sumtext="유효시작일자"/>
  70. <Column id="valitodd" type="STRING" size="256" sumtext="유효종료일자"/>
  71. </ColumnInfo>
  72. </Dataset>
  73. <Dataset id="ds_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  74. <ColumnInfo>
  75. <Column id="prcpcd" type="STRING" size="256" sumtext="처방코드"/>
  76. <Column id="prcpnm" type="STRING" size="256" sumtext="처방명"/>
  77. </ColumnInfo>
  78. <Rows>
  79. <Row/>
  80. </Rows>
  81. </Dataset>
  82. <Dataset id="ds_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  83. </Objects>
  84. <Bind>
  85. <BindItem id="item0" compid="Div00.input5" propid="value" datasetid="ds_cond" columnid="prcpcd"/>
  86. <BindItem id="item1" compid="Div00.input6" propid="value" datasetid="ds_cond" columnid="prcpnm"/>
  87. </Bind>
  88. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  89. * System Name :
  90. * Job Name :
  91. * Creator :
  92. * Make Date : 2014-12-18
  93. * Description :
  94. *---------------------------------------------------------------------------------------
  95. * Modify Date Modifier Modify Description
  96. *---------------------------------------------------------------------------------------
  97. * 2014-12-18 Live Converter TF->XP
  98. *
  99. *---------------------------------------------------------------------------------------
  100. ****************************************************************************************/
  101. include "com_commonxp::comm_main.xjs";
  102. include "emr_prcpmngtxp::MMO001.xjs";
  103. function SPMMD08700_oninit(obj:Form, e:InitEventInfo)
  104. {
  105. frmf_initForm(obj);
  106. }
  107. function SPMMD08700_onload(obj:Form, e:LoadEventInfo)
  108. {
  109. grdf_setRowTypeIcon(grd_limantibioapplist, 0);
  110. var sUserId = sysf_getUserInfo ( "userid" );
  111. if(lf_ContainsHardCD("286", sUserId)) {
  112. button1.enable = true;
  113. } else {
  114. button1.enable = false;
  115. }
  116. Div00.btn_search.onclick.fireEvent(Div00.btn_search, new ClickEventInfo());
  117. }
  118. function Div00_input5_onkeydown(obj:Edit, e:KeyEventInfo)
  119. {
  120. if(e.keycode == 13) {
  121. obj.updateToDataset();
  122. Div00.btn_search.onclick.fireEvent(Div00.btn_search, new ClickEventInfo());
  123. }
  124. }
  125. function Div00_input6_onkeydown(obj:Edit, e:KeyEventInfo)
  126. {
  127. if(e.keycode == 13) {
  128. obj.updateToDataset();
  129. Div00.btn_search.onclick.fireEvent(Div00.btn_search, new ClickEventInfo());
  130. }
  131. }
  132. function Div00_btn_search_onclick(obj:Button, e:ClickEventInfo)
  133. {
  134. var oParam = {};
  135. oParam.id = "TRMMD08701";
  136. oParam.service = "prcpmngtapp.LimAntibioMngt";
  137. oParam.method = "reqGetLimAntibioMasterPrcpList";
  138. oParam.inds = "req=ds_cond";
  139. oParam.outds = "ds_limantibiodruglist=limantibiodruglist";
  140. oParam.async = true;
  141. tranf_submit(oParam);
  142. }
  143. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  144. {
  145. grdf_exportExcel(grd_limantibioapplist, "제한항생제등록내역", "SheetName");
  146. }
  147. function button1_onclick(obj:Button, e:ClickEventInfo)
  148. {
  149. var oDsUpdate = grdf_getGridUpdateData(grd_limantibioapplist);
  150. grdf_setStatusColumn(oDsUpdate, "m");
  151. ds_savedata.copyData(oDsUpdate, true);
  152. var oParam = {};
  153. oParam.id = "TXMMD08701";
  154. oParam.service = "prcpmngtapp.LimAntibioMngt";
  155. oParam.method = "reqExeLimAntibiomasterPrcpCd";
  156. oParam.inds = "savedata=ds_savedata";
  157. oParam.outds = "ds_limantibiodruglist=limantibiodruglist";
  158. oParam.async = false;
  159. tranf_submit(oParam);
  160. }
  161. function ds_limantibiodruglist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  162. {
  163. if(e.columnid == "chkflag") {
  164. obj.setColumn(e.row, e.columnid, (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  165. if(e.newvalue == "Y" || e.newvalue == 1) {
  166. obj.setColumn(e.row, "valitodd", "99991231");
  167. } else {
  168. obj.setColumn(e.row, "valitodd", utlf_getCurrentDate() - 1);
  169. }
  170. }
  171. }
  172. function grd_limantibioapplist_onenterdown(obj:Grid, e:GridEditEventInfo)
  173. {
  174. obj.showEditor(false);
  175. }
  176. function grd_limantibioapplist_oncloseup(obj:Grid, e:GridEditEventInfo)
  177. {
  178. obj.showEditor(false);
  179. }
  180. ]]></Script>
  181. </Form>
  182. </FDL>