public BudgetIncomeItem CreateItem( Budget budget, ProjectPhase phase, BudgetIncomeItemRef budgetIncomeItemRef, string theme, double amount, string substantiation )
Создать доход бюджета
Синтаксис
public BudgetIncomeItem CreateItem( Budget budget, ProjectPhase phase, BudgetIncomeItemRef budgetIncomeItemRef, string theme, double amount, string substantiation )
Параметры
- budget
- Тип: Budget
Бюджет проекта.. Объект. Путь доступа: PublicAPI.Projects.Budget
- phase
- Тип: ProjectPhase
Этап в бюджете проекта. Объект. Путь доступа: PublicAPI.Projects.Objects.ProjectPhase
- budgetIncomeItemRef
- Тип: BudgetIncomeItemRef
Статья дохода бюджета. Объект. Путь доступа: PublicAPI.Projects.Budgets.BudgetIncomeItemRef
- theme
- Тип: System String
Тема дохода бюджета
- amount
- Тип: System Double
Сумма дохода бюджета
- substantiation
- Тип: System String
Обоснование (необзятаельный параметр)
Возвращаемое значение
Тип: BudgetIncomeItemДоход бюджета
Примеры
//загружаем этап в бюджете проекта по идентификатору var phase = PublicAPI.Projects.Objects.ProjectPhase.Load(3); //загружаем статью дохода бюджета по идентификатору var budgetIncomeItemRef = PublicAPI.Projects.Objects.BudgetIncomeItemRef.Load(3); //тема var theme = "New Budget Income"; //сумма дохода var amount = 25000; //обоснование var substantiation = "Самое простое обоснование"; //создаем доход проекта var incomeItem = PublicAPI.Projects.Objects.BudgetIncomeItem.CreateBudgetIncomeItem(project, phase, budgetIncomeItemRef, theme, amount, substantiation);
См. также
Как загрузить статью дохода бюджета