SMRSC20300_장비신청부서장승인(경북대).xfdl 32 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRSC20300" position="absolute 0 0 1195 779" titletext="장비신청부서장승인" onload="SMRSC20300_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 43 1195 778" id="group3" scrollbars="autoboth" anchor="all">
  8. <Layouts>
  9. <Layout>
  10. <Div id="grp_sea" taborder="14" position="absolute 0 9 1194 69" class="div_SA2" anchor="left top right"/>
  11. <Shape position="absolute 0 528 1195 534" linetype="vertical" id="line12" class="line_2" anchor="default"/>
  12. <Static text="장비신청 목록" position="absolute 0 78 124 95" id="caption9" class="tit_2" anchor="default"/>
  13. <Static text="포장단위" position="absolute -126 310 -18 333" align="align:center middle;" id="caption52" class="cell_1" anchor="default"/>
  14. <Static text="근속기준일/년" position="absolute -126 334 -18 357" align="align:center middle;" id="caption54" class="cell_1" anchor="default"/>
  15. <Grid position="absolute 0 99 1194 735" id="grd_reqeqmtlist" taborder="13" binddataset="ds_main_reqeqmt_reqeqmtlist" anchor="all" selecttype="multirow" cellclickbound="cell" oncelldblclick="group3_grd_reqeqmtlist_oncelldblclick" ontextchanged="group3_grd_reqeqmtlist_ontextchanged">
  16. <Formats>
  17. <Format id="default">
  18. <Columns>
  19. <Column size="25" band="left"/>
  20. <Column size="80"/>
  21. <Column size="140"/>
  22. <Column size="75"/>
  23. <Column size="95"/>
  24. <Column size="60"/>
  25. <Column size="150"/>
  26. <Column size="130"/>
  27. <Column size="55"/>
  28. <Column size="70"/>
  29. <Column size="80"/>
  30. <Column size="80"/>
  31. <Column size="100"/>
  32. <Column size="100"/>
  33. <Column size="100"/>
  34. <Column size="100"/>
  35. <Column size="100"/>
  36. <Column size="0"/>
  37. <Column size="0"/>
  38. <Column size="0"/>
  39. <Column size="0"/>
  40. <Column size="0"/>
  41. <Column size="0"/>
  42. <Column size="0"/>
  43. <Column size="0"/>
  44. <Column size="0"/>
  45. <Column size="0"/>
  46. <Column size="0"/>
  47. <Column size="0"/>
  48. <Column size="0"/>
  49. <Column size="0"/>
  50. <Column size="0"/>
  51. <Column size="0"/>
  52. <Column size="0"/>
  53. <Column size="0"/>
  54. <Column size="0"/>
  55. <Column size="0"/>
  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="0"/>
  65. <Column size="0"/>
  66. <Column size="0"/>
  67. <Column size="0"/>
  68. <Column size="0"/>
  69. <Column size="0"/>
  70. </Columns>
  71. <Rows>
  72. <Row size="24" band="head"/>
  73. <Row size="24"/>
  74. </Rows>
  75. <Band id="head">
  76. <Cell/>
  77. <Cell col="1" text="부서장승인"/>
  78. <Cell col="2" text="진행상태"/>
  79. <Cell col="3" text="장비구분"/>
  80. <Cell col="4" text="신청번호"/>
  81. <Cell col="5" text="신청자"/>
  82. <Cell col="6" text="장비명"/>
  83. <Cell col="7" text="설치장소"/>
  84. <Cell col="8" text="신청수량"/>
  85. <Cell col="9" text="단위"/>
  86. <Cell col="10" text="원화총금액"/>
  87. <Cell col="11" text="외화총금액"/>
  88. <Cell col="12" text="심의결과"/>
  89. <Cell col="13" text="심의비고"/>
  90. <Cell col="14" text="구매기준일자"/>
  91. <Cell col="15" text="구매진행상태"/>
  92. <Cell col="16" text="구매비고"/>
  93. <Cell col="17"/>
  94. <Cell col="18"/>
  95. <Cell col="19"/>
  96. <Cell col="20"/>
  97. <Cell col="21"/>
  98. <Cell col="22"/>
  99. <Cell col="23"/>
  100. <Cell col="24"/>
  101. <Cell col="25"/>
  102. <Cell col="26"/>
  103. <Cell col="27"/>
  104. <Cell col="28"/>
  105. <Cell col="29"/>
  106. <Cell col="30"/>
  107. <Cell col="31"/>
  108. <Cell col="32"/>
  109. <Cell col="33"/>
  110. <Cell col="34"/>
  111. <Cell col="35"/>
  112. <Cell col="36"/>
  113. <Cell col="37"/>
  114. <Cell col="38"/>
  115. <Cell col="39"/>
  116. <Cell col="40"/>
  117. <Cell col="41"/>
  118. <Cell col="42"/>
  119. <Cell col="43"/>
  120. <Cell col="44"/>
  121. <Cell col="45"/>
  122. <Cell col="46"/>
  123. <Cell col="47"/>
  124. <Cell col="48"/>
  125. <Cell col="49"/>
  126. <Cell col="50"/>
  127. </Band>
  128. <Band id="body">
  129. <Cell celltype="head"/>
  130. <Cell col="1" displaytype="checkbox" edittype="checkbox" text="bind:deptaprvyn" expr="expr:deptaprvyn == 'Y' || deptaprvyn == '1' ? '1' : '0'"/>
  131. <Cell col="2" displaytype="combo" text="bind:prcsstat" enable="false"/>
  132. <Cell col="3" text="bind:eqflagnm"/>
  133. <Cell col="4" text="bind:reqno"/>
  134. <Cell col="5" text="bind:reqpsnnm"/>
  135. <Cell col="6" displaytype="text" text="bind:goodflagengnm"/>
  136. <Cell col="7" displaytype="text" text="bind:installplcenm"/>
  137. <Cell col="8" text="bind:appqty"/>
  138. <Cell col="9" text="bind:bugtforgnamtunitnm"/>
  139. <Cell col="10" displaytype="number" text="bind:bugtwncurncy"/>
  140. <Cell col="11" displaytype="number" text="bind:bugtforgnamt"/>
  141. <Cell col="12" displaytype="combo" text="bind:dcusrslt" enable="false"/>
  142. <Cell col="13" text="bind:dcuscmt"/>
  143. <Cell col="14" displaytype="expr:utlf_isNull(badd) ? 'normal' : 'date'" text="bind:badd"/>
  144. <Cell col="15" text="bind:purcprcsstat"/>
  145. <Cell col="16" text="bind:purcprcscmt"/>
  146. <Cell col="17" text="bind:instcd"/>
  147. <Cell col="18" text="bind:reqdd"/>
  148. <Cell col="19" text="bind:reqseqno"/>
  149. <Cell col="20" text="bind:acptflag"/>
  150. <Cell col="21" text="bind:goodflaghngnm"/>
  151. <Cell col="22" text="bind:workflag"/>
  152. <Cell col="23" text="bind:workflagnm"/>
  153. <Cell col="24" text="bind:welfcd"/>
  154. <Cell col="25" text="bind:reqdeptcd"/>
  155. <Cell col="26" text="bind:reqdeptnm"/>
  156. <Cell col="27" text="bind:mngtdeptcd"/>
  157. <Cell col="28" text="bind:mngtdeptnm"/>
  158. <Cell col="29" text="bind:installplcecd"/>
  159. <Cell col="30" text="bind:usemthd"/>
  160. <Cell col="31" text="bind:usemthdnm"/>
  161. <Cell col="32" text="bind:fcstuseyearno"/>
  162. <Cell col="33" text="bind:goodunitcost"/>
  163. <Cell col="34" text="bind:bugtyy"/>
  164. <Cell col="35" text="bind:bugtforgnamtunit"/>
  165. <Cell col="36" text="bind:chgrate"/>
  166. <Cell col="37" text="bind:addmnpwrdr"/>
  167. <Cell col="38" text="bind:addmnpwrnurs"/>
  168. <Cell col="39" text="bind:addmnpwrengr"/>
  169. <Cell col="40" text="bind:addmnpwretc"/>
  170. <Cell col="41" text="bind:installspcepossnyn"/>
  171. <Cell col="42" text="bind:calcscorgenryn"/>
  172. <Cell col="43" text="bind:usgepurcneed"/>
  173. <Cell col="44" text="bind:reqpsnid"/>
  174. <Cell col="45" text="bind:possesdocucd"/>
  175. <Cell col="46" text="bind:comusedept"/>
  176. <Cell col="47" text="bind:smkindeqyn"/>
  177. <Cell col="48" text="bind:goodflag"/>
  178. <Cell col="49" text="bind:rowstatus"/>
  179. <Cell col="50" text="bind:adyn"/>
  180. </Band>
  181. </Format>
  182. </Formats>
  183. </Grid>
  184. <Shape position="absolute 0 94 1194 100" id="line3" class="line_10" anchor="left top right"/>
  185. <Button position="absolute 1124 27 1180 49" id="btn_search" class="btn1" taborder="8" text="조회" anchor="top right" onclick="group3_btn_search_onclick"/>
  186. <Button position="absolute 538 18 554 34" id="button5" class="icon_search" enable="true" taborder="5" text="" anchor="default" onclick="group3_button5_onclick"/>
  187. <Static text="기관코드 :" position="absolute 15 18 132 35" id="caption4" class="search_name" anchor="default"/>
  188. <Shape position="absolute 1106 18 1112 60" linetype="vertical" id="line18" class="line_4" anchor="top right"/>
  189. <Edit position="absolute 425 17 535 36" id="ipt_reqdeptcd_search" class="input_essential" enable="true" taborder="4" anchor="default" onkeydown="group3_ipt_reqdeptcd_search_onkeydown"/>
  190. <Static text="신청부서 :" position="absolute 340 18 457 35" id="caption8" class="search_name" anchor="default"/>
  191. <Edit readonly="true" position="absolute 557 17 705 36" id="opt_reqdeptnm_search" anchor="default" class="output"/>
  192. <Static text="신청일자 :" position="absolute 15 43 132 60" id="caption14" class="search_name" anchor="default"/>
  193. <Calendar position="absolute 100 42 195 61" id="ipt_reqfrmdd_search" class="input_essential" taborder="2" anchor="default" dateformat="yyyy-MM-dd" value="null" autoselect="true"/>
  194. <Static text="~" position="absolute 199 42 214 62" id="caption42" anchor="default"/>
  195. <Calendar position="absolute 215 42 310 61" id="ipt_reqtodd_search" class="input_essential" taborder="3" anchor="default" dateformat="yyyy-MM-dd" autoselect="true"/>
  196. <Combo position="absolute 425 42 615 61" id="cmb_prcsstat_search" class="combo_default" taborder="7" anchor="default"/>
  197. <Static text="진행상태 :" position="absolute 340 43 457 60" id="caption45" class="search_name" anchor="default"/>
  198. <Button position="absolute 1065 74 1129 94" id="btnselect" class="btn2" taborder="11" text="전체선택" anchor="top right" onclick="group3_btnselect_onclick"/>
  199. <Combo position="absolute 100 17 310 36" id="cmb_instcd" class="combo_default" enable="false" taborder="1" anchor="default" onitemchanged="group3_cmb_instcd_onitemchanged"/>
  200. <Combo position="absolute 1033 48 1063 67" id="ipt_dcusrslt" visible="false" anchor="default"/>
  201. <Combo position="absolute 1063 48 1093 67" id="ipt_purcprcsstat" visible="false" anchor="default"/>
  202. <Button position="absolute 1130 74 1194 94" id="btn_cancel" class="btn2" taborder="11" text="전체취소" anchor="top right" onclick="group3_btn_cancel_onclick"/>
  203. <Combo position="absolute 425 17 705 36" id="cmb_deptcd" visible="false" innerdataset="@ds_combo_reqdeptcd_reqdeptcdlist" datacolumn="label" codecolumn="value" anchor="default" onitemchanged="group3_cmb_deptcd_onitemchanged"/>
  204. <Static id="caption00" text="장비구분 :" class="search_name" position="absolute 656 42 738 59"/>
  205. <Combo id="cmb_eqflag_search" taborder="15" class="combo_default" position="absolute 733 42 867 61" codecolumn="codecolumn" datacolumn="datacolumn" enable="true">
  206. <Dataset id="innerdataset">
  207. <ColumnInfo>
  208. <Column id="codecolumn" size="256"/>
  209. <Column id="datacolumn" size="256"/>
  210. </ColumnInfo>
  211. <Rows>
  212. <Row>
  213. <Col id="codecolumn">A</Col>
  214. <Col id="datacolumn">전체</Col>
  215. </Row>
  216. <Row>
  217. <Col id="codecolumn"/>
  218. <Col id="datacolumn">일반장비</Col>
  219. </Row>
  220. <Row>
  221. <Col id="codecolumn">C</Col>
  222. <Col id="datacolumn">임상실습동장비</Col>
  223. </Row>
  224. </Rows>
  225. </Dataset>
  226. </Combo>
  227. </Layout>
  228. </Layouts>
  229. </Div>
  230. <Div position="absolute 0 26 1194 55" id="grp_btn" scrollbars="autoboth" anchor="left top right">
  231. <Layouts>
  232. <Layout>
  233. <Shape position="absolute 0 22 1194 28" id="line17" class="line_6" anchor="left top right"/>
  234. <Button position="absolute 1138 1 1194 23" id="btn_save" class="btn4" text="저장" anchor="top right" onclick="grp_btn_btn_save_onclick"/>
  235. </Layout>
  236. </Layouts>
  237. </Div>
  238. <Static id="caption6" text="장비신청 부서장승인" class="tit_1" position="absolute 0 0 160 25"/>
  239. </Layout>
  240. </Layouts>
  241. <Objects>
  242. <Dataset id="ds_combo_reqdeptcd_reqdeptcdlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  243. <ColumnInfo>
  244. <Column id="value" type="STRING" size="256"/>
  245. <Column id="label" type="STRING" size="256"/>
  246. </ColumnInfo>
  247. <Rows>
  248. <Row>
  249. <Col id="value"/>
  250. <Col id="label"/>
  251. </Row>
  252. </Rows>
  253. </Dataset>
  254. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  255. <ColumnInfo>
  256. <Column id="hidden" type="STRING" size="256"/>
  257. </ColumnInfo>
  258. <Rows>
  259. <Row>
  260. <Col id="hidden"/>
  261. </Row>
  262. </Rows>
  263. </Dataset>
  264. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  265. <ColumnInfo>
  266. <Column id="init" type="STRING" size="256"/>
  267. </ColumnInfo>
  268. <Rows>
  269. <Row>
  270. <Col id="init"/>
  271. </Row>
  272. </Rows>
  273. </Dataset>
  274. <Dataset id="ds_send_search" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_send_search_oncolumnchanged">
  275. <ColumnInfo>
  276. <Column id="instcd" type="STRING" size="256"/>
  277. <Column id="reqdeptcd" type="STRING" size="256"/>
  278. <Column id="reqdeptnm" type="STRING" size="256"/>
  279. <Column id="reqfrmdd" type="STRING" size="256"/>
  280. <Column id="reqtodd" type="STRING" size="256"/>
  281. <Column id="prcsstat" type="STRING" size="256"/>
  282. <Column id="emplno" type="STRING" size="256"/>
  283. <Column id="eqflag" type="STRING" size="256"/>
  284. </ColumnInfo>
  285. <Rows>
  286. <Row>
  287. <Col id="instcd"/>
  288. <Col id="reqdeptcd"/>
  289. <Col id="reqdeptnm"/>
  290. <Col id="reqfrmdd"/>
  291. <Col id="reqtodd"/>
  292. <Col id="prcsstat"/>
  293. <Col id="emplno"/>
  294. </Row>
  295. </Rows>
  296. </Dataset>
  297. <Dataset id="ds_main" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  298. <ColumnInfo/>
  299. </Dataset>
  300. <Dataset id="ds_main_reqeqmt_reqeqmtlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_main_reqeqmt_reqeqmtlist_oncolumnchanged"/>
  301. <Dataset id="ds_temp" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  302. <ColumnInfo>
  303. <Column id="temp" type="STRING" size="256"/>
  304. </ColumnInfo>
  305. <Rows>
  306. <Row>
  307. <Col id="temp"/>
  308. </Row>
  309. </Rows>
  310. </Dataset>
  311. <Dataset id="ds_send_save" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  312. <ColumnInfo>
  313. <Column id="reqeqmtlist" type="STRING" size="256"/>
  314. </ColumnInfo>
  315. <Rows>
  316. <Row>
  317. <Col id="reqeqmtlist"/>
  318. </Row>
  319. </Rows>
  320. </Dataset>
  321. <Dataset id="ds_emplno" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  322. <ColumnInfo>
  323. <Column id="emplno" type="STRING" size="256"/>
  324. </ColumnInfo>
  325. </Dataset>
  326. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  327. <ColumnInfo/>
  328. </Dataset>
  329. <Dataset id="ds_combo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  330. <ColumnInfo>
  331. <Column id="dcusrslt" type="STRING" size="256"/>
  332. <Column id="purcprcsstat" type="STRING" size="256"/>
  333. <Column id="reqdeptcd" type="STRING" size="256"/>
  334. </ColumnInfo>
  335. <Rows>
  336. <Row>
  337. <Col id="dcusrslt"/>
  338. <Col id="purcprcsstat"/>
  339. <Col id="reqdeptcd"/>
  340. </Row>
  341. </Rows>
  342. </Dataset>
  343. <Dataset id="ds_deprtmangr" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  344. </Objects>
  345. <Bind>
  346. <BindItem id="item0" compid="group3.ipt_reqdeptcd_search" propid="value" datasetid="ds_send_search" columnid="reqdeptcd"/>
  347. <BindItem id="item1" compid="group3.opt_reqdeptnm_search" propid="value" datasetid="ds_send_search" columnid="reqdeptnm"/>
  348. <BindItem id="item2" compid="group3.ipt_reqfrmdd_search" propid="value" datasetid="ds_send_search" columnid="reqfrmdd"/>
  349. <BindItem id="item3" compid="group3.ipt_reqtodd_search" propid="value" datasetid="ds_send_search" columnid="reqtodd"/>
  350. <BindItem id="item4" compid="group3.cmb_prcsstat_search" propid="value" datasetid="ds_send_search" columnid="prcsstat"/>
  351. <BindItem id="item5" compid="group3.cmb_instcd" propid="value" datasetid="ds_send_search" columnid="instcd"/>
  352. <BindItem id="item6" compid="group3.ipt_dcusrslt" propid="value" datasetid="ds_combo" columnid="dcusrslt"/>
  353. <BindItem id="item7" compid="group3.ipt_purcprcsstat" propid="value" datasetid="ds_combo" columnid="purcprcsstat"/>
  354. <BindItem id="item8" compid="group3.cmb_deptcd" propid="value" datasetid="ds_combo" columnid="reqdeptcd"/>
  355. <BindItem id="item9" compid="group3.cmb_eqflag_search" propid="value" datasetid="ds_send_search" columnid="eqflag"/>
  356. </Bind>
  357. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  358. * System Name :
  359. * Job Name :
  360. * Creator :
  361. * Make Date : 2017-06-19
  362. * Description :
  363. *---------------------------------------------------------------------------------------
  364. * Modify Date Modifier Modify Description
  365. *---------------------------------------------------------------------------------------
  366. * 2017-06-19 Live Converter TF->XP
  367. *
  368. *---------------------------------------------------------------------------------------
  369. ****************************************************************************************/
  370. //=======================================================================================
  371. // Lib Include
  372. //---------------------------------------------------------------------------------------
  373. include "com_commonxp::comm_main.xjs";
  374. include "mis_miscommonxp::MIS.xjs";
  375. include "mis_miscommonxp::RSZ001.xjs";
  376. //=======================================================================================
  377. // Global Form Variable
  378. //---------------------------------------------------------------------------------------
  379. var arErrorCode = new HashArray();
  380. //=======================================================================================
  381. // Function
  382. //---------------------------------------------------------------------------------------
  383. /****************************************************************************************
  384. * Argument : N/A
  385. * Description : 초기화
  386. ****************************************************************************************/
  387. function fInitialize()
  388. {
  389. misfGridInit(group3.grd_reqeqmtlist);
  390. ds_send_search.clearData(); ds_send_search.addRow();
  391. // ds_main.clearData(); ds_main.addRow();
  392. misfComboComCdList("Z0007",group3.cmb_instcd);
  393. misfComboComCdList("030R0025",group3.cmb_prcsstat_search);
  394. misfGridComboComCdList("030R0026",group3.grd_reqeqmtlist,"dcusrslt");
  395. misfComboCopyItemSet("group3.cmb_prcsstat_search", "", "group3.grd_reqeqmtlist", "prcsstat");
  396. frmf_addComboItem( "group3.cmb_prcsstat_search", "전체", "", "above");
  397. ds_send_search.enableevent = false;
  398. ds_send_search.setColumn(0, "prcsstat", "");
  399. ds_send_search.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
  400. misfMsterDetailSet(group3.grd_reqeqmtlist, null, "TRRSC20101", "Y");
  401. ds_emplno.setColumn( 0, "emplno", sysf_getUserInfo("userid"));
  402. var oParam = {};
  403. oParam.id = "TRRSC20102";
  404. oParam.service = "reqapp.ReqMngt";
  405. oParam.method = "reqGetReqDeprtMangr";
  406. oParam.inds = "req=ds_emplno";
  407. oParam.outds = "ds_deprtmangr=deprtmangr";
  408. oParam.async = false;
  409. //oParam.callback = "cf_TRRSC20102";
  410. tranf_submit(oParam);
  411. var deprtmangr = ds_deprtmangr.getColumn(0, "deprtmangr");
  412. if( sysf_getUserInfo("userid") == "99207" || sysf_getUserInfo("userid") == "15016"|| sysf_getUserInfo("userid") == "15352"|| sysf_getUserInfo("userid") == "11094" || sysf_getUserInfo("userid") == "10179" ) {
  413. }else{
  414. group3.ipt_reqdeptcd_search.enable = false;
  415. group3.button5.enable = false;
  416. group3.opt_reqdeptnm_search.enable = false;
  417. //group3.cmb_eqflag_search.enable = false;
  418. var oParam = {};
  419. oParam.id = "TRRSC20103";
  420. oParam.service = "reqapp.ReqMngt";
  421. oParam.method = "reqGetReqEqmtDeptConfList";
  422. oParam.inds = "req=ds_emplno";
  423. oParam.outds = "ds_combo_reqdeptcd_reqdeptcdlist=reqdeptcdlist";
  424. oParam.async = false;
  425. //oParam.callback = "cf_TRRSC20103";
  426. tranf_submit(oParam);
  427. group3.cmb_deptcd.visible = true;
  428. // if(utlf_isNull(deprtmangr)){
  429. // sysf_messageBox("접속하신 아이디는 화면권한이 없습니다.", "E999", "");
  430. // group3.btn_search.enable = false;
  431. // grp_btn.btn_save.enable = false;
  432. // group3.btnselect.enable = false;
  433. // group3.btn_cancel.enable = false;
  434. // group3.cmb_deptcd.enable = false;
  435. // return;
  436. // }
  437. }
  438. if(sysf_getUserInfo("dutplcecd") == "4171601000" || sysf_getUserInfo("dutplcecd") == "4171601100" || sysf_getUserInfo("userid") == "99207" ){ // 4171601000:임상실습동건립과, 4171601100:건립행정팀
  439. ds_send_search.setColumn( 0, "eqflag", "C"); //임상장비
  440. ds_send_search.setColumn( 0, "reqdeptcd", "");
  441. ds_send_search.setColumn( 0, "reqdeptnm", "");
  442. }else{
  443. ds_send_search.setColumn( 0, "eqflag", ""); //일반장비
  444. ds_send_search.setColumn( 0, "reqdeptcd", sysf_getUserInfo("dutplcecd"));
  445. ds_send_search.setColumn( 0, "reqdeptnm", sysf_getUserInfo("dutplcenm"));
  446. }
  447. ds_send_search.setColumn( 0, "reqfrmdd", utlf_getCurrentDate().substr(0,4)+"0101");
  448. ds_send_search.setColumn( 0, "reqtodd", utlf_getCurrentDate().substr(0,8));
  449. // ds_send_search.setColumn( 0, "reqdeptcd", sysf_getUserInfo("dutplcecd"));
  450. // ds_send_search.setColumn( 0, "reqdeptnm", sysf_getUserInfo("dutplcenm"));
  451. group3.cmb_prcsstat_search.value = "1";
  452. ds_send_search.enableevent = true;
  453. }
  454. //=======================================================================================
  455. // Event
  456. //---------------------------------------------------------------------------------------
  457. /****************************************************************************************
  458. * Components : Form
  459. * Description : 화면 처음 초기화시 폼초기화
  460. ****************************************************************************************/
  461. function SMRSC20300_onload(obj:Form, e:LoadEventInfo) {
  462. frmf_initForm(obj);
  463. //grdf_initGrid(grd_XXX);
  464. grdf_setGridSort(group3.grd_reqeqmtlist);
  465. grdf_setRowTypeIcon(group3.grd_reqeqmtlist, 0);
  466. fInitialize();
  467. }
  468. /****************************************************************************************
  469. * Components : Grid
  470. * Description : 장비신청 목록 선택
  471. ****************************************************************************************/
  472. function group3_grd_reqeqmtlist_oncelldblclick(obj:Grid, e:GridClickEventInfo) {
  473. if(e.row < 0) {
  474. return;
  475. }
  476. ds_main_reqeqmt_reqeqmtlist.setColumn(e.row, "rowstatus","disabled");
  477. dsf_createDs("ds_temp_reqeqmtlist");
  478. dsf_copyColInfo(ds_temp_reqeqmtlist, ds_main_reqeqmt_reqeqmtlist);
  479. ds_temp_reqeqmtlist.copyRow(ds_temp_reqeqmtlist.addRow(), ds_main_reqeqmt_reqeqmtlist, e.row);
  480. var objArg = new Object();
  481. objArg.arg_ds_main_reqeqmtlist = ds_temp_reqeqmtlist;
  482. frmf_modal("SMRSC20200","SMRSC20200",objArg,"","",300,300,"","","","","","M");
  483. }
  484. /****************************************************************************************
  485. * Components : Grid
  486. * Description : 데이터변경시
  487. ****************************************************************************************/
  488. function group3_grd_reqeqmtlist_ontextchanged(obj:Grid, e:GridEditTextChangedEventInfo) {
  489. var row = e.row;
  490. if(ds_main_reqeqmt_reqeqmtlist.getColumn(row, "deptaprvyn") == "N"){
  491. if(ds_main_reqeqmt_reqeqmtlist.getColumn(row, "acptflag") == "Y") {
  492. sysf_messageBox("이미 접수 완료된 자료 입니다.", "E999", "");
  493. ds_main_reqeqmt_reqeqmtlist.setColumn(row, "deptaprvyn", "Y");
  494. grdf_setStatus(group3.grd_reqeqmtlist, "", [row]);
  495. }
  496. }
  497. }
  498. /****************************************************************************************
  499. * Components : Button
  500. * Description : 조회
  501. ****************************************************************************************/
  502. function group3_btn_search_onclick(obj:Button, e:ClickEventInfo) {
  503. misfMsterDetailRetrieve();
  504. }
  505. /****************************************************************************************
  506. * Components : Button
  507. * Description : 부서조회
  508. ****************************************************************************************/
  509. function group3_button5_onclick(obj:Button, e:ClickEventInfo) {
  510. var recv_list = "reqdeptcd,reqdeptnm";
  511. misfOpenPopUpList("02", group3.ipt_reqdeptcd_search, "", recv_list, group3.cmb_instcd.value, "instcd");
  512. }
  513. /****************************************************************************************
  514. * Components : Button
  515. * Description : 전체선택
  516. ****************************************************************************************/
  517. function group3_btnselect_onclick(obj:Button, e:ClickEventInfo) {
  518. for(var i = 0 ; i < ds_main_reqeqmt_reqeqmtlist.rowcount ; i++)
  519. {
  520. if(ds_main_reqeqmt_reqeqmtlist.getColumn(i, "acptflag") == "N") {
  521. ds_main_reqeqmt_reqeqmtlist.setColumn(i, "deptaprvyn", "Y");
  522. // grdf_setStatus(group3.grd_reqeqmtlist, "U", [i]);
  523. }
  524. }
  525. }
  526. /****************************************************************************************
  527. * Components : Combo
  528. * Description : 사용안함
  529. ****************************************************************************************/
  530. function group3_cmb_instcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo) {
  531. // opt_instcd.value = group3.cmb_instcd.value;
  532. }
  533. /****************************************************************************************
  534. * Components : Button
  535. * Description : 전체취소
  536. ****************************************************************************************/
  537. function group3_btn_cancel_onclick(obj:Button, e:ClickEventInfo) {
  538. for(var i = 0 ; i < ds_main_reqeqmt_reqeqmtlist.rowcount ; i++)
  539. {
  540. if(ds_main_reqeqmt_reqeqmtlist.getColumn(i, "acptflag") == "N") {
  541. ds_main_reqeqmt_reqeqmtlist.setColumn(i, "deptaprvyn", "N");
  542. // grdf_setStatus(group3.grd_reqeqmtlist, "U", [i]);
  543. }
  544. }
  545. }
  546. /****************************************************************************************
  547. * Components : Combo
  548. * Description : 신청부서 변경
  549. ****************************************************************************************/
  550. function group3_cmb_deptcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo) {
  551. ds_send_search.setColumn(0, "reqdeptcd", e.postvalue);
  552. }
  553. /****************************************************************************************
  554. * Components : Button
  555. * Description : 저장
  556. ****************************************************************************************/
  557. function grp_btn_btn_save_onclick(obj:Button, e:ClickEventInfo) {
  558. for(var i = 0 ; i < ds_main_reqeqmt_reqeqmtlist.rowcount ; i++){
  559. if(ds_main_reqeqmt_reqeqmtlist.getRowType(i) == 4){
  560. ds_main_reqeqmt_reqeqmtlist.setColumn(i, "adyn", "dept");
  561. }
  562. }
  563. var req = sysf_messageBox("부서장승인된 자료를 승인하거나 취소합니다.", "Q003");
  564. if(req == 6){
  565. misfSave("TXRSC20101");
  566. group3.btn_search.click();
  567. }else{
  568. return;
  569. }
  570. }
  571. function group3_ipt_reqdeptcd_search_onkeydown(obj:Edit, e:KeyEventInfo)
  572. {
  573. if(e.keycode == 13) obj.updateToDataset();
  574. }
  575. function ds_send_search_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  576. {
  577. if(e.columnid == "reqdeptcd") {
  578. if(utlf_isNull(e.newvalue))
  579. group3.opt_reqdeptnm_search.value = "";
  580. else
  581. //misfValidationCheck("02", "", "reqdeptcd,reqdeptnm", opt_instcd.value, "instcd" ); //opt_instcd.value 가 존재하지 않음
  582. }
  583. }
  584. function ds_main_reqeqmt_reqeqmtlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  585. {
  586. if( e.columnid == "deptaprvyn" ){
  587. if( e.newvalue == "Y" || e.newvalue == "1" ){
  588. obj.setColumn(e.row, e.columnid, "Y");
  589. }else{
  590. obj.setColumn(e.row, e.columnid, "N");
  591. }
  592. }
  593. }
  594. ]]></Script>
  595. </Form>
  596. </FDL>