SPAER02000_근무자이력관리방사선종양.xfdl 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPAER02000" position="absolute 0 0 1195 760" titletext="치료실별치료사관리" oninit="SPAER02000_oninit" onload="SPAER02000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Grid position="absolute 0 85 1195 760" id="grd_cureroomlist" binddataset="ds_main_excuroominfo" cellsizingtype="col" selecttype="multirow" anchor="all">
  8. <Formats>
  9. <Format id="default">
  10. <Columns>
  11. <Column size="100"/>
  12. <Column size="90"/>
  13. <Column size="90"/>
  14. <Column size="90"/>
  15. <Column size="90"/>
  16. <Column size="90"/>
  17. <Column size="90"/>
  18. <Column size="90"/>
  19. <Column size="90"/>
  20. <Column size="90"/>
  21. <Column size="90"/>
  22. <Column size="90"/>
  23. <Column size="90"/>
  24. </Columns>
  25. <Rows>
  26. <Row size="24" band="head"/>
  27. <Row size="24"/>
  28. </Rows>
  29. <Band id="head">
  30. <Cell text="구분"/>
  31. <Cell col="1" text="1월"/>
  32. <Cell col="2" text="2월"/>
  33. <Cell col="3" text="3월"/>
  34. <Cell col="4" text="4월"/>
  35. <Cell col="5" text="5월"/>
  36. <Cell col="6" text="6월"/>
  37. <Cell col="7" text="7월"/>
  38. <Cell col="8" text="8월"/>
  39. <Cell col="9" text="9월"/>
  40. <Cell col="10" text="10월"/>
  41. <Cell col="11" text="11월"/>
  42. <Cell col="12" text="12월"/>
  43. </Band>
  44. <Band id="body">
  45. <Cell style="align:left top;padding:5 2 0 5;" text="bind:item" wordwrap="char" suppress="1"/>
  46. <Cell col="1" style="align:left top;padding:5 2 0 5;" text="bind:m1" wordwrap="char"/>
  47. <Cell col="2" style="align:left top;padding:5 2 0 5;" text="bind:m2" wordwrap="char"/>
  48. <Cell col="3" style="align:left top;padding:5 2 0 5;" text="bind:m3" wordwrap="char"/>
  49. <Cell col="4" style="align:left top;padding:5 2 0 5;" text="bind:m4" wordwrap="char"/>
  50. <Cell col="5" style="align:left top;padding:5 2 0 5;" text="bind:m5" wordwrap="char"/>
  51. <Cell col="6" style="align:left top;padding:5 2 0 5;" text="bind:m6" wordwrap="char"/>
  52. <Cell col="7" style="align:left top;padding:5 2 0 5;" text="bind:m7" wordwrap="char"/>
  53. <Cell col="8" style="align:left top;padding:5 2 0 5;" text="bind:m8" wordwrap="char"/>
  54. <Cell col="9" style="align:left top;padding:5 2 0 5;" text="bind:m9" wordwrap="char"/>
  55. <Cell col="10" style="align:left top;padding:5 2 0 5;" text="bind:m10" wordwrap="char"/>
  56. <Cell col="11" style="align:left top;padding:5 2 0 5;" text="bind:m11" wordwrap="char"/>
  57. <Cell col="12" style="align:left top;padding:5 2 0 5;" text="bind:m12" wordwrap="char"/>
  58. </Band>
  59. </Format>
  60. </Formats>
  61. </Grid>
  62. <Div position="absolute 0 26 1195 61" align="align:center top;" id="group2" class="div_SA" anchor="left top right">
  63. <Layouts>
  64. <Layout>
  65. <Shape position="absolute 1108 7 1114 29" linetype="vertical" id="line13" anchor="top right"/>
  66. <Button position="absolute 1127 7 1183 29" id="btn_sea" class="btn1" text="조회" anchor="top right" onclick="group2_btn_sea_onclick"/>
  67. <Calendar position="absolute 417 7 502 26" align="align:center middle;" id="ipt_acptdd" class="input_default" mask="yyyy-mm" anchor="default" dateformat="yyyy-MM" value="null" editformat="yyyy-MM" autoselect="true"/>
  68. <Static text="조회기간 :" position="absolute 326 9 412 26" id="caption4" class="search_name" anchor="default"/>
  69. <Radio position="absolute 114 9 281 25" id="radio1" columncount="2" codecolumn="codecolumn" datacolumn="datacolumn" anchor="default" onitemchanged="group2_radio1_onitemchanged">
  70. <Dataset id="innerdataset">
  71. <ColumnInfo>
  72. <Column id="codecolumn"/>
  73. <Column id="datacolumn"/>
  74. </ColumnInfo>
  75. <Rows>
  76. <Row>
  77. <Col id="codecolumn">1</Col>
  78. <Col id="datacolumn">근무지</Col>
  79. </Row>
  80. <Row>
  81. <Col id="codecolumn">2</Col>
  82. <Col id="datacolumn">근무자</Col>
  83. </Row>
  84. </Rows>
  85. </Dataset>
  86. </Radio>
  87. <Static text="조회조건 :" position="absolute 15 9 101 26" id="caption3" class="search_name" anchor="default"/>
  88. </Layout>
  89. </Layouts>
  90. </Div>
  91. <Shape position="absolute 0 82 1193 88" linetype="horizontal" id="line10" class="line_1" anchor="left top right"/>
  92. <Static text="이력 상세 정보" position="absolute 0 68 205 84" id="caption18" class="tit_2"/>
  93. <Button position="absolute 1181 66 1194 81" id="btn_Next" class="icon_next" text="" onclick="btn_Next_onclick" anchor="top right"/>
  94. <Button position="absolute 1072 66 1085 81" id="btn_Previous" class="icon_pre" text="" onclick="btn_Previous_onclick" anchor="top right"/>
  95. <Static text="근무이력관리" position="absolute 0 0 235 26" id="caption1" class="tit_1"/>
  96. <MaskEdit position="absolute 1090 63 1175 82" align="align:center middle;" id="input1" enable="false" mask="####-##" type="string" style=":disabled {align:center middle;}" anchor="top right"/>
  97. <Button position="absolute 990 64 1065 83" id="button3" class="btn7" text="엑셀저장" onclick="button3_onclick" anchor="top right"/>
  98. </Layout>
  99. </Layouts>
  100. <Objects>
  101. <Dataset id="ds_main_excuroominfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  102. <ColumnInfo>
  103. <Column id="Item" type="STRING"/>
  104. <Column id="m1" type="STRING"/>
  105. <Column id="m2" type="STRING"/>
  106. <Column id="m3" type="STRING"/>
  107. <Column id="m4" type="STRING"/>
  108. <Column id="m5" type="STRING"/>
  109. <Column id="m6" type="STRING"/>
  110. <Column id="m7" type="STRING"/>
  111. <Column id="m8" type="STRING"/>
  112. <Column id="m9" type="STRING"/>
  113. <Column id="m10" type="STRING"/>
  114. <Column id="m11" type="STRING"/>
  115. <Column id="m12" type="STRING"/>
  116. </ColumnInfo>
  117. </Dataset>
  118. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  119. <ColumnInfo>
  120. <Column id="searchItem" type="STRING" size="256" sumtext="조회구분"/>
  121. <Column id="basesuppdeptcd" type="STRING" size="256" sumtext="부서코드"/>
  122. <Column id="sdate" type="STRING" size="256" sumtext="기준년월"/>
  123. <Column id="searchdate" type="STRING" size="256"/>
  124. </ColumnInfo>
  125. <Rows>
  126. <Row>
  127. <Col id="searchItem"/>
  128. <Col id="basesuppdeptcd"/>
  129. <Col id="sdate"/>
  130. <Col id="searchdate"/>
  131. </Row>
  132. </Rows>
  133. </Dataset>
  134. </Objects>
  135. <Bind>
  136. <BindItem id="item0" compid="input1" propid="value" datasetid="ds_send" columnid="sdate"/>
  137. <BindItem id="item1" compid="group2.radio1" propid="value" datasetid="ds_send" columnid="searchItem"/>
  138. <BindItem id="item2" compid="group2.ipt_acptdd" propid="value" datasetid="ds_send" columnid="searchdate"/>
  139. </Bind>
  140. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  141. * System Name :
  142. * Job Name :
  143. * Creator :
  144. * Make Date : 2016-03-29
  145. * Description :
  146. *---------------------------------------------------------------------------------------
  147. * Modify Date Modifier Modify Description
  148. *---------------------------------------------------------------------------------------
  149. * 2016-03-29 Live Converter TF->XP
  150. *
  151. *---------------------------------------------------------------------------------------
  152. ****************************************************************************************/
  153. //=======================================================================================
  154. // Lib Include
  155. //---------------------------------------------------------------------------------------
  156. include "com_commonxp::comm_main.xjs";
  157. include "ast_examcurexp::AEZ0001.xjs";
  158. //=======================================================================================
  159. // Global Form Variable
  160. //---------------------------------------------------------------------------------------
  161. //=======================================================================================
  162. // Function
  163. //---------------------------------------------------------------------------------------
  164. /****************************************************************************************
  165. * Function : lf_Init
  166. * Description : 초기화
  167. * Argument :
  168. * retrun type :
  169. * Creator :
  170. ****************************************************************************************/
  171. function lf_Init(){
  172. ds_main_eqmtlist.clearData();
  173. }
  174. /****************************************************************************************
  175. * Function : GridHeader
  176. * Description : 초기화
  177. * Argument :
  178. * retrun type :
  179. * Creator :
  180. ****************************************************************************************/
  181. function GridHeader() {
  182. var setDate = utlf_transNullToEmpty(ds_send.getColumn(0, "sdate"));
  183. var sysDate = setDate.toDate("YYYYMM");
  184. var nowDate = sysDate.getAddDate(-12,"M");
  185. var scaption = "구분";
  186. for (var i = 1; i < 13; i ++){
  187. var nowDate = sysDate.getAddDate(1,"M");
  188. nowDate = nowDate.getDateFormat("YYYY-MM");
  189. grd_cureroomlist.setCellProperty("head", i, "text", nowDate + " 월");
  190. }
  191. }
  192. /****************************************************************************************
  193. * Argument : 01.sSvcId : 서비스 ID
  194. * : 02.nErrorCode : 에러코드
  195. * : 03.sErrorMsg : 에러메시지
  196. * Description : 의 콜백함수
  197. ****************************************************************************************/
  198. function cf_(sSvcId, nErrorCode, sErrorMsg) {
  199. if(nErrorCode < 0) return;
  200. }
  201. //=======================================================================================
  202. // Event
  203. //---------------------------------------------------------------------------------------
  204. /****************************************************************************************
  205. * Components : Form
  206. * Components ID : SPAER02000
  207. * Event : oninit
  208. * Argument : 01.obj : Object Event has occurred
  209. * : 02.e : Event Object
  210. * Description : 화면 초기화
  211. ****************************************************************************************/
  212. function SPAER02000_oninit(obj:Form, e:InitEventInfo)
  213. {
  214. frmf_initForm(obj);
  215. }
  216. /****************************************************************************************
  217. * Components : Form
  218. * Components ID : SPAER02000
  219. * Event : onload
  220. * Argument : 01.obj : Object Event has occurred
  221. * : 02.e : Event Object
  222. * Description : 화면 초기화
  223. ****************************************************************************************/
  224. function SPAER02000_onload(obj:Form, e:LoadEventInfo)
  225. {
  226. //grdf_setRowTypeIcon(grd_eqmtlist, 0);
  227. //grdf_setGridSort(grd_eqmtlist);
  228. //lf_Init();
  229. lf_aezfSetSuppDeptcd();
  230. //model.removeNodeset("/root/main/workHistory");
  231. var syymm = utlf_getCurrentDate();
  232. syymm = syymm.substr(0, 6);
  233. ds_send.setColumn(0, "searchdate", syymm);
  234. ds_send.setColumn(0, "sdate", syymm);
  235. ds_send.setColumn(0, "searchItem", "1");
  236. GridHeader();
  237. group2.btn_sea.click();
  238. }
  239. /****************************************************************************************
  240. * Components : Button
  241. * Components ID : group2.btn_sea
  242. * Event : onclick
  243. * Argument : 01.obj : Object Event has occurred
  244. * : 02.e : Event Object
  245. * Description : 조회 버튼 클릭
  246. ****************************************************************************************/
  247. function group2_btn_sea_onclick(obj:Button, e:ClickEventInfo)
  248. {
  249. ds_send.setColumn(0, "basesuppdeptcd", suppdeptcd);
  250. ds_main_excuroominfo.clearData();
  251. var oParam = {};
  252. oParam.id = "TRAER02001";
  253. oParam.service = "examcurebaseapp.ExecrCode";
  254. oParam.method = "reqGetExcuroomChgList";
  255. oParam.inds = "req=ds_send";
  256. oParam.outds = "ds_main_excuroominfo=excuroomlist";
  257. oParam.async = false;
  258. oParam.callback = "cf_TRAER02001";
  259. tranf_submit(oParam);
  260. }
  261. function cf_TRAER02001(sSvcId, nErrorCode, sErrorMsg) {
  262. if(nErrorCode < 0) return;
  263. }
  264. /****************************************************************************************
  265. * Components : Button
  266. * Components ID : group2.radio1
  267. * Event : onitemchanged
  268. * Argument : 01.obj : Object Event has occurred
  269. * : 02.e : Event Object
  270. * Description : 조회조건 클릭
  271. ****************************************************************************************/
  272. function group2_radio1_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  273. {
  274. group2.btn_sea.click();
  275. }
  276. /****************************************************************************************
  277. * Components : Button
  278. * Components ID : btn_Next
  279. * Event : onclick
  280. * Argument : 01.obj : Object Event has occurred
  281. * : 02.e : Event Object
  282. * Description : 1개월 뒤 버튼
  283. ****************************************************************************************/
  284. function btn_Next_onclick(obj:Button, e:ClickEventInfo)
  285. {
  286. // 기준일자
  287. var setDate = utlf_transNullToEmpty(ds_send.getColumn(0, "sdate"));
  288. var sysDate = setDate.toDate("YYYYMM");
  289. // 익월
  290. var nowDate = sysDate.getAddDate(1,"M");
  291. nowDate = nowDate.getDateFormat("YYYYMM");
  292. ds_send.setColumn(0, "sdate", nowDate);
  293. GridHeader();
  294. group2.btn_sea.click();
  295. }
  296. /****************************************************************************************
  297. * Components : Button
  298. * Components ID : btn_Previous
  299. * Event : onclick
  300. * Argument : 01.obj : Object Event has occurred
  301. * : 02.e : Event Object
  302. * Description : 1개월 전 버튼
  303. ****************************************************************************************/
  304. function btn_Previous_onclick(obj:Button, e:ClickEventInfo)
  305. {
  306. // 기준일자
  307. var setDate = utlf_transNullToEmpty(ds_send.getColumn(0, "sdate"));
  308. var sysDate = setDate.toDate("YYYYMM");
  309. // 익월
  310. var nowDate = sysDate.getAddDate(-1,"M");
  311. nowDate = nowDate.getDateFormat("YYYYMM");
  312. ds_send.setColumn(0, "sdate", nowDate);
  313. GridHeader();
  314. group2.btn_sea.click();
  315. }
  316. /****************************************************************************************
  317. * Components : Button
  318. * Components ID : button3
  319. * Event : onclick
  320. * Argument : 01.obj : Object Event has occurred
  321. * : 02.e : Event Object
  322. * Description : 엑셀버튼
  323. ****************************************************************************************/
  324. function button3_onclick(obj:Button, e:ClickEventInfo)
  325. {
  326. grdf_exportExcel(grd_cureroomlist, "근무이력관리", "sheet1");
  327. }
  328. ]]></Script>
  329. </Form>
  330. </FDL>