SMRAH02100_회계관리번호.xfdl 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMRAH02100" position="absolute 0 0 945 784" titletext="관리번호" oninit="SMRAH02100_oninit" onload="SMRAH02100_onload">
  5. <Layouts>
  6. <Layout>
  7. <Static text="관리번호" position="absolute 0 0 91 25" id="caption1" class="tit_1"/>
  8. <Shape position="absolute 3 25 940 82" id="rectangle1" type="roundrectangle"/>
  9. <Static text="코드" position="absolute 60 57 110 74" id="caption11" class="search_name"/>
  10. <Edit position="absolute 116 56 254 75" id="input13" class="input_default" autoselect="true"/>
  11. <Button position="absolute 832 41 888 63" id="btn_sea" class="btn1" text="조회" onclick="btn_sea_onclick"/>
  12. <Shape position="absolute 812 30 818 77" linetype="vertical" id="line6"/>
  13. <Shape position="absolute 3 113 938 114" linetype="vertical" id="line7" class="line_1"/>
  14. <Grid position="absolute 3 117 940 752" id="datagrid1" binddataset="ds_main_codeinfo_codelist" autoenter="select" cellsizingtype="col" onexpanddown="datagrid1_onexpanddown">
  15. <Formats>
  16. <Format id="default">
  17. <Columns>
  18. <Column size="24"/>
  19. <Column size="100"/>
  20. <Column size="108"/>
  21. <Column size="128"/>
  22. <Column size="297"/>
  23. <Column size="56"/>
  24. <Column size="100"/>
  25. <Column size="55"/>
  26. <Column size="55"/>
  27. <Column size="0"/>
  28. </Columns>
  29. <Rows>
  30. <Row size="24" band="head"/>
  31. <Row size="24"/>
  32. </Rows>
  33. <Band id="head">
  34. <Cell/>
  35. <Cell col="1" text="코드"/>
  36. <Cell col="2" text="병원코드/계좌번호"/>
  37. <Cell col="3" text="코드명"/>
  38. <Cell col="4" text="상세정보"/>
  39. <Cell col="5" text="거래처"/>
  40. <Cell col="6" text="거래처명"/>
  41. <Cell col="7" text="사용여부"/>
  42. <Cell col="8" text="지출대체"/>
  43. <Cell col="9" text="caption1"/>
  44. </Band>
  45. <Band id="body">
  46. <Cell celltype="head" expr="currow + 1"/>
  47. <Cell col="1" displaytype="text" edittype="text" style="align:left top;padding:5 2 1 2;" text="bind:cdid" wordwrap="word" editautoselect="true" enable="false"/>
  48. <Cell col="2" displaytype="text" edittype="text" style="align:left top;padding:5 2 1 2;" text="bind:cntlcd1" wordwrap="word" editautoselect="true"/>
  49. <Cell col="3" displaytype="text" edittype="text" style="align:left top;padding:5 2 1 2;" text="bind:cdnm" wordwrap="word" editautoselect="true"/>
  50. <Cell col="4" displaytype="text" edittype="text" style="align:left top;padding:5 2 1 2;" text="bind:detldesc" wordwrap="word" editautoselect="true"/>
  51. <Cell col="5" displaytype="text" edittype="text" style="align:left top;padding:5 2 1 2;" text="bind:cntlcd2" wordwrap="word" editautoselect="true" expandshow="show"/>
  52. <Cell col="6" style="align:left top;padding:5 2 1 2;" text="bind:custnm" wordwrap="word" editautoselect="true"/>
  53. <Cell col="7" displaytype="combo" edittype="combo" style="align:center;" text="bind:useyn"/>
  54. <Cell col="8" displaytype="text" edittype="text" text="bind:cntlcd3" mask="#"/>
  55. <Cell col="9" text="bind:grupcdid"/>
  56. </Band>
  57. </Format>
  58. </Formats>
  59. </Grid>
  60. <Static text="관리번호내역" position="absolute 3 96 116 112" id="caption4" class="tit_2"/>
  61. <Button position="absolute 763 91 816 110" id="btn_grdadd" class="btn2" text="행추가" onclick="btn_grdadd_onclick"/>
  62. <Button position="absolute 819 91 872 110" id="btn_grddel" class="btn2" text="행삭제" onclick="btn_grddel_onclick"/>
  63. <Button position="absolute 745 32 798 51" id="button27" class="btn2" visible="false" text="행복사"/>
  64. <Button position="absolute 880 757 936 779" id="btn_save" class="btn4" text="저장" onclick="btn_save_onclick"/>
  65. <Static text="구분" position="absolute 60 33 110 50" id="caption2" class="search_name"/>
  66. <Combo position="absolute 116 32 329 51" id="combo1" innerdataset="@ds_init_cat_catlist" datacolumn="nm" codecolumn="cd" oncloseup="combo1_oncloseup"/>
  67. <Static text="사용여부" position="absolute 360 33 439 50" id="caption3" class="search_name"/>
  68. <Combo position="absolute 441 32 530 51" id="combo2" codecolumn="codecolumn" datacolumn="datacolumn" oncloseup="combo2_oncloseup">
  69. <Dataset id="innerdataset">
  70. <ColumnInfo>
  71. <Column id="codecolumn"/>
  72. <Column id="datacolumn"/>
  73. </ColumnInfo>
  74. <Rows>
  75. <Row>
  76. <Col id="codecolumn">
  77. </Col>
  78. <Col id="datacolumn">전체</Col>
  79. </Row>
  80. <Row>
  81. <Col id="codecolumn">Y</Col>
  82. <Col id="datacolumn">사용</Col>
  83. </Row>
  84. <Row>
  85. <Col id="codecolumn">N</Col>
  86. <Col id="datacolumn">미사용</Col>
  87. </Row>
  88. </Rows>
  89. </Dataset>
  90. </Combo>
  91. <Static text="상세정보" position="absolute 360 57 440 74" id="caption5" class="search_name"/>
  92. <Edit position="absolute 441 56 596 75" id="input1" class="input_default" autoselect="true"/>
  93. <Static text="거래처코드" position="absolute 630 57 719 74" id="caption6" class="search_name"/>
  94. <Edit position="absolute 725 56 780 75" id="input2" class="input_default" autoselect="true"/>
  95. <Static text="※ 품의등록시 코드가 조회되지 않도록 사용종료처리 하려면, 사용여부를 &quot;사용안함&quot; 으로 변경하십시요." position="absolute 115 91 735 116" id="caption7"/>
  96. <Button position="absolute 875 91 939 110" align="align:left middle;" id="btn_excel" class="btn2" text="엑셀출력" onclick="btn_excel_onclick"/>
  97. </Layout>
  98. </Layouts>
  99. <Objects>
  100. <Dataset id="ds_main_codeinfo_codelist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  101. <ColumnInfo>
  102. <Column id="cdid" type="STRING" size="256"/>
  103. <Column id="cntlcd1" type="STRING" size="256"/>
  104. <Column id="cdnm" type="STRING" size="256"/>
  105. <Column id="detldesc" type="STRING" size="256"/>
  106. <Column id="cntlcd2" type="STRING" size="256"/>
  107. <Column id="custnm" type="STRING" size="256"/>
  108. <Column id="useyn" type="STRING" size="256"/>
  109. <Column id="grupcdid" type="STRING" size="256"/>
  110. <Column id="cntlcd3" type="STRING" size="256"/>
  111. <Column id="usedeptcd" type="STRING" size="256"/>
  112. <Column id="usedeptnm" type="STRING" size="256"/>
  113. </ColumnInfo>
  114. <Rows>
  115. <Row>
  116. <Col id="cdid"/>
  117. <Col id="cntlcd1"/>
  118. <Col id="cdnm"/>
  119. <Col id="detldesc"/>
  120. <Col id="cntlcd2"/>
  121. <Col id="custnm"/>
  122. <Col id="useyn"/>
  123. <Col id="grupcdid"/>
  124. <Col id="cntlcd3"/>
  125. <Col id="usedeptcd"/>
  126. <Col id="usedeptnm"/>
  127. </Row>
  128. </Rows>
  129. </Dataset>
  130. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  131. <ColumnInfo>
  132. <Column id="grupcdid" type="STRING" size="256"/>
  133. <Column id="srcd" type="STRING" size="256"/>
  134. <Column id="useyn" type="STRING" size="256"/>
  135. <Column id="detldesc" type="STRING" size="256"/>
  136. <Column id="cntlcd2" type="STRING" size="256"/>
  137. </ColumnInfo>
  138. <Rows>
  139. <Row>
  140. <Col id="grupcdid"/>
  141. <Col id="srcd"/>
  142. <Col id="useyn"/>
  143. <Col id="detldesc"/>
  144. <Col id="cntlcd2"/>
  145. </Row>
  146. </Rows>
  147. </Dataset>
  148. <Dataset id="ds_popdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  149. <ColumnInfo>
  150. <Column id="cdgrupid" type="STRING" size="256"/>
  151. </ColumnInfo>
  152. <Rows>
  153. <Row>
  154. <Col id="cdgrupid"/>
  155. </Row>
  156. </Rows>
  157. </Dataset>
  158. <Dataset id="ds_init_cat_catlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  159. <ColumnInfo>
  160. <Column id="cd" type="STRING" size="256"/>
  161. <Column id="nm" type="STRING" size="256"/>
  162. </ColumnInfo>
  163. <Rows>
  164. <Row>
  165. <Col id="cd"/>
  166. <Col id="nm"/>
  167. </Row>
  168. </Rows>
  169. </Dataset>
  170. <Dataset id="ds_cbo_useyn" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  171. <ColumnInfo>
  172. <Column id="label" type="STRING" size="256"/>
  173. <Column id="value" type="STRING" size="256"/>
  174. </ColumnInfo>
  175. <Rows>
  176. <Row>
  177. <Col id="label">사용</Col>
  178. <Col id="value">Y</Col>
  179. </Row>
  180. <Row>
  181. <Col id="label">사용안함</Col>
  182. <Col id="value">N</Col>
  183. </Row>
  184. </Rows>
  185. </Dataset>
  186. </Objects>
  187. <Bind>
  188. <BindItem id="item0" compid="combo1" propid="value" datasetid="ds_send_reqdata" columnid="grupcdid"/>
  189. <BindItem id="item1" compid="combo2" propid="value" datasetid="ds_send_reqdata" columnid="useyn"/>
  190. <BindItem id="item2" compid="input13" propid="value" datasetid="ds_send_reqdata" columnid="srcd"/>
  191. <BindItem id="item3" compid="input1" propid="value" datasetid="ds_send_reqdata" columnid="detldesc"/>
  192. <BindItem id="item4" compid="input2" propid="value" datasetid="ds_send_reqdata" columnid="cntlcd2"/>
  193. </Bind>
  194. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  195. * System Name :
  196. * Job Name :
  197. * Creator :
  198. * Make Date : 2017-06-19
  199. * Description :
  200. *---------------------------------------------------------------------------------------
  201. * Modify Date Modifier Modify Description
  202. *---------------------------------------------------------------------------------------
  203. * 2017-06-19 Live Converter TF->XP
  204. *
  205. *---------------------------------------------------------------------------------------
  206. ****************************************************************************************/
  207. include "com_commonxp::comm_main.xjs";
  208. include "mis_miscommonxp::MIS.xjs";
  209. var arErrorCode = new HashArray();
  210. function SMRAH02100_oninit(obj:Form, e:InitEventInfo)
  211. {
  212. frmf_initForm(obj); //폼 초기화
  213. }
  214. function SMRAH02100_onload(obj:Form, e:LoadEventInfo)
  215. {
  216. //2014.03.28 박준범 : 구분코드를 하드코딩에서 회계기초정보 setting 테이블에서 가져오도록 수정
  217. var oParam = {};
  218. oParam.id = "TRRAH02102";
  219. oParam.service = "acntknuhapp.Acntknuh";
  220. oParam.method = "reqGetCatList";
  221. oParam.inds = "req=ds_send_reqdata";
  222. oParam.outds = "ds_init_cat_catlist=catlist";
  223. oParam.async = false;
  224. tranf_submit(oParam);
  225. ds_init_cat_catlist.insertRow(0);
  226. combo1.value = "";
  227. }
  228. function btn_sea_onclick(obj:Button, e:ClickEventInfo)
  229. {
  230. readfunc();
  231. }
  232. function readfunc(){// 해당 조건에 대한 사용자 권한내역을 조회한다.
  233. if (utlf_isNull(ds_send_reqdata.getColumn(0, "grupcdid"))){
  234. sysf_messageBox("구분코드를 선택한 후 조회하시기 바랍니다.", "E999", "");
  235. return;
  236. }
  237. ds_main_codeinfo_codelist.clearData();
  238. btn_save.enable = true;
  239. var oParam = {};
  240. oParam.id = "TRRAH02101";
  241. oParam.service = "acntknuhapp.Acntknuh";
  242. oParam.method = "reqGetAdministrationList";
  243. oParam.inds = "req=ds_send_reqdata";
  244. oParam.outds = "ds_main_codeinfo_codelist=codelist";
  245. oParam.async = false;
  246. tranf_submit(oParam);
  247. }
  248. function datagrid1_onexpanddown(obj:Grid, e:GridMouseEventInfo)
  249. {
  250. if(e.col == datagrid1.getBindCellIndex("body", "cntlcd2")){
  251. //거래처코드인 경우
  252. fOpenPopupHelp("14", datagrid1, "cntlcd2,custnm", "", "");
  253. }
  254. else if(e.col == datagrid1.getBindCellIndex("body", "usedeptcd")){
  255. //부서코드인 경우
  256. misfOpenPopUpList("02", datagrid1, "", "usedeptcd,usedeptnm");
  257. }
  258. }
  259. function btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
  260. {
  261. if (utlf_isNull(ds_send_reqdata.getColumn(0, "grupcdid"))){
  262. sysf_messageBox("구분코드를 선택한 후 작업하시기 바랍니다.", "E999", "");
  263. return;
  264. }
  265. ds_main_codeinfo_codelist.addRow();
  266. var irow = ds_main_codeinfo_codelist.rowposition;
  267. ds_main_codeinfo_codelist.setColumn(irow, "grupcdid", ds_send_reqdata.getColumn(0, "grupcdid"));
  268. ds_main_codeinfo_codelist.rowposition = irow;
  269. datagrid1.setCellPos(1);
  270. datagrid1.showEditor(true);
  271. }
  272. function btn_grddel_onclick(obj:Button, e:ClickEventInfo)
  273. {
  274. ds_main_codeinfo_codelist.deleteRow(ds_main_codeinfo_codelist.rowposition);
  275. }
  276. function btn_save_onclick(obj:Button, e:ClickEventInfo)
  277. {
  278. if (datacheck() == false){
  279. return;
  280. }
  281. ExecData();
  282. }
  283. function datacheck(){
  284. var scdid1 = "";
  285. var scdid2 = "";
  286. for (var i = 0; i < ds_main_codeinfo_codelist.rowcount; i ++){
  287. if (utlf_isNull(ds_main_codeinfo_codelist.getColumn(i, "cdid"))){
  288. sysf_messageBox("코드는 필수 입력항목입니다.", "E999", "");
  289. return false;
  290. }
  291. scdid1 = ds_main_codeinfo_codelist.getColumn(i, "cdid");
  292. var k = i + 1;
  293. for (var j = k; j < ds_main_codeinfo_codelist.rowcount; j++){
  294. scdid2 = ds_main_codeinfo_codelist.getColumn(j, "cdid");
  295. if (i != j){
  296. if (scdid1 == scdid2){
  297. sysf_messageBox(j + "번째에서 중복된 자료가 존재합니다", "E999", "");
  298. return false;
  299. }
  300. }
  301. }
  302. }
  303. return true;
  304. }
  305. function ExecData(){
  306. var oParam = {};
  307. oParam.id = "TXRAH02101";
  308. oParam.service = "acntknuhapp.Acntknuh";
  309. oParam.method = "reqExeSaveAdministrationList";
  310. oParam.inds = "req=ds_main_codeinfo_codelist:U";
  311. oParam.outds = "ds_=item";
  312. oParam.typeStr = "status";
  313. oParam.async = false;
  314. oParam.callback = "cf_TXRAH02101";
  315. tranf_submit(oParam);
  316. if (arErrorCode.pop("TXRAH02101") > -1){
  317. readfunc();
  318. }
  319. }
  320. function cf_TXRAH02101(sSvcId, nErrorCode, sErrorMsg) {
  321. arErrorCode.push(sSvcId, nErrorCode);
  322. }
  323. function combo1_oncloseup(obj:Combo, e:ComboCloseUpEventInfo)
  324. {
  325. readfunc();
  326. }
  327. function combo2_oncloseup(obj:Combo, e:ComboCloseUpEventInfo)
  328. {
  329. readfunc();
  330. }
  331. function btn_excel_onclick(obj:Button, e:ClickEventInfo)
  332. {
  333. grdf_exportExcel(datagrid1, "회계관리번호" + utlf_getCurrentDate(), "sheetname1" , true, "" , "" , true);
  334. }
  335. ]]></Script>
  336. </Form>
  337. </FDL>