This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// справочник типов приложения docFlow | |
var TYPE_PROJECT="project"; // папка проекта | |
var TYPE_CONTRACT="contract"; // версия контракта | |
var TYPE_COMMENT="comment"; // замечания комментатора | |
var TYPE_OTHER_DOC="doc"; // сопутствующий документ | |
// справочник состояний проекта | |
var STATUS_NOT_FINISHED='false'; | |
var STATUS_FINISHED='true'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function doGet(e) { | |
return HtmlService.createTemplateFromFile('index').evaluate() | |
.setSandboxMode(HtmlService.SandboxMode.IFRAME); | |
} | |
function include(filename) { | |
return HtmlService.createHtmlOutputFromFile(filename) | |
.getContent(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<base target="_top"> | |
<script> | |
function putCash(newCash) { | |
var c = document.getElementById("Cash"); | |
c.innerHTML=newCash+" RUR"; | |
} | |
function putProfit(newProfit) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<base target="_top"> | |
<link rel="stylesheet" href="https://ssl.gstatic.com/docs/script/css/add-ons1.css"> | |
<script> | |
function turnOffButtons() { | |
for(var index=1; index<=6; index++) { | |
var b=document.getElementById("but"+index); | |
b.hidden=true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Array.prototype.findByPropName = function(name){ | |
for(var i = 0; i < this.length; i++){ | |
if(this[i].key == name) return this[i] | |
} | |
return {value: undefined}; | |
} | |
function onOpen() { | |
addMenu(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<link rel="stylesheet" href="https://ssl.gstatic.com/docs/script/css/add-ons1.css"> | |
<base target="_top"> | |
</head> | |
<script> | |
function Okay() { | |
document.getElementById("butOkay").disabled=true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var LIST_ID='тут поставить ID таблицы реестра платежей'; | |
Array.prototype.findByPropName = function(name){ | |
for(var i = 0; i < this.length; i++){ | |
if(this[i].key == name) return this[i] | |
} | |
return {value: undefined}; | |
} | |
function callTrigger() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ID='вставьте сюда ID своей таблицы с единым реестром операций'; | |
function doGet(e) { | |
try { | |
var indexOfTochka=e.parameter.table; | |
if (indexOfTochka!=undefined) uploadTable(indexOfTochka); | |
} catch (err) {return err}; | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var MYORDERS='ID таблицы записей'; // таблица записей | |
var ORDERCAL="ID календаря"; // календарь записей | |
var TEXT_EMAIL='<font size=4 face="fantasy"> Добрый день!</font><br> Мы записали Вас ##DATE##, время: ##TIME##! <br> С нетерпением ждем Вас!'; | |
var CANCEL_EMAIL='<font size=4 face="fantasy"> Добрый день! </font><br> Время, которое Вы выбрали занято, выберите другое, пожалуйста!'; | |
var HOLIDAY_EMAIL='<font size=4 face="fantasy"> Добрый день! </font><br> Вы выбрали для записи праздничный день, выберите другой день, пожалуйста!'; | |
var WEEKEND_EMAIL='<font size=4 face="fantasy"> Добрый день! </font><br> Вы выбрали для записи выходной день, выберите другой день, пожалуйста!'; | |
function onSubmitForm(e) { | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function onOpen() { | |
var curSheetUi=SpreadsheetApp.getUi(); | |
curSheetUi.createMenu('Планирование') | |
.addItem('Очистить график', 'clearPlan') | |
.addItem('Сформировать график', 'makePlan') | |
.addToUi(); | |
} | |
function clearPlan() { |
OlderNewer