SMRAC00300_기재사항코드관리.xfdl 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRAC00300" position="absolute 0 0 1204 794" titletext="기재사항 코드관리" oninit="SMRAC00300_oninit" onload="SMRAC00300_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static id="caption6" text="기재사항 코드관리" class="tit_1" position="absolute 0 0 229 25"/>
  8. <Shape id="line2" class="line_6" position="absolute 0 48 1195 54"/>
  9. <Button id="btn_save" taborder="1" text="저장" class="btn4" position="absolute 1139 27 1195 49" anchor="top right" onclick="btn_save_onclick"/>
  10. <Button id="btn_prt" taborder="2" text="출력" class="btn6" visible="false" position="absolute 0 27 56 49"/>
  11. <Div id="grp_sea" anchor="left top right" taborder="3" class="div_SA2" position="absolute 0 52 1195 92">
  12. <Layouts>
  13. <Layout>
  14. <Static id="caption7" text="기재사항코드 :" class="search_name" position="absolute 16 11 141 28"/>
  15. <Shape id="line5" linetype="vertical" class="line_4" position="absolute 1104 8 1110 30" anchor="top right"/>
  16. <Button id="btn_search" taborder="7" text="조회" class="btn1" position="absolute 1123 8 1179 30" anchor="top right" onclick="grp_sea_btn_search_onclick"/>
  17. <Edit id="ipt_notecd" taborder="8" autoselect="true" autoskip="true" class="input_s_essential" position="absolute 135 10 215 29" onkeyup="grp_sea_ipt_notecd_onkeyup"/>
  18. <Edit id="ipt_notecdnm" taborder="9" autoselect="true" autoskip="true" class="input_s_essential" position="absolute 241 10 471 29" onkeyup="grp_sea_ipt_notecdnm_onkeyup"/>
  19. <Button id="btn_help" taborder="10" class="icon_search" position="absolute 221 12 237 28" onclick="grp_sea_btn_help_onclick"/>
  20. </Layout>
  21. </Layouts>
  22. </Div>
  23. <Shape id="line3" class="line_10" position="absolute 0 121 1195 127" anchor="left top right"/>
  24. <Static id="caption21" text="관리항목코드 목록" class="tit_2" position="absolute 0 105 131 127"/>
  25. <Button id="btn_grdadd" taborder="4" text="행추가" class="btn2" position="absolute 1087 102 1140 121" anchor="top right" onclick="btn_grdadd_onclick"/>
  26. <Button id="btn_grddel" taborder="5" text="행삭제" class="btn2" position="absolute 1142 102 1195 121" anchor="top right" onclick="btn_grddel_onclick"/>
  27. <Button id="btn_excadd" taborder="6" text="엑셀입력" class="btn7" position="absolute 1004 102 1084 121" anchor="top right" onclick="btn_excadd_onclick"/>
  28. <Grid id="grd_notelist" taborder="7" binddataset="ds_main_notelist" useinputpanel="false" position="absolute 0 126 1194 789" autoenter="select" autofittype="col" cellsizingtype="col">
  29. <Formats>
  30. <Format id="default">
  31. <Columns>
  32. <Column size="25"/>
  33. <Column size="160"/>
  34. <Column size="230"/>
  35. <Column size="90"/>
  36. <Column size="80"/>
  37. <Column size="146"/>
  38. <Column size="132"/>
  39. <Column size="320"/>
  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. <Cell col="6" text="HELP명"/>
  53. <Cell col="7" text="Return List"/>
  54. </Band>
  55. <Band id="body">
  56. <Cell celltype="head"/>
  57. <Cell col="1" displaytype="text" edittype="text" text="bind:notecd"/>
  58. <Cell col="2" displaytype="text" edittype="text" text="bind:notecdnm"/>
  59. <Cell col="3" displaytype="combo" edittype="combo" style="padding:0 0 0 3;" text="bind:mngtkind" combodataset="ds_cmb_mngtkind" combocodecol="value" combodatacol="label"/>
  60. <Cell col="4" displaytype="combo" edittype="combo" style="padding:0 0 0 3;" text="bind:inptkind" combodataset="ds_cmb_inptkind" combocodecol="value" combodatacol="label"/>
  61. <Cell col="5" displaytype="text" edittype="text" text="bind:frmt"/>
  62. <Cell col="6" displaytype="combo" edittype="combo" text="bind:popwnd" combodataset="ds_init_helppopup_popup" combocodecol="cd" combodatacol="nm" id="popwnd"/>
  63. <Cell col="7" displaytype="text" edittype="text" text="bind:returninstancelist"/>
  64. </Band>
  65. </Format>
  66. </Formats>
  67. </Grid>
  68. <Button id="button1" taborder="8" text="엑셀출력" class="btn7" position="absolute 922 102 1002 121" anchor="top right" onclick="button1_onclick"/>
  69. </Layout>
  70. </Layouts>
  71. <Objects>
  72. <Dataset id="ds_main_condition" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_condition_oncolumnchanged">
  73. <ColumnInfo>
  74. <Column id="notecd" type="STRING" size="256"/>
  75. <Column id="notecdnm" type="STRING" size="256"/>
  76. </ColumnInfo>
  77. <Rows>
  78. <Row>
  79. <Col id="notecd"/>
  80. <Col id="notecdnm"/>
  81. </Row>
  82. </Rows>
  83. </Dataset>
  84. <Dataset id="ds_main_notelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  85. <ColumnInfo>
  86. <Column id="notecd" type="STRING" size="256" sumtext="기재코드"/>
  87. <Column id="notecdnm" type="STRING" size="256" sumtext="기재코드명"/>
  88. <Column id="mngtkind" type="STRING" size="256" sumtext="관리형태"/>
  89. <Column id="inptkind" type="STRING" size="256" sumtext="입력유형"/>
  90. <Column id="frmt" type="STRING" size="256" sumtext="관리형태가 입력유형에 따른 입력포멧"/>
  91. <Column id="popwnd" type="STRING" size="256" sumtext="관리형태가 코드 또는 콤보일때 조회를 위한 식별자"/>
  92. <Column id="returninstancelist" type="STRING" size="256" sumtext="각 인스턴스에 값을 가져오기위해 사용"/>
  93. </ColumnInfo>
  94. </Dataset>
  95. <Dataset id="ds_cmb_mngtkind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  96. <ColumnInfo>
  97. <Column id="label" type="STRING" size="256"/>
  98. <Column id="value" type="STRING" size="256"/>
  99. </ColumnInfo>
  100. <Rows>
  101. <Row>
  102. <Col id="label">코드</Col>
  103. <Col id="value">1</Col>
  104. </Row>
  105. <Row>
  106. <Col id="label">내역</Col>
  107. <Col id="value">2</Col>
  108. </Row>
  109. <Row>
  110. <Col id="label">콤보</Col>
  111. <Col id="value">3</Col>
  112. </Row>
  113. </Rows>
  114. </Dataset>
  115. <Dataset id="ds_cmb_inptkind" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  116. <ColumnInfo>
  117. <Column id="label" type="STRING" size="256"/>
  118. <Column id="value" type="STRING" size="256"/>
  119. </ColumnInfo>
  120. <Rows>
  121. <Row>
  122. <Col id="label">문자</Col>
  123. <Col id="value">C</Col>
  124. </Row>
  125. <Row>
  126. <Col id="label">숫자</Col>
  127. <Col id="value">N</Col>
  128. </Row>
  129. <Row>
  130. <Col id="label">날짜</Col>
  131. <Col id="value">D</Col>
  132. </Row>
  133. <Row>
  134. <Col id="label">백분율</Col>
  135. <Col id="value">P</Col>
  136. </Row>
  137. </Rows>
  138. </Dataset>
  139. <Dataset id="ds_init_helppopup_popup" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  140. <ColumnInfo>
  141. <Column id="cd" type="STRING" size="256"/>
  142. <Column id="nm" type="STRING" size="256"/>
  143. </ColumnInfo>
  144. <Rows>
  145. <Row>
  146. <Col id="cd">15</Col>
  147. <Col id="nm">계좌번호</Col>
  148. </Row>
  149. <Row>
  150. <Col id="cd">05</Col>
  151. <Col id="nm">대체계정</Col>
  152. </Row>
  153. <Row>
  154. <Col id="cd">50</Col>
  155. <Col id="nm">차입금관리</Col>
  156. </Row>
  157. <Row>
  158. <Col id="cd">51</Col>
  159. <Col id="nm">유가증권관리</Col>
  160. </Row>
  161. <Row>
  162. <Col id="cd">02</Col>
  163. <Col id="nm">부서코드</Col>
  164. </Row>
  165. <Row>
  166. <Col id="cd">01</Col>
  167. <Col id="nm">사번</Col>
  168. </Row>
  169. <Row>
  170. <Col id="cd">14</Col>
  171. <Col id="nm">거래처</Col>
  172. </Row>
  173. <Row>
  174. <Col id="cd">36</Col>
  175. <Col id="nm">부서코드</Col>
  176. </Row>
  177. </Rows>
  178. </Dataset>
  179. </Objects>
  180. <Bind>
  181. <BindItem id="item0" compid="grp_sea.ipt_notecd" propid="value" datasetid="ds_main_condition" columnid="notecd"/>
  182. <BindItem id="item1" compid="grp_sea.ipt_notecdnm" propid="value" datasetid="ds_main_condition" columnid="notecdnm"/>
  183. </Bind>
  184. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  185. * System Name :
  186. * Job Name :
  187. * Creator :
  188. * Make Date : 2017-06-19
  189. * Description :
  190. *---------------------------------------------------------------------------------------
  191. * Modify Date Modifier Modify Description
  192. *---------------------------------------------------------------------------------------
  193. * 2017-06-19 Live Converter TF->XP
  194. *
  195. *---------------------------------------------------------------------------------------
  196. ****************************************************************************************/
  197. include "com_commonxp::comm_main.xjs";
  198. include "mis_miscommonxp::MIS.xjs";
  199. function SMRAC00300_oninit(obj:Form, e:InitEventInfo)
  200. {
  201. frmf_initForm(obj);
  202. }
  203. function SMRAC00300_onload(obj:Form, e:LoadEventInfo)
  204. {
  205. grdf_initGrid(grd_notelist);
  206. grdf_setRowTypeIcon(grd_notelist, 0);
  207. fCheckAuth();
  208. fOpenForm();
  209. fGetNoteList();
  210. }
  211. function fCheckAuth()
  212. {
  213. grp_sea.btn_search.enable = frmf_checkAuth("R") ;
  214. btn_save.enable = frmf_checkAuth("X") ;
  215. btn_prt.enable = frmf_checkAuth("P") ;
  216. }
  217. function fOpenForm()
  218. {
  219. ds_main_notelist.clearData();
  220. }
  221. function fGetNoteList()
  222. {
  223. ds_main_notelist.clearData();
  224. var oParam = {};
  225. oParam.id = "TRRAC00301";
  226. oParam.service = "acntbaseinfoapp.AcntBaseInfo";
  227. oParam.method = "reqGetNoteCdList";
  228. oParam.inds = "req=ds_main_condition";
  229. oParam.outds = "ds_main_notelist=notelist";
  230. oParam.async = false;
  231. //oParam.callback = "cf_TRRAC00301";
  232. tranf_submit(oParam);
  233. misfSetReadOnlyCol(grd_notelist, "notecd");
  234. }
  235. function grp_sea_ipt_notecd_onkeyup(obj:Edit, e:KeyEventInfo)
  236. {
  237. if(e.keycode == 13)
  238. {
  239. obj.updateToDataset();
  240. grp_sea.ipt_notecdnm.setFocus();
  241. }
  242. }
  243. function ds_main_condition_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  244. {
  245. if(e.columnid == "notecd")
  246. {
  247. racfNoteValidCheck("notecd,notecdnm")
  248. }
  249. if(e.columnid == "notecdnm")
  250. {
  251. racfNoteValidCheck("notecd,notecdnm")
  252. }
  253. }
  254. function grp_sea_ipt_notecdnm_onkeyup(obj:Edit, e:KeyEventInfo)
  255. {
  256. if(e.keycode == 13)
  257. {
  258. obj.updateToDataset();
  259. grp_sea.btn_search.setFocus();
  260. }
  261. }
  262. function grp_sea_btn_help_onclick(obj:Button, e:ClickEventInfo)
  263. {
  264. misfOpenPopUpList("06", grp_sea.ipt_notecd, "", "notecd,notecdnm");
  265. }
  266. function grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
  267. {
  268. fGetNoteList();
  269. }
  270. function button1_onclick(obj:Button, e:ClickEventInfo)
  271. {
  272. grdf_ImportExcel("ds_main_notelist ", 2, grd_notelist, 0);
  273. }
  274. function btn_excadd_onclick(obj:Button, e:ClickEventInfo)
  275. {
  276. grdf_ImportExcel("ds_main_notelist ", 2, grd_notelist, 0);
  277. }
  278. function btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
  279. {
  280. misfGridIUD(grd_notelist, "A");
  281. }
  282. function btn_grddel_onclick(obj:Button, e:ClickEventInfo)
  283. {
  284. misfGridIUD(grd_notelist, "D");
  285. }
  286. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  287. {
  288. fClickSaveBtn();
  289. }
  290. function fClickSaveBtn()
  291. {
  292. if(!fIsValidForSave()) return;
  293. var oParam = {};
  294. oParam.id = "TXRAC00301";
  295. oParam.service = "acntbaseinfoapp.AcntBaseInfo";
  296. oParam.method = "reqExeSaveNoteCd";
  297. oParam.inds = "req=ds_main_notelist:u";
  298. oParam.outds = "";
  299. oParam.async = false;
  300. //oParam.callback = "cf_TXRAC00301";
  301. tranf_submit(oParam);
  302. }
  303. function fIsValidForSave()
  304. {
  305. var sNoteList = grdf_getGridUpdateData(grd_notelist).rowcount;
  306. if(sNoteList == 0)
  307. {
  308. sysf_messageBox("변경된 데이터가","I004");
  309. return false;
  310. }
  311. else
  312. {
  313. return true;
  314. }
  315. }]]></Script>
  316. </Form>
  317. </FDL>