Ignore:
Timestamp:
Jan 20, 2012, 9:17:37 PM (13 years ago)
Author:
chronos
Message:
  • Opraveno: Odkazy mezi modely.
  • Přidáno: Definice NetworkAP.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Modules/Member/Member.php

    r378 r379  
    2626    parent::__construct($Database, $System);
    2727    $this->Name = 'Member';
    28     $this->AddPropertyDateTime('Time');
    29     $this->AddPropertyOneToMany('User', 'User');
    30     $this->AddPropertyString('Module');
    31     $this->AddPropertyString('Operation');
    32     $this->AddPropertyString('Value');
     28    $this->AddPropertyOneToMany('Subject', 'Subject');
     29    $this->AddPropertyOneToMany('ResponsibleUser', 'User');
     30    $this->AddPropertyInteger('FamilyMemberCount');
     31    $this->AddPropertyDate('MembershipDate');
     32    $this->AddPropertyInteger('MemberState');
     33    $this->AddPropertyOneToMany('InternetTariffCurrentMonth', 'FinanceTariff');
     34    $this->AddPropertyOneToMany('InternetTariffNextMonth', 'FinanceTariff');
     35    $this->AddPropertyInteger('GPS');
     36    $this->AddPropertyOneToMany('BillingPeriod', 'FinanceBillingPeriod');
     37    $this->AddPropertyOneToMany('NetworkSegment', 'NetworkSegment');
     38    $this->AddPropertyOneToMany('BillingPeriodNext', 'FinanceBillingPeriod');
     39    $this->AddPropertyFloat('Hire');
     40    $this->AddPropertyBoolean('Blocked');
    3341  }
    3442}
     
    4048    parent::__construct($Database, $System);
    4149    $this->Name = 'MemberPayment';
    42     $this->AddPropertyDateTime('Time');
    43     $this->AddPropertyOneToMany('User', 'User');
    44     $this->AddPropertyString('Module');
    45     $this->AddPropertyString('Operation');
    46     $this->AddPropertyString('Value');
     50    $this->AddPropertyOneToMany('Member', 'Member');
     51    $this->AddPropertyFloat('MonthlyTotal');
     52    $this->AddPropertyFloat('MonthlyInternet');
     53    $this->AddPropertyFloat('MonthlyConsumption');
     54    $this->AddPropertyFloat('NetworkDevice');
     55    $this->AddPropertyFloat('MonthlyPlus');
     56    $this->AddPropertyFloat('Cash');
    4757  }
    4858}
Note: See TracChangeset for help on using the changeset viewer.