SMARTsuite7 TO 9.1 2017년 2월
1. POC 목록 SMARTsuite 9.1 AS-IS TO-BE EMPRProgStsList.mxml 구매요청현황(modules/bp/procurement/pr) AS-IS TO-BE EMPRProgStsList.mxml empr-prog-sts-list.html ESPRProgStsList.mxml espr-prog-sts-list.html 구매요청생성(modules/bp/procurement/pr) AS-IS TO-BE EMPRInfo.mxml empr-info.html ESPRInfo.mxml espr-info.html 품목조회마스터(modules/bp/procurement/common) AS-IS TO-BE EPPRItemCatalog.mxml eppr-item-catalog.html ESPRItemCateTree.mxml espr-item-cate-tree.html ESPRItemCatalogList.mxml espr-item-catalog-list.html 기타 팝업(관리자->시스템관리->팝업관리) AS-IS(팝업코드) TO-BE SP001(부서검색) ui/bp/popup/ep-sp001.html SP002(국가검색) SP003(부서검색) SP009(직무코드 검색)
2. 구매요청현황 SMARTsuite 9.1 UI 변경(espr-prog-sts-list.html) sc-toolbar 버튼 -> cc-grid-toolbar이동 - 단, 조회는 cc-search-container의 on-search로 변경 <sc-toolbar> <sc-label text="구매진행현황"></sc-label> <sc-spacer></sc-spacer> <cc-button-checker group="tr" unit="{{menuCode}}" force-el-text="true"> <!-- 조회 --> <sc-button id="search" on-click="generated_7ca8cad0ae9a3a16599b290b5dclickListener" auth-search text="search"></sc-button> </cc-button-checker> </sc-toolbar> <cc-search-container on-search=" generated_7ca8cad0ae9a3a16599b290b5dclickListener"> <cc-grid-toolbar title-text="구매진행현황"> </cc-grid-toolbar>
SMARTsuite 9.1 2. 구매요청현황 2. 초기화 9.1 초기화 시점인 initialized 에서 creationComplete을 호출 /* * 9.1 초기화 시점 */ initialized: function () { this.creationComplete(); }, 3. creationComplete 수정 1. Session정보는 SCSessionManager를 가져오도록 수정 2. Obejct의 프로퍼티 수정은 set 함수를 사용하여 변경 creationComplete: function() { var now = new Date(); now.setMonth(now.getMonth() - 1); this.searchSO.from_date = DateField.dateToString(now, "YYYYMMDD"); this.searchSO.to_date = this.sToDay; this.searchSO.usr_id = this.session.user.usr_id; this.searchSO.comp_cd = this.session.user.comp_cd; this.searchSO.purc_grp_cd = this.session.user.purc_grp_cd; this.dispatchEvent(new SCEvent("getSession")); this.$.codeSP.service(); this.conMtr.setConditionMatrix(this.menuCode, this, null, this.searchSO); this.conPMtr.setConditionMatrix("erp_typ", "ALL", this); }, /** * @private * PR진행현황 화면 초기 Data 셋팅 */ creationComplete: function() { Var now = new Date(); Var user = SCSessionManager.getCurrentUser(); now.setMonth(now.getMonth() - 1); this.set("searchSO.from_date", UT.formatDate(now, "yyyyMMdd")); this.set("searchSO.to_date", this.sToDay); this.set("searchSO.usr_id", user.usr_id); this.set("searchSO.comp_cd", user.comp_cd); this.set("searchSO.purc_grp_cd", user.purc_grp_cd); this.dispatchEvent(new SCEvent("getSession")); this.$.codeSP.service(); //this.conMtr.setConditionMatrix(this.menuCode, this, null, this.searchSO); //this.conPMtr.setConditionMatrix("erp_typ", "ALL", this); },
2. 구매요청현황 SMARTsuite 9.1 4. getter Object 수정 getter Object경우 바인딩에 대한 보장을 할 수 없어 formula 형태로 변경(추후 변경예정) __getter__isPRMT: function() { if (this.searchSO.purc_typ == modulesBpProcurementComm_ESCommConst.P045_CT) { this.sPurcTypeLabel = this.translator.translate("공사/용역명"); return false; } this.sPurcTypeLabel = this.translator.translate("품목코드"); return true; }, __getter__deptChangable: function() { hidden="{{!isPRMT}}" formulas : { isPRMT: function() { if (this.searchSO.purc_typ == modulesBpProcurementComm_ESCommConst.P045_CT) { return false; } return true; }, creationComplete: function() { .. 생략.. if (this.searchSO.purc_typ == modulesBpProcurementComm_ESCommConst.P045_CT) { this.set("sPurcTypeLabel", this.translator.translate("공사/용역명")) }else{ this.set("sPurcTypeLabel",this.translator.translate("품목코드")); } this.applyFormula(); hidden="[[formula('isPRMT')]]"
2. 구매요청현황 SMARTsuite 9.1 4. 그리드 click 이벤트 수정(상세 페이지 전환) gridItemClickEvent시 전달받는 이벤트가 다르기 때문에 알맞은 값으로 변경 espr-prog-sts-lis.html gridItemClickEvent: function(event) { var item = event.itemRenderer.data; var datafield = event.itemRenderer["dataField"]; item.datafield = datafield; switch (datafield) { case "pr_no": this.dispatchEvent(new SCEvent("gridItemClick", item)); break; case "rd_locat1": if (item.pr_prog_sts == 'RD') { this.textDetail(item); } else { return; } case "po_no": if (!item['po_no']) return; modulesBpProcurementComm_ESCommUtil.callOz(item.po_no, item.cntr_rev); }, gridItemClickEvent: function(event) { var item = event.detail.data; var datafield = event.detail.item["dataField"]; item.datafield = datafield; switch (datafield) { case "pr_no": this.dispatchEvent(new SCEvent("gridItemClick", item)); break; case "rd_locat1": if (item.pr_prog_sts == 'RD') { this.textDetail(item); } else { return; } case "po_no": if (!item['po_no']) return; modulesBpProcurementComm_ESCommUtil.callOz(item.po_no, item.cntr_rev); },
2. 구매요청현황 SMARTsuite 9.1 4. 그리드 click 이벤트 수정(상세 페이지 전환) - 계속 gridItemClickEvent시 전달받는 이벤트가 다르기 때문에 알맞은 값으로 변경 empr-prog-sts-lis.html gridItemClickHandler: function(event) { var item = event.object; switch (item.datafield) { case "pr_no": if (item.purc_req_typ == modulesBpProcurementComm_ESCommConst.P049_UC) { this.$.prCntrinfo.parameter = item; this.$.prCntrinfo.childProperties = { mode: CCContentBase.VIEW }; this.$.bodyVS.selectedChild = this.$.prCntrinfo; } modulesBpProcurementComm_ESCommConst.P049_QC) { this.$.qrinfo.parameter = item; this.$.qrinfo.childProperties = { this.$.bodyVS.selectedChild = this.$.qrinfo; } else { this.$.prinfo.parameter = item; this.$.prinfo.childProperties = { this.$.bodyVS.selectedChild = this.$.prinfo; break; }, gridItemClickHandler: function(event) { var item = event.object; switch (item.datafield) { case "pr_no": if (item.purc_req_typ == modulesBpProcurementComm_ESCommConst.P049_UC) { this.$.prCntrinfo.parameter = item; this.$.prCntrinfo.childProperties = { mode: CCContentBase.VIEW }; this.$.bodyVS.selectItem(this.$.prCntrinfo); } modulesBpProcurementComm_ESCommConst.P049_QC) { this.$.qrinfo.parameter = item; this.$.qrinfo.childProperties = { this.$.bodyVS.selectItem(this.$.qrinfo); } else { var data = {}; data.item = item; data.mode = CCContentBase.VIEW; this.$.bodyVS.selectItem(this.$.prinfo); this.$.prinfo.load(data); break; },
2. 구매요청현황 SMARTsuite 9.1 6. grid Style Function 수정 색상은 html에 색상 코드로 변경 case "PRST": return { color: OxB1B1B1 }; break; case "PRST": return { color: "#B1B1B1" }; break;
End of Document