SMRSC01700_청구마감일자등록.xfdl 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRSC01700" position="absolute 0 0 1203 785" titletext="청구마감일자등록" oninit="SMRSC01700_oninit" onload="SMRSC01700_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 47 1195 53" anchor="left top right"/>
  9. <Button id="btn_prt" taborder="1" text="출력" class="btn6" visible="false" position="absolute 0 26 56 48" onclick="btn_prt_onclick"/>
  10. <Button id="btn_save" taborder="2" text="저장" class="btn4" position="absolute 1069 26 1125 48" anchor="top right" onclick="btn_save_onclick"/>
  11. <Button id="btn_clear" taborder="3" text="초기화" class="btn4" position="absolute 1127 26 1195 48" anchor="top right" onclick="btn_clear_onclick"/>
  12. <Div id="grp_sea" anchor="left top right" taborder="4" class="div_SA2" position="absolute 0 51 1195 91">
  13. <Layouts>
  14. <Layout width="1195" height="40">
  15. <Static id="cap_instcd" text="기관코드 :" class="search_name" position="absolute 15 11 101 28"/>
  16. <Shape id="line13" linetype="vertical" class="line_4" position="absolute 1107 3 1113 37" anchor="top right"/>
  17. <Button id="btn_search" taborder="1" text="조회" class="btn1" position="absolute 1124 10 1180 32" anchor="top right" onclick="grp_sea_btn_search_onclick"/>
  18. <Edit id="opt_instcdnm" taborder="2" readonly="true" class="output" position="absolute 103 10 257 29"/>
  19. <Edit id="opt_instcd" taborder="3" readonly="true" class="output" visible="false" position="absolute 269 11 299 30"/>
  20. <Static id="caption1" text="불출부서 :" class="search_name" position="absolute 405 11 491 28"/>
  21. <Button id="btn_reqdeptcd" taborder="4" class="icon_search" position="absolute 600 11 616 27" onclick="grp_sea_btn_reqdeptcd_onclick"/>
  22. <Edit id="ipt_deldeptnm" taborder="5" autoselect="true" autoskip="true" class="input_fix" position="absolute 620 10 760 29"/>
  23. <Edit id="ipt_deldeptcd" taborder="6" autoselect="true" autoskip="true" class="input_essential" position="absolute 494 10 595 29"/>
  24. </Layout>
  25. </Layouts>
  26. </Div>
  27. <Static id="caption8" text="부서 List" class="tit_2" position="absolute 0 102 129 124"/>
  28. <Button id="btn_grddel" taborder="5" text="행삭제" class="btn2" position="absolute 1141 99 1194 118" anchor="top right" onclick="btn_grddel_onclick"/>
  29. <Shape id="line1" class="line_10" position="absolute 0 117 1195 126" anchor="left top right"/>
  30. <Grid id="grd_rsdhdeymlist" taborder="6" binddataset="ds_main_rsdhdeymlist" useinputpanel="false" position="absolute 0 123 1195 780" autoenter="select" cellsizingtype="col" anchor="all">
  31. <Formats>
  32. <Format id="default">
  33. <Columns>
  34. <Column size="21"/>
  35. <Column size="200"/>
  36. <Column size="200"/>
  37. <Column size="200"/>
  38. <Column size="0"/>
  39. <Column size="0"/>
  40. </Columns>
  41. <Rows>
  42. <Row size="24" band="head"/>
  43. <Row size="24"/>
  44. </Rows>
  45. <Band id="head">
  46. <Cell/>
  47. <Cell col="1" text="불출부서"/>
  48. <Cell col="2" text="청구년월"/>
  49. <Cell col="3" text="청구마지막일자"/>
  50. <Cell col="4" text="기관코드"/>
  51. <Cell col="5" text="불출부서"/>
  52. </Band>
  53. <Band id="body">
  54. <Cell celltype="head"/>
  55. <Cell col="1" text="bind:delivedeptnm"/>
  56. <Cell col="2" displaytype="date" edittype="date" style="align:right middle;padding:0 2 0 0;" text="bind:reqym" mask="yyyy-MM" maskchar=" " calendardisplaynulltype="nulltext"/>
  57. <Cell col="3" displaytype="date" edittype="date" style="align:right middle;padding:0 2 0 0;" text="bind:todd" calendardisplaynulltype="nulltext"/>
  58. <Cell col="4" text="bind:instcd"/>
  59. <Cell col="5" text="bind:delivedeptcd"/>
  60. </Band>
  61. </Format>
  62. </Formats>
  63. </Grid>
  64. <Button id="button1" taborder="7" text="행추가" class="btn2" position="absolute 1085 99 1138 118" anchor="top right" onclick="button1_onclick"/>
  65. </Layout>
  66. </Layouts>
  67. <Objects>
  68. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_send_oncolumnchanged">
  69. <ColumnInfo>
  70. <Column id="instcd" type="STRING" size="256"/>
  71. <Column id="deldeptcd" type="STRING" size="256"/>
  72. <Column id="deldeptnm" type="STRING" size="256"/>
  73. <Column id="instcdnm" type="STRING" size="256"/>
  74. </ColumnInfo>
  75. <Rows>
  76. <Row>
  77. <Col id="instcd"/>
  78. <Col id="deldeptcd"/>
  79. <Col id="deldeptnm"/>
  80. <Col id="instcdnm"/>
  81. </Row>
  82. </Rows>
  83. </Dataset>
  84. <Dataset id="ds_main_rsdhdeymlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_rsdhdeymlist_oncolumnchanged">
  85. <ColumnInfo>
  86. <Column id="instcd" type="STRING" size="256" sumtext="기관코드"/>
  87. <Column id="delivedeptcd" type="STRING" size="256" sumtext="불출부서코드"/>
  88. <Column id="delivedeptnm" type="STRING" size="256" sumtext="불출부서"/>
  89. <Column id="reqym" type="STRING" size="256" sumtext="청구년월"/>
  90. <Column id="todd" type="STRING" size="256" sumtext="청구마지막일자"/>
  91. <Column id="fstrgstrid" type="STRING" size="256" sumtext="최초등록자id"/>
  92. <Column id="fstrgstdt" type="STRING" size="256" sumtext="최초등록일자"/>
  93. <Column id="lastupdtrid" type="STRING" size="256" sumtext="최종등록자id"/>
  94. <Column id="lastupdtdt" type="STRING" size="256" sumtext="최종등록일자"/>
  95. </ColumnInfo>
  96. </Dataset>
  97. </Objects>
  98. <Bind>
  99. <BindItem id="item0" compid="grp_sea.opt_instcdnm" propid="value" datasetid="ds_send" columnid="instcdnm"/>
  100. <BindItem id="item1" compid="grp_sea.opt_instcd" propid="value" datasetid="ds_send" columnid="instcd"/>
  101. <BindItem id="item2" compid="grp_sea.ipt_deldeptcd" propid="value" datasetid="ds_send" columnid="deldeptcd"/>
  102. <BindItem id="item3" compid="grp_sea.ipt_deldeptnm" propid="value" datasetid="ds_send" columnid="deldeptnm"/>
  103. </Bind>
  104. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  105. * System Name :
  106. * Job Name :
  107. * Creator :
  108. * Make Date : 2017-06-19
  109. * Description :
  110. *---------------------------------------------------------------------------------------
  111. * Modify Date Modifier Modify Description
  112. *---------------------------------------------------------------------------------------
  113. * 2017-06-19 Live Converter TF->XP
  114. *
  115. *---------------------------------------------------------------------------------------
  116. ****************************************************************************************/
  117. include "com_commonxp::comm_main.xjs";
  118. include "mis_miscommonxp::MIS.xjs";
  119. include "mis_miscommonxp::RSZ001.xjs";
  120. function SMRSC01700_oninit(obj:Form, e:InitEventInfo)
  121. {
  122. frmf_initForm(obj);
  123. }
  124. function SMRSC01700_onload(obj:Form, e:LoadEventInfo)
  125. {
  126. grdf_initGrid(grd_rsdhdeymlist);
  127. grdf_setRowTypeIcon(grd_rsdhdeymlist, 0);
  128. fInitialize();
  129. }
  130. function fInitialize()
  131. {
  132. misfGridInit(grd_rsdhdeymlist);
  133. misfMsterDetailSet(grd_rsdhdeymlist,null,"TRRSC01701","Y");
  134. grp_sea.opt_instcd.value = sysf_getUserInfo("dutplceinstcd");
  135. grp_sea.opt_instcdnm.value = sysf_getUserInfo("dutplceinstnm");
  136. grp_sea.ipt_deldeptcd.value = sysf_getUserInfo("dutplcecd");
  137. grp_sea.ipt_deldeptnm.value = sysf_getUserInfo("dutplcenm");
  138. btn_save.enable = frmf_checkAuth("X");
  139. btn_prt.enable = frmf_checkAuth("P");
  140. grp_sea.btn_search.click();
  141. }
  142. function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
  143. {
  144. fsearch();
  145. }
  146. function fsearch()
  147. {
  148. var updtdata = grdf_getGridUpdateData(grd_rsdhdeymlist).rowcount;
  149. if (updtdata != 0)
  150. {
  151. var ret = sysf_messageBox("그리드에 작업 중인 내용이 있습니다. 조회 작업을","Q003");
  152. if (ret != 6)
  153. {
  154. return;
  155. }
  156. }
  157. var oParam = {};
  158. oParam.id = "TRRSC01701";
  159. oParam.service = "purcbaseapp.PurcBaseMngt";
  160. oParam.method = "reqGetRsdhdeymList";
  161. oParam.inds = "req=ds_send";
  162. oParam.outds = "ds_main_rsdhdeymlist=rsdhdeymlist";
  163. oParam.async = false;
  164. //oParam.callback = "cf_TRRSC01701";
  165. tranf_submit(oParam);
  166. }
  167. function ds_send_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  168. {
  169. if(e.columnid == "deldeptcd")
  170. {
  171. grp_sea.ipt_deldeptcd.value = e.newvalue;
  172. grp_sea.ipt_deldeptcd.setFocus();
  173. if(String(e.newvalue).length == 0)
  174. {
  175. grp_sea.ipt_deldeptnm.value = "";
  176. }
  177. else
  178. {
  179. misfValidationCheck("02", "", "deldeptcd,deldeptnm", grp_sea.opt_instcd.value, "instcd" );
  180. }
  181. }
  182. if(e.columnid == "deldeptnm")
  183. {
  184. grp_sea.ipt_deldeptnm.value = e.newvalue;
  185. grp_sea.ipt_deldeptnm.setFocus();
  186. if(String(e.newvalue).length == 0)
  187. {
  188. grp_sea.ipt_deldeptcd.value = "";
  189. }
  190. else
  191. {
  192. misfValidationCheck("02", "", "deldeptcd,deldeptnm", grp_sea.opt_instcd.value, "instcd" );
  193. }
  194. }
  195. }
  196. function grp_sea_btn_reqdeptcd_onclick(obj:Button, e:ClickEventInfo)
  197. {
  198. var recv_list = "deldeptcd,deldeptnm";
  199. misfOpenPopUpList("02", grp_sea.ipt_deldeptcd,"", recv_list) ;
  200. }
  201. function button1_onclick(obj:Button, e:ClickEventInfo)
  202. {
  203. misfGridIUD(grd_rsdhdeymlist, "A");
  204. fGridAddData();
  205. }
  206. function fGridAddData()
  207. {
  208. ds_main_rsdhdeymlist.updatecontrol = false;
  209. ds_main_rsdhdeymlist.setColumn(ds_main_rsdhdeymlist.rowposition, "instcd", grp_sea.opt_instcd.value);
  210. ds_main_rsdhdeymlist.setColumn(ds_main_rsdhdeymlist.rowposition, "delivedeptcd", grp_sea.ipt_deldeptcd.value);
  211. ds_main_rsdhdeymlist.setColumn(ds_main_rsdhdeymlist.rowposition, "delivedeptnm", grp_sea.ipt_deldeptnm.value);
  212. ds_main_rsdhdeymlist.updatecontrol = true;
  213. }
  214. function btn_grddel_onclick(obj:Button, e:ClickEventInfo)
  215. {
  216. misfGridIUD(grd_rsdhdeymlist, "D");
  217. }
  218. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  219. {
  220. var updtdata = grdf_getGridUpdateData(grd_rsdhdeymlist).rowcount;
  221. if (updtdata == 0)
  222. {
  223. sysf_messageBox("변경된 데이터가","I004");
  224. return;
  225. }
  226. rtn = sysf_messageBox("", "Q002");
  227. if(rtn != "6" )
  228. {
  229. return false;
  230. }
  231. var oParam = {};
  232. oParam.id = "TXRSC01701";
  233. oParam.service = "purcbaseapp.PurcBaseMngt";
  234. oParam.method = "reqExeSetRsdhdeymList";
  235. oParam.inds = "req=ds_main_rsdhdeymlist:u";
  236. oParam.outds = "";
  237. oParam.async = false;
  238. //oParam.callback = "cf_TXRSC01701";
  239. tranf_submit(oParam);
  240. fsearch();
  241. }
  242. function btn_clear_onclick(obj:Button, e:ClickEventInfo)
  243. {
  244. fInitialize();
  245. }
  246. function ds_main_rsdhdeymlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  247. {
  248. if(e.columnid == "reqym")
  249. {
  250. obj.setColumn(e.row, "reqym", String(e.newvalue).substr(0,6))
  251. }
  252. }
  253. function btn_prt_onclick(obj:Button, e:ClickEventInfo)
  254. {
  255. }
  256. ]]></Script>
  257. </Form>
  258. </FDL>