evmtools-node
Version:
このライブラリは、プライムブレインズ社で利用している「進捗管理ツール(Excel)」ファイルを読み込み、 プロジェクトの進捗状況や要員別の作業量を可視化するためのライブラリです。
52 lines • 2.91 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.style6 = exports.style5 = exports.style4 = exports.style3 = exports.style21 = exports.style2 = exports.style1 = exports.style0 = void 0;
const style0 = ({ sheet, rowCount }) => {
sheet.range(`E2:F${rowCount + 1}`).style('numberFormat', '#,##0');
};
exports.style0 = style0;
const style1 = ({ sheet, rowCount }) => {
sheet.range(`E2:F${rowCount + 1}`).style('numberFormat', '#,##0');
sheet.range(`G2:R${rowCount + 1}`).style('numberFormat', '#,##0.00');
};
exports.style1 = style1;
const style2 = ({ sheet, rowCount }) => {
sheet.range(`E2:E${rowCount + 1}`).style('numberFormat', '#,##0');
sheet.range(`R2:R${rowCount + 1}`).style('numberFormat', '#,##0');
sheet.range(`F2:Q${rowCount + 1}`).style('numberFormat', '#,##0.00');
};
exports.style2 = style2;
const style21 = ({ sheet, rowCount }) => {
sheet.range(`E2:E${rowCount + 1}`).style('numberFormat', '#,##0');
sheet.range(`R2:R${rowCount + 1}`).style('numberFormat', '#,##0');
sheet.range(`F2:Q${rowCount + 1}`).style('numberFormat', '#,##0');
};
exports.style21 = style21;
const style3 = ({ sheet, rowCount }) => {
sheet.range(`E2:R${rowCount + 1}`).style('numberFormat', '#,##0');
};
exports.style3 = style3;
const style4 = ({ sheet, rowCount }) => {
sheet.range(`C2:D${rowCount + 1}`).style('numberFormat', '#,##0');
sheet.range(`E2:P${rowCount + 1}`).style('numberFormat', '#,##0.00');
};
exports.style4 = style4;
const style5 = ({ sheet, rowCount }) => {
// よくある整形パタン。
// sheet.range(`C2:C${rowCount + 1}`).style('numberFormat', '@') // 書式: 文字(コレをやらないと、見かけ上文字だが、F2で抜けると数字になっちゃう)
sheet.range(`I2:J${rowCount + 1}`).style('numberFormat', 'yyyy/mm/dd'); // 書式: 日付
sheet.range(`L2:M${rowCount + 1}`).style('numberFormat', 'yyyy/mm/dd'); // 書式: 日付
sheet.range(`S2:S${rowCount + 1}`).style('numberFormat', 'yyyy/mm/dd'); // 書式: 日付
// sheet.range(`H2:H${rowCount + 1}`).style('numberFormat', 'yyyy/mm/dd hh:mm') // 書式: 日付+時刻
};
exports.style5 = style5;
const style6 = ({ sheet, rowCount }) => {
// よくある整形パタン。
// sheet.range(`C2:C${rowCount + 1}`).style('numberFormat', '@') // 書式: 文字(コレをやらないと、見かけ上文字だが、F2で抜けると数字になっちゃう)
sheet.range(`V2:V${rowCount + 1}`).style('numberFormat', 'yyyy/mm/dd'); // 書式: 日付
sheet.range(`W2:W${rowCount + 1}`).style('numberFormat', 'yyyy/mm/dd'); // 書式: 日付
sheet.range(`X2:X${rowCount + 1}`).style('numberFormat', 'yyyy/mm/dd'); // 書式: 日付
// sheet.range(`H2:H${rowCount + 1}`).style('numberFormat', 'yyyy/mm/dd hh:mm') // 書式: 日付+時刻
};
exports.style6 = style6;
//# sourceMappingURL=myStyles.js.map