發表文章

目前顯示的是 6月, 2017的文章

ng2-smart-table 自定 column 資料

import { DecimalPipe , PercentPipe } from '@angular/common' ; settings = { columns: { name: { title: '名稱' , type: 'string' , sort: false , }, current: { title: '當期' , type: 'custom' , sort: false , class: 'text-right' , renderComponent: TrendInfoNumberComponent , }, before: { title: '前期' , type: 'html' , sort: false , class: 'text-right' , valuePrepareFunction: ( cell , row ) => { let value ; if ( row . id === '1' ) { value = this . percentPipe . transform ( cell / 100 , '1.2-2' ); // return `<div class="text-right">${value.toLocaleString('en-US', { style: 'percent' ...

Windows Server 2016 安裝 Msdeploy

圖片
Windows Server 2016 安裝 Msdeploy 新增角色及功能精靈 1. 安裝管理服務 伺服器角色 => 網頁伺服器 => 管理工具 => 管理服務 或用 PowerShell以指令安裝 Install-WindowsFeature Web-Mgmt-Service 2. 當「管理服務」安裝完成後,還必須「修復」或「重新安裝」 "web deploy 3.6"。 才能在網站的右鍵選單看到「部署 / 啟用 Web Deploy 發行」 使用 control userpasswords2 加入群組  MSDepSvcUsers Now go to Groups add new group if it does not exists MSDepSvcUsers, Double click on it and add your User as a member. Go to Services and restart the Web Deployment Agent Service. Now try and run your MSDeploy.