SMABC02000_공통마감화면.xfdl 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMABC02000" position="absolute 0 0 1256 805" titletext="공통마감" oninit="model1_oninit" onload="SMABC02000_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="group3" taborder="4" position="absolute 0 29 1256 71" class="div_SA" anchor="left top right" positiontype="position">
  8. <Layouts>
  9. <Layout>
  10. <Static id="caption2" text="일자" class="search_name" position="absolute 8 10 50 30" anchor="default" positiontype="position"/>
  11. <Static id="caption3" text="Acting부서" class="search_name" position="absolute 182 10 265 30" anchor="default" positiontype="position"/>
  12. <Calendar id="ipt_execdd" taborder="1" class="input_default" position="absolute 58 10 158 30" dateformat="yyyy-MM-dd" value="null" ontextchanged="group3_ipt_execdd_ontextchanged" anchor="default" positiontype="position"/>
  13. <Radio id="radio1" taborder="2" columncount="2" rowcount="0" codecolumn="codecolumn" datacolumn="datacolumn" position="absolute 421 10 531 30" value="Y" index="0" onitemchanged="group3_radio1_onitemchanged" anchor="default" positiontype="position">
  14. <Dataset id="innerdataset">
  15. <ColumnInfo>
  16. <Column id="codecolumn" size="256"/>
  17. <Column id="datacolumn" size="256"/>
  18. </ColumnInfo>
  19. <Rows>
  20. <Row>
  21. <Col id="codecolumn">Y</Col>
  22. <Col id="datacolumn">실행</Col>
  23. </Row>
  24. <Row>
  25. <Col id="codecolumn">N</Col>
  26. <Col id="datacolumn">미실행</Col>
  27. </Row>
  28. </Rows>
  29. </Dataset>
  30. </Radio>
  31. <Combo id="combo1" taborder="3" class="combo_search" position="absolute 273 10 418 30" innerdataset="@ds_init_combo1" codecolumn="prcpexecdeptcdid" datacolumn="prcpexecdeptcdnm" enable="true" onitemchanged="group3_combo1_onitemchanged" anchor="default" positiontype="position"/>
  32. <Combo id="combo2" taborder="4" class="combo_search" position="absolute 605 10 695 30" innerdataset="@ds_init_combo2" codecolumn="id" datacolumn="name" onitemchanged="group3_combo2_onitemchanged" anchor="default" positiontype="position"/>
  33. <Static id="caption4" text="구분" class="search_name" position="absolute 555 10 597 30" anchor="default" positiontype="position"/>
  34. <Button id="button7" taborder="5" text="초기화" onlbuttonup="button7_onlbuttonup" class="btn4" position="absolute 1175 10 1244 30" anchor="top right" onclick="button7_onclick" positiontype="position"/>
  35. </Layout>
  36. </Layouts>
  37. </Div>
  38. <Shape id="line20" class="line_1" position="absolute 0 105 1194 105" linetype="horizontal" positiontype="position"/>
  39. <Static id="caption8" text="액팅리스트" class="tit_2" position="absolute 0 77 165 97" positiontype="position"/>
  40. <Grid id="grd_projlist" taborder="3" useinputpanel="false" position="absolute 0 97 1256 805" anchor="all" binddataset="ds_grid_grd_projlist" positiontype="position" oncellclick="grd_projlist_oncellclick" onheadclick="grd_projlist_onheadclick" cellsizingtype="col" autosizingtype="row" extendsizetype="row">
  41. <Formats>
  42. <Format id="default">
  43. <Columns>
  44. <Column size="26" band="left"/>
  45. <Column size="140"/>
  46. <Column size="87"/>
  47. <Column size="100"/>
  48. <Column size="60"/>
  49. <Column size="0"/>
  50. <Column size="250"/>
  51. <Column size="60"/>
  52. <Column size="55"/>
  53. <Column size="99"/>
  54. <Column size="71"/>
  55. <Column size="140"/>
  56. <Column size="0"/>
  57. <Column size="0"/>
  58. <Column size="0"/>
  59. <Column size="0"/>
  60. <Column size="0"/>
  61. <Column size="0"/>
  62. <Column size="0"/>
  63. <Column size="0"/>
  64. <Column size="150"/>
  65. </Columns>
  66. <Rows>
  67. <Row size="22" band="head"/>
  68. <Row size="20"/>
  69. </Rows>
  70. <Band id="head">
  71. <Cell displaytype="checkbox" edittype="checkbox"/>
  72. <Cell col="1" text="수행시간"/>
  73. <Cell col="2" text="등록번호"/>
  74. <Cell col="3" text="환자명"/>
  75. <Cell col="4" text="Sex/Age"/>
  76. <Cell col="5" text="처방코드"/>
  77. <Cell col="6" text="처방명"/>
  78. <Cell col="7" text="상태"/>
  79. <Cell col="8" text="Acting"/>
  80. <Cell col="9" text="수행자"/>
  81. <Cell col="10" text="병실"/>
  82. <Cell col="11" text="마감일시"/>
  83. <Cell col="12" text="Action"/>
  84. <Cell col="13" text="caption1"/>
  85. <Cell col="14" text="caption2"/>
  86. <Cell col="15" text="caption3"/>
  87. <Cell col="16" text="caption4"/>
  88. <Cell col="17" text="caption5"/>
  89. <Cell col="18" text="caption6"/>
  90. <Cell col="19" text="caption7"/>
  91. <Cell col="20" text="Note"/>
  92. </Band>
  93. <Band id="body">
  94. <Cell displaytype="checkbox" edittype="checkbox" text="expr:check==&quot;Y&quot;?&quot;1&quot;:&quot;0&quot;"/>
  95. <Cell col="1" style="align:left middle;" text="bind:execddtm" mask="@@@@-@@-@@ 99:99"/>
  96. <Cell col="2" style="align:left middle;" text="bind:pid"/>
  97. <Cell col="3" style="align:left middle;" text="bind:hngnm" wordwrap="word"/>
  98. <Cell col="4" style="align:left middle;" text="bind:sexage"/>
  99. <Cell col="5" style="align:left middle;" text="bind:prcpcd"/>
  100. <Cell col="6" style="align:left middle;" text="bind:prcpnm" wordwrap="word"/>
  101. <Cell col="7" style="align:left middle;" text="bind:cdnm"/>
  102. <Cell col="8" style="align:left middle;" text="bind:acting"/>
  103. <Cell col="9" style="align:left middle;" text="bind:execrid"/>
  104. <Cell col="10" style="align:left middle;" text="bind:roomcd"/>
  105. <Cell col="11" style="align:left middle;" text="bind:enddd" mask="expr:utlf_isNull(enddd)?&quot;&quot;:'@@@@-@@-@@ 99:99:99'"/>
  106. <Cell col="12" style="align:left middle;" text="bind:action"/>
  107. <Cell col="13" style="align:left middle;" text="bind:prcpdd"/>
  108. <Cell col="14" style="align:left middle;" text="bind:prcpno"/>
  109. <Cell col="15" style="align:left middle;" text="bind:prcphistno"/>
  110. <Cell col="16" style="align:left middle;" text="bind:execprcpno"/>
  111. <Cell col="17" style="align:left middle;" text="bind:instcd"/>
  112. <Cell col="18" style="align:left middle;" text="bind:execdeptcd"/>
  113. <Cell col="19" style="align:left middle;" text="bind:oiflag"/>
  114. <Cell col="20" style="align:left middle;" text="bind:note"/>
  115. </Band>
  116. </Format>
  117. </Formats>
  118. </Grid>
  119. <Button id="button6" taborder="5" text="마감" onlbuttonup="button6_onlbuttonup" class="btn2" position="absolute 1212 74 1256 94" anchor="top right" positiontype="position" onclick="button6_onclick"/>
  120. <Static id="caption1" text="공통마감" class="tit_1" position="absolute 0 3 196 28" positiontype="position"/>
  121. </Layout>
  122. </Layouts>
  123. <Objects>
  124. <Dataset id="ds_grid_grd_projlist" firefirstcount="0" firenextcount="0" useclientlayout="true" updatecontrol="true" enableevent="true" loadkeymode="keep" reversesubsum="false">
  125. <ColumnInfo>
  126. <Column id="check" type="STRING"/>
  127. <Column id="execddtm" type="STRING"/>
  128. <Column id="pid" type="STRING"/>
  129. <Column id="hngnm" type="STRING"/>
  130. <Column id="sexage" type="STRING"/>
  131. <Column id="prcpcd" type="STRING"/>
  132. <Column id="prcpnm" type="STRING"/>
  133. <Column id="cdnm" type="STRING"/>
  134. <Column id="acting" type="STRING"/>
  135. <Column id="execrid" type="STRING"/>
  136. <Column id="roomcd" type="STRING"/>
  137. <Column id="enddd" type="STRING"/>
  138. <Column id="action" type="STRING"/>
  139. <Column id="prcpdd" type="STRING"/>
  140. <Column id="prcpno" type="STRING"/>
  141. <Column id="prcphistno" type="STRING"/>
  142. <Column id="execprcpno" type="STRING"/>
  143. <Column id="instcd" type="STRING"/>
  144. <Column id="execdeptcd" type="STRING"/>
  145. <Column id="oiflag" type="STRING"/>
  146. <Column id="note" type="STRING"/>
  147. </ColumnInfo>
  148. </Dataset>
  149. <Dataset id="ds_init_combo1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  150. <ColumnInfo>
  151. <Column id="prcpexecdeptcdid" type="STRING" size="256"/>
  152. <Column id="prcpexecdeptcdnm" type="STRING" size="256"/>
  153. </ColumnInfo>
  154. </Dataset>
  155. <Dataset id="ds_endlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  156. <ColumnInfo>
  157. <Column id="prcpdd" type="STRING" size="256"/>
  158. <Column id="prcpno" type="STRING" size="256"/>
  159. <Column id="prcphistno" type="STRING" size="256"/>
  160. <Column id="execprcpno" type="STRING" size="256"/>
  161. <Column id="instcd" type="STRING" size="256"/>
  162. <Column id="oiflag" type="STRING" size="256"/>
  163. </ColumnInfo>
  164. </Dataset>
  165. <Dataset id="ds_endflagvalue" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  166. <ColumnInfo>
  167. <Column id="endflag" type="STRING" size="256"/>
  168. <Column id="execdd" type="STRING" size="256"/>
  169. <Column id="execdeptcd" type="STRING" size="256"/>
  170. </ColumnInfo>
  171. <Rows>
  172. <Row/>
  173. </Rows>
  174. </Dataset>
  175. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  176. <ColumnInfo>
  177. <Column id="execdd" type="STRING" size="256"/>
  178. <Column id="deptcd" type="STRING" size="256"/>
  179. <Column id="exeflag" type="STRING" size="256"/>
  180. <Column id="flag" type="STRING" size="256"/>
  181. </ColumnInfo>
  182. <Rows>
  183. <Row/>
  184. </Rows>
  185. </Dataset>
  186. <Dataset id="ds_init_combo2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  187. <ColumnInfo>
  188. <Column id="id" type="STRING" size="256"/>
  189. <Column id="name" type="STRING" size="256"/>
  190. </ColumnInfo>
  191. <Rows>
  192. <Row>
  193. <Col id="id">before</Col>
  194. <Col id="name">마감전</Col>
  195. </Row>
  196. <Row>
  197. <Col id="id">after</Col>
  198. <Col id="name">마감후</Col>
  199. </Row>
  200. </Rows>
  201. </Dataset>
  202. <Dataset id="ds_send_cond" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  203. <ColumnInfo>
  204. <Column id="deptcd" type="STRING" size="256"/>
  205. <Column id="execdd" type="STRING" size="256"/>
  206. <Column id="exeflag" type="STRING" size="256"/>
  207. <Column id="flag" type="STRING" size="256"/>
  208. </ColumnInfo>
  209. <Rows>
  210. <Row/>
  211. </Rows>
  212. </Dataset>
  213. <Dataset id="ds_cond_reqdata1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  214. <ColumnInfo>
  215. <Column id="pid" type="STRING" size="256"/>
  216. <Column id="hngnm" type="STRING" size="256"/>
  217. <Column id="deptcd" type="STRING" size="256"/>
  218. <Column id="drid" type="STRING" size="256"/>
  219. <Column id="execrid1cdid" type="STRING" size="256"/>
  220. <Column id="basesuppdeptcd" type="STRING" size="256"/>
  221. <Column id="userid" type="STRING" size="256"/>
  222. <Column id="deptgubun" type="STRING" size="256"/>
  223. <Column id="term" type="STRING" size="256"/>
  224. <Column id="savedeptcd" type="STRING" size="256"/>
  225. <Column id="tmplcd" type="STRING" size="256"/>
  226. <Column id="cnfmman1cdid" type="STRING" size="256"/>
  227. <Column id="suppdeptcd" type="STRING" size="256"/>
  228. <Column id="initflag" type="STRING" size="256"/>
  229. <Column id="rbasecdflag" type="STRING" size="256"/>
  230. <Column id="ebasecdflag" type="STRING" size="256"/>
  231. <Column id="instance1" type="STRING" size="256"/>
  232. <Column id="alladdyn" type="STRING" size="256"/>
  233. </ColumnInfo>
  234. <Rows>
  235. <Row>
  236. <Col id="pid"/>
  237. <Col id="hngnm"/>
  238. <Col id="deptcd"/>
  239. <Col id="drid"/>
  240. <Col id="execrid1cdid"/>
  241. <Col id="basesuppdeptcd"/>
  242. <Col id="userid"/>
  243. <Col id="deptgubun"/>
  244. <Col id="term">90</Col>
  245. <Col id="savedeptcd"/>
  246. <Col id="tmplcd"/>
  247. <Col id="cnfmman1cdid"/>
  248. <Col id="suppdeptcd"/>
  249. </Row>
  250. </Rows>
  251. </Dataset>
  252. </Objects>
  253. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  254. * System Name : KU2.0
  255. * Job Name :
  256. * File Name :
  257. * Creator :
  258. * Make Date :
  259. *
  260. * Description :
  261. *---------------------------------------------------------------------------------------
  262. * Modify Date Modifier Modify Description
  263. *---------------------------------------------------------------------------------------
  264. *
  265. *---------------------------------------------------------------------------------------
  266. ****************************************************************************************/
  267. //=======================================================================================
  268. // xjs Include
  269. //---------------------------------------------------------------------------------------
  270. include "com_commonxp::comm_main.xjs";
  271. //include "com_departmentcodexp::ZSD001.xjs";
  272. include "ast_examcurexp::AEZ0001.xjs";
  273. //=======================================================================================
  274. // Function
  275. //---------------------------------------------------------------------------------------
  276. //Acting부서 콤보
  277. function fn_initSearch()
  278. {
  279. ds_cond_reqdata1.setColumn(0, "initflag", "1");
  280. ds_cond_reqdata1.setColumn(0, "suppdeptcd", suppdeptcd);
  281. ds_cond_reqdata1.setColumn(0, "userid", sysf_getUserInfo("dutplcecd"));
  282. ds_cond_reqdata1.setColumn(0, "deptcd", suppdeptcd);
  283. ds_cond_reqdata1.setColumn(0, "basesuppdeptcd", suppdeptcd);
  284. ds_cond_reqdata1.setColumn(0, "rbasecdflag", "R");
  285. ds_cond_reqdata1.setColumn(0, "ebasecdflag", "E");
  286. ds_cond_reqdata1.setColumn(0, "instance1", suppdeptcd);
  287. ds_cond_reqdata1.setColumn(0, "alladdyn", "Y");
  288. var objParam = new Object();
  289. objParam.id = "TRAER00824";
  290. objParam.service = "examcureresultrefapp.RsltRef";
  291. objParam.method = "reqGetInitRsltRefTotalList";
  292. objParam.inds = "reqparam=ds_cond_reqdata1";
  293. objParam.outds = "ds_init_combo1=item2";
  294. tranf_submit(objParam);
  295. }
  296. // 마감
  297. function submit_TRABC02003(){
  298. var objParam = new Object();
  299. objParam.id = "TRABC02003";
  300. objParam.service = "actingendapp.ActingEnd";
  301. objParam.method = "reqExeActingEnd";
  302. objParam.inds = "req=ds_endlist flag=ds_endflagvalue";
  303. objParam.outds ="ds_results=ret";
  304. objParam.callback = "cbf_TRABC02003";
  305. tranf_submit(objParam);
  306. }
  307. function cbf_TRABC02003(strSvcID, nErrorCode, strErrorMsg){
  308. //에러 처리
  309. if(nErrorCode == 0){
  310. sysf_messageBox("마감이 완료되었습니다.","I999");
  311. }else{
  312. }
  313. }
  314. // 액팅리스트 grid
  315. function submit_TRABC02002(){
  316. dsf_createDsRow("ds_send_cond",
  317. [{col:"deptcd", val:group3.combo1.value}
  318. ,{col:"execdd", val:group3.ipt_execdd.value}
  319. ,{col:"exeflag", val:group3.radio1.value}
  320. ,{col:"flag", val:group3.combo2.value}
  321. ]);
  322. var objParam = new Object();
  323. objParam.id = "TRABC02002";
  324. objParam.service = "actingendapp.ActingEnd";
  325. objParam.method = "reqGetActingEndList";
  326. objParam.inds = "req=ds_send_cond";
  327. objParam.outds ="ds_grid_grd_projlist=proj";
  328. objParam.callback = "cbf_TRABC02002";
  329. tranf_submit(objParam);
  330. }
  331. function cbf_TRABC02002(strSvcID, nErrorCode, strErrorMsg){
  332. //에러 처리
  333. if(nErrorCode == 0){
  334. for(var i = 0; i < ds_grid_grd_projlist.rowcount ; i++){
  335. ds_grid_grd_projlist.setColumn(i, "check", "N");
  336. }
  337. }else{
  338. }
  339. }
  340. function fInitialize(){
  341. var sdate = utlf_getCurrentDate();
  342. group3.ipt_execdd.value = sdate;
  343. fn_initSearch();
  344. // 세션에서 부서 코드를 받아온다.
  345. var userid = sysf_getUserId();
  346. group3.combo2.index = 0;
  347. if(userid == "ASTBC" || userid == "AST"){
  348. frmf_addComboItem("group3.combo1", "- 전 체 -", "-", "");
  349. group3.combo1.index = 0;
  350. }
  351. var combo1Index = 0;
  352. // AST 로 로그인 안했을 경우, 콤보박스에 해당 부서이름만 나오게 한다. (AST 로그인 시에는 콤보박스에서 부서 선택 가능)
  353. if(userid != "ASTBC" && userid != "AST"){
  354. for(var i = 0; i < ds_init_combo1.rowcount; i++){
  355. if(ds_init_combo1.getColumn(i, "prcpexecdeptcdid") == dutplcecd){
  356. combo1Index = i;
  357. break;
  358. }
  359. }
  360. group3.combo1.index = combo1Index;
  361. group3.combo1.enable = false;
  362. grd_projlist.setFormatColProperty(0, "size", 30);
  363. }else{
  364. button6.visible = false;
  365. grd_projlist.setFormatColProperty(0, "size", 0);
  366. }
  367. submit_TRABC02002();
  368. group3.combo2.index = 0;
  369. grd_projlist.updateToDataset();
  370. }
  371. //=======================================================================================
  372. // Event
  373. //---------------------------------------------------------------------------------------
  374. /****************************************************************************************
  375. * Components :
  376. * Components ID : SMABC02000
  377. * Event : onload
  378. * Argument : 01.obj : Object Event has occurred
  379. * : 02.e : Event Object
  380. * Description :
  381. ****************************************************************************************/
  382. function SMABC02000_onload(obj:Form, e:LoadEventInfo)
  383. {
  384. frmf_initForm(obj); // 화면공통
  385. lf_aezfSetSuppDeptcd(); //suppdeptcd가져옴.
  386. ds_endlist.clearData();
  387. fInitialize();
  388. }
  389. /****************************************************************************************
  390. * Components :
  391. * Components ID : button6
  392. * Event : onclick
  393. * Argument : 01.obj : Object Event has occurred
  394. * : 02.e : Event Object
  395. * Description : 마감
  396. ****************************************************************************************/
  397. function button6_onclick(obj:Button, e:ClickEventInfo)
  398. {
  399. ds_endlist.clearData();
  400. var endListRow = 0;
  401. for(var i = 0; i < ds_grid_grd_projlist.rowcount; i++){
  402. if(ds_grid_grd_projlist.getColumn(i, "check") == "Y"){
  403. ds_endlist.addRow();
  404. ds_endlist.setColumn(endListRow, "prcpdd", ds_grid_grd_projlist.getColumn(i, "prcpdd"));
  405. ds_endlist.setColumn(endListRow, "prcpno", ds_grid_grd_projlist.getColumn(i, "prcpno"));
  406. ds_endlist.setColumn(endListRow, "prcphistno", ds_grid_grd_projlist.getColumn(i, "prcphistno"));
  407. ds_endlist.setColumn(endListRow, "execprcpno", ds_grid_grd_projlist.getColumn(i, "execprcpno"));
  408. ds_endlist.setColumn(endListRow, "instcd", ds_grid_grd_projlist.getColumn(i, "instcd"));
  409. ds_endlist.setColumn(endListRow, "oiflag", ds_grid_grd_projlist.getColumn(i, "oiflag"));
  410. endListRow++;
  411. }
  412. }
  413. // 체크된 행이 있으면 마감실행
  414. if(endListRow != 0){
  415. ds_endflagvalue.setColumn(0, "endflag", "A12");
  416. ds_endflagvalue.setColumn(0, "execdd", group3.ipt_execdd.value);
  417. ds_endflagvalue.setColumn(0, "execdeptcd", group3.combo1.value);
  418. submit_TRABC02003();
  419. submit_TRABC02002();
  420. }
  421. }
  422. /****************************************************************************************
  423. * Components :
  424. * Components ID : button7
  425. * Event : onclick
  426. * Argument : 01.obj : Object Event has occurred
  427. * : 02.e : Event Object
  428. * Description : 초기화
  429. ****************************************************************************************/
  430. function button7_onclick(obj:Button, e:ClickEventInfo)
  431. {
  432. group3.radio1.index = 0;
  433. fInitialize();
  434. }
  435. //구분 콤보 ontextchanged
  436. function group3_combo2_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  437. {
  438. if (group3.combo1.value != '-' && group3.radio1.value == "Y" && group3.combo2.value == "before"){
  439. button6.visible = true;
  440. grd_projlist.setFormatColProperty(0, "size", 30);
  441. }else{
  442. button6.visible = false;
  443. grd_projlist.setFormatColProperty(0, "size", 0);
  444. }
  445. submit_TRABC02002();
  446. }
  447. //일자 ontextchanged
  448. function group3_ipt_execdd_ontextchanged(obj:Calendar, e:TextChangedEventInfo)
  449. {
  450. group3.ipt_execdd.updateToDataset();
  451. submit_TRABC02002();
  452. }
  453. //라디오 버튼(실행/미실행) ontextchanged
  454. function group3_radio1_onitemchanged(obj:Radio, e:ItemChangeEventInfo)
  455. {
  456. if (group3.combo1.value != '-' && group3.radio1.value == "Y" && group3.combo2.value == "before"){
  457. button6.visible = true;
  458. grd_projlist.setFormatColProperty(0, "size", 30);
  459. }else{
  460. button6.visible = false;
  461. grd_projlist.setFormatColProperty(0, "size", 0);
  462. }
  463. submit_TRABC02002();
  464. }
  465. //그리드 체크박스 YN설정
  466. function grd_projlist_oncellclick(obj:Grid, e:GridClickEventInfo)
  467. {
  468. if(e.cell==0){
  469. if(ds_grid_grd_projlist.getColumn(e.row,"check")=="N"){
  470. ds_grid_grd_projlist.setColumn(e.row,"check","Y");
  471. }else{
  472. ds_grid_grd_projlist.setColumn(e.row,"check","N");
  473. }
  474. }
  475. }
  476. //Acting부서 콤보 ontextchanged
  477. function group3_combo1_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  478. {
  479. if (group3.combo1.value != '-' && group3.radio1.value == "Y" && group3.combo2.value == "before"){
  480. button6.visible = true;
  481. grd_projlist.setFormatColProperty(0, "size", 30);
  482. }else{
  483. button6.visible = false;
  484. grd_projlist.setFormatColProperty(0, "size", 0);
  485. }
  486. submit_TRABC02002();
  487. }
  488. function grd_projlist_onheadclick(obj:Grid, e:GridClickEventInfo)
  489. {
  490. if(e.cell==0){
  491. if(grd_projlist.getCellProperty('Head', 0, 'text')==0){
  492. for (var i = 0 ; i < ds_grid_grd_projlist.rowcount; i++ ){
  493. ds_grid_grd_projlist.setColumn(i, "check", "Y");
  494. grd_projlist.setCellProperty('Head', 0, 'text', 1);
  495. }
  496. } else {
  497. for (var i = 0 ; i < ds_grid_grd_projlist.rowcount; i++ ){
  498. ds_grid_grd_projlist.setColumn(i, "check", "N");
  499. grd_projlist.setCellProperty('Head', 0, 'text', 0);
  500. }
  501. }
  502. }
  503. }
  504. ]]></Script>
  505. </Form>
  506. </FDL>