SMPMI06400_상해외인환자현황.xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPMI06400" position="absolute 0 0 1280 1024" titletext="상해외인 환자 현황" onload="SMPMI06400_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp" taborder="7" position="absolute 0 25 1195 60" class="div_SA">
  8. <Layouts>
  9. <Layout width="1195" height="35">
  10. <Button id="btn_search" taborder="0" text="조회" onclick="btn_search_onclick" class="btn1" position="absolute 1130 7 1186 29"/>
  11. <Static id="caption1" text="입원일 :" class="search_name" position="absolute 5 9 80 26"/>
  12. <Calendar id="ipt_fromdd" taborder="1" class="input_search" position="absolute 71 8 161 27" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" value="null"/>
  13. <Calendar id="ipt_todd" taborder="2" class="input_search" position="absolute 182 8 272 27" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd"/>
  14. <Static id="caption2" text="~" position="absolute 166 8 177 28" style="align:center ;"/>
  15. <Shape id="line13" linetype="vertical" position="absolute 1120 4 1123 31" style="border: solid #FFD799 #FFD799;"/>
  16. </Layout>
  17. </Layouts>
  18. </Div>
  19. <Static id="cap_title" class="tit_1" position="absolute 0 0 160 25" style="align:left middle;font:Dotum,9,bold;" text="상해 외인 환자 현황"/>
  20. <Static id="caption7" class="tit_2" position="absolute 0 67 85 83" style="font:,,bold;" text="조회 내역"/>
  21. <Shape id="line1" class="line_1" linetype="horizontal" position="absolute 0 87 1195 90" style="strokepen:3 solid #33bbbbff;" anchor="default"/>
  22. <Button id="btn_excel" class="btn2" position="absolute 1131 65 1195 84" text="엑셀저장" onclick="btn_excel_onclick"/>
  23. <Grid id="grd_ijor" binddataset="ds_main_ijorlist" position="absolute 0 89 1195 764" style="align:center ;">
  24. <Formats>
  25. <Format id="default">
  26. <Columns>
  27. <Column size="25"/>
  28. <Column size="55"/>
  29. <Column size="50"/>
  30. <Column size="0"/>
  31. <Column size="90"/>
  32. <Column size="75"/>
  33. <Column size="0"/>
  34. <Column size="0"/>
  35. <Column size="0"/>
  36. <Column size="60"/>
  37. <Column size="0"/>
  38. <Column size="60"/>
  39. <Column size="0"/>
  40. <Column size="75"/>
  41. <Column size="0"/>
  42. <Column size="120"/>
  43. <Column size="100"/>
  44. <Column size="0"/>
  45. <Column size="300"/>
  46. <Column size="0"/>
  47. <Column size="180"/>
  48. </Columns>
  49. <Rows>
  50. <Row size="24" band="head"/>
  51. <Row size="24"/>
  52. </Rows>
  53. <Band id="head">
  54. <Cell/>
  55. <Cell col="1" text="등록번호"/>
  56. <Cell col="2" text="이름"/>
  57. <Cell col="3" text="집전화번호"/>
  58. <Cell col="4" text="휴대전화번호"/>
  59. <Cell col="5" text="입원일"/>
  60. <Cell col="6" text="생성번호"/>
  61. <Cell col="7" text="주유형"/>
  62. <Cell col="8" text="보험유형"/>
  63. <Cell col="9" text="보험유형"/>
  64. <Cell col="10" text="보조유형"/>
  65. <Cell col="11" text="보조유형"/>
  66. <Cell col="12" text="퇴원일"/>
  67. <Cell col="13" text="진단일"/>
  68. <Cell col="14" text="진료과"/>
  69. <Cell col="15" text="진료과"/>
  70. <Cell col="16" text="상병코드"/>
  71. <Cell col="17" text="상병(영문)"/>
  72. <Cell col="18" text="상병(한글)"/>
  73. <Cell col="19" text="진단일련번호"/>
  74. <Cell col="20" text="상담내용"/>
  75. </Band>
  76. <Band id="body">
  77. <Cell celltype="head" expr="expr:currow + 1"/>
  78. <Cell col="1" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:pid" suppress="1" suppressalign="middle,over"/>
  79. <Cell col="2" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:hngnm" suppress="2" suppressalign="middle,over"/>
  80. <Cell col="3" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:hometel"/>
  81. <Cell col="4" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:mpphontel" suppress="2" suppressalign="middle,over"/>
  82. <Cell col="5" displaytype="date" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:indd" mask="yyyy-MM-dd" suppress="3" suppressalign="middle,over" calendardisplaynulltype="none"/>
  83. <Cell col="6" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:cretno"/>
  84. <Cell col="7" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:mskind"/>
  85. <Cell col="8" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:insukind"/>
  86. <Cell col="9" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:insukindnm" suppress="4" suppressalign="middle,over"/>
  87. <Cell col="10" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:suppkind"/>
  88. <Cell col="11" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:suppkindnm" suppress="5" suppressalign="middle,over"/>
  89. <Cell col="12" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:dschdd"/>
  90. <Cell col="13" displaytype="date" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:diagdd" mask="yyyy-MM-dd" suppress="6" suppressalign="middle,over" calendardisplaynulltype="none"/>
  91. <Cell col="14" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:orddeptcd"/>
  92. <Cell col="15" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:depthngnm" suppress="7" suppressalign="middle,over"/>
  93. <Cell col="16" style="align:left middle;background:BIND(bgColor);background2:BIND(bgColor);" text="bind:diagcd"/>
  94. <Cell col="17" style="align:left middle;background:BIND(bgColor);background2:BIND(bgColor);" text="bind:termengnm"/>
  95. <Cell col="18" style="align:left middle;background:BIND(bgColor);background2:BIND(bgColor);" text="bind:termhngnm"/>
  96. <Cell col="19" style="background:BIND(bgColor);background2:BIND(bgColor);" text="bind:diagno"/>
  97. <Cell col="20" style="align:left middle;background:BIND(bgColor);background2:BIND(bgColor);" text="bind:cnslttxt"/>
  98. </Band>
  99. </Format>
  100. </Formats>
  101. </Grid>
  102. </Layout>
  103. </Layouts>
  104. <Objects>
  105. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  106. <ColumnInfo>
  107. <Column id="fromdd" type="STRING" size="256"/>
  108. <Column id="todd" type="STRING" size="256"/>
  109. </ColumnInfo>
  110. <Rows>
  111. <Row/>
  112. </Rows>
  113. </Dataset>
  114. <Dataset id="ds_main_ijorlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  115. <ColumnInfo>
  116. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  117. <Column id="hngnm" type="STRING" size="256" sumtext="이름"/>
  118. <Column id="hometel" type="STRING" size="256" sumtext="집전화번호"/>
  119. <Column id="mpphontel" type="STRING" size="256" sumtext="휴대전화번호"/>
  120. <Column id="indd" type="STRING" size="256" sumtext="입원일"/>
  121. <Column id="cretno" type="STRING" size="256" sumtext="생성번호"/>
  122. <Column id="mskind" type="STRING" size="256" sumtext="주유형"/>
  123. <Column id="insukind" type="STRING" size="256" sumtext="보험유형"/>
  124. <Column id="insukindnm" type="STRING" size="256" sumtext="보험유형"/>
  125. <Column id="suppkind" type="STRING" size="256" sumtext="보조유형"/>
  126. <Column id="suppkindnm" type="STRING" size="256" sumtext="보조유형"/>
  127. <Column id="dschdd" type="STRING" size="256" sumtext="퇴원일"/>
  128. <Column id="diagdd" type="STRING" size="256" sumtext="진단일"/>
  129. <Column id="orddeptcd" type="STRING" size="256" sumtext="진료과"/>
  130. <Column id="depthngnm" type="STRING" size="256" sumtext="진료과"/>
  131. <Column id="diagcd" type="STRING" size="256" sumtext="상병코드"/>
  132. <Column id="termengnm" type="STRING" size="256" sumtext="상병(영문)"/>
  133. <Column id="termhngnm" type="STRING" size="256" sumtext="상병(한글)"/>
  134. <Column id="diagno" type="STRING" size="256" sumtext="진단일련번호"/>
  135. <Column id="cnslttxt" type="STRING" size="256" sumtext="상담내용"/>
  136. <Column id="bgColor" type="STRING" size="256"/>
  137. </ColumnInfo>
  138. </Dataset>
  139. </Objects>
  140. <Bind>
  141. <BindItem id="item0" compid="grp.ipt_fromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
  142. <BindItem id="item1" compid="grp.ipt_todd" propid="value" datasetid="ds_send" columnid="todd"/>
  143. </Bind>
  144. <Script type="xscript4.0"><![CDATA[//=======================================================================================
  145. // Lib Include
  146. //---------------------------------------------------------------------------------------
  147. include 'com_commonxp::comm_main.xjs';
  148. var arErrorCode = new HashArray();
  149. //=======================================================================================
  150. // Local methods
  151. //---------------------------------------------------------------------------------------
  152. /**
  153. * submit 후 호출 될 공통 콜백
  154. * @param {[type]} sSvcId [description]
  155. * @param {[type]} nErrorCode [description]
  156. * @param {[type]} sErrorMsg [description]
  157. * @return {Function} [description]
  158. */
  159. function callback(sSvcId, nErrorCode, sErrorMsg){
  160. arErrorCode.push(sSvcId, nErrorCode);
  161. }
  162. //=======================================================================================
  163. // Events
  164. //---------------------------------------------------------------------------------------
  165. /**
  166. * onload 이벤트 발생 시 호출
  167. * @param {[type]} obj:Form [description]
  168. * @param {[type]} e:LoadEventInfo [description]
  169. */
  170. function SMPMI06400_onload(obj: Form, e: LoadEventInfo) {
  171. frmf_initForm(obj);
  172. // grd_ijor.rowHeightMin = 23;
  173. ds_send.setColumn(0, "fromdd", utlf_getCurrentDate());
  174. ds_send.setColumn(0, "todd", utlf_getCurrentDate());
  175. // ipt_fromdd.refresh();
  176. // ipt_todd.refresh();
  177. }
  178. /**
  179. * 조회 버튼 클릭 이벤트
  180. * @param {[type]} obj: Button [description]
  181. * @param {[type]} e: ClickEventInfo [description]
  182. * @return {[type]} [description]
  183. */
  184. function btn_search_onclick(obj: Button, e: ClickEventInfo) {
  185. ds_main_ijorlist.clearData();
  186. var oParam = {};
  187. oParam.id = "TRPMI01705";
  188. oParam.service = "ipatmngtapp.InhospPat";
  189. oParam.method = "reqGetInjuryOtherReasonList";
  190. oParam.inds = "req=ds_send";
  191. oParam.outds = "ds_main_ijorlist=ijor";
  192. oParam.async = false;
  193. oParam.callback = "callback";
  194. tranf_submit(oParam);
  195. ds_main_ijorlist.addColumn('bgColor', 'string');
  196. if (ds_main_ijorlist.rowcount < 1) {
  197. return;
  198. }
  199. var prevpid = ds_main_ijorlist.getColumn(0, "pid");
  200. var color = "transparent";
  201. for (var i = 0; i < ds_main_ijorlist.rowcount; i++) {
  202. var pid = ds_main_ijorlist.getColumn(i, "pid");
  203. if (pid != prevpid) {
  204. color = (color == "#f4f4f4") ? "transparent" : "#f4f4f4";
  205. prevpid = pid;
  206. }
  207. ds_main_ijorlist.setColumn(i, "bgColor", color);
  208. }
  209. }
  210. /**
  211. * 엑셀저장 버튼 클릭 이벤트
  212. * @param {[type]} obj: Button [description]
  213. * @param {[type]} e: ClickEventInfo [description]
  214. * @return {[type]} [description]
  215. */
  216. function btn_excel_onclick(obj: Button, e: ClickEventInfo) {
  217. grdf_exportExcel(grd_ijor, "상해 외인 환자 현황", "상해외인환자현황", true, "", "user", true);
  218. sysf_messageBox("엑셀 저장이 완료되었습니다.", "I999");
  219. }
  220. ]]></Script>
  221. </Form>
  222. </FDL>