SMMND04000_신장실환자명단조회.xfdl 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMND04000" position="absolute 0 0 1194 850" titletext="신장실 환자명단조회" onload="SMMND04000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group1" position="absolute 0 0 1194 25" style="" anchor="left top right">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption6" class="tit_1" position="absolute 0 0 154 25" style="" text="신장실 환자명단조회" anchor="default"/>
  11. </Layout>
  12. </Layouts>
  13. </Div>
  14. <Div id="group3" scrollbars="autoboth" position="absolute 0 13 1194 819" style="" anchor="all">
  15. <Layouts>
  16. <Layout>
  17. <Div id="group2" position="absolute 0 12 1194 55" style="align: top;" class="div_SA" anchor="left top right">
  18. <Layouts>
  19. <Layout>
  20. <Button id="btn_Query" class="btn1" position="absolute 967 13 1023 33" style="" text="조회" onclick="group3_group2_btn_Query_onclick" anchor="top right"/>
  21. <Static id="caption12" class="search_name" position="absolute 11 13 85 33" style="" text="예약일자:" anchor="default"/>
  22. <Calendar id="ipt_rsrvdd" class="input_essential" position="absolute 95 12 203 32" style="" anchor="default" value="null" onchanged="group3_group2_ipt_rsrvdd_onchanged" autoselect="true" dateformat="yyyy-MM-dd ddd"/>
  23. <Button id="btn_Print" class="btn6" position="absolute 1032 13 1088 33" style="" text="출력" onclick="group3_group2_btn_Print_onclick" anchor="top right"/>
  24. <Button id="button2" class="btn7" position="absolute 1096 13 1176 33" style="" text="엑셀저장" onclick="group3_group2_button2_onclick" anchor="top right"/>
  25. </Layout>
  26. </Layouts>
  27. </Div>
  28. <Shape id="line2" class="line_10" linetype="horizontal" position="absolute 0 58 1194 62" anchor="left top right"/>
  29. <Grid id="datagrid1" binddataset="ds_main_bdHtRsrvPatinfo_bdHtRsrvPatlist" class="datagrid2" position="absolute 0 62 1194 804" style="" anchor="all" autofittype="col">
  30. <Formats>
  31. <Format id="default">
  32. <Columns>
  33. <Column size="50"/>
  34. <Column size="62"/>
  35. <Column size="62"/>
  36. <Column size="62"/>
  37. <Column size="62"/>
  38. <Column size="62"/>
  39. <Column size="62"/>
  40. <Column size="62"/>
  41. <Column size="62"/>
  42. <Column size="62"/>
  43. <Column size="62"/>
  44. <Column size="62"/>
  45. <Column size="62"/>
  46. <Column size="62"/>
  47. <Column size="62"/>
  48. <Column size="62"/>
  49. <Column size="62"/>
  50. <Column size="62"/>
  51. <Column size="62"/>
  52. </Columns>
  53. <Rows>
  54. <Row size="24" band="head"/>
  55. <Row size="24" band="head"/>
  56. <Row size="24"/>
  57. </Rows>
  58. <Band id="head">
  59. <Cell rowspan="2" text="순서" taborder="undefined"/>
  60. <Cell col="1" colspan="3" text="월 (01_04)" taborder="undefined"/>
  61. <Cell col="4" colspan="3" text="화 (01_05)" taborder="undefined"/>
  62. <Cell col="7" colspan="3" text="수 (01_06)" taborder="undefined"/>
  63. <Cell col="10" colspan="3" text="목 (01_07)" taborder="undefined"/>
  64. <Cell col="13" colspan="3" text="금 (01_08)" taborder="undefined"/>
  65. <Cell col="16" colspan="3" text="토 (01_09)" taborder="undefined"/>
  66. <Cell col="19" text="1"/>
  67. <Cell col="20" text="2"/>
  68. <Cell col="21" text="3"/>
  69. <Cell col="22" text="1"/>
  70. <Cell col="23" text="2"/>
  71. <Cell col="24" text="3"/>
  72. <Cell col="25" text="1"/>
  73. <Cell col="26" text="2"/>
  74. <Cell col="27" text="3"/>
  75. <Cell col="28" text="1"/>
  76. <Cell col="29" text="2"/>
  77. <Cell col="30" text="3"/>
  78. <Cell col="31" text="1"/>
  79. <Cell col="32" text="2"/>
  80. <Cell col="33" text="3"/>
  81. <Cell col="34" text="1"/>
  82. <Cell col="35" text="2"/>
  83. <Cell col="36" text="3"/>
  84. <Cell row="1" col="1" text="1"/>
  85. <Cell row="1" col="2" text="2"/>
  86. <Cell row="1" col="3" text="3"/>
  87. <Cell row="1" col="4" text="1"/>
  88. <Cell row="1" col="5" text="2"/>
  89. <Cell row="1" col="6" text="3"/>
  90. <Cell row="1" col="7" text="1"/>
  91. <Cell row="1" col="8" text="2"/>
  92. <Cell row="1" col="9" text="3"/>
  93. <Cell row="1" col="10" text="1"/>
  94. <Cell row="1" col="11" text="2"/>
  95. <Cell row="1" col="12" text="3"/>
  96. <Cell row="1" col="13" text="1"/>
  97. <Cell row="1" col="14" text="2"/>
  98. <Cell row="1" col="15" text="3"/>
  99. <Cell row="1" col="16" text="1"/>
  100. <Cell row="1" col="17" text="2"/>
  101. <Cell row="1" col="18" text="3"/>
  102. <Cell row="1" col="19"/>
  103. <Cell row="1" col="20"/>
  104. <Cell row="1" col="21"/>
  105. <Cell row="1" col="22"/>
  106. <Cell row="1" col="23"/>
  107. <Cell row="1" col="24"/>
  108. <Cell row="1" col="25"/>
  109. <Cell row="1" col="26"/>
  110. <Cell row="1" col="27"/>
  111. <Cell row="1" col="28"/>
  112. <Cell row="1" col="29"/>
  113. <Cell row="1" col="30"/>
  114. <Cell row="1" col="31"/>
  115. <Cell row="1" col="32"/>
  116. <Cell row="1" col="33"/>
  117. <Cell row="1" col="34"/>
  118. <Cell row="1" col="35"/>
  119. <Cell row="1" col="36"/>
  120. </Band>
  121. <Band id="body">
  122. <Cell text="bind:seq"/>
  123. <Cell col="1" text="bind:mmdd11"/>
  124. <Cell col="2" text="bind:mmdd12"/>
  125. <Cell col="3" text="bind:mmdd13"/>
  126. <Cell col="4" text="bind:mmdd21"/>
  127. <Cell col="5" text="bind:mmdd22"/>
  128. <Cell col="6" text="bind:mmdd23"/>
  129. <Cell col="7" text="bind:mmdd31"/>
  130. <Cell col="8" text="bind:mmdd32"/>
  131. <Cell col="9" text="bind:mmdd33"/>
  132. <Cell col="10" text="bind:mmdd41"/>
  133. <Cell col="11" text="bind:mmdd42"/>
  134. <Cell col="12" text="bind:mmdd43"/>
  135. <Cell col="13" text="bind:mmdd51"/>
  136. <Cell col="14" text="bind:mmdd52"/>
  137. <Cell col="15" text="bind:mmdd53"/>
  138. <Cell col="16" text="bind:mmdd61"/>
  139. <Cell col="17" text="bind:mmdd62"/>
  140. <Cell col="18" text="bind:mmdd63"/>
  141. </Band>
  142. </Format>
  143. </Formats>
  144. </Grid>
  145. </Layout>
  146. </Layouts>
  147. </Div>
  148. <Div id="grp_btn" scrollbars="autoboth" position="absolute 0 823 1192 850" style="" anchor="left right bottom"/>
  149. </Layout>
  150. </Layouts>
  151. <Objects>
  152. <Dataset id="ds_main_bdHtRsrvPatinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  153. <ColumnInfo/>
  154. </Dataset>
  155. <Dataset id="ds_main_bdHtRsrvPatinfo_bdHtRsrvPatlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  156. <ColumnInfo>
  157. <Column id="seq" type="STRING" size="256"/>
  158. <Column id="mmdd11" type="STRING" size="256"/>
  159. <Column id="mmdd12" type="STRING" size="256"/>
  160. <Column id="mmdd13" type="STRING" size="256"/>
  161. <Column id="mmdd21" type="STRING" size="256"/>
  162. <Column id="mmdd22" type="STRING" size="256"/>
  163. <Column id="mmdd23" type="STRING" size="256"/>
  164. <Column id="mmdd31" type="STRING" size="256"/>
  165. <Column id="mmdd32" type="STRING" size="256"/>
  166. <Column id="mmdd33" type="STRING" size="256"/>
  167. <Column id="mmdd41" type="STRING" size="256"/>
  168. <Column id="mmdd42" type="STRING" size="256"/>
  169. <Column id="mmdd43" type="STRING" size="256"/>
  170. <Column id="mmdd51" type="STRING" size="256"/>
  171. <Column id="mmdd52" type="STRING" size="256"/>
  172. <Column id="mmdd53" type="STRING" size="256"/>
  173. <Column id="mmdd61" type="STRING" size="256"/>
  174. <Column id="mmdd62" type="STRING" size="256"/>
  175. <Column id="mmdd63" type="STRING" size="256"/>
  176. </ColumnInfo>
  177. <Rows>
  178. <Row>
  179. <Col id="seq"/>
  180. <Col id="mmdd11"/>
  181. <Col id="mmdd12"/>
  182. <Col id="mmdd13"/>
  183. <Col id="mmdd21"/>
  184. <Col id="mmdd22"/>
  185. <Col id="mmdd23"/>
  186. <Col id="mmdd31"/>
  187. <Col id="mmdd32"/>
  188. <Col id="mmdd33"/>
  189. <Col id="mmdd41"/>
  190. <Col id="mmdd42"/>
  191. <Col id="mmdd43"/>
  192. <Col id="mmdd51"/>
  193. <Col id="mmdd52"/>
  194. <Col id="mmdd53"/>
  195. <Col id="mmdd61"/>
  196. <Col id="mmdd62"/>
  197. <Col id="mmdd63"/>
  198. </Row>
  199. </Rows>
  200. </Dataset>
  201. <Dataset id="ds_cmn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  202. <ColumnInfo>
  203. <Column id="cmn" type="STRING" size="256"/>
  204. </ColumnInfo>
  205. <Rows>
  206. <Row>
  207. <Col id="cmn"/>
  208. </Row>
  209. </Rows>
  210. </Dataset>
  211. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  212. <ColumnInfo/>
  213. </Dataset>
  214. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  215. <ColumnInfo>
  216. <Column id="init" type="STRING" size="256"/>
  217. </ColumnInfo>
  218. </Dataset>
  219. <Dataset id="ds_main_prtmmddinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  220. <ColumnInfo>
  221. <Column id="prtmmdd1" type="STRING" size="256"/>
  222. <Column id="prtmmdd2" type="STRING" size="256"/>
  223. <Column id="prtmmdd3" type="STRING" size="256"/>
  224. <Column id="prtmmdd4" type="STRING" size="256"/>
  225. <Column id="prtmmdd5" type="STRING" size="256"/>
  226. <Column id="prtmmdd6" type="STRING" size="256"/>
  227. </ColumnInfo>
  228. <Rows>
  229. <Row>
  230. <Col id="prtmmdd1"/>
  231. <Col id="prtmmdd2"/>
  232. <Col id="prtmmdd3"/>
  233. <Col id="prtmmdd4"/>
  234. <Col id="prtmmdd5"/>
  235. <Col id="prtmmdd6"/>
  236. </Row>
  237. </Rows>
  238. </Dataset>
  239. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  240. <ColumnInfo>
  241. <Column id="send" type="STRING" size="256"/>
  242. </ColumnInfo>
  243. <Rows>
  244. <Row>
  245. <Col id="send"/>
  246. </Row>
  247. </Rows>
  248. </Dataset>
  249. <Dataset id="ds_main_prtmmddWinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  250. <ColumnInfo>
  251. <Column id="prtmmddW1" type="STRING" size="256"/>
  252. <Column id="prtmmddW2" type="STRING" size="256"/>
  253. <Column id="prtmmddW3" type="STRING" size="256"/>
  254. <Column id="prtmmddW4" type="STRING" size="256"/>
  255. <Column id="prtmmddW5" type="STRING" size="256"/>
  256. <Column id="prtmmddW6" type="STRING" size="256"/>
  257. </ColumnInfo>
  258. <Rows>
  259. <Row>
  260. <Col id="prtmmddW1"/>
  261. <Col id="prtmmddW2"/>
  262. <Col id="prtmmddW3"/>
  263. <Col id="prtmmddW4"/>
  264. <Col id="prtmmddW5"/>
  265. <Col id="prtmmddW6"/>
  266. </Row>
  267. </Rows>
  268. </Dataset>
  269. <Dataset id="ds_main_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  270. <ColumnInfo>
  271. <Column id="rsrvdd" type="STRING" size="256"/>
  272. </ColumnInfo>
  273. <Rows>
  274. <Row>
  275. <Col id="rsrvdd"/>
  276. </Row>
  277. </Rows>
  278. </Dataset>
  279. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  280. <ColumnInfo>
  281. <Column id="hidden" type="STRING" size="256"/>
  282. </ColumnInfo>
  283. <Rows>
  284. <Row>
  285. <Col id="hidden"/>
  286. </Row>
  287. </Rows>
  288. </Dataset>
  289. </Objects>
  290. <Bind>
  291. <BindItem id="item0" compid="group3.group2.ipt_rsrvdd" propid="value" datasetid="ds_main_cond" columnid="rsrvdd"/>
  292. </Bind>
  293. <Script type="xscript4.0"><![CDATA[include 'com_commonxp::comm_main.xjs';
  294. //include 'com_departmentcodexp::common.xjs';
  295. include 'com_departmentcodexp::ZSD001.xjs';
  296. include 'com_basiccodexp::ZBC001.xjs';
  297. include 'emr_carecomxp::CareCom.xjs';
  298. //include 'emr_dialroomxp::SMMND04000.xjs';
  299. include "com_commodulexp::SSZFM00901.xjs";
  300. include "com_commodulexp::SSZFM01001.xjs";
  301. var arErrorCode = new HashArray();
  302. function SMMND04000_onload(obj:Form, e:LoadEventInfo) {
  303. frmf_initForm(obj);
  304. grdf_initGrid(this.group3.datagrid1);
  305. //grdf_setGridSort(grd_XXX);
  306. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  307. fInitialize();
  308. }
  309. // header파일 중 SMMND04000.js 파일 시작
  310. /*
  311. - ▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩
  312. 신장실 환자명단조회 ( SMMND04000_신장실환자명단조회.xrw - JScript )
  313. - Version :
  314. 1) : Ver.1.00.01
  315. - Author : 최원돈
  316. - ▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩▩
  317. */
  318. /**
  319. * creat : 20101011
  320. * author : 최원돈
  321. * desc : 초기화
  322. */
  323. function fInitialize(){
  324. //조회조건 default 세팅
  325. ds_main_cond.clearData();
  326. dsf_makeValue( ds_main_cond, "rsrvdd", "string", utlf_getCurrentDate()); //예약일자
  327. //그리드 노드 초기화
  328. ds_main_bdHtRsrvPatinfo.clearData();
  329. dsf_makeValue( ds_main, "bdHtRsrvPatinfo", "string", "" );
  330. //model.refresh();
  331. fGetBdHtRsrvPatList();
  332. }
  333. /**
  334. * creat : 20101011
  335. * author : 최원돈
  336. * desc : 신장실 환장명단조회
  337. */
  338. function fGetBdHtRsrvPatList(){
  339. //조건변수
  340. var rsrvdd = ds_main_cond.getColumn(0, "rsrvdd"); //예약일자
  341. //null 처리
  342. if(rsrvdd == null)
  343. {
  344. rsrvdd = '';
  345. }
  346. else
  347. {
  348. setGridColChange();
  349. }
  350. //send parameter 설정
  351. ds_send.clearData();
  352. dsf_makeValue( ds_send, "rsrvdd", "string", rsrvdd);
  353. //submit 호출
  354. //if(!submit('TRMND04001')){
  355. var oParam = {};
  356. oParam.id = "TRMND04001";
  357. oParam.service = "dialapp.DialPatMngt";
  358. oParam.method = "reqGetBdHtRsrvPatList";
  359. oParam.inds = "reqcond=ds_send";
  360. oParam.outds = "ds_main_bdHtRsrvPatinfo_bdHtRsrvPatlist=bdHtRsrvPatlist";
  361. oParam.async = false;
  362. oParam.callback = "cf_TRMND04001";
  363. tranf_submit(oParam);
  364. if(arErrorCode.pop("TRMND04001") < 0) {
  365. sysf_messageBox('조회를 실패하였습니다.', 'E999');
  366. return;
  367. }
  368. //model.refresh();
  369. }
  370. function cf_TRMND04001(sSvcId, nErrorCode, sErrorMsg) {
  371. arErrorCode.push(sSvcId, nErrorCode);
  372. }
  373. /**
  374. * _desc : 조회조건의 예약일자에 따른 환경 셋팅
  375. * _
  376. * _param :
  377. * _return :
  378. * _authur : 최원돈
  379. * _---------------------------------------------------
  380. */
  381. function setGridColChange()
  382. {
  383. var dd = ds_main_cond.getColumn(0, "rsrvdd").toDate("YYYYMMDD");
  384. var mmdd1 = utlf_getDateTime(dd, 'W') + dd.getDateFormat(" (MM_DD)");
  385. var mmdd2 = utlf_getDateTime(dd.getAddDate(1, "D"), 'W') + dd.getDateFormat(" (MM_DD)");
  386. var mmdd3 = utlf_getDateTime(dd.getAddDate(1, "D"), 'W') + dd.getDateFormat(" (MM_DD)");
  387. var mmdd4 = utlf_getDateTime(dd.getAddDate(1, "D"), 'W') + dd.getDateFormat(" (MM_DD)");
  388. var mmdd5 = utlf_getDateTime(dd.getAddDate(1, "D"), 'W') + dd.getDateFormat(" (MM_DD)");
  389. var mmdd6 = utlf_getDateTime(dd.getAddDate(1, "D"), 'W') + dd.getDateFormat(" (MM_DD)");
  390. var _caption = "순서^" + mmdd1
  391. + "^" + mmdd2
  392. + "^" + mmdd3
  393. + "^" + mmdd4
  394. + "^" + mmdd5
  395. + "^" + mmdd6
  396. + "|1^2^3^1^2^3^1^2^3^1^2^3^1^2^3^1^2^3";
  397. lf_setgridhead(_caption);
  398. }
  399. /****************************************************************************************
  400. * Argument : N/A
  401. * Description : 그리드 헤드 텍스트 편집2
  402. ****************************************************************************************/
  403. function lf_setgridhead(scaption) {
  404. var arrAll = scaption.split("|");
  405. var arr1 = arrAll[0].split("^");
  406. var arr2 = arrAll[1].split("^");
  407. var _headcnt = group3.datagrid1.getCellCount("Head");
  408. var cnt = 0;
  409. for(var i = 0; i < arr1.length; i++) {
  410. group3.datagrid1.setCellProperty("Head",i,"text",arr1[i]);
  411. cnt++;
  412. }
  413. for(var i = 0; i < arr2.length; i++) {
  414. j = i + cnt;
  415. group3.datagrid1.setCellProperty("Head",j,"text",arr2[i]);
  416. }
  417. }
  418. /**
  419. * creat : 20101011
  420. * author : 최원돈
  421. * desc : 신장실 환장명단 출력
  422. */
  423. function fPrintHtRsrvPatList(){
  424. if(ds_main_bdHtRsrvPatinfo_bdHtRsrvPatlist.rowcount == 0){
  425. sysf_messageBox('출력할 내역이 없습니다.', 'E999');
  426. return;
  427. }
  428. setPrtHeadInstanceChange();
  429. //exeReportPreview("RPMND04001", "XMLSTR", "", "", "false","","","","","false", "", "");//미리보기
  430. var objDOM = rptf_createDOM();
  431. var objParam = new Object();
  432. rptf_setNodeListToDOM(objDOM, "root/main/cond" , ds_main_cond);
  433. rptf_setNodeListToDOM(objDOM, "root/main/prtmmddWinfo" , ds_main_prtmmddWinfo);
  434. rptf_setNodeListToDOM(objDOM, "root/main/prtmmddinfo" , ds_main_prtmmddinfo);
  435. rptf_setNodeListToDOM(objDOM, "root/main/bdHtRsrvPatinfo/bdHtRsrvPatlist" , ds_main_bdHtRsrvPatinfo_bdHtRsrvPatlist);
  436. objParam.xml_data_XML1 = objDOM.documentElement.source;
  437. var option = "open=1;save=1;directprint=0;printdialog=1;print=1;zoom=0";
  438. rptf_exeReportPreview30(["RPMND04001"],[objParam], option);//미리보기
  439. }
  440. /**
  441. * creat : 20101011
  442. * author : 최원돈
  443. * desc : 신장실 환장명단 출력 헤드 설정
  444. */
  445. function setPrtHeadInstanceChange()
  446. {
  447. var dd = ds_main_cond.getColumn(0, "rsrvdd").toDate("YYYYMMDD");
  448. ds_main_prtmmddWinfo.setColumn( 0, "prtmmddW1", utlf_getDateTime(dd, 'W'));
  449. ds_main_prtmmddinfo.setColumn( 0, "prtmmdd1" , dd.getDateFormat("(MM_DD)"));
  450. ds_main_prtmmddWinfo.setColumn( 0, "prtmmddW2", utlf_getDateTime(dd.getAddDate(1, "D"), 'W'));
  451. ds_main_prtmmddinfo.setColumn( 0, "prtmmdd2" , dd.getDateFormat("(MM_DD)"));
  452. ds_main_prtmmddWinfo.setColumn( 0, "prtmmddW3", utlf_getDateTime(dd.getAddDate(1, "D"), 'W'));
  453. ds_main_prtmmddinfo.setColumn( 0, "prtmmdd3" , dd.getDateFormat("(MM_DD)"));
  454. ds_main_prtmmddWinfo.setColumn( 0, "prtmmddW4", utlf_getDateTime(dd.getAddDate(1, "D"), 'W'));
  455. ds_main_prtmmddinfo.setColumn( 0, "prtmmdd4" , dd.getDateFormat("(MM_DD)"));
  456. ds_main_prtmmddWinfo.setColumn( 0, "prtmmddW5", utlf_getDateTime(dd.getAddDate(1, "D"), 'W'));
  457. ds_main_prtmmddinfo.setColumn( 0, "prtmmdd5" , dd.getDateFormat("(MM_DD)"));
  458. ds_main_prtmmddWinfo.setColumn( 0, "prtmmddW6", utlf_getDateTime(dd.getAddDate(1, "D"), 'W'));
  459. ds_main_prtmmddinfo.setColumn( 0, "prtmmdd6" , dd.getDateFormat("(MM_DD)"));
  460. }
  461. // header파일 중 SMMND04000.js 파일 끝
  462. function group3_group2_btn_Query_onclick(obj:Button, e:ClickEventInfo) {
  463. fGetBdHtRsrvPatList();
  464. }
  465. function group3_group2_btn_Print_onclick(obj:Button, e:ClickEventInfo) {
  466. fPrintHtRsrvPatList();
  467. }
  468. function group3_group2_button2_onclick(obj:Button, e:ClickEventInfo) {
  469. // var fileName = window.fileDialog("save", ",", false, "excel", "xls", "All Files (*.*)|*.*|Excel Files(*.xls)|*.xls");
  470. //
  471. // if (fileName != "")
  472. // {
  473. grdf_exportExcel(group3.datagrid1, "Sheet1", "신장실환자명단", false, "" , 'user' , true);
  474. // }
  475. }
  476. function group3_group2_ipt_rsrvdd_onchanged(obj:Calendar, e:ChangeEventInfo)
  477. {
  478. fGetBdHtRsrvPatList();
  479. }
  480. ]]></Script>
  481. </Form>
  482. </FDL>