SMMNW20020_외상소생구역환자대장.xfdl 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNW20020" position="absolute 0 0 1195 760" titletext="외상소생구역 환자대장" oninit="SMMNW20020_oninit" onload="SMMNW20020_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static text="외상소생구역 환자대장" position="absolute 0 0 163 20" id="cpt_title" class="tit_1"/>
  8. <Div position="absolute 0 20 1195 60" align="align:center top;" id="grp_sea" class="div_SA" anchor="left top right">
  9. <Layouts>
  10. <Layout>
  11. <Button position="absolute 1010 10 1066 32" id="btn_ref" class="btn1" taborder="7" text="조회" anchor="top right" onclick="grp_sea_btn_ref_onclick"/>
  12. <Static text="기 간 :" position="absolute 215 12 284 29" id="caption3" class="search_name" anchor="default"/>
  13. <Shape position="absolute 987 10 993 31" linetype="vertical" id="line2" class="line_4" anchor="top right"/>
  14. <Calendar position="absolute 279 11 374 30" id="ipt_fromdd" class="input_essential" taborder="2" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" anchor="default"/>
  15. <Static text="부 서 :" position="absolute 10 12 77 29" id="caption29" class="search_name" anchor="default"/>
  16. <Combo position="absolute 80 11 205 30" id="cmb_deptcd" class="combo_essential" enable="false" taborder="1" innerdataset="@ds_init_deptlist" datacolumn="depthngnm" codecolumn="deptcd" anchor="default" canitemchange="grp_sea_cmb_deptcd_canitemchange"/>
  17. <Static text="등록번호 :" position="absolute 675 12 749 29" id="caption2" class="search_name" visible="false" anchor="default"/>
  18. <Edit position="absolute 753 11 823 30" id="ipt_pid" class="input_search" taborder="4" visible="false" autoselect="true" anchor="default" onkeyup="grp_sea_ipt_pid_onkeyup"/>
  19. <Button position="absolute 1126 10 1182 32" id="button2" class="btn7" taborder="8" text="엑셀" anchor="top right" onclick="grp_sea_button2_onclick"/>
  20. <Calendar position="absolute 389 11 484 30" id="ipt_todd" class="input_essential" taborder="2" autoselect="true" autoskip="true" dateformat="yyyy-MM-dd" value="null" anchor="default"/>
  21. <Static text="~" position="absolute 377 12 389 27" align="align:center middle;" id="caption4" anchor="default"/>
  22. <Button position="absolute 1068 10 1124 32" id="button7" class="btn6" text="출력" anchor="top right" onclick="grp_sea_button7_onclick"/>
  23. </Layout>
  24. </Layouts>
  25. </Div>
  26. <Shape position="absolute 0 64 1195 68" linetype="horizontal" id="line1" class="line_10" anchor="left top right"/>
  27. <Grid position="absolute 0 68 1195 760" id="grd_trmsinfo" class="datagrid2" binddataset="ds_main_trmslist" cellsizingtype="col" selecttype="multirow" anchor="all">
  28. <Formats>
  29. <Format id="default">
  30. <Columns>
  31. <Column size="25" band="left"/>
  32. <Column size="70"/>
  33. <Column size="72"/>
  34. <Column size="30"/>
  35. <Column size="23"/>
  36. <Column size="55"/>
  37. <Column size="55"/>
  38. <Column size="45"/>
  39. <Column size="75"/>
  40. <Column size="114"/>
  41. <Column size="70"/>
  42. <Column size="55"/>
  43. <Column size="55"/>
  44. <Column size="70"/>
  45. <Column size="45"/>
  46. <Column size="70"/>
  47. <Column size="45"/>
  48. <Column size="34"/>
  49. <Column size="88"/>
  50. <Column size="49"/>
  51. <Column size="40"/>
  52. <Column size="45"/>
  53. </Columns>
  54. <Rows>
  55. <Row size="30" band="head"/>
  56. <Row size="24"/>
  57. </Rows>
  58. <Band id="head">
  59. <Cell/>
  60. <Cell col="1" text="일자"/>
  61. <Cell col="2" text="구역"/>
  62. <Cell col="3" text="중증"/>
  63. <Cell col="4" text="KT&#13;&#10;AS" wordwrap="char"/>
  64. <Cell col="5" text="등록번호"/>
  65. <Cell col="6" text="성명"/>
  66. <Cell col="7" text="S/A"/>
  67. <Cell col="8" text="진단코드"/>
  68. <Cell col="9" text="진단명"/>
  69. <Cell col="10" text="진료과"/>
  70. <Cell col="11" text="담당교수"/>
  71. <Cell col="12" text="담당의"/>
  72. <Cell col="13" colspan="2" text="내원일시" taborder="undefined"/>
  73. <Cell col="15" colspan="2" text="퇴실일시" taborder="undefined"/>
  74. <Cell col="17" text="퇴실종류" wordwrap="both" autosizerow="limitmin"/>
  75. <Cell col="18" text="전출의료기관"/>
  76. <Cell col="19" colspan="2" text="입원병실" taborder="undefined"/>
  77. <Cell col="21" text="체류시간(분)" wordwrap="char"/>
  78. </Band>
  79. <Band id="body">
  80. <Cell celltype="head" text="expr:currow + 1"/>
  81. <Cell col="1" text="bind:basedd" mask="####-##-##" suppress="1" suppressalign="middle,over"/>
  82. <Cell col="2" text="bind:bednm" suppress="2" suppressalign="middle,over"/>
  83. <Cell col="3" text="bind:serflag" suppress="0"/>
  84. <Cell col="4" text="bind:ktas"/>
  85. <Cell col="5" text="bind:pid"/>
  86. <Cell col="6" text="bind:patnm"/>
  87. <Cell col="7" text="bind:sexage"/>
  88. <Cell col="8" displaytype="text" style="align:left top;padding:4 2 1 2;" text="bind:diagcd" wordwrap="char"/>
  89. <Cell col="9" displaytype="text" style="align:left top;padding:4 2 1 2;" text="bind:diagnm" wordwrap="char"/>
  90. <Cell col="10" displaytype="text" text="bind:orddeptnm" wordwrap="char"/>
  91. <Cell col="11" displaytype="text" text="bind:jatdoctnm" wordwrap="char"/>
  92. <Cell col="12" displaytype="text" text="bind:datdoctnm" wordwrap="char"/>
  93. <Cell col="13" text="bind:indd" mask="####-##-##"/>
  94. <Cell col="14" text="bind:intm" mask="##:##"/>
  95. <Cell col="15" text="bind:eroutdd" mask="expr:!utlf_isNull(eroutdd) ? '####-##-##' : ''"/>
  96. <Cell col="16" text="bind:erouttm" mask="expr:!utlf_isNull(erouttm) ? '##:##' : ''"/>
  97. <Cell col="17" text="bind:outrmnm"/>
  98. <Cell col="18" displaytype="text" text="bind:chnghospnm"/>
  99. <Cell col="19" displaytype="text" style="align:left top;padding:4 2 1 2;" text="bind:chngwardnm" wordwrap="char"/>
  100. <Cell col="20" displaytype="text" style="align:left top;padding:4 2 1 2;" text="bind:chngroomcd" wordwrap="char"/>
  101. <Cell col="21" displaytype="text" text="bind:durtime"/>
  102. </Band>
  103. </Format>
  104. </Formats>
  105. </Grid>
  106. <CheckBox position="absolute 835 34 901 49" id="checkbox1" visible="false" text="완료제외" truevalue="Y" onclick="comn_onclick"/>
  107. <CheckBox position="absolute 907 34 978 49" id="checkbox2" visible="false" text="취소제외" truevalue="Y" onclick="comn_onclick"/>
  108. </Layout>
  109. </Layouts>
  110. <Objects>
  111. <Dataset id="ds_init_deptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  112. <ColumnInfo>
  113. <Column id="depthngnm" type="STRING"/>
  114. <Column id="deptcd" type="STRING"/>
  115. </ColumnInfo>
  116. </Dataset>
  117. <Dataset id="ds_main_trmslist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  118. <ColumnInfo>
  119. <Column id="basedd" type="STRING"/>
  120. <Column id="bednm" type="STRING"/>
  121. <Column id="serflag" type="STRING"/>
  122. <Column id="ktas" type="STRING"/>
  123. <Column id="pid" type="STRING"/>
  124. <Column id="patnm" type="STRING"/>
  125. <Column id="sexage" type="STRING"/>
  126. <Column id="diagcd" type="STRING"/>
  127. <Column id="diagnm" type="STRING"/>
  128. <Column id="orddeptnm" type="STRING"/>
  129. <Column id="jatdoctnm" type="STRING"/>
  130. <Column id="datdoctnm" type="STRING"/>
  131. <Column id="indd" type="STRING"/>
  132. <Column id="intm" type="STRING"/>
  133. <Column id="eroutdd" type="STRING"/>
  134. <Column id="erouttm" type="STRING"/>
  135. <Column id="outrmnm" type="STRING"/>
  136. <Column id="chnghospnm" type="STRING"/>
  137. <Column id="chngwardnm" type="STRING"/>
  138. <Column id="chngroomcd" type="STRING"/>
  139. <Column id="durtime" type="STRING"/>
  140. </ColumnInfo>
  141. </Dataset>
  142. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  143. <ColumnInfo>
  144. <Column id="deptcd" type="STRING" size="256"/>
  145. <Column id="pid" type="STRING" size="256"/>
  146. <Column id="fromdd" type="STRING" size="256"/>
  147. <Column id="todd" type="STRING" size="256"/>
  148. <Column id="acptflag" type="STRING" size="256"/>
  149. <Column id="exceptflag" type="STRING" size="256"/>
  150. <Column id="multicheck" type="STRING" size="256"/>
  151. <Column id="exceptflag2" type="STRING" size="256"/>
  152. <Column id="deptnm" type="STRING" size="256"/>
  153. <Column id="name" type="STRING" size="256"/>
  154. </ColumnInfo>
  155. <Rows>
  156. <Row>
  157. <Col id="deptcd"/>
  158. <Col id="pid"/>
  159. <Col id="fromdd"/>
  160. <Col id="todd"/>
  161. <Col id="acptflag"/>
  162. <Col id="exceptflag">Y</Col>
  163. <Col id="multicheck"/>
  164. <Col id="exceptflag2">Y</Col>
  165. <Col id="deptnm"/>
  166. <Col id="name"/>
  167. </Row>
  168. </Rows>
  169. </Dataset>
  170. </Objects>
  171. <Bind>
  172. <BindItem id="item0" compid="grp_sea.cmb_deptcd" propid="value" datasetid="ds_main_cond" columnid="deptcd"/>
  173. <BindItem id="item1" compid="grp_sea.ipt_fromdd" propid="value" datasetid="ds_main_cond" columnid="fromdd"/>
  174. <BindItem id="item2" compid="grp_sea.ipt_pid" propid="value" datasetid="ds_main_cond" columnid="pid"/>
  175. <BindItem id="item3" compid="grp_sea.ipt_todd" propid="value" datasetid="ds_main_cond" columnid="todd"/>
  176. <BindItem id="item4" compid="checkbox1" propid="value" datasetid="ds_main_cond" columnid="exceptflag"/>
  177. <BindItem id="item5" compid="checkbox2" propid="value" datasetid="ds_main_cond" columnid="exceptflag2"/>
  178. </Bind>
  179. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  180. * System Name :
  181. * Job Name :
  182. * Creator :
  183. * Make Date : 2015-05-01
  184. * Description :
  185. *---------------------------------------------------------------------------------------
  186. * Modify Date Modifier Modify Description
  187. *---------------------------------------------------------------------------------------
  188. * 2015-05-01 Live Converter TF->XP
  189. *
  190. *---------------------------------------------------------------------------------------
  191. ****************************************************************************************/
  192. //=======================================================================================
  193. // Lib Include
  194. //---------------------------------------------------------------------------------------
  195. include "com_commonxp::comm_main.xjs"
  196. //=======================================================================================
  197. // Global Form Variable
  198. //---------------------------------------------------------------------------------------
  199. //var arErrorCode = new HashArray();
  200. //=======================================================================================
  201. // Function
  202. //---------------------------------------------------------------------------------------
  203. /****************************************************************************************
  204. * Argument : N/A
  205. * Description : 조회
  206. ****************************************************************************************/
  207. function fSearch() {
  208. ds_main_trmslist.clearData();
  209. var oParam = {};
  210. oParam.id = "TRMNW20020";
  211. oParam.service = "wardcareapp.TranMngt";
  212. oParam.method = "reqGetTIPatInfoList";
  213. oParam.inds = "req=ds_main_cond";
  214. oParam.outds = "ds_main_trmslist=trmslist";
  215. oParam.async = true;
  216. //oParam.callback = "cf_TRMNW20020";
  217. tranf_submit(oParam);
  218. }
  219. //=======================================================================================
  220. // Event
  221. //---------------------------------------------------------------------------------------
  222. /****************************************************************************************
  223. * Components : Form
  224. * Components ID : SMMNW20020
  225. * Event : oninit
  226. * Argument : 01.obj : Object Event has occurred
  227. * : 02.e : Event Object
  228. * Description : 화면 초기화
  229. ****************************************************************************************/
  230. function SMMNW20020_oninit(obj:Form, e:InitEventInfo)
  231. {
  232. frmf_initForm(obj);
  233. }
  234. /****************************************************************************************
  235. * Components : Form
  236. * Components ID : SMMNW20020
  237. * Event : onload
  238. * Argument : 01.obj : Object Event has occurred
  239. * : 02.e : Event Object
  240. * Description : 화면 초기화
  241. ****************************************************************************************/
  242. function SMMNW20020_onload(obj:Form, e:LoadEventInfo)
  243. {
  244. grdf_setGridSort(grd_trmsinfo);
  245. grdf_setToolTipBind(grd_trmsinfo);
  246. var sWardcd = "3041601000"
  247. var instcd = sysf_getUserInfo("dutplceinstcd");
  248. var standard_yn = "orduseyn";
  249. var ord_deptflag = 'W';
  250. var sort_field = "depthngnm";
  251. var sort_method = "asc";
  252. var dt = utlf_getCurrentDate();
  253. dsf_createDsRow("ds_send_savedata", [{col:"comnrefflag", type:"STRING", size:256, val:""}
  254. , {col:"flag", type:"STRING", size:256, val:""}]);
  255. var oParam = {};
  256. oParam.id = "TRMNW11001";
  257. oParam.service = "wardorderapp.NursPrcpMngt";
  258. oParam.method = "reqGetDeptListInfo";
  259. oParam.inds = "req=ds_send_savedata";
  260. oParam.outds = "ds_init_deptlist=deptlist";
  261. oParam.async = false;
  262. //oParam.callback = "cf_TRMNW11001";
  263. tranf_submit(oParam);
  264. frmf_addComboItem("grp_sea.cmb_deptcd" , "전 체", "", "above");
  265. ds_main_cond.setColumn(0, "fromdd", utlf_getCurrentDate());
  266. ds_main_cond.setColumn(0, "todd", utlf_getCurrentDate());
  267. ds_main_cond.setColumn(0, "deptcd", sWardcd);
  268. ds_main_cond.setColumn(0, "name", "외상소생구역 환자대장");
  269. fSearch() ;
  270. }
  271. /****************************************************************************************
  272. * Components : Button
  273. * Components ID : grp_sea.btn_ref
  274. * Event : onclick
  275. * Argument : 01.obj : Object Event has occurred
  276. * : 02.e : Event Object
  277. * Description : 조회
  278. ****************************************************************************************/
  279. function grp_sea_btn_ref_onclick(obj:Button, e:ClickEventInfo)
  280. {
  281. fSearch() ;
  282. }
  283. /****************************************************************************************
  284. * Components : Button
  285. * Components ID : grp_sea.cmb_deptcd
  286. * Event : onclick
  287. * Argument : 01.obj : Object Event has occurred
  288. * : 02.e : Event Object
  289. * Description : 부서 변경 이벤트
  290. ****************************************************************************************/
  291. function grp_sea_cmb_deptcd_canitemchange(obj:Combo, e:ItemChangeEventInfo)
  292. {
  293. fSearch();
  294. }
  295. /****************************************************************************************
  296. * Components : Button
  297. * Components ID : grp_sea.ipt_pid
  298. * Event : onkeyup
  299. * Argument : 01.obj : Object Event has occurred
  300. * : 02.e : Event Object
  301. * Description : 등록번호 입력(사용안함)
  302. ****************************************************************************************/
  303. function grp_sea_ipt_pid_onkeyup(obj:Edit, e:KeyEventInfo)
  304. {
  305. grp_sea.btn_ref.click();
  306. }
  307. /****************************************************************************************
  308. * Components : Button
  309. * Components ID : grp_sea.button2
  310. * Event : onclick
  311. * Argument : 01.obj : Object Event has occurred
  312. * : 02.e : Event Object
  313. * Description : 엑셀 저장
  314. ****************************************************************************************/
  315. function grp_sea_button2_onclick(obj:Button, e:ClickEventInfo)
  316. {
  317. grdf_exportExcel(grd_trmsinfo, "외상소생구역 환자대장", "SheetName", true);
  318. }
  319. /****************************************************************************************
  320. * Components : Button
  321. * Components ID : grp_sea.button7
  322. * Event : onclick
  323. * Argument : 01.obj : Object Event has occurred
  324. * : 02.e : Event Object
  325. * Description : 출력
  326. ****************************************************************************************/
  327. function grp_sea_button7_onclick(obj:Button, e:ClickEventInfo)
  328. {
  329. ds_main_cond.setColumn(0, "deptnm", grp_sea.cmb_deptcd.text);
  330. var objDOM = rptf_createDOM(); // DOM 객체 설정
  331. rptf_setNodeListToDOM(objDOM, "/root/temp/cond", ds_main_cond );
  332. rptf_setNodeListToDOM(objDOM, "/root/temp/trmsinfo/trmslist", ds_main_trmslist );
  333. var objParam = new Object();
  334. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  335. var option = "open=1;save=1;directprint=0;printdailog=0;print=1;zoom=0;";
  336. rptf_exeReportPreview30(["RPMNW20020"],[objParam], option);
  337. }
  338. /****************************************************************************************
  339. * Components : CheckBox
  340. * Components ID : grp_sea
  341. * Event : onclick
  342. * Argument : 01.obj : Object Event has occurred
  343. * : 02.e : Event Object
  344. * Description : 체크박스 값 설정
  345. ****************************************************************************************/
  346. function comn_onclick(obj:CheckBox, e:ClickEventInfo)
  347. {
  348. if(obj.value != "Y"){
  349. var sName = "exceptflag";
  350. if( obj.name == "checkbox2" ) sName = "exceptflag2";
  351. ds_main_cond.setColumn(0, sName, "");
  352. }
  353. fSearch() ;
  354. }
  355. ]]></Script>
  356. </Form>
  357. </FDL>