Changeset 371
- Timestamp:
- Jan 19, 2012, 12:51:38 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
- 6 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/Global.php
r368 r371 14 14 include_once('Module.php'); 15 15 include_once('Model.php'); 16 include_once('View.php'); 16 17 17 18 $PrefixMultipliers = array -
trunk/Modules/Member/Member.php
r370 r371 1 1 <?php 2 2 3 'MemberOptions' => array( 4 'Title' => 'Nastavení domácnosti', 5 'Table' => '(SELECT Member.Id, Member.InternetTariffNextMonth, Member.FamilyMemberCount, Subject.Name, Subject.AddressStreet, Subject.AddressTown, Subject.AddressPSC, Subject.IC, Subject.DIC FROM Member JOIN Subject ON Subject.Id = Member.Subject)', 6 'Items' => array( 7 'Name' => array('Type' => 'String', 'Caption' => 'Fakturační jméno', 'Default' => ''), 8 'AddressStreet' => array('Type' => 'String', 'Caption' => 'Ulice', 'Default' => 'Zděchov'), 9 'AddressTown' => array('Type' => 'String', 'Caption' => 'Město', 'Default' => 'Zděchov'), 10 'AddressPSC' => array('Type' => 'String', 'Caption' => 'PSČ', 'Default' => '75607'), 11 'IC' => array('Type' => 'String', 'Caption' => 'IČ', 'Default' => ''), 12 'DIC' => array('Type' => 'String', 'Caption' => 'DIČ', 'Default' => ''), 13 'FamilyMemberCount' => array('Type' => 'Integer', 'Caption' => 'Počet osob v domácnosti', 'Default' => ''), 14 'BillingPeriodNext' => array('Type' => 'TFinanceBillingPeriod', 'Caption' => 'Požadované fakturované období', 'Default' => ''), 15 'InternetTariffNextMonth' => array('Type' => 'TFinanceTariff', 'Caption' => 'Tarif internetu od dalšího období', 'Default' => 2), 16 ), 17 ), 3 class MemberOptionsView extends View 4 { 5 function __construct() 6 { 7 $this->Title = 'Nastavení domácnosti'; 8 $this->Table = '(SELECT Member.Id, Member.InternetTariffNextMonth, Member.FamilyMemberCount, Subject.Name, Subject.AddressStreet, Subject.AddressTown, Subject.AddressPSC, Subject.IC, Subject.DIC FROM Member JOIN Subject ON Subject.Id = Member.Subject)'; 9 AddItemString('Name', 'Fakturační jméno', ''); 10 AddItemString('AddressStreet', 'Ulice', ''); 11 AddItemString('AddressTown', 'Město', ''); 12 AddItemString('PSC', 'PSČ', ''); 13 AddItemString('IC', 'IČ', ''); 14 AddItemString('DIC', 'DIČ', ''); 15 AddItemInteger('FamiltyMemberCount', 'Počet osob v domácnosti', ''); 16 AddItemOneToMany('BillingPeriodNext', 'Požadované fakturační období', ''); 17 AddItemOneToMany('InternetTariffNextMonth', 'Tarif internetu od dalšího období', 2); 18 } 19 } 20 21 class Member extends Model 22 { 23 function __construct($Database, $System) 24 { 25 parent::__construct($Database, $System); 26 $this->Name = 'Member'; 27 $this->AddPropertyDateTime('Time'); 28 $this->AddPropertyOneToMany('User', 'User'); 29 $this->AddPropertyString('Module'); 30 $this->AddPropertyString('Operation'); 31 $this->AddPropertyString('Value'); 32 } 33 } 34 35 class MemberPayment extends Model 36 { 37 function __construct($Database, $System) 38 { 39 parent::__construct($Database, $System); 40 $this->Name = 'MemberPayment'; 41 $this->AddPropertyDateTime('Time'); 42 $this->AddPropertyOneToMany('User', 'User'); 43 $this->AddPropertyString('Module'); 44 $this->AddPropertyString('Operation'); 45 $this->AddPropertyString('Value'); 46 } 47 } 48 49 class ModuleMember extends Module 50 { 51 function __construct($Database, $System) 52 { 53 parent::__construct($Database, $System); 54 $this->Name = 'Member'; 55 $this->Version = '1.0'; 56 $this->Creator = 'Chronos'; 57 $this->License = 'GNU/GPL'; 58 $this->Description = 'Customer and member management'; 59 $this->Dependencies = array('User', 'Subject'); 60 $this->Models = array('Member', 'MemberPayment'); 61 $this->View = array('MemberOptionsView'); 62 } 63 64 function Install() 65 { 66 parent::Install(); 67 } 68 69 function UnInstall() 70 { 71 parent::UnInstall(); 72 } 73 74 function Init() 75 { 76 } 77 } 18 78 19 79 ?> -
trunk/Modules/Network/Network.php
r370 r371 1 1 <?php 2 2 3 include(' dostupnost.php');4 include(' administration.php');5 include(' hosting.php');6 include(' restart.php');7 include(' subnet.php');8 include(' user_hosts.php');3 include('Dostupnost.php'); 4 include('Administration.php'); 5 include('Hosting.php'); 6 include('Restart.php'); 7 include('Subnet.php'); 8 include('UserHosts.php'); 9 9 include('NetworkInformation.php'); 10 10 include('HostList.php'); -
trunk/Modules/Subject/Subject.php
r370 r371 1 1 <?php 2 2 3 class Subject extends Model 4 { 5 function __construct($Database, $System) 6 { 7 parent::__construct($Database, $System); 8 $this->Name = 'Subject'; 9 $this->AddPropertyString('Name'); 10 $this->AddPropertyString('AddressStreet'); 11 $this->AddPropertyString('AddressTown'); 12 $this->AddPropertyInteger('PSC'); 13 $this->AddPropertyString('Country'); 14 $this->AddPropertyString('IC'); 15 $this->AddPropertyString('DIC'); 16 $this->AddPropertyFloat('MapPositionX'); 17 $this->AddPropertyFloat('MapPositionY'); 18 $this->AddPropertyString('WWW'); 19 $this->AddPropertyString('Note'); 20 } 21 } 22 23 class ModuleSubject extends Module 24 { 25 function __construct($Database, $System) 26 { 27 parent::__construct($Database, $System); 28 $this->Name = 'Subject'; 29 $this->Version = '1.0'; 30 $this->Creator = 'Chronos'; 31 $this->License = 'GNU/GPL'; 32 $this->Description = 'Subject management'; 33 $this->Dependencies = array(); 34 $this->Models = array('Subject'); 35 } 36 37 function Install() 38 { 39 parent::Install(); 40 } 41 42 function UnInstall() 43 { 44 parent::UnInstall(); 45 } 46 47 function Init() 48 { 49 } 50 } 51 3 52 ?>
Note:
See TracChangeset
for help on using the changeset viewer.