SMPMI05400_병동보고서유형변경대장.xfdl 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMPMI05400" position="absolute 0 0 1180 696" titletext="병동 보고서 유형변경 대장" onload="SMPMI05400_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="병동 보고서" class="tit_1" position="absolute 0 0 140 25" anchor="left top"/>
  8. <Tab id="swt_aipmmngt" taborder="1" tabindex="0" position="absolute 0 69 1178 693" onchanged="swt_aipmmngt_onchanged" anchor="all">
  9. <Tabpages>
  10. <Tabpage id="case_chandatetype" text="일자별유형변경대장" class="sw_box">
  11. <Layouts>
  12. <Layout>
  13. <Shape id="line20" linetype="horizontal" class="line_1" position="absolute 0 23 1170 29" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  14. <Static id="caption3" text="일자별 유형변경 대장" class="tit_2" position="absolute 3 4 155 20" anchor="left top"/>
  15. <Button id="button1" taborder="1" text="엑셀저장" class="btn7" position="absolute 1095 3 1170 22" onclick="swt_aipmmngt_case_chandatetype_button1_onclick" anchor="top right"/>
  16. <Button id="button2" taborder="2" text="출력" class="btn6" position="absolute 1039 3 1090 22" onclick="swt_aipmmngt_case_chandatetype_button2_onclick" anchor="top right"/>
  17. <Grid id="grd_chandatetype" taborder="3" binddataset="ds_list_chandatetype" useinputpanel="false" position="absolute 0 27 1170 597" oncelldblclick="swt_aipmmngt_case_chandatetype_grd_chandatetype_oncelldblclick" anchor="all">
  18. <Formats>
  19. <Format id="default">
  20. <Columns>
  21. <Column size="100"/>
  22. <Column size="100"/>
  23. <Column size="80"/>
  24. <Column size="100"/>
  25. <Column size="100"/>
  26. <Column size="100"/>
  27. <Column size="100"/>
  28. <Column size="100"/>
  29. <Column size="100"/>
  30. <Column size="100"/>
  31. <Column size="100"/>
  32. <Column size="120"/>
  33. <Column size="80"/>
  34. </Columns>
  35. <Rows>
  36. <Row size="24" band="head"/>
  37. <Row size="24" band="head"/>
  38. <Row size="24"/>
  39. </Rows>
  40. <Band id="head">
  41. <Cell rowspan="2" text="작업일" taborder="undefined"/>
  42. <Cell col="1" rowspan="2" text="등록번호" taborder="undefined"/>
  43. <Cell col="2" rowspan="2" text="성명" taborder="undefined"/>
  44. <Cell col="3" colspan="4" text="변 경 전" taborder="undefined"/>
  45. <Cell col="7" colspan="4" text="변 경 후" taborder="undefined"/>
  46. <Cell col="11" rowspan="2" text="구분" taborder="undefined"/>
  47. <Cell col="12" rowspan="2" text="작업자" taborder="undefined"/>
  48. <Cell row="1" col="3" text="유형"/>
  49. <Cell row="1" col="4" text="보조유형"/>
  50. <Cell row="1" col="5" text="시작일"/>
  51. <Cell row="1" col="6" text="종료일"/>
  52. <Cell row="1" col="7" text="유형"/>
  53. <Cell row="1" col="8" text="보조유형"/>
  54. <Cell row="1" col="9" text="시작일"/>
  55. <Cell row="1" col="10" text="종료일"/>
  56. </Band>
  57. <Band id="body">
  58. <Cell displaytype="date" text="bind:indd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  59. <Cell col="1" text="bind:pid"/>
  60. <Cell col="2" text="bind:hngnm"/>
  61. <Cell col="3" text="bind:asinsukindnm"/>
  62. <Cell col="4" text="bind:assupkindnm"/>
  63. <Cell col="5" displaytype="date" text="bind:asfromdd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  64. <Cell col="6" displaytype="date" text="bind:astodd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  65. <Cell col="7" text="bind:toinsukindnm"/>
  66. <Cell col="8" text="bind:tosupkindnm"/>
  67. <Cell col="9" displaytype="date" text="bind:tofromdd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  68. <Cell col="10" displaytype="date" text="bind:totodd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  69. <Cell col="11" text="bind:chantype"/>
  70. <Cell col="12" text="bind:workernm"/>
  71. </Band>
  72. </Format>
  73. </Formats>
  74. </Grid>
  75. </Layout>
  76. </Layouts>
  77. </Tabpage>
  78. <Tabpage id="case_chanpattype" text="환자별유형대장" class="sw_box">
  79. <Layouts>
  80. <Layout>
  81. <Shape id="line21" linetype="horizontal" class="line_1" position="absolute 0 23 1176 29" style="strokepen:3 solid #33bbbbff;" anchor="left top right"/>
  82. <Static id="caption4" text="환자별 유형변경 대장" class="tit_2" position="absolute 3 4 160 20" anchor="left top"/>
  83. <Grid id="grd_chanpat" taborder="1" binddataset="ds_list_schanpattype" useinputpanel="false" position="absolute 0 27 1176 597" anchor="all">
  84. <Formats>
  85. <Format id="default">
  86. <Columns>
  87. <Column size="100"/>
  88. <Column size="100"/>
  89. <Column size="80"/>
  90. <Column size="100"/>
  91. <Column size="100"/>
  92. <Column size="100"/>
  93. <Column size="100"/>
  94. <Column size="100"/>
  95. <Column size="100"/>
  96. <Column size="100"/>
  97. <Column size="100"/>
  98. <Column size="120"/>
  99. <Column size="80"/>
  100. </Columns>
  101. <Rows>
  102. <Row size="24" band="head"/>
  103. <Row size="24" band="head"/>
  104. <Row size="24"/>
  105. </Rows>
  106. <Band id="head">
  107. <Cell rowspan="2" text="작업일" taborder="undefined"/>
  108. <Cell col="1" rowspan="2" text="등록번호" taborder="undefined"/>
  109. <Cell col="2" rowspan="2" text="성명" taborder="undefined"/>
  110. <Cell col="3" colspan="4" text="변 경 전" taborder="undefined"/>
  111. <Cell col="7" colspan="4" text="변 경 후" taborder="undefined"/>
  112. <Cell col="11" rowspan="2" text="구분" taborder="undefined"/>
  113. <Cell col="12" rowspan="2" text="작업자" taborder="undefined"/>
  114. <Cell row="1" col="3" text="유형"/>
  115. <Cell row="1" col="4" text="보조유형"/>
  116. <Cell row="1" col="5" text="시작일"/>
  117. <Cell row="1" col="6" text="종료일"/>
  118. <Cell row="1" col="7" text="유형"/>
  119. <Cell row="1" col="8" text="보조유형"/>
  120. <Cell row="1" col="9" text="시작일"/>
  121. <Cell row="1" col="10" text="종료일"/>
  122. </Band>
  123. <Band id="body">
  124. <Cell displaytype="date" text="bind:indd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  125. <Cell col="1" text="bind:pid"/>
  126. <Cell col="2" text="bind:hngnm"/>
  127. <Cell col="3" text="bind:asinsukindnm"/>
  128. <Cell col="4" text="bind:assupkindnm"/>
  129. <Cell col="5" displaytype="date" text="bind:asfromdd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  130. <Cell col="6" displaytype="date" text="bind:astodd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  131. <Cell col="7" text="bind:toinsukindnm"/>
  132. <Cell col="8" text="bind:tosupkindnm"/>
  133. <Cell col="9" displaytype="date" text="bind:tofromdd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  134. <Cell col="10" displaytype="date" text="bind:totodd" mask="yyyy-MM-dd" calendardisplaynulltype="none"/>
  135. <Cell col="11" text="bind:chantype"/>
  136. <Cell col="12" text="bind:workernm"/>
  137. </Band>
  138. </Format>
  139. </Formats>
  140. </Grid>
  141. </Layout>
  142. </Layouts>
  143. </Tabpage>
  144. </Tabpages>
  145. </Tab>
  146. <Div id="grp" taborder="2" position="absolute 0 25 1176 60" class="div_SA" anchor="left top right">
  147. <Layouts>
  148. <Layout width="1172" height="35">
  149. <Static id="caption8" text="~" position="absolute 252 8 263 28" anchor="left top"/>
  150. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1097 7 1103 29" anchor="top right"/>
  151. <Static id="caption39" text="유형변경 기간조회 :" class="search_name" position="absolute 5 9 140 26" anchor="left top"/>
  152. <Calendar id="todd" taborder="1" class="input_search" position="absolute 263 8 369 27" anchor="left top"/>
  153. <Button id="btn_search" taborder="2" text="조회" class="btn1" position="absolute 1111 7 1167 29" anchor="top right" onclick="grp_btn_search_onclick"/>
  154. <Calendar id="fromdd" taborder="3" class="input_search" position="absolute 144 8 250 27" anchor="left top"/>
  155. <Static id="caption1" text="등록번호 :" class="search_name" position="absolute 379 9 450 26" anchor="left top"/>
  156. <Edit id="input_pid" taborder="4" class="input_search" position="absolute 450 8 545 27" anchor="left top" onkeydown="grp_input_pid_onkeydown"/>
  157. <Edit id="output_hngnm" taborder="5" readonly="true" position="absolute 550 8 635 27" anchor="left top"/>
  158. <Button id="btn_search2" taborder="6" text="." position="absolute 970 8 1005 28" anchor="top right" onclick="grp_btn_search2_onclick"/>
  159. </Layout>
  160. </Layouts>
  161. </Div>
  162. </Layout>
  163. </Layouts>
  164. <Objects>
  165. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  166. <ColumnInfo>
  167. <Column id="fromdd" type="STRING" size="256"/>
  168. <Column id="todd" type="STRING" size="256"/>
  169. <Column id="sess_posinstcd" type="STRING" size="256"/>
  170. <Column id="ioflag" type="STRING" size="256"/>
  171. <Column id="pid" type="STRING" size="256"/>
  172. <Column id="sendflag" type="STRING" size="256"/>
  173. </ColumnInfo>
  174. <Rows>
  175. <Row>
  176. <Col id="fromdd"/>
  177. <Col id="todd"/>
  178. <Col id="sess_posinstcd"/>
  179. <Col id="ioflag"/>
  180. <Col id="pid"/>
  181. <Col id="sendflag"/>
  182. </Row>
  183. </Rows>
  184. </Dataset>
  185. <Dataset id="ds_hidden_session" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  186. <Dataset id="ds_list_chanpattype" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  187. <ColumnInfo>
  188. <Column id="indd" type="STRING" size="256" sumtext="작업일"/>
  189. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  190. <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
  191. <Column id="asinsukind" type="STRING" size="256" sumtext="변경전유형"/>
  192. <Column id="asinsukindnm" type="STRING" size="256" sumtext="변경전유형"/>
  193. <Column id="assupkindnm" type="STRING" size="256" sumtext="변경전보조"/>
  194. <Column id="asfromdd" type="STRING" size="256" sumtext="변경전시작일"/>
  195. <Column id="astodd" type="STRING" size="256" sumtext="변경전종료일"/>
  196. <Column id="toinsukind" type="STRING" size="256" sumtext="변경후유형"/>
  197. <Column id="toinsukindnm" type="STRING" size="256" sumtext="변경후유형"/>
  198. <Column id="tosupkindnm" type="STRING" size="256" sumtext="변경후보조"/>
  199. <Column id="tofromdd" type="STRING" size="256" sumtext="변경후시작일"/>
  200. <Column id="totodd" type="STRING" size="256" sumtext="변경후종료일"/>
  201. <Column id="chantype" type="STRING" size="256" sumtext="구분"/>
  202. <Column id="workernm" type="STRING" size="256" sumtext="작업자"/>
  203. </ColumnInfo>
  204. </Dataset>
  205. <Dataset id="ds_list_chandatetype" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  206. <ColumnInfo>
  207. <Column id="indd" type="STRING" size="256" sumtext="작업일"/>
  208. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  209. <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
  210. <Column id="asinsukind" type="STRING" size="256" sumtext="변경전유형"/>
  211. <Column id="asinsukindnm" type="STRING" size="256" sumtext="변경전유형"/>
  212. <Column id="assupkindnm" type="STRING" size="256" sumtext="변경전보조"/>
  213. <Column id="asfromdd" type="STRING" size="256" sumtext="변경전시작일"/>
  214. <Column id="astodd" type="STRING" size="256" sumtext="변경전종료일"/>
  215. <Column id="toinsukind" type="STRING" size="256" sumtext="변경후유형"/>
  216. <Column id="toinsukindnm" type="STRING" size="256" sumtext="변경후유형"/>
  217. <Column id="tosupkindnm" type="STRING" size="256" sumtext="변경후보조"/>
  218. <Column id="tofromdd" type="STRING" size="256" sumtext="변경후시작일"/>
  219. <Column id="totodd" type="STRING" size="256" sumtext="변경후종료일"/>
  220. <Column id="chantype" type="STRING" size="256" sumtext="구분"/>
  221. <Column id="workernm" type="STRING" size="256" sumtext="작업자"/>
  222. </ColumnInfo>
  223. </Dataset>
  224. <Dataset id="ds_list_schanpattype" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  225. <ColumnInfo>
  226. <Column id="indd" type="STRING" size="256" sumtext="작업일"/>
  227. <Column id="pid" type="STRING" size="256" sumtext="등록번호"/>
  228. <Column id="hngnm" type="STRING" size="256" sumtext="환자명"/>
  229. <Column id="asinsukind" type="STRING" size="256" sumtext="변경전유형"/>
  230. <Column id="asinsukindnm" type="STRING" size="256" sumtext="변경전유형"/>
  231. <Column id="assupkindnm" type="STRING" size="256" sumtext="변경전보조"/>
  232. <Column id="asfromdd" type="STRING" size="256" sumtext="변경전시작일"/>
  233. <Column id="astodd" type="STRING" size="256" sumtext="변경전종료일"/>
  234. <Column id="toinsukind" type="STRING" size="256" sumtext="변경후유형"/>
  235. <Column id="toinsukindnm" type="STRING" size="256" sumtext="변경후유형"/>
  236. <Column id="tosupkindnm" type="STRING" size="256" sumtext="변경후보조"/>
  237. <Column id="tofromdd" type="STRING" size="256" sumtext="변경후시작일"/>
  238. <Column id="totodd" type="STRING" size="256" sumtext="변경후종료일"/>
  239. <Column id="chantype" type="STRING" size="256" sumtext="구분"/>
  240. <Column id="workernm" type="STRING" size="256" sumtext="작업자"/>
  241. </ColumnInfo>
  242. </Dataset>
  243. </Objects>
  244. <Bind>
  245. <BindItem id="item0" compid="grp.fromdd" propid="value" datasetid="ds_send" columnid="fromdd"/>
  246. <BindItem id="item1" compid="grp.todd" propid="value" datasetid="ds_send" columnid="todd"/>
  247. <BindItem id="item2" compid="grp.input_pid" propid="value" datasetid="ds_send" columnid="pid"/>
  248. <BindItem id="item3" compid="grp.output_hngnm" propid="value" datasetid="ds_list_chanpattype" columnid="hngnm"/>
  249. </Bind>
  250. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  251. * System Name :
  252. * Job Name :
  253. * Creator :
  254. * Make Date : 2016-05-24
  255. * Description :
  256. *---------------------------------------------------------------------------------------
  257. * Modify Date Modifier Modify Description
  258. *---------------------------------------------------------------------------------------
  259. * 2016-05-24 Live Converter TF->XP
  260. *
  261. *---------------------------------------------------------------------------------------
  262. ****************************************************************************************/
  263. //=======================================================================================
  264. // Lib Include
  265. //---------------------------------------------------------------------------------------
  266. include 'com_commonxp::comm_main.xjs';
  267. include 'pam_opatmngtxp::PMOCOM.xjs';
  268. var arErrorCode = new HashArray();
  269. //=======================================================================================
  270. // Local methods
  271. //---------------------------------------------------------------------------------------
  272. /**
  273. * [fShowComBox description]
  274. * @return {[type]} [description]
  275. */
  276. function fShowComBox() {
  277. if (swt_aipmmngt.tabindex == 0) {
  278. grp.caption39.visible = true;
  279. grp.fromdd.visible = true;
  280. grp.caption8.visible = true;
  281. grp.todd.visible = true;
  282. grp.caption1.visible = false;
  283. grp.input_pid.visible = false;
  284. grp.output_hngnm.visible = false;
  285. }
  286. else if (swt_aipmmngt.tabindex == 1) {
  287. grp.caption39.visible = false;
  288. grp.fromdd.visible = false;
  289. grp.caption8.visible = false;
  290. grp.todd.visible = false;
  291. grp.caption1.visible = true;
  292. grp.input_pid.visible = true;
  293. grp.output_hngnm.visible = true;
  294. grp.caption1.position.x = 5;
  295. grp.caption1.position.width = 95;
  296. grp.input_pid.position.x = 95;
  297. grp.input_pid.position.width = 95;
  298. grp.output_hngnm.position.x = 195;
  299. grp.output_hngnm.position.width = 85;
  300. }
  301. }
  302. /**
  303. * submit 후 호출 될 공통 콜백
  304. * @param {[type]} sSvcId [description]
  305. * @param {[type]} nErrorCode [description]
  306. * @param {[type]} sErrorMsg [description]
  307. * @return {Function} [description]
  308. */
  309. function callback(sSvcId, nErrorCode, sErrorMsg){
  310. arErrorCode.push(sSvcId, nErrorCode);
  311. }
  312. //=======================================================================================
  313. // Events
  314. //---------------------------------------------------------------------------------------
  315. /**
  316. * onload 이벤트 발생 시 호출
  317. * @param {[type]} obj:Form [description]
  318. * @param {[type]} e:LoadEventInfo [description]
  319. */
  320. function SMPMI05400_onload(obj: Form, e: LoadEventInfo) {
  321. frmf_initForm(obj);
  322. fShowComBox();
  323. fGetUserInfosSampling(); //세션정보
  324. ds_send.setColumn(0, "sess_posinstcd", ds_hidden_session.getColumn(0, "sess_dutplceinstcd"));
  325. ds_send.setColumn(0, "ioflag", "I");
  326. ds_send.setColumn(0, "fromdd", utlf_getCurrentDate());
  327. ds_send.setColumn(0, "todd", utlf_getCurrentDate());
  328. // dbs227, blocked cause reference is not using in this form
  329. // dsf_createDsRow('ds_TRPMI00106', [
  330. // { col: 'sess_posinstcd', type: 'string', size: 256, val: '' },
  331. // { col: 'ioflag', type: 'string', size: 256, val: '' },
  332. // { col: 'dridsorttype', type: 'string', size: 256, val: '' }
  333. // ], false);
  334. // ds_TRPMI00106.copyRow(0, ds_send, 0);
  335. // var oParam = {};
  336. // oParam.id = "TRPMI00106";
  337. // oParam.service = "pamcomnapp.PamComn";
  338. // oParam.method = "reqGetComCD";
  339. // oParam.inds = "req=ds_TRPMI00106";
  340. // oParam.outds = "ds_=disccd ds_=insukind ds_=suppkind ds_=suppkindhist ds_=orddeptcd ds_=orddrid ds_=wardcd ds_=roomcd ds_=bedcd ds_=roomgrdecd ds_=roomgrdelist ds_=roomtypecd ds_=flag ds_=proccd ds_=centcd ds_=hospgrde ds_=naticd ds_=erorddrid ds_=insucd ds_=uncocd";
  341. // oParam.async = false;
  342. // tranf_submit(oParam);
  343. // appf_getCodeList([
  344. // { dsNm: 'ds_init1_P0101', cdGrpId: 'P0101' },
  345. // { dsNm: 'ds_init1_P0028', cdGrpId: 'P0028' },
  346. // { dsNm: 'ds_init1_P0038', cdGrpId: 'P0038' }
  347. // ]);
  348. }
  349. /**
  350. * 등록번호 키보드 입력 이벤트
  351. * @param {[type]} obj: Edit [description]
  352. * @param {[type]} e: KeyEventInfo [description]
  353. * @return {[type]} [description]
  354. */
  355. function grp_input_pid_onkeydown(obj: Edit, e: KeyEventInfo) {
  356. if (e.keycode == 13) {
  357. obj.updateToDataset();
  358. grp.btn_search2.click();
  359. }
  360. }
  361. /**
  362. * "." 버튼 클릭 이벤트
  363. * @param {[type]} obj: Button [description]
  364. * @param {[type]} e: ClickEventInfo [description]
  365. * @return {[type]} [description]
  366. */
  367. function grp_btn_search2_onclick(obj: Button, e: ClickEventInfo) {
  368. dsf_createDsRow('ds_TRPMI00106', [
  369. { col: 'fromdd', type: 'string', size: 256, val: '' },
  370. { col: 'todd', type: 'string', size: 256, val: '' },
  371. { col: 'pid', type: 'string', size: 256, val: '' },
  372. { col: 'sendflag', type: 'string', size: 256, val: '' }
  373. ], false);
  374. ds_TRPMI00106.copyRow(0, ds_send, 0);
  375. ds_list_chandatetype.clearData();
  376. ds_list_chanpattype.clearData();
  377. var oParam = {};
  378. oParam.id = "TRPMI05400";
  379. oParam.service = "ipatmngtapp.WardReport";
  380. oParam.method = "reqChanType";
  381. oParam.inds = "req=ds_TRPMI00106";
  382. oParam.outds = "ds_list_chandatetype=chandatetype ds_list_chanpattype=chanpattype";
  383. oParam.async = false;
  384. tranf_submit(oParam);
  385. }
  386. /**
  387. * 조회 버튼 클릭 이벤트
  388. * @param {[type]} obj: Button [description]
  389. * @param {[type]} e: ClickEventInfo [description]
  390. * @return {[type]} [description]
  391. */
  392. function grp_btn_search_onclick(obj: Button, e: ClickEventInfo) {
  393. if (swt_aipmmngt.tabindex == 0) {
  394. ds_send.setColumn(0, "sendflag", "chandatetype");
  395. dsf_createDsRow('ds_TRPMI00106', [
  396. { col: 'fromdd', type: 'string', size: 256, val: '' },
  397. { col: 'todd', type: 'string', size: 256, val: '' },
  398. { col: 'pid', type: 'string', size: 256, val: '' },
  399. { col: 'sendflag', type: 'string', size: 256, val: '' }
  400. ], false);
  401. ds_TRPMI00106.copyRow(0, ds_send, 0);
  402. ds_list_chandatetype.clearData();
  403. ds_list_chanpattype.clearData();
  404. var oParam = {};
  405. oParam.id = "TRPMI05400";
  406. oParam.service = "ipatmngtapp.WardReport";
  407. oParam.method = "reqChanType";
  408. oParam.inds = "req=ds_TRPMI00106";
  409. oParam.outds = "ds_list_chandatetype=chandatetype ds_list_chanpattype=chanpattype";
  410. oParam.async = false;
  411. tranf_submit(oParam);
  412. }
  413. else if (swt_aipmmngt.tabindex == 1) {
  414. ds_send.setColumn(0, "sendflag", "chanpattype");
  415. dsf_createDsRow('ds_TRPMI00106', [
  416. { col: 'fromdd', type: 'string', size: 256, val: '' },
  417. { col: 'todd', type: 'string', size: 256, val: '' },
  418. { col: 'pid', type: 'string', size: 256, val: '' },
  419. { col: 'sendflag', type: 'string', size: 256, val: '' }
  420. ], false);
  421. ds_TRPMI00106.copyRow(0, ds_send, 0);
  422. ds_list_chandatetype.clearData();
  423. ds_list_chanpattype.clearData();
  424. var oParam = {};
  425. oParam.id = "TRPMI05400";
  426. oParam.service = "ipatmngtapp.WardReport";
  427. oParam.method = "reqChanType";
  428. oParam.inds = "req=ds_TRPMI00106";
  429. oParam.outds = "ds_list_chandatetype=chandatetype ds_list_chanpattype=chanpattype";
  430. oParam.async = false;
  431. tranf_submit(oParam);
  432. ds_list_schanpattype.copyData(ds_list_chanpattype, false);
  433. }
  434. }
  435. /**
  436. * 스위치 탭 변경 후 이벤트
  437. * @param {[type]} obj: Tab [description]
  438. * @param {[type]} e: TabIndexChangeEventInfo [description]
  439. * @return {[type]} [description]
  440. */
  441. function swt_aipmmngt_onchanged(obj: Tab, e: TabIndexChangeEventInfo) {
  442. fShowComBox();
  443. }
  444. /**
  445. * 일자별 유형변경 대장 그리드 셀 더블클릭 이벤트
  446. * @param {[type]} obj: Grid [description]
  447. * @param {[type]} e: GridClickEventInfo [description]
  448. * @return {[type]} [description]
  449. */
  450. function swt_aipmmngt_case_chandatetype_grd_chandatetype_oncelldblclick(obj: Grid, e: GridClickEventInfo) {
  451. var row = swt_aipmmngt.case_chandatetype.grd_chandatetype.currentrow;
  452. var sPid = ds_list_chanpattype.getColumn(row, "pid");
  453. swt_aipmmngt.tabindex = 1;
  454. ds_send.setColumn(0, "pid", sPid);
  455. grp.btn_search2.click();
  456. }
  457. /**
  458. * [일자별유형변경대장 탭] 출력 버튼 클릭 이벤트
  459. * @param {[type]} obj: Button [description]
  460. * @param {[type]} e: ClickEventInfo [description]
  461. * @return {[type]} [description]
  462. */
  463. function swt_aipmmngt_case_chandatetype_button2_onclick(obj: Button, e: ClickEventInfo) {
  464. var option = "open=1;save=1;directprint=1;printdialog=0;print=1;zoom=0";
  465. // DOM 객체 설정
  466. var objDOM = rptf_createDOM();
  467. rptf_setNodeListToDOM(objDOM, "root/send" , ds_send);
  468. rptf_setNodeListToDOM(objDOM, "root/list/chandatetype" , ds_list_chandatetype);
  469. rptf_exeReportPreview30(["RPPMI05400"],[{ xml_data_XML1: objDOM.documentElement.source }], option);
  470. }
  471. /**
  472. * [일자별유형변경대장 탭] 엑셀저장 버튼 클릭 이벤트
  473. * @param {[type]} obj: Button [description]
  474. * @param {[type]} e: ClickEventInfo [description]
  475. * @return {[type]} [description]
  476. */
  477. function swt_aipmmngt_case_chandatetype_button1_onclick(obj: Button, e: ClickEventInfo) {
  478. grdf_exportExcel(swt_aipmmngt.case_chandatetype.grd_chandatetype, "excel", "SheetName", true, false, "", "", false);
  479. }
  480. ]]></Script>
  481. </Form>
  482. </FDL>