SPMMO16300_진단없는처방진단덤프.xfdl 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMMO16300" position="absolute 0 0 1256 805" titletext="진단없는 처방 진단 덤프" oninit="SPMMO16300_oninit" onload="SPMMO16300_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static text="처방기준 진단덤프" position="absolute 0 5 147 27" id="caption18" class="tit_2"/>
  8. <Button position="absolute 355 3 397 22" id="button37" class="btn2" text="조회" onclick="button37_onclick"/>
  9. <Button position="absolute 401 3 443 22" id="button2" class="btn5" text="저장" onclick="button2_onclick"/>
  10. <Shape position="absolute 0 22 602 28" linetype="horizontal" id="line5" class="line_10"/>
  11. <Grid position="absolute 0 27 602 779" id="datagrid1" binddataset="ds_otpt_otptlist" autoenter="select" cellsizingtype="col" cellclickbound="cell">
  12. <Formats>
  13. <Format id="default">
  14. <Columns>
  15. <Column size="23"/>
  16. <Column size="38"/>
  17. <Column size="53"/>
  18. <Column size="100"/>
  19. <Column size="62"/>
  20. <Column size="100"/>
  21. <Column size="100"/>
  22. <Column size="85"/>
  23. </Columns>
  24. <Rows>
  25. <Row size="24" band="head"/>
  26. <Row size="21"/>
  27. </Rows>
  28. <Band id="head">
  29. <Cell/>
  30. <Cell col="1"/>
  31. <Cell col="2" text="INSTCD"/>
  32. <Cell col="3" text="PID"/>
  33. <Cell col="4" text="CRETNO"/>
  34. <Cell col="5" text="ORDDD"/>
  35. <Cell col="6" text="ORDDEPTCD"/>
  36. <Cell col="7" text="ORDDRID"/>
  37. </Band>
  38. <Band id="body">
  39. <Cell celltype="head" expr="currow+1"/>
  40. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:status" expr="expr:status == 'Y' ? 1 : 0"/>
  41. <Cell col="2" text="bind:instcd"/>
  42. <Cell col="3" text="bind:pid"/>
  43. <Cell col="4" text="bind:cretno"/>
  44. <Cell col="5" text="bind:orddd"/>
  45. <Cell col="6" text="bind:orddeptcd"/>
  46. <Cell col="7" text="bind:orddrid"/>
  47. </Band>
  48. </Format>
  49. </Formats>
  50. </Grid>
  51. <Calendar position="absolute 132 3 230 22" align="align:center middle;" id="cmb_bfprcpdd" class="input_search" autoselect="true" onchanged="cmb_bfprcpdd_onchanged"/>
  52. <Button position="absolute 447 3 516 22" id="button1" class="btn7" text="EXCEL" onclick="button1_onclick"/>
  53. <Edit readonly="true" position="absolute 557 3 600 22" align="align:center middle;" id="output1" style="padding:0 0 0 0;align:center middle;font:Dotum,9,bold;"/>
  54. <Static text="서버 :" position="absolute 523 3 563 23" id="caption1"/>
  55. <Calendar position="absolute 249 3 347 22" align="align:center middle;" id="input1" class="input_search" enable="false" autoselect="true"/>
  56. <Static text="-" position="absolute 238 4 248 24" id="caption2"/>
  57. </Layout>
  58. </Layouts>
  59. <Objects>
  60. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  61. <ColumnInfo>
  62. <Column id="cond1" type="STRING" size="256"/>
  63. <Column id="todd" type="STRING" size="256"/>
  64. <Column id="mode" type="STRING" size="256"/>
  65. </ColumnInfo>
  66. <Rows>
  67. <Row/>
  68. </Rows>
  69. </Dataset>
  70. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  71. <ColumnInfo>
  72. <Column id="instcd" type="STRING" size="256"/>
  73. </ColumnInfo>
  74. <Rows>
  75. <Row/>
  76. </Rows>
  77. </Dataset>
  78. <Dataset id="ds_otpt_otptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_otpt_otptlist_oncolumnchanged">
  79. <ColumnInfo>
  80. <Column id="status" type="STRING" size="256" sumtext="상태"/>
  81. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  82. <Column id="pid" type="STRING" size="256" sumtext="환자id"/>
  83. <Column id="cretno" type="STRING" size="256" sumtext="cretno"/>
  84. <Column id="orddd" type="STRING" size="256" sumtext="진료일자"/>
  85. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과"/>
  86. <Column id="orddrid" type="STRING" size="256" sumtext="진료의"/>
  87. <Column id="actorddd" type="STRING" size="256" sumtext="예약진료일자"/>
  88. <Column id="actcretno" type="STRING" size="256" sumtext="예약생성번호"/>
  89. </ColumnInfo>
  90. </Dataset>
  91. </Objects>
  92. <Bind>
  93. <BindItem id="item0" compid="cmb_bfprcpdd" propid="value" datasetid="ds_send" columnid="cond1"/>
  94. <BindItem id="item1" compid="input1" propid="value" datasetid="ds_send" columnid="todd"/>
  95. <BindItem id="item2" compid="output1" propid="value" datasetid="ds_main" columnid="instcd"/>
  96. </Bind>
  97. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  98. * System Name :
  99. * Job Name :
  100. * Creator :
  101. * Make Date : 2017-09-07
  102. * Description :
  103. *---------------------------------------------------------------------------------------
  104. * Modify Date Modifier Modify Description
  105. *---------------------------------------------------------------------------------------
  106. * 2017-09-07 Live Converter TF->XP
  107. *
  108. *---------------------------------------------------------------------------------------
  109. ****************************************************************************************/
  110. include "com_commonxp::comm_main.xjs";
  111. function SPMMO16300_oninit(obj:Form, e:InitEventInfo)
  112. {
  113. frmf_initForm(obj);
  114. }
  115. function SPMMO16300_onload(obj:Form, e:LoadEventInfo)
  116. {
  117. grdf_initGrid(datagrid1);
  118. ds_send.setColumn(0, "cond1", utlf_getCurrentDate());
  119. ds_send.setColumn(0, "todd", utlf_getCurrentDate());
  120. ds_main.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
  121. }
  122. function cmb_bfprcpdd_onchanged(obj:Calendar, e:ChangeEventInfo)
  123. {
  124. var oParam = {};
  125. oParam.id = "TRMMO00100";
  126. oParam.service = "prcpmngtapp.PrcpMngt";
  127. oParam.method = "reqGetNoDiagPrcpList";
  128. oParam.inds = "req=ds_send";
  129. oParam.outds = "ds_otpt_otptlist=otptlist";
  130. oParam.async = false;
  131. //oParam.callback = "cf_TRMMO00100";
  132. tranf_submit(oParam);
  133. }
  134. function button37_onclick(obj:Button, e:ClickEventInfo)
  135. {
  136. var oParam = {};
  137. oParam.id = "TRMMO00100";
  138. oParam.service = "prcpmngtapp.PrcpMngt";
  139. oParam.method = "reqGetNoDiagPrcpList";
  140. oParam.inds = "req=ds_send";
  141. oParam.outds = "ds_otpt_otptlist=otptlist";
  142. oParam.async = false;
  143. //oParam.callback = "cf_TRMMO00100";
  144. tranf_submit(oParam);
  145. }
  146. function button2_onclick(obj:Button, e:ClickEventInfo)
  147. {
  148. var oParam = {};
  149. oParam.id = "TXMMO16301";
  150. oParam.service = "prcpmngtapp.PrcpMngt";
  151. oParam.method = "reqExeSaveDiagDump";
  152. oParam.inds = "otptlist=ds_otpt_otptlist";
  153. oParam.outds = "";
  154. oParam.async = false;
  155. //oParam.callback = "cf_TXMMO16301";
  156. tranf_submit(oParam);
  157. var oParam = {};
  158. oParam.id = "TRMMO00100";
  159. oParam.service = "prcpmngtapp.PrcpMngt";
  160. oParam.method = "reqGetNoDiagPrcpList";
  161. oParam.inds = "req=ds_send";
  162. oParam.outds = "ds_otpt_otptlist=otptlist";
  163. oParam.async = false;
  164. //oParam.callback = "cf_TRMMO00100";
  165. tranf_submit(oParam);
  166. }
  167. function ds_otpt_otptlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  168. {
  169. if(e.columnid == "status")
  170. {
  171. obj.setColumn(e.row, "status", (e.newvalue == "Y" || e.newvalue == 1) ? "Y" : "N");
  172. }
  173. }
  174. function button1_onclick(obj:Button, e:ClickEventInfo)
  175. {
  176. grdf_exportExcel(datagrid1, ds_send.getColumn(0, "cond1")+"_진단없는처방수진정보", "SheetName", "true", "", "");
  177. }
  178. ]]></Script>
  179. </Form>
  180. </FDL>