SPAEB00020_그룹싱글수가관리.xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SPAEB00020" position="absolute 0 0 1011 540" titletext="당일선수납관련 싱글수가 관리" onload="SPAEB00020_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div id="grp_srch" taborder="1" position="absolute 0 25 1010 65" class="div_SA"/>
  8. <Static text="당일선수납관련 싱글수가 관리" position="absolute 0 0 220 25" id="caption1" class="tit_1"/>
  9. <Shape position="absolute 0 89 1010 95" id="line1" class="line_10"/>
  10. <Button position="absolute 895 67 951 89" id="btn_confirm" class="btn4" text="저장" onclick="btn_confirm_onclick"/>
  11. <Button position="absolute 954 67 1010 89" id="btn_close" class="btn4" text="닫기" onclick="btn_close_onclick"/>
  12. <Static text="M-SET코드 :" position="absolute 17 36 125 53" id="caption2" class="search_name"/>
  13. <Button position="absolute 942 34 998 56" id="btn_search" class="btn1" text="조회" onclick="btn_search_onclick"/>
  14. <Edit position="absolute 130 35 215 54" id="input1"/>
  15. <Grid position="absolute 0 94 1010 539" align="align:center middle;" id="grd_grupsngl" binddataset="ds_main_item" cellclickbound="cell">
  16. <Formats>
  17. <Format id="default">
  18. <Columns>
  19. <Column size="25" band="left"/>
  20. <Column size="98"/>
  21. <Column size="154"/>
  22. <Column size="98"/>
  23. <Column size="144"/>
  24. <Column size="100"/>
  25. <Column size="0"/>
  26. <Column size="100"/>
  27. <Column size="0"/>
  28. <Column size="100"/>
  29. <Column size="90"/>
  30. <Column size="90"/>
  31. <Column size="0"/>
  32. <Column size="0"/>
  33. </Columns>
  34. <Rows>
  35. <Row size="24" band="head"/>
  36. <Row size="24"/>
  37. </Rows>
  38. <Band id="head">
  39. <Cell/>
  40. <Cell col="1" text="그룹수가코드"/>
  41. <Cell col="2" text="그룹수가명"/>
  42. <Cell col="3" text="싱글수가코드"/>
  43. <Cell col="4" text="싱글수가명"/>
  44. <Cell col="5" text="당일수납"/>
  45. <Cell col="6" text="수행부서코드"/>
  46. <Cell col="7" text="지원부서"/>
  47. <Cell col="8" text="execdeptcd"/>
  48. <Cell col="9" text="실시부서"/>
  49. <Cell col="10" text="시작일자"/>
  50. <Cell col="11" text="종료일자"/>
  51. <Cell col="12" text="seq"/>
  52. <Cell col="13" text="snglseqno"/>
  53. </Band>
  54. <Band id="body">
  55. <Cell celltype="head" text="expr:currow+1"/>
  56. <Cell col="1" text="bind:calcscorcdgrup"/>
  57. <Cell col="2" style="align:center top;padding:5 2 3 2;" text="bind:grupnm" wordwrap="word"/>
  58. <Cell col="3" text="bind:snglcd"/>
  59. <Cell col="4" style="align:center top;padding:5 2 3 2;" text="bind:snglnm" wordwrap="word"/>
  60. <Cell col="5" displaytype="checkbox" edittype="checkbox" text="bind:calcyn" expr="expr:(calcyn==&quot;Y&quot;||calcyn==1)?1:0"/>
  61. <Cell col="6" text="bind:suppdeptcd"/>
  62. <Cell col="7" text="bind:suppdeptnm"/>
  63. <Cell col="8" text="bind:prcpexecdeptcd"/>
  64. <Cell col="9" text="bind:prcpexecdeptnm"/>
  65. <Cell col="10" displaytype="date" edittype="date" text="bind:fromdd" calendardisplaynulltype="nulltext"/>
  66. <Cell col="11" displaytype="date" edittype="date" text="bind:todd" calendardisplaynulltype="nulltext" enable="false"/>
  67. <Cell col="12" text="bind:seq"/>
  68. <Cell col="13" text="bind:snglseqno"/>
  69. </Band>
  70. </Format>
  71. </Formats>
  72. </Grid>
  73. <Static position="absolute 634 64 719 89" id="cap_result" style="color:#ff0000ff;font:Dotum,14,bold;"/>
  74. <Button position="absolute 729 67 809 89" id="btn_all_sel" class="btn4" text="전체선택" onclick="btn_all_sel_onclick"/>
  75. <Button position="absolute 812 67 892 89" id="btn_all_desel" class="btn4" text="전체해제" onclick="btn_all_desel_onclick"/>
  76. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 930 34 936 56"/>
  77. </Layout>
  78. </Layouts>
  79. <Objects>
  80. <Dataset id="ds_send_srch" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  81. <ColumnInfo>
  82. <Column id="calcscorcdgrup" type="STRING" size="256"/>
  83. </ColumnInfo>
  84. <Rows>
  85. <Row>
  86. <Col id="calcscorcdgrup"/>
  87. </Row>
  88. </Rows>
  89. </Dataset>
  90. <Dataset id="ds_send_req_savedata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep"/>
  91. <Dataset id="ds_main_item" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep" oncolumnchanged="ds_main_item_oncolumnchanged">
  92. <ColumnInfo>
  93. <Column id="calcscorcdgrup" type="STRING" size="256"/>
  94. <Column id="grupnm" type="STRING" size="256"/>
  95. <Column id="snglcd" type="STRING" size="256"/>
  96. <Column id="snglnm" type="STRING" size="256"/>
  97. <Column id="calcyn" type="STRING" size="256"/>
  98. <Column id="suppdeptcd" type="STRING" size="256"/>
  99. <Column id="suppdeptnm" type="STRING" size="256"/>
  100. <Column id="prcpexecdeptcd" type="STRING" size="256"/>
  101. <Column id="prcpexecdeptnm" type="STRING" size="256"/>
  102. <Column id="fromdd" type="STRING" size="256"/>
  103. <Column id="todd" type="STRING" size="256"/>
  104. <Column id="seq" type="STRING" size="256"/>
  105. <Column id="snglseqno" type="STRING" size="256"/>
  106. </ColumnInfo>
  107. <Rows>
  108. <Row>
  109. <Col id="calcscorcdgrup"/>
  110. <Col id="grupnm"/>
  111. <Col id="snglcd"/>
  112. <Col id="snglnm"/>
  113. <Col id="calcyn"/>
  114. <Col id="suppdeptcd"/>
  115. <Col id="suppdeptnm"/>
  116. <Col id="prcpexecdeptcd"/>
  117. <Col id="prcpexecdeptnm"/>
  118. <Col id="fromdd"/>
  119. <Col id="todd"/>
  120. <Col id="seq"/>
  121. <Col id="snglseqno"/>
  122. </Row>
  123. </Rows>
  124. </Dataset>
  125. <Dataset id="ds_hidden" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="keep">
  126. <ColumnInfo>
  127. <Column id="hidden" type="STRING" size="256"/>
  128. </ColumnInfo>
  129. </Dataset>
  130. </Objects>
  131. <Bind>
  132. <BindItem id="item0" compid="input1" propid="value" datasetid="ds_send_srch" columnid="calcscorcdgrup"/>
  133. </Bind>
  134. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  135. * System Name :
  136. * Job Name :
  137. * Creator :
  138. * Make Date : 2017-12-04
  139. * Description :
  140. *---------------------------------------------------------------------------------------
  141. * Modify Date Modifier Modify Description
  142. *---------------------------------------------------------------------------------------
  143. * 2017-06-19 Live Converter TF->XP
  144. *
  145. *---------------------------------------------------------------------------------------
  146. ****************************************************************************************/
  147. //=======================================================================================
  148. // Lib Include
  149. //---------------------------------------------------------------------------------------
  150. include "com_commonxp::comm_main.xjs";
  151. include "ast_commonxp::AST.xjs";
  152. include "ast_examcurexp::AEZ0001.xjs";
  153. include "ast_examcurexp::combolist.xjs";
  154. //=======================================================================================
  155. // Global Form Variable
  156. //---------------------------------------------------------------------------------------
  157. var arErrorCode = new HashArray();
  158. //=======================================================================================
  159. // Event
  160. //---------------------------------------------------------------------------------------
  161. /****************************************************************************************
  162. * Components : Form
  163. * Description : 화면 처음 초기화시 폼초기화
  164. ****************************************************************************************/
  165. function SPAEB00020_onload(obj:Form, e:LoadEventInfo) {
  166. frmf_initForm(obj);
  167. //grdf_initGrid(grd_XXX);
  168. grdf_setGridSort(grd_grupsngl);
  169. //grdf_setRowTypeIcon(grd_XXX, 0_컬럼위치값);
  170. var excucd = opener.frmf_getParameter("excucd");
  171. if(!utlf_isNull(excucd)){
  172. dsf_makeValue( ds_send_srch, "calcscorcdgrup", "string", excucd);
  173. btn_search.click();
  174. cap_result.value = "미저장";
  175. }
  176. }
  177. /****************************************************************************************
  178. * Components : Button
  179. * Description : 저장
  180. ****************************************************************************************/
  181. function btn_confirm_onclick(obj:Button, e:ClickEventInfo) {
  182. var rows = ds_main_item.rowcount;
  183. var csvdata = "instcd"+"▦"+"calcscorcdgrup"+"▦"+"snglcd"+"▦"+"snglseqno"+"▦"+"calcyn"+"▦"+"suppdeptcd"+"▦"+"prcpexecdeptcd"+"▦"+"fromdd"+"▦"+"todd"+"▦"+"seq"+"▩";
  184. for(var i = 0; i < rows ; i++){
  185. csvdata += sysf_getUserInfo("dutplceinstcd") + "▦" + ds_main_item.getColumn(i, "calcscorcdgrup")+"▦"+ ds_main_item.getColumn(i, "snglcd")+"▦"+
  186. ds_main_item.getColumn(i, "snglseqno") + "▦" + ds_main_item.getColumn(i, "calcyn") + "▦" + ds_main_item.getColumn(i, "suppdeptcd") + "▦" +
  187. ds_main_item.getColumn(i, "prcpexecdeptcd") + "▦" + ds_main_item.getColumn(i, "fromdd") + "▦" +
  188. ds_main_item.getColumn(i, "todd") + "▦" + ds_main_item.getColumn(i, "seq") + "▩";
  189. }
  190. dsf_setCSVToDs("ds_send_req_savedata", csvdata);
  191. var oParam = {};
  192. oParam.id = "TXAEB00020";
  193. oParam.service = "examcurebaseapp.ComCode";
  194. oParam.method = "reqSetGrupSngl";
  195. oParam.inds = "req=ds_send_req_savedata";
  196. oParam.outds = "ds_main_item=item";
  197. oParam.async = false;
  198. oParam.callback = "cf_TXAEB00020";
  199. tranf_submit(oParam);
  200. if(arErrorCode.pop("TXAEB00020") > -1) {
  201. sysf_messageBox("저장 되었습니다.", "I");
  202. cap_result.value="저장완료";
  203. }
  204. }
  205. function cf_TXAEB00020(sSvcId, nErrorCode, sErrorMsg) {
  206. arErrorCode.push(sSvcId, nErrorCode);
  207. }
  208. /****************************************************************************************
  209. * Components : Button
  210. * Description : 닫기
  211. ****************************************************************************************/
  212. function btn_close_onclick(obj:Button, e:ClickEventInfo) {
  213. this.close();
  214. }
  215. /****************************************************************************************
  216. * Components : Button
  217. * Description : 조회
  218. ****************************************************************************************/
  219. function btn_search_onclick(obj:Button, e:ClickEventInfo) {
  220. dsf_makeValue( ds_send_srch, "instcd", "string", sysf_getUserInfo("dutplceinstcd"));
  221. var oParam = {};
  222. oParam.id = "TRAEB00020";
  223. oParam.service = "examcurebaseapp.ComCode";
  224. oParam.method = "reqGetGrupSugaInfo";
  225. oParam.inds = "req=ds_send_srch";
  226. oParam.outds = "ds_main_item=item";
  227. oParam.async = false;
  228. oParam.callback = "cf_TRAEB00020";
  229. tranf_submit(oParam);
  230. }
  231. function cf_TRAEB00020(sSvcId, nErrorCode, sErrorMsg) {
  232. if(nErrorCode < 0) return;
  233. dsf_setDefaultVal(ds_main_item, "calcyn:N");
  234. }
  235. /****************************************************************************************
  236. * Components : Button
  237. * Description : 전체선택
  238. ****************************************************************************************/
  239. function btn_all_sel_onclick(obj:Button, e:ClickEventInfo) {
  240. for(var i=0; i < ds_main_item.rowcount; i++){
  241. ds_main_item.setColumn(i, "calcyn", "Y");
  242. }
  243. }
  244. /****************************************************************************************
  245. * Components : Button
  246. * Description : 전체해제
  247. ****************************************************************************************/
  248. function btn_all_desel_onclick(obj:Button, e:ClickEventInfo) {
  249. for(var i=0; i < ds_main_item.rowcount; i++){
  250. ds_main_item.setColumn(i, "calcyn", "N");
  251. }
  252. }
  253. function ds_main_item_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  254. {
  255. if(e.columnid=="calcyn") {
  256. obj.setColumn(e.row,e.columnid,(e.newvalue=="Y"||e.newvalue==1)?"Y":"N");
  257. }
  258. }
  259. ]]></Script>
  260. </Form>
  261. </FDL>