SMRFC00407_재물조사대상자업로드.xfdl 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534
  1. <?xml version="1.0" encoding="utf-8" standalone="no"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRFC00407" position="absolute 0 0 1211 784" titletext="재물조사통계" oninit="SMRFC00407_oninit" onload="SMRFC00407_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="재물조사 대상자 업로드" class="tit_1" position="absolute 0 0 186 25"/>
  8. <Shape id="line16" class="line_2" position="absolute 0 45 1195 48" anchor="left top right"/>
  9. <Button id="btn_list" taborder="1" text="대상자산집계" class="btn3" position="absolute 1021 22 1125 44" anchor="top right" onclick="btn_list_onclick"/>
  10. <Button id="btn_clear" taborder="2" text="초기화" class="btn4" position="absolute 1127 22 1195 44" anchor="top right" onclick="btn_clear_onclick"/>
  11. <Shape id="line3" class="line_10" position="absolute 0 133 1195 144" anchor="left top right"/>
  12. <Static id="caption10" text="재물조사 대상자 리스트" class="tit_2" position="absolute 0 119 170 135"/>
  13. <Div id="grp_sea" anchor="left top right" taborder="8" style="align: top;" class="div_SA2" position="absolute 0 47 1195 113">
  14. <Layouts>
  15. <Layout>
  16. <Static id="cap_instcd" text="기관코드 :" class="search_name" position="absolute 15 11 96 28" anchor="default"/>
  17. <Static id="caption1" text="기준년월 :" class="search_name" position="absolute 326 11 411 28" anchor="default"/>
  18. <Button id="btn_search" taborder="7" text="조회" class="btn1" position="absolute 1125 23 1181 45" anchor="top right" onclick="grp_sea_btn_search_onclick"/>
  19. <Combo id="cmb_instcd" taborder="8" class="combo_essential" position="absolute 98 10 245 29" style="align:center middle;" columncount="-1" rowcount="-1" anchor="default" enable="false" onitemchanged="grp_sea_cmb_instcd_onitemchanged"/>
  20. <Edit id="ipt_acntcd_search" taborder="10" class="input_search" position="absolute 605 10 690 29" anchor="default" autoselect="true"/>
  21. <Shape id="line1" linetype="vertical" class="line_4" position="absolute 1111 23 1117 49" anchor="top right"/>
  22. <MaskEdit id="ipt_yyyymm" taborder="11" mask="####-##" maskchar=" " position="absolute 413 10 468 29" style=":disabled {align:center middle;font:Dotum,9,bold;}" anchor="default" autoselect="true" trimtype="both" type="string" displaynulltext=" "/>
  23. <Static id="caption5" text="계정 :" class="search_name" position="absolute 549 11 604 28" anchor="default"/>
  24. <Button id="btn_acntcd_search" taborder="12" class="icon_search" position="absolute 696 11 712 27" anchor="default" onclick="grp_sea_btn_acntcd_search_onclick"/>
  25. <Edit id="ipt_acntnm_search" taborder="13" readonly="true" autoselect="true" class="output" position="absolute 715 10 912 29" anchor="default"/>
  26. <Static id="caption9" text="사용부서 :" class="search_name" position="absolute 15 39 97 56" anchor="default"/>
  27. <Edit id="ipt_mngtdeptcd" taborder="14" autoselect="true" class="input_search" position="absolute 98 38 193 57" style="align:center ;" anchor="default" onkeydown="component_onkeydown"/>
  28. <Button id="btn_mngtdeptcd" taborder="15" class="icon_search" position="absolute 199 39 215 55" anchor="default" onclick="grp_sea_btn_mngtdeptcd_onclick"/>
  29. <Edit id="ipt_mngtdeptnm" taborder="16" readonly="true" autoselect="true" class="output" position="absolute 218 38 368 57" anchor="default"/>
  30. <Static id="caption2" text="설치장소 :" class="search_name" position="absolute 448 39 530 56" anchor="default"/>
  31. <Edit id="ipt_installplcecd" taborder="17" autoselect="true" class="input_search" position="absolute 531 38 626 57" style="align:center ;" anchor="default" onkeydown="component_onkeydown"/>
  32. <Button id="btn_installplcecd" taborder="18" class="icon_search" position="absolute 632 39 648 55" anchor="default" onclick="grp_sea_btn_installplcecd_onclick"/>
  33. <Edit id="ipt_installplcenm" taborder="19" readonly="true" autoselect="true" class="output" position="absolute 651 38 801 57" anchor="default"/>
  34. </Layout>
  35. </Layouts>
  36. </Div>
  37. <Grid id="grd_degolist" taborder="9" binddataset="ds_main_grid_degolist" autoenter="select" cellsizingtype="col" position="absolute 0 140 1185 751" anchor="all">
  38. <Formats>
  39. <Format id="default">
  40. <Columns>
  41. <Column size="20" band="left"/>
  42. <Column size="0"/>
  43. <Column size="120"/>
  44. <Column size="316"/>
  45. <Column size="55"/>
  46. <Column size="100"/>
  47. <Column size="35"/>
  48. <Column size="95"/>
  49. <Column size="70"/>
  50. <Column size="95"/>
  51. <Column size="0"/>
  52. <Column size="120"/>
  53. <Column size="120"/>
  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. </Columns>
  65. <Rows>
  66. <Row size="24" band="head"/>
  67. <Row size="24"/>
  68. </Rows>
  69. <Band id="head">
  70. <Cell/>
  71. <Cell col="1" text="계정과목"/>
  72. <Cell col="2" text="자산코드"/>
  73. <Cell col="3" text="자산명"/>
  74. <Cell col="4" colspan="2" text="계정과목" taborder="undefined"/>
  75. <Cell col="6" text="수량"/>
  76. <Cell col="7" text="취득금액"/>
  77. <Cell col="8" text="취득일"/>
  78. <Cell col="9" text="잔존가"/>
  79. <Cell col="10" text="보유상태"/>
  80. <Cell col="11" text="사용부서"/>
  81. <Cell col="12" text="설치부서"/>
  82. <Cell col="13" text="년도"/>
  83. <Cell col="14" text="기준일자"/>
  84. <Cell col="15" text="부서확인(fromdd)"/>
  85. <Cell col="16" text="부서확인(todd)"/>
  86. <Cell col="17" text="사용여부"/>
  87. <Cell col="18" text="기준금액(min)"/>
  88. <Cell col="19" text="기준금액(max)"/>
  89. <Cell col="20" text="사용부서코드"/>
  90. <Cell col="21" text="부서장승인자명"/>
  91. <Cell col="22" text="최종제출일자"/>
  92. </Band>
  93. <Band id="body">
  94. <Cell celltype="head"/>
  95. <Cell col="1" text="bind:acntcd"/>
  96. <Cell col="2" style="align:center;" text="bind:fixasetcd"/>
  97. <Cell col="3" style="align:left top;padding:4 2 2 2;" text="bind:goodflaghngnm" wordwrap="word"/>
  98. <Cell col="4" style="align:center middle;" text="bind:acntcd"/>
  99. <Cell col="5" style="align:left middle;" text="bind:acntnm"/>
  100. <Cell col="6" style="align:center middle;" text="bind:goodqty"/>
  101. <Cell col="7" displaytype="number" text="bind:possnamt" mask="#,##0"/>
  102. <Cell col="8" displaytype="date" style="align:center;" text="bind:possndd" calendardisplaynulltype="none"/>
  103. <Cell col="9" displaytype="number" text="bind:janjonsak" mask="#,##0"/>
  104. <Cell col="10" displaytype="combo" edittype="combo" text="bind:status" enable="false"/>
  105. <Cell col="11" style="align:center middle;" text="bind:mngtdeptnm"/>
  106. <Cell col="12" style="align:center;" text="bind:installplcenm"/>
  107. <Cell col="13" text="bind:yyyy"/>
  108. <Cell col="14" text="bind:basedd"/>
  109. <Cell col="15" text="bind:dfromdd"/>
  110. <Cell col="16" text="bind:dtodd"/>
  111. <Cell col="17" text="bind:useyn"/>
  112. <Cell col="18" text="bind:passnmin"/>
  113. <Cell col="19" text="bind:passnmax"/>
  114. <Cell col="20" text="bind:mngtdeptcd"/>
  115. <Cell col="21" text="bind:deptaprvnm"/>
  116. <Cell col="22" text="bind:senddd"/>
  117. </Band>
  118. </Format>
  119. </Formats>
  120. </Grid>
  121. <Static id="caption13" text="저장된 건수 :" position="absolute 201 116 291 133" style="background:#c4e693ff;align:center middle;"/>
  122. <MaskEdit id="ipt_cnt" taborder="10" mask="#,###" maskchar=" " enable="false" position="absolute 293 115 385 134" style=":disabled {align:right middle;font:Dotum,9,bold;}" autoselect="true"/>
  123. <Static id="caption4" text="* 잔존가 기준 : 기준년도의 6월달" position="absolute 899 116 1100 133" style="background:#ffffccff;"/>
  124. <Button id="button4" taborder="11" text="엑셀저장" class="btn7" position="absolute 1105 115 1185 134" anchor="top right" onclick="button4_onclick"/>
  125. </Layout>
  126. </Layouts>
  127. <Objects>
  128. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_oncolumnchanged">
  129. <ColumnInfo>
  130. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  131. <Column id="yyyy" type="STRING" size="256" sumtext="년도"/>
  132. <Column id="mngtdeptcd" type="STRING" size="256" sumtext="사용부서"/>
  133. <Column id="installplcecd" type="STRING" size="256" sumtext="설치장소"/>
  134. <Column id="acntcd" type="STRING" size="256" sumtext="계정"/>
  135. <Column id="yyyymm" type="STRING" size="256"/>
  136. <Column id="userid" type="STRING" size="256"/>
  137. <Column id="acntnm" type="STRING" size="256"/>
  138. <Column id="installplcenm" type="STRING" size="256"/>
  139. <Column id="totcnt" type="STRING" size="256"/>
  140. </ColumnInfo>
  141. <Rows>
  142. <Row/>
  143. </Rows>
  144. </Dataset>
  145. <Dataset id="ds_main_grid_degolist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  146. <ColumnInfo>
  147. <Column id="fixasetcd" type="STRING" size="256" sumtext="자산코드"/>
  148. <Column id="goodflaghngnm" type="STRING" size="256" sumtext="자산명"/>
  149. <Column id="acntcd" type="STRING" size="256" sumtext="계정코드"/>
  150. <Column id="acntnm" type="STRING" size="256" sumtext="계정명"/>
  151. <Column id="goodqty" type="STRING" size="256" sumtext="수량"/>
  152. <Column id="possnamt" type="STRING" size="256" sumtext="취득금액"/>
  153. <Column id="possndd" type="STRING" size="256" sumtext="취득일자"/>
  154. <Column id="janjonsak" type="STRING" size="256" sumtext="잔존가액"/>
  155. <Column id="mngtdeptnm" type="STRING" size="256" sumtext="사용부서"/>
  156. <Column id="installplcenm" type="STRING" size="256" sumtext="설치부서"/>
  157. </ColumnInfo>
  158. </Dataset>
  159. <Dataset id="ds_temp_fixainfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  160. <ColumnInfo>
  161. <Column id="cnt" type="STRING" size="256" sumtext="건수"/>
  162. </ColumnInfo>
  163. </Dataset>
  164. </Objects>
  165. <Bind>
  166. <BindItem id="item0" compid="grp_sea.cmb_instcd" propid="value" datasetid="ds_send" columnid="instcd"/>
  167. <BindItem id="item2" compid="grp_sea.ipt_acntcd_search" propid="value" datasetid="ds_send" columnid="acntcd"/>
  168. <BindItem id="item5" compid="ipt_cnt" propid="value" datasetid="ds_send" columnid="totcnt"/>
  169. <BindItem id="item3" compid="grp_sea.ipt_yyyymm" propid="value" datasetid="ds_send" columnid="yyyymm"/>
  170. <BindItem id="item1" compid="grp_sea.ipt_acntnm_search" propid="value" datasetid="ds_send" columnid="acntnm"/>
  171. <BindItem id="item4" compid="grp_sea.ipt_mngtdeptcd" propid="value" datasetid="ds_send" columnid="mngtdeptcd"/>
  172. <BindItem id="item6" compid="grp_sea.ipt_mngtdeptnm" propid="value" datasetid="ds_send" columnid="mngtdeptnm"/>
  173. <BindItem id="item7" compid="grp_sea.ipt_installplcecd" propid="value" datasetid="ds_send" columnid="installplcecd"/>
  174. <BindItem id="item8" compid="grp_sea.ipt_installplcenm" propid="value" datasetid="ds_send" columnid="installplcenm"/>
  175. </Bind>
  176. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  177. * System Name : 경대 의료정보시스템
  178. * Job Name : mis_purcbasexp -> SMRFC00407
  179. * Creator : yjh
  180. * Make Date : 2018-05-17
  181. * Description :
  182. *---------------------------------------------------------------------------------------
  183. * Modify Date Modifier Modify Description
  184. *---------------------------------------------------------------------------------------
  185. * 2018-05-17 yjh TF->XP
  186. *
  187. *---------------------------------------------------------------------------------------
  188. ****************************************************************************************/
  189. //=======================================================================================
  190. // Lib Include
  191. //---------------------------------------------------------------------------------------
  192. include "com_commonxp::comm_main.xjs";
  193. include "mis_miscommonxp::MIS.xjs";
  194. include "mis_miscommonxp::RSZ001.xjs";
  195. //=======================================================================================
  196. // Global Form Variable
  197. //---------------------------------------------------------------------------------------
  198. //=======================================================================================
  199. // Function
  200. //---------------------------------------------------------------------------------------
  201. /****************************************************************************************
  202. * Argument : N/A
  203. * Description :
  204. ****************************************************************************************/
  205. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  206. function fInitialize() {
  207. misfGridInit(grd_degolist);
  208. misfComboComCdList("C0048", grp_sea.cmb_instcd, "Y"); //기관코드
  209. ds_send.enableevent = false;
  210. ds_send.updatecontrol = false;
  211. ds_send.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd")); // 기관 설정
  212. ds_send.setColumn(0, "yyyymm", utlf_getCurrentDate().substring(0, 6));
  213. var tyyyy = ds_send.getColumn(0, "yyyymm");
  214. ds_send.setColumn(0, "yyyy", tyyyy.substring(0, 4));
  215. ds_send.setColumn(0, "acntcd", "");
  216. ds_send.setColumn(0, "acntnm", "");
  217. ds_send.setColumn(0, "installplcecd", "");
  218. ds_send.setColumn(0, "installplcenm", "");
  219. ds_send.updatecontrol = true;
  220. ds_send.enableevent = true;
  221. var dutplcecd = sysf_getUserInfo("dutplcecd");
  222. if(dutplcecd == "4020334000" || sysf_getUserInfo("userid") == "MIS" || sysf_getUserInfo("userid") == "99207" ){
  223. // btn_search.dispatch("DOMActivate");
  224. var oParam = {};
  225. oParam.id = "TRRFC00413";
  226. oParam.service = "purcbaseapp.PurcBaseMngt";
  227. oParam.method = "reqGetFixaCnt";
  228. oParam.inds = "req=ds_send";
  229. oParam.outds = "ds_temp_fixainfo=fixainfo";
  230. oParam.async = false;
  231. //oParam.callback = "cf_TRRFC00413";
  232. tranf_submit(oParam); // 저장된 데이터 건수 조회
  233. ds_send.setColumn(0, "totcnt", ds_temp_fixainfo.getColumn(0, "cnt"));
  234. }else{
  235. sysf_messageBox("물류팀외 조회할 수","I004");
  236. grp_sea.btn_search.enable = false;
  237. grp_sea.ipt_yyyymm.enable = false;
  238. grp_sea.btn_mngtdeptcd.enable = false;
  239. grp_sea.ipt_mngtdeptcd.enable = false;
  240. btn_list.enable = false;
  241. }
  242. }
  243. //=======================================================================================
  244. // Event
  245. //---------------------------------------------------------------------------------------
  246. /****************************************************************************************
  247. * Components : Form
  248. * Components ID : SMRFC00407
  249. * Event : oninit
  250. * Argument : 01.obj : Object Event has occurred
  251. * : 02.e : Event Object
  252. * Description : 화면 처음 초기화시
  253. ****************************************************************************************/
  254. function SMRFC00407_oninit(obj:Form, e:InitEventInfo)
  255. {
  256. frmf_initForm(obj); //폼 초기화
  257. }
  258. /****************************************************************************************
  259. * Components : Form
  260. * Components ID : SMRFC00407
  261. * Event : onload
  262. * Argument : 01.obj : Object Event has occurred
  263. * : 02.e : Event Object
  264. * Description : 화면 로딩 완료시
  265. ****************************************************************************************/
  266. function SMRFC00407_onload(obj:Form, e:LoadEventInfo)
  267. {
  268. grdf_initGrid(grd_degolist);
  269. grdf_setRowTypeIcon(grd_degolist, 0);
  270. fInitialize();
  271. }
  272. /****************************************************************************************
  273. * Components : Button
  274. * Components ID : btn_clear
  275. * Event : onclick
  276. * Argument : 01.obj : Object Event has occurred
  277. * : 02.e : Event Object
  278. * Description : 초기화버튼 클릭시
  279. ****************************************************************************************/
  280. function btn_clear_onclick(obj:Button, e:ClickEventInfo)
  281. {
  282. fInitialize();
  283. }
  284. /****************************************************************************************
  285. * Components : Button
  286. * Components ID : btn_list
  287. * Event : onclick
  288. * Argument : 01.obj : Object Event has occurred
  289. * : 02.e : Event Object
  290. * Description : 대상자산집계버튼 클릭시
  291. ****************************************************************************************/
  292. function btn_list_onclick(obj:Button, e:ClickEventInfo)
  293. {
  294. ds_send.setColumn(0, "userid",sysf_getUserInfo("userid"));
  295. var cnt = ds_send.getColumn(0, "totcnt");
  296. if(cnt != "0"){ // 저장 건수가 있으면
  297. var ret = sysf_messageBox("기존에 저장된 데이터가 "+ cnt +"건 존재합니다.\n","Q003");
  298. if (ret == 6) { // OK
  299. var oParam = {};
  300. oParam.id = "TXRFC00409";
  301. oParam.service = "purcbaseapp.PurcBaseMngt";
  302. oParam.method = "setFixalist";
  303. oParam.inds = "req=ds_send";
  304. oParam.outds = "";
  305. oParam.async = false;
  306. //oParam.callback = "cf_TXRFC00409";
  307. tranf_submit(oParam);
  308. grp_sea.btn_search.click();
  309. sysf_messageBox("저장", "I002");
  310. }else{
  311. return;
  312. }
  313. }else{
  314. var oParam = {};
  315. oParam.id = "TXRFC00409";
  316. oParam.service = "purcbaseapp.PurcBaseMngt";
  317. oParam.method = "setFixalist";
  318. oParam.inds = "req=ds_send";
  319. oParam.outds = "";
  320. oParam.async = false;
  321. //oParam.callback = "cf_TXRFC00409";
  322. tranf_submit(oParam);
  323. grp_sea.btn_search.click();
  324. sysf_messageBox("저장", "I002");
  325. }
  326. var oParam = {};
  327. oParam.id = "TRRFC00413";
  328. oParam.service = "purcbaseapp.PurcBaseMngt";
  329. oParam.method = "reqGetFixaCnt";
  330. oParam.inds = "req=ds_send";
  331. oParam.outds = "ds_temp_fixainfo=fixainfo";
  332. oParam.async = false;
  333. //oParam.callback = "cf_TRRFC00413";
  334. tranf_submit(oParam); // 저장된 데이터 건수 조회
  335. ds_send.setColumn(0, "totcnt", ds_temp_fixainfo.getColumn(0, "cnt"));
  336. }
  337. /****************************************************************************************
  338. * Components : Button
  339. * Components ID : btn_search
  340. * Event : onclick
  341. * Argument : 01.obj : Object Event has occurred
  342. * : 02.e : Event Object
  343. * Description : 조회버튼 클릭시
  344. ****************************************************************************************/
  345. function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
  346. {
  347. var oParam = {};
  348. oParam.id = "TRRFC00412";
  349. oParam.service = "purcbaseapp.PurcBaseMngt";
  350. oParam.method = "reqGetGoodsFixasetList";
  351. oParam.inds = "req=ds_send";
  352. oParam.outds = "ds_main_grid_degolist=degolist";
  353. oParam.async = false;
  354. //oParam.callback = "cf_TRRFC00412";
  355. tranf_submit(oParam);
  356. var oParam = {};
  357. oParam.id = "TRRFC00413";
  358. oParam.service = "purcbaseapp.PurcBaseMngt";
  359. oParam.method = "reqGetFixaCnt";
  360. oParam.inds = "req=ds_send";
  361. oParam.outds = "ds_temp_fixainfo=fixainfo";
  362. oParam.async = false;
  363. //oParam.callback = "cf_TRRFC00413";
  364. tranf_submit(oParam); // 저장된 데이터 건수 조회
  365. ds_send.setColumn(0, "totcnt", ds_temp_fixainfo.getColumn(0, "cnt"));
  366. }
  367. /****************************************************************************************
  368. * Components : Combo
  369. * Components ID : cmb_instcd
  370. * Event : onitemchanged
  371. * Argument : 01.obj : Object Event has occurred
  372. * : 02.e : Event Object
  373. * Description : 콤보 값 변경시
  374. ****************************************************************************************/
  375. function grp_sea_cmb_instcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  376. {
  377. grp_sea.btn_search.click();
  378. }
  379. /****************************************************************************************
  380. * Components : Dataset
  381. * Components ID : ds_send
  382. * Event : oncolumnchanged
  383. * Argument : 01.obj : Object Event has occurred
  384. * : 02.e : Event Object
  385. * Description : 데이터셋 값 변경시
  386. ****************************************************************************************/
  387. function ds_send_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  388. {
  389. switch( e.columnid ){
  390. case "mngtdeptcd" :
  391. var objFocus = this.getFocus();
  392. grp_sea.ipt_mngtdeptcd.value = e.newvalue;
  393. grp_sea.ipt_mngtdeptcd.setFocus();
  394. misfSearchDept(grp_sea.ipt_mngtdeptnm);
  395. objFocus.setFocus();
  396. break;
  397. case "acntcd" :
  398. var objFocus = this.getFocus();
  399. grp_sea.ipt_acntcd_search.value = e.newvalue;
  400. grp_sea.ipt_acntcd_search.setFocus();
  401. if(String(e.newvalue).length == 0)
  402. {
  403. grp_sea.ipt_acntnm_search.value = "";
  404. }
  405. else
  406. {
  407. rszfValidationCheck("TRRAC00111", "acntlist", "acntflag,useyn,jobgb,srhtxt", ",Y,2," + e.newvalue, "", "acntcd,acntnm",
  408. grp_sea.ipt_acntcd_search, "PPRAC00100", "useyn,acntcd","Y,grp_sea.ipt_acntcd_search");
  409. }
  410. objFocus.setFocus();
  411. break;
  412. case "installplcecd" :
  413. var objFocus = this.getFocus();
  414. grp_sea.ipt_installplcecd.value = e.newvalue;
  415. grp_sea.ipt_installplcecd.setFocus();
  416. misfSearchDept(grp_sea.ipt_installplcenm);
  417. objFocus.setFocus();
  418. break;
  419. case "yyyymm" :
  420. var tyyyy = ds_send.getColumn(0, "yyyymm");
  421. ds_send.setColumn(0, "yyyy",tyyyy.substring(0, 4));
  422. break;
  423. default :
  424. break;
  425. }
  426. }
  427. /****************************************************************************************
  428. * Components : Button
  429. * Components ID : btn_mngtdeptcd
  430. * Event : onclick
  431. * Argument : 01.obj : Object Event has occurred
  432. * : 02.e : Event Object
  433. * Description : 돋보기버튼 클릭시
  434. ****************************************************************************************/
  435. function grp_sea_btn_mngtdeptcd_onclick(obj:Button, e:ClickEventInfo)
  436. {
  437. misfOpenPopUpList("02", grp_sea.ipt_mngtdeptcd,"","mngtdeptcd,mngtdeptnm");
  438. }
  439. /****************************************************************************************
  440. * Components : Button
  441. * Components ID : btn_acntcd_search
  442. * Event : onclick
  443. * Argument : 01.obj : Object Event has occurred
  444. * : 02.e : Event Object
  445. * Description : 돋보기버튼 클릭시
  446. ****************************************************************************************/
  447. function grp_sea_btn_acntcd_search_onclick(obj:Button, e:ClickEventInfo)
  448. {
  449. rszfOpenPopUpListByWndName(grp_sea.ipt_acntcd_search, "", "acntcd,acntnm","PPRAC00100","","");
  450. }
  451. /****************************************************************************************
  452. * Components : Button
  453. * Components ID : btn_installplcecd
  454. * Event : onclick
  455. * Argument : 01.obj : Object Event has occurred
  456. * : 02.e : Event Object
  457. * Description : 돋보기버튼 클릭시
  458. ****************************************************************************************/
  459. function grp_sea_btn_installplcecd_onclick(obj:Button, e:ClickEventInfo)
  460. {
  461. misfOpenPopUpList("02", grp_sea.ipt_installplcecd,"","installplcecd,installplcenm");
  462. }
  463. /****************************************************************************************
  464. * Components : Button
  465. * Components ID : button4
  466. * Event : onclick
  467. * Argument : 01.obj : Object Event has occurred
  468. * : 02.e : Event Object
  469. * Description : 엑셀저장버튼 클릭시
  470. ****************************************************************************************/
  471. function button4_onclick(obj:Button, e:ClickEventInfo)
  472. {
  473. if( grd_degolist.rowcount > 0 ){
  474. grdf_exportExcel(grd_degolist, "재물조사대상자산조회_", "Sheet", false, "", "user", false);
  475. } else {
  476. sysf_messageBox("조회된 데이터가 ", "I004");
  477. return;
  478. }
  479. }
  480. function component_onkeydown(obj:Edit, e:KeyEventInfo)
  481. {
  482. if( e.keycode == 13 ){
  483. obj.updateToDataset();
  484. }
  485. }
  486. ]]></Script>
  487. </Form>
  488. </FDL>