SPMMR06003_권역외상수술리스트.xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPMMR06003" position="absolute 0 0 1145 754" titletext="통계집계" oninit="SPMMR06003_oninit" onload="SPMMR06003_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 25 1145 61" id="roundrect3" class="div_SA" anchor="left top right"/>
  8. <Static text="수술일" position="absolute 15 35 76 53" id="caption2" class="search_name"/>
  9. <Static text="외상환자 수술대장" position="absolute 0 0 137 25" id="caption6" class="tit_1"/>
  10. <Static text="~" position="absolute 177 35 191 55" id="caption3"/>
  11. <Calendar position="absolute 80 34 174 53" align="align:center middle;" id="ipt_fromdd" class="input_search" taborder="1" mask="yyyy-mm-dd" dateformat="yyyy-MM-dd" value="null" autoselect="true" autoskip="true"/>
  12. <Calendar position="absolute 192 34 286 53" align="align:center middle;" id="ipt_todd" class="input_search" taborder="1" mask="yyyy-mm-dd" dateformat="yyyy-MM-dd" autoselect="true" autoskip="true"/>
  13. <Button position="absolute 951 32 1007 54" id="button1" class="btn1" text="조회" onclick="button1_onclick" anchor="top right"/>
  14. <Button position="absolute 1073 32 1129 54" id="btn_excel" class="btn7" text="엑셀" onclick="btn_excel_onclick" anchor="top right"/>
  15. <Grid position="absolute 0 66 1145 754" align="align:center middle;" id="grd_list" binddataset="ds_main_opinfo" selecttype="multirow" cellsizingtype="col" anchor="all" cellsizebandtype="allband">
  16. <Formats>
  17. <Format id="default">
  18. <Columns>
  19. <Column size="25" band="left"/>
  20. <Column size="59"/>
  21. <Column size="65"/>
  22. <Column size="53"/>
  23. <Column size="40"/>
  24. <Column size="68"/>
  25. <Column size="72"/>
  26. <Column size="52"/>
  27. <Column size="43"/>
  28. <Column size="175"/>
  29. <Column size="153"/>
  30. <Column size="69"/>
  31. <Column size="64"/>
  32. <Column size="82"/>
  33. <Column size="66"/>
  34. <Column size="76"/>
  35. <Column size="113"/>
  36. <Column size="106"/>
  37. </Columns>
  38. <Rows>
  39. <Row size="24" band="head"/>
  40. <Row size="24"/>
  41. </Rows>
  42. <Band id="head">
  43. <Cell/>
  44. <Cell col="1" text="수술방"/>
  45. <Cell col="2" text="병동"/>
  46. <Cell col="3" text="병실"/>
  47. <Cell col="4" text="중증"/>
  48. <Cell col="5" text="등록번호"/>
  49. <Cell col="6" text="환자명"/>
  50. <Cell col="7" text="성별"/>
  51. <Cell col="8" text="나이"/>
  52. <Cell col="9" text="진단명"/>
  53. <Cell col="10" text="수술명"/>
  54. <Cell col="11" text="집도과"/>
  55. <Cell col="12" text="집도의"/>
  56. <Cell col="13" text="진료과"/>
  57. <Cell col="14" text="주치의"/>
  58. <Cell col="15" text="담당의"/>
  59. <Cell col="16" text="수술일시"/>
  60. <Cell col="17" text="입원일시"/>
  61. </Band>
  62. <Band id="body">
  63. <Cell celltype="head" text="expr:currow+1"/>
  64. <Cell col="1" displaytype="text" style="align:center;" text="bind:oproomcd"/>
  65. <Cell col="2" style="align:center top;padding:3 2 1 2;" text="bind:ward" wordwrap="char"/>
  66. <Cell col="3" text="bind:roomcd"/>
  67. <Cell col="4" text="bind:serflag"/>
  68. <Cell col="5" text="bind:pid"/>
  69. <Cell col="6" text="bind:hngnm"/>
  70. <Cell col="7" text="bind:sex"/>
  71. <Cell col="8" text="bind:age"/>
  72. <Cell col="9" displaytype="text" style="align:left top;padding:3 2 1 2;" text="bind:diagnm" wordwrap="char"/>
  73. <Cell col="10" displaytype="text" style="align:left top;padding:3 2 1 2;" text="bind:opnm" wordwrap="char"/>
  74. <Cell col="11" displaytype="text" style="align:left top;padding:3 2 1 2;" text="bind:perfdept" wordwrap="char"/>
  75. <Cell col="12" text="bind:perfdrnm"/>
  76. <Cell col="13" displaytype="text" style="align:left top;padding:3 2 1 2;" text="bind:orddeptnm" wordwrap="char"/>
  77. <Cell col="14" text="bind:medispcl"/>
  78. <Cell col="15" text="bind:atdoct"/>
  79. <Cell col="16" text="bind:opfromdt" mask="####-##-## ##:##"/>
  80. <Cell col="17" text="bind:indt" mask="####-##-## ##:##"/>
  81. </Band>
  82. </Format>
  83. </Formats>
  84. </Grid>
  85. <Button position="absolute 630 32 686 54" id="button2" class="btn3" visible="false" text="배치" onclick="button2_onclick"/>
  86. <Static text="등록번호" position="absolute 325 35 410 52" id="caption1" class="search_name"/>
  87. <Edit position="absolute 400 34 500 53" id="input1" autoselect="true"/>
  88. <Button id="button7" taborder="2" text="출력" class="btn6" position="absolute 1012 32 1068 54" anchor="top right" onclick="button7_onclick"/>
  89. </Layout>
  90. </Layouts>
  91. <Objects>
  92. <Dataset id="ds_main_opinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  93. <ColumnInfo>
  94. <Column id="oproomcd" type="STRING"/>
  95. <Column id="ward" type="STRING"/>
  96. <Column id="roomcd" type="STRING"/>
  97. <Column id="serflag" type="STRING" size="0"/>
  98. <Column id="pid" type="STRING"/>
  99. <Column id="hngnm" type="STRING"/>
  100. <Column id="sex" type="STRING"/>
  101. <Column id="age" type="STRING"/>
  102. <Column id="diagnm" type="STRING"/>
  103. <Column id="opnm" type="STRING"/>
  104. <Column id="perfdept" type="STRING"/>
  105. <Column id="perfdrnm" type="STRING"/>
  106. <Column id="orddeptnm" type="STRING"/>
  107. <Column id="medispcl" type="STRING"/>
  108. <Column id="atdoct" type="STRING"/>
  109. <Column id="opfromdt" type="STRING"/>
  110. <Column id="indt" type="STRING"/>
  111. </ColumnInfo>
  112. </Dataset>
  113. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  114. <ColumnInfo>
  115. <Column id="fromdd" type="STRING" size="256"/>
  116. <Column id="todd" type="STRING" size="256"/>
  117. <Column id="pid" type="STRING" size="256"/>
  118. </ColumnInfo>
  119. <Rows>
  120. <Row>
  121. <Col id="fromdd"/>
  122. <Col id="todd"/>
  123. <Col id="pid"/>
  124. </Row>
  125. </Rows>
  126. </Dataset>
  127. </Objects>
  128. <Bind>
  129. <BindItem id="item0" compid="ipt_fromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
  130. <BindItem id="item1" compid="ipt_todd" propid="value" datasetid="ds_send" columnid="todd"/>
  131. <BindItem id="item2" compid="input1" propid="value" datasetid="ds_send" columnid="pid"/>
  132. </Bind>
  133. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  134. * System Name :
  135. * Job Name :
  136. * Creator :
  137. * Make Date : 2015-05-05
  138. * Description :
  139. *---------------------------------------------------------------------------------------
  140. * Modify Date Modifier Modify Description
  141. *---------------------------------------------------------------------------------------
  142. * 2015-05-05 Live Converter TF->XP
  143. *
  144. *---------------------------------------------------------------------------------------
  145. ****************************************************************************************/
  146. //=======================================================================================
  147. // Lib Include
  148. //---------------------------------------------------------------------------------------
  149. include "com_commonxp::comm_main.xjs";
  150. //include "com_basiccodexp::ZBC001.xjs";
  151. //=======================================================================================
  152. // Global Form Variable
  153. //---------------------------------------------------------------------------------------
  154. //var arErrorCode = new HashArray();
  155. //=======================================================================================
  156. // Function
  157. //---------------------------------------------------------------------------------------
  158. /****************************************************************************************
  159. * Argument : N/A
  160. * Description : 수술대장 조회
  161. ****************************************************************************************/
  162. function fSearch() {
  163. ds_main_opinfo.clearData();
  164. var oParam = {};
  165. oParam.id = "TRMMR04212";
  166. oParam.service = "anstrecapp.AnstRec";
  167. oParam.method = "reqGetTROPList";
  168. oParam.inds = "req=ds_send";
  169. oParam.outds = "ds_main_opinfo=list";
  170. oParam.async = true;
  171. //oParam.callback = "cf_TRMMR04212";
  172. tranf_submit(oParam);
  173. }
  174. //=======================================================================================
  175. // Event
  176. //---------------------------------------------------------------------------------------
  177. /****************************************************************************************
  178. * Components : Form
  179. * Components ID : SPMMR06003
  180. * Event : oninit
  181. * Argument : 01.obj : Object Event has occurred
  182. * : 02.e : Event Object
  183. * Description : 화면 초기화
  184. ****************************************************************************************/
  185. function SPMMR06003_oninit(obj:Form, e:InitEventInfo)
  186. {
  187. frmf_initForm(obj);
  188. }
  189. /****************************************************************************************
  190. * Components : Form
  191. * Components ID : SPMMR06003
  192. * Event : onload
  193. * Argument : 01.obj : Object Event has occurred
  194. * : 02.e : Event Object
  195. * Description : 화면 초기화
  196. ****************************************************************************************/
  197. function SPMMR06003_onload(obj:Form, e:LoadEventInfo)
  198. {
  199. grdf_setGridSort(grd_list);
  200. ipt_fromdd.value = ((utlf_getCurrentDate().toDate()).getAddDate(-8,"D")).getDateFormat();
  201. ipt_todd.value = ((utlf_getCurrentDate().toDate()).getAddDate(-1,"D")).getDateFormat();
  202. }
  203. /****************************************************************************************
  204. * Components : Button
  205. * Components ID : button1
  206. * Event : onclick
  207. * Argument : 01.obj : Object Event has occurred
  208. * : 02.e : Event Object
  209. * Description : 조회 버튼
  210. ****************************************************************************************/
  211. function button1_onclick(obj:Button, e:ClickEventInfo)
  212. {
  213. fSearch();
  214. }
  215. /****************************************************************************************
  216. * Components : Button
  217. * Components ID : btn_excel
  218. * Event : onclick
  219. * Argument : 01.obj : Object Event has occurred
  220. * : 02.e : Event Object
  221. * Description : 엑셀 버튼
  222. ****************************************************************************************/
  223. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  224. {
  225. if( ds_main_opinfo.rowcount == 0 ) return;
  226. grdf_exportExcel(grd_list, "excel" , "SheetName", true, "", "none", false);
  227. }
  228. /****************************************************************************************
  229. * Components : Button
  230. * Components ID : button2
  231. * Event : onclick
  232. * Argument : 01.obj : Object Event has occurred
  233. * : 02.e : Event Object
  234. * Description : 배치 버튼
  235. ****************************************************************************************/
  236. function button2_onclick(obj:Button, e:ClickEventInfo)
  237. {
  238. frmf_open("SPMMR06002", "SPMMR06002", null, null, null, null, null, null, null, null, null, null, "M");
  239. }
  240. function button7_onclick(obj:Button, e:ClickEventInfo)
  241. {
  242. dsf_makeValue(ds_send, "name", "string", "외상환자 수술대장");
  243. var objDOM = rptf_createDOM(); // DOM 객체 설정
  244. rptf_setNodeListToDOM(objDOM, "/root/main/opinfo/list", ds_main_opinfo); // 데이터셋 1
  245. rptf_setNodeListToDOM(objDOM, "/root/send", ds_send); // 데이터셋 1
  246. var objParam = new Object();
  247. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  248. var option = "open=1;save=1;directprint=0;print=1;zoom=0;";
  249. rptf_exeReportPreview30(["RMMMR06003"],[objParam], option);
  250. }
  251. ]]></Script>
  252. </Form>
  253. </FDL>