Changeset 540 for trunk/Modules
- Timestamp:
- May 28, 2013, 10:19:39 PM (12 years ago)
- Location:
- trunk/Modules
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Modules/Finance/Finance.php
r538 r540 459 459 'ReplaceId' => array('Type' => 'TFinanceCharge', 'Caption' => 'Cílová položka', 'Default' => '0', 'Null' => true), 460 460 ), 461 )); 462 463 461 )); 464 462 465 463 $this->System->AddModule(new Bill($this->System)); -
trunk/Modules/Finance/Manage.php
r537 r540 26 26 // $Output = $this->ImportOldData(); 27 27 // break; 28 case 'NewDeviceForm':29 $Output = $this->ShowNewDeviceForm();30 break;31 case 'NewDeviceInsert':32 $Output = $this->ShowNewDeviceInsert();33 break;34 case 'NewDeviceHistoryForm':35 $Output = $this->ShowNewDeviceHistoryForm();36 break;37 case 'NewDeviceHistoryInsert':38 $Output = $this->ShowNewDeviceHistoryInsert();39 break;40 28 case 'NewPaymentInsert': 41 29 $Output = $this->ShowNewPaymentInsert(); … … 64 52 break; 65 53 default: 66 $Output = '<a href="?Operation=NewDeviceForm">Přidat nové zařízení</a><br />'; 67 $Output .= '<a href="?Operation=NewDeviceHistoryForm">Přidat nový záznam historie zařízení</a><br />'; 68 $Output .= '<a href="?Operation=NewPaymentForm">Přidat novou platbu</a><br />'; 54 $Output = '<a href="?Operation=NewPaymentForm">Přidat novou platbu</a><br />'; 69 55 $Output .= '<a href="?Operation=NewInvoiceForm">Přidat novou fakturu</a><br />'; 70 56 $Output .= '<a href="?Operation=ConvertPDFToFile">Převést data z databáze do souborů</a><br />'; … … 187 173 } 188 174 189 function ShowNewDeviceForm() 190 { 191 $Form = new Form($this->System->FormManager); 192 $Form->SetClass('NewNetworkDevice'); 193 $Form->OnSubmit = '?Operation=NewDeviceInsert'; 194 $Output = $Form->ShowEditForm(); 195 return($Output); 196 } 197 198 function ShowNewDeviceInsert() 199 { 200 $Form = new Form($this->System->FormManager); 201 $Form->SetClass('NewNetworkDevice'); 202 $Form->LoadValuesFromForm(); 203 $Form->SaveValuesToDatabase(0); 204 $Output = $this->SystemMessage('Finance', 'Zařízení vloženo.'); 205 $this->System->ModuleManager->Modules['Log']->NewRecord('Finance', 'NewDeviceInserted'); 206 return($Output); 207 } 208 209 function ShowNewDeviceHistoryForm() 210 { 211 $Form = new Form($this->System->FormManager); 212 $Form->SetClass('NewNetworkDeviceHistory'); 213 $Form->OnSubmit = '?Operation=NewDeviceHistoryInsert'; 214 $Output = $Form->ShowEditForm(); 215 return($Output); 216 } 217 218 function ShowNewDeviceHistoryInsert() 219 { 220 $Form = new Form($this->System->FormManager); 221 $Form->SetClass('NewNetworkDeviceHistory'); 222 $Form->LoadValuesFromForm(); 223 $Form->SaveValuesToDatabase(0); 224 $Output = $this->SystemMessage('Finance', 'Záznam historie zařízení vložen.'); 225 $this->System->ModuleManager->Modules['Log']->NewRecord('Finance', 'NewDeviceHistoryInserted'); 226 return($Output); 227 } 228 229 function ShowNewPaymentForm() 175 function ShowNewPaymentForm() 230 176 { 231 177 $Form = new Form($this->System->FormManager); -
trunk/Modules/IS/IS.php
r538 r540 16 16 if(!$this->System->User->CheckPermission('IS', 'Manage')) 17 17 return('Nemáte oprávnění'); 18 $this->System->FormManager->ShowRelation = true; 18 19 19 20 if(array_key_exists('a', $_GET)) $Action = $_GET['a']; -
trunk/Modules/NetworkConfigRouterOS/Generators/Queue.php
r522 r540 60 60 $Member['Name'] = RouterOSIdent($Member['Name'].'-'.$Member['Id'] ); 61 61 62 $ServiceIndex = 1; 62 63 echo('Zákazník '.$Member['Name']."\n"); 63 64 $DbResult4 = $System->Database->query('SELECT `Service`.*, `ServiceCustomerRel`.`Id` AS `RelId` FROM `ServiceCustomerRel` JOIN `Service` ON `Service`.`Id` = `ServiceCustomerRel`.`Service` '. … … 70 71 $UserMaxSpeedIn = round($Service['InternetSpeedMax'] / $InDivider) * 1000; 71 72 $UserMaxSpeedOut = round($Service['InternetSpeedMax'] / $OutDivider) * 1000; 72 $ItemsQueue[] = array('name' => $Member['Name'].'-out', 'limit-at' => $SpeedIn, 'max-limit' => $UserMaxSpeedIn, 'parent' => 'main-out'); 73 $ItemsQueue[] = array('name' => $Member['Name'].'-in', 'limit-at' => $SpeedOut, 'max-limit' => $UserMaxSpeedOut, 'parent' => 'main-in'); 73 if($ServiceIndex == 1) 74 { 75 $ItemsQueue[] = array('name' => $Member['Name'].'-out', 'limit-at' => $SpeedIn, 'max-limit' => $UserMaxSpeedIn, 'parent' => 'main-out'); 76 $ItemsQueue[] = array('name' => $Member['Name'].'-in', 'limit-at' => $SpeedOut, 'max-limit' => $UserMaxSpeedOut, 'parent' => 'main-in'); 77 } 74 78 75 79 $Filter = '(`Used` = 1) AND (`Service` = '.$Service['RelId'].')';
Note:
See TracChangeset
for help on using the changeset viewer.