Changeset 711
- Timestamp:
- Dec 29, 2014, 12:43:16 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Application/FormClasses.php
r710 r711 19 19 { 20 20 $FormManager->Classes = array( 21 'Module' => array(22 'Title' => 'Moduly',23 'Table' => 'Module',24 'Items' => array(25 'Name' => array('Type' => 'String', 'Caption' => 'Systémové jméno', 'Default' => ''),26 'Title' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => ''),27 ),28 ),29 21 'UserCustomerRel' => array( 30 22 'Title' => 'Vztahy uživatel - zákazník', … … 128 120 //'AfterInsert' => array($this, 'AfterInsertFinanceYear'), 129 121 ), 130 'Language' => array(131 'Title' => 'Jazyky',132 'Table' => 'Language',133 'DefaultSortColumn' => 'Name',134 'Items' => array(135 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''),136 ),137 ),138 'UnitOfMeasure' => array(139 'Title' => 'Měrné jednotky',140 'Table' => 'UnitOfMeasure',141 'DefaultSortColumn' => 'Name',142 'Items' => array(143 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''),144 'Unit' => array('Type' => 'String', 'Caption' => 'Jednotka', 'Default' => ''),145 ),146 ),147 122 'FinanceBillingPeriod' => array( 148 123 'Title' => 'Platební období', … … 178 153 ), 179 154 ), 180 'Country' => array(181 'Title' => 'Země',182 'Table' => 'Country',183 'DefaultSortColumn' => 'Name',184 'Items' => array(185 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''),186 ),187 ),188 155 'ServiceCategory' => array( 189 156 'Title' => 'Kategorie služeb', … … 251 218 'Filter' => '1', 252 219 ), 253 'TMember' => array( 254 'Type' => 'Reference', 220 'TContract' => array( 221 'Type' => 'Reference', 222 'Table' => 'Contract', 223 'Id' => 'Id', 224 'Name' => 'BillCode', 225 'Filter' => '1', 226 ), 227 'TMemberListSubject' => array( 228 'Type' => 'ManyToOne', 255 229 'Table' => 'Member', 256 230 'Id' => 'Id', 257 'Name' => 'Name',258 'Filter' => '1',259 ),260 'TContract' => array(261 'Type' => 'Reference',262 'Table' => 'Contract',263 'Id' => 'Id',264 'Name' => 'BillCode',265 'Filter' => '1',266 ),267 'TEmployee' => array(268 'Type' => 'Reference',269 'Table' => 'Employee',270 'Id' => 'Id',271 'Name' => 'CONCAT(FirstName, " ", SecondName)',272 'Filter' => '1',273 ),274 'TEmployeeSalaryList' => array(275 'Type' => 'ManyToOne',276 'Table' => 'EmployeeSalary',277 'Id' => 'Id',278 'Ref' => 'Employee',279 'Filter' => '1',280 ),281 'TMemberListSubject' => array(282 'Type' => 'ManyToOne',283 'Table' => 'Member',284 'Id' => 'Id',285 231 'Ref' => 'Subject', 286 232 'Filter' => '1', 287 233 ), 288 'TFinanceVAT' => array(289 'Type' => 'Reference',290 'Table' => 'FinanceVAT',291 'Id' => 'Id',292 'Name' => 'Name',293 'Filter' => '1',294 ),295 'TFinanceVATType' => array(296 'Type' => 'Reference',297 'Table' => 'FinanceVATType',298 'Id' => 'Id',299 'Name' => 'Name',300 'Filter' => '1',301 ),302 'TModule' => array(303 'Type' => 'Reference',304 'Table' => 'Module',305 'Id' => 'Id',306 'Name' => 'Name',307 'Filter' => '1',308 ),309 234 'TMapPosition' => array( 310 235 'Type' => 'Reference', 311 236 'Table' => 'MapPosition', 312 'Id' => 'Id',313 'Name' => 'Name',314 'Filter' => '1',315 ),316 'TUser' => array(317 'Type' => 'Reference',318 'Table' => 'User',319 237 'Id' => 'Id', 320 238 'Name' => 'Name', … … 343 261 'Filter' => '1', 344 262 ), 345 'TNetworkDevice' => array( 346 'Type' => 'Reference', 263 'TServiceCustomerRel' => array( 264 'Type' => 'Reference', 265 'Table' => 'ServiceCustomerRel', 266 'Id' => 'Id', 267 'Name' => 'Id', 268 'Filter' => '1', 269 ), 270 'TNetworkSegment' => array( 271 'Type' => 'Reference', 272 'Table' => 'NetworkSegment', 273 'Id' => 'Id', 274 'Name' => 'Name', 275 'Filter' => '1', 276 ), 277 'TCountry' => array( 278 'Type' => 'Reference', 279 'Table' => 'Country', 280 'Id' => 'Id', 281 'Name' => 'Name', 282 'Filter' => '1', 283 ), 284 'TFinanceTreasury' => array( 285 'Type' => 'Reference', 286 'Table' => 'FinanceTreasury', 287 'Id' => 'Id', 288 'Name' => 'Name', 289 'Filter' => '1', 290 ), 291 'TFinanceBankAccount' => array( 292 'Type' => 'Reference', 293 'Table' => 'FinanceBankAccount', 294 'Id' => 'Id', 295 'Name' => 'Comment', 296 'Filter' => '1', 297 ), 298 'TTaskList' => array( 299 'Type' => 'ManyToOne', 300 'Table' => 'Task', 301 'Id' => 'Id', 302 'Ref' => 'Group', 303 'Filter' => '1', 304 ), 305 'TTaskGroup' => array( 306 'Type' => 'Reference', 307 'Table' => 'TaskGroup', 308 'Id' => 'Id', 309 'Name' => 'Name', 310 'Filter' => '1', 311 ), 312 'TFinanceBank' => array( 313 'Type' => 'Reference', 314 'Table' => 'FinanceBank', 315 'Id' => 'Id', 316 'Name' => 'CONCAT(Name, " (", Code, ")")', 317 'Filter' => '1', 318 ), 319 'TTVGroup' => array( 320 'Type' => 'Reference', 321 'Table' => 'TVGroup', 322 'Id' => 'Id', 323 'Name' => 'Name', 324 'Filter' => '1', 325 ), 326 'TStockSerialNumberListStock' => array( 327 'Type' => 'ManyToOne', 328 'Table' => 'StockSerialNumber', 329 'Id' => 'Id', 330 'Ref' => 'Stock', 331 'Filter' => '1', 332 ), 333 'TStockSerialNumberListProduct' => array( 334 'Type' => 'ManyToOne', 335 'Table' => 'StockSerialNumber', 336 'Id' => 'Id', 337 'Ref' => 'Product', 338 'Filter' => '1', 339 ), 340 'TNetworkDeviceListProduct' => array( 341 'Type' => 'ManyToOne', 347 342 'Table' => 'NetworkDevice', 348 343 'Id' => 'Id', 349 'Name' => 'Name', 350 'Filter' => '1', 351 ), 352 'TNetworkDeviceType' => array( 353 'Type' => 'Reference', 354 'Table' => 'NetworkDeviceType', 355 'Id' => 'Id', 356 'Name' => 'Name', 357 'Filter' => '1', 358 ), 359 'TNetworkInterface' => array( 360 'Type' => 'Reference', 361 'Table' => 'NetworkInterface', 362 'View' => '(SELECT NetworkInterface.*, CONCAT(NetworkDevice.Name, "-", NetworkInterface.Name) AS DeviceName FROM NetworkInterface '. 363 'LEFT JOIN NetworkDevice ON NetworkDevice.Id = NetworkInterface.Device) AS T', 364 'Id' => 'Id', 365 'Name' => 'DeviceName', 366 'Filter' => '1', 367 ), 368 'TNetworkInterfaceType' => array( 369 'Type' => 'Reference', 370 'Table' => 'NetworkInterfaceType', 371 'Id' => 'Id', 372 'Name' => 'Name', 373 'Filter' => '1', 374 ), 375 'TServiceCustomerRel' => array( 376 'Type' => 'Reference', 344 'Ref' => 'Product', 345 'Filter' => '1', 346 ), 347 'TDocumentLine' => array( 348 'Type' => 'Reference', 349 'Table' => 'DocumentLine', 350 'Id' => 'Id', 351 'Name' => 'Name', 352 'Filter' => '1', 353 ), 354 'TFinanceYear' => array( 355 'Type' => 'Reference', 356 'Table' => 'FinanceYear', 357 'Id' => 'Id', 358 'Name' => 'Year', 359 'Filter' => '1', 360 ), 361 'TTask' => array( 362 'Type' => 'Reference', 363 'Table' => 'Task', 364 'Id' => 'Id', 365 'Name' => 'Name', 366 'Filter' => '1', 367 ), 368 'TCurrency' => array( 369 'Type' => 'Reference', 370 'Table' => 'Currency', 371 'Id' => 'Id', 372 'Name' => 'Code', 373 'Filter' => '1', 374 ), 375 'TFinanceInvoice' => array( 376 'Type' => 'Reference', 377 'Table' => 'FinanceInvoice', 378 'Id' => 'Id', 379 'Name' => 'BillCode', 380 'Filter' => '1', 381 ), 382 'TFinanceOperation' => array( 383 'Type' => 'Reference', 384 'Table' => 'FinanceOperation', 385 'Id' => 'Id', 386 'Name' => 'BillCode', 387 'Filter' => '1', 388 ), 389 'TFinanceCharge' => array( 390 'Type' => 'Reference', 391 'Table' => 'FinanceCharge', 392 'Id' => 'Id', 393 'Name' => 'Id', 394 'Filter' => '1', 395 ), 396 'TDocumentLineSequenceListYear' => array( 397 'Type' => 'ManyToOne', 398 'Table' => 'DocumentLineSequence', 399 'Id' => 'Id', 400 'Ref' => 'FinanceYear', 401 'Filter' => '1', 402 ), 403 'TDocumentLineSequenceListLine' => array( 404 'Type' => 'ManyToOne', 405 'Table' => 'DocumentLineSequence', 406 'Id' => 'Id', 407 'Ref' => 'DocumentLine', 408 'Filter' => '1', 409 ), 410 'TUserCustomerRelListUser' => array( 411 'Type' => 'ManyToOne', 412 'Table' => 'UserCustomerRel', 413 'Id' => 'Id', 414 'Ref' => 'User', 415 'Filter' => '1', 416 ), 417 'TUserCustomerRelListCustomer' => array( 418 'Type' => 'ManyToOne', 419 'Table' => 'UserCustomerRel', 420 'Id' => 'Id', 421 'Ref' => 'Customer', 422 'Filter' => '1', 423 ), 424 'TFinanceInvoiceOperationRelListInvoice' => array( 425 'Type' => 'ManyToOne', 426 'Table' => 'FinanceInvoiceOperationRel', 427 'Id' => 'Id', 428 'Ref' => 'Invoice', 429 'Filter' => '1', 430 ), 431 'TFinanceInvoiceOperationRelListOperation' => array( 432 'Type' => 'ManyToOne', 433 'Table' => 'FinanceInvoiceOperationRel', 434 'Id' => 'Id', 435 'Ref' => 'Operation', 436 'Filter' => '1', 437 ), 438 'TServiceCustomerRelListCustomer' => array( 439 'Type' => 'ManyToOne', 377 440 'Table' => 'ServiceCustomerRel', 378 441 'Id' => 'Id', 379 'Name' => 'Id', 380 'Filter' => '1', 381 ), 382 'TNetworkSegment' => array( 383 'Type' => 'Reference', 384 'Table' => 'NetworkSegment', 385 'Id' => 'Id', 386 'Name' => 'Name', 387 'Filter' => '1', 388 ), 389 'TNewsCategory' => array( 390 'Type' => 'Reference', 391 'Table' => 'NewsCategory', 392 'Id' => 'Id', 393 'Name' => 'Caption', 394 'Filter' => '1', 395 ), 396 'TCountry' => array( 397 'Type' => 'Reference', 398 'Table' => 'Country', 399 'Id' => 'Id', 400 'Name' => 'Name', 401 'Filter' => '1', 402 ), 403 'TSubject' => array( 404 'Type' => 'Reference', 405 'Table' => 'Subject', 406 'Id' => 'Id', 407 'Name' => 'Name', 408 'Filter' => '1', 409 ), 410 'TFinanceTreasury' => array( 411 'Type' => 'Reference', 412 'Table' => 'FinanceTreasury', 413 'Id' => 'Id', 414 'Name' => 'Name', 415 'Filter' => '1', 416 ), 417 'TFinanceBankAccount' => array( 418 'Type' => 'Reference', 419 'Table' => 'FinanceBankAccount', 420 'Id' => 'Id', 421 'Name' => 'Comment', 422 'Filter' => '1', 423 ), 424 'TNewsList' => array( 425 'Type' => 'ManyToOne', 426 'Table' => 'News', 427 'Id' => 'Id', 428 'Ref' => 'Category', 429 'Filter' => '1', 430 ), 431 'TTaskList' => array( 432 'Type' => 'ManyToOne', 433 'Table' => 'Task', 434 'Id' => 'Id', 435 'Ref' => 'Group', 436 'Filter' => '1', 437 ), 438 'TDeviceList' => array( 439 'Type' => 'ManyToOne', 440 'Table' => 'NetworkDevice', 441 'Id' => 'Id', 442 'Ref' => 'Member', 443 'Filter' => '1', 444 ), 445 'TDeviceListAPI' => array( 446 'Type' => 'ManyToOne', 447 'Table' => 'NetworkDevice', 448 'Id' => 'Id', 449 'Ref' => 'API', 450 'Filter' => '1', 451 ), 452 'TNetworkInterfaceWirelessListInterface' => array( 453 'Type' => 'ManyToOne', 454 'Table' => 'NetworkInterfaceWireless', 455 'Id' => 'Id', 456 'Ref' => 'NetworkInterface', 457 'Filter' => '1', 458 ), 459 'TInterfaceList' => array( 460 'Type' => 'ManyToOne', 461 'Table' => 'NetworkInterface', 462 'Id' => 'Id', 463 'Ref' => 'Device', 464 'Filter' => '1', 465 ), 466 'TProduct' => array( 467 'Type' => 'Reference', 468 'Table' => 'Product', 469 'Id' => 'Id', 470 'Name' => 'Name', 471 'Filter' => '1', 472 ), 473 'TTaskGroup' => array( 474 'Type' => 'Reference', 475 'Table' => 'TaskGroup', 476 'Id' => 'Id', 477 'Name' => 'Name', 478 'Filter' => '1', 479 ), 480 'TStock' => array( 481 'Type' => 'Reference', 482 'Table' => 'Stock', 483 'Id' => 'Id', 484 'Name' => 'Name', 485 'Filter' => '1', 486 ), 487 'TStockSerialNumber' => array( 488 'Type' => 'Reference', 442 'Ref' => 'Customer', 443 'Filter' => '1', 444 ), 445 'TServiceCustomerRelListService' => array( 446 'Type' => 'ManyToOne', 447 'Table' => 'ServiceCustomerRel', 448 'Id' => 'Id', 449 'Ref' => 'Service', 450 'Filter' => '1', 451 ), 452 'TCustomerStockSerialNumber' => array( 453 'Type' => 'ManyToOne', 489 454 'Table' => 'StockSerialNumber', 490 455 'Id' => 'Id', 491 'Name' => 'RegNumber',492 'Filter' => '1',493 ),494 'TFinanceBank' => array(495 'Type' => 'Reference',496 'Table' => 'FinanceBank',497 'Id' => 'Id',498 'Name' => 'CONCAT(Name, " (", Code, ")")',499 'Filter' => '1',500 ),501 'TUnitOfMeasure' => array(502 'Type' => 'Reference',503 'Table' => 'UnitOfMeasure',504 'Id' => 'Id',505 'Name' => 'Name',506 'Filter' => '1',507 ),508 'TLanguage' => array(509 'Type' => 'Reference',510 'Table' => 'Language',511 'Id' => 'Id',512 'Name' => 'Name',513 'Filter' => '1',514 ),515 'TAction' => array(516 'Type' => 'Reference',517 'Table' => 'Action',518 'Id' => 'Id',519 'Name' => 'Title',520 'Filter' => '1',521 ),522 'TActionIcon' => array(523 'Type' => 'Reference',524 'Table' => 'ActionIcon',525 'Id' => 'Id',526 'Name' => 'Name',527 'Filter' => '1',528 ),529 'TActionType' => array(530 'Type' => 'Reference',531 'Table' => 'ActionType',532 'Id' => 'Id',533 'Name' => 'Name',534 'Filter' => '1',535 ),536 'TActionGroup' => array(537 'Type' => 'Reference',538 'Table' => 'ActionGroup',539 'Id' => 'Id',540 'Name' => 'Name',541 'Filter' => '1',542 ),543 'TTVGroup' => array(544 'Type' => 'Reference',545 'Table' => 'TVGroup',546 'Id' => 'Id',547 'Name' => 'Name',548 'Filter' => '1',549 ),550 'TStockSerialNumberListStock' => array(551 'Type' => 'ManyToOne',552 'Table' => 'StockSerialNumber',553 'Id' => 'Id',554 'Ref' => 'Stock',555 'Filter' => '1',556 ),557 'TStockSerialNumberListProduct' => array(558 'Type' => 'ManyToOne',559 'Table' => 'StockSerialNumber',560 'Id' => 'Id',561 'Ref' => 'Product',562 'Filter' => '1',563 ),564 'TNetworkDeviceListProduct' => array(565 'Type' => 'ManyToOne',566 'Table' => 'NetworkDevice',567 'Id' => 'Id',568 'Ref' => 'Product',569 'Filter' => '1',570 ),571 'TDocumentLine' => array(572 'Type' => 'Reference',573 'Table' => 'DocumentLine',574 'Id' => 'Id',575 'Name' => 'Name',576 'Filter' => '1',577 ),578 'TFinanceYear' => array(579 'Type' => 'Reference',580 'Table' => 'FinanceYear',581 'Id' => 'Id',582 'Name' => 'Year',583 'Filter' => '1',584 ),585 'TTask' => array(586 'Type' => 'Reference',587 'Table' => 'Task',588 'Id' => 'Id',589 'Name' => 'Name',590 'Filter' => '1',591 ),592 'TCurrency' => array(593 'Type' => 'Reference',594 'Table' => 'Currency',595 'Id' => 'Id',596 'Name' => 'Code',597 'Filter' => '1',598 ),599 'TMenuItem' => array(600 'Type' => 'Reference',601 'Table' => 'MenuItem',602 'Id' => 'Id',603 'Name' => 'Name',604 'Filter' => '1',605 ),606 'TMenu' => array(607 'Type' => 'Reference',608 'Table' => 'Menu',609 'Id' => 'Id',610 'Name' => 'Name',611 'Filter' => '1',612 ),613 'TDeviceAPIType' => array(614 'Type' => 'Reference',615 'Table' => 'DeviceAPIType',616 'Id' => 'Id',617 'Name' => 'Name',618 'Filter' => '1',619 ),620 'TFinanceInvoice' => array(621 'Type' => 'Reference',622 'Table' => 'FinanceInvoice',623 'Id' => 'Id',624 'Name' => 'BillCode',625 'Filter' => '1',626 ),627 'TFinanceOperation' => array(628 'Type' => 'Reference',629 'Table' => 'FinanceOperation',630 'Id' => 'Id',631 'Name' => 'BillCode',632 'Filter' => '1',633 ),634 'TPermissionGroup' => array(635 'Type' => 'Reference',636 'Table' => 'PermissionGroup',637 'Id' => 'Id',638 'Name' => 'Description',639 'Filter' => '1',640 ),641 'TPermissionGroupAssignment' => array(642 'Type' => 'Reference',643 'Table' => 'PermissionGroupAssignment',644 'Id' => 'Id',645 'Name' => 'Id',646 'Filter' => '1',647 ),648 'TPermissionOperation' => array(649 'Type' => 'Reference',650 'Table' => 'PermissionOperation',651 'Id' => 'Id',652 'Name' => 'Id',653 'Filter' => '1',654 ),655 'TFinanceCharge' => array(656 'Type' => 'Reference',657 'Table' => 'FinanceCharge',658 'Id' => 'Id',659 'Name' => 'Id',660 'Filter' => '1',661 ),662 'TDocumentLineSequenceListYear' => array(663 'Type' => 'ManyToOne',664 'Table' => 'DocumentLineSequence',665 'Id' => 'Id',666 'Ref' => 'FinanceYear',667 'Filter' => '1',668 ),669 'TDocumentLineSequenceListLine' => array(670 'Type' => 'ManyToOne',671 'Table' => 'DocumentLineSequence',672 'Id' => 'Id',673 'Ref' => 'DocumentLine',674 'Filter' => '1',675 ),676 'TWorkListTask' => array(677 'Type' => 'ManyToOne',678 'Table' => 'Work',679 'Id' => 'Id',680 'Ref' => 'Task',681 'Filter' => '1',682 ),683 'TUserCustomerRelListUser' => array(684 'Type' => 'ManyToOne',685 'Table' => 'UserCustomerRel',686 'Id' => 'Id',687 'Ref' => 'User',688 'Filter' => '1',689 ),690 'TUserCustomerRelListCustomer' => array(691 'Type' => 'ManyToOne',692 'Table' => 'UserCustomerRel',693 'Id' => 'Id',694 'Ref' => 'Customer',695 'Filter' => '1',696 ),697 'TFinanceInvoiceOperationRelListInvoice' => array(698 'Type' => 'ManyToOne',699 'Table' => 'FinanceInvoiceOperationRel',700 'Id' => 'Id',701 'Ref' => 'Invoice',702 'Filter' => '1',703 ),704 'TFinanceInvoiceOperationRelListOperation' => array(705 'Type' => 'ManyToOne',706 'Table' => 'FinanceInvoiceOperationRel',707 'Id' => 'Id',708 'Ref' => 'Operation',709 'Filter' => '1',710 ),711 'TServiceCustomerRelListCustomer' => array(712 'Type' => 'ManyToOne',713 'Table' => 'ServiceCustomerRel',714 'Id' => 'Id',715 'Ref' => 'Customer',716 'Filter' => '1',717 ),718 'TServiceCustomerRelListService' => array(719 'Type' => 'ManyToOne',720 'Table' => 'ServiceCustomerRel',721 'Id' => 'Id',722 'Ref' => 'Service',723 'Filter' => '1',724 ),725 'TCustomerStockSerialNumber' => array(726 'Type' => 'ManyToOne',727 'Table' => 'StockSerialNumber',728 'Id' => 'Id',729 456 'Ref' => 'Location', 730 457 'Filter' => '1', 731 458 ), 732 459 'TPermissionUserAssignmentListUser' => array( 733 460 'Type' => 'ManyToOne', 734 461 'Table' => 'PermissionUserAssignment', -
trunk/Application/Version.php
r710 r711 1 1 <?php 2 2 3 $Revision = 71 0; // Subversion revision3 $Revision = 711; // Subversion revision 4 4 $DatabaseRevision = 710; // SQL structure revision 5 $ReleaseTime = strtotime('2014-12-2 1');5 $ReleaseTime = strtotime('2014-12-29'); -
trunk/Modules/Customer/Customer.php
r710 r711 54 54 ), 55 55 )); 56 $this->System->FormManager->RegisterFormType('TMember', array( 57 'Type' => 'Reference', 58 'Table' => 'Member', 59 'Id' => 'Id', 60 'Name' => 'Name', 61 'Filter' => '1', 62 )); 56 63 57 64 } -
trunk/Modules/Employee/Employee.php
r638 r711 19 19 'Title' => 'Zaměstnanci', 20 20 'Table' => 'Employee', 21 'DefaultSortColumn' => 'Name',22 21 'Items' => array( 23 22 'FirstName' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''), 24 'SecondName' => array('Type' => 'String', 'Caption' => 'Př ijímení', 'Default' => ''),25 ' PeriodicSalary' => array('Type' => 'Integer', 'Caption' => 'Pravidlená mzda', 'Default' => '0', 'Suffix' => 'Kč'),26 'ValidFrom' => array('Type' => 'Date', 'Caption' => 'Platnost od', 'Default' => ' 0'),23 'SecondName' => array('Type' => 'String', 'Caption' => 'Příjmení', 'Default' => ''), 24 'Salary' => array('Type' => 'Integer', 'Caption' => 'Pevná mzda', 'Default' => '0', 'Suffix' => 'Kč'), 25 'ValidFrom' => array('Type' => 'Date', 'Caption' => 'Platnost od', 'Default' => ''), 27 26 'ValidTo' => array('Type' => 'Date', 'Caption' => 'Platnost do', 'Default' => '', 'Null' => true), 27 'SalaryList' => array('Type' => 'TEmployeeSalaryList', 'Caption' => 'Mzda', 'Default' => ''), 28 28 ), 29 29 )); 30 $this->System->FormManager->RegisterClass('Employee Payment', array(31 'Title' => 'Výplaty zaměstna cům',32 'Table' => 'Employee Payment',30 $this->System->FormManager->RegisterClass('EmployeeSalary', array( 31 'Title' => 'Výplaty zaměstnanců', 32 'Table' => 'EmployeeSalary', 33 33 'Items' => array( 34 'Employee' => array('Type' => 'TEmployee', 'Caption' => 'Zaměstnanec', 'Default' => ''), 35 'PeriodFrom' => array('Type' => 'Date', 'Caption' => 'Období od', 'Default' => '0'), 36 'PeriodTo' => array('Type' => 'Date', 'Caption' => 'Období do', 'Default' => ''), 37 'Salary' => array('Type' => 'Integer', 'Caption' => 'Částka', 'Default' => '', 'Suffix' => 'Kč'), 38 'DatePayment' => array('Type' => 'Date', 'Caption' => 'Datum vyplacení', 'Default' => ''), 39 'WorkHours' => array('Type' => 'Integer', 'Caption' => 'Počet hodin', 'Default' => '0'), 40 'PayPerHour' => array('Type' => 'Integer', 'Caption' => 'Hodinová mzda', 'Default' => '0'), 41 'TaxAdvance' => array('Type' => 'Integer', 'Caption' => 'Záloha daně', 'Default' => '0'), 34 'Date' => array('Type' => 'Date', 'Caption' => 'Datum', 'Default' => ''), 35 'Employee' => array('Type' => 'TEmployee', 'Caption' => 'Zaměstnance', 'Default' => ''), 36 'Amount' => array('Type' => 'Integer', 'Caption' => 'Částka', 'Default' => '0', 'Suffix' => 'Kč'), 37 'Contract' => array('Type' => 'TContract', 'Caption' => 'Smlouva', 'Default' => ''), 42 38 ), 39 )); 40 $this->System->FormManager->RegisterFormType('TEmployee', array( 41 'Type' => 'Reference', 42 'Table' => 'Employee', 43 'Id' => 'Id', 44 'Name' => 'CONCAT(FirstName, " ", SecondName)', 45 'Filter' => '1', 46 )); 47 $this->System->FormManager->RegisterFormType('TEmployeeSalaryList', array( 48 'Type' => 'ManyToOne', 49 'Table' => 'EmployeeSalary', 50 'Id' => 'Id', 51 'Ref' => 'Employee', 52 'Filter' => '1', 43 53 )); 44 45 54 } 46 55 } -
trunk/Modules/Finance/Finance.php
r710 r711 507 507 'BeforeInsert' => array($this, 'BeforeInsertFinanceOperation'), 508 508 )); 509 $this->System->FormManager->RegisterClass('Employee', array( 510 'Title' => 'Zaměstnanci', 511 'Table' => 'Employee', 512 'Items' => array( 513 'FirstName' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''), 514 'SecondName' => array('Type' => 'String', 'Caption' => 'Příjmení', 'Default' => ''), 515 'Salary' => array('Type' => 'Integer', 'Caption' => 'Pevná mzda', 'Default' => '0', 'Suffix' => 'Kč'), 516 'ValidFrom' => array('Type' => 'Date', 'Caption' => 'Platnost od', 'Default' => ''), 517 'ValidTo' => array('Type' => 'Date', 'Caption' => 'Platnost do', 'Default' => '', 'Null' => true), 518 'SalaryList' => array('Type' => 'TEmployeeSalaryList', 'Caption' => 'Mzda', 'Default' => ''), 519 ), 520 )); 521 $this->System->FormManager->RegisterClass('EmployeeSalary', array( 522 'Title' => 'Výplaty zaměstnanců', 523 'Table' => 'EmployeeSalary', 524 'Items' => array( 525 'Date' => array('Type' => 'Date', 'Caption' => 'Datum', 'Default' => ''), 526 'Employee' => array('Type' => 'TEmployee', 'Caption' => 'Zaměstnance', 'Default' => ''), 527 'Amount' => array('Type' => 'Integer', 'Caption' => 'Částka', 'Default' => '0', 'Suffix' => 'Kč'), 528 'Contract' => array('Type' => 'TContract', 'Caption' => 'Smlouva', 'Default' => ''), 529 ), 530 )); 509 $this->System->FormManager->RegisterFormType('TFinanceVAT', array( 510 'Type' => 'Reference', 511 'Table' => 'FinanceVAT', 512 'Id' => 'Id', 513 'Name' => 'Name', 514 'Filter' => '1', 515 )); 516 $this->System->FormManager->RegisterFormType('TFinanceVATType', array( 517 'Type' => 'Reference', 518 'Table' => 'FinanceVATType', 519 'Id' => 'Id', 520 'Name' => 'Name', 521 'Filter' => '1', 522 )); 523 531 524 532 525 $this->System->AddModule(new Bill($this->System)); -
trunk/Modules/IS/IS.php
r706 r711 770 770 ), 771 771 )); 772 $this->System->FormManager->RegisterFormType('TMenuItem', array( 773 'Type' => 'Reference', 774 'Table' => 'MenuItem', 775 'Id' => 'Id', 776 'Name' => 'Name', 777 'Filter' => '1', 778 )); 779 $this->System->FormManager->RegisterFormType('TMenu', array( 780 'Type' => 'Reference', 781 'Table' => 'Menu', 782 'Id' => 'Id', 783 'Name' => 'Name', 784 'Filter' => '1', 785 )); 772 786 } 773 787 -
trunk/Modules/Network/Network.php
r679 r711 341 341 ), 342 342 )); 343 $this->System->FormManager->RegisterFormType('TNetworkDevice', array( 344 'Type' => 'Reference', 345 'Table' => 'NetworkDevice', 346 'Id' => 'Id', 347 'Name' => 'Name', 348 'Filter' => '1', 349 )); 350 $this->System->FormManager->RegisterFormType('TNetworkDeviceType', array( 351 'Type' => 'Reference', 352 'Table' => 'NetworkDeviceType', 353 'Id' => 'Id', 354 'Name' => 'Name', 355 'Filter' => '1', 356 )); 357 $this->System->FormManager->RegisterFormType('TNetworkInterface', array( 358 'Type' => 'Reference', 359 'Table' => 'NetworkInterface', 360 'View' => '(SELECT NetworkInterface.*, CONCAT(NetworkDevice.Name, "-", NetworkInterface.Name) AS DeviceName FROM NetworkInterface '. 361 'LEFT JOIN NetworkDevice ON NetworkDevice.Id = NetworkInterface.Device) AS T', 362 'Id' => 'Id', 363 'Name' => 'DeviceName', 364 'Filter' => '1', 365 )); 366 $this->System->FormManager->RegisterFormType('TNetworkInterfaceType', array( 367 'Type' => 'Reference', 368 'Table' => 'NetworkInterfaceType', 369 'Id' => 'Id', 370 'Name' => 'Name', 371 'Filter' => '1', 372 )); 373 $this->System->FormManager->RegisterFormType('TDeviceList', array( 374 'Type' => 'ManyToOne', 375 'Table' => 'NetworkDevice', 376 'Id' => 'Id', 377 'Ref' => 'Member', 378 'Filter' => '1', 379 )); 380 $this->System->FormManager->RegisterFormType('TDeviceListAPI', array( 381 'Type' => 'ManyToOne', 382 'Table' => 'NetworkDevice', 383 'Id' => 'Id', 384 'Ref' => 'API', 385 'Filter' => '1', 386 )); 387 $this->System->FormManager->RegisterFormType('TDeviceAPIType', array( 388 'Type' => 'Reference', 389 'Table' => 'DeviceAPIType', 390 'Id' => 'Id', 391 'Name' => 'Name', 392 'Filter' => '1', 393 )); 394 $this->System->FormManager->RegisterFormType('TNetworkInterfaceWirelessListInterface', array( 395 'Type' => 'ManyToOne', 396 'Table' => 'NetworkInterfaceWireless', 397 'Id' => 'Id', 398 'Ref' => 'NetworkInterface', 399 'Filter' => '1', 400 )); 401 $this->System->FormManager->RegisterFormType('TInterfaceList', array( 402 'Type' => 'ManyToOne', 403 'Table' => 'NetworkInterface', 404 'Id' => 'Id', 405 'Ref' => 'Device', 406 'Filter' => '1', 407 )); 343 408 } 344 409 -
trunk/Modules/News/News.php
r660 r711 66 66 ), 67 67 )); 68 $this->System->FormManager->RegisterFormType('TNewsCategory', array( 69 'Type' => 'Reference', 70 'Table' => 'NewsCategory', 71 'Id' => 'Id', 72 'Name' => 'Caption', 73 'Filter' => '1', 74 )); 75 $this->System->FormManager->RegisterFormType('TNewsList', array( 76 'Type' => 'ManyToOne', 77 'Table' => 'News', 78 'Id' => 'Id', 79 'Ref' => 'Category', 80 'Filter' => '1', 81 )); 82 68 83 if($this->System->ModuleManager->ModulePresent('Search')) 69 84 { -
trunk/Modules/Stock/Stock.php
r710 r711 115 115 'Filter' => '1', 116 116 )); 117 $this->System->FormManager->RegisterFormType('TProduct', array( 118 'Type' => 'Reference', 119 'Table' => 'Product', 120 'Id' => 'Id', 121 'Name' => 'Name', 122 'Filter' => '1', 123 )); 124 $this->System->FormManager->RegisterFormType('TStock', array( 125 'Type' => 'Reference', 126 'Table' => 'Stock', 127 'Id' => 'Id', 128 'Name' => 'Name', 129 'Filter' => '1', 130 )); 131 $this->System->FormManager->RegisterFormType('TStockSerialNumber', array( 132 'Type' => 'Reference', 133 'Table' => 'StockSerialNumber', 134 'Id' => 'Id', 135 'Name' => 'RegNumber', 136 'Filter' => '1', 137 )); 117 138 } 118 139 -
trunk/Modules/Subject/Subject.php
r689 r711 100 100 ), 101 101 )); 102 $this->System->FormManager->RegisterFormType('TSubject', array( 103 'Type' => 'Reference', 104 'Table' => 'Subject', 105 'Id' => 'Id', 106 'Name' => 'Name', 107 'Filter' => '1', 108 )); 102 109 } 103 110 } -
trunk/Modules/System/System.php
r623 r711 182 182 $this->System->RegisterPage('module', 'PageModules'); 183 183 $this->System->FormManager->RegisterClass('Action', array( 184 'Title' => 'Akce', 185 'Table' => 'Action', 186 'Items' => array( 187 //'Name' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => ''), 188 'Title' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => ''), 189 'URL' => array('Type' => 'Hyperlink', 'Caption' => 'Odkaz', 'Default' => ''), 190 'Icon' => array('Type' => 'TActionIcon', 'Caption' => 'Ikony', 'Default' => '', 'Null' => true), 191 'Type' => array('Type' => 'TActionType', 'Caption' => 'Typ', 'Default' => ''), 192 'Group' => array('Type' => 'TActionGroup', 'Caption' => 'Skupina', 'Default' => '', 'Null' => true), 193 'PermissionOperation' => array('Type' => 'TPermissionOperation', 'Caption' => 'Operace oprávnění', 'Default' => ''), 194 'Enable' => array('Type' => 'Boolean', 'Caption' => 'Povolení', 'Default' => ''), 195 ), 196 )); 197 $this->System->FormManager->RegisterClass('ActionIcon', array( 198 'Title' => 'Ikony akcí', 199 'Table' => 'ActionIcon', 200 'Items' => array( 201 'Name' => array('Type' => 'Image', 'Caption' => 'Název souboru', 'Default' => ''), 202 'Items' => array('Type' => 'TActionListIcon', 'Caption' => 'Položky', 'Default' => ''), 203 ), 204 )); 205 $this->System->FormManager->RegisterClass('ActionGroup', array( 206 'Title' => 'Skupiny akcí', 207 'Table' => 'ActionGroup', 208 'Items' => array( 209 'Name' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => ''), 210 'Items' => array('Type' => 'TActionListGroup', 'Caption' => 'Položky', 'Default' => ''), 211 ), 212 )); 213 $this->System->FormManager->RegisterClass('ActionType', array( 214 'Title' => 'Typy akcí', 215 'Table' => 'ActionType', 216 'Items' => array( 217 'Name' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => ''), 218 'Items' => array('Type' => 'TActionListType', 'Caption' => 'Položky', 'Default' => ''), 219 ), 220 )); 221 184 'Title' => 'Akce', 185 'Table' => 'Action', 186 'Items' => array( 187 //'Name' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => ''), 188 'Title' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => ''), 189 'URL' => array('Type' => 'Hyperlink', 'Caption' => 'Odkaz', 'Default' => ''), 190 'Icon' => array('Type' => 'TActionIcon', 'Caption' => 'Ikony', 'Default' => '', 'Null' => true), 191 'Type' => array('Type' => 'TActionType', 'Caption' => 'Typ', 'Default' => ''), 192 'Group' => array('Type' => 'TActionGroup', 'Caption' => 'Skupina', 'Default' => '', 'Null' => true), 193 'PermissionOperation' => array('Type' => 'TPermissionOperation', 'Caption' => 'Operace oprávnění', 'Default' => ''), 194 'Enable' => array('Type' => 'Boolean', 'Caption' => 'Povolení', 'Default' => ''), 195 ), 196 )); 197 $this->System->FormManager->RegisterClass('ActionIcon', array( 198 'Title' => 'Ikony akcí', 199 'Table' => 'ActionIcon', 200 'Items' => array( 201 'Name' => array('Type' => 'Image', 'Caption' => 'Název souboru', 'Default' => ''), 202 'Items' => array('Type' => 'TActionListIcon', 'Caption' => 'Položky', 'Default' => ''), 203 ), 204 )); 205 $this->System->FormManager->RegisterClass('ActionGroup', array( 206 'Title' => 'Skupiny akcí', 207 'Table' => 'ActionGroup', 208 'Items' => array( 209 'Name' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => ''), 210 'Items' => array('Type' => 'TActionListGroup', 'Caption' => 'Položky', 'Default' => ''), 211 ), 212 )); 213 $this->System->FormManager->RegisterClass('ActionType', array( 214 'Title' => 'Typy akcí', 215 'Table' => 'ActionType', 216 'Items' => array( 217 'Name' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => ''), 218 'Items' => array('Type' => 'TActionListType', 'Caption' => 'Položky', 'Default' => ''), 219 ), 220 )); 221 $this->System->FormManager->RegisterClass('Module', array( 222 'Title' => 'Moduly', 223 'Table' => 'Module', 224 'Items' => array( 225 'Name' => array('Type' => 'String', 'Caption' => 'Systémové jméno', 'Default' => ''), 226 'Title' => array('Type' => 'String', 'Caption' => 'Název', 'Default' => ''), 227 ), 228 )); 229 $this->System->FormManager->RegisterClass('Language', array( 230 'Title' => 'Jazyky', 231 'Table' => 'Language', 232 'DefaultSortColumn' => 'Name', 233 'Items' => array( 234 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''), 235 ), 236 )); 237 $this->System->FormManager->RegisterClass('UnitOfMeasure', array( 238 'Title' => 'Měrné jednotky', 239 'Table' => 'UnitOfMeasure', 240 'DefaultSortColumn' => 'Name', 241 'Items' => array( 242 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''), 243 'Unit' => array('Type' => 'String', 'Caption' => 'Jednotka', 'Default' => ''), 244 ), 245 )); 246 $this->System->FormManager->RegisterClass('Country', array( 247 'Title' => 'Země', 248 'Table' => 'Country', 249 'DefaultSortColumn' => 'Name', 250 'Items' => array( 251 'Name' => array('Type' => 'String', 'Caption' => 'Jméno', 'Default' => ''), 252 ), 253 )); 254 $this->System->FormManager->RegisterFormType('TUnitOfMeasure', array( 255 'Type' => 'Reference', 256 'Table' => 'UnitOfMeasure', 257 'Id' => 'Id', 258 'Name' => 'Name', 259 'Filter' => '1', 260 )); 261 $this->System->FormManager->RegisterFormType('TLanguage', array( 262 'Type' => 'Reference', 263 'Table' => 'Language', 264 'Id' => 'Id', 265 'Name' => 'Name', 266 'Filter' => '1', 267 )); 268 $this->System->FormManager->RegisterFormType('TAction', array( 269 'Type' => 'Reference', 270 'Table' => 'Action', 271 'Id' => 'Id', 272 'Name' => 'Title', 273 'Filter' => '1', 274 )); 275 $this->System->FormManager->RegisterFormType('TActionIcon', array( 276 'Type' => 'Reference', 277 'Table' => 'ActionIcon', 278 'Id' => 'Id', 279 'Name' => 'Name', 280 'Filter' => '1', 281 )); 282 $this->System->FormManager->RegisterFormType('TActionType', array( 283 'Type' => 'Reference', 284 'Table' => 'ActionType', 285 'Id' => 'Id', 286 'Name' => 'Name', 287 'Filter' => '1', 288 )); 289 $this->System->FormManager->RegisterFormType('TActionGroup', array( 290 'Type' => 'Reference', 291 'Table' => 'ActionGroup', 292 'Id' => 'Id', 293 'Name' => 'Name', 294 'Filter' => '1', 295 )); 296 $this->System->FormManager->RegisterFormType('TModule', array( 297 'Type' => 'Reference', 298 'Table' => 'Module', 299 'Id' => 'Id', 300 'Name' => 'Name', 301 'Filter' => '1', 302 )); 303 222 304 //$this->Manager->OnModuleChange = array($this, 'ModuleChange'); 223 305 //$this->LoadFromDatabase(); -
trunk/Modules/Task/Task.php
r660 r711 60 60 ), 61 61 )); 62 62 $this->System->FormManager->RegisterFormType('TWorkListTask', array( 63 'Type' => 'ManyToOne', 64 'Table' => 'Work', 65 'Id' => 'Id', 66 'Ref' => 'Task', 67 'Filter' => '1', 68 )); 69 63 70 } 64 71 } -
trunk/Modules/User/User.php
r703 r711 657 657 ), 658 658 )); 659 659 $this->System->FormManager->RegisterFormType('TUser', array( 660 'Type' => 'Reference', 661 'Table' => 'User', 662 'Id' => 'Id', 663 'Name' => 'Name', 664 'Filter' => '1', 665 )); 666 $this->System->FormManager->RegisterFormType('TPermissionGroup', array( 667 'Type' => 'Reference', 668 'Table' => 'PermissionGroup', 669 'Id' => 'Id', 670 'Name' => 'Description', 671 'Filter' => '1', 672 )); 673 $this->System->FormManager->RegisterFormType('TPermissionGroupAssignment', array( 674 'Type' => 'Reference', 675 'Table' => 'PermissionGroupAssignment', 676 'Id' => 'Id', 677 'Name' => 'Id', 678 'Filter' => '1', 679 )); 680 $this->System->FormManager->RegisterFormType('TPermissionOperation', array( 681 'Type' => 'Reference', 682 'Table' => 'PermissionOperation', 683 'Id' => 'Id', 684 'Name' => 'Id', 685 'Filter' => '1', 686 )); 687 660 688 } 661 689
Note:
See TracChangeset
for help on using the changeset viewer.