SMMNG00401_린넨부서구분등록.xfdl 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <FDL version="1.5">
  3. <TypeDefinition url="..\..\..\default_typedef.xml"/>
  4. <Form id="SMMNG00401" position="absolute 0 0 1211 784" titletext="린넨부서구분 등록" oninit="SMMNG00401_oninit" onload="SMMNG00401_onload">
  5. <Layouts>
  6. <Layout>
  7. <Div position="absolute 0 0 1195 25" id="grp_tle">
  8. <Layouts>
  9. <Layout>
  10. <Static text="린넨부서구분 등록" position="absolute 0 0 149 25" id="caption6" class="tit_1"/>
  11. </Layout>
  12. </Layouts>
  13. </Div>
  14. <Div position="absolute 0 38 1195 782" id="grp_biz" scrollbars="autoboth">
  15. <Layouts>
  16. <Layout width="1195" height="744">
  17. <Div position="absolute 0 10 1195 45" align="align:center top;" id="grp_sea">
  18. <Layouts>
  19. <Layout>
  20. <Shape position="absolute 0 0 1195 35" id="roundrect1" class="roundrect_search" type="roundrectangle"/>
  21. <Static text="기관코드 :" position="absolute 15 9 101 26" id="cap_instcd" class="search_name"/>
  22. <Shape position="absolute 1117 5 1123 30" linetype="vertical" id="line13" class="line_4"/>
  23. <Button position="absolute 1130 8 1186 30" id="btn_search" class="btn1" taborder="2" text="조회" onclick="grp_biz_grp_sea_btn_search_onclick"/>
  24. <Combo position="absolute 102 8 260 27" id="cmb_instcd" class="combo_essential" enable="false" innerdataset="@ds_hidden_common_instcdinfo" datacolumn="cdnm" codecolumn="cdid" onitemchanged="grp_biz_grp_sea_cmb_instcd_onitemchanged"/>
  25. <Static text="그룹명 :" position="absolute 270 10 358 27" id="caption2" class="search_name"/>
  26. <Edit position="absolute 348 8 520 27" id="ipt_reqdeptnm" class="input_search" autoselect="true"/>
  27. </Layout>
  28. </Layouts>
  29. </Div>
  30. <Shape position="absolute 250 75 1195 81" linetype="horizontal" id="line2" class="line_10"/>
  31. <Static text="그룹구분" position="absolute 5 59 88 75" id="caption8" class="tit_2"/>
  32. <Button position="absolute 1064 54 1106 73" id="btn_grdadd" class="btn2" enable="false" text="추가" onclick="grp_biz_btn_grdadd_onclick"/>
  33. <Static text="린넨청구부서 등록" position="absolute 250 59 383 75" id="caption1" class="tit_2"/>
  34. <Shape position="absolute 5 75 245 81" linetype="horizontal" id="line1" class="line_10"/>
  35. <Grid position="absolute 5 79 245 720" id="grd_grupdeptlist" binddataset="ds_main_grupdeptlist" oncellclick="grp_biz_grd_grupdeptlist_oncellclick" cellsizingtype="both" extendsizetype="row" selecttype="multirow">
  36. <Formats>
  37. <Format id="default">
  38. <Columns>
  39. <Column size="25" band="left"/>
  40. <Column size="50"/>
  41. <Column size="109"/>
  42. </Columns>
  43. <Rows>
  44. <Row size="24" band="head"/>
  45. <Row size="24"/>
  46. </Rows>
  47. <Band id="head">
  48. <Cell/>
  49. <Cell col="1" text="코드"/>
  50. <Cell col="2" text="그룹명"/>
  51. </Band>
  52. <Band id="body">
  53. <Cell celltype="head"/>
  54. <Cell col="1" style="align:center middle;" text="bind:grupdeptcd" enable="false"/>
  55. <Cell col="2" displaytype="text" edittype="text" text="bind:grupdeptnm" editautoselect="true"/>
  56. </Band>
  57. </Format>
  58. </Formats>
  59. </Grid>
  60. <Button position="absolute 1009 54 1062 73" id="button1" class="btn2" text="초기화" onclick="grp_biz_button1_onclick"/>
  61. <Button position="absolute 1152 54 1194 73" id="btn_save" class="btn5" enable="false" text="저장" onclick="grp_biz_btn_save_onclick"/>
  62. <Grid position="absolute 250 79 1195 719" id="grd_deptlist" binddataset="ds_main_deptlist" onexpanddown="grp_biz_grd_deptlist_onexpanddown" oncellclick="grp_biz_grd_deptlist_oncellclick" autoenter="select" selecttype="multirow" cellsizingtype="both" extendsizetype="row">
  63. <Formats>
  64. <Format id="default">
  65. <Columns>
  66. <Column size="25" band="left"/>
  67. <Column size="107"/>
  68. <Column size="150"/>
  69. <Column size="100"/>
  70. <Column size="250"/>
  71. <Column size="60"/>
  72. <Column size="0"/>
  73. <Column size="100"/>
  74. <Column size="100"/>
  75. </Columns>
  76. <Rows>
  77. <Row size="24" band="head"/>
  78. <Row size="24"/>
  79. </Rows>
  80. <Band id="head">
  81. <Cell/>
  82. <Cell col="1" text="부서코드"/>
  83. <Cell col="2" text="부서명"/>
  84. <Cell col="3" text="그룹구분"/>
  85. <Cell col="4" text="비고"/>
  86. <Cell col="5" text="정렬"/>
  87. <Cell col="6" text="수정자ID"/>
  88. <Cell col="7" text="수정자"/>
  89. <Cell col="8" text="수정일자"/>
  90. </Band>
  91. <Band id="body">
  92. <Cell celltype="head"/>
  93. <Cell col="1" displaytype="text" edittype="expr:ds_main_deptlist.getRowType(currow) == 2 ? 'text' : 'expand'" style="background2:URL('theme://images/bg_edit_est_N.png') stretch 9,9;" class="input_essential" text="bind:deptcd" editautoselect="true" expandshow="show"/>
  94. <Cell col="2" style="align:left middle;" text="bind:deptnm"/>
  95. <Cell col="3" displaytype="combo" edittype="combo" style="align:center middle;padding:0 0 0 0;background2:URL('theme://images/bg_edit_est_N.png') stretch 9,9;" class="input_essential" text="bind:grupdeptcd" editautoselect="false" combodataset="ds_main_grupdeptlist" combocodecol="grupdeptcd" combodatacol="grupdeptnm"/>
  96. <Cell col="4" displaytype="text" edittype="text" text="bind:cmt" editautoselect="true"/>
  97. <Cell col="5" displaytype="text" edittype="text" style="align:center middle;" text="bind:sortseq" editautoselect="true"/>
  98. <Cell col="6" displaytype="normal" edittype="none" style="align:center middle;" text="bind:lastupdtrid"/>
  99. <Cell col="7" displaytype="normal" edittype="none" style="align:center middle;" text="bind:lastupdtrnm"/>
  100. <Cell col="8" displaytype="normal" edittype="none" style="align:center middle;" text="bind:lastupdtdt" mask="expr:utlf_isNull(lastupdtdt) ? '' : '####-##-##'"/>
  101. </Band>
  102. </Format>
  103. </Formats>
  104. </Grid>
  105. <Button position="absolute 111 54 153 73" id="btn_new" class="btn2" taborder="3" text="추가" onclick="grp_biz_btn_new_onclick"/>
  106. <Button position="absolute 156 54 198 73" id="btn_updt" class="btn2" taborder="4" text="삭제" onclick="grp_biz_btn_updt_onclick"/>
  107. <Button position="absolute 201 54 243 73" id="btn_save1" class="btn5" taborder="17" text="저장" onclick="grp_biz_btn_save1_onclick"/>
  108. <Button position="absolute 1108 54 1153 73" id="button3" class="btn2" text="삭제" onclick="grp_biz_button3_onclick"/>
  109. </Layout>
  110. </Layouts>
  111. </Div>
  112. </Layout>
  113. </Layouts>
  114. <Objects>
  115. <Dataset id="ds_main_grupdeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  116. <Dataset id="ds_main_deptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false" oncolumnchanged="ds_main_deptlist_oncolumnchanged"/>
  117. <Dataset id="ds_send" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false">
  118. <ColumnInfo>
  119. <Column id="instcd" type="STRING" size="256"/>
  120. <Column id="grupdeptnm" type="STRING" size="256"/>
  121. </ColumnInfo>
  122. <Rows>
  123. <Row/>
  124. </Rows>
  125. </Dataset>
  126. <Dataset id="ds_init" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  127. <Dataset id="ds_hidden_common_instcdinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  128. <Dataset id="ds_temp_useinfo" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  129. <Dataset id="ds_copynode" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  130. <Dataset id="ds_main_csrreqdeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  131. <Dataset id="ds_main_csrdeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  132. <Dataset id="ds_send_reqdata" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  133. <Dataset id="ds_send_reqdata1" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  134. <Dataset id="ds_send_reqdata2" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  135. <Dataset id="ds_send_reqdata_grupdeptlist" firefirstcount="0" firenextcount="0" useclientlayout="false" updatecontrol="true" enableevent="true" loadkeymode="keep" loadfiltermode="keep" reversesubsum="false"/>
  136. </Objects>
  137. <Bind>
  138. <BindItem id="item0" compid="grp_biz.grp_sea.cmb_instcd" propid="value" datasetid="ds_send" columnid="instcd"/>
  139. <BindItem id="item1" compid="grp_biz.grp_sea.ipt_reqdeptnm" propid="value" datasetid="ds_send" columnid="grupdeptnm"/>
  140. </Bind>
  141. <Script type="xscript4.0"><![CDATA[/***************************************************************************************
  142. * System Name :
  143. * Job Name :
  144. * Creator :
  145. * Make Date : 2015-11-13
  146. * Description :
  147. *---------------------------------------------------------------------------------------
  148. * Modify Date Modifier Modify Description
  149. *---------------------------------------------------------------------------------------
  150. * 2015-11-13 Live Converter TF->XP
  151. *
  152. *---------------------------------------------------------------------------------------
  153. ****************************************************************************************/
  154. include "com_commonxp::comm_main.xjs";
  155. include "mis_miscommonxp::MIS.xjs";
  156. include "mis_miscommonxp::RSZ001.xjs";
  157. function SMMNG00401_oninit(obj:Form, e:InitEventInfo)
  158. {
  159. frmf_initForm(obj);
  160. }
  161. function SMMNG00401_onload(obj:Form, e:LoadEventInfo)
  162. {
  163. grdf_setRowTypeIcon(grp_biz.grd_grupdeptlist,0);
  164. grdf_setRowTypeIcon(grp_biz.grd_deptlist,0);
  165. grdf_initGrid(grp_biz.grd_deptlist);
  166. fInitialize();
  167. var oParam = {};
  168. oParam.id = "TRMNG02302";
  169. oParam.service = "csrapp.CsrDryMngt";
  170. oParam.method = "reqGetDeptUseInfo";
  171. oParam.inds = "req=ds_send";
  172. oParam.outds = "ds_temp_useinfo=useinfo";
  173. oParam.async = false;
  174. tranf_submit(oParam);
  175. var getuserinstcd = ds_temp_useinfo.getColumn(0, "cdid");
  176. if ( getuserinstcd == "N") {
  177. //grp_biz.btn_clndept.visible = false;
  178. }
  179. }
  180. function grp_biz_grp_sea_btn_search_onclick(obj:Button, e:ClickEventInfo)
  181. {
  182. fSearch();
  183. }
  184. var rowStat = "C";
  185. var curRow = -1;
  186. // 화면 open시와 초기화 버튼 클릭시 화면 초기화 기능을 수행한다.
  187. function fInitialize() {
  188. ds_main_csrreqdeptlist.clearData();
  189. ds_main_csrdeptlist.clearData();
  190. var arrParam = [
  191. {dsNm: "ds_hidden_common_instcdinfo", cdGrpId: "Z0007"}
  192. ];
  193. appf_getCodeList(arrParam, false, false);
  194. ds_send.setColumn(0, "instcd", sysf_getUserInfo("dutplceinstcd"));
  195. ds_send_reqdata.clearData();
  196. fSearch();
  197. //화면 권한 설정
  198. grp_biz.btn_save.enable = frmf_checkAuth("X");
  199. }
  200. function fSearch(){
  201. ds_main_deptlist.clearData();
  202. var oParam = {};
  203. oParam.id = "TRMNG00405";
  204. oParam.service = "csrapp.CsrDryMngt";
  205. oParam.method = "reqGetGrupDeptList";
  206. oParam.inds = "req=ds_send";
  207. oParam.outds = "ds_main_grupdeptlist=grupdeptlist";
  208. oParam.async = false;
  209. tranf_submit(oParam);
  210. ds_main_grupdeptlist.rowposition = -1;
  211. }
  212. function grp_biz_grp_sea_cmb_instcd_onitemchanged(obj:Combo, e:ItemChangeEventInfo)
  213. {
  214. frmf_inputEnterKey("grp_biz.grp_sea.btn_search", "onclick", new ClickEventInfo);
  215. }
  216. function grp_biz_btn_grdadd_onclick(obj:Button, e:ClickEventInfo)
  217. {
  218. ds_main_deptlist.addRow();
  219. var cur_row = ds_main_deptlist.rowposition;
  220. //grd_deptlist.editCell();
  221. }
  222. function grp_biz_grd_grupdeptlist_oncellclick(obj:Grid, e:GridClickEventInfo)
  223. {
  224. if(e.row > -1 && e.col > -1){
  225. if(ds_main_grupdeptlist.getRowType(ds_main_grupdeptlist.rowposition) == "1") {
  226. fSearch2();
  227. grp_biz.btn_grdadd.enable= true;
  228. grp_biz.btn_save.enable= true;
  229. }
  230. }
  231. }
  232. function fSearch2() {
  233. dsf_makeValue(ds_send_reqdata1,"grupdeptcd", "string", grp_biz.grd_grupdeptlist.getCellValue(ds_main_grupdeptlist.rowposition, grp_biz.grd_grupdeptlist.getBindCellIndex("body","grupdeptcd"))); //청구부서구분코드
  234. var oParam = {};
  235. oParam.id = "TRMNG00406";
  236. oParam.service = "csrapp.CsrDryMngt";
  237. oParam.method = "reqGetDeptList";
  238. oParam.inds = "req=ds_send_reqdata1";
  239. oParam.outds = "ds_main_deptlist=deptlist";
  240. oParam.async = false;
  241. tranf_submit(oParam);
  242. ds_main_deptlist.rowposition = -1;
  243. }
  244. function grp_biz_button1_onclick(obj:Button, e:ClickEventInfo)
  245. {
  246. fInitialize();
  247. }
  248. function grp_biz_btn_save_onclick(obj:Button, e:ClickEventInfo)
  249. {
  250. fsave();
  251. fSearch2();
  252. }
  253. function fsave(){
  254. var updtdata = grdf_getGridUpdateData(grp_biz.grd_deptlist);
  255. grdf_setStatusColumn(updtdata, "status");
  256. if (updtdata.rowcount < 1)
  257. {
  258. sysf_messageBox("변경된 데이터가","I004");
  259. return;
  260. }
  261. dsf_createDs("ds_send_reqdata2");
  262. ds_send_reqdata2.copyData(updtdata, true);
  263. var oParam = {};
  264. oParam.id = "TXMNG00405";
  265. oParam.service = "csrapp.CsrDryMngt";
  266. oParam.method = "reqExeDeptList";
  267. oParam.inds = "req=ds_send_reqdata2";
  268. oParam.outds = "";
  269. oParam.async = false;
  270. tranf_submit(oParam);
  271. fSearch2();
  272. }
  273. function grp_biz_grd_deptlist_onexpanddown(obj:Grid, e:GridMouseEventInfo)
  274. {
  275. sysf_setModelProperty("flag", "req");
  276. if (e.col == grp_biz.grd_deptlist.getBindCellIndex("body","deptcd")) {//부서코드 버튼을 눌렀을 때
  277. ds_copynode.clearData();
  278. rszfOpenPopUpListByWndName(grp_biz.grd_deptlist,"","deptcd,deptnm","SPMNG00402","","", "Y");
  279. var CSV = frmf_getParameter("SPMNG00402_");
  280. //frmf_clearParameter("SPMNG00400_");
  281. dsf_setCSVToDs("ds_copynode", CSV);
  282. fSettingGoodList("ds_copynode");
  283. }
  284. }
  285. function fSettingGoodList(pnode)
  286. {
  287. var codynode = ds_copynode.rowcount;
  288. var addRow = ds_main_deptlist.rowcount - 1;
  289. for (var j = 0; j < codynode; j++)
  290. {
  291. if(addRow > ds_main_deptlist.rowcount - 1)
  292. {
  293. misfGridIUD(grp_biz.grd_deptlist,"A");
  294. addRow = ds_main_deptlist.rowcount - 1;
  295. }
  296. ds_main_deptlist.updatecontrol = false;
  297. ds_main_deptlist.enableevent = false;
  298. ds_main_deptlist.setColumn(addRow, "deptcd" , ds_copynode.getColumn(j, "deptcd"));
  299. ds_main_deptlist.setColumn(addRow, "deptnm" , ds_copynode.getColumn(j, "depthngnm"));
  300. ds_main_deptlist.setColumn(addRow, "grupdeptcd" , grp_biz.grd_grupdeptlist.getCellValue(ds_main_grupdeptlist.rowposition, grp_biz.grd_grupdeptlist.getBindCellIndex("body","grupdeptcd")));
  301. grp_biz.grd_deptlist.showEditor(false);
  302. ds_main_deptlist.enableevent = true;
  303. ds_main_deptlist.updatecontrol = true;
  304. addRow = addRow + 1;
  305. }
  306. }
  307. function ds_main_deptlist_oncolumnchanged(obj:Dataset, e:DSColChangeEventInfo)
  308. {/*
  309. SPRSS00230 화면 없음..
  310. if (grd_deptlist.col == grd_deptlist.colRef("deptcd"))
  311. {
  312. if(grd_deptlist.valueMatrix(grd_deptlist.row, grd_deptlist.colRef("deptcd")) != "")
  313. {
  314. model.removenode("/root/init/main/deptcodelist");
  315. rszfOpenPopUpListByWndName(grd_deptlist,"","deptcd,deptnm","SPRSS00230","","", "Y");
  316. var CSV = model.getValue(gvParamPath +"/SPRSS00230_/SPRSS00230_value");
  317. setCSVToNode("/root/copynode", CSV, "grd_deptlist");
  318. fSettingGoodList("/root/copynode");
  319. }
  320. model.refresh();
  321. }*/
  322. }
  323. function grp_biz_grd_deptlist_oncellclick(obj:Grid, e:GridClickEventInfo)
  324. {
  325. //grd_deptlist.editCell();
  326. }
  327. function grp_biz_btn_new_onclick(obj:Button, e:ClickEventInfo)
  328. {
  329. ds_main_grupdeptlist.addRow();
  330. }
  331. function grp_biz_btn_updt_onclick(obj:Button, e:ClickEventInfo)
  332. {
  333. if(( ds_main_grupdeptlist.getRowType(ds_main_grupdeptlist.rowposition) =="2" )){
  334. ds_main_grupdeptlist.deleteRow(ds_main_grupdeptlist.rowposition);
  335. }else{
  336. ds_main_grupdeptlist.updatecontrol = false;
  337. ds_main_grupdeptlist.setRowType(ds_main_grupdeptlist.rowposition, 8);
  338. ds_main_grupdeptlist.updatecontrol = true;
  339. }
  340. }
  341. function grp_biz_btn_save1_onclick(obj:Button, e:ClickEventInfo)
  342. {
  343. var btn = sysf_messageBox("저장하시겠습니까?", "Q");
  344. if(btn == "6") {
  345. fSavData();
  346. fSearch()
  347. } else {
  348. return;
  349. }
  350. }
  351. function fSavData() {
  352. var updtdata = grdf_getGridUpdateData(grp_biz.grd_grupdeptlist);
  353. grdf_setStatusColumn(updtdata, "status");
  354. dsf_createDs("ds_send_reqdata_grupdeptlist");
  355. ds_send_reqdata_grupdeptlist.copyData(updtdata, true);
  356. var oParam = {};
  357. oParam.id = "TXMNG00404";
  358. oParam.service = "csrapp.CsrDryMngt";
  359. oParam.method = "reqExeGrupDeptList";
  360. oParam.inds = "req=ds_send_reqdata_grupdeptlist";
  361. oParam.outds = "";
  362. oParam.async = false;
  363. tranf_submit(oParam);
  364. }
  365. function grp_biz_button3_onclick(obj:Button, e:ClickEventInfo)
  366. {
  367. if( ds_main_deptlist.rowposition > -1 ){
  368. var firstRow = grp_biz.grd_deptlist.selectstartrow[0];
  369. var lastRow = grp_biz.grd_deptlist.selectendrow[grp_biz.grd_deptlist.selectcount-1];
  370. for(var i = firstRow; i <= lastRow; i++) {
  371. ds_main_deptlist.enableevent = false;
  372. ds_main_deptlist.updatecontrol = false;
  373. ds_main_deptlist.setRowType(i, 8);
  374. ds_main_deptlist.updatecontrol = true;
  375. ds_main_deptlist.enableevent = true;
  376. }
  377. }
  378. }
  379. ]]></Script>
  380. </Form>
  381. </FDL>