SMPEA00101_예약자별통합검사예약현황.xfdl 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPEA00101" position="absolute 0 0 1196 765" titletext="예약자별 통합 검사 예약 현황" onload="SMPEA00101_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp_srch" taborder="7" position="absolute 0 25 1195 65" class="div_SA" anchor="left top right"/>
  8. <Static id="cap_title" class="tit_1" position="absolute 0 0 220 25" text="예약자별 통합 검사 예약 현황"/>
  9. <Static id="caption35" class="search_name" position="absolute 5 38 81 55" style="" text="예약일 :"/>
  10. <Calendar id="ipt_fromdd" class="input_search" mask="yyyy-mm-dd" position="absolute 85 36 175 55" style="" anchor="default" dateformat="yyyy-MM-dd"/>
  11. <Static id="caption2" position="absolute 175 37 190 57" style="align:center ;" text="~"/>
  12. <Calendar id="ipt_todd" class="input_search" mask="yyyy-mm-dd" position="absolute 190 36 280 55" style="" anchor="default" dateformat="yyyy-MM-dd" value="null"/>
  13. <Static id="caption1" class="search_name" position="absolute 320 38 386 55" style="" text="부서 :"/>
  14. <Combo innerdataset="ds_init_deptlist_deptinfo" datacolumn="deptnm" codecolumn="deptcd" columncount="-1" rowcount="-1" id="cmb_deptcd" class="combo_search" taborder="2" position="absolute 386 36 526 55" style=""/>
  15. <Shape id="line13" linetype="vertical" position="absolute 1120 34 1123 59" style="border: solid #FFD799 #FFD799;" anchor="top right"/>
  16. <Button id="btn_search" class="btn1" taborder="6" position="absolute 1130 35 1186 57" text="조회" onclick="btn_search_onclick" anchor="top right"/>
  17. <Static id="caption7" class="tit_2" position="absolute 0 73 93 90" style="font:,,bold;" text="조회 내역"/>
  18. <Shape id="line1" class="line_10" linetype="horizontal" position="absolute 0 89 1195 95" style="" anchor="left top right"/>
  19. <Grid id="grd_work" binddataset="ds_main_worklist_workinfo" position="absolute 0 94 1195 764" style="align:center ;" selecttype="multirow" cellsizingtype="col" anchor="all">
  20. <Formats>
  21. <Format id="default">
  22. <Columns>
  23. <Column size="120"/>
  24. <Column size="35"/>
  25. <Column size="50"/>
  26. <Column size="35"/>
  27. <Column size="120"/>
  28. <Column size="60"/>
  29. <Column size="80"/>
  30. <Column size="120"/>
  31. <Column size="160"/>
  32. <Column size="100"/>
  33. <Column size="190"/>
  34. <Column size="124"/>
  35. </Columns>
  36. <Rows>
  37. <Row size="24" band="head"/>
  38. <Row size="24"/>
  39. </Rows>
  40. <Band id="head">
  41. <Cell text="부서"/>
  42. <Cell col="1" text="건수"/>
  43. <Cell col="2" text="예약자"/>
  44. <Cell col="3" text="건수"/>
  45. <Cell col="4" text="예약일시"/>
  46. <Cell col="5" text="등록번호"/>
  47. <Cell col="6" text="처방일"/>
  48. <Cell col="7" text="수행부서"/>
  49. <Cell col="8" text="검사실"/>
  50. <Cell col="9" text="검사코드"/>
  51. <Cell col="10" text="검사명"/>
  52. <Cell col="11" text="검사일시"/>
  53. </Band>
  54. <Band id="body">
  55. <Cell style="background:BIND(bgcolor);background2:BIND(bgcolor);" text="bind:dutplcenm" wordwrap="char" suppress="1" suppressalign="middle,over"/>
  56. <Cell col="1" style="background:BIND(bgcolor);background2:BIND(bgcolor);" text="bind:dcnt" wordwrap="char" suppress="2" suppressalign="middle,over"/>
  57. <Cell col="2" displaytype="text" style="background:BIND(bgcolor);background2:BIND(bgcolor);" text="bind:rsrvrnm" wordwrap="char" suppress="3" suppressalign="middle,over"/>
  58. <Cell col="3" style="background:BIND(bgcolor);background2:BIND(bgcolor);" text="bind:rcnt" wordwrap="char" suppress="4" suppressalign="middle,over"/>
  59. <Cell col="4" style="background:BIND(bgcolor);background2:BIND(bgcolor);" text="bind:lastupdtdt" wordwrap="char" mask="expr:utlf_isNull(lastupdtdt) ? '' : '####-##-## ##:##'" suppress="5" suppressalign="middle,over"/>
  60. <Cell col="5" style="background:BIND(bgcolor);background2:BIND(bgcolor);" text="bind:pid" wordwrap="char" suppress="6" suppressalign="middle,over"/>
  61. <Cell col="6" style="background:BIND(bgcolor);background2:BIND(bgcolor);" text="bind:prcpdd" wordwrap="char" mask="expr:utlf_isNull(prcpdd) ? '' : '####-##-##'" suppress="7" suppressalign="middle,over"/>
  62. <Cell col="7" displaytype="text" style="background:BIND(bgcolor);background2:BIND(bgcolor);" text="bind:suppdeptnm" wordwrap="char" suppress="8" suppressalign="middle,over"/>
  63. <Cell col="8" displaytype="text" style="background:BIND(bgcolor);background2:BIND(bgcolor);" text="bind:excuroomnm" wordwrap="char" suppress="9" suppressalign="middle,over"/>
  64. <Cell col="9" displaytype="text" style="background:BIND(bgcolor);background2:BIND(bgcolor);" text="bind:calcscorcd"/>
  65. <Cell col="10" displaytype="text" style="background:BIND(bgcolor);background2:BIND(bgcolor);" text="bind:calcscornm"/>
  66. <Cell col="11" style="background:BIND(bgcolor);background2:BIND(bgcolor);" text="bind:rsrvdt" mask="expr:utlf_isNull(rsrvdt) ? '' : '####-##-## ##:##'"/>
  67. </Band>
  68. </Format>
  69. </Formats>
  70. </Grid>
  71. <Button id="btn_excel" class="btn7" position="absolute 1119 67 1195 89" style="" text="엑셀저장" onclick="btn_excel_onclick" anchor="top right"/>
  72. </Layout>
  73. </Layouts>
  74. <Objects>
  75. <Dataset id="ds_main_worklist_workinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  76. <ColumnInfo>
  77. <Column id="dutplcecd" type="STRING" size="256"/>
  78. <Column id="dutplcenm" type="STRING" size="256"/>
  79. <Column id="dcnt" type="STRING" size="256"/>
  80. <Column id="rsrvrid" type="STRING" size="256"/>
  81. <Column id="rsrvrnm" type="STRING" size="256"/>
  82. <Column id="rcnt" type="STRING" size="256"/>
  83. <Column id="pid" type="STRING" size="256"/>
  84. <Column id="prcpdd" type="STRING" size="256"/>
  85. <Column id="suppdeptcd" type="STRING" size="256"/>
  86. <Column id="suppdeptnm" type="STRING" size="256"/>
  87. <Column id="excuroomcd" type="STRING" size="256"/>
  88. <Column id="excuroomnm" type="STRING" size="256"/>
  89. <Column id="calcscorcd" type="STRING" size="256"/>
  90. <Column id="calcscornm" type="STRING" size="256"/>
  91. <Column id="rsrvdt" type="STRING" size="256"/>
  92. <Column id="logno" type="STRING" size="256"/>
  93. <Column id="lastupdtdt" type="STRING" size="256"/>
  94. </ColumnInfo>
  95. <Rows>
  96. <Row>
  97. <Col id="dutplcecd"/>
  98. <Col id="dutplcenm"/>
  99. <Col id="dcnt"/>
  100. <Col id="rsrvrid"/>
  101. <Col id="rsrvrnm"/>
  102. <Col id="rcnt"/>
  103. <Col id="pid"/>
  104. <Col id="prcpdd"/>
  105. <Col id="suppdeptcd"/>
  106. <Col id="suppdeptnm"/>
  107. <Col id="excuroomcd"/>
  108. <Col id="excuroomnm"/>
  109. <Col id="calcscorcd"/>
  110. <Col id="calcscornm"/>
  111. <Col id="rsrvdt"/>
  112. <Col id="logno"/>
  113. <Col id="lastupdtdt"/>
  114. </Row>
  115. </Rows>
  116. </Dataset>
  117. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  118. <ColumnInfo>
  119. <Column id="fromdd" type="STRING" size="256"/>
  120. <Column id="todd" type="STRING" size="256"/>
  121. <Column id="dutplcecd" type="STRING" size="256"/>
  122. <Column id="bscdflag" type="STRING" size="256"/>
  123. </ColumnInfo>
  124. <Rows>
  125. <Row>
  126. <Col id="fromdd"/>
  127. <Col id="todd"/>
  128. <Col id="dutplcecd"/>
  129. <Col id="bscdflag"/>
  130. </Row>
  131. </Rows>
  132. </Dataset>
  133. <Dataset id="ds_init_deptlist_deptinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  134. <ColumnInfo>
  135. <Column id="deptcd" type="STRING" size="256"/>
  136. <Column id="deptnm" type="STRING" size="256"/>
  137. </ColumnInfo>
  138. <Rows>
  139. <Row>
  140. <Col id="deptcd"/>
  141. <Col id="deptnm"/>
  142. </Row>
  143. </Rows>
  144. </Dataset>
  145. </Objects>
  146. <Bind>
  147. <BindItem id="item0" compid="ipt_fromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
  148. <BindItem id="item1" compid="ipt_todd" propid="value" datasetid="ds_send" columnid="todd"/>
  149. <BindItem id="item2" compid="cmb_deptcd" propid="value" datasetid="ds_send" columnid="dutplcecd"/>
  150. </Bind>
  151. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  152. * System Name :
  153. * Job Name :
  154. * Creator :
  155. * Make Date : 2017-12-04
  156. * Description :
  157. *---------------------------------------------------------------------------------------
  158. * Modify Date Modifier Modify Description
  159. *---------------------------------------------------------------------------------------
  160. * 2017-06-19 Live Converter TF->XP
  161. *
  162. *---------------------------------------------------------------------------------------
  163. ****************************************************************************************/
  164. //=======================================================================================
  165. // Lib Include
  166. //---------------------------------------------------------------------------------------
  167. include "com_commonxp::comm_main.xjs";
  168. //=======================================================================================
  169. // Global Form Variable
  170. //---------------------------------------------------------------------------------------
  171. var arErrorCode = new HashArray();
  172. //=======================================================================================
  173. // Function
  174. //---------------------------------------------------------------------------------------
  175. /*-**************************************************************************************
  176. * Argument : currow : row 인덱스
  177. * Description : 색상설정
  178. ****************************************************************************************/
  179. function fn_setRowStyle() {
  180. var cnt = ds_main_worklist_workinfo.rowcount;
  181. if(cnt == 0) return;
  182. var gColor = "";
  183. for(var currow = 0 ; currow < cnt ; currow++) {
  184. if(currow == 0) gColor = "#ffffff";
  185. else {
  186. var pVal = dsf_getColumnNullToEmpty(ds_main_worklist_workinfo, (currow-1), "rsrvrid");
  187. var cVal = dsf_getColumnNullToEmpty(ds_main_worklist_workinfo, currow, "rsrvrid");
  188. if(pVal == cVal) gColor = gColor;
  189. else gColor = (gColor == "#ffffff" ? "#f0f0f0" : "#ffffff");
  190. }
  191. dsf_makeValue(ds_main_worklist_workinfo, "bgcolor", "string", gColor, currow);
  192. }
  193. }
  194. //=======================================================================================
  195. // Event
  196. //---------------------------------------------------------------------------------------
  197. /****************************************************************************************
  198. * Components : Form
  199. * Description : 화면 처음 초기화시 폼초기화
  200. ****************************************************************************************/
  201. function SMPEA00101_onload(obj:Form, e:LoadEventInfo) {
  202. frmf_initForm(obj);
  203. //grdf_initGrid(grd_XXX);
  204. //grdf_setGridSort(grd_XXX);
  205. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  206. ds_send.setColumn( 0, "fromdd", utlf_getCurrentDate());
  207. ds_send.setColumn( 0, "todd", utlf_getCurrentDate());
  208. ds_init_deptlist_deptinfo.clearData();
  209. var oParam = {};
  210. oParam.id = "TRPEA00107";
  211. oParam.service = "pamexcuapp.PamExcu";
  212. oParam.method = "reqGetDeptList";
  213. oParam.inds = "req=ds_send";
  214. oParam.outds = "ds_init_deptlist_deptinfo=dept";
  215. oParam.async = false;
  216. //oParam.callback = "cf_TRPEA00107";
  217. tranf_submit(oParam);
  218. frmf_addComboItem("cmb_deptcd", "전체", "T");
  219. cmb_deptcd.index = 0;
  220. }
  221. /****************************************************************************************
  222. * Components : Button
  223. * Description : 조회
  224. ****************************************************************************************/
  225. function btn_search_onclick(obj:Button, e:ClickEventInfo) {
  226. ds_main_worklist_workinfo.clearData();
  227. var oParam = {};
  228. oParam.id = "TRPEA00111";
  229. oParam.service = "pamexcuapp.PamExcu";
  230. oParam.method = "reqGetRsrvWorkStat";
  231. oParam.inds = "req=ds_send";
  232. oParam.outds = "ds_main_worklist_workinfo=work";
  233. oParam.async = false;
  234. oParam.callback = "cf_TRPEA00111";
  235. tranf_submit(oParam);
  236. }
  237. function cf_TRPEA00111(sSvcId, nErrorCode, sErrorMsg) {
  238. if(nErrorCode < 0) return;
  239. fn_setRowStyle();
  240. }
  241. /****************************************************************************************
  242. * Components : Button
  243. * Description : 엑셀저장
  244. ****************************************************************************************/
  245. function btn_excel_onclick(obj:Button, e:ClickEventInfo) {
  246. var period = ds_send.getColumn(0, "fromdd") + "-" + ds_send.getColumn(0, "todd");
  247. var filename = "예약자별 통합 검사 예약 현황_" + period;
  248. if( ds_main_worklist_workinfo.rowcount > 0 ){
  249. grdf_exportExcel(grd_work, filename, "예약현황", false, "", "user", false);
  250. sysf_messageBox("엑셀 저장이 완료되었습니다.", "I999");
  251. } else {
  252. sysf_messageBox("조회된 데이터가 ", "I004");
  253. }
  254. }
  255. ]]></Script>
  256. </Form>
  257. </FDL>