Тема: Career path
Показать сообщение отдельно
Старый 14.10.2010, 11:05   #16  
Evgeniy2020 is offline
Evgeniy2020
Участник
 
309 / 68 (3) ++++
Регистрация: 10.04.2007
Адрес: Москва, САО, СЗАО
X++:
static void business_owner(Args _args)
{
    smallCompany   smCom;
    Documents      docs;
    Amount         targetTurnover;
    ;
    smCom = new smCom();
    smCom.parmInitCapital(10000);
    smCom.parmCompanyName('ITGoods');
    docs = smCom.init(); //Регистрация, получение документов
    targetTurnover = 100000000; //set goal to medium company
    do   // Вперед и с песней
    {
      smCom.Run(targetTurnover);
    } while(smCom.yearTurnoverAmount < targetTurnover);
}

// где то в методе    smCom.Run();
{
    custTableCollection customers;
    int                 current;
    resultCollection    workResult;
    strategyCollection  strategy;
    ;
    while (period < year)
    {
        customers = this.doMarketing(finResult/5, strategy);
        for (current = 1; current <= customers.count(); current++; )
            workResult[current] = this.doServiceFor(customers[current], strategy);
        salesAmount = this.doSales(workResult, strategy);
        finResult = salesAmount - this.doPayments(salesAmount, strategy);
        strategy  = this.doAnalyzeOLAPandDecision(targetTurnover, finResult, strategy);
        this.implementNewStrategy(strategy);
    }
}
За это сообщение автора поблагодарили: mazzy (2), S.Kuskov (3), pitersky (1).