SMMNE01400_인계용 sheet.xfdl 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNE01400" position="absolute 0 0 1197 779" titletext="인계용 Sheet" oninit="SMMNE01400_oninit" onload="SMMNE01400_onload" ontimer="SMMNE01400_ontimer">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp_btn" taborder="0" position="absolute 0 750 1195 777" class="div_SA2" anchor="left right bottom">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption41" text="상태 - ⓐ : 입원 / ⓓ : 퇴원예고 / ⓒ : 간호사 퇴원정리완료" position="absolute 13 4 506 24" anchor="default"/>
  11. <Static id="caption47" text="입원장 - 응급입원장: ◇ / 입원수속: ◈ / 병실배정: ◆ / 외래입원장: ◎" position="absolute 551 4 945 24" anchor="default"/>
  12. <Static id="caption1" text="[표]" position="absolute 1165 4 1195 24" anchor="default"/>
  13. </Layout>
  14. </Layouts>
  15. </Div>
  16. <Shape id="line1" linetype="horizontal" class="line_1" position="absolute 0 75 1195 81" anchor="left top right"/>
  17. <Grid id="grd_patlist" class="datagrid2" taborder="1" binddataset="ds_main_nursemainlist" useinputpanel="false" position="absolute 0 81 1195 747" anchor="all" cellsizingtype="col" tooltiptype="hover">
  18. <Formats>
  19. <Format id="default">
  20. <Columns>
  21. <Column size="55"/>
  22. <Column size="30"/>
  23. <Column size="70"/>
  24. <Column size="75"/>
  25. <Column size="70"/>
  26. <Column size="45"/>
  27. <Column size="56"/>
  28. <Column size="54"/>
  29. <Column size="48"/>
  30. <Column size="49"/>
  31. <Column size="56"/>
  32. <Column size="60"/>
  33. <Column size="233"/>
  34. <Column size="50"/>
  35. <Column size="145"/>
  36. <Column size="145"/>
  37. <Column size="84"/>
  38. <Column size="56"/>
  39. </Columns>
  40. <Rows>
  41. <Row size="35" band="head"/>
  42. <Row size="24"/>
  43. </Rows>
  44. <Band id="head">
  45. <Cell text="Bed"/>
  46. <Cell col="1" text="상태"/>
  47. <Cell col="2" text="입원장"/>
  48. <Cell col="3" text="등록번호"/>
  49. <Cell col="4" text="환자명"/>
  50. <Cell col="5" text="S/A"/>
  51. <Cell col="6" text="주진료과"/>
  52. <Cell col="7" text="담당교수"/>
  53. <Cell col="8" colspan="2" text="담당의" taborder="undefined"/>
  54. <Cell col="10" text="호출&#10;진료과"/>
  55. <Cell col="11" text="호출의사"/>
  56. <Cell col="12" text="주호소"/>
  57. <Cell col="13" text="병실"/>
  58. <Cell col="14" text="Remark"/>
  59. <Cell col="15" text="Remark2"/>
  60. <Cell col="16" text="내원일자"/>
  61. <Cell col="17" text="내원시간"/>
  62. </Band>
  63. <Band id="body">
  64. <Cell text="bind:bedposcnts" tooltiptext="bind:bedposcnts"/>
  65. <Cell col="1" text="bind:stat" tooltiptext="bind:stat"/>
  66. <Cell col="2" text="bind:inreq" tooltiptext="bind:inreq"/>
  67. <Cell col="3" text="bind:pid" tooltiptext="bind:pid"/>
  68. <Cell col="4" text="bind:patnm" tooltiptext="bind:patnm"/>
  69. <Cell col="5" text="bind:grdrage" tooltiptext="bind:grdrage"/>
  70. <Cell col="6" text="bind:juorddeptcd" tooltiptext="bind:juorddeptcd"/>
  71. <Cell col="7" text="bind:juorddrid" tooltiptext="bind:juorddrid"/>
  72. <Cell col="8" text="bind:damorddrid" tooltiptext="bind:damorddrid"/>
  73. <Cell col="9" text="bind:dampdano" tooltiptext="bind:dampdano"/>
  74. <Cell col="10" text="bind:orddeptcd" tooltiptext="bind:orddeptcd"/>
  75. <Cell col="11" text="bind:orddrid" tooltiptext="bind:orddrid"/>
  76. <Cell col="12" style="align:left middle;" text="bind:cc" tooltiptext="bind:cc"/>
  77. <Cell col="13" text="bind:assgroom" tooltiptext="bind:assgroom"/>
  78. <Cell col="14" style="align:left;" text="bind:telrsrvrem" tooltiptext="bind:telrsrvrem"/>
  79. <Cell col="15" style="align:left;" text="bind:spcltest" tooltiptext="bind:spcltest"/>
  80. <Cell col="16" displaytype="expr:utlf_isNull(chosdd) ? 'normal' : 'date'" text="bind:chosdd" tooltiptext="bind:chosdd"/>
  81. <Cell col="17" text="bind:chostm" mask="expr:utlf_isNull(chostm) ? '' : '99:99'" tooltiptext="bind:chostm"/>
  82. </Band>
  83. </Format>
  84. </Formats>
  85. </Grid>
  86. <Div id="grp_sea" taborder="2" class="div_SA" position="absolute 0 25 1195 65" anchor="left top right">
  87. <Layouts>
  88. <Layout>
  89. <Button id="btn_search" taborder="1" text="조회" class="btn1" position="absolute 1013 10 1069 32" anchor="top right" onclick="grp_sea_btn_search_onclick"/>
  90. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1002 10 1008 32" anchor="top right"/>
  91. <Static id="caption3" text="구역 :" class="search_name" position="absolute 16 14 61 26" anchor="default"/>
  92. <Combo id="cmb_section" taborder="4" innerdataset="ds_init_cmb_section" codecolumn="bedcd" datacolumn="bednm" visible="false" position="absolute 714 8 834 30" anchor="default"/>
  93. <Button id="btn_excelprint" taborder="6" text="엑셀" class="btn7" position="absolute 1127 10 1183 32" anchor="top right" onclick="grp_sea_btn_excelprint_onclick"/>
  94. <Button id="btn_print" taborder="7" text="출력" class="btn6" position="absolute 1070 10 1126 32" anchor="top right" onclick="grp_sea_btn_print_onclick"/>
  95. <cp_checkboxList id="checkbox1" taborder="8" text="cp_checkboxList00" scrollbars="none" position="absolute 64 9 684 28" style="background:transparent; " col="1" row="1" cellspacing="2" vcellspacing="0" itemWidth="100" itemHeight="20" overflow="visible"/>
  96. </Layout>
  97. </Layouts>
  98. </Div>
  99. <Static id="caption6" text="인계용 sheet" class="tit_1" position="absolute 0 0 114 25"/>
  100. <Shape id="line00" class="line_10" position="absolute 0 76 1195 82" anchor="left top right"/>
  101. </Layout>
  102. </Layouts>
  103. <Objects>
  104. <Dataset id="ds_main_nursemainlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  105. <ColumnInfo>
  106. <Column id="bedposcnts" type="STRING"/>
  107. <Column id="stat" type="STRING"/>
  108. <Column id="inreq" type="STRING"/>
  109. <Column id="pid" type="STRING"/>
  110. <Column id="patnm" type="STRING"/>
  111. <Column id="grdrage" type="STRING"/>
  112. <Column id="juorddeptcd" type="STRING"/>
  113. <Column id="juorddrid" type="STRING"/>
  114. <Column id="damorddrid" type="STRING"/>
  115. <Column id="dampdano" type="STRING"/>
  116. <Column id="orddeptcd" type="STRING"/>
  117. <Column id="orddrid" type="STRING"/>
  118. <Column id="cc" type="STRING"/>
  119. <Column id="assgroom" type="STRING"/>
  120. <Column id="telrsrvrem" type="STRING"/>
  121. <Column id="spcltest" type="STRING"/>
  122. <Column id="chosdd" type="STRING"/>
  123. <Column id="chostm" type="STRING"/>
  124. </ColumnInfo>
  125. </Dataset>
  126. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  127. <ColumnInfo>
  128. <Column id="section" type="STRING" size="256"/>
  129. <Column id="todate" type="STRING" size="256"/>
  130. </ColumnInfo>
  131. <Rows>
  132. <Row>
  133. <Col id="section">-</Col>
  134. </Row>
  135. </Rows>
  136. </Dataset>
  137. <Dataset id="ds_init_erbaselist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  138. <ColumnInfo>
  139. <Column id="bedcd" type="STRING" size="256"/>
  140. <Column id="bednm" type="STRING" size="256"/>
  141. </ColumnInfo>
  142. <Rows>
  143. <Row/>
  144. </Rows>
  145. </Dataset>
  146. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  147. </Objects>
  148. <Bind>
  149. <BindItem id="item0" compid="grp_sea.cmb_section" propid="value" datasetid="ds_main_cond" columnid="section"/>
  150. </Bind>
  151. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  152. * System Name :
  153. * Job Name :
  154. * Creator :
  155. * Make Date : 2015-11-13
  156. * Description :
  157. *---------------------------------------------------------------------------------------
  158. * Modify Date Modifier Modify Description
  159. *---------------------------------------------------------------------------------------
  160. * 2015-11-13 Live Converter TF->XP
  161. *
  162. *---------------------------------------------------------------------------------------
  163. ****************************************************************************************/
  164. include "com_commonxp::comm_main.xjs";
  165. /******************************************************************
  166. * Argument :
  167. * Description : 초기화
  168. ******************************************************************/
  169. function SMMNE01400_oninit(obj:Form, e:InitEventInfo)
  170. {
  171. frmf_initForm(obj);
  172. }
  173. function SMMNE01400_onload(obj:Form, e:LoadEventInfo)
  174. {
  175. ds_main_cond.setColumn(0, "todate", utlf_getCurrentDate());
  176. ds_send.clearData();
  177. ds_send.addColumn("searchitem", "string", 256);
  178. var iRow = ds_send.addRow();
  179. ds_send.setColumn(iRow, "searchitem", "sheetbed");
  180. var oParam = {};
  181. oParam.id = "TRMNE00203";
  182. oParam.service = "ercareapp.ERPatMngt";
  183. oParam.method = "reqGetERBasetList";
  184. oParam.inds = "req=ds_send";
  185. oParam.outds = "ds_init_erbaselist=bedinfo";
  186. oParam.async = false;
  187. //oParam.callback = "cf_TRMNE00203";
  188. tranf_submit(oParam);
  189. // 구역
  190. var sProp1="col="+ds_init_erbaselist.rowcount+",row=1,cellspacing=5,vcellspacing=0,itemWidth=-1,itemHeight=20,overflow=''";
  191. grp_sea.checkbox1.setInitComp(sProp1, ds_init_erbaselist, "bedcd", "bednm", "fn_setErbase");
  192. fn_getErbase();
  193. //속도개선
  194. this.setTimer(0, 100);
  195. //fSearchSheet();
  196. }
  197. /******************************************************************
  198. * Argument :
  199. * Description : 구역 bind set
  200. ******************************************************************/
  201. function fn_setErbase(code){
  202. var aValue = utlf_transNullToEmpty(grp_sea.checkbox1.getData());
  203. var nRow = String(aValue).indexOf("-");
  204. if( aValue.length > 1 && nRow > -1 ){
  205. grp_sea.checkbox1.setCheckAll(false);
  206. grp_sea.checkbox1.setData(["-"]);
  207. }
  208. var setData = String(grp_sea.checkbox1.getData()).replace(",", " ")
  209. ds_main_cond.setColumn(0, "section", setData);
  210. }
  211. /******************************************************************
  212. * Argument :
  213. * Description : 구역 DBget
  214. ******************************************************************/
  215. function fn_getErbase(){
  216. if(!utlf_isNull(ds_main_cond.getColumn(0, "section"))) {
  217. var getData = ds_main_cond.getColumn(0, "section").split(" ");
  218. grp_sea.checkbox1.setData(getData);
  219. }
  220. }
  221. /******************************************************************
  222. * Argument : fSearchSheet()
  223. * Description : 조회
  224. ******************************************************************/
  225. function fSearchSheet(){
  226. // ds_send.clear();
  227. // ds_send.addColumn("section", "string", 256);
  228. // var iRow = ds_send.addRow();
  229. // ds_send.setColumn(iRow, "section", ds_main_cond.getColumn(0, "section"));
  230. // trace(ds_send.saveXML());
  231. // dsf_createDsRow("ds_mainsearchinfo",
  232. // [{col:"test", type:"string", size:256, val:""}], true);
  233. //
  234. // var oParam = {};
  235. // oParam.id = "TRMNE00101";
  236. // oParam.service = "ercareapp.ERPatMngt";
  237. // oParam.method = "reqGetNurseMainInfo";
  238. // oParam.inds = "mainsearchinfo=ds_mainsearchinfo searchinfo=ds_send";
  239. // oParam.outds = "ds_main_nursemainlist=nursemaininfo";
  240. // oParam.async = false;
  241. // //oParam.callback = "cf_TRMNE00101";
  242. //
  243. // tranf_submit(oParam);
  244. var rendcd="";
  245. var chkdata=ds_main_cond.getColumn(0, "section");
  246. rendcd=ds_main_cond.getColumn(0, "section");
  247. var rendcdlist=rendcd.split(" ");
  248. if (chkdata.substr(0,1) != "-") {
  249. if (rendcd.length>0) {
  250. for (var i=0; i<rendcdlist.length;i++) {
  251. rendcd=rendcd.replace(" ","','");
  252. }
  253. rendcd="('" + rendcd + "')";
  254. }
  255. } else {
  256. rendcd = "-";
  257. }
  258. //model.makeValue("/root/main/cond/section",rendcd);
  259. var sSrchData = "";
  260. var sSrchHeader = "section▩";
  261. //var sSrchData = model.getValue("/root/main/cond/section")+"▩";
  262. sSrchData=rendcd ;
  263. ds_send.clear();
  264. ds_send.addColumn("section", "string", 256);
  265. var iRow = ds_send.addRow();
  266. ds_send.setColumn(iRow, "section", sSrchData);
  267. dsf_createDsRow("ds_mainsearchinfo",
  268. [{col:"test", type:"string", size:256, val:""}], true);
  269. var oParam = {};
  270. oParam.id = "TRMNE00101";
  271. oParam.service = "ercareapp.ERPatMngt";
  272. oParam.method = "reqGetNurseMainInfo";
  273. oParam.inds = "mainsearchinfo=ds_mainsearchinfo searchinfo=ds_send";
  274. oParam.outds = "ds_main_nursemainlist=nursemaininfo";
  275. oParam.async = false;
  276. //oParam.callback = "cf_TRMNE00101";
  277. tranf_submit(oParam);
  278. }
  279. /******************************************************************
  280. * Argument :
  281. * Description : 조회 button event
  282. ******************************************************************/
  283. function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
  284. {
  285. fSearchSheet();
  286. }
  287. /******************************************************************
  288. * Argument :
  289. * Description : 출력 button event
  290. ******************************************************************/
  291. function grp_sea_btn_print_onclick(obj:Button, e:ClickEventInfo)
  292. {
  293. var objDOM = rptf_createDOM(); // DOM 객체 설정
  294. rptf_setNodeListToDOM(objDOM, "/root/send/nursemainlist/nursemaininfo", ds_main_nursemainlist); // 데이터셋 1
  295. rptf_setNodeListToDOM(objDOM, "/root/send/cond", ds_main_cond); // 데이터셋 2
  296. //sysf_trace(objDOM.documentElement.source); // XML 내용출력
  297. var objParam = new Object();
  298. objParam.xml_data_XML1 = objDOM.documentElement.source; // 최상의노드 XML 스트링 추출
  299. var option = "open=1;save=1;directprint=0;print=1;zoom=0;excel=1;";
  300. rptf_exeReportPreview30(["RPMNE01400"],[objParam], option, null, null);
  301. }
  302. /******************************************************************
  303. * Argument :
  304. * Description : 엑셀 button event
  305. ******************************************************************/
  306. function grp_sea_btn_excelprint_onclick(obj:Button, e:ClickEventInfo)
  307. {
  308. if( ds_main_nursemainlist.rowcount > 0 ){
  309. grdf_exportExcel(grd_patlist, "인계용 Sheet", "인계용 Sheet", false, "", "user", false);
  310. } else {
  311. sysf_messageBox("조회된 데이터가 ", "I004");
  312. }
  313. }
  314. function SMMNE01400_ontimer(obj:Form, e:TimerEventInfo)
  315. {
  316. if (e.timerid == 0) {
  317. this.killTimer(0);
  318. fSearchSheet();
  319. }
  320. }
  321. ]]></Script>
  322. </Form>
  323. </FDL>