SMRAD01900_지출번호수정.xfdl 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRAD01900" position="absolute 0 0 1200 785" titletext="지출번호수정" oninit="SMRAD01900_oninit" onload="SMRAD01900_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 1195 23" id="group1">
  8. <Layouts>
  9. <Layout>
  10. <Static text="지출번호수정" position="absolute 0 0 115 23" id="caption6" class="tit_1" anchor="default"/>
  11. </Layout>
  12. </Layouts>
  13. </Div>
  14. <Div position="absolute 0 38 1195 782" id="group2" scrollbars="autoboth">
  15. <Layouts>
  16. <Layout>
  17. <Shape id="roundrect1" type="roundrectangle" position="absolute 0 10 1194 45"/>
  18. <Button position="absolute 663 17 719 39" id="btn_search" class="btn1" text="조회" onclick="group2_btn_search_onclick"/>
  19. <Shape position="absolute 0 74 1192 80" linetype="horizontal" id="line1" class="line_10"/>
  20. <Combo position="absolute 108 18 240 37" id="cmb_instcd" class="combo_s_essential" enable="false"/>
  21. <Static text="기관 :" position="absolute 52 19 113 36" id="caption2" class="search_name"/>
  22. <Grid position="absolute 0 79 1192 732" id="grd_grntpsn1" binddataset="ds_main_grnt_grntlist2">
  23. <Formats>
  24. <Format id="default">
  25. <Columns>
  26. <Column size="20" band="left"/>
  27. <Column size="89"/>
  28. <Column size="119"/>
  29. <Column size="379"/>
  30. <Column size="118"/>
  31. <Column size="107"/>
  32. <Column size="64"/>
  33. <Column size="277"/>
  34. <Column size="0"/>
  35. <Column size="0"/>
  36. <Column size="0"/>
  37. <Column size="0"/>
  38. <Column size="0"/>
  39. </Columns>
  40. <Rows>
  41. <Row size="24" band="head"/>
  42. <Row size="24"/>
  43. </Rows>
  44. <Band id="head">
  45. <Cell/>
  46. <Cell col="1" text="구분"/>
  47. <Cell col="2" text="품의번호"/>
  48. <Cell col="3" text="적요"/>
  49. <Cell col="4" text="금액"/>
  50. <Cell col="5" text="지출일자"/>
  51. <Cell col="6" text="지출번호"/>
  52. <Cell col="7" text="프로젝트"/>
  53. <Cell col="8" text="caption1"/>
  54. <Cell col="9" text="caption2"/>
  55. <Cell col="10" text="caption3"/>
  56. <Cell col="11" text="caption4"/>
  57. <Cell col="12" text="caption5"/>
  58. </Band>
  59. <Band id="body">
  60. <Cell celltype="head"/>
  61. <Cell col="1" displaytype="combo" style="align:center;" text="bind:gubun" combodataset="ds_gubun" combocodecol="value" combodatacol="label" enable="false"/>
  62. <Cell col="2" text="bind:pumno"/>
  63. <Cell col="3" style="align:left;" text="bind:rmrk"/>
  64. <Cell col="4" displaytype="number" text="bind:keumak" mask="#,###"/>
  65. <Cell col="5" displaytype="date" text="bind:ymdgive" calendardisplaynulltype="none"/>
  66. <Cell col="6" displaytype="text" edittype="mask" style="align:center;" text="bind:flagseq" mask="99999" maskchar=" " edittrimtype="both" editautoselect="true"/>
  67. <Cell col="7" displaytype="text" edittype="mask" text="bind:pjid" mask="99999" maskchar=" " edittrimtype="both" editautoselect="true"/>
  68. <Cell col="8" text="bind:ymdwrite"/>
  69. <Cell col="9" text="bind:seqwrite"/>
  70. <Cell col="10" text="bind:flagseqold"/>
  71. <Cell col="11" text="bind:fromdd"/>
  72. <Cell col="12" text="bind:todd"/>
  73. </Band>
  74. </Format>
  75. </Formats>
  76. </Grid>
  77. <Calendar position="absolute 355 18 470 37" align="align:center middle;" id="ipt_unsldd" class="input_s_essential" taborder="1"/>
  78. <Static text="지급일자 :" position="absolute 275 19 361 36" id="caption5" class="search_name"/>
  79. <Calendar position="absolute 495 18 605 37" align="align:center middle;" id="input17" class="input_s_essential" taborder="2"/>
  80. <Static text="품의기표내역" position="absolute 0 57 131 73" id="caption1" class="tit_2"/>
  81. <Static text="~" position="absolute 477 19 497 39" align="align:center middle;" id="caption3"/>
  82. <Button position="absolute 1129 54 1193 73" align="align:left middle;" id="button4" class="btn2" text="엑셀출력" onclick="group2_button4_onclick"/>
  83. <Shape position="absolute 643 17 649 39" linetype="vertical" id="line13" class="line_4" visible="false"/>
  84. </Layout>
  85. </Layouts>
  86. </Div>
  87. <Div position="absolute 0 17 1195 49" id="grp_btn" scrollbars="autoboth">
  88. <Layouts>
  89. <Layout>
  90. <Button position="absolute 1139 3 1195 25" id="button36" class="btn4" text="저장" anchor="default" onclick="grp_btn_button36_onclick"/>
  91. <Button position="absolute 1069 3 1137 25" id="button35" class="btn4" visible="false" text="초기화" anchor="default" onclick="grp_btn_button35_onclick"/>
  92. <Shape position="absolute 0 24 1195 30" linetype="horizontal" id="line9" class="line_6" anchor="default"/>
  93. <Button position="absolute 1020 5 1063 24" id="button3" class="btn2" visible="false" text="출력" anchor="default" onclick="grp_btn_button3_onclick"/>
  94. </Layout>
  95. </Layouts>
  96. </Div>
  97. </Layout>
  98. </Layouts>
  99. <Objects>
  100. <Dataset id="ds_send_paydedu" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_paydedu_oncolumnchanged">
  101. <ColumnInfo>
  102. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  103. <Column id="fromdd" type="STRING" size="256" sumtext="시작일자"/>
  104. <Column id="todd" type="STRING" size="256" sumtext="종료일자"/>
  105. </ColumnInfo>
  106. <Rows>
  107. <Row/>
  108. </Rows>
  109. </Dataset>
  110. <Dataset id="ds_main_grnt_grntlist2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  111. <ColumnInfo>
  112. <Column id="status" type="STRING" size="256"/>
  113. <Column id="gubun" type="STRING" size="256" sumtext="지급구분"/>
  114. <Column id="pumno" type="STRING" size="256" sumtext="품의번호"/>
  115. <Column id="rmrk" type="STRING" size="256" sumtext="적요"/>
  116. <Column id="keumak" type="STRING" size="256" sumtext="지급대상금액"/>
  117. <Column id="ymdgive" type="STRING" size="256" sumtext="지급일"/>
  118. <Column id="flagseq" type="STRING" size="256" sumtext="번호"/>
  119. <Column id="pjid" type="STRING" size="256" sumtext="프로젝트"/>
  120. <Column id="ymdwrite" type="STRING" size="256" sumtext="작성일자"/>
  121. <Column id="seqwrite" type="STRING" size="256" sumtext="지출번호"/>
  122. <Column id="flagseqold" type="STRING" size="256" sumtext="이전번호"/>
  123. <Column id="fromdd" type="STRING" size="256" sumtext="시작일자"/>
  124. <Column id="todd" type="STRING" size="256" sumtext="종료일자"/>
  125. </ColumnInfo>
  126. </Dataset>
  127. <Dataset id="ds_hidden_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  128. <ColumnInfo>
  129. <Column id="pumno" type="STRING" size="256"/>
  130. </ColumnInfo>
  131. </Dataset>
  132. <Dataset id="ds_gubun" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  133. <ColumnInfo>
  134. <Column id="label" type="STRING" size="256"/>
  135. <Column id="value" type="STRING" size="256"/>
  136. </ColumnInfo>
  137. <Rows>
  138. <Row>
  139. <Col id="label">구매</Col>
  140. <Col id="value">A</Col>
  141. </Row>
  142. <Row>
  143. <Col id="label">품의</Col>
  144. <Col id="value">B</Col>
  145. </Row>
  146. <Row>
  147. <Col id="label">일반</Col>
  148. <Col id="value">C</Col>
  149. </Row>
  150. </Rows>
  151. </Dataset>
  152. </Objects>
  153. <Bind>
  154. <BindItem id="item0" compid="group2.cmb_instcd" propid="value" datasetid="ds_send_paydedu" columnid="instcd"/>
  155. <BindItem id="item1" compid="group2.ipt_unsldd" propid="value" datasetid="ds_send_paydedu" columnid="fromdd"/>
  156. <BindItem id="item2" compid="group2.input17" propid="value" datasetid="ds_send_paydedu" columnid="todd"/>
  157. </Bind>
  158. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  159. * System Name : 경대 의료정보시스템
  160. * Job Name : mis_slipxp -> SMRAD01900
  161. * Creator : yjh
  162. * Make Date : 2018-03-16
  163. * Description :
  164. *---------------------------------------------------------------------------------------
  165. * Modify Date Modifier Modify Description
  166. *---------------------------------------------------------------------------------------
  167. * 2018-03-16 yjh TF->XP
  168. *
  169. *---------------------------------------------------------------------------------------
  170. ****************************************************************************************/
  171. //=======================================================================================
  172. // Lib Include
  173. //---------------------------------------------------------------------------------------
  174. include "com_commonxp::comm_main.xjs";
  175. include "mis_miscommonxp::MIS.xjs";
  176. //=======================================================================================
  177. // Global Form Variable
  178. //---------------------------------------------------------------------------------------
  179. //=======================================================================================
  180. // Function
  181. //---------------------------------------------------------------------------------------
  182. function fOpenPopupDeptHelp(pControl, pInstance)
  183. {
  184. misfOpenPopUpList("02", pControl, "", pInstance);
  185. model.refresh();
  186. }
  187. function fOpenPopupHelp(pHelper, pControl, pInstance, pCdgrupid, pValueControl, pNodeName)
  188. {
  189. misfOpenPopUpList(pHelper, pControl, pCdgrupid, pInstance, pValueControl, pNodeName);
  190. model.refresh();
  191. }
  192. function initialize(){
  193. misfGridInit(group2.grd_grntpsn1);
  194. misfMsterDetailSet("group2.grd_grntpsn1",null, "TRRAD01901" ,"Y");
  195. var curdate = utlf_getCurrentDate();
  196. group2.cmb_instcd.value = sysf_getUserInfo("dutplceinstcd");
  197. var deptcd = sysf_getUserInfo("dutplcecd");
  198. var deptnm = sysf_getUserInfo("dutplcenm");
  199. //var emplno = getUserInfo("userid");
  200. //var emplnm = getUserInfo("usernm");
  201. misfComboInstCdListMulti("group2.cmb_instcd",utlf_getCurrentDate(),"","N");
  202. //misfComboComCdListMulti("R0001","grd_grntpsn1.bankcode");
  203. }
  204. function Popup(){
  205. var ymd = model.getValue("/root/main/grnt/grntlist1/junpyodate");
  206. var mdeptcd = model.getValue("/root/main/grnt/grntlist1/makedeptcd");
  207. var ydeptcd = model.getValue("/root/main/grnt/grntlist1/yogudeptcd");
  208. if (ymd != "" && mdeptcd != "" && ydeptcd != ""){
  209. model.setValue("/root/popdata/junpyodate", ymd);
  210. model.setValue("/root/popdata/makedeptcd", mdeptcd);
  211. model.setValue("/root/popdata/yogudeptcd", ydeptcd);
  212. model.setValue("/root/popdata/pumgubun", "3");
  213. modal("SPRAD00400", "", "", "", "SPRAD00400","/root/popdata","/root/popdata");
  214. }
  215. }
  216. //=======================================================================================
  217. // Event
  218. //---------------------------------------------------------------------------------------
  219. /****************************************************************************************
  220. * Components : Form
  221. * Components ID : SMRAD01900
  222. * Event : oninit
  223. * Argument : 01.obj : Object Event has occurred
  224. * : 02.e : Event Object
  225. * Description : 화면 처음 초기화시
  226. ****************************************************************************************/
  227. function SMRAD01900_oninit(obj:Form, e:InitEventInfo)
  228. {
  229. frmf_initForm(obj); //폼 초기화
  230. }
  231. /****************************************************************************************
  232. * Components : Form
  233. * Components ID : SMRAD01900
  234. * Event : onload
  235. * Argument : 01.obj : Object Event has occurred
  236. * : 02.e : Event Object
  237. * Description : 화면 로딩 완료시
  238. ****************************************************************************************/
  239. function SMRAD01900_onload(obj:Form, e:LoadEventInfo)
  240. {
  241. grdf_setRowTypeIcon(group2.grd_grntpsn1, 0);
  242. grdf_setGridSort(group2.grd_grntpsn1);
  243. initialize();
  244. }
  245. /****************************************************************************************
  246. * Components : Button
  247. * Components ID : btn_search
  248. * Event : onclick
  249. * Argument : 01.obj : Object Event has occurred
  250. * : 02.e : Event Object
  251. * Description : 조회버튼 클릭시
  252. ****************************************************************************************/
  253. function group2_btn_search_onclick(obj:Button, e:ClickEventInfo)
  254. {
  255. misfMsterDetailRetrieve();
  256. ds_main_grnt_grntlist2.rowposition = 0;
  257. }
  258. /****************************************************************************************
  259. * Components : Dataset
  260. * Components ID : ds_send_paydedu
  261. * Event : oncolumnchanged
  262. * Argument : 01.obj : Object Event has occurred
  263. * : 02.e : Event Object
  264. * Description : 데이터셋 값 변경시
  265. ****************************************************************************************/
  266. function ds_send_paydedu_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  267. {
  268. switch( e.columnid ){
  269. case "fromdd" :
  270. if( !utlf_isNull(ds_send_paydedu.getColumn(0, "fromdd")) && !utlf_isNull(ds_send_paydedu.getColumn(0, "todd")) ){
  271. group2.btn_search.click();
  272. }
  273. break;
  274. case "todd" :
  275. if( !utlf_isNull(ds_send_paydedu.getColumn(0, "fromdd")) && !utlf_isNull(ds_send_paydedu.getColumn(0, "todd")) ){
  276. group2.btn_search.click();
  277. }
  278. break;
  279. default :
  280. break;
  281. }
  282. }
  283. /****************************************************************************************
  284. * Components : Button
  285. * Components ID : button4
  286. * Event : onclick
  287. * Argument : 01.obj : Object Event has occurred
  288. * : 02.e : Event Object
  289. * Description : 엑셀출력버튼 클릭시
  290. ****************************************************************************************/
  291. function group2_button4_onclick(obj:Button, e:ClickEventInfo)
  292. {
  293. if( group2.grd_grntpsn1.rowcount > 0 ){
  294. grdf_exportExcel(group2.grd_grntpsn1, "excel", "savetype", false, "", "user", false);
  295. } else {
  296. sysf_messageBox("조회된 데이터가 ", "I004");
  297. return;
  298. }
  299. }
  300. /****************************************************************************************
  301. * Components : Button
  302. * Components ID : button36
  303. * Event : onclick
  304. * Argument : 01.obj : Object Event has occurred
  305. * : 02.e : Event Object
  306. * Description : 저장버튼 클릭시
  307. ****************************************************************************************/
  308. function grp_btn_button36_onclick(obj:Button, e:ClickEventInfo)
  309. {
  310. for( var i=0 ; i<ds_main_grnt_grntlist2.rowcount ; i++ ){
  311. if( utlf_isNull(ds_main_grnt_grntlist2.getColumn(i, "flagseq")) ){
  312. sysf_messageBox((i+1) + "번째 지출번호는 필수 입력항목입니다.", "E999", "");
  313. return;
  314. }
  315. }
  316. ds_main_grnt_grntlist2.enableevent = false;
  317. ds_main_grnt_grntlist2.updatecontrol = false;
  318. grdf_setStatusColumn(ds_main_grnt_grntlist2, "status");
  319. ds_main_grnt_grntlist2.updatecontrol = true;
  320. ds_main_grnt_grntlist2.enableevent = true;
  321. if (misfSave("TXRAD01901")){
  322. group2.btn_search.click();
  323. }
  324. }
  325. /****************************************************************************************
  326. * Components : Button
  327. * Components ID : button35
  328. * Event : onclick
  329. * Argument : 01.obj : Object Event has occurred
  330. * : 02.e : Event Object
  331. * Description : 초기화버튼 클릭시
  332. ****************************************************************************************/
  333. function grp_btn_button35_onclick(obj:Button, e:ClickEventInfo)
  334. {
  335. model.resetInstanceNode("/root/main/grnt/grntlist1");
  336. group3.disabled = false;
  337. grd_grntpsn1.disabled = false;
  338. ipt_unsldd.disabled = false;
  339. ipt_costcntrdeptcd.disabled = false;
  340. combo1.disabled = false;
  341. input4.disabled = false;
  342. input14.disabled = true;
  343. input15.disabled = true;
  344. input10.disabled = true;
  345. model.setValue("/root/send/paydedu/pumno1", "");
  346. model.setValue("/root/send/paydedu/pumno2", "");
  347. initialize();
  348. }
  349. /****************************************************************************************
  350. * Components : Button
  351. * Components ID : button3
  352. * Event : onclick
  353. * Argument : 01.obj : Object Event has occurred
  354. * : 02.e : Event Object
  355. * Description : 출력버튼 클릭시
  356. ****************************************************************************************/
  357. function grp_btn_button3_onclick(obj:Button, e:ClickEventInfo)
  358. {
  359. if( messageBox("출력하시겠습니까" , "Q99" ) == 6 ){
  360. exeReportPreview("RPRAD01501", "XMLSTR" , "" , "" , "true" , "", "", "", "", "true","","","","","","","","false");
  361. }
  362. }
  363. ]]></Script>
  364. </Form>
  365. </FDL>