Changeset 540 for trunk/Modules/Finance/Manage.php
- Timestamp:
- May 28, 2013, 10:19:39 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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);
Note:
See TracChangeset
for help on using the changeset viewer.