Merged idempiere/idempiere into development
This commit is contained in:
commit
f584dcc1c5
|
@ -0,0 +1,483 @@
|
|||
-- IDEMPIERE-234 Move some buttons back to window - DocAction/RecordID/Posted/CreateFrom + Buttons that are mandatory or very used on each window
|
||||
-- Move to toolbar
|
||||
update ad_column set istoolbarbutton='Y' where ad_column_id=55415 -- Asset / Asset Balances / Update depreciation
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='Y' where ad_column_id=200846 -- Online Transaction History / Online Transaction History / Record ID
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='Y' where ad_column_id=200807 -- Payment Transaction / Payment Transaction / Void It
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='Y' where ad_column_id=12113 -- Return to Vendor / Return to Vendor / Create Package
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='Y' where ad_column_id=206766 -- Sales Order / Order / Online Shipping Sales Order Rate Inquiry
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='Y' where ad_column_id=201197 -- Shipment (Customer) / MPS Lines / Create lines from
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='Y' where ad_column_id=12113 -- Shipment (Customer) / Shipment / Create Package
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='Y' where ad_column_id=201197 -- Shipment Package / MPS Lines / Create lines from
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='Y' where ad_column_id=202145 -- Shipper / Shipper / Shipper Create From ...
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='Y' where ad_column_id=205538 -- Shipper Configuration / Shipper / Shipper Copy From ...
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='Y' where ad_column_id=205538 -- Shipping Processor Configuration / Shipper / Shipper Copy From ...
|
||||
;
|
||||
|
||||
-- Move to window
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=11873 -- Access Audit / Access Audit / Record ID
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5103 -- Accounting Fact Details / Accounting / Record ID
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=53833 -- Activity Control Report / Activity Control / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=53817 -- Activity Control Report / Activity Control / Process Cost Collector
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=54193 -- ASP Modules / Level / ASP Generate Level
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=54116 -- ASP Modules / Tab / ASP Generate Fields
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=59452 -- Asset / Activation/Addition / Asset Addition Process
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=59480 -- Asset Activation/Disposal / Asset Disposal/Activation / Asset Disposed Process
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=59492 -- Asset Activation/Disposal / Asset Disposal/Activation / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=59452 -- Asset Addition / Addition / Asset Addition Process
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=59477 -- Asset Addition / Addition / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=59346 -- Asset Change Account / Asset Change account / Asset Transfer Process
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=59348 -- Asset Change Account / Asset Change account / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=2097 -- Attachment / Attachment / Record ID
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5515 -- Bank Statement / Bank Statement / Create lines from
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=4925 -- Bank Statement / Bank Statement / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=12461 -- Bank Statement / Bank Statement / Process Statement
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=200993 -- Broadcast Message / Broadcast Message / Publish Broadcast message
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=200992 -- Broadcast Message / Broadcast Message / Test Brodcast Message
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5958 -- Broadcast Message / Message Log / Record ID
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5000 -- Business Partner Group / Accounting / Copy Accounts
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5944 -- Calendar Year and Period / Period / Open/Close All
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=2355 -- Calendar Year and Period / Period Control / Open/Close
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=2410 -- Calendar Year and Period / Year / Create Periods
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=8817 -- Change Audit / Change Audit / Record ID
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=14083 -- Client / Client / Test EMail
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5683 -- Commission / Commission / Generate Commission
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5814 -- Commission Run / Commission Run / Create Invoice
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=53833 -- Cost Collector / Collector Cost / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=53817 -- Cost Collector / Collector Cost / Process Cost Collector
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5352 -- Customer Return / Customer Return / Create lines from
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=6534 -- Customer Return / Customer Return / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=4324 -- Customer Return / Customer Return / Process Shipment
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=208381 -- Customer RMA / Customer RMA / Create lines from
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=52006 -- Customer RMA / Customer RMA / Create Order From RMA
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=12120 -- Customer RMA / Customer RMA / Process RMA
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=53891 -- Distribution Order / Distribution Order / Process Distribution Order
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=12567 -- Dunning Run / Dunning Run / Create Dunning Run
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=12282 -- Expense Report / Expense Report / Process Expenses
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5998 -- Financial Report / Financial Report / Create Report
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=54092 -- Financial Report / Financial Report / Create Report (Jasper)
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=11653 -- GL Distribution / Distribution / Verify
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=1629 -- GL Journal / Journal / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=1789 -- GL Journal / Journal / Process Journal
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=12076 -- GL Journal Batch / Batch / Process Batch
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=1629 -- GL Journal Batch / Journal / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=200509 -- GL Journal Generator / GL Journal Generator / Generate GL Journal
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=56344 -- House Keeping / House Keeping / House Keeping
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=6535 -- Internal Use Inventory / Internal Use / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=12412 -- Internal Use Inventory / Internal Use / Process Inventory Count
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=6536 -- Inventory Move / Move / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=10797 -- Inventory Move / Move / Process Movements
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=4649 -- Invoice (Customer) / Invoice / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=3495 -- Invoice (Customer) / Invoice / Process Invoice
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=10324 -- Invoice (Customer) / Payment Schedule / Validate
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5351 -- Invoice (Vendor) / Invoice / Create lines from
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=4649 -- Invoice (Vendor) / Invoice / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=3495 -- Invoice (Vendor) / Invoice / Process Invoice
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=14191 -- Invoice (Vendor) / Landed Costs / Distribute Costs
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=6512 -- Invoice (Vendor) / Matched Receipts / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=10324 -- Invoice (Vendor) / Payment Schedule / Validate
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=10324 -- Invoice Payment Schedule / Payment Schedule / Validate
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=6574 -- Language / Language / Language Maintenance
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=53645 -- Manufacturing Order / Manufacturing Order / Process Manufacturing Order
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=6512 -- Matched Invoices / Match Invoice / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=6528 -- Matched Purchase Orders / Match PO / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5352 -- Material Receipt / Material Receipt / Create lines from
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=6534 -- Material Receipt / Material Receipt / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=4324 -- Material Receipt / Material Receipt / Process Shipment
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=12449 -- Move Confirmation / Confirmation / Process Confirmation
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5958 -- MRP Notice (all) / Notice / Record ID
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5958 -- MRP Notice / Notice / Record ID
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=57937 -- My Unprocessed Documents / Unprocessed Documents / Record ID
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5958 -- Notice / Notice / Record ID
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=50177 -- Pack In / PackIn / PackIn
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=50093 -- Pack Out / Export Package / Export Package
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=4712 -- Parts and BOMs / Part / Verify BOM Structure
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5356 -- Payment / Payment / Online Process
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5042 -- Payment / Payment / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5497 -- Payment / Payment / Process Payment
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5042 -- Payment Batch / Payment / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5650 -- Payment Selection / Payment Selection / Create From ...
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5624 -- Payment Selection / Payment Selection / Prepare Payment
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=10332 -- Payment Term / Payment Term / Validate
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=3817 -- Physical Inventory / Inventory Count / Create Inventory Count List
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=6535 -- Physical Inventory / Inventory Count / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=12412 -- Physical Inventory / Inventory Count / Process Inventory Count
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=59449 -- Post Depreciation Entry / Create Depreciation Entry / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=59447 -- Post Depreciation Entry / Create Depreciation Entry / Process Depreciation Entry
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=3744 -- Price List / Version / Create Price List
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=200321 -- Process Audit / Log / Record ID
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=4712 -- Product / Product / Verify BOM Structure
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5124 -- Product Category / Accounting / Copy Accounts
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=61940 -- Production (Single Product) / Production / Complete Production
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=61943 -- Production (Single Product) / Production / Create/Update Production lines
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=6537 -- Production (Single Product) / Production / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=9847 -- Project (Lines/Issues) / Issues / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=8757 -- Project / Project / Set Project Type
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=6528 -- Purchase Order / Matching / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=60149 -- Purchase Order / Payment Schedule / Validate
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=4650 -- Purchase Order / Purchase Order / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=2171 -- Purchase Order / Purchase Order / Process Order
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=8689 -- Recurring / Recurring / Start Process
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=13079 -- Request (all) / Request / Record ID
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=13079 -- Request / Request / Record ID
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=11482 -- Requisition / Requisition / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=11480 -- Requisition / Requisition / Process Requisition
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5352 -- Return to Vendor / Return to Vendor / Create lines from
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=6534 -- Return to Vendor / Return to Vendor / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=4324 -- Return to Vendor / Return to Vendor / Process Shipment
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=59431 -- Revaluation Asset / Revaluation Asset / Asset Reval Process
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=59421 -- Revaluation Asset / Revaluation Asset / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=8589 -- Role Data Access / Record Access / Record ID
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=4650 -- Sales Order / Order / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=2171 -- Sales Order / Order / Process Order
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=60149 -- Sales Order / Payment Schedule / Validate
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=8817 -- Session Audit / Change Audit / Record ID
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=12330 -- Ship/Receipt Confirm / Confirmation / Process Confirmation
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=201078 -- Shipment (Customer) / Packages / Online Shipping Rate Inquiry
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=201070 -- Shipment (Customer) / Packages / Process Shipment Online
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5352 -- Shipment (Customer) / Shipment / Create lines from
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=6534 -- Shipment (Customer) / Shipment / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=4324 -- Shipment (Customer) / Shipment / Process Shipment
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=201078 -- Shipment Package / Packages / Online Shipping Rate Inquiry
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=201070 -- Shipment Package / Packages / Process Shipment Online
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=4712 -- Spare parts / Product / Verify BOM Structure
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=128 -- Table and Column / Column / Column Encryption
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=6483 -- Table and Column / Column / Synchronize Column
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=3893 -- Test / Test / Process Now
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=10031 -- Tree / Tree / Verify Tree
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=56347 -- UnPosted Documents / Unposted Documents / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=12341 -- UnPosted Documents / Unposted Documents / Record ID
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=57937 -- Unprocessed Documents (All) / Unprocessed Documents / Record ID
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=208381 -- Vendor RMA / Vendor RMA / Create lines from
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=52006 -- Vendor RMA / Vendor RMA / Create Order From RMA
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=12120 -- Vendor RMA / Vendor RMA / Process RMA
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=12313 -- View Allocation / Allocation / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=12319 -- View Allocation / Allocation / Process Allocation
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=15514 -- View Chat / Chat / Record ID
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=6487 -- Window, Tab Field / Tab / Create Fields
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=11555 -- Workflow / Workflow / Validate Workflow
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=10448 -- Workflow Activities (all) / Activity / Manage Activity
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=11545 -- Workflow Activities (all) / Activity / Record ID
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=10448 -- Workflow Process / Activity / Manage Activity
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=11545 -- Workflow Process / Activity / Record ID
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=11683 -- Workflow Process / Event / Record ID
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=10457 -- Workflow Process / Process / Manage Process
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=11549 -- Workflow Process / Process / Record ID
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201301251443_IDEMPIERE-234.sql') FROM dual
|
||||
;
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
-- Jan 25, 2013 5:26:22 PM PST
|
||||
-- IDEMPIERE-594 Improve positioning on windows
|
||||
INSERT INTO AD_SysConfig (AD_SysConfig_ID,EntityType,ConfigurationLevel,Value,Description,AD_SysConfig_UU,Created,Updated,AD_Client_ID,AD_Org_ID,CreatedBy,IsActive,UpdatedBy,Name) VALUES (200025,'D','C','N','Show Action Name on DocAction button','ee66f3e4-8fed-4591-97dd-ae1ba1219fdc',TO_DATE('2013-01-25 17:26:21','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-01-25 17:26:21','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Y',100,'DOCACTIONBUTTON_SHOWACTIONNAME')
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:26:37 PM PST
|
||||
-- IDEMPIERE-594 Improve positioning on windows
|
||||
UPDATE AD_Element SET Name='Action',Updated=TO_DATE('2013-01-25 17:26:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=287
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:26:38 PM PST
|
||||
-- IDEMPIERE-594 Improve positioning on windows
|
||||
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=287
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:26:38 PM PST
|
||||
-- IDEMPIERE-594 Improve positioning on windows
|
||||
UPDATE AD_Column SET ColumnName='DocAction', Name='Action', Description='The targeted status of the document', Help='You find the current status in the Document Status field. The options are listed in a popup' WHERE AD_Element_ID=287
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:26:38 PM PST
|
||||
-- IDEMPIERE-594 Improve positioning on windows
|
||||
UPDATE AD_Process_Para SET ColumnName='DocAction', Name='Action', Description='The targeted status of the document', Help='You find the current status in the Document Status field. The options are listed in a popup', AD_Element_ID=287 WHERE UPPER(ColumnName)='DOCACTION' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:26:38 PM PST
|
||||
-- IDEMPIERE-594 Improve positioning on windows
|
||||
UPDATE AD_Process_Para SET ColumnName='DocAction', Name='Action', Description='The targeted status of the document', Help='You find the current status in the Document Status field. The options are listed in a popup' WHERE AD_Element_ID=287 AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:26:38 PM PST
|
||||
-- IDEMPIERE-594 Improve positioning on windows
|
||||
UPDATE AD_InfoColumn SET ColumnName='DocAction', Name='Action', Description='The targeted status of the document', Help='You find the current status in the Document Status field. The options are listed in a popup' WHERE AD_Element_ID=287 AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:26:38 PM PST
|
||||
-- IDEMPIERE-594 Improve positioning on windows
|
||||
UPDATE AD_Field SET Name='Action', Description='The targeted status of the document', Help='You find the current status in the Document Status field. The options are listed in a popup' WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=287) AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:26:38 PM PST
|
||||
-- IDEMPIERE-594 Improve positioning on windows
|
||||
UPDATE AD_PrintFormatItem pi SET PrintName='Doc Action', Name='Action' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=pi.AD_Column_ID AND c.AD_Element_ID=287)
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201301251726_IDEMPIERE-594_DocAction.sql') FROM dual
|
||||
;
|
||||
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,26 @@
|
|||
-- Jan 26, 2013 12:25:54 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
-- Hide Dunning Run - Send It button
|
||||
UPDATE AD_Field SET IsDisplayed='N', IsDisplayedGrid='N',Updated=TO_DATE('2013-01-26 12:25:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10618
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 12:32:10 PM PST
|
||||
-- Hide Access Audit Window
|
||||
UPDATE AD_Tab SET IsInsertRecord='N', IsActive='N',Updated=TO_DATE('2013-01-26 12:32:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53137
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 12:32:16 PM PST
|
||||
UPDATE AD_Tab SET IsActive='N',Updated=TO_DATE('2013-01-26 12:32:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=651
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 12:32:31 PM PST
|
||||
UPDATE AD_Menu SET IsActive='N',Updated=TO_DATE('2013-01-26 12:32:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=475
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 12:32:37 PM PST
|
||||
UPDATE AD_Window SET IsActive='N',Updated=TO_DATE('2013-01-26 12:32:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=326
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201301261235_IDEMPIERE-362.sql') FROM dual
|
||||
;
|
||||
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,493 @@
|
|||
-- Jan 26, 2013 4:58:21 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=150,Updated=TO_DATE('2013-01-26 16:58:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2649
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:21 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=160,Updated=TO_DATE('2013-01-26 16:58:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2661
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:21 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=170,Updated=TO_DATE('2013-01-26 16:58:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2655
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:21 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=180,Updated=TO_DATE('2013-01-26 16:58:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2657
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=190,Updated=TO_DATE('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=12347
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=200,Updated=TO_DATE('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=12348
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=210,Updated=TO_DATE('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2656
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=220,Updated=TO_DATE('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2658
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=230,Updated=TO_DATE('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3825
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=240,Updated=TO_DATE('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4860
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=250,Updated=TO_DATE('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4861
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=260,Updated=TO_DATE('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4862
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=270,Updated=TO_DATE('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56527
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=280,Updated=TO_DATE('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2662
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=290,Updated=TO_DATE('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3842
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=300,Updated=TO_DATE('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3841
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=310,Updated=TO_DATE('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5132
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=320,Updated=TO_DATE('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5133
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=330,Updated=TO_DATE('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3845
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=340,Updated=TO_DATE('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3844
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=350,Updated=TO_DATE('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3839
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=360,Updated=TO_DATE('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3840
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=370,Updated=TO_DATE('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3836
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=380,Updated=TO_DATE('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3851
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=390,Updated=TO_DATE('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2654
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=400,Updated=TO_DATE('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3835
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=410,Updated=TO_DATE('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3823
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=0, IsDisplayed='N', XPosition=1,Updated=TO_DATE('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=58783
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=0, IsDisplayed='N', XPosition=1,Updated=TO_DATE('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4092
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=0, IsDisplayed='N', XPosition=1,Updated=TO_DATE('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4093
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=0, IsDisplayed='N', XPosition=1,Updated=TO_DATE('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4094
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=0, IsDisplayed='N', XPosition=1,Updated=TO_DATE('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4095
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=0, IsDisplayed='N', XPosition=1,Updated=TO_DATE('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5134
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=0, IsDisplayed='N', XPosition=1,Updated=TO_DATE('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=12349
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=0, IsDisplayed='N', XPosition=1,Updated=TO_DATE('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2660
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:59:15 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=0, IsDisplayed='N', XPosition=1,Updated=TO_DATE('2013-01-26 16:59:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=58785
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:59:50 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Menu SET IsActive='N',Updated=TO_DATE('2013-01-26 16:59:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=186
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:59:53 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Window SET IsActive='N',Updated=TO_DATE('2013-01-26 16:59:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=174
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:59:53 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_WF_Node SET Description='Revenue Recognition Rules', Name='Revenue Recognition', IsActive='N',Updated=TO_DATE('2013-01-26 16:59:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_WF_Node_ID=50098
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:57 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=160,Updated=TO_DATE('2013-01-26 17:00:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1025
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:57 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=170,Updated=TO_DATE('2013-01-26 17:00:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2587
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:57 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=180,Updated=TO_DATE('2013-01-26 17:00:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5888
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:57 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=190,Updated=TO_DATE('2013-01-26 17:00:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=6129
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:57 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=200,Updated=TO_DATE('2013-01-26 17:00:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1032
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:57 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=210,Updated=TO_DATE('2013-01-26 17:00:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1031
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:57 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=220,Updated=TO_DATE('2013-01-26 17:00:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201343
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:57 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=230,Updated=TO_DATE('2013-01-26 17:00:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=6841
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:57 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=240,Updated=TO_DATE('2013-01-26 17:00:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10411
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:57 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=250,Updated=TO_DATE('2013-01-26 17:00:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1026
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:57 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=260,Updated=TO_DATE('2013-01-26 17:00:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200294
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:57 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=270,Updated=TO_DATE('2013-01-26 17:00:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200295
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=280,Updated=TO_DATE('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200296
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=290,Updated=TO_DATE('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200297
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=300,Updated=TO_DATE('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7646
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=310,Updated=TO_DATE('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1319
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=320,Updated=TO_DATE('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1320
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=330,Updated=TO_DATE('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1321
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=340,Updated=TO_DATE('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1322
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=350,Updated=TO_DATE('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3743
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=360,Updated=TO_DATE('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3746
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=370,Updated=TO_DATE('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3747
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=380,Updated=TO_DATE('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3744
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=390,Updated=TO_DATE('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3745
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=400,Updated=TO_DATE('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1027
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=410,Updated=TO_DATE('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1028
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=420,Updated=TO_DATE('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1568
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=430,Updated=TO_DATE('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1569
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=440,Updated=TO_DATE('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5381
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=450,Updated=TO_DATE('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5383
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=460,Updated=TO_DATE('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=12418
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=470,Updated=TO_DATE('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5910
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=480,Updated=TO_DATE('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5911
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=490,Updated=TO_DATE('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=6130
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=500,Updated=TO_DATE('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=8307
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=510,Updated=TO_DATE('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=6343
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=520,Updated=TO_DATE('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=6344
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=530,Updated=TO_DATE('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=58973
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=540,Updated=TO_DATE('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=8608
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=550,Updated=TO_DATE('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=8613
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=560,Updated=TO_DATE('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=52015
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=570,Updated=TO_DATE('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=52016
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=0, IsDisplayed='N', XPosition=1,Updated=TO_DATE('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3079
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:01:35 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=70,Updated=TO_DATE('2013-01-26 17:01:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2609
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:01:35 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=0, IsDisplayed='N', XPosition=1,Updated=TO_DATE('2013-01-26 17:01:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=12354
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:01:48 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=70,Updated=TO_DATE('2013-01-26 17:01:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2603
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:01:48 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=0, IsDisplayed='N', XPosition=1,Updated=TO_DATE('2013-01-26 17:01:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2602
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:03:44 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=140, IsDisplayed='Y', XPosition=5,Updated=TO_DATE('2013-01-26 17:03:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=12361
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:03:44 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=150,Updated=TO_DATE('2013-01-26 17:03:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1360
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:03:44 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=160,Updated=TO_DATE('2013-01-26 17:03:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1361
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:03:44 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=170,Updated=TO_DATE('2013-01-26 17:03:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1362
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:03:44 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=180,Updated=TO_DATE('2013-01-26 17:03:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1363
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:03:44 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=190,Updated=TO_DATE('2013-01-26 17:03:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1519
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:03:44 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=200, IsDisplayed='Y', XPosition=5,Updated=TO_DATE('2013-01-26 17:03:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1520
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:03:44 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=210,Updated=TO_DATE('2013-01-26 17:03:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4858
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:03:44 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=220, IsDisplayed='Y', XPosition=5,Updated=TO_DATE('2013-01-26 17:03:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53281
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:03:44 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=230,Updated=TO_DATE('2013-01-26 17:03:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=13696
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:03:44 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=240, IsDisplayed='Y', XPosition=5,Updated=TO_DATE('2013-01-26 17:03:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=50180
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:03:44 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=250,Updated=TO_DATE('2013-01-26 17:03:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=12180
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201301261704_IDEMPIERE-362.sql') FROM dual
|
||||
;
|
||||
|
|
@ -0,0 +1,174 @@
|
|||
-- Jan 25, 2013 5:00:42 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_InfoWindow (Processing,FromClause,AD_InfoWindow_UU,AD_InfoWindow_ID,AD_Table_ID,EntityType,Name,AD_Client_ID,AD_Org_ID,Created,Updated,UpdatedBy,CreatedBy,IsActive,IsDefault,IsDistinct,OrderByClause,IsValid) VALUES ('N','C_BPartner bp
|
||||
LEFT OUTER JOIN C_BPartner_Location l ON (bp.C_BPartner_ID=l.C_BPartner_ID AND l.IsActive=''Y'')
|
||||
LEFT OUTER JOIN AD_User c ON (bp.C_BPartner_ID=c.C_BPartner_ID AND (c.C_BPartner_Location_ID IS NULL OR c.C_BPartner_Location_ID=l.C_BPartner_Location_ID) AND c.IsActive=''Y'')
|
||||
LEFT OUTER JOIN C_Location a ON (l.C_Location_ID=a.C_Location_ID)','bdb6ccb3-1aed-4b9e-92f4-9db792480cb4',200001,291,'D','Business Partner Info',0,0,TO_DATE('2013-01-25 17:00:39','YYYY-MM-DD HH24:MI:SS'),TO_DATE('2013-01-25 17:00:39','YYYY-MM-DD HH24:MI:SS'),100,100,'Y','N','N','bp.Value','N')
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:00:42 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_InfoWindow_Access (AD_InfoWindow_Access_UU,Updated,UpdatedBy,AD_Role_ID,AD_InfoWindow_ID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive) VALUES ('d5601d36-ca71-439b-9e54-7e536d2e9411',TO_DATE('2013-01-25 17:00:42','YYYY-MM-DD HH24:MI:SS'),100,50002,200001,0,0,TO_DATE('2013-01-25 17:00:42','YYYY-MM-DD HH24:MI:SS'),100,'Y')
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:00:42 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_InfoWindow_Access (AD_InfoWindow_Access_UU,Updated,UpdatedBy,AD_Role_ID,AD_InfoWindow_ID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive) VALUES ('4d18fc73-b444-435c-9bb3-be403350dec4',TO_DATE('2013-01-25 17:00:42','YYYY-MM-DD HH24:MI:SS'),100,0,200001,0,0,TO_DATE('2013-01-25 17:00:42','YYYY-MM-DD HH24:MI:SS'),100,'Y')
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:00:42 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_InfoWindow_Access (AD_InfoWindow_Access_UU,Updated,UpdatedBy,AD_Role_ID,AD_InfoWindow_ID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive) VALUES ('67391a3c-06c1-4093-bdb1-d7edd33d6125',TO_DATE('2013-01-25 17:00:42','YYYY-MM-DD HH24:MI:SS'),100,102,200001,11,0,TO_DATE('2013-01-25 17:00:42','YYYY-MM-DD HH24:MI:SS'),100,'Y')
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:00:42 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_InfoWindow_Access (AD_InfoWindow_Access_UU,Updated,UpdatedBy,AD_Role_ID,AD_InfoWindow_ID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive) VALUES ('b58f0899-9056-41d8-8063-53f1641ce392',TO_DATE('2013-01-25 17:00:42','YYYY-MM-DD HH24:MI:SS'),100,103,200001,11,0,TO_DATE('2013-01-25 17:00:42','YYYY-MM-DD HH24:MI:SS'),100,'Y')
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:00:42 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_InfoWindow_Access (AD_InfoWindow_Access_UU,Updated,UpdatedBy,AD_Role_ID,AD_InfoWindow_ID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive) VALUES ('db57c82f-a146-464c-b0f5-a665f453eb95',TO_DATE('2013-01-25 17:00:42','YYYY-MM-DD HH24:MI:SS'),100,50001,200001,0,0,TO_DATE('2013-01-25 17:00:42','YYYY-MM-DD HH24:MI:SS'),100,'Y')
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:01:34 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,QueryOperator,QueryFunction,SelectClause) VALUES (200001,'A search key allows you a fast method of finding a particular record.
|
||||
If you leave the search key empty, the system automatically creates a numeric number. The document sequence used for this fallback number is defined in the "Maintain Sequence" window with the name "DocumentNo_<TableName>", where TableName is the actual name of the table (e.g. C_Order).','18790dce-5531-4f38-885a-c1c658e4b468',10,200023,'Y','D','Search key for the record in the format required - must be unique',TO_DATE('2013-01-25 17:01:33','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-01-25 17:01:33','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Search Key','Y','Value','Y','Y',620,10,'Like','Upper','bp.Value')
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:01:56 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,QueryOperator,QueryFunction,SelectClause) VALUES (200001,'The name of an entity (record) is used as an default search option in addition to the search key. The name is up to 60 characters in length.','f03d7099-a3a1-4a86-b553-28438c4fea58',10,200024,'Y','D','Alphanumeric identifier of the entity',TO_DATE('2013-01-25 17:01:55','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-01-25 17:01:55','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Name','Y','Name','Y','Y',469,20,'Like','Upper','bp.Name')
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:03:34 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,QueryOperator,QueryFunction,SelectClause) VALUES (200001,'233bd7fd-180d-4c10-935b-23e6a04cf403',10,200025,'Y','D','Business Partner Contact Name',TO_DATE('2013-01-25 17:03:33','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-01-25 17:03:33','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Contact Name','Y','ContactName','Y','Y',1839,30,'Like','Upper','c.Name AS ContactName')
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:05:11 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,QueryOperator,SelectClause) VALUES (200001,'232c6bc0-5390-4e7b-b40e-c52c2b4e578c',12,200026,'N','D','Available Credit based on Credit Limit (not Total Open Balance) and Credit Used',TO_DATE('2013-01-25 17:05:09','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-01-25 17:05:09','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Credit Available','Y','SO_CreditAvailable','Y','Y',1851,40,'=','bp.SO_CreditLimit-bp.SO_CreditUsed AS SO_CreditAvailable')
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:06:02 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,SelectClause) VALUES (200001,'The Credit Used indicates the total amount of open or unpaid invoices in primary accounting currency for the Business Partner. Credit Management is based on the Total Open Amount, which includes Vendor activities.','2b743596-27ec-4968-a7c0-7a99834313d6',12,200027,'N','D','Current open balance',TO_DATE('2013-01-25 17:06:01','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-01-25 17:06:01','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Credit Used','Y','SO_CreditUsed','Y','Y',554,50,'bp.SO_CreditUsed')
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:06:51 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,QueryOperator,SelectClause) VALUES (200001,'The Phone field identifies a telephone number','89b27cb6-0002-4905-ad0a-28b14e9eeebb',10,200028,'Y','D','Identifies a telephone number',TO_DATE('2013-01-25 17:06:50','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-01-25 17:06:50','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Phone','Y','Phone','Y','Y',505,60,'Like','c.Phone')
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:08:01 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,QueryOperator,QueryFunction,SelectClause) VALUES (200001,'The Postal Code or ZIP identifies the postal code for this entity''s address.','04d7c2cb-01fc-4756-b2e3-53d91a27014c',10,200029,'Y','D','Postal code',TO_DATE('2013-01-25 17:07:59','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-01-25 17:07:59','YYYY-MM-DD HH24:MI:SS'),0,0,100,'ZIP','Y','Postal','Y','Y',512,70,'Like','Upper','a.Postal')
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:08:26 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,QueryOperator,QueryFunction,SelectClause) VALUES (200001,'The City identifies a unique City for this Country or Region.','87b2a158-eb69-475c-9324-eefca8d0c7da',10,200030,'N','D','Identifies a City',TO_DATE('2013-01-25 17:08:26','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-01-25 17:08:26','YYYY-MM-DD HH24:MI:SS'),0,0,100,'City','Y','City','Y','Y',225,80,'Like','Upper','a.City')
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:08:52 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,SelectClause) VALUES (200001,'The Total Open Balance Amount is the calculated open item amount for Customer and Vendor activity. If the Balance is below zero, we owe the Business Partner. The amount is used for Credit Management.
|
||||
Invoices and Payment Allocations determine the Open Balance (i.e. not Orders or Payments).','743b5ce2-9257-450a-8d0c-718caa30ed35',12,200031,'N','D','Total Open Balance Amount in primary Accounting Currency',TO_DATE('2013-01-25 17:08:51','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-01-25 17:08:51','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Open Balance','Y','TotalOpenBalance','Y','Y',2562,90,'bp.TotalOpenBalance')
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:09:47 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,SeqNo,QueryOperator,SelectClause) VALUES (200001,'3032fa64-7e07-4adf-a252-07dabfe12427',12,200032,'N','D',TO_DATE('2013-01-25 17:09:46','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-01-25 17:09:46','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Revenue','Y','Revenue','Y','Y',100,'=','bp.ActualLifetimeValue')
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:10:10 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,SelectClause) VALUES (200001,'The Address 1 identifies the address for an entity''s location','501f1ba5-9eed-4d94-af31-589a97c810f2',10,200033,'N','D','Address line 1 for this location',TO_DATE('2013-01-25 17:10:09','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-01-25 17:10:09','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Address 1','Y','Address1','Y','Y',156,110,'a.Address1')
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:10:27 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
UPDATE AD_InfoColumn SET IsQueryCriteria='Y', QueryOperator='Like', QueryFunction='Upper',Updated=TO_DATE('2013-01-25 17:10:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200033
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:10:53 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
UPDATE AD_InfoColumn SET IsQueryCriteria='N', QueryOperator=NULL, QueryFunction=NULL,Updated=TO_DATE('2013-01-25 17:10:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200033
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:11:22 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,SelectClause) VALUES (200001,'If the Ship Address is selected, the location is used to ship goods to a customer or receive goods from a vendor.','e6154d16-db40-45e7-adaf-2f6aa19d78dc',20,200034,'N','D','Business Partner Shipment Address',TO_DATE('2013-01-25 17:11:21','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-01-25 17:11:21','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Ship Address','Y','IsShipTo','Y','Y',929,120,'l.IsShipTo')
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:11:33 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,SelectClause) VALUES (200001,'If the Invoice Address is selected, the location is used to send invoices to a customer or receive invoices from a vendor.','b1e8e398-453d-497d-8ae1-b5bcd3572191',20,200035,'N','D','Business Partner Invoice/Bill Address',TO_DATE('2013-01-25 17:11:32','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-01-25 17:11:32','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Invoice Address','Y','IsBillTo','Y','Y',916,130,'l.IsBillTo')
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 3:58:06 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
UPDATE AD_Field SET DisplayLogic='@IsDisplayed@=Y|@IsQueryCriteria=Y',Updated=TO_DATE('2013-01-29 15:58:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201625
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 3:58:22 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
UPDATE AD_Field SET DisplayLogic='@IsDisplayed@=Y|@IsQueryCriteria@=Y',Updated=TO_DATE('2013-01-29 15:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201625
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 3:59:19 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_Preference (AD_Preference_ID,AD_Window_ID,Attribute,AD_Preference_UU,Value,CreatedBy,AD_Org_ID,AD_Client_ID,Created,UpdatedBy,Updated,IsActive) VALUES (200000,102,'106|DetailPane.IsOpen','8366496c-2e0e-4898-92cc-0093cb95cecc','N',100,0,0,TO_DATE('2013-01-29 15:59:17','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-01-29 15:59:17','YYYY-MM-DD HH24:MI:SS'),'Y')
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:04:57 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,DisplayLogic,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,QueryOperator,SelectClause) VALUES (200001,'The Customer checkbox indicates if this Business Partner is a customer. If it is select additional fields will display which further define this customer.','64676c6f-aab0-40d3-8875-23257197ef5c',20,200036,'Y','D','Indicates if this Business Partner is a Customer',TO_DATE('2013-01-29 16:04:53','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-01-29 16:04:53','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Customer','Y','@IsSOTrx:Y@=Y','IsCustomer','N','Y',364,140,'=','bp.IsCustomer')
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:05:34 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,DisplayLogic,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,QueryOperator,SelectClause) VALUES (200001,'The Vendor checkbox indicates if this Business Partner is a Vendor. If it is selected, additional fields will display which further identify this vendor.','4c718d20-3bc5-41a4-ab06-d32ff0388596',20,200037,'Y','D','Indicates if this Business Partner is a Vendor',TO_DATE('2013-01-29 16:05:32','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-01-29 16:05:32','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Vendor','Y','@IsSOTrx:N@=N','IsVendor','N','Y',426,150,'=','bp.IsVendor')
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:20:54 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
UPDATE AD_InfoWindow SET IsValid='Y',Updated=TO_DATE('2013-01-29 16:20:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoWindow_ID=200001
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:21:01 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
UPDATE AD_InfoWindow SET IsDefault='Y',Updated=TO_DATE('2013-01-29 16:21:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoWindow_ID=200001
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:25:02 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,QueryOperator,QueryFunction,SelectClause) VALUES (200001,'The Email Address is the Electronic Mail ID for this User and should be fully qualified (e.g. joe.smith@company.com). The Email Address is used to access the self service application functionality from the web.','b2ad7812-46e8-4a59-8fec-b472270b985a',10,200038,'Y','D','Electronic Mail Address',TO_DATE('2013-01-29 16:25:00','YYYY-MM-DD HH24:MI:SS'),100,TO_DATE('2013-01-29 16:25:00','YYYY-MM-DD HH24:MI:SS'),0,0,100,'EMail Address','Y','EMail','N','Y',881,160,'Like','Upper','c.EMail')
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:26:08 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
UPDATE AD_InfoColumn SET SeqNo=35,Updated=TO_DATE('2013-01-29 16:26:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200038
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:56:19 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
UPDATE AD_InfoColumn SET AD_Reference_ID=17, AD_Reference_Value_ID=319,Updated=TO_DATE('2013-01-29 16:56:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200036
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:56:34 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
UPDATE AD_InfoColumn SET AD_Reference_ID=17, AD_Reference_Value_ID=319,Updated=TO_DATE('2013-01-29 16:56:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200037
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 5:05:53 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
UPDATE AD_Message SET MsgTip='Match all search criteria',Updated=TO_DATE('2013-01-29 17:05:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Message_ID=518
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201301291606_IDEMPIERE-325.sql') FROM dual
|
||||
;
|
||||
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
-- Jan 29, 2013 4:07:24 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_WF_NodeNext SET IsActive='N',Updated=TO_DATE('2013-01-29 16:07:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_WF_NodeNext_ID=171
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:07:44 PM PST
|
||||
UPDATE AD_WF_NodeNext SET IsActive='N',Updated=TO_DATE('2013-01-29 16:07:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_WF_NodeNext_ID=50075
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:08:08 PM PST
|
||||
INSERT INTO AD_WF_NodeNext (SeqNo,EntityType,IsStdUserWorkflow,AD_WF_Node_ID,AD_WF_NodeNext_ID,AD_WF_Next_ID,AD_WF_NodeNext_UU,UpdatedBy,AD_Org_ID,CreatedBy,Updated,AD_Client_ID,Created,IsActive) VALUES (10,'D','N',171,200000,161,'53e71f53-8568-40bd-bc97-264121dbaf57',100,0,100,TO_DATE('2013-01-29 16:08:07','YYYY-MM-DD HH24:MI:SS'),0,TO_DATE('2013-01-29 16:08:07','YYYY-MM-DD HH24:MI:SS'),'Y')
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:08:16 PM PST
|
||||
UPDATE AD_WF_NodeNext SET SeqNo=1,Updated=TO_DATE('2013-01-29 16:08:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_WF_NodeNext_ID=200000
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201301291609_IDEMPIERE-362.sql') FROM dual
|
||||
;
|
||||
|
|
@ -0,0 +1,334 @@
|
|||
-- Jan 29, 2013 4:33:13 PM PST
|
||||
-- IDEMPIERE-594 Improve positioning on windows
|
||||
UPDATE AD_Field SET ColumnSpan=2, SeqNo=140, IsDisplayed='Y', XPosition=4,Updated=TO_DATE('2013-01-29 16:33:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2162
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:13 PM PST
|
||||
UPDATE AD_Field SET SeqNo=150,Updated=TO_DATE('2013-01-29 16:33:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9615
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=160,Updated=TO_DATE('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=8238
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET ColumnSpan=2, SeqNo=170,Updated=TO_DATE('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9606
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET ColumnSpan=2, SeqNo=180,Updated=TO_DATE('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10592
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=190,Updated=TO_DATE('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2155
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=200,Updated=TO_DATE('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9620
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=210,Updated=TO_DATE('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2160
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=220,Updated=TO_DATE('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=57981
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=230,Updated=TO_DATE('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2164
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=240,Updated=TO_DATE('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2133
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=250,Updated=TO_DATE('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2141
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=260,Updated=TO_DATE('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2136
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=270, AD_FieldGroup_ID=200005, IsDisplayed='Y', XPosition=1,Updated=TO_DATE('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9600
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=280, AD_FieldGroup_ID=200005,Updated=TO_DATE('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9602
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=290, AD_FieldGroup_ID=200005,Updated=TO_DATE('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9624
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=300, AD_FieldGroup_ID=200005,Updated=TO_DATE('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9601
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=310, IsDisplayed='Y', XPosition=1,Updated=TO_DATE('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9612
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=320, AD_FieldGroup_ID=200005, IsDisplayed='Y', XPosition=4,Updated=TO_DATE('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9607
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=330, IsDisplayed='Y', XPosition=1,Updated=TO_DATE('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9622
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=340, AD_FieldGroup_ID=200005, IsDisplayed='Y', XPosition=1,Updated=TO_DATE('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9611
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=350, AD_FieldGroup_ID=200005, IsDisplayed='Y', XPosition=4,Updated=TO_DATE('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10470
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=360, AD_FieldGroup_ID=200005, IsDisplayed='Y', XPosition=1,Updated=TO_DATE('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9628
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=370, AD_FieldGroup_ID=200005,Updated=TO_DATE('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=54556
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=380, AD_FieldGroup_ID=200005, IsDisplayed='Y', XPosition=7,Updated=TO_DATE('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9619
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=390, AD_FieldGroup_ID=200006,Updated=TO_DATE('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9610
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=400, AD_FieldGroup_ID=200006,Updated=TO_DATE('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9603
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=410, IsDisplayed='Y', XPosition=8,Updated=TO_DATE('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200622
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=420, AD_FieldGroup_ID=200006,Updated=TO_DATE('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9621
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:15 PM PST
|
||||
UPDATE AD_Field SET SeqNo=430, AD_FieldGroup_ID=200006,Updated=TO_DATE('2013-01-29 16:33:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9608
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:15 PM PST
|
||||
UPDATE AD_Field SET SeqNo=440,Updated=TO_DATE('2013-01-29 16:33:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9609
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:15 PM PST
|
||||
UPDATE AD_Field SET SeqNo=450,Updated=TO_DATE('2013-01-29 16:33:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2124
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:15 PM PST
|
||||
UPDATE AD_Field SET SeqNo=460,Updated=TO_DATE('2013-01-29 16:33:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3261
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:15 PM PST
|
||||
UPDATE AD_Field SET SeqNo=470, IsDisplayed='Y', XPosition=1,Updated=TO_DATE('2013-01-29 16:33:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9604
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:15 PM PST
|
||||
UPDATE AD_Field SET SeqNo=480,Updated=TO_DATE('2013-01-29 16:33:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9618
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:15 PM PST
|
||||
UPDATE AD_Field SET SeqNo=490,Updated=TO_DATE('2013-01-29 16:33:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9625
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:15 PM PST
|
||||
UPDATE AD_Field SET SeqNo=500,Updated=TO_DATE('2013-01-29 16:33:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9613
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:15 PM PST
|
||||
UPDATE AD_Field SET SeqNo=510,Updated=TO_DATE('2013-01-29 16:33:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2154
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:15 PM PST
|
||||
UPDATE AD_Field SET SeqNo=520,Updated=TO_DATE('2013-01-29 16:33:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2132
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:15 PM PST
|
||||
UPDATE AD_Field SET SeqNo=530,Updated=TO_DATE('2013-01-29 16:33:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2144
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:15 PM PST
|
||||
UPDATE AD_Field SET SeqNo=540,Updated=TO_DATE('2013-01-29 16:33:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2127
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:15 PM PST
|
||||
UPDATE AD_Field SET SeqNo=550,Updated=TO_DATE('2013-01-29 16:33:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2146
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:15 PM PST
|
||||
UPDATE AD_Field SET SeqNo=560,Updated=TO_DATE('2013-01-29 16:33:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2153
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:15 PM PST
|
||||
UPDATE AD_Field SET SeqNo=570,Updated=TO_DATE('2013-01-29 16:33:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2148
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:15 PM PST
|
||||
UPDATE AD_Field SET SeqNo=580,Updated=TO_DATE('2013-01-29 16:33:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2128
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:15 PM PST
|
||||
UPDATE AD_Field SET SeqNo=590,Updated=TO_DATE('2013-01-29 16:33:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2135
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:34:13 PM PST
|
||||
UPDATE AD_Field SET AD_FieldGroup_ID=200005,Updated=TO_DATE('2013-01-29 16:34:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9612
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:34:55 PM PST
|
||||
UPDATE AD_Field SET AD_FieldGroup_ID=200005,Updated=TO_DATE('2013-01-29 16:34:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9622
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:35:10 PM PST
|
||||
UPDATE AD_Field SET AD_FieldGroup_ID=200006,Updated=TO_DATE('2013-01-29 16:35:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200622
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:35:58 PM PST
|
||||
UPDATE AD_Field SET AD_FieldGroup_ID=200008,Updated=TO_DATE('2013-01-29 16:35:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2124
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:36:03 PM PST
|
||||
UPDATE AD_Field SET AD_FieldGroup_ID=200008,Updated=TO_DATE('2013-01-29 16:36:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3261
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:36:15 PM PST
|
||||
UPDATE AD_Field SET AD_FieldGroup_ID=200008,Updated=TO_DATE('2013-01-29 16:36:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9604
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:36:20 PM PST
|
||||
UPDATE AD_Field SET AD_FieldGroup_ID=200008,Updated=TO_DATE('2013-01-29 16:36:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9618
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:36:27 PM PST
|
||||
UPDATE AD_Field SET AD_FieldGroup_ID=200008,Updated=TO_DATE('2013-01-29 16:36:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9625
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:36:32 PM PST
|
||||
UPDATE AD_Field SET AD_FieldGroup_ID=200008,Updated=TO_DATE('2013-01-29 16:36:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9613
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:36:53 PM PST
|
||||
UPDATE AD_Field SET AD_FieldGroup_ID=200007,Updated=TO_DATE('2013-01-29 16:36:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2132
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:36:56 PM PST
|
||||
UPDATE AD_Field SET AD_FieldGroup_ID=200007,Updated=TO_DATE('2013-01-29 16:36:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2144
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:36:58 PM PST
|
||||
UPDATE AD_Field SET AD_FieldGroup_ID=200007,Updated=TO_DATE('2013-01-29 16:36:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2127
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:37:01 PM PST
|
||||
UPDATE AD_Field SET AD_FieldGroup_ID=200007,Updated=TO_DATE('2013-01-29 16:37:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2146
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:37:04 PM PST
|
||||
UPDATE AD_Field SET AD_FieldGroup_ID=200007,Updated=TO_DATE('2013-01-29 16:37:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2153
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:37:07 PM PST
|
||||
UPDATE AD_Field SET AD_FieldGroup_ID=200007,Updated=TO_DATE('2013-01-29 16:37:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2148
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:37:10 PM PST
|
||||
UPDATE AD_Field SET AD_FieldGroup_ID=200007,Updated=TO_DATE('2013-01-29 16:37:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2128
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:37:13 PM PST
|
||||
UPDATE AD_Field SET AD_FieldGroup_ID=200007,Updated=TO_DATE('2013-01-29 16:37:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2135
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:37:25 PM PST
|
||||
UPDATE AD_Field SET DisplayLogic=NULL,Updated=TO_DATE('2013-01-29 16:37:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2135
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:38:16 PM PST
|
||||
UPDATE AD_Field SET DisplayLogic='@IsVendor@=Y',Updated=TO_DATE('2013-01-29 16:38:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9608
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:38:20 PM PST
|
||||
UPDATE AD_Field SET DisplayLogic='@IsVendor@=Y',Updated=TO_DATE('2013-01-29 16:38:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9621
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:38:22 PM PST
|
||||
UPDATE AD_Field SET DisplayLogic='@IsVendor@=Y',Updated=TO_DATE('2013-01-29 16:38:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200622
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:38:24 PM PST
|
||||
UPDATE AD_Field SET DisplayLogic='@IsVendor@=Y',Updated=TO_DATE('2013-01-29 16:38:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9603
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:38:28 PM PST
|
||||
UPDATE AD_Field SET DisplayLogic='@IsVendor@=Y',Updated=TO_DATE('2013-01-29 16:38:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9610
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:38:36 PM PST
|
||||
UPDATE AD_Field SET DisplayLogic='@IsCustomer@=Y',Updated=TO_DATE('2013-01-29 16:38:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9619
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:38:38 PM PST
|
||||
UPDATE AD_Field SET DisplayLogic='@IsCustomer@=Y',Updated=TO_DATE('2013-01-29 16:38:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=54556
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:38:40 PM PST
|
||||
UPDATE AD_Field SET DisplayLogic='@IsCustomer@=Y',Updated=TO_DATE('2013-01-29 16:38:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9628
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:38:42 PM PST
|
||||
UPDATE AD_Field SET DisplayLogic='@IsCustomer@=Y',Updated=TO_DATE('2013-01-29 16:38:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10470
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:38:45 PM PST
|
||||
UPDATE AD_Field SET DisplayLogic='@IsCustomer@=Y',Updated=TO_DATE('2013-01-29 16:38:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9611
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:38:46 PM PST
|
||||
UPDATE AD_Field SET DisplayLogic='@IsCustomer@=Y',Updated=TO_DATE('2013-01-29 16:38:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9622
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:38:49 PM PST
|
||||
UPDATE AD_Field SET DisplayLogic='@IsCustomer@=Y',Updated=TO_DATE('2013-01-29 16:38:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9607
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:38:52 PM PST
|
||||
UPDATE AD_Field SET DisplayLogic='@IsCustomer@=Y',Updated=TO_DATE('2013-01-29 16:38:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9612
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:38:54 PM PST
|
||||
UPDATE AD_Field SET DisplayLogic='@IsCustomer@=Y',Updated=TO_DATE('2013-01-29 16:38:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9601
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:38:56 PM PST
|
||||
UPDATE AD_Field SET DisplayLogic='@IsCustomer@=Y',Updated=TO_DATE('2013-01-29 16:38:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9624
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:38:59 PM PST
|
||||
UPDATE AD_Field SET DisplayLogic='@IsCustomer@=Y',Updated=TO_DATE('2013-01-29 16:38:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9602
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:39:02 PM PST
|
||||
UPDATE AD_Field SET DisplayLogic='@IsCustomer@=Y',Updated=TO_DATE('2013-01-29 16:39:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9600
|
||||
;
|
||||
|
||||
update ad_field set isactive='N' where ad_tab_id in (223,224,225)
|
||||
;
|
||||
|
||||
update ad_tab set isactive='N' where ad_tab_id in (223,224,225)
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201301291642_IDEMPIERE-594.sql') FROM dual
|
||||
;
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
-- Jan 29, 2013 5:06:41 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=190,Updated=TO_DATE('2013-01-29 17:06:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3945
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 5:06:41 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=0, IsDisplayed='N', XPosition=1,Updated=TO_DATE('2013-01-29 17:06:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=58784
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201301291707_IDEMPIERE-362.sql') FROM dual
|
||||
;
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
-- IDEMPIERE-294 Maintenance / Fix wrong datatype of column on DB
|
||||
ALTER TABLE ad_broadcastmessage DROP COLUMN notification_client_id;
|
||||
;
|
||||
|
||||
ALTER TABLE ad_broadcastmessage ADD (notification_client_id NUMBER(10,0) NULL);
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201301291717_IDEMPIERE-294.sql') FROM dual
|
||||
;
|
||||
|
|
@ -0,0 +1,483 @@
|
|||
-- IDEMPIERE-234 Move some buttons back to window - DocAction/RecordID/Posted/CreateFrom + Buttons that are mandatory or very used on each window
|
||||
-- Move to toolbar
|
||||
update ad_column set istoolbarbutton='Y' where ad_column_id=55415 -- Asset / Asset Balances / Update depreciation
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='Y' where ad_column_id=200846 -- Online Transaction History / Online Transaction History / Record ID
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='Y' where ad_column_id=200807 -- Payment Transaction / Payment Transaction / Void It
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='Y' where ad_column_id=12113 -- Return to Vendor / Return to Vendor / Create Package
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='Y' where ad_column_id=206766 -- Sales Order / Order / Online Shipping Sales Order Rate Inquiry
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='Y' where ad_column_id=201197 -- Shipment (Customer) / MPS Lines / Create lines from
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='Y' where ad_column_id=12113 -- Shipment (Customer) / Shipment / Create Package
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='Y' where ad_column_id=201197 -- Shipment Package / MPS Lines / Create lines from
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='Y' where ad_column_id=202145 -- Shipper / Shipper / Shipper Create From ...
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='Y' where ad_column_id=205538 -- Shipper Configuration / Shipper / Shipper Copy From ...
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='Y' where ad_column_id=205538 -- Shipping Processor Configuration / Shipper / Shipper Copy From ...
|
||||
;
|
||||
|
||||
-- Move to window
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=11873 -- Access Audit / Access Audit / Record ID
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5103 -- Accounting Fact Details / Accounting / Record ID
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=53833 -- Activity Control Report / Activity Control / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=53817 -- Activity Control Report / Activity Control / Process Cost Collector
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=54193 -- ASP Modules / Level / ASP Generate Level
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=54116 -- ASP Modules / Tab / ASP Generate Fields
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=59452 -- Asset / Activation/Addition / Asset Addition Process
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=59480 -- Asset Activation/Disposal / Asset Disposal/Activation / Asset Disposed Process
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=59492 -- Asset Activation/Disposal / Asset Disposal/Activation / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=59452 -- Asset Addition / Addition / Asset Addition Process
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=59477 -- Asset Addition / Addition / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=59346 -- Asset Change Account / Asset Change account / Asset Transfer Process
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=59348 -- Asset Change Account / Asset Change account / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=2097 -- Attachment / Attachment / Record ID
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5515 -- Bank Statement / Bank Statement / Create lines from
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=4925 -- Bank Statement / Bank Statement / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=12461 -- Bank Statement / Bank Statement / Process Statement
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=200993 -- Broadcast Message / Broadcast Message / Publish Broadcast message
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=200992 -- Broadcast Message / Broadcast Message / Test Brodcast Message
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5958 -- Broadcast Message / Message Log / Record ID
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5000 -- Business Partner Group / Accounting / Copy Accounts
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5944 -- Calendar Year and Period / Period / Open/Close All
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=2355 -- Calendar Year and Period / Period Control / Open/Close
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=2410 -- Calendar Year and Period / Year / Create Periods
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=8817 -- Change Audit / Change Audit / Record ID
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=14083 -- Client / Client / Test EMail
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5683 -- Commission / Commission / Generate Commission
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5814 -- Commission Run / Commission Run / Create Invoice
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=53833 -- Cost Collector / Collector Cost / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=53817 -- Cost Collector / Collector Cost / Process Cost Collector
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5352 -- Customer Return / Customer Return / Create lines from
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=6534 -- Customer Return / Customer Return / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=4324 -- Customer Return / Customer Return / Process Shipment
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=208381 -- Customer RMA / Customer RMA / Create lines from
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=52006 -- Customer RMA / Customer RMA / Create Order From RMA
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=12120 -- Customer RMA / Customer RMA / Process RMA
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=53891 -- Distribution Order / Distribution Order / Process Distribution Order
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=12567 -- Dunning Run / Dunning Run / Create Dunning Run
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=12282 -- Expense Report / Expense Report / Process Expenses
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5998 -- Financial Report / Financial Report / Create Report
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=54092 -- Financial Report / Financial Report / Create Report (Jasper)
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=11653 -- GL Distribution / Distribution / Verify
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=1629 -- GL Journal / Journal / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=1789 -- GL Journal / Journal / Process Journal
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=12076 -- GL Journal Batch / Batch / Process Batch
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=1629 -- GL Journal Batch / Journal / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=200509 -- GL Journal Generator / GL Journal Generator / Generate GL Journal
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=56344 -- House Keeping / House Keeping / House Keeping
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=6535 -- Internal Use Inventory / Internal Use / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=12412 -- Internal Use Inventory / Internal Use / Process Inventory Count
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=6536 -- Inventory Move / Move / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=10797 -- Inventory Move / Move / Process Movements
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=4649 -- Invoice (Customer) / Invoice / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=3495 -- Invoice (Customer) / Invoice / Process Invoice
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=10324 -- Invoice (Customer) / Payment Schedule / Validate
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5351 -- Invoice (Vendor) / Invoice / Create lines from
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=4649 -- Invoice (Vendor) / Invoice / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=3495 -- Invoice (Vendor) / Invoice / Process Invoice
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=14191 -- Invoice (Vendor) / Landed Costs / Distribute Costs
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=6512 -- Invoice (Vendor) / Matched Receipts / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=10324 -- Invoice (Vendor) / Payment Schedule / Validate
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=10324 -- Invoice Payment Schedule / Payment Schedule / Validate
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=6574 -- Language / Language / Language Maintenance
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=53645 -- Manufacturing Order / Manufacturing Order / Process Manufacturing Order
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=6512 -- Matched Invoices / Match Invoice / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=6528 -- Matched Purchase Orders / Match PO / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5352 -- Material Receipt / Material Receipt / Create lines from
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=6534 -- Material Receipt / Material Receipt / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=4324 -- Material Receipt / Material Receipt / Process Shipment
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=12449 -- Move Confirmation / Confirmation / Process Confirmation
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5958 -- MRP Notice (all) / Notice / Record ID
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5958 -- MRP Notice / Notice / Record ID
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=57937 -- My Unprocessed Documents / Unprocessed Documents / Record ID
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5958 -- Notice / Notice / Record ID
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=50177 -- Pack In / PackIn / PackIn
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=50093 -- Pack Out / Export Package / Export Package
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=4712 -- Parts and BOMs / Part / Verify BOM Structure
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5356 -- Payment / Payment / Online Process
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5042 -- Payment / Payment / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5497 -- Payment / Payment / Process Payment
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5042 -- Payment Batch / Payment / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5650 -- Payment Selection / Payment Selection / Create From ...
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5624 -- Payment Selection / Payment Selection / Prepare Payment
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=10332 -- Payment Term / Payment Term / Validate
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=3817 -- Physical Inventory / Inventory Count / Create Inventory Count List
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=6535 -- Physical Inventory / Inventory Count / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=12412 -- Physical Inventory / Inventory Count / Process Inventory Count
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=59449 -- Post Depreciation Entry / Create Depreciation Entry / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=59447 -- Post Depreciation Entry / Create Depreciation Entry / Process Depreciation Entry
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=3744 -- Price List / Version / Create Price List
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=200321 -- Process Audit / Log / Record ID
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=4712 -- Product / Product / Verify BOM Structure
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5124 -- Product Category / Accounting / Copy Accounts
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=61940 -- Production (Single Product) / Production / Complete Production
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=61943 -- Production (Single Product) / Production / Create/Update Production lines
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=6537 -- Production (Single Product) / Production / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=9847 -- Project (Lines/Issues) / Issues / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=8757 -- Project / Project / Set Project Type
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=6528 -- Purchase Order / Matching / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=60149 -- Purchase Order / Payment Schedule / Validate
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=4650 -- Purchase Order / Purchase Order / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=2171 -- Purchase Order / Purchase Order / Process Order
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=8689 -- Recurring / Recurring / Start Process
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=13079 -- Request (all) / Request / Record ID
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=13079 -- Request / Request / Record ID
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=11482 -- Requisition / Requisition / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=11480 -- Requisition / Requisition / Process Requisition
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5352 -- Return to Vendor / Return to Vendor / Create lines from
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=6534 -- Return to Vendor / Return to Vendor / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=4324 -- Return to Vendor / Return to Vendor / Process Shipment
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=59431 -- Revaluation Asset / Revaluation Asset / Asset Reval Process
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=59421 -- Revaluation Asset / Revaluation Asset / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=8589 -- Role Data Access / Record Access / Record ID
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=4650 -- Sales Order / Order / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=2171 -- Sales Order / Order / Process Order
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=60149 -- Sales Order / Payment Schedule / Validate
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=8817 -- Session Audit / Change Audit / Record ID
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=12330 -- Ship/Receipt Confirm / Confirmation / Process Confirmation
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=201078 -- Shipment (Customer) / Packages / Online Shipping Rate Inquiry
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=201070 -- Shipment (Customer) / Packages / Process Shipment Online
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=5352 -- Shipment (Customer) / Shipment / Create lines from
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=6534 -- Shipment (Customer) / Shipment / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=4324 -- Shipment (Customer) / Shipment / Process Shipment
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=201078 -- Shipment Package / Packages / Online Shipping Rate Inquiry
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=201070 -- Shipment Package / Packages / Process Shipment Online
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=4712 -- Spare parts / Product / Verify BOM Structure
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=128 -- Table and Column / Column / Column Encryption
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=6483 -- Table and Column / Column / Synchronize Column
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=3893 -- Test / Test / Process Now
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=10031 -- Tree / Tree / Verify Tree
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=56347 -- UnPosted Documents / Unposted Documents / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=12341 -- UnPosted Documents / Unposted Documents / Record ID
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=57937 -- Unprocessed Documents (All) / Unprocessed Documents / Record ID
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=208381 -- Vendor RMA / Vendor RMA / Create lines from
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=52006 -- Vendor RMA / Vendor RMA / Create Order From RMA
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=12120 -- Vendor RMA / Vendor RMA / Process RMA
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=12313 -- View Allocation / Allocation / Posted
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=12319 -- View Allocation / Allocation / Process Allocation
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=15514 -- View Chat / Chat / Record ID
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=6487 -- Window, Tab Field / Tab / Create Fields
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=11555 -- Workflow / Workflow / Validate Workflow
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=10448 -- Workflow Activities (all) / Activity / Manage Activity
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=11545 -- Workflow Activities (all) / Activity / Record ID
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=10448 -- Workflow Process / Activity / Manage Activity
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=11545 -- Workflow Process / Activity / Record ID
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=11683 -- Workflow Process / Event / Record ID
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=10457 -- Workflow Process / Process / Manage Process
|
||||
;
|
||||
|
||||
update ad_column set istoolbarbutton='N' where ad_column_id=11549 -- Workflow Process / Process / Record ID
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201301251443_IDEMPIERE-234.sql') FROM dual
|
||||
;
|
||||
|
|
@ -0,0 +1,48 @@
|
|||
-- Jan 25, 2013 5:26:22 PM PST
|
||||
-- IDEMPIERE-594 Improve positioning on windows
|
||||
INSERT INTO AD_SysConfig (AD_SysConfig_ID,EntityType,ConfigurationLevel,Value,Description,AD_SysConfig_UU,Created,Updated,AD_Client_ID,AD_Org_ID,CreatedBy,IsActive,UpdatedBy,Name) VALUES (200025,'D','C','N','Show Action Name on DocAction button','ee66f3e4-8fed-4591-97dd-ae1ba1219fdc',TO_TIMESTAMP('2013-01-25 17:26:21','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-01-25 17:26:21','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Y',100,'DOCACTIONBUTTON_SHOWACTIONNAME')
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:26:37 PM PST
|
||||
-- IDEMPIERE-594 Improve positioning on windows
|
||||
UPDATE AD_Element SET Name='Action',Updated=TO_TIMESTAMP('2013-01-25 17:26:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Element_ID=287
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:26:38 PM PST
|
||||
-- IDEMPIERE-594 Improve positioning on windows
|
||||
UPDATE AD_Element_Trl SET IsTranslated='N' WHERE AD_Element_ID=287
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:26:38 PM PST
|
||||
-- IDEMPIERE-594 Improve positioning on windows
|
||||
UPDATE AD_Column SET ColumnName='DocAction', Name='Action', Description='The targeted status of the document', Help='You find the current status in the Document Status field. The options are listed in a popup' WHERE AD_Element_ID=287
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:26:38 PM PST
|
||||
-- IDEMPIERE-594 Improve positioning on windows
|
||||
UPDATE AD_Process_Para SET ColumnName='DocAction', Name='Action', Description='The targeted status of the document', Help='You find the current status in the Document Status field. The options are listed in a popup', AD_Element_ID=287 WHERE UPPER(ColumnName)='DOCACTION' AND IsCentrallyMaintained='Y' AND AD_Element_ID IS NULL
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:26:38 PM PST
|
||||
-- IDEMPIERE-594 Improve positioning on windows
|
||||
UPDATE AD_Process_Para SET ColumnName='DocAction', Name='Action', Description='The targeted status of the document', Help='You find the current status in the Document Status field. The options are listed in a popup' WHERE AD_Element_ID=287 AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:26:38 PM PST
|
||||
-- IDEMPIERE-594 Improve positioning on windows
|
||||
UPDATE AD_InfoColumn SET ColumnName='DocAction', Name='Action', Description='The targeted status of the document', Help='You find the current status in the Document Status field. The options are listed in a popup' WHERE AD_Element_ID=287 AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:26:38 PM PST
|
||||
-- IDEMPIERE-594 Improve positioning on windows
|
||||
UPDATE AD_Field SET Name='Action', Description='The targeted status of the document', Help='You find the current status in the Document Status field. The options are listed in a popup' WHERE AD_Column_ID IN (SELECT AD_Column_ID FROM AD_Column WHERE AD_Element_ID=287) AND IsCentrallyMaintained='Y'
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:26:38 PM PST
|
||||
-- IDEMPIERE-594 Improve positioning on windows
|
||||
UPDATE AD_PrintFormatItem SET PrintName='Doc Action', Name='Action' WHERE IsCentrallyMaintained='Y' AND EXISTS (SELECT * FROM AD_Column c WHERE c.AD_Column_ID=AD_PrintFormatItem.AD_Column_ID AND c.AD_Element_ID=287)
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201301251726_IDEMPIERE-594_DocAction.sql') FROM dual
|
||||
;
|
||||
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,26 @@
|
|||
-- Jan 26, 2013 12:25:54 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
-- Hide Dunning Run - Send It button
|
||||
UPDATE AD_Field SET IsDisplayed='N', IsDisplayedGrid='N',Updated=TO_TIMESTAMP('2013-01-26 12:25:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10618
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 12:32:10 PM PST
|
||||
-- Hide Access Audit Window
|
||||
UPDATE AD_Tab SET IsInsertRecord='N', IsActive='N',Updated=TO_TIMESTAMP('2013-01-26 12:32:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=53137
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 12:32:16 PM PST
|
||||
UPDATE AD_Tab SET IsActive='N',Updated=TO_TIMESTAMP('2013-01-26 12:32:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Tab_ID=651
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 12:32:31 PM PST
|
||||
UPDATE AD_Menu SET IsActive='N',Updated=TO_TIMESTAMP('2013-01-26 12:32:31','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=475
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 12:32:37 PM PST
|
||||
UPDATE AD_Window SET IsActive='N',Updated=TO_TIMESTAMP('2013-01-26 12:32:37','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=326
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201301261235_IDEMPIERE-362.sql') FROM dual
|
||||
;
|
||||
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,493 @@
|
|||
-- Jan 26, 2013 4:58:21 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=150,Updated=TO_TIMESTAMP('2013-01-26 16:58:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2649
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:21 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=160,Updated=TO_TIMESTAMP('2013-01-26 16:58:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2661
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:21 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=170,Updated=TO_TIMESTAMP('2013-01-26 16:58:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2655
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:21 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=180,Updated=TO_TIMESTAMP('2013-01-26 16:58:21','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2657
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=190,Updated=TO_TIMESTAMP('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=12347
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=200,Updated=TO_TIMESTAMP('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=12348
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=210,Updated=TO_TIMESTAMP('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2656
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=220,Updated=TO_TIMESTAMP('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2658
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=230,Updated=TO_TIMESTAMP('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3825
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=240,Updated=TO_TIMESTAMP('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4860
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=250,Updated=TO_TIMESTAMP('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4861
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=260,Updated=TO_TIMESTAMP('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4862
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=270,Updated=TO_TIMESTAMP('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=56527
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=280,Updated=TO_TIMESTAMP('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2662
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=290,Updated=TO_TIMESTAMP('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3842
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=300,Updated=TO_TIMESTAMP('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3841
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=310,Updated=TO_TIMESTAMP('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5132
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=320,Updated=TO_TIMESTAMP('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5133
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=330,Updated=TO_TIMESTAMP('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3845
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=340,Updated=TO_TIMESTAMP('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3844
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=350,Updated=TO_TIMESTAMP('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3839
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=360,Updated=TO_TIMESTAMP('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3840
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=370,Updated=TO_TIMESTAMP('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3836
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=380,Updated=TO_TIMESTAMP('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3851
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=390,Updated=TO_TIMESTAMP('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2654
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=400,Updated=TO_TIMESTAMP('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3835
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=410,Updated=TO_TIMESTAMP('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3823
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=0, IsDisplayed='N', XPosition=1,Updated=TO_TIMESTAMP('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=58783
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=0, IsDisplayed='N', XPosition=1,Updated=TO_TIMESTAMP('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4092
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=0, IsDisplayed='N', XPosition=1,Updated=TO_TIMESTAMP('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4093
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=0, IsDisplayed='N', XPosition=1,Updated=TO_TIMESTAMP('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4094
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=0, IsDisplayed='N', XPosition=1,Updated=TO_TIMESTAMP('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4095
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=0, IsDisplayed='N', XPosition=1,Updated=TO_TIMESTAMP('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5134
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=0, IsDisplayed='N', XPosition=1,Updated=TO_TIMESTAMP('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=12349
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:58:22 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=0, IsDisplayed='N', XPosition=1,Updated=TO_TIMESTAMP('2013-01-26 16:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2660
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:59:15 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=0, IsDisplayed='N', XPosition=1,Updated=TO_TIMESTAMP('2013-01-26 16:59:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=58785
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:59:50 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Menu SET IsActive='N',Updated=TO_TIMESTAMP('2013-01-26 16:59:50','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Menu_ID=186
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:59:53 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Window SET IsActive='N',Updated=TO_TIMESTAMP('2013-01-26 16:59:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Window_ID=174
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 4:59:53 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_WF_Node SET Description='Revenue Recognition Rules', Name='Revenue Recognition', IsActive='N',Updated=TO_TIMESTAMP('2013-01-26 16:59:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_WF_Node_ID=50098
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:57 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=160,Updated=TO_TIMESTAMP('2013-01-26 17:00:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1025
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:57 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=170,Updated=TO_TIMESTAMP('2013-01-26 17:00:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2587
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:57 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=180,Updated=TO_TIMESTAMP('2013-01-26 17:00:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5888
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:57 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=190,Updated=TO_TIMESTAMP('2013-01-26 17:00:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=6129
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:57 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=200,Updated=TO_TIMESTAMP('2013-01-26 17:00:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1032
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:57 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=210,Updated=TO_TIMESTAMP('2013-01-26 17:00:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1031
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:57 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=220,Updated=TO_TIMESTAMP('2013-01-26 17:00:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201343
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:57 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=230,Updated=TO_TIMESTAMP('2013-01-26 17:00:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=6841
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:57 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=240,Updated=TO_TIMESTAMP('2013-01-26 17:00:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10411
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:57 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=250,Updated=TO_TIMESTAMP('2013-01-26 17:00:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1026
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:57 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=260,Updated=TO_TIMESTAMP('2013-01-26 17:00:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200294
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:57 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=270,Updated=TO_TIMESTAMP('2013-01-26 17:00:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200295
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=280,Updated=TO_TIMESTAMP('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200296
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=290,Updated=TO_TIMESTAMP('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200297
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=300,Updated=TO_TIMESTAMP('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=7646
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=310,Updated=TO_TIMESTAMP('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1319
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=320,Updated=TO_TIMESTAMP('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1320
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=330,Updated=TO_TIMESTAMP('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1321
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=340,Updated=TO_TIMESTAMP('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1322
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=350,Updated=TO_TIMESTAMP('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3743
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=360,Updated=TO_TIMESTAMP('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3746
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=370,Updated=TO_TIMESTAMP('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3747
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=380,Updated=TO_TIMESTAMP('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3744
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=390,Updated=TO_TIMESTAMP('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3745
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=400,Updated=TO_TIMESTAMP('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1027
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=410,Updated=TO_TIMESTAMP('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1028
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=420,Updated=TO_TIMESTAMP('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1568
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=430,Updated=TO_TIMESTAMP('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1569
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=440,Updated=TO_TIMESTAMP('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5381
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=450,Updated=TO_TIMESTAMP('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5383
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=460,Updated=TO_TIMESTAMP('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=12418
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=470,Updated=TO_TIMESTAMP('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5910
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=480,Updated=TO_TIMESTAMP('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=5911
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=490,Updated=TO_TIMESTAMP('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=6130
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=500,Updated=TO_TIMESTAMP('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=8307
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=510,Updated=TO_TIMESTAMP('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=6343
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=520,Updated=TO_TIMESTAMP('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=6344
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=530,Updated=TO_TIMESTAMP('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=58973
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=540,Updated=TO_TIMESTAMP('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=8608
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=550,Updated=TO_TIMESTAMP('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=8613
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=560,Updated=TO_TIMESTAMP('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=52015
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=570,Updated=TO_TIMESTAMP('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=52016
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:00:58 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=0, IsDisplayed='N', XPosition=1,Updated=TO_TIMESTAMP('2013-01-26 17:00:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3079
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:01:35 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=70,Updated=TO_TIMESTAMP('2013-01-26 17:01:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2609
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:01:35 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=0, IsDisplayed='N', XPosition=1,Updated=TO_TIMESTAMP('2013-01-26 17:01:35','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=12354
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:01:48 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=70,Updated=TO_TIMESTAMP('2013-01-26 17:01:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2603
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:01:48 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=0, IsDisplayed='N', XPosition=1,Updated=TO_TIMESTAMP('2013-01-26 17:01:48','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2602
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:03:44 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=140, IsDisplayed='Y', XPosition=5,Updated=TO_TIMESTAMP('2013-01-26 17:03:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=12361
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:03:44 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=150,Updated=TO_TIMESTAMP('2013-01-26 17:03:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1360
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:03:44 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=160,Updated=TO_TIMESTAMP('2013-01-26 17:03:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1361
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:03:44 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=170,Updated=TO_TIMESTAMP('2013-01-26 17:03:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1362
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:03:44 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=180,Updated=TO_TIMESTAMP('2013-01-26 17:03:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1363
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:03:44 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=190,Updated=TO_TIMESTAMP('2013-01-26 17:03:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1519
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:03:44 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=200, IsDisplayed='Y', XPosition=5,Updated=TO_TIMESTAMP('2013-01-26 17:03:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=1520
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:03:44 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=210,Updated=TO_TIMESTAMP('2013-01-26 17:03:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=4858
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:03:44 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=220, IsDisplayed='Y', XPosition=5,Updated=TO_TIMESTAMP('2013-01-26 17:03:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=53281
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:03:44 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=230,Updated=TO_TIMESTAMP('2013-01-26 17:03:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=13696
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:03:44 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=240, IsDisplayed='Y', XPosition=5,Updated=TO_TIMESTAMP('2013-01-26 17:03:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=50180
|
||||
;
|
||||
|
||||
-- Jan 26, 2013 5:03:44 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=250,Updated=TO_TIMESTAMP('2013-01-26 17:03:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=12180
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201301261704_IDEMPIERE-362.sql') FROM dual
|
||||
;
|
||||
|
|
@ -0,0 +1,175 @@
|
|||
-- Jan 25, 2013 5:00:42 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_InfoWindow (Processing,FromClause,AD_InfoWindow_UU,AD_InfoWindow_ID,AD_Table_ID,EntityType,Name,AD_Client_ID,AD_Org_ID,Created,Updated,UpdatedBy,CreatedBy,IsActive,IsDefault,IsDistinct,OrderByClause,IsValid) VALUES ('N','C_BPartner bp
|
||||
LEFT OUTER JOIN C_BPartner_Location l ON (bp.C_BPartner_ID=l.C_BPartner_ID AND l.IsActive=''Y'')
|
||||
LEFT OUTER JOIN AD_User c ON (bp.C_BPartner_ID=c.C_BPartner_ID AND (c.C_BPartner_Location_ID IS NULL OR c.C_BPartner_Location_ID=l.C_BPartner_Location_ID) AND c.IsActive=''Y'')
|
||||
LEFT OUTER JOIN C_Location a ON (l.C_Location_ID=a.C_Location_ID)','bdb6ccb3-1aed-4b9e-92f4-9db792480cb4',200001,291,'D','Business Partner Info',0,0,TO_TIMESTAMP('2013-01-25 17:00:39','YYYY-MM-DD HH24:MI:SS'),TO_TIMESTAMP('2013-01-25 17:00:39','YYYY-MM-DD HH24:MI:SS'),100,100,'Y','N','N','bp.Value','N')
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:00:42 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_InfoWindow_Access (AD_InfoWindow_Access_UU,Updated,UpdatedBy,AD_Role_ID,AD_InfoWindow_ID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive) VALUES ('d5601d36-ca71-439b-9e54-7e536d2e9411',TO_TIMESTAMP('2013-01-25 17:00:42','YYYY-MM-DD HH24:MI:SS'),100,50002,200001,0,0,TO_TIMESTAMP('2013-01-25 17:00:42','YYYY-MM-DD HH24:MI:SS'),100,'Y')
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:00:42 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_InfoWindow_Access (AD_InfoWindow_Access_UU,Updated,UpdatedBy,AD_Role_ID,AD_InfoWindow_ID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive) VALUES ('4d18fc73-b444-435c-9bb3-be403350dec4',TO_TIMESTAMP('2013-01-25 17:00:42','YYYY-MM-DD HH24:MI:SS'),100,0,200001,0,0,TO_TIMESTAMP('2013-01-25 17:00:42','YYYY-MM-DD HH24:MI:SS'),100,'Y')
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:00:42 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_InfoWindow_Access (AD_InfoWindow_Access_UU,Updated,UpdatedBy,AD_Role_ID,AD_InfoWindow_ID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive) VALUES ('67391a3c-06c1-4093-bdb1-d7edd33d6125',TO_TIMESTAMP('2013-01-25 17:00:42','YYYY-MM-DD HH24:MI:SS'),100,102,200001,11,0,TO_TIMESTAMP('2013-01-25 17:00:42','YYYY-MM-DD HH24:MI:SS'),100,'Y')
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:00:42 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_InfoWindow_Access (AD_InfoWindow_Access_UU,Updated,UpdatedBy,AD_Role_ID,AD_InfoWindow_ID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive) VALUES ('b58f0899-9056-41d8-8063-53f1641ce392',TO_TIMESTAMP('2013-01-25 17:00:42','YYYY-MM-DD HH24:MI:SS'),100,103,200001,11,0,TO_TIMESTAMP('2013-01-25 17:00:42','YYYY-MM-DD HH24:MI:SS'),100,'Y')
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:00:42 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_InfoWindow_Access (AD_InfoWindow_Access_UU,Updated,UpdatedBy,AD_Role_ID,AD_InfoWindow_ID,AD_Client_ID,AD_Org_ID,Created,CreatedBy,IsActive) VALUES ('db57c82f-a146-464c-b0f5-a665f453eb95',TO_TIMESTAMP('2013-01-25 17:00:42','YYYY-MM-DD HH24:MI:SS'),100,50001,200001,0,0,TO_TIMESTAMP('2013-01-25 17:00:42','YYYY-MM-DD HH24:MI:SS'),100,'Y')
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:01:34 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,QueryOperator,QueryFunction,SelectClause) VALUES (200001,'A search key allows you a fast method of finding a particular record.
|
||||
If you leave the search key empty, the system automatically creates a numeric number. The document sequence used for this fallback number is defined in the "Maintain Sequence" window with the name "DocumentNo_<TableName>", where TableName is the actual name of the table (e.g. C_Order).','18790dce-5531-4f38-885a-c1c658e4b468',10,200023,'Y','D','Search key for the record in the format required - must be unique',TO_TIMESTAMP('2013-01-25 17:01:33','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-01-25 17:01:33','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Search Key','Y','Value','Y','Y',620,10,'Like','Upper','bp.Value')
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:01:56 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,QueryOperator,QueryFunction,SelectClause) VALUES (200001,'The name of an entity (record) is used as an default search option in addition to the search key. The name is up to 60 characters in length.','f03d7099-a3a1-4a86-b553-28438c4fea58',10,200024,'Y','D','Alphanumeric identifier of the entity',TO_TIMESTAMP('2013-01-25 17:01:55','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-01-25 17:01:55','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Name','Y','Name','Y','Y',469,20,'Like','Upper','bp.Name')
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:03:34 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,QueryOperator,QueryFunction,SelectClause) VALUES (200001,'233bd7fd-180d-4c10-935b-23e6a04cf403',10,200025,'Y','D','Business Partner Contact Name',TO_TIMESTAMP('2013-01-25 17:03:33','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-01-25 17:03:33','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Contact Name','Y','ContactName','Y','Y',1839,30,'Like','Upper','c.Name AS ContactName')
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:05:11 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,QueryOperator,SelectClause) VALUES (200001,'232c6bc0-5390-4e7b-b40e-c52c2b4e578c',12,200026,'N','D','Available Credit based on Credit Limit (not Total Open Balance) and Credit Used',TO_TIMESTAMP('2013-01-25 17:05:09','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-01-25 17:05:09','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Credit Available','Y','SO_CreditAvailable','Y','Y',1851,40,'=','bp.SO_CreditLimit-bp.SO_CreditUsed AS SO_CreditAvailable')
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:06:02 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,SelectClause) VALUES (200001,'The Credit Used indicates the total amount of open or unpaid invoices in primary accounting currency for the Business Partner. Credit Management is based on the Total Open Amount, which includes Vendor activities.','2b743596-27ec-4968-a7c0-7a99834313d6',12,200027,'N','D','Current open balance',TO_TIMESTAMP('2013-01-25 17:06:01','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-01-25 17:06:01','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Credit Used','Y','SO_CreditUsed','Y','Y',554,50,'bp.SO_CreditUsed')
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:06:51 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,QueryOperator,SelectClause) VALUES (200001,'The Phone field identifies a telephone number','89b27cb6-0002-4905-ad0a-28b14e9eeebb',10,200028,'Y','D','Identifies a telephone number',TO_TIMESTAMP('2013-01-25 17:06:50','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-01-25 17:06:50','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Phone','Y','Phone','Y','Y',505,60,'Like','c.Phone')
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:08:01 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,QueryOperator,QueryFunction,SelectClause) VALUES (200001,'The Postal Code or ZIP identifies the postal code for this entity''s address.','04d7c2cb-01fc-4756-b2e3-53d91a27014c',10,200029,'Y','D','Postal code',TO_TIMESTAMP('2013-01-25 17:07:59','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-01-25 17:07:59','YYYY-MM-DD HH24:MI:SS'),0,0,100,'ZIP','Y','Postal','Y','Y',512,70,'Like','Upper','a.Postal')
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:08:26 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,QueryOperator,QueryFunction,SelectClause) VALUES (200001,'The City identifies a unique City for this Country or Region.','87b2a158-eb69-475c-9324-eefca8d0c7da',10,200030,'N','D','Identifies a City',TO_TIMESTAMP('2013-01-25 17:08:26','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-01-25 17:08:26','YYYY-MM-DD HH24:MI:SS'),0,0,100,'City','Y','City','Y','Y',225,80,'Like','Upper','a.City')
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:08:52 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,SelectClause) VALUES (200001,'The Total Open Balance Amount is the calculated open item amount for Customer and Vendor activity. If the Balance is below zero, we owe the Business Partner. The amount is used for Credit Management.
|
||||
Invoices and Payment Allocations determine the Open Balance (i.e. not Orders or Payments).','743b5ce2-9257-450a-8d0c-718caa30ed35',12,200031,'N','D','Total Open Balance Amount in primary Accounting Currency',TO_TIMESTAMP('2013-01-25 17:08:51','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-01-25 17:08:51','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Open Balance','Y','TotalOpenBalance','Y','Y',2562,90,'bp.TotalOpenBalance')
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:09:47 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,SeqNo,QueryOperator,SelectClause) VALUES (200001,'3032fa64-7e07-4adf-a252-07dabfe12427',12,200032,'N','D',TO_TIMESTAMP('2013-01-25 17:09:46','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-01-25 17:09:46','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Revenue','Y','Revenue','Y','Y',100,'=','bp.ActualLifetimeValue')
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:10:10 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,SelectClause) VALUES (200001,'The Address 1 identifies the address for an entity''s location','501f1ba5-9eed-4d94-af31-589a97c810f2',10,200033,'N','D','Address line 1 for this location',TO_TIMESTAMP('2013-01-25 17:10:09','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-01-25 17:10:09','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Address 1','Y','Address1','Y','Y',156,110,'a.Address1')
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:10:27 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
UPDATE AD_InfoColumn SET IsQueryCriteria='Y', QueryOperator='Like', QueryFunction='Upper',Updated=TO_TIMESTAMP('2013-01-25 17:10:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200033
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:10:53 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
UPDATE AD_InfoColumn SET IsQueryCriteria='N', QueryOperator=NULL, QueryFunction=NULL,Updated=TO_TIMESTAMP('2013-01-25 17:10:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200033
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:11:22 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,SelectClause) VALUES (200001,'If the Ship Address is selected, the location is used to ship goods to a customer or receive goods from a vendor.','e6154d16-db40-45e7-adaf-2f6aa19d78dc',20,200034,'N','D','Business Partner Shipment Address',TO_TIMESTAMP('2013-01-25 17:11:21','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-01-25 17:11:21','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Ship Address','Y','IsShipTo','Y','Y',929,120,'l.IsShipTo')
|
||||
;
|
||||
|
||||
-- Jan 25, 2013 5:11:33 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,SelectClause) VALUES (200001,'If the Invoice Address is selected, the location is used to send invoices to a customer or receive invoices from a vendor.','b1e8e398-453d-497d-8ae1-b5bcd3572191',20,200035,'N','D','Business Partner Invoice/Bill Address',TO_TIMESTAMP('2013-01-25 17:11:32','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-01-25 17:11:32','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Invoice Address','Y','IsBillTo','Y','Y',916,130,'l.IsBillTo')
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 3:58:06 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
UPDATE AD_Field SET DisplayLogic='@IsDisplayed@=Y|@IsQueryCriteria=Y',Updated=TO_TIMESTAMP('2013-01-29 15:58:06','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201625
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 3:58:22 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
UPDATE AD_Field SET DisplayLogic='@IsDisplayed@=Y|@IsQueryCriteria@=Y',Updated=TO_TIMESTAMP('2013-01-29 15:58:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=201625
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 3:59:19 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_Preference (AD_Preference_ID,AD_Window_ID,Attribute,AD_Preference_UU,Value,CreatedBy,AD_Org_ID,AD_Client_ID,Created,UpdatedBy,Updated,IsActive) VALUES (200000,102,'106|DetailPane.IsOpen','8366496c-2e0e-4898-92cc-0093cb95cecc','N',100,0,0,TO_TIMESTAMP('2013-01-29 15:59:17','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-01-29 15:59:17','YYYY-MM-DD HH24:MI:SS'),'Y')
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:04:57 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,DisplayLogic,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,QueryOperator,SelectClause) VALUES (200001,'The Customer checkbox indicates if this Business Partner is a customer. If it is select additional fields will display which further define this customer.','64676c6f-aab0-40d3-8875-23257197ef5c',20,200036,'Y','D','Indicates if this Business Partner is a Customer',TO_TIMESTAMP('2013-01-29 16:04:53','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-01-29 16:04:53','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Customer','Y','@IsSOTrx:Y@=Y','IsCustomer','N','Y',364,140,'=','bp.IsCustomer')
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:05:34 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,DisplayLogic,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,QueryOperator,SelectClause) VALUES (200001,'The Vendor checkbox indicates if this Business Partner is a Vendor. If it is selected, additional fields will display which further identify this vendor.','4c718d20-3bc5-41a4-ab06-d32ff0388596',20,200037,'Y','D','Indicates if this Business Partner is a Vendor',TO_TIMESTAMP('2013-01-29 16:05:32','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-01-29 16:05:32','YYYY-MM-DD HH24:MI:SS'),0,0,100,'Vendor','Y','@IsSOTrx:N@=N','IsVendor','N','Y',426,150,'=','bp.IsVendor')
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:20:54 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
UPDATE AD_InfoWindow SET IsValid='Y',Updated=TO_TIMESTAMP('2013-01-29 16:20:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoWindow_ID=200001
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:21:01 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
UPDATE AD_InfoWindow SET IsDefault='Y',Updated=TO_TIMESTAMP('2013-01-29 16:21:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoWindow_ID=200001
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:25:02 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
INSERT INTO AD_InfoColumn (AD_InfoWindow_ID,Help,AD_InfoColumn_UU,AD_Reference_ID,AD_InfoColumn_ID,IsQueryCriteria,EntityType,Description,Created,CreatedBy,Updated,AD_Client_ID,AD_Org_ID,UpdatedBy,Name,IsCentrallyMaintained,ColumnName,IsDisplayed,IsActive,AD_Element_ID,SeqNo,QueryOperator,QueryFunction,SelectClause) VALUES (200001,'The Email Address is the Electronic Mail ID for this User and should be fully qualified (e.g. joe.smith@company.com). The Email Address is used to access the self service application functionality from the web.','b2ad7812-46e8-4a59-8fec-b472270b985a',10,200038,'Y','D','Electronic Mail Address',TO_TIMESTAMP('2013-01-29 16:25:00','YYYY-MM-DD HH24:MI:SS'),100,TO_TIMESTAMP('2013-01-29 16:25:00','YYYY-MM-DD HH24:MI:SS'),0,0,100,'EMail Address','Y','EMail','N','Y',881,160,'Like','Upper','c.EMail')
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:26:08 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
UPDATE AD_InfoColumn SET SeqNo=35,Updated=TO_TIMESTAMP('2013-01-29 16:26:08','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200038
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:56:19 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
UPDATE AD_InfoColumn SET AD_Reference_ID=17, AD_Reference_Value_ID=319,Updated=TO_TIMESTAMP('2013-01-29 16:56:19','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200036
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:56:34 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
UPDATE AD_InfoColumn SET AD_Reference_ID=17, AD_Reference_Value_ID=319,Updated=TO_TIMESTAMP('2013-01-29 16:56:34','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_InfoColumn_ID=200037
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 5:05:53 PM MYT
|
||||
-- IDEMPIERE-325 Complete AD based info window ( AD_InfoWindow ) implementation
|
||||
UPDATE AD_Message SET MsgTip='Match all search criteria',Updated=TO_TIMESTAMP('2013-01-29 17:05:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Message_ID=518
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201301291606_IDEMPIERE-325.sql') FROM dual
|
||||
;
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,20 @@
|
|||
-- Jan 29, 2013 4:07:24 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_WF_NodeNext SET IsActive='N',Updated=TO_TIMESTAMP('2013-01-29 16:07:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_WF_NodeNext_ID=171
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:07:44 PM PST
|
||||
UPDATE AD_WF_NodeNext SET IsActive='N',Updated=TO_TIMESTAMP('2013-01-29 16:07:44','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_WF_NodeNext_ID=50075
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:08:08 PM PST
|
||||
INSERT INTO AD_WF_NodeNext (SeqNo,EntityType,IsStdUserWorkflow,AD_WF_Node_ID,AD_WF_NodeNext_ID,AD_WF_Next_ID,AD_WF_NodeNext_UU,UpdatedBy,AD_Org_ID,CreatedBy,Updated,AD_Client_ID,Created,IsActive) VALUES (10,'D','N',171,200000,161,'53e71f53-8568-40bd-bc97-264121dbaf57',100,0,100,TO_TIMESTAMP('2013-01-29 16:08:07','YYYY-MM-DD HH24:MI:SS'),0,TO_TIMESTAMP('2013-01-29 16:08:07','YYYY-MM-DD HH24:MI:SS'),'Y')
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:08:16 PM PST
|
||||
UPDATE AD_WF_NodeNext SET SeqNo=1,Updated=TO_TIMESTAMP('2013-01-29 16:08:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_WF_NodeNext_ID=200000
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201301291609_IDEMPIERE-362.sql') FROM dual
|
||||
;
|
||||
|
|
@ -0,0 +1,334 @@
|
|||
-- Jan 29, 2013 4:33:13 PM PST
|
||||
-- IDEMPIERE-594 Improve positioning on windows
|
||||
UPDATE AD_Field SET ColumnSpan=2, SeqNo=140, IsDisplayed='Y', XPosition=4,Updated=TO_TIMESTAMP('2013-01-29 16:33:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2162
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:13 PM PST
|
||||
UPDATE AD_Field SET SeqNo=150,Updated=TO_TIMESTAMP('2013-01-29 16:33:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9615
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=160,Updated=TO_TIMESTAMP('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=8238
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET ColumnSpan=2, SeqNo=170,Updated=TO_TIMESTAMP('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9606
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET ColumnSpan=2, SeqNo=180,Updated=TO_TIMESTAMP('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10592
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=190,Updated=TO_TIMESTAMP('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2155
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=200,Updated=TO_TIMESTAMP('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9620
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=210,Updated=TO_TIMESTAMP('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2160
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=220,Updated=TO_TIMESTAMP('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=57981
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=230,Updated=TO_TIMESTAMP('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2164
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=240,Updated=TO_TIMESTAMP('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2133
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=250,Updated=TO_TIMESTAMP('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2141
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=260,Updated=TO_TIMESTAMP('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2136
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=270, AD_FieldGroup_ID=200005, IsDisplayed='Y', XPosition=1,Updated=TO_TIMESTAMP('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9600
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=280, AD_FieldGroup_ID=200005,Updated=TO_TIMESTAMP('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9602
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=290, AD_FieldGroup_ID=200005,Updated=TO_TIMESTAMP('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9624
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=300, AD_FieldGroup_ID=200005,Updated=TO_TIMESTAMP('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9601
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=310, IsDisplayed='Y', XPosition=1,Updated=TO_TIMESTAMP('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9612
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=320, AD_FieldGroup_ID=200005, IsDisplayed='Y', XPosition=4,Updated=TO_TIMESTAMP('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9607
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=330, IsDisplayed='Y', XPosition=1,Updated=TO_TIMESTAMP('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9622
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=340, AD_FieldGroup_ID=200005, IsDisplayed='Y', XPosition=1,Updated=TO_TIMESTAMP('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9611
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=350, AD_FieldGroup_ID=200005, IsDisplayed='Y', XPosition=4,Updated=TO_TIMESTAMP('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10470
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=360, AD_FieldGroup_ID=200005, IsDisplayed='Y', XPosition=1,Updated=TO_TIMESTAMP('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9628
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=370, AD_FieldGroup_ID=200005,Updated=TO_TIMESTAMP('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=54556
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=380, AD_FieldGroup_ID=200005, IsDisplayed='Y', XPosition=7,Updated=TO_TIMESTAMP('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9619
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=390, AD_FieldGroup_ID=200006,Updated=TO_TIMESTAMP('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9610
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=400, AD_FieldGroup_ID=200006,Updated=TO_TIMESTAMP('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9603
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=410, IsDisplayed='Y', XPosition=8,Updated=TO_TIMESTAMP('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200622
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:14 PM PST
|
||||
UPDATE AD_Field SET SeqNo=420, AD_FieldGroup_ID=200006,Updated=TO_TIMESTAMP('2013-01-29 16:33:14','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9621
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:15 PM PST
|
||||
UPDATE AD_Field SET SeqNo=430, AD_FieldGroup_ID=200006,Updated=TO_TIMESTAMP('2013-01-29 16:33:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9608
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:15 PM PST
|
||||
UPDATE AD_Field SET SeqNo=440,Updated=TO_TIMESTAMP('2013-01-29 16:33:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9609
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:15 PM PST
|
||||
UPDATE AD_Field SET SeqNo=450,Updated=TO_TIMESTAMP('2013-01-29 16:33:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2124
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:15 PM PST
|
||||
UPDATE AD_Field SET SeqNo=460,Updated=TO_TIMESTAMP('2013-01-29 16:33:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3261
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:15 PM PST
|
||||
UPDATE AD_Field SET SeqNo=470, IsDisplayed='Y', XPosition=1,Updated=TO_TIMESTAMP('2013-01-29 16:33:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9604
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:15 PM PST
|
||||
UPDATE AD_Field SET SeqNo=480,Updated=TO_TIMESTAMP('2013-01-29 16:33:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9618
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:15 PM PST
|
||||
UPDATE AD_Field SET SeqNo=490,Updated=TO_TIMESTAMP('2013-01-29 16:33:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9625
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:15 PM PST
|
||||
UPDATE AD_Field SET SeqNo=500,Updated=TO_TIMESTAMP('2013-01-29 16:33:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9613
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:15 PM PST
|
||||
UPDATE AD_Field SET SeqNo=510,Updated=TO_TIMESTAMP('2013-01-29 16:33:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2154
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:15 PM PST
|
||||
UPDATE AD_Field SET SeqNo=520,Updated=TO_TIMESTAMP('2013-01-29 16:33:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2132
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:15 PM PST
|
||||
UPDATE AD_Field SET SeqNo=530,Updated=TO_TIMESTAMP('2013-01-29 16:33:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2144
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:15 PM PST
|
||||
UPDATE AD_Field SET SeqNo=540,Updated=TO_TIMESTAMP('2013-01-29 16:33:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2127
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:15 PM PST
|
||||
UPDATE AD_Field SET SeqNo=550,Updated=TO_TIMESTAMP('2013-01-29 16:33:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2146
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:15 PM PST
|
||||
UPDATE AD_Field SET SeqNo=560,Updated=TO_TIMESTAMP('2013-01-29 16:33:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2153
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:15 PM PST
|
||||
UPDATE AD_Field SET SeqNo=570,Updated=TO_TIMESTAMP('2013-01-29 16:33:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2148
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:15 PM PST
|
||||
UPDATE AD_Field SET SeqNo=580,Updated=TO_TIMESTAMP('2013-01-29 16:33:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2128
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:33:15 PM PST
|
||||
UPDATE AD_Field SET SeqNo=590,Updated=TO_TIMESTAMP('2013-01-29 16:33:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2135
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:34:13 PM PST
|
||||
UPDATE AD_Field SET AD_FieldGroup_ID=200005,Updated=TO_TIMESTAMP('2013-01-29 16:34:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9612
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:34:55 PM PST
|
||||
UPDATE AD_Field SET AD_FieldGroup_ID=200005,Updated=TO_TIMESTAMP('2013-01-29 16:34:55','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9622
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:35:10 PM PST
|
||||
UPDATE AD_Field SET AD_FieldGroup_ID=200006,Updated=TO_TIMESTAMP('2013-01-29 16:35:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200622
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:35:58 PM PST
|
||||
UPDATE AD_Field SET AD_FieldGroup_ID=200008,Updated=TO_TIMESTAMP('2013-01-29 16:35:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2124
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:36:03 PM PST
|
||||
UPDATE AD_Field SET AD_FieldGroup_ID=200008,Updated=TO_TIMESTAMP('2013-01-29 16:36:03','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3261
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:36:15 PM PST
|
||||
UPDATE AD_Field SET AD_FieldGroup_ID=200008,Updated=TO_TIMESTAMP('2013-01-29 16:36:15','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9604
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:36:20 PM PST
|
||||
UPDATE AD_Field SET AD_FieldGroup_ID=200008,Updated=TO_TIMESTAMP('2013-01-29 16:36:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9618
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:36:27 PM PST
|
||||
UPDATE AD_Field SET AD_FieldGroup_ID=200008,Updated=TO_TIMESTAMP('2013-01-29 16:36:27','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9625
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:36:32 PM PST
|
||||
UPDATE AD_Field SET AD_FieldGroup_ID=200008,Updated=TO_TIMESTAMP('2013-01-29 16:36:32','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9613
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:36:53 PM PST
|
||||
UPDATE AD_Field SET AD_FieldGroup_ID=200007,Updated=TO_TIMESTAMP('2013-01-29 16:36:53','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2132
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:36:56 PM PST
|
||||
UPDATE AD_Field SET AD_FieldGroup_ID=200007,Updated=TO_TIMESTAMP('2013-01-29 16:36:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2144
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:36:58 PM PST
|
||||
UPDATE AD_Field SET AD_FieldGroup_ID=200007,Updated=TO_TIMESTAMP('2013-01-29 16:36:58','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2127
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:37:01 PM PST
|
||||
UPDATE AD_Field SET AD_FieldGroup_ID=200007,Updated=TO_TIMESTAMP('2013-01-29 16:37:01','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2146
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:37:04 PM PST
|
||||
UPDATE AD_Field SET AD_FieldGroup_ID=200007,Updated=TO_TIMESTAMP('2013-01-29 16:37:04','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2153
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:37:07 PM PST
|
||||
UPDATE AD_Field SET AD_FieldGroup_ID=200007,Updated=TO_TIMESTAMP('2013-01-29 16:37:07','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2148
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:37:10 PM PST
|
||||
UPDATE AD_Field SET AD_FieldGroup_ID=200007,Updated=TO_TIMESTAMP('2013-01-29 16:37:10','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2128
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:37:13 PM PST
|
||||
UPDATE AD_Field SET AD_FieldGroup_ID=200007,Updated=TO_TIMESTAMP('2013-01-29 16:37:13','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2135
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:37:25 PM PST
|
||||
UPDATE AD_Field SET DisplayLogic=NULL,Updated=TO_TIMESTAMP('2013-01-29 16:37:25','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=2135
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:38:16 PM PST
|
||||
UPDATE AD_Field SET DisplayLogic='@IsVendor@=Y',Updated=TO_TIMESTAMP('2013-01-29 16:38:16','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9608
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:38:20 PM PST
|
||||
UPDATE AD_Field SET DisplayLogic='@IsVendor@=Y',Updated=TO_TIMESTAMP('2013-01-29 16:38:20','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9621
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:38:22 PM PST
|
||||
UPDATE AD_Field SET DisplayLogic='@IsVendor@=Y',Updated=TO_TIMESTAMP('2013-01-29 16:38:22','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=200622
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:38:24 PM PST
|
||||
UPDATE AD_Field SET DisplayLogic='@IsVendor@=Y',Updated=TO_TIMESTAMP('2013-01-29 16:38:24','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9603
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:38:28 PM PST
|
||||
UPDATE AD_Field SET DisplayLogic='@IsVendor@=Y',Updated=TO_TIMESTAMP('2013-01-29 16:38:28','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9610
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:38:36 PM PST
|
||||
UPDATE AD_Field SET DisplayLogic='@IsCustomer@=Y',Updated=TO_TIMESTAMP('2013-01-29 16:38:36','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9619
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:38:38 PM PST
|
||||
UPDATE AD_Field SET DisplayLogic='@IsCustomer@=Y',Updated=TO_TIMESTAMP('2013-01-29 16:38:38','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=54556
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:38:40 PM PST
|
||||
UPDATE AD_Field SET DisplayLogic='@IsCustomer@=Y',Updated=TO_TIMESTAMP('2013-01-29 16:38:40','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9628
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:38:42 PM PST
|
||||
UPDATE AD_Field SET DisplayLogic='@IsCustomer@=Y',Updated=TO_TIMESTAMP('2013-01-29 16:38:42','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=10470
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:38:45 PM PST
|
||||
UPDATE AD_Field SET DisplayLogic='@IsCustomer@=Y',Updated=TO_TIMESTAMP('2013-01-29 16:38:45','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9611
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:38:46 PM PST
|
||||
UPDATE AD_Field SET DisplayLogic='@IsCustomer@=Y',Updated=TO_TIMESTAMP('2013-01-29 16:38:46','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9622
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:38:49 PM PST
|
||||
UPDATE AD_Field SET DisplayLogic='@IsCustomer@=Y',Updated=TO_TIMESTAMP('2013-01-29 16:38:49','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9607
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:38:52 PM PST
|
||||
UPDATE AD_Field SET DisplayLogic='@IsCustomer@=Y',Updated=TO_TIMESTAMP('2013-01-29 16:38:52','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9612
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:38:54 PM PST
|
||||
UPDATE AD_Field SET DisplayLogic='@IsCustomer@=Y',Updated=TO_TIMESTAMP('2013-01-29 16:38:54','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9601
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:38:56 PM PST
|
||||
UPDATE AD_Field SET DisplayLogic='@IsCustomer@=Y',Updated=TO_TIMESTAMP('2013-01-29 16:38:56','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9624
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:38:59 PM PST
|
||||
UPDATE AD_Field SET DisplayLogic='@IsCustomer@=Y',Updated=TO_TIMESTAMP('2013-01-29 16:38:59','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9602
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 4:39:02 PM PST
|
||||
UPDATE AD_Field SET DisplayLogic='@IsCustomer@=Y',Updated=TO_TIMESTAMP('2013-01-29 16:39:02','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=9600
|
||||
;
|
||||
|
||||
update ad_field set isactive='N' where ad_tab_id in (223,224,225)
|
||||
;
|
||||
|
||||
update ad_tab set isactive='N' where ad_tab_id in (223,224,225)
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201301291642_IDEMPIERE-594.sql') FROM dual
|
||||
;
|
||||
|
|
@ -0,0 +1,13 @@
|
|||
-- Jan 29, 2013 5:06:41 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=190,Updated=TO_TIMESTAMP('2013-01-29 17:06:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=3945
|
||||
;
|
||||
|
||||
-- Jan 29, 2013 5:06:41 PM PST
|
||||
-- IDEMPIERE-362 Hide things that don't work on iDempiere
|
||||
UPDATE AD_Field SET SeqNo=0, IsDisplayed='N', XPosition=1,Updated=TO_TIMESTAMP('2013-01-29 17:06:41','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Field_ID=58784
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201301291707_IDEMPIERE-362.sql') FROM dual
|
||||
;
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
-- IDEMPIERE-294 Maintenance / Fix wrong datatype of column on DB
|
||||
ALTER TABLE ad_broadcastmessage DROP COLUMN notification_client_id;
|
||||
;
|
||||
|
||||
ALTER TABLE ad_broadcastmessage ADD COLUMN notification_client_id numeric(10,0) NULL;
|
||||
;
|
||||
|
||||
SELECT register_migration_script('201301291717_IDEMPIERE-294.sql') FROM dual
|
||||
;
|
||||
|
|
@ -65,7 +65,7 @@ BEGIN
|
|||
|| r.ad_role_id
|
||||
|| ','||r.ad_client_id||','||r.ad_org_id||',''Y'', Current_Timestamp,0, Current_Timestamp,0,''Y'',generate_uuid() FROM AD_WorkFlow w LEFT JOIN AD_WorkFlow_Access wa ON (wa.AD_Role_ID='
|
||||
|| r.ad_role_id
|
||||
|| ' AND w.AD_WorkFlow_ID = wa.AD_WorkFlow_ID) WHERE wa.AD_WorkFlow_ID IS NULL AND AccessLevel IN '
|
||||
|| ' AND w.AD_WorkFlow_ID = wa.AD_WorkFlow_ID) WHERE w.AD_Client_ID IN (0,'||r.ad_client_id||') AND wa.AD_WorkFlow_ID IS NULL AND AccessLevel IN '
|
||||
|| roleaccesslevel;
|
||||
|
||||
-- DBMS_OUTPUT.PUT_LINE (sqlins);
|
||||
|
|
|
@ -63,7 +63,7 @@ BEGIN
|
|||
|| r.ad_role_id
|
||||
|| ','||r.ad_client_id||','||r.ad_org_id||',''Y'', Current_Timestamp,0, Current_Timestamp,0,''Y'',generate_uuid() FROM AD_WorkFlow w LEFT JOIN AD_WorkFlow_Access wa ON (wa.AD_Role_ID='
|
||||
|| r.ad_role_id
|
||||
|| ' AND w.AD_WorkFlow_ID = wa.AD_WorkFlow_ID) WHERE wa.AD_WorkFlow_ID IS NULL AND AccessLevel IN '
|
||||
|| ' AND w.AD_WorkFlow_ID = wa.AD_WorkFlow_ID) WHERE w.AD_Client_ID IN (0,'||r.ad_client_id||') AND wa.AD_WorkFlow_ID IS NULL AND AccessLevel IN '
|
||||
|| roleaccesslevel;
|
||||
|
||||
EXECUTE sqlins;
|
||||
|
|
|
@ -0,0 +1,91 @@
|
|||
/**********************************************************************
|
||||
* This file is part of Adempiere ERP Bazaar *
|
||||
* http://www.adempiere.org *
|
||||
* *
|
||||
* Copyright (C) Alejandro Falcone *
|
||||
* Copyright (C) Contributors *
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or *
|
||||
* modify it under the terms of the GNU General Public License *
|
||||
* as published by the Free Software Foundation; either version 2 *
|
||||
* of the License, or (at your option) any later version. *
|
||||
* *
|
||||
* This program is distributed in the hope that it will be useful, *
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||
* GNU General Public License for more details. *
|
||||
* *
|
||||
* You should have received a copy of the GNU General Public License *
|
||||
* along with this program; if not, write to the Free Software *
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, *
|
||||
* MA 02110-1301, USA. *
|
||||
* *
|
||||
* Contributors: *
|
||||
* - Alejandro Falcone (afalcone@users.sourceforge.net) *
|
||||
* http://www.openbiz.com.ar *
|
||||
* *
|
||||
* Sponsors: *
|
||||
* - Idalica Inc. (http://www.idalica.com) *
|
||||
***********************************************************************/
|
||||
package org.adempiere.process;
|
||||
|
||||
|
||||
import java.util.logging.*;
|
||||
import org.compiere.model.*;
|
||||
import org.compiere.process.ProcessInfoParameter;
|
||||
import org.compiere.process.SvrProcess;
|
||||
|
||||
/**
|
||||
* Close Deposit Batch.
|
||||
*
|
||||
* @author Alejandro Falcone
|
||||
* @version $Id: DepositBatchClose.java,v 1.2 2007/07/03 00:51:01 afalcone Exp $
|
||||
*/
|
||||
public class DepositBatchClose extends SvrProcess
|
||||
{
|
||||
/** Deposit Batch from Record */
|
||||
private int m_X_DepositBatch_ID = 0;
|
||||
|
||||
/**
|
||||
* Prepare - e.g., get Parameters.
|
||||
*/
|
||||
protected void prepare()
|
||||
{
|
||||
ProcessInfoParameter[] para = getParameter();
|
||||
for (int i = 0; i < para.length; i++)
|
||||
{
|
||||
String name = para[i].getParameterName();
|
||||
if (para[i].getParameter() == null)
|
||||
;
|
||||
else
|
||||
log.log(Level.SEVERE, "prepare - Unknown Parameter: " + name);
|
||||
}
|
||||
m_X_DepositBatch_ID = getRecord_ID();
|
||||
} // prepare
|
||||
|
||||
/**
|
||||
* Perform process.
|
||||
* @return Message (translated text)
|
||||
* @throws Exception if not successful
|
||||
*/
|
||||
protected String doIt() throws Exception
|
||||
{
|
||||
MDepositBatch depositbatch = new MDepositBatch (getCtx(), m_X_DepositBatch_ID, get_TrxName());
|
||||
log.info("doIt - " + depositbatch);
|
||||
|
||||
MDepositBatchLine[] depositbatchLines = depositbatch.getLines();
|
||||
|
||||
// Close lines
|
||||
for (int line = 0; line < depositbatchLines.length; line++)
|
||||
{
|
||||
depositbatchLines[line].setProcessed(true);
|
||||
depositbatchLines[line].save();
|
||||
}
|
||||
|
||||
depositbatch.setProcessed(true);
|
||||
depositbatch.save();
|
||||
|
||||
return "";
|
||||
} // doIt
|
||||
|
||||
} // DepositBatchClose
|
|
@ -3116,6 +3116,8 @@ public class GridTab implements DataStatusListener, Evaluatee, Serializable
|
|||
{
|
||||
tabNo--;
|
||||
currentLevel = Env.getContextAsInt(m_vo.ctx, m_vo.WindowNo, tabNo, GridTab.CTX_TabLevel);
|
||||
if (tabNo == 0)
|
||||
break;
|
||||
}
|
||||
return tabNo;
|
||||
}
|
||||
|
|
|
@ -3690,6 +3690,8 @@ public class GridTable extends AbstractTableModel
|
|||
{
|
||||
tabNo--;
|
||||
currentLevel = Env.getContextAsInt(m_ctx, m_WindowNo, tabNo, GridTab.CTX_TabLevel);
|
||||
if (tabNo == 0)
|
||||
break;
|
||||
}
|
||||
return tabNo;
|
||||
}
|
||||
|
|
|
@ -395,4 +395,13 @@ public interface I_C_BankStatement
|
|||
* User who updated this records
|
||||
*/
|
||||
public int getUpdatedBy();
|
||||
|
||||
/** Column name X_CreateFromBatch */
|
||||
public static final String COLUMNNAME_X_CreateFromBatch = "X_CreateFromBatch";
|
||||
|
||||
/** Set Create From Batch */
|
||||
public void setX_CreateFromBatch (String X_CreateFromBatch);
|
||||
|
||||
/** Get Create From Batch */
|
||||
public String getX_CreateFromBatch();
|
||||
}
|
||||
|
|
|
@ -0,0 +1,262 @@
|
|||
/******************************************************************************
|
||||
* Product: iDempiere ERP & CRM Smart Business Solution *
|
||||
* Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
|
||||
* This program is free software, you can redistribute it and/or modify it *
|
||||
* under the terms version 2 of the GNU General Public License as published *
|
||||
* by the Free Software Foundation. This program is distributed in the hope *
|
||||
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||
* See the GNU General Public License for more details. *
|
||||
* You should have received a copy of the GNU General Public License along *
|
||||
* with this program, if not, write to the Free Software Foundation, Inc., *
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
||||
* For the text or an alternative of this public license, you may reach us *
|
||||
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
|
||||
* or via info@compiere.org or http://www.compiere.org/license.html *
|
||||
*****************************************************************************/
|
||||
package org.compiere.model;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
import org.compiere.util.KeyNamePair;
|
||||
|
||||
/** Generated Interface for X_DepositBatch
|
||||
* @author iDempiere (generated)
|
||||
* @version Release 1.0a
|
||||
*/
|
||||
public interface I_X_DepositBatch
|
||||
{
|
||||
|
||||
/** TableName=X_DepositBatch */
|
||||
public static final String Table_Name = "X_DepositBatch";
|
||||
|
||||
/** AD_Table_ID=200056 */
|
||||
public static final int Table_ID = 200056;
|
||||
|
||||
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
|
||||
|
||||
/** AccessLevel = 3 - Client - Org
|
||||
*/
|
||||
BigDecimal accessLevel = BigDecimal.valueOf(3);
|
||||
|
||||
/** Load Meta Data */
|
||||
|
||||
/** Column name AD_Client_ID */
|
||||
public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID";
|
||||
|
||||
/** Get Client.
|
||||
* Client/Tenant for this installation.
|
||||
*/
|
||||
public int getAD_Client_ID();
|
||||
|
||||
/** Column name AD_Org_ID */
|
||||
public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID";
|
||||
|
||||
/** Set Organization.
|
||||
* Organizational entity within client
|
||||
*/
|
||||
public void setAD_Org_ID (int AD_Org_ID);
|
||||
|
||||
/** Get Organization.
|
||||
* Organizational entity within client
|
||||
*/
|
||||
public int getAD_Org_ID();
|
||||
|
||||
/** Column name C_BankAccount_ID */
|
||||
public static final String COLUMNNAME_C_BankAccount_ID = "C_BankAccount_ID";
|
||||
|
||||
/** Set Bank Account.
|
||||
* Account at the Bank
|
||||
*/
|
||||
public void setC_BankAccount_ID (int C_BankAccount_ID);
|
||||
|
||||
/** Get Bank Account.
|
||||
* Account at the Bank
|
||||
*/
|
||||
public int getC_BankAccount_ID();
|
||||
|
||||
public org.compiere.model.I_C_BankAccount getC_BankAccount() throws RuntimeException;
|
||||
|
||||
/** Column name C_DocType_ID */
|
||||
public static final String COLUMNNAME_C_DocType_ID = "C_DocType_ID";
|
||||
|
||||
/** Set Document Type.
|
||||
* Document type or rules
|
||||
*/
|
||||
public void setC_DocType_ID (int C_DocType_ID);
|
||||
|
||||
/** Get Document Type.
|
||||
* Document type or rules
|
||||
*/
|
||||
public int getC_DocType_ID();
|
||||
|
||||
public org.compiere.model.I_C_DocType getC_DocType() throws RuntimeException;
|
||||
|
||||
/** Column name Created */
|
||||
public static final String COLUMNNAME_Created = "Created";
|
||||
|
||||
/** Get Created.
|
||||
* Date this record was created
|
||||
*/
|
||||
public Timestamp getCreated();
|
||||
|
||||
/** Column name CreatedBy */
|
||||
public static final String COLUMNNAME_CreatedBy = "CreatedBy";
|
||||
|
||||
/** Get Created By.
|
||||
* User who created this records
|
||||
*/
|
||||
public int getCreatedBy();
|
||||
|
||||
/** Column name CreateFrom */
|
||||
public static final String COLUMNNAME_CreateFrom = "CreateFrom";
|
||||
|
||||
/** Set Create lines from.
|
||||
* Process which will generate a new document lines based on an existing document
|
||||
*/
|
||||
public void setCreateFrom (String CreateFrom);
|
||||
|
||||
/** Get Create lines from.
|
||||
* Process which will generate a new document lines based on an existing document
|
||||
*/
|
||||
public String getCreateFrom();
|
||||
|
||||
/** Column name DateDeposit */
|
||||
public static final String COLUMNNAME_DateDeposit = "DateDeposit";
|
||||
|
||||
/** Set Deposit Date */
|
||||
public void setDateDeposit (Timestamp DateDeposit);
|
||||
|
||||
/** Get Deposit Date */
|
||||
public Timestamp getDateDeposit();
|
||||
|
||||
/** Column name DateDoc */
|
||||
public static final String COLUMNNAME_DateDoc = "DateDoc";
|
||||
|
||||
/** Set Document Date.
|
||||
* Date of the Document
|
||||
*/
|
||||
public void setDateDoc (Timestamp DateDoc);
|
||||
|
||||
/** Get Document Date.
|
||||
* Date of the Document
|
||||
*/
|
||||
public Timestamp getDateDoc();
|
||||
|
||||
/** Column name DepositAmt */
|
||||
public static final String COLUMNNAME_DepositAmt = "DepositAmt";
|
||||
|
||||
/** Set Deposit Amount */
|
||||
public void setDepositAmt (BigDecimal DepositAmt);
|
||||
|
||||
/** Get Deposit Amount */
|
||||
public BigDecimal getDepositAmt();
|
||||
|
||||
/** Column name Description */
|
||||
public static final String COLUMNNAME_Description = "Description";
|
||||
|
||||
/** Set Description.
|
||||
* Optional short description of the record
|
||||
*/
|
||||
public void setDescription (String Description);
|
||||
|
||||
/** Get Description.
|
||||
* Optional short description of the record
|
||||
*/
|
||||
public String getDescription();
|
||||
|
||||
/** Column name DocStatus */
|
||||
public static final String COLUMNNAME_DocStatus = "DocStatus";
|
||||
|
||||
/** Set Document Status.
|
||||
* The current status of the document
|
||||
*/
|
||||
public void setDocStatus (String DocStatus);
|
||||
|
||||
/** Get Document Status.
|
||||
* The current status of the document
|
||||
*/
|
||||
public String getDocStatus();
|
||||
|
||||
/** Column name DocumentNo */
|
||||
public static final String COLUMNNAME_DocumentNo = "DocumentNo";
|
||||
|
||||
/** Set Document No.
|
||||
* Document sequence number of the document
|
||||
*/
|
||||
public void setDocumentNo (String DocumentNo);
|
||||
|
||||
/** Get Document No.
|
||||
* Document sequence number of the document
|
||||
*/
|
||||
public String getDocumentNo();
|
||||
|
||||
/** Column name IsActive */
|
||||
public static final String COLUMNNAME_IsActive = "IsActive";
|
||||
|
||||
/** Set Active.
|
||||
* The record is active in the system
|
||||
*/
|
||||
public void setIsActive (boolean IsActive);
|
||||
|
||||
/** Get Active.
|
||||
* The record is active in the system
|
||||
*/
|
||||
public boolean isActive();
|
||||
|
||||
/** Column name Processed */
|
||||
public static final String COLUMNNAME_Processed = "Processed";
|
||||
|
||||
/** Set Processed.
|
||||
* The document has been processed
|
||||
*/
|
||||
public void setProcessed (boolean Processed);
|
||||
|
||||
/** Get Processed.
|
||||
* The document has been processed
|
||||
*/
|
||||
public boolean isProcessed();
|
||||
|
||||
/** Column name Processing */
|
||||
public static final String COLUMNNAME_Processing = "Processing";
|
||||
|
||||
/** Set Process Now */
|
||||
public void setProcessing (boolean Processing);
|
||||
|
||||
/** Get Process Now */
|
||||
public boolean isProcessing();
|
||||
|
||||
/** Column name Updated */
|
||||
public static final String COLUMNNAME_Updated = "Updated";
|
||||
|
||||
/** Get Updated.
|
||||
* Date this record was updated
|
||||
*/
|
||||
public Timestamp getUpdated();
|
||||
|
||||
/** Column name UpdatedBy */
|
||||
public static final String COLUMNNAME_UpdatedBy = "UpdatedBy";
|
||||
|
||||
/** Get Updated By.
|
||||
* User who updated this records
|
||||
*/
|
||||
public int getUpdatedBy();
|
||||
|
||||
/** Column name X_DepositBatch_ID */
|
||||
public static final String COLUMNNAME_X_DepositBatch_ID = "X_DepositBatch_ID";
|
||||
|
||||
/** Set Deposit Batch */
|
||||
public void setX_DepositBatch_ID (int X_DepositBatch_ID);
|
||||
|
||||
/** Get Deposit Batch */
|
||||
public int getX_DepositBatch_ID();
|
||||
|
||||
/** Column name X_DepositBatch_UU */
|
||||
public static final String COLUMNNAME_X_DepositBatch_UU = "X_DepositBatch_UU";
|
||||
|
||||
/** Set X_DepositBatch_UU */
|
||||
public void setX_DepositBatch_UU (String X_DepositBatch_UU);
|
||||
|
||||
/** Get X_DepositBatch_UU */
|
||||
public String getX_DepositBatch_UU();
|
||||
}
|
|
@ -0,0 +1,201 @@
|
|||
/******************************************************************************
|
||||
* Product: iDempiere ERP & CRM Smart Business Solution *
|
||||
* Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
|
||||
* This program is free software, you can redistribute it and/or modify it *
|
||||
* under the terms version 2 of the GNU General Public License as published *
|
||||
* by the Free Software Foundation. This program is distributed in the hope *
|
||||
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||
* See the GNU General Public License for more details. *
|
||||
* You should have received a copy of the GNU General Public License along *
|
||||
* with this program, if not, write to the Free Software Foundation, Inc., *
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
||||
* For the text or an alternative of this public license, you may reach us *
|
||||
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
|
||||
* or via info@compiere.org or http://www.compiere.org/license.html *
|
||||
*****************************************************************************/
|
||||
package org.compiere.model;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
import org.compiere.util.KeyNamePair;
|
||||
|
||||
/** Generated Interface for X_DepositBatchLine
|
||||
* @author iDempiere (generated)
|
||||
* @version Release 1.0a
|
||||
*/
|
||||
public interface I_X_DepositBatchLine
|
||||
{
|
||||
|
||||
/** TableName=X_DepositBatchLine */
|
||||
public static final String Table_Name = "X_DepositBatchLine";
|
||||
|
||||
/** AD_Table_ID=200057 */
|
||||
public static final int Table_ID = 200057;
|
||||
|
||||
KeyNamePair Model = new KeyNamePair(Table_ID, Table_Name);
|
||||
|
||||
/** AccessLevel = 3 - Client - Org
|
||||
*/
|
||||
BigDecimal accessLevel = BigDecimal.valueOf(3);
|
||||
|
||||
/** Load Meta Data */
|
||||
|
||||
/** Column name AD_Client_ID */
|
||||
public static final String COLUMNNAME_AD_Client_ID = "AD_Client_ID";
|
||||
|
||||
/** Get Client.
|
||||
* Client/Tenant for this installation.
|
||||
*/
|
||||
public int getAD_Client_ID();
|
||||
|
||||
/** Column name AD_Org_ID */
|
||||
public static final String COLUMNNAME_AD_Org_ID = "AD_Org_ID";
|
||||
|
||||
/** Set Organization.
|
||||
* Organizational entity within client
|
||||
*/
|
||||
public void setAD_Org_ID (int AD_Org_ID);
|
||||
|
||||
/** Get Organization.
|
||||
* Organizational entity within client
|
||||
*/
|
||||
public int getAD_Org_ID();
|
||||
|
||||
/** Column name C_Payment_ID */
|
||||
public static final String COLUMNNAME_C_Payment_ID = "C_Payment_ID";
|
||||
|
||||
/** Set Payment.
|
||||
* Payment identifier
|
||||
*/
|
||||
public void setC_Payment_ID (int C_Payment_ID);
|
||||
|
||||
/** Get Payment.
|
||||
* Payment identifier
|
||||
*/
|
||||
public int getC_Payment_ID();
|
||||
|
||||
public org.compiere.model.I_C_Payment getC_Payment() throws RuntimeException;
|
||||
|
||||
/** Column name Created */
|
||||
public static final String COLUMNNAME_Created = "Created";
|
||||
|
||||
/** Get Created.
|
||||
* Date this record was created
|
||||
*/
|
||||
public Timestamp getCreated();
|
||||
|
||||
/** Column name CreatedBy */
|
||||
public static final String COLUMNNAME_CreatedBy = "CreatedBy";
|
||||
|
||||
/** Get Created By.
|
||||
* User who created this records
|
||||
*/
|
||||
public int getCreatedBy();
|
||||
|
||||
/** Column name IsActive */
|
||||
public static final String COLUMNNAME_IsActive = "IsActive";
|
||||
|
||||
/** Set Active.
|
||||
* The record is active in the system
|
||||
*/
|
||||
public void setIsActive (boolean IsActive);
|
||||
|
||||
/** Get Active.
|
||||
* The record is active in the system
|
||||
*/
|
||||
public boolean isActive();
|
||||
|
||||
/** Column name Line */
|
||||
public static final String COLUMNNAME_Line = "Line";
|
||||
|
||||
/** Set Line No.
|
||||
* Unique line for this document
|
||||
*/
|
||||
public void setLine (int Line);
|
||||
|
||||
/** Get Line No.
|
||||
* Unique line for this document
|
||||
*/
|
||||
public int getLine();
|
||||
|
||||
/** Column name PayAmt */
|
||||
public static final String COLUMNNAME_PayAmt = "PayAmt";
|
||||
|
||||
/** Set Payment amount.
|
||||
* Amount being paid
|
||||
*/
|
||||
public void setPayAmt (BigDecimal PayAmt);
|
||||
|
||||
/** Get Payment amount.
|
||||
* Amount being paid
|
||||
*/
|
||||
public BigDecimal getPayAmt();
|
||||
|
||||
/** Column name Processed */
|
||||
public static final String COLUMNNAME_Processed = "Processed";
|
||||
|
||||
/** Set Processed.
|
||||
* The document has been processed
|
||||
*/
|
||||
public void setProcessed (boolean Processed);
|
||||
|
||||
/** Get Processed.
|
||||
* The document has been processed
|
||||
*/
|
||||
public boolean isProcessed();
|
||||
|
||||
/** Column name Processing */
|
||||
public static final String COLUMNNAME_Processing = "Processing";
|
||||
|
||||
/** Set Process Now */
|
||||
public void setProcessing (boolean Processing);
|
||||
|
||||
/** Get Process Now */
|
||||
public boolean isProcessing();
|
||||
|
||||
/** Column name Updated */
|
||||
public static final String COLUMNNAME_Updated = "Updated";
|
||||
|
||||
/** Get Updated.
|
||||
* Date this record was updated
|
||||
*/
|
||||
public Timestamp getUpdated();
|
||||
|
||||
/** Column name UpdatedBy */
|
||||
public static final String COLUMNNAME_UpdatedBy = "UpdatedBy";
|
||||
|
||||
/** Get Updated By.
|
||||
* User who updated this records
|
||||
*/
|
||||
public int getUpdatedBy();
|
||||
|
||||
/** Column name X_DepositBatch_ID */
|
||||
public static final String COLUMNNAME_X_DepositBatch_ID = "X_DepositBatch_ID";
|
||||
|
||||
/** Set Deposit Batch */
|
||||
public void setX_DepositBatch_ID (int X_DepositBatch_ID);
|
||||
|
||||
/** Get Deposit Batch */
|
||||
public int getX_DepositBatch_ID();
|
||||
|
||||
public org.compiere.model.I_X_DepositBatch getX_DepositBatch() throws RuntimeException;
|
||||
|
||||
/** Column name X_DepositBatchLine_ID */
|
||||
public static final String COLUMNNAME_X_DepositBatchLine_ID = "X_DepositBatchLine_ID";
|
||||
|
||||
/** Set Deposit Batch Line */
|
||||
public void setX_DepositBatchLine_ID (int X_DepositBatchLine_ID);
|
||||
|
||||
/** Get Deposit Batch Line */
|
||||
public int getX_DepositBatchLine_ID();
|
||||
|
||||
/** Column name X_DepositBatchLine_UU */
|
||||
public static final String COLUMNNAME_X_DepositBatchLine_UU = "X_DepositBatchLine_UU";
|
||||
|
||||
/** Set X_DepositBatchLine_UU */
|
||||
public void setX_DepositBatchLine_UU (String X_DepositBatchLine_UU);
|
||||
|
||||
/** Get X_DepositBatchLine_UU */
|
||||
public String getX_DepositBatchLine_UU();
|
||||
}
|
|
@ -0,0 +1,325 @@
|
|||
/**********************************************************************
|
||||
* This file is part of Adempiere ERP Bazaar *
|
||||
* http://www.adempiere.org *
|
||||
* *
|
||||
* Copyright (C) Alejandro Falcone *
|
||||
* Copyright (C) Contributors *
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or *
|
||||
* modify it under the terms of the GNU General Public License *
|
||||
* as published by the Free Software Foundation; either version 2 *
|
||||
* of the License, or (at your option) any later version. *
|
||||
* *
|
||||
* This program is distributed in the hope that it will be useful, *
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||
* GNU General Public License for more details. *
|
||||
* *
|
||||
* You should have received a copy of the GNU General Public License *
|
||||
* along with this program; if not, write to the Free Software *
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, *
|
||||
* MA 02110-1301, USA. *
|
||||
* *
|
||||
* Contributors: *
|
||||
* - Alejandro Falcone (afalcone@users.sourceforge.net) *
|
||||
* http://www.openbiz.com.ar *
|
||||
* *
|
||||
* Sponsors: *
|
||||
* - Idalica Inc. (http://www.idalica.com) *
|
||||
***********************************************************************/
|
||||
|
||||
package org.compiere.model;
|
||||
|
||||
import java.io.File;
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.PreparedStatement;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Properties;
|
||||
import java.util.logging.Level;
|
||||
|
||||
import org.compiere.util.DB;
|
||||
|
||||
/**
|
||||
* Deposit Batch Model
|
||||
*
|
||||
* @author Alejandro Falcone
|
||||
* @version $Id: MDepositBatch.java,v 1.3 2007/06/28 00:51:03 afalcone Exp $
|
||||
*/
|
||||
public class MDepositBatch extends X_X_DepositBatch
|
||||
{
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = -977397802747749777L;
|
||||
|
||||
/**
|
||||
* Create & Load existing Persistent Object
|
||||
* @param ctx context
|
||||
* @param X_DepositBatch_ID The unique ID of the object
|
||||
* @param trxName transaction name
|
||||
*/
|
||||
public MDepositBatch (Properties ctx, int X_DepositBatch_ID, String trxName)
|
||||
{
|
||||
super (ctx, X_DepositBatch_ID, trxName);
|
||||
if (X_DepositBatch_ID == 0)
|
||||
{
|
||||
setDocStatus (DOCSTATUS_Drafted);
|
||||
setProcessed (false);
|
||||
setProcessing (false);
|
||||
setDepositAmt(new BigDecimal(0));
|
||||
}
|
||||
} // MDepositBatch
|
||||
|
||||
|
||||
/**
|
||||
* Load Constructor
|
||||
* @param ctx context
|
||||
* @param rs result set
|
||||
* @param trxName transaction
|
||||
*/
|
||||
public MDepositBatch (Properties ctx, ResultSet rs, String trxName)
|
||||
{
|
||||
super(ctx, rs, trxName);
|
||||
} // MDepositBatch
|
||||
|
||||
/**
|
||||
* Copy Constructor.
|
||||
* Dos not copy: Dates/Period
|
||||
* @param original original
|
||||
*/
|
||||
public MDepositBatch (MDepositBatch original)
|
||||
{
|
||||
this (original.getCtx(), 0, original.get_TrxName());
|
||||
setClientOrg(original);
|
||||
setX_DepositBatch_ID(original.getX_DepositBatch_ID());
|
||||
|
||||
setDescription(original.getDescription());
|
||||
setC_DocType_ID(original.getC_DocType_ID());
|
||||
|
||||
setDateDoc(original.getDateDoc());
|
||||
setDateDeposit(original.getDateDeposit());
|
||||
setDepositAmt(original.getDepositAmt());
|
||||
} // MDepositBatch
|
||||
|
||||
public int getX_DepositBatch_ID()
|
||||
{
|
||||
Integer ii = (Integer)get_Value("X_DepositBatch_ID");
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
public void setX_DepositBatch_ID(int X_DepositBatch_ID)
|
||||
{
|
||||
set_Value("X_DepositBatch_ID", Integer.valueOf(X_DepositBatch_ID));
|
||||
}
|
||||
|
||||
/**
|
||||
* Overwrite Client/Org if required
|
||||
* @param AD_Client_ID client
|
||||
* @param AD_Org_ID org
|
||||
*/
|
||||
public void setClientOrg (int AD_Client_ID, int AD_Org_ID)
|
||||
{
|
||||
super.setClientOrg(AD_Client_ID, AD_Org_ID);
|
||||
} // setClientOrg
|
||||
|
||||
/**
|
||||
* Set Accounting Date.
|
||||
* Set also Period if not set earlier
|
||||
* @param DateAcct date
|
||||
*/
|
||||
public void setDateAcct (Timestamp DateAcct)
|
||||
{
|
||||
super.setDateDeposit(DateAcct);
|
||||
if (DateAcct == null)
|
||||
return;
|
||||
} // setDateAcct
|
||||
|
||||
|
||||
/** Process Message */
|
||||
private String m_processMsg = null;
|
||||
/** Just Prepared Flag */
|
||||
// private boolean m_justPrepared = false;
|
||||
|
||||
/**
|
||||
* Unlock Document.
|
||||
* @return true if success
|
||||
*/
|
||||
public boolean unlockIt()
|
||||
{
|
||||
log.info("unlockIt - " + toString());
|
||||
setProcessing(false);
|
||||
return true;
|
||||
} // unlockIt
|
||||
|
||||
/**
|
||||
* Invalidate Document
|
||||
* @return true if success
|
||||
*/
|
||||
public boolean invalidateIt()
|
||||
{
|
||||
log.info("invalidateIt - " + toString());
|
||||
return true;
|
||||
} // invalidateIt
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Void Document.
|
||||
* @return false
|
||||
*/
|
||||
public boolean voidIt()
|
||||
{
|
||||
log.info("voidIt - " + toString());
|
||||
// Before Void
|
||||
m_processMsg = ModelValidationEngine.get().fireDocValidate(this,ModelValidator.TIMING_BEFORE_VOID);
|
||||
if (m_processMsg != null)
|
||||
return false;
|
||||
// After Void
|
||||
m_processMsg = ModelValidationEngine.get().fireDocValidate(this,ModelValidator.TIMING_AFTER_VOID);
|
||||
if (m_processMsg != null)
|
||||
return false;
|
||||
|
||||
return false;
|
||||
} // voidIt
|
||||
|
||||
|
||||
/**
|
||||
* String Representation
|
||||
* @return info
|
||||
*/
|
||||
public String toString ()
|
||||
{
|
||||
StringBuffer sb = new StringBuffer ("MDepositBatch[");
|
||||
sb.append(get_ID()).append(",").append(getDescription())
|
||||
.append(",Amount=").append(getDepositAmt())
|
||||
.append ("]");
|
||||
return sb.toString ();
|
||||
} // toString
|
||||
|
||||
/**
|
||||
* Get Document Info
|
||||
* @return document info (untranslated)
|
||||
*/
|
||||
public String getDocumentInfo()
|
||||
{
|
||||
MDocType dt = MDocType.get(getCtx(), getC_DocType_ID());
|
||||
return dt.getName() + " " + getDocumentNo();
|
||||
} // getDocumentInfo
|
||||
|
||||
/**
|
||||
* Create PDF
|
||||
* @return File or null
|
||||
*/
|
||||
public File createPDF ()
|
||||
{
|
||||
try
|
||||
{
|
||||
File temp = File.createTempFile(get_TableName()+get_ID()+"_", ".pdf");
|
||||
return createPDF (temp);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
log.severe("Could not create PDF - " + e.getMessage());
|
||||
}
|
||||
return null;
|
||||
} // getPDF
|
||||
|
||||
/**
|
||||
* Create PDF file
|
||||
* @param file output file
|
||||
* @return file if success
|
||||
*/
|
||||
public File createPDF (File file)
|
||||
{
|
||||
// ReportEngine re = ReportEngine.get (getCtx(), ReportEngine.INVOICE, getC_Invoice_ID());
|
||||
// if (re == null)
|
||||
return null;
|
||||
// return re.getPDF(file);
|
||||
} // createPDF
|
||||
|
||||
|
||||
/**
|
||||
* Get Process Message
|
||||
* @return clear text error message
|
||||
*/
|
||||
public String getProcessMsg()
|
||||
{
|
||||
return m_processMsg;
|
||||
} // getProcessMsg
|
||||
|
||||
/**
|
||||
* Get Document Owner (Responsible)
|
||||
* @return AD_User_ID (Created By)
|
||||
*/
|
||||
public int getDoc_User_ID()
|
||||
{
|
||||
return getCreatedBy();
|
||||
} // getDoc_User_ID
|
||||
|
||||
/**
|
||||
* Get Document Approval Amount
|
||||
* @return DR amount
|
||||
*/
|
||||
public BigDecimal getApprovalAmt()
|
||||
{
|
||||
return getDepositAmt();
|
||||
} // getApprovalAmt
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* After Delete
|
||||
* @param success success
|
||||
* @return success
|
||||
*/
|
||||
protected boolean afterDelete (boolean success)
|
||||
{
|
||||
if (getX_DepositBatch_ID() != 0 )
|
||||
{
|
||||
String sql = "UPDATE C_Payment p SET X_DepositBatch_ID= 0 WHERE p.X_DepositBatch_ID=?";
|
||||
DB.executeUpdate(sql, getX_DepositBatch_ID(), get_TrxName());
|
||||
}
|
||||
|
||||
return success;
|
||||
} // afterDelete
|
||||
|
||||
|
||||
/**************************************************************************
|
||||
* Get Deposit Batch Lines
|
||||
* @return Array of lines
|
||||
*/
|
||||
public MDepositBatchLine[] getLines()
|
||||
{
|
||||
ArrayList<MDepositBatchLine> list = new ArrayList<MDepositBatchLine>();
|
||||
String sql = "SELECT * FROM X_DepositBatchLine WHERE X_DepositBatch_ID=? ORDER BY Line";
|
||||
PreparedStatement pstmt = null;
|
||||
ResultSet rs = null;
|
||||
try
|
||||
{
|
||||
pstmt = DB.prepareStatement(sql, get_TrxName());
|
||||
pstmt.setInt(1, getX_DepositBatch_ID());
|
||||
rs = pstmt.executeQuery();
|
||||
while (rs.next())
|
||||
list.add(new MDepositBatchLine (getCtx(), rs, get_TrxName()));
|
||||
}
|
||||
catch (SQLException ex)
|
||||
{
|
||||
log.log(Level.SEVERE, sql, ex);
|
||||
}
|
||||
finally
|
||||
{
|
||||
DB.close(rs, pstmt);
|
||||
}
|
||||
|
||||
//
|
||||
MDepositBatchLine[] retValue = new MDepositBatchLine[list.size()];
|
||||
list.toArray(retValue);
|
||||
return retValue;
|
||||
} // getLines
|
||||
|
||||
} // MDepositBatch
|
|
@ -0,0 +1,189 @@
|
|||
/**********************************************************************
|
||||
* This file is part of Adempiere ERP Bazaar *
|
||||
* http://www.adempiere.org *
|
||||
* *
|
||||
* Copyright (C) Alejandro Falcone *
|
||||
* Copyright (C) Contributors *
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or *
|
||||
* modify it under the terms of the GNU General Public License *
|
||||
* as published by the Free Software Foundation; either version 2 *
|
||||
* of the License, or (at your option) any later version. *
|
||||
* *
|
||||
* This program is distributed in the hope that it will be useful, *
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||
* GNU General Public License for more details. *
|
||||
* *
|
||||
* You should have received a copy of the GNU General Public License *
|
||||
* along with this program; if not, write to the Free Software *
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, *
|
||||
* MA 02110-1301, USA. *
|
||||
* *
|
||||
* Contributors: *
|
||||
* - Alejandro Falcone (afalcone@users.sourceforge.net) *
|
||||
* http://www.openbiz.com.ar *
|
||||
* *
|
||||
* Sponsors: *
|
||||
* - Idalica Inc. (http://www.idalica.com) *
|
||||
***********************************************************************/
|
||||
|
||||
package org.compiere.model;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.ResultSet;
|
||||
import java.util.Properties;
|
||||
|
||||
import org.compiere.util.DB;
|
||||
import org.compiere.util.Env;
|
||||
|
||||
/**
|
||||
* Bank Statement Line Model
|
||||
*
|
||||
* @author Alejandro Falcone
|
||||
* @version $Id: MDepositBatchLine.java,v 1.3 2007/07/02 00:51:02 afalcone Exp $
|
||||
*
|
||||
*/
|
||||
public class MDepositBatchLine extends X_X_DepositBatchLine
|
||||
{
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = -4461960512392850996L;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Standard Constructor
|
||||
* @param ctx context
|
||||
* @param C_BankStatementLine_ID id
|
||||
* @param trxName transaction
|
||||
*/
|
||||
public MDepositBatchLine (Properties ctx, int X_DepositBatchLine_ID, String trxName)
|
||||
{
|
||||
super (ctx, X_DepositBatchLine_ID, trxName);
|
||||
if (X_DepositBatchLine_ID == 0)
|
||||
{
|
||||
setPayAmt(Env.ZERO);
|
||||
}
|
||||
} // MDepositBatchLine
|
||||
|
||||
/**
|
||||
* Load Constructor
|
||||
* @param ctx context
|
||||
* @param rs result set
|
||||
* @param trxName transaction
|
||||
*/
|
||||
public MDepositBatchLine (Properties ctx, ResultSet rs, String trxName)
|
||||
{
|
||||
super(ctx, rs, trxName);
|
||||
} // MDepositBatchLine
|
||||
|
||||
/**
|
||||
* Parent Constructor
|
||||
* @param statement Bank Statement that the line is part of
|
||||
*/
|
||||
public MDepositBatchLine(MDepositBatch statement)
|
||||
{
|
||||
this (statement.getCtx(), 0, statement.get_TrxName());
|
||||
setClientOrg(statement);
|
||||
setX_DepositBatch_ID(statement.getX_DepositBatch_ID());
|
||||
} // MDepositBatchLine
|
||||
|
||||
/**
|
||||
* Parent Constructor
|
||||
* @param statement Deposit Batch that the line is part of
|
||||
* @param lineNo position of the line within the statement
|
||||
*/
|
||||
public MDepositBatchLine(MDepositBatch statement, int lineNo)
|
||||
{
|
||||
this (statement);
|
||||
setLine(lineNo);
|
||||
} // MDepositBatchLine
|
||||
|
||||
|
||||
/**
|
||||
* Set Payment
|
||||
* @param payment payment
|
||||
*/
|
||||
public void setPayment (MPayment payment)
|
||||
{
|
||||
setC_Payment_ID (payment.getC_Payment_ID());
|
||||
//
|
||||
BigDecimal amt = payment.getPayAmt(true);
|
||||
setPayAmt(amt);
|
||||
//
|
||||
} // setPayment
|
||||
|
||||
/**
|
||||
* Before Save
|
||||
* @param newRecord new
|
||||
* @return true
|
||||
*/
|
||||
protected boolean beforeSave (boolean newRecord)
|
||||
{
|
||||
// Set Line No
|
||||
if (getLine() == 0)
|
||||
{
|
||||
String sql = "SELECT COALESCE(MAX(Line),0)+10 AS DefaultValue FROM X_DepositBatchLine WHERE X_DepositBatch_ID=?";
|
||||
int ii = DB.getSQLValue (get_TrxName(), sql, getX_DepositBatch_ID());
|
||||
setLine (ii);
|
||||
}
|
||||
|
||||
// Set DepositBatch_ID into C_Payment table
|
||||
if (getC_Payment_ID() != 0 )
|
||||
{
|
||||
String sql = "UPDATE C_Payment p SET X_DepositBatch_ID=? WHERE p.C_Payment_ID=?";
|
||||
DB.executeUpdate(sql, new Object[] {getX_DepositBatch_ID(), getC_Payment_ID()}, false, get_TrxName());
|
||||
}
|
||||
//
|
||||
|
||||
return true;
|
||||
} // beforeSave
|
||||
|
||||
|
||||
/**
|
||||
* After Save
|
||||
* @param newRecord new
|
||||
* @param success success
|
||||
* @return success
|
||||
*/
|
||||
protected boolean afterSave (boolean newRecord, boolean success)
|
||||
{
|
||||
updateHeader();
|
||||
return success;
|
||||
} // afterSave
|
||||
|
||||
/**
|
||||
* After Delete
|
||||
* @param success success
|
||||
* @return success
|
||||
*/
|
||||
protected boolean afterDelete (boolean success)
|
||||
{
|
||||
updateHeader();
|
||||
if (getC_Payment_ID() != 0 )
|
||||
{
|
||||
String sql = "UPDATE C_Payment p SET X_DepositBatch_ID= 0 WHERE p.C_Payment_ID=?";
|
||||
DB.executeUpdate(sql, getC_Payment_ID(), get_TrxName());
|
||||
}
|
||||
|
||||
return success;
|
||||
} // afterDelete
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Update Header
|
||||
*/
|
||||
private void updateHeader()
|
||||
{
|
||||
StringBuilder sql = new StringBuilder();
|
||||
sql.append("UPDATE X_DepositBatch dp");
|
||||
sql.append(" SET DepositAmt=(SELECT COALESCE(SUM(PayAmt),0) FROM X_DepositBatchLine dpl ");
|
||||
sql.append("WHERE dpl.X_DepositBatch_ID=dp.X_DepositBatch_ID AND dpl.IsActive='Y') ");
|
||||
sql.append("WHERE X_DepositBatch_ID=?");
|
||||
DB.executeUpdate(sql.toString(), getX_DepositBatch_ID(), get_TrxName());
|
||||
} // updateHeader
|
||||
|
||||
} // MDepositBatchLine
|
|
@ -464,7 +464,7 @@ public final class MRole extends X_AD_Role
|
|||
+ "FROM AD_WorkFlow w LEFT JOIN AD_WorkFlow_Access wa ON "
|
||||
+ "(wa.AD_Role_ID=" + getAD_Role_ID()
|
||||
+ " AND w.AD_WorkFlow_ID = wa.AD_WorkFlow_ID) "
|
||||
+ "WHERE wa.AD_WorkFlow_ID IS NULL AND AccessLevel IN ";
|
||||
+ "WHERE w.AD_Client_ID IN (0," + getAD_Client_ID() + ") AND wa.AD_WorkFlow_ID IS NULL AND AccessLevel IN ";
|
||||
|
||||
String sqlDocAction = "INSERT INTO AD_Document_Action_Access "
|
||||
+ "(AD_Client_ID,AD_Org_ID,IsActive,Created,CreatedBy,Updated,UpdatedBy,"
|
||||
|
|
|
@ -42,8 +42,7 @@ public class MSysConfig extends X_AD_SysConfig
|
|||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 2906768000936142606L;
|
||||
|
||||
private static final long serialVersionUID = 6995907727239458114L;
|
||||
public final static String PDF_FONT_DIR = "PDF_FONT_DIR";
|
||||
public final static String TWOPACK_HANDLE_TRANSLATIONS = "2PACK_HANDLE_TRANSLATIONS";
|
||||
public static final String ZK_DESKTOP_CLASS = "ZK_DESKTOP_CLASS";
|
||||
|
@ -113,6 +112,7 @@ public class MSysConfig extends X_AD_SysConfig
|
|||
public static final String REAL_TIME_POS = "REAL_TIME_POS";
|
||||
public static final String SHIPPING_DEFAULT_WEIGHT_PER_PACKAGE = "SHIPPING_DEFAULT_WEIGHT_PER_PACKAGE";
|
||||
public static final String SHIPPING_SAVE_REQUEST_RESPONSE_LOG = "SHIPPING_SAVE_REQUEST_RESPONSE_LOG";
|
||||
public static final String DOCACTIONBUTTON_SHOWACTIONNAME = "DOCACTIONBUTTON_SHOWACTIONNAME";
|
||||
|
||||
/**
|
||||
* Standard Constructor
|
||||
|
|
|
@ -33,7 +33,7 @@ public class X_C_BankStatement extends PO implements I_C_BankStatement, I_Persis
|
|||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 20121212L;
|
||||
private static final long serialVersionUID = 20130123L;
|
||||
|
||||
/** Standard Constructor */
|
||||
public X_C_BankStatement (Properties ctx, int C_BankStatement_ID, String trxName)
|
||||
|
@ -602,4 +602,18 @@ public class X_C_BankStatement extends PO implements I_C_BankStatement, I_Persis
|
|||
return Env.ZERO;
|
||||
return bd;
|
||||
}
|
||||
|
||||
/** Set Create From Batch.
|
||||
@param X_CreateFromBatch Create From Batch */
|
||||
public void setX_CreateFromBatch (String X_CreateFromBatch)
|
||||
{
|
||||
set_Value (COLUMNNAME_X_CreateFromBatch, X_CreateFromBatch);
|
||||
}
|
||||
|
||||
/** Get Create From Batch.
|
||||
@return Create From Batch */
|
||||
public String getX_CreateFromBatch ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_X_CreateFromBatch);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,372 @@
|
|||
/******************************************************************************
|
||||
* Product: iDempiere ERP & CRM Smart Business Solution *
|
||||
* Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
|
||||
* This program is free software, you can redistribute it and/or modify it *
|
||||
* under the terms version 2 of the GNU General Public License as published *
|
||||
* by the Free Software Foundation. This program is distributed in the hope *
|
||||
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||
* See the GNU General Public License for more details. *
|
||||
* You should have received a copy of the GNU General Public License along *
|
||||
* with this program, if not, write to the Free Software Foundation, Inc., *
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
||||
* For the text or an alternative of this public license, you may reach us *
|
||||
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
|
||||
* or via info@compiere.org or http://www.compiere.org/license.html *
|
||||
*****************************************************************************/
|
||||
/** Generated Model - DO NOT CHANGE */
|
||||
package org.compiere.model;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Properties;
|
||||
import org.compiere.util.Env;
|
||||
import org.compiere.util.KeyNamePair;
|
||||
|
||||
/** Generated Model for X_DepositBatch
|
||||
* @author iDempiere (generated)
|
||||
* @version Release 1.0a - $Id$ */
|
||||
public class X_X_DepositBatch extends PO implements I_X_DepositBatch, I_Persistent
|
||||
{
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 20130123L;
|
||||
|
||||
/** Standard Constructor */
|
||||
public X_X_DepositBatch (Properties ctx, int X_DepositBatch_ID, String trxName)
|
||||
{
|
||||
super (ctx, X_DepositBatch_ID, trxName);
|
||||
/** if (X_DepositBatch_ID == 0)
|
||||
{
|
||||
setC_BankAccount_ID (0);
|
||||
setC_DocType_ID (0);
|
||||
setDateDeposit (new Timestamp( System.currentTimeMillis() ));
|
||||
// @#Date@
|
||||
setDateDoc (new Timestamp( System.currentTimeMillis() ));
|
||||
// @#Date@
|
||||
setDepositAmt (Env.ZERO);
|
||||
setDocStatus (null);
|
||||
// DR
|
||||
setDocumentNo (null);
|
||||
setProcessed (false);
|
||||
setX_DepositBatch_ID (0);
|
||||
} */
|
||||
}
|
||||
|
||||
/** Load Constructor */
|
||||
public X_X_DepositBatch (Properties ctx, ResultSet rs, String trxName)
|
||||
{
|
||||
super (ctx, rs, trxName);
|
||||
}
|
||||
|
||||
/** AccessLevel
|
||||
* @return 3 - Client - Org
|
||||
*/
|
||||
protected int get_AccessLevel()
|
||||
{
|
||||
return accessLevel.intValue();
|
||||
}
|
||||
|
||||
/** Load Meta Data */
|
||||
protected POInfo initPO (Properties ctx)
|
||||
{
|
||||
POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
|
||||
return poi;
|
||||
}
|
||||
|
||||
public String toString()
|
||||
{
|
||||
StringBuffer sb = new StringBuffer ("X_X_DepositBatch[")
|
||||
.append(get_ID()).append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
public org.compiere.model.I_C_BankAccount getC_BankAccount() throws RuntimeException
|
||||
{
|
||||
return (org.compiere.model.I_C_BankAccount)MTable.get(getCtx(), org.compiere.model.I_C_BankAccount.Table_Name)
|
||||
.getPO(getC_BankAccount_ID(), get_TrxName()); }
|
||||
|
||||
/** Set Bank Account.
|
||||
@param C_BankAccount_ID
|
||||
Account at the Bank
|
||||
*/
|
||||
public void setC_BankAccount_ID (int C_BankAccount_ID)
|
||||
{
|
||||
if (C_BankAccount_ID < 1)
|
||||
set_Value (COLUMNNAME_C_BankAccount_ID, null);
|
||||
else
|
||||
set_Value (COLUMNNAME_C_BankAccount_ID, Integer.valueOf(C_BankAccount_ID));
|
||||
}
|
||||
|
||||
/** Get Bank Account.
|
||||
@return Account at the Bank
|
||||
*/
|
||||
public int getC_BankAccount_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_C_BankAccount_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
public org.compiere.model.I_C_DocType getC_DocType() throws RuntimeException
|
||||
{
|
||||
return (org.compiere.model.I_C_DocType)MTable.get(getCtx(), org.compiere.model.I_C_DocType.Table_Name)
|
||||
.getPO(getC_DocType_ID(), get_TrxName()); }
|
||||
|
||||
/** Set Document Type.
|
||||
@param C_DocType_ID
|
||||
Document type or rules
|
||||
*/
|
||||
public void setC_DocType_ID (int C_DocType_ID)
|
||||
{
|
||||
if (C_DocType_ID < 0)
|
||||
set_Value (COLUMNNAME_C_DocType_ID, null);
|
||||
else
|
||||
set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID));
|
||||
}
|
||||
|
||||
/** Get Document Type.
|
||||
@return Document type or rules
|
||||
*/
|
||||
public int getC_DocType_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set Create lines from.
|
||||
@param CreateFrom
|
||||
Process which will generate a new document lines based on an existing document
|
||||
*/
|
||||
public void setCreateFrom (String CreateFrom)
|
||||
{
|
||||
set_Value (COLUMNNAME_CreateFrom, CreateFrom);
|
||||
}
|
||||
|
||||
/** Get Create lines from.
|
||||
@return Process which will generate a new document lines based on an existing document
|
||||
*/
|
||||
public String getCreateFrom ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_CreateFrom);
|
||||
}
|
||||
|
||||
/** Set Deposit Date.
|
||||
@param DateDeposit Deposit Date */
|
||||
public void setDateDeposit (Timestamp DateDeposit)
|
||||
{
|
||||
set_Value (COLUMNNAME_DateDeposit, DateDeposit);
|
||||
}
|
||||
|
||||
/** Get Deposit Date.
|
||||
@return Deposit Date */
|
||||
public Timestamp getDateDeposit ()
|
||||
{
|
||||
return (Timestamp)get_Value(COLUMNNAME_DateDeposit);
|
||||
}
|
||||
|
||||
/** Set Document Date.
|
||||
@param DateDoc
|
||||
Date of the Document
|
||||
*/
|
||||
public void setDateDoc (Timestamp DateDoc)
|
||||
{
|
||||
set_Value (COLUMNNAME_DateDoc, DateDoc);
|
||||
}
|
||||
|
||||
/** Get Document Date.
|
||||
@return Date of the Document
|
||||
*/
|
||||
public Timestamp getDateDoc ()
|
||||
{
|
||||
return (Timestamp)get_Value(COLUMNNAME_DateDoc);
|
||||
}
|
||||
|
||||
/** Set Deposit Amount.
|
||||
@param DepositAmt Deposit Amount */
|
||||
public void setDepositAmt (BigDecimal DepositAmt)
|
||||
{
|
||||
set_Value (COLUMNNAME_DepositAmt, DepositAmt);
|
||||
}
|
||||
|
||||
/** Get Deposit Amount.
|
||||
@return Deposit Amount */
|
||||
public BigDecimal getDepositAmt ()
|
||||
{
|
||||
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_DepositAmt);
|
||||
if (bd == null)
|
||||
return Env.ZERO;
|
||||
return bd;
|
||||
}
|
||||
|
||||
/** Set Description.
|
||||
@param Description
|
||||
Optional short description of the record
|
||||
*/
|
||||
public void setDescription (String Description)
|
||||
{
|
||||
set_Value (COLUMNNAME_Description, Description);
|
||||
}
|
||||
|
||||
/** Get Description.
|
||||
@return Optional short description of the record
|
||||
*/
|
||||
public String getDescription ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_Description);
|
||||
}
|
||||
|
||||
/** DocStatus AD_Reference_ID=131 */
|
||||
public static final int DOCSTATUS_AD_Reference_ID=131;
|
||||
/** Drafted = DR */
|
||||
public static final String DOCSTATUS_Drafted = "DR";
|
||||
/** Completed = CO */
|
||||
public static final String DOCSTATUS_Completed = "CO";
|
||||
/** Approved = AP */
|
||||
public static final String DOCSTATUS_Approved = "AP";
|
||||
/** Not Approved = NA */
|
||||
public static final String DOCSTATUS_NotApproved = "NA";
|
||||
/** Voided = VO */
|
||||
public static final String DOCSTATUS_Voided = "VO";
|
||||
/** Invalid = IN */
|
||||
public static final String DOCSTATUS_Invalid = "IN";
|
||||
/** Reversed = RE */
|
||||
public static final String DOCSTATUS_Reversed = "RE";
|
||||
/** Closed = CL */
|
||||
public static final String DOCSTATUS_Closed = "CL";
|
||||
/** Unknown = ?? */
|
||||
public static final String DOCSTATUS_Unknown = "??";
|
||||
/** In Progress = IP */
|
||||
public static final String DOCSTATUS_InProgress = "IP";
|
||||
/** Waiting Payment = WP */
|
||||
public static final String DOCSTATUS_WaitingPayment = "WP";
|
||||
/** Waiting Confirmation = WC */
|
||||
public static final String DOCSTATUS_WaitingConfirmation = "WC";
|
||||
/** Set Document Status.
|
||||
@param DocStatus
|
||||
The current status of the document
|
||||
*/
|
||||
public void setDocStatus (String DocStatus)
|
||||
{
|
||||
|
||||
set_Value (COLUMNNAME_DocStatus, DocStatus);
|
||||
}
|
||||
|
||||
/** Get Document Status.
|
||||
@return The current status of the document
|
||||
*/
|
||||
public String getDocStatus ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_DocStatus);
|
||||
}
|
||||
|
||||
/** Set Document No.
|
||||
@param DocumentNo
|
||||
Document sequence number of the document
|
||||
*/
|
||||
public void setDocumentNo (String DocumentNo)
|
||||
{
|
||||
set_Value (COLUMNNAME_DocumentNo, DocumentNo);
|
||||
}
|
||||
|
||||
/** Get Document No.
|
||||
@return Document sequence number of the document
|
||||
*/
|
||||
public String getDocumentNo ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_DocumentNo);
|
||||
}
|
||||
|
||||
/** Get Record ID/ColumnName
|
||||
@return ID/ColumnName pair
|
||||
*/
|
||||
public KeyNamePair getKeyNamePair()
|
||||
{
|
||||
return new KeyNamePair(get_ID(), getDocumentNo());
|
||||
}
|
||||
|
||||
/** Set Processed.
|
||||
@param Processed
|
||||
The document has been processed
|
||||
*/
|
||||
public void setProcessed (boolean Processed)
|
||||
{
|
||||
set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed));
|
||||
}
|
||||
|
||||
/** Get Processed.
|
||||
@return The document has been processed
|
||||
*/
|
||||
public boolean isProcessed ()
|
||||
{
|
||||
Object oo = get_Value(COLUMNNAME_Processed);
|
||||
if (oo != null)
|
||||
{
|
||||
if (oo instanceof Boolean)
|
||||
return ((Boolean)oo).booleanValue();
|
||||
return "Y".equals(oo);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/** Set Process Now.
|
||||
@param Processing Process Now */
|
||||
public void setProcessing (boolean Processing)
|
||||
{
|
||||
set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing));
|
||||
}
|
||||
|
||||
/** Get Process Now.
|
||||
@return Process Now */
|
||||
public boolean isProcessing ()
|
||||
{
|
||||
Object oo = get_Value(COLUMNNAME_Processing);
|
||||
if (oo != null)
|
||||
{
|
||||
if (oo instanceof Boolean)
|
||||
return ((Boolean)oo).booleanValue();
|
||||
return "Y".equals(oo);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/** Set Deposit Batch.
|
||||
@param X_DepositBatch_ID Deposit Batch */
|
||||
public void setX_DepositBatch_ID (int X_DepositBatch_ID)
|
||||
{
|
||||
if (X_DepositBatch_ID < 1)
|
||||
set_ValueNoCheck (COLUMNNAME_X_DepositBatch_ID, null);
|
||||
else
|
||||
set_ValueNoCheck (COLUMNNAME_X_DepositBatch_ID, Integer.valueOf(X_DepositBatch_ID));
|
||||
}
|
||||
|
||||
/** Get Deposit Batch.
|
||||
@return Deposit Batch */
|
||||
public int getX_DepositBatch_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_X_DepositBatch_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set X_DepositBatch_UU.
|
||||
@param X_DepositBatch_UU X_DepositBatch_UU */
|
||||
public void setX_DepositBatch_UU (String X_DepositBatch_UU)
|
||||
{
|
||||
set_Value (COLUMNNAME_X_DepositBatch_UU, X_DepositBatch_UU);
|
||||
}
|
||||
|
||||
/** Get X_DepositBatch_UU.
|
||||
@return X_DepositBatch_UU */
|
||||
public String getX_DepositBatch_UU ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_X_DepositBatch_UU);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,261 @@
|
|||
/******************************************************************************
|
||||
* Product: iDempiere ERP & CRM Smart Business Solution *
|
||||
* Copyright (C) 1999-2012 ComPiere, Inc. All Rights Reserved. *
|
||||
* This program is free software, you can redistribute it and/or modify it *
|
||||
* under the terms version 2 of the GNU General Public License as published *
|
||||
* by the Free Software Foundation. This program is distributed in the hope *
|
||||
* that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||
* See the GNU General Public License for more details. *
|
||||
* You should have received a copy of the GNU General Public License along *
|
||||
* with this program, if not, write to the Free Software Foundation, Inc., *
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
||||
* For the text or an alternative of this public license, you may reach us *
|
||||
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
|
||||
* or via info@compiere.org or http://www.compiere.org/license.html *
|
||||
*****************************************************************************/
|
||||
/** Generated Model - DO NOT CHANGE */
|
||||
package org.compiere.model;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.ResultSet;
|
||||
import java.util.Properties;
|
||||
import org.compiere.util.Env;
|
||||
import org.compiere.util.KeyNamePair;
|
||||
|
||||
/** Generated Model for X_DepositBatchLine
|
||||
* @author iDempiere (generated)
|
||||
* @version Release 1.0a - $Id$ */
|
||||
public class X_X_DepositBatchLine extends PO implements I_X_DepositBatchLine, I_Persistent
|
||||
{
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
private static final long serialVersionUID = 20130123L;
|
||||
|
||||
/** Standard Constructor */
|
||||
public X_X_DepositBatchLine (Properties ctx, int X_DepositBatchLine_ID, String trxName)
|
||||
{
|
||||
super (ctx, X_DepositBatchLine_ID, trxName);
|
||||
/** if (X_DepositBatchLine_ID == 0)
|
||||
{
|
||||
setC_Payment_ID (0);
|
||||
setLine (0);
|
||||
// @SQL=SELECT NVL(MAX(Line),0)+10 AS DefaultValue FROM X_DepositBatchLine WHERE X_DepositBatch_ID=@X_DepositBatch_ID@
|
||||
setPayAmt (Env.ZERO);
|
||||
setProcessed (false);
|
||||
setProcessing (false);
|
||||
setX_DepositBatch_ID (0);
|
||||
setX_DepositBatchLine_ID (0);
|
||||
} */
|
||||
}
|
||||
|
||||
/** Load Constructor */
|
||||
public X_X_DepositBatchLine (Properties ctx, ResultSet rs, String trxName)
|
||||
{
|
||||
super (ctx, rs, trxName);
|
||||
}
|
||||
|
||||
/** AccessLevel
|
||||
* @return 3 - Client - Org
|
||||
*/
|
||||
protected int get_AccessLevel()
|
||||
{
|
||||
return accessLevel.intValue();
|
||||
}
|
||||
|
||||
/** Load Meta Data */
|
||||
protected POInfo initPO (Properties ctx)
|
||||
{
|
||||
POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
|
||||
return poi;
|
||||
}
|
||||
|
||||
public String toString()
|
||||
{
|
||||
StringBuffer sb = new StringBuffer ("X_X_DepositBatchLine[")
|
||||
.append(get_ID()).append("]");
|
||||
return sb.toString();
|
||||
}
|
||||
|
||||
public org.compiere.model.I_C_Payment getC_Payment() throws RuntimeException
|
||||
{
|
||||
return (org.compiere.model.I_C_Payment)MTable.get(getCtx(), org.compiere.model.I_C_Payment.Table_Name)
|
||||
.getPO(getC_Payment_ID(), get_TrxName()); }
|
||||
|
||||
/** Set Payment.
|
||||
@param C_Payment_ID
|
||||
Payment identifier
|
||||
*/
|
||||
public void setC_Payment_ID (int C_Payment_ID)
|
||||
{
|
||||
if (C_Payment_ID < 1)
|
||||
set_Value (COLUMNNAME_C_Payment_ID, null);
|
||||
else
|
||||
set_Value (COLUMNNAME_C_Payment_ID, Integer.valueOf(C_Payment_ID));
|
||||
}
|
||||
|
||||
/** Get Payment.
|
||||
@return Payment identifier
|
||||
*/
|
||||
public int getC_Payment_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_C_Payment_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set Line No.
|
||||
@param Line
|
||||
Unique line for this document
|
||||
*/
|
||||
public void setLine (int Line)
|
||||
{
|
||||
set_Value (COLUMNNAME_Line, Integer.valueOf(Line));
|
||||
}
|
||||
|
||||
/** Get Line No.
|
||||
@return Unique line for this document
|
||||
*/
|
||||
public int getLine ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_Line);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set Payment amount.
|
||||
@param PayAmt
|
||||
Amount being paid
|
||||
*/
|
||||
public void setPayAmt (BigDecimal PayAmt)
|
||||
{
|
||||
set_Value (COLUMNNAME_PayAmt, PayAmt);
|
||||
}
|
||||
|
||||
/** Get Payment amount.
|
||||
@return Amount being paid
|
||||
*/
|
||||
public BigDecimal getPayAmt ()
|
||||
{
|
||||
BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PayAmt);
|
||||
if (bd == null)
|
||||
return Env.ZERO;
|
||||
return bd;
|
||||
}
|
||||
|
||||
/** Set Processed.
|
||||
@param Processed
|
||||
The document has been processed
|
||||
*/
|
||||
public void setProcessed (boolean Processed)
|
||||
{
|
||||
set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed));
|
||||
}
|
||||
|
||||
/** Get Processed.
|
||||
@return The document has been processed
|
||||
*/
|
||||
public boolean isProcessed ()
|
||||
{
|
||||
Object oo = get_Value(COLUMNNAME_Processed);
|
||||
if (oo != null)
|
||||
{
|
||||
if (oo instanceof Boolean)
|
||||
return ((Boolean)oo).booleanValue();
|
||||
return "Y".equals(oo);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/** Set Process Now.
|
||||
@param Processing Process Now */
|
||||
public void setProcessing (boolean Processing)
|
||||
{
|
||||
set_Value (COLUMNNAME_Processing, Boolean.valueOf(Processing));
|
||||
}
|
||||
|
||||
/** Get Process Now.
|
||||
@return Process Now */
|
||||
public boolean isProcessing ()
|
||||
{
|
||||
Object oo = get_Value(COLUMNNAME_Processing);
|
||||
if (oo != null)
|
||||
{
|
||||
if (oo instanceof Boolean)
|
||||
return ((Boolean)oo).booleanValue();
|
||||
return "Y".equals(oo);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public org.compiere.model.I_X_DepositBatch getX_DepositBatch() throws RuntimeException
|
||||
{
|
||||
return (org.compiere.model.I_X_DepositBatch)MTable.get(getCtx(), org.compiere.model.I_X_DepositBatch.Table_Name)
|
||||
.getPO(getX_DepositBatch_ID(), get_TrxName()); }
|
||||
|
||||
/** Set Deposit Batch.
|
||||
@param X_DepositBatch_ID Deposit Batch */
|
||||
public void setX_DepositBatch_ID (int X_DepositBatch_ID)
|
||||
{
|
||||
if (X_DepositBatch_ID < 1)
|
||||
set_ValueNoCheck (COLUMNNAME_X_DepositBatch_ID, null);
|
||||
else
|
||||
set_ValueNoCheck (COLUMNNAME_X_DepositBatch_ID, Integer.valueOf(X_DepositBatch_ID));
|
||||
}
|
||||
|
||||
/** Get Deposit Batch.
|
||||
@return Deposit Batch */
|
||||
public int getX_DepositBatch_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_X_DepositBatch_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Get Record ID/ColumnName
|
||||
@return ID/ColumnName pair
|
||||
*/
|
||||
public KeyNamePair getKeyNamePair()
|
||||
{
|
||||
return new KeyNamePair(get_ID(), String.valueOf(getX_DepositBatch_ID()));
|
||||
}
|
||||
|
||||
/** Set Deposit Batch Line.
|
||||
@param X_DepositBatchLine_ID Deposit Batch Line */
|
||||
public void setX_DepositBatchLine_ID (int X_DepositBatchLine_ID)
|
||||
{
|
||||
if (X_DepositBatchLine_ID < 1)
|
||||
set_ValueNoCheck (COLUMNNAME_X_DepositBatchLine_ID, null);
|
||||
else
|
||||
set_ValueNoCheck (COLUMNNAME_X_DepositBatchLine_ID, Integer.valueOf(X_DepositBatchLine_ID));
|
||||
}
|
||||
|
||||
/** Get Deposit Batch Line.
|
||||
@return Deposit Batch Line */
|
||||
public int getX_DepositBatchLine_ID ()
|
||||
{
|
||||
Integer ii = (Integer)get_Value(COLUMNNAME_X_DepositBatchLine_ID);
|
||||
if (ii == null)
|
||||
return 0;
|
||||
return ii.intValue();
|
||||
}
|
||||
|
||||
/** Set X_DepositBatchLine_UU.
|
||||
@param X_DepositBatchLine_UU X_DepositBatchLine_UU */
|
||||
public void setX_DepositBatchLine_UU (String X_DepositBatchLine_UU)
|
||||
{
|
||||
set_Value (COLUMNNAME_X_DepositBatchLine_UU, X_DepositBatchLine_UU);
|
||||
}
|
||||
|
||||
/** Get X_DepositBatchLine_UU.
|
||||
@return X_DepositBatchLine_UU */
|
||||
public String getX_DepositBatchLine_UU ()
|
||||
{
|
||||
return (String)get_Value(COLUMNNAME_X_DepositBatchLine_UU);
|
||||
}
|
||||
}
|
|
@ -156,9 +156,20 @@ public class Evaluator
|
|||
String first = st.nextToken().trim(); // get '@tag@'
|
||||
String firstEval = first.trim();
|
||||
if (first.indexOf('@') != -1) // variable
|
||||
{
|
||||
{
|
||||
first = first.replace ('@', ' ').trim (); // strip 'tag'
|
||||
// IDEMPIERE-194 Handling null context variable
|
||||
String defaultValue = "";
|
||||
int idx = first.indexOf(":"); // or clause
|
||||
if (idx >= 0)
|
||||
{
|
||||
defaultValue = first.substring(idx+1, first.length());
|
||||
first = first.substring(0, idx);
|
||||
}
|
||||
firstEval = source.get_ValueAsString (first); // replace with it's value
|
||||
if (Util.isEmpty(firstEval) && !Util.isEmpty(defaultValue)) {
|
||||
firstEval = defaultValue;
|
||||
}
|
||||
}
|
||||
firstEval = firstEval.replace('\'', ' ').replace('"', ' ').trim(); // strip ' and "
|
||||
|
||||
|
|
|
@ -2549,12 +2549,12 @@ public final class APanel extends CPanel
|
|||
} // DocAction
|
||||
|
||||
// Pop up Create From
|
||||
else if (col.equals("CreateFrom"))
|
||||
else if (col.equals("CreateFrom") || col.equals("X_CreateFromBatch"))
|
||||
{
|
||||
// Run form only if the button has no process defined - teo_sarca [ 1974354 ]
|
||||
if (vButton.getProcess_ID() <= 0)
|
||||
{
|
||||
ICreateFrom cf = VCreateFromFactory.create(m_curTab);
|
||||
ICreateFrom cf = VCreateFromFactory.create(m_curTab, col);
|
||||
if(cf != null)
|
||||
{
|
||||
if(cf.isInitOK())
|
||||
|
|
|
@ -176,7 +176,7 @@ public class InfoBPartner extends Info
|
|||
fieldPhone.setBackground(AdempierePLAF.getInfoBackground());
|
||||
fieldPhone.addActionListener(this);
|
||||
|
||||
checkAND.setText(Msg.getMsg(Env.getCtx(), "SearchAND"));
|
||||
checkAND.setText(Msg.getMsg(Env.getCtx(), "SearchAND", true));
|
||||
checkAND.setToolTipText(Msg.getMsg(Env.getCtx(), "SearchANDInfo"));
|
||||
checkAND.setSelected(true);
|
||||
checkAND.addActionListener(this);
|
||||
|
|
|
@ -19,27 +19,41 @@ import org.compiere.model.I_C_Invoice;
|
|||
import org.compiere.model.I_M_InOut;
|
||||
import org.compiere.model.I_M_PackageMPS;
|
||||
import org.compiere.model.I_M_RMA;
|
||||
import org.compiere.model.I_X_DepositBatch;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Elaine
|
||||
*
|
||||
*/
|
||||
public class DefaultCreateFromFactory implements ICreateFromFactory {
|
||||
public class DefaultCreateFromFactory implements ICreateFromFactory
|
||||
{
|
||||
|
||||
@Override
|
||||
public ICreateFrom create(GridTab mTab) {
|
||||
public ICreateFrom create(GridTab mTab, String columnName)
|
||||
{
|
||||
String tableName = mTab.getTableName();
|
||||
if (tableName.equals(I_C_Invoice.Table_Name))
|
||||
return new VCreateFromInvoiceUI(mTab);
|
||||
else if (tableName.equals(I_C_BankStatement.Table_Name))
|
||||
return new VCreateFromStatementUI(mTab);
|
||||
else if (tableName.equals(I_M_InOut.Table_Name))
|
||||
return new VCreateFromShipmentUI(mTab);
|
||||
else if (tableName.equals(I_M_RMA.Table_Name))
|
||||
return new VCreateFromRMAUI(mTab);
|
||||
else if (tableName.equals(I_M_PackageMPS.Table_Name))
|
||||
return new VCreateFromPackageShipmentUI(mTab);
|
||||
if (columnName.equals("CreateFrom"))
|
||||
{
|
||||
if (tableName.equals(I_C_Invoice.Table_Name))
|
||||
return new VCreateFromInvoiceUI(mTab);
|
||||
else if (tableName.equals(I_C_BankStatement.Table_Name))
|
||||
// return new VCreateFromStatementUI(mTab);
|
||||
return new VCreateFromStatementBatchUI(mTab);
|
||||
else if (tableName.equals(I_M_InOut.Table_Name))
|
||||
return new VCreateFromShipmentUI(mTab);
|
||||
else if (tableName.equals(I_M_RMA.Table_Name))
|
||||
return new VCreateFromRMAUI(mTab);
|
||||
else if (tableName.equals(I_M_PackageMPS.Table_Name))
|
||||
return new VCreateFromPackageShipmentUI(mTab);
|
||||
else if (tableName.equals(I_X_DepositBatch.Table_Name))
|
||||
return new VCreateFromDepositBatchUI(mTab);
|
||||
}
|
||||
else if (columnName.equalsIgnoreCase("X_CreateFromBatch"))
|
||||
{
|
||||
if (tableName.equals(I_C_BankStatement.Table_Name))
|
||||
return new VCreateFromBatchStatementUI(mTab);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,335 @@
|
|||
/******************************************************************************
|
||||
* Copyright (C) 2013 Elaine Tan *
|
||||
* Copyright (C) 2013 Trek Global
|
||||
* This program is free software; you can redistribute it and/or modify it *
|
||||
* under the terms version 2 of the GNU General Public License as published *
|
||||
* by the Free Software Foundation. This program is distributed in the hope *
|
||||
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||
* See the GNU General Public License for more details. *
|
||||
* You should have received a copy of the GNU General Public License along *
|
||||
* with this program; if not, write to the Free Software Foundation, Inc., *
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
||||
*****************************************************************************/
|
||||
package org.compiere.grid;
|
||||
|
||||
import static org.compiere.model.SystemIDs.COLUMN_C_BANKSTATEMENT_C_BANKACCOUNT_ID;
|
||||
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.Cursor;
|
||||
import java.awt.GridBagConstraints;
|
||||
import java.awt.GridBagLayout;
|
||||
import java.awt.Insets;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Vector;
|
||||
import java.util.logging.Level;
|
||||
|
||||
import javax.swing.JLabel;
|
||||
import javax.swing.table.DefaultTableModel;
|
||||
|
||||
import org.compiere.apps.ADialog;
|
||||
import org.compiere.apps.AEnv;
|
||||
import org.compiere.apps.ConfirmPanel;
|
||||
import org.compiere.grid.ed.VDate;
|
||||
import org.compiere.grid.ed.VLookup;
|
||||
import org.compiere.grid.ed.VNumber;
|
||||
import org.compiere.grid.ed.VString;
|
||||
import org.compiere.model.GridTab;
|
||||
import org.compiere.model.MBankStatement;
|
||||
import org.compiere.model.MColumn;
|
||||
import org.compiere.model.MLookup;
|
||||
import org.compiere.model.MLookupFactory;
|
||||
import org.compiere.model.MPayment;
|
||||
import org.compiere.swing.CButton;
|
||||
import org.compiere.swing.CLabel;
|
||||
import org.compiere.swing.CPanel;
|
||||
import org.compiere.swing.CTextField;
|
||||
import org.compiere.util.CLogger;
|
||||
import org.compiere.util.DisplayType;
|
||||
import org.compiere.util.Env;
|
||||
import org.compiere.util.Msg;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Elaine
|
||||
*
|
||||
*/
|
||||
public class VCreateFromBatchStatementUI extends CreateFromBatchStatement implements ActionListener
|
||||
{
|
||||
private VCreateFromDialog dialog;
|
||||
|
||||
public VCreateFromBatchStatementUI(GridTab mTab)
|
||||
{
|
||||
super(mTab);
|
||||
log.info(getGridTab().toString());
|
||||
|
||||
dialog = new VCreateFromDialog(this, getGridTab().getWindowNo(), true);
|
||||
|
||||
p_WindowNo = getGridTab().getWindowNo();
|
||||
|
||||
try
|
||||
{
|
||||
if (!dynInit())
|
||||
return;
|
||||
jbInit();
|
||||
|
||||
setInitOK(true);
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
log.log(Level.SEVERE, "", e);
|
||||
setInitOK(false);
|
||||
}
|
||||
AEnv.positionCenterWindow(AEnv.getWindow(p_WindowNo), dialog);
|
||||
} // VCreateFrom
|
||||
|
||||
/** Window No */
|
||||
private int p_WindowNo;
|
||||
|
||||
/** Logger */
|
||||
private CLogger log = CLogger.getCLogger(getClass());
|
||||
|
||||
private JLabel bankAccountLabel = new JLabel();
|
||||
protected VLookup bankAccountField;
|
||||
|
||||
private CLabel documentNoLabel = new CLabel(Msg.translate(Env.getCtx(), "DocumentNo"));
|
||||
protected CTextField documentNoField = new CTextField(10);
|
||||
|
||||
private JLabel documentTypeLabel = new JLabel();
|
||||
protected VLookup documentTypeField;
|
||||
|
||||
private JLabel authorizationLabel = new JLabel();
|
||||
protected VString authorizationField = new VString();
|
||||
|
||||
private JLabel tenderTypeLabel = new JLabel();
|
||||
protected VLookup tenderTypeField;
|
||||
|
||||
private CLabel amtFromLabel = new CLabel(Msg.translate(Env.getCtx(), "PayAmt"));
|
||||
protected VNumber amtFromField = new VNumber("AmtFrom", false, false, true, DisplayType.Amount, Msg.translate(Env.getCtx(), "AmtFrom"));
|
||||
private CLabel amtToLabel = new CLabel("-");
|
||||
protected VNumber amtToField = new VNumber("AmtTo", false, false, true, DisplayType.Amount, Msg.translate(Env.getCtx(), "AmtTo"));
|
||||
|
||||
protected CLabel BPartner_idLabel = new CLabel(Msg.translate(Env.getCtx(), "BPartner"));
|
||||
protected VLookup bPartnerLookup;
|
||||
|
||||
private CLabel dateFromLabel = new CLabel(Msg.translate(Env.getCtx(), "DateTrx"));
|
||||
protected VDate dateFromField = new VDate("DateFrom", false, false, true, DisplayType.Date, Msg.translate(Env.getCtx(), "DateFrom"));
|
||||
private CLabel dateToLabel = new CLabel("-");
|
||||
protected VDate dateToField = new VDate("DateTo", false, false, true, DisplayType.Date, Msg.translate(Env.getCtx(), "DateTo"));
|
||||
|
||||
|
||||
/**
|
||||
* Dynamic Init
|
||||
* @throws Exception if Lookups cannot be initialized
|
||||
* @return true if initialized
|
||||
*/
|
||||
public boolean dynInit() throws Exception
|
||||
{
|
||||
log.config("");
|
||||
|
||||
super.dynInit();
|
||||
|
||||
//Refresh button
|
||||
CButton refreshButton = ConfirmPanel.createRefreshButton(false);
|
||||
refreshButton.setMargin(new Insets (1, 10, 0, 10));
|
||||
refreshButton.setDefaultCapable(true);
|
||||
refreshButton.addActionListener(this);
|
||||
dialog.getConfirmPanel().addButton(refreshButton);
|
||||
dialog.getRootPane().setDefaultButton(refreshButton);
|
||||
|
||||
if (getGridTab().getValue("C_BankStatement_ID") == null)
|
||||
{
|
||||
ADialog.error(0, dialog, "SaveErrorRowNotFound");
|
||||
return false;
|
||||
}
|
||||
|
||||
dialog.setTitle(getTitle());
|
||||
|
||||
int AD_Column_ID = COLUMN_C_BANKSTATEMENT_C_BANKACCOUNT_ID; // C_BankStatement.C_BankAccount_ID
|
||||
MLookup lookup = MLookupFactory.get (Env.getCtx(), p_WindowNo, 0, AD_Column_ID, DisplayType.TableDir);
|
||||
bankAccountField = new VLookup ("C_BankAccount_ID", true, true, true, lookup);
|
||||
// Set Default
|
||||
int C_BankAccount_ID = Env.getContextAsInt(Env.getCtx(), p_WindowNo, "C_BankAccount_ID");
|
||||
bankAccountField.setValue(new Integer(C_BankAccount_ID));
|
||||
bankAccountField.addActionListener(this);
|
||||
// initial Loading
|
||||
authorizationField = new VString ("authorization", false, false, true, 10, 30, null, null);
|
||||
authorizationField.addActionListener(this);
|
||||
|
||||
MLookup lookupDocument = MLookupFactory.get (Env.getCtx(), p_WindowNo, 0, MColumn.getColumn_ID(MPayment.Table_Name, MPayment.COLUMNNAME_C_DocType_ID), DisplayType.TableDir);
|
||||
documentTypeField = new VLookup (MPayment.COLUMNNAME_C_DocType_ID,false,false,true,lookupDocument);
|
||||
documentTypeField.addActionListener(this);
|
||||
|
||||
MLookup lookupTender = MLookupFactory.get (Env.getCtx(), p_WindowNo, 0, MColumn.getColumn_ID(MPayment.Table_Name, MPayment.COLUMNNAME_TenderType), DisplayType.List);
|
||||
tenderTypeField = new VLookup (MPayment.COLUMNNAME_TenderType,false,false,true,lookupTender);
|
||||
tenderTypeField.addActionListener(this);
|
||||
|
||||
bPartnerLookup = new VLookup("C_BPartner_ID", false, false, true,
|
||||
MLookupFactory.get (Env.getCtx(), p_WindowNo, 0, 3499, DisplayType.Search));
|
||||
BPartner_idLabel.setLabelFor(bPartnerLookup);
|
||||
bPartnerLookup.addActionListener(this);
|
||||
|
||||
Timestamp date = Env.getContextAsDate(Env.getCtx(), p_WindowNo, MBankStatement.COLUMNNAME_StatementDate);
|
||||
dateToField.setValue(date);
|
||||
|
||||
documentNoField.addActionListener(this);
|
||||
dateFromField.addActionListener(this);
|
||||
dateToField.addActionListener(this);
|
||||
amtFromField.addActionListener(this);
|
||||
amtToField.addActionListener(this);
|
||||
|
||||
loadBankAccount();
|
||||
|
||||
return true;
|
||||
} // dynInit
|
||||
|
||||
/**
|
||||
* Static Init.
|
||||
* <pre>
|
||||
* parameterPanel
|
||||
* parameterBankPanel
|
||||
* parameterStdPanel
|
||||
* bPartner/order/invoice/shopment/licator Label/Field
|
||||
* dataPane
|
||||
* southPanel
|
||||
* confirmPanel
|
||||
* statusBar
|
||||
* </pre>
|
||||
* @throws Exception
|
||||
*/
|
||||
private void jbInit() throws Exception
|
||||
{
|
||||
bankAccountLabel.setText(Msg.translate(Env.getCtx(), "C_BankAccount_ID"));
|
||||
authorizationLabel.setText(Msg.translate(Env.getCtx(), "R_AuthCode"));
|
||||
|
||||
documentTypeLabel.setText(Msg.translate(Env.getCtx(), "C_DocType_ID"));
|
||||
tenderTypeLabel.setText(Msg.translate(Env.getCtx(), "TenderType"));
|
||||
|
||||
documentNoLabel.setLabelFor(documentNoField);
|
||||
dateFromLabel.setLabelFor(dateFromField);
|
||||
dateFromField.setToolTipText(Msg.translate(Env.getCtx(), "DateFrom"));
|
||||
dateToLabel.setLabelFor(dateToField);
|
||||
dateToField.setToolTipText(Msg.translate(Env.getCtx(), "DateTo"));
|
||||
amtFromLabel.setLabelFor(amtFromField);
|
||||
amtFromField.setToolTipText(Msg.translate(Env.getCtx(), "AmtFrom"));
|
||||
amtToLabel.setLabelFor(amtToField);
|
||||
amtToField.setToolTipText(Msg.translate(Env.getCtx(), "AmtTo"));
|
||||
|
||||
CPanel parameterPanel = dialog.getParameterPanel();
|
||||
parameterPanel.setLayout(new BorderLayout());
|
||||
|
||||
CPanel parameterBankPanel = new CPanel();
|
||||
parameterBankPanel.setLayout(new GridBagLayout());
|
||||
parameterPanel.add(parameterBankPanel, BorderLayout.CENTER);
|
||||
|
||||
parameterBankPanel.add(bankAccountLabel, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
|
||||
if (bankAccountField != null)
|
||||
parameterBankPanel.add(bankAccountField, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
|
||||
|
||||
parameterBankPanel.add(documentTypeLabel, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
|
||||
if(documentTypeField!= null)
|
||||
parameterBankPanel.add(documentTypeField, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
|
||||
|
||||
parameterBankPanel.add(tenderTypeLabel, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
|
||||
if(tenderTypeField!=null)
|
||||
parameterBankPanel.add(tenderTypeField, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
|
||||
|
||||
parameterBankPanel.add(BPartner_idLabel, new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
|
||||
parameterBankPanel.add(bPartnerLookup, new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
|
||||
|
||||
parameterBankPanel.add(documentNoLabel, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
|
||||
parameterBankPanel.add(documentNoField, new GridBagConstraints(3, 0, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
|
||||
|
||||
parameterBankPanel.add(authorizationLabel, new GridBagConstraints(2, 1, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
|
||||
parameterBankPanel.add(authorizationField, new GridBagConstraints(3, 1, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
|
||||
|
||||
parameterBankPanel.add(amtFromLabel, new GridBagConstraints(2, 2, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
|
||||
parameterBankPanel.add(amtFromField, new GridBagConstraints(3, 2, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
|
||||
parameterBankPanel.add(amtToLabel, new GridBagConstraints(4, 2, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
|
||||
parameterBankPanel.add(amtToField, new GridBagConstraints(5, 2, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
|
||||
|
||||
parameterBankPanel.add(dateFromLabel, new GridBagConstraints(2, 3, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
|
||||
parameterBankPanel.add(dateFromField, new GridBagConstraints(3, 3, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
|
||||
parameterBankPanel.add(dateToLabel, new GridBagConstraints(4, 3, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
|
||||
parameterBankPanel.add(dateToField, new GridBagConstraints(5, 3, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
|
||||
|
||||
} // jbInit
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
/**
|
||||
* Action Listener
|
||||
* @param e event
|
||||
*/
|
||||
public void actionPerformed(ActionEvent e)
|
||||
{
|
||||
log.config("Action=" + e.getActionCommand());
|
||||
// Object source = e.getSource();
|
||||
if(e.getActionCommand().equals(ConfirmPanel.A_REFRESH))
|
||||
{
|
||||
Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR);
|
||||
loadBankAccount();
|
||||
dialog.tableChanged(null);
|
||||
Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR);
|
||||
}
|
||||
} // actionPerformed
|
||||
|
||||
protected void loadBankAccount()
|
||||
{
|
||||
loadTableOIS(getBankAccountData(bankAccountField.getValue(), bPartnerLookup.getValue(),
|
||||
documentNoField.getText(), dateFromField.getValue(), dateToField.getValue(),
|
||||
amtFromField.getValue(), amtToField.getValue(),
|
||||
documentTypeField.getValue(), tenderTypeField.getValue(), authorizationField.getText()));
|
||||
}
|
||||
|
||||
protected void loadTableOIS (Vector<?> data)
|
||||
{
|
||||
// Remove previous listeners
|
||||
dialog.getMiniTable().getModel().removeTableModelListener(dialog);
|
||||
// Set Model
|
||||
DefaultTableModel model = new DefaultTableModel(data, getOISColumnNames());
|
||||
model.addTableModelListener(dialog);
|
||||
dialog.getMiniTable().setModel(model);
|
||||
//
|
||||
|
||||
configureMiniTable(dialog.getMiniTable());
|
||||
}
|
||||
|
||||
public void showWindow()
|
||||
{
|
||||
dialog.setVisible(true);
|
||||
}
|
||||
|
||||
public void closeWindow()
|
||||
{
|
||||
dialog.dispose();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getWindow()
|
||||
{
|
||||
return dialog;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,337 @@
|
|||
/******************************************************************************
|
||||
* Copyright (C) 2013 Elaine Tan *
|
||||
* Copyright (C) 2013 Trek Global
|
||||
* This program is free software; you can redistribute it and/or modify it *
|
||||
* under the terms version 2 of the GNU General Public License as published *
|
||||
* by the Free Software Foundation. This program is distributed in the hope *
|
||||
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||
* See the GNU General Public License for more details. *
|
||||
* You should have received a copy of the GNU General Public License along *
|
||||
* with this program; if not, write to the Free Software Foundation, Inc., *
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
||||
*****************************************************************************/
|
||||
package org.compiere.grid;
|
||||
|
||||
import static org.compiere.model.SystemIDs.COLUMN_C_BANKSTATEMENT_C_BANKACCOUNT_ID;
|
||||
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.Cursor;
|
||||
import java.awt.GridBagConstraints;
|
||||
import java.awt.GridBagLayout;
|
||||
import java.awt.Insets;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Vector;
|
||||
import java.util.logging.Level;
|
||||
|
||||
import javax.swing.JLabel;
|
||||
import javax.swing.table.DefaultTableModel;
|
||||
|
||||
import org.compiere.apps.ADialog;
|
||||
import org.compiere.apps.AEnv;
|
||||
import org.compiere.apps.ConfirmPanel;
|
||||
import org.compiere.grid.ed.VDate;
|
||||
import org.compiere.grid.ed.VLookup;
|
||||
import org.compiere.grid.ed.VNumber;
|
||||
import org.compiere.grid.ed.VString;
|
||||
import org.compiere.model.GridTab;
|
||||
import org.compiere.model.MBankStatement;
|
||||
import org.compiere.model.MColumn;
|
||||
import org.compiere.model.MLookup;
|
||||
import org.compiere.model.MLookupFactory;
|
||||
import org.compiere.model.MPayment;
|
||||
import org.compiere.swing.CButton;
|
||||
import org.compiere.swing.CLabel;
|
||||
import org.compiere.swing.CPanel;
|
||||
import org.compiere.swing.CTextField;
|
||||
import org.compiere.util.CLogger;
|
||||
import org.compiere.util.DisplayType;
|
||||
import org.compiere.util.Env;
|
||||
import org.compiere.util.Msg;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Elaine
|
||||
*
|
||||
*/
|
||||
public class VCreateFromDepositBatchUI extends CreateFromDepositBatch implements ActionListener
|
||||
{
|
||||
private VCreateFromDialog dialog;
|
||||
|
||||
public VCreateFromDepositBatchUI(GridTab mTab)
|
||||
{
|
||||
super(mTab);
|
||||
log.info(getGridTab().toString());
|
||||
|
||||
dialog = new VCreateFromDialog(this, getGridTab().getWindowNo(), true);
|
||||
|
||||
p_WindowNo = getGridTab().getWindowNo();
|
||||
|
||||
try
|
||||
{
|
||||
if (!dynInit())
|
||||
return;
|
||||
jbInit();
|
||||
|
||||
setInitOK(true);
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
log.log(Level.SEVERE, "", e);
|
||||
setInitOK(false);
|
||||
}
|
||||
AEnv.positionCenterWindow(AEnv.getWindow(p_WindowNo), dialog);
|
||||
} // VCreateFrom
|
||||
|
||||
/** Window No */
|
||||
private int p_WindowNo;
|
||||
|
||||
/** Logger */
|
||||
private CLogger log = CLogger.getCLogger(getClass());
|
||||
|
||||
private JLabel bankAccountLabel = new JLabel();
|
||||
protected VLookup bankAccountField;
|
||||
|
||||
private CLabel documentNoLabel = new CLabel(Msg.translate(Env.getCtx(), "DocumentNo"));
|
||||
protected CTextField documentNoField = new CTextField(10);
|
||||
|
||||
private JLabel documentTypeLabel = new JLabel();
|
||||
protected VLookup documentTypeField;
|
||||
|
||||
private JLabel authorizationLabel = new JLabel();
|
||||
protected VString authorizationField = new VString();
|
||||
|
||||
private JLabel tenderTypeLabel = new JLabel();
|
||||
protected VLookup tenderTypeField;
|
||||
|
||||
private CLabel amtFromLabel = new CLabel(Msg.translate(Env.getCtx(), "PayAmt"));
|
||||
protected VNumber amtFromField = new VNumber("AmtFrom", false, false, true, DisplayType.Amount, Msg.translate(Env.getCtx(), "AmtFrom"));
|
||||
private CLabel amtToLabel = new CLabel("-");
|
||||
protected VNumber amtToField = new VNumber("AmtTo", false, false, true, DisplayType.Amount, Msg.translate(Env.getCtx(), "AmtTo"));
|
||||
|
||||
protected CLabel BPartner_idLabel = new CLabel(Msg.translate(Env.getCtx(), "BPartner"));
|
||||
protected VLookup bPartnerLookup;
|
||||
|
||||
private CLabel dateFromLabel = new CLabel(Msg.translate(Env.getCtx(), "DateTrx"));
|
||||
protected VDate dateFromField = new VDate("DateFrom", false, false, true, DisplayType.Date, Msg.translate(Env.getCtx(), "DateFrom"));
|
||||
private CLabel dateToLabel = new CLabel("-");
|
||||
protected VDate dateToField = new VDate("DateTo", false, false, true, DisplayType.Date, Msg.translate(Env.getCtx(), "DateTo"));
|
||||
|
||||
|
||||
/**
|
||||
* Dynamic Init
|
||||
* @throws Exception if Lookups cannot be initialized
|
||||
* @return true if initialized
|
||||
*/
|
||||
public boolean dynInit() throws Exception
|
||||
{
|
||||
log.config("");
|
||||
|
||||
super.dynInit();
|
||||
|
||||
//Refresh button
|
||||
CButton refreshButton = ConfirmPanel.createRefreshButton(false);
|
||||
refreshButton.setMargin(new Insets (1, 10, 0, 10));
|
||||
refreshButton.setDefaultCapable(true);
|
||||
refreshButton.addActionListener(this);
|
||||
dialog.getConfirmPanel().addButton(refreshButton);
|
||||
dialog.getRootPane().setDefaultButton(refreshButton);
|
||||
|
||||
if (getGridTab().getValue("X_DepositBatch_ID") == null)
|
||||
{
|
||||
ADialog.error(0, dialog, "SaveErrorRowNotFound");
|
||||
return false;
|
||||
}
|
||||
|
||||
dialog.setTitle(getTitle());
|
||||
|
||||
int AD_Column_ID = COLUMN_C_BANKSTATEMENT_C_BANKACCOUNT_ID; // C_BankStatement.C_BankAccount_ID
|
||||
MLookup lookup = MLookupFactory.get (Env.getCtx(), p_WindowNo, 0, AD_Column_ID, DisplayType.TableDir);
|
||||
bankAccountField = new VLookup ("C_BankAccount_ID", true, true, true, lookup);
|
||||
// Set Default
|
||||
int C_BankAccount_ID = Env.getContextAsInt(Env.getCtx(), p_WindowNo, "C_BankAccount_ID");
|
||||
bankAccountField.setValue(new Integer(C_BankAccount_ID));
|
||||
bankAccountField.addActionListener(this);
|
||||
// initial Loading
|
||||
authorizationField = new VString ("authorization", false, false, true, 10, 30, null, null);
|
||||
authorizationField.addActionListener(this);
|
||||
|
||||
MLookup lookupDocument = MLookupFactory.get (Env.getCtx(), p_WindowNo, 0, MColumn.getColumn_ID(MPayment.Table_Name, MPayment.COLUMNNAME_C_DocType_ID), DisplayType.TableDir);
|
||||
documentTypeField = new VLookup (MPayment.COLUMNNAME_C_DocType_ID,false,false,true,lookupDocument);
|
||||
int C_DocType_ID = Env.getContextAsInt(Env.getCtx(), p_WindowNo, "C_DocType_ID");
|
||||
documentTypeField.setValue(new Integer(C_DocType_ID));
|
||||
documentTypeField.addActionListener(this);
|
||||
|
||||
MLookup lookupTender = MLookupFactory.get (Env.getCtx(), p_WindowNo, 0, MColumn.getColumn_ID(MPayment.Table_Name, MPayment.COLUMNNAME_TenderType), DisplayType.List);
|
||||
tenderTypeField = new VLookup (MPayment.COLUMNNAME_TenderType,false,false,true,lookupTender);
|
||||
tenderTypeField.addActionListener(this);
|
||||
|
||||
bPartnerLookup = new VLookup("C_BPartner_ID", false, false, true,
|
||||
MLookupFactory.get (Env.getCtx(), p_WindowNo, 0, 3499, DisplayType.Search));
|
||||
BPartner_idLabel.setLabelFor(bPartnerLookup);
|
||||
bPartnerLookup.addActionListener(this);
|
||||
|
||||
Timestamp date = Env.getContextAsDate(Env.getCtx(), p_WindowNo, MBankStatement.COLUMNNAME_StatementDate);
|
||||
dateToField.setValue(date);
|
||||
|
||||
documentNoField.addActionListener(this);
|
||||
dateFromField.addActionListener(this);
|
||||
dateToField.addActionListener(this);
|
||||
amtFromField.addActionListener(this);
|
||||
amtToField.addActionListener(this);
|
||||
|
||||
loadBankAccount();
|
||||
|
||||
return true;
|
||||
} // dynInit
|
||||
|
||||
/**
|
||||
* Static Init.
|
||||
* <pre>
|
||||
* parameterPanel
|
||||
* parameterBankPanel
|
||||
* parameterStdPanel
|
||||
* bPartner/order/invoice/shopment/licator Label/Field
|
||||
* dataPane
|
||||
* southPanel
|
||||
* confirmPanel
|
||||
* statusBar
|
||||
* </pre>
|
||||
* @throws Exception
|
||||
*/
|
||||
private void jbInit() throws Exception
|
||||
{
|
||||
bankAccountLabel.setText(Msg.translate(Env.getCtx(), "C_BankAccount_ID"));
|
||||
authorizationLabel.setText(Msg.translate(Env.getCtx(), "R_AuthCode"));
|
||||
|
||||
documentTypeLabel.setText(Msg.translate(Env.getCtx(), "C_DocType_ID"));
|
||||
tenderTypeLabel.setText(Msg.translate(Env.getCtx(), "TenderType"));
|
||||
|
||||
documentNoLabel.setLabelFor(documentNoField);
|
||||
dateFromLabel.setLabelFor(dateFromField);
|
||||
dateFromField.setToolTipText(Msg.translate(Env.getCtx(), "DateFrom"));
|
||||
dateToLabel.setLabelFor(dateToField);
|
||||
dateToField.setToolTipText(Msg.translate(Env.getCtx(), "DateTo"));
|
||||
amtFromLabel.setLabelFor(amtFromField);
|
||||
amtFromField.setToolTipText(Msg.translate(Env.getCtx(), "AmtFrom"));
|
||||
amtToLabel.setLabelFor(amtToField);
|
||||
amtToField.setToolTipText(Msg.translate(Env.getCtx(), "AmtTo"));
|
||||
|
||||
CPanel parameterPanel = dialog.getParameterPanel();
|
||||
parameterPanel.setLayout(new BorderLayout());
|
||||
|
||||
CPanel parameterBankPanel = new CPanel();
|
||||
parameterBankPanel.setLayout(new GridBagLayout());
|
||||
parameterPanel.add(parameterBankPanel, BorderLayout.CENTER);
|
||||
|
||||
parameterBankPanel.add(bankAccountLabel, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
|
||||
if (bankAccountField != null)
|
||||
parameterBankPanel.add(bankAccountField, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
|
||||
|
||||
parameterBankPanel.add(documentTypeLabel, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
|
||||
if(documentTypeField!= null)
|
||||
parameterBankPanel.add(documentTypeField, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
|
||||
|
||||
parameterBankPanel.add(tenderTypeLabel, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
|
||||
if(tenderTypeField!=null)
|
||||
parameterBankPanel.add(tenderTypeField, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
|
||||
|
||||
parameterBankPanel.add(BPartner_idLabel, new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
|
||||
parameterBankPanel.add(bPartnerLookup, new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
|
||||
|
||||
parameterBankPanel.add(documentNoLabel, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
|
||||
parameterBankPanel.add(documentNoField, new GridBagConstraints(3, 0, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
|
||||
|
||||
parameterBankPanel.add(authorizationLabel, new GridBagConstraints(2, 1, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
|
||||
parameterBankPanel.add(authorizationField, new GridBagConstraints(3, 1, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
|
||||
|
||||
parameterBankPanel.add(amtFromLabel, new GridBagConstraints(2, 2, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
|
||||
parameterBankPanel.add(amtFromField, new GridBagConstraints(3, 2, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
|
||||
parameterBankPanel.add(amtToLabel, new GridBagConstraints(4, 2, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
|
||||
parameterBankPanel.add(amtToField, new GridBagConstraints(5, 2, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
|
||||
|
||||
parameterBankPanel.add(dateFromLabel, new GridBagConstraints(2, 3, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
|
||||
parameterBankPanel.add(dateFromField, new GridBagConstraints(3, 3, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
|
||||
parameterBankPanel.add(dateToLabel, new GridBagConstraints(4, 3, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
|
||||
parameterBankPanel.add(dateToField, new GridBagConstraints(5, 3, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
|
||||
|
||||
} // jbInit
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
/**
|
||||
* Action Listener
|
||||
* @param e event
|
||||
*/
|
||||
public void actionPerformed(ActionEvent e)
|
||||
{
|
||||
log.config("Action=" + e.getActionCommand());
|
||||
// Object source = e.getSource();
|
||||
if(e.getActionCommand().equals(ConfirmPanel.A_REFRESH))
|
||||
{
|
||||
Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR);
|
||||
loadBankAccount();
|
||||
dialog.tableChanged(null);
|
||||
Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR);
|
||||
}
|
||||
} // actionPerformed
|
||||
|
||||
protected void loadBankAccount()
|
||||
{
|
||||
loadTableOIS(getBankAccountData(bankAccountField.getValue(), bPartnerLookup.getValue(),
|
||||
documentNoField.getText(), dateFromField.getValue(), dateToField.getValue(),
|
||||
amtFromField.getValue(), amtToField.getValue(),
|
||||
documentTypeField.getValue(), tenderTypeField.getValue(), authorizationField.getText()));
|
||||
}
|
||||
|
||||
protected void loadTableOIS (Vector<?> data)
|
||||
{
|
||||
// Remove previous listeners
|
||||
dialog.getMiniTable().getModel().removeTableModelListener(dialog);
|
||||
// Set Model
|
||||
DefaultTableModel model = new DefaultTableModel(data, getOISColumnNames());
|
||||
model.addTableModelListener(dialog);
|
||||
dialog.getMiniTable().setModel(model);
|
||||
//
|
||||
|
||||
configureMiniTable(dialog.getMiniTable());
|
||||
}
|
||||
|
||||
public void showWindow()
|
||||
{
|
||||
dialog.setVisible(true);
|
||||
}
|
||||
|
||||
public void closeWindow()
|
||||
{
|
||||
dialog.dispose();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getWindow()
|
||||
{
|
||||
return dialog;
|
||||
}
|
||||
}
|
|
@ -196,7 +196,7 @@ public class VCreateFromDialog extends CDialog implements ActionListener, TableM
|
|||
}
|
||||
setStatusLine(count, null);
|
||||
|
||||
createFrom.info();
|
||||
createFrom.info(dataTable, statusBar);
|
||||
}
|
||||
|
||||
public void setStatusLine(int selectedRowCount, String text)
|
||||
|
|
|
@ -20,13 +20,13 @@ import org.compiere.model.GridTab;
|
|||
|
||||
public class VCreateFromFactory
|
||||
{
|
||||
public static ICreateFrom create (GridTab mTab)
|
||||
public static ICreateFrom create (GridTab mTab, String columnName)
|
||||
{
|
||||
ICreateFrom createFrom = null;
|
||||
List<ICreateFromFactory> factories = Service.locator().list(ICreateFromFactory.class).getServices();
|
||||
for (ICreateFromFactory factory : factories)
|
||||
{
|
||||
createFrom = factory.create(mTab);
|
||||
createFrom = factory.create(mTab, columnName);
|
||||
if (createFrom != null)
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,335 @@
|
|||
/******************************************************************************
|
||||
* Copyright (C) 2013 Elaine Tan *
|
||||
* Copyright (C) 2013 Trek Global
|
||||
* This program is free software; you can redistribute it and/or modify it *
|
||||
* under the terms version 2 of the GNU General Public License as published *
|
||||
* by the Free Software Foundation. This program is distributed in the hope *
|
||||
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||
* See the GNU General Public License for more details. *
|
||||
* You should have received a copy of the GNU General Public License along *
|
||||
* with this program; if not, write to the Free Software Foundation, Inc., *
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
||||
*****************************************************************************/
|
||||
package org.compiere.grid;
|
||||
|
||||
import static org.compiere.model.SystemIDs.COLUMN_C_BANKSTATEMENT_C_BANKACCOUNT_ID;
|
||||
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.Cursor;
|
||||
import java.awt.GridBagConstraints;
|
||||
import java.awt.GridBagLayout;
|
||||
import java.awt.Insets;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Vector;
|
||||
import java.util.logging.Level;
|
||||
|
||||
import javax.swing.JLabel;
|
||||
import javax.swing.table.DefaultTableModel;
|
||||
|
||||
import org.compiere.apps.ADialog;
|
||||
import org.compiere.apps.AEnv;
|
||||
import org.compiere.apps.ConfirmPanel;
|
||||
import org.compiere.grid.ed.VDate;
|
||||
import org.compiere.grid.ed.VLookup;
|
||||
import org.compiere.grid.ed.VNumber;
|
||||
import org.compiere.grid.ed.VString;
|
||||
import org.compiere.model.GridTab;
|
||||
import org.compiere.model.MBankStatement;
|
||||
import org.compiere.model.MColumn;
|
||||
import org.compiere.model.MLookup;
|
||||
import org.compiere.model.MLookupFactory;
|
||||
import org.compiere.model.MPayment;
|
||||
import org.compiere.swing.CButton;
|
||||
import org.compiere.swing.CLabel;
|
||||
import org.compiere.swing.CPanel;
|
||||
import org.compiere.swing.CTextField;
|
||||
import org.compiere.util.CLogger;
|
||||
import org.compiere.util.DisplayType;
|
||||
import org.compiere.util.Env;
|
||||
import org.compiere.util.Msg;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Elaine
|
||||
*
|
||||
*/
|
||||
public class VCreateFromStatementBatchUI extends CreateFromStatementBatch implements ActionListener
|
||||
{
|
||||
private VCreateFromDialog dialog;
|
||||
|
||||
public VCreateFromStatementBatchUI(GridTab mTab)
|
||||
{
|
||||
super(mTab);
|
||||
log.info(getGridTab().toString());
|
||||
|
||||
dialog = new VCreateFromDialog(this, getGridTab().getWindowNo(), true);
|
||||
|
||||
p_WindowNo = getGridTab().getWindowNo();
|
||||
|
||||
try
|
||||
{
|
||||
if (!dynInit())
|
||||
return;
|
||||
jbInit();
|
||||
|
||||
setInitOK(true);
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
log.log(Level.SEVERE, "", e);
|
||||
setInitOK(false);
|
||||
}
|
||||
AEnv.positionCenterWindow(AEnv.getWindow(p_WindowNo), dialog);
|
||||
} // VCreateFrom
|
||||
|
||||
/** Window No */
|
||||
private int p_WindowNo;
|
||||
|
||||
/** Logger */
|
||||
private CLogger log = CLogger.getCLogger(getClass());
|
||||
|
||||
private JLabel bankAccountLabel = new JLabel();
|
||||
protected VLookup bankAccountField;
|
||||
|
||||
private CLabel documentNoLabel = new CLabel(Msg.translate(Env.getCtx(), "DocumentNo"));
|
||||
protected CTextField documentNoField = new CTextField(10);
|
||||
|
||||
private JLabel documentTypeLabel = new JLabel();
|
||||
protected VLookup documentTypeField;
|
||||
|
||||
private JLabel authorizationLabel = new JLabel();
|
||||
protected VString authorizationField = new VString();
|
||||
|
||||
private JLabel tenderTypeLabel = new JLabel();
|
||||
protected VLookup tenderTypeField;
|
||||
|
||||
private CLabel amtFromLabel = new CLabel(Msg.translate(Env.getCtx(), "PayAmt"));
|
||||
protected VNumber amtFromField = new VNumber("AmtFrom", false, false, true, DisplayType.Amount, Msg.translate(Env.getCtx(), "AmtFrom"));
|
||||
private CLabel amtToLabel = new CLabel("-");
|
||||
protected VNumber amtToField = new VNumber("AmtTo", false, false, true, DisplayType.Amount, Msg.translate(Env.getCtx(), "AmtTo"));
|
||||
|
||||
protected CLabel BPartner_idLabel = new CLabel(Msg.translate(Env.getCtx(), "BPartner"));
|
||||
protected VLookup bPartnerLookup;
|
||||
|
||||
private CLabel dateFromLabel = new CLabel(Msg.translate(Env.getCtx(), "DateTrx"));
|
||||
protected VDate dateFromField = new VDate("DateFrom", false, false, true, DisplayType.Date, Msg.translate(Env.getCtx(), "DateFrom"));
|
||||
private CLabel dateToLabel = new CLabel("-");
|
||||
protected VDate dateToField = new VDate("DateTo", false, false, true, DisplayType.Date, Msg.translate(Env.getCtx(), "DateTo"));
|
||||
|
||||
|
||||
/**
|
||||
* Dynamic Init
|
||||
* @throws Exception if Lookups cannot be initialized
|
||||
* @return true if initialized
|
||||
*/
|
||||
public boolean dynInit() throws Exception
|
||||
{
|
||||
log.config("");
|
||||
|
||||
super.dynInit();
|
||||
|
||||
//Refresh button
|
||||
CButton refreshButton = ConfirmPanel.createRefreshButton(false);
|
||||
refreshButton.setMargin(new Insets (1, 10, 0, 10));
|
||||
refreshButton.setDefaultCapable(true);
|
||||
refreshButton.addActionListener(this);
|
||||
dialog.getConfirmPanel().addButton(refreshButton);
|
||||
dialog.getRootPane().setDefaultButton(refreshButton);
|
||||
|
||||
if (getGridTab().getValue("C_BankStatement_ID") == null)
|
||||
{
|
||||
ADialog.error(0, dialog, "SaveErrorRowNotFound");
|
||||
return false;
|
||||
}
|
||||
|
||||
dialog.setTitle(getTitle());
|
||||
|
||||
int AD_Column_ID = COLUMN_C_BANKSTATEMENT_C_BANKACCOUNT_ID; // C_BankStatement.C_BankAccount_ID
|
||||
MLookup lookup = MLookupFactory.get (Env.getCtx(), p_WindowNo, 0, AD_Column_ID, DisplayType.TableDir);
|
||||
bankAccountField = new VLookup ("C_BankAccount_ID", true, true, true, lookup);
|
||||
// Set Default
|
||||
int C_BankAccount_ID = Env.getContextAsInt(Env.getCtx(), p_WindowNo, "C_BankAccount_ID");
|
||||
bankAccountField.setValue(new Integer(C_BankAccount_ID));
|
||||
bankAccountField.addActionListener(this);
|
||||
// initial Loading
|
||||
authorizationField = new VString ("authorization", false, false, true, 10, 30, null, null);
|
||||
authorizationField.addActionListener(this);
|
||||
|
||||
MLookup lookupDocument = MLookupFactory.get (Env.getCtx(), p_WindowNo, 0, MColumn.getColumn_ID(MPayment.Table_Name, MPayment.COLUMNNAME_C_DocType_ID), DisplayType.TableDir);
|
||||
documentTypeField = new VLookup (MPayment.COLUMNNAME_C_DocType_ID,false,false,true,lookupDocument);
|
||||
documentTypeField.addActionListener(this);
|
||||
|
||||
MLookup lookupTender = MLookupFactory.get (Env.getCtx(), p_WindowNo, 0, MColumn.getColumn_ID(MPayment.Table_Name, MPayment.COLUMNNAME_TenderType), DisplayType.List);
|
||||
tenderTypeField = new VLookup (MPayment.COLUMNNAME_TenderType,false,false,true,lookupTender);
|
||||
tenderTypeField.addActionListener(this);
|
||||
|
||||
bPartnerLookup = new VLookup("C_BPartner_ID", false, false, true,
|
||||
MLookupFactory.get (Env.getCtx(), p_WindowNo, 0, 3499, DisplayType.Search));
|
||||
BPartner_idLabel.setLabelFor(bPartnerLookup);
|
||||
bPartnerLookup.addActionListener(this);
|
||||
|
||||
Timestamp date = Env.getContextAsDate(Env.getCtx(), p_WindowNo, MBankStatement.COLUMNNAME_StatementDate);
|
||||
dateToField.setValue(date);
|
||||
|
||||
documentNoField.addActionListener(this);
|
||||
dateFromField.addActionListener(this);
|
||||
dateToField.addActionListener(this);
|
||||
amtFromField.addActionListener(this);
|
||||
amtToField.addActionListener(this);
|
||||
|
||||
loadBankAccount();
|
||||
|
||||
return true;
|
||||
} // dynInit
|
||||
|
||||
/**
|
||||
* Static Init.
|
||||
* <pre>
|
||||
* parameterPanel
|
||||
* parameterBankPanel
|
||||
* parameterStdPanel
|
||||
* bPartner/order/invoice/shopment/licator Label/Field
|
||||
* dataPane
|
||||
* southPanel
|
||||
* confirmPanel
|
||||
* statusBar
|
||||
* </pre>
|
||||
* @throws Exception
|
||||
*/
|
||||
private void jbInit() throws Exception
|
||||
{
|
||||
bankAccountLabel.setText(Msg.translate(Env.getCtx(), "C_BankAccount_ID"));
|
||||
authorizationLabel.setText(Msg.translate(Env.getCtx(), "R_AuthCode"));
|
||||
|
||||
documentTypeLabel.setText(Msg.translate(Env.getCtx(), "C_DocType_ID"));
|
||||
tenderTypeLabel.setText(Msg.translate(Env.getCtx(), "TenderType"));
|
||||
|
||||
documentNoLabel.setLabelFor(documentNoField);
|
||||
dateFromLabel.setLabelFor(dateFromField);
|
||||
dateFromField.setToolTipText(Msg.translate(Env.getCtx(), "DateFrom"));
|
||||
dateToLabel.setLabelFor(dateToField);
|
||||
dateToField.setToolTipText(Msg.translate(Env.getCtx(), "DateTo"));
|
||||
amtFromLabel.setLabelFor(amtFromField);
|
||||
amtFromField.setToolTipText(Msg.translate(Env.getCtx(), "AmtFrom"));
|
||||
amtToLabel.setLabelFor(amtToField);
|
||||
amtToField.setToolTipText(Msg.translate(Env.getCtx(), "AmtTo"));
|
||||
|
||||
CPanel parameterPanel = dialog.getParameterPanel();
|
||||
parameterPanel.setLayout(new BorderLayout());
|
||||
|
||||
CPanel parameterBankPanel = new CPanel();
|
||||
parameterBankPanel.setLayout(new GridBagLayout());
|
||||
parameterPanel.add(parameterBankPanel, BorderLayout.CENTER);
|
||||
|
||||
parameterBankPanel.add(bankAccountLabel, new GridBagConstraints(0, 0, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
|
||||
if (bankAccountField != null)
|
||||
parameterBankPanel.add(bankAccountField, new GridBagConstraints(1, 0, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
|
||||
|
||||
parameterBankPanel.add(documentTypeLabel, new GridBagConstraints(0, 1, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
|
||||
if(documentTypeField!= null)
|
||||
parameterBankPanel.add(documentTypeField, new GridBagConstraints(1, 1, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
|
||||
|
||||
parameterBankPanel.add(tenderTypeLabel, new GridBagConstraints(0, 2, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
|
||||
if(tenderTypeField!=null)
|
||||
parameterBankPanel.add(tenderTypeField, new GridBagConstraints(1, 2, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
|
||||
|
||||
parameterBankPanel.add(BPartner_idLabel, new GridBagConstraints(0, 3, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
|
||||
parameterBankPanel.add(bPartnerLookup, new GridBagConstraints(1, 3, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
|
||||
|
||||
parameterBankPanel.add(documentNoLabel, new GridBagConstraints(2, 0, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
|
||||
parameterBankPanel.add(documentNoField, new GridBagConstraints(3, 0, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
|
||||
|
||||
parameterBankPanel.add(authorizationLabel, new GridBagConstraints(2, 1, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
|
||||
parameterBankPanel.add(authorizationField, new GridBagConstraints(3, 1, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
|
||||
|
||||
parameterBankPanel.add(amtFromLabel, new GridBagConstraints(2, 2, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
|
||||
parameterBankPanel.add(amtFromField, new GridBagConstraints(3, 2, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
|
||||
parameterBankPanel.add(amtToLabel, new GridBagConstraints(4, 2, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
|
||||
parameterBankPanel.add(amtToField, new GridBagConstraints(5, 2, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
|
||||
|
||||
parameterBankPanel.add(dateFromLabel, new GridBagConstraints(2, 3, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
|
||||
parameterBankPanel.add(dateFromField, new GridBagConstraints(3, 3, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
|
||||
parameterBankPanel.add(dateToLabel, new GridBagConstraints(4, 3, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.EAST, GridBagConstraints.NONE, new Insets(5, 5, 5, 5), 0, 0));
|
||||
parameterBankPanel.add(dateToField, new GridBagConstraints(5, 3, 1, 1, 0.0, 0.0
|
||||
,GridBagConstraints.WEST, GridBagConstraints.HORIZONTAL, new Insets(5, 0, 5, 5), 0, 0));
|
||||
|
||||
} // jbInit
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
/**
|
||||
* Action Listener
|
||||
* @param e event
|
||||
*/
|
||||
public void actionPerformed(ActionEvent e)
|
||||
{
|
||||
log.config("Action=" + e.getActionCommand());
|
||||
// Object source = e.getSource();
|
||||
if(e.getActionCommand().equals(ConfirmPanel.A_REFRESH))
|
||||
{
|
||||
Cursor.getPredefinedCursor(Cursor.WAIT_CURSOR);
|
||||
loadBankAccount();
|
||||
dialog.tableChanged(null);
|
||||
Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR);
|
||||
}
|
||||
} // actionPerformed
|
||||
|
||||
protected void loadBankAccount()
|
||||
{
|
||||
loadTableOIS(getBankAccountData(bankAccountField.getValue(), bPartnerLookup.getValue(),
|
||||
documentNoField.getText(), dateFromField.getValue(), dateToField.getValue(),
|
||||
amtFromField.getValue(), amtToField.getValue(),
|
||||
documentTypeField.getValue(), tenderTypeField.getValue(), authorizationField.getText()));
|
||||
}
|
||||
|
||||
protected void loadTableOIS (Vector<?> data)
|
||||
{
|
||||
// Remove previous listeners
|
||||
dialog.getMiniTable().getModel().removeTableModelListener(dialog);
|
||||
// Set Model
|
||||
DefaultTableModel model = new DefaultTableModel(data, getOISColumnNames());
|
||||
model.addTableModelListener(dialog);
|
||||
dialog.getMiniTable().setModel(model);
|
||||
//
|
||||
|
||||
configureMiniTable(dialog.getMiniTable());
|
||||
}
|
||||
|
||||
public void showWindow()
|
||||
{
|
||||
dialog.setVisible(true);
|
||||
}
|
||||
|
||||
public void closeWindow()
|
||||
{
|
||||
dialog.dispose();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getWindow()
|
||||
{
|
||||
return dialog;
|
||||
}
|
||||
}
|
|
@ -13,6 +13,8 @@
|
|||
*****************************************************************************/
|
||||
package org.compiere.grid;
|
||||
|
||||
import static org.compiere.model.SystemIDs.COLUMN_C_BANKSTATEMENT_C_BANKACCOUNT_ID;
|
||||
|
||||
import java.awt.BorderLayout;
|
||||
import java.awt.Cursor;
|
||||
import java.awt.GridBagConstraints;
|
||||
|
@ -20,9 +22,7 @@ import java.awt.GridBagLayout;
|
|||
import java.awt.Insets;
|
||||
import java.awt.event.ActionEvent;
|
||||
import java.awt.event.ActionListener;
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.Timestamp;
|
||||
import java.text.DecimalFormat;
|
||||
import java.util.Vector;
|
||||
import java.util.logging.Level;
|
||||
|
||||
|
@ -43,7 +43,6 @@ import org.compiere.model.MColumn;
|
|||
import org.compiere.model.MLookup;
|
||||
import org.compiere.model.MLookupFactory;
|
||||
import org.compiere.model.MPayment;
|
||||
import static org.compiere.model.SystemIDs.*;
|
||||
import org.compiere.swing.CButton;
|
||||
import org.compiere.swing.CLabel;
|
||||
import org.compiere.swing.CPanel;
|
||||
|
@ -55,7 +54,6 @@ import org.compiere.util.Msg;
|
|||
|
||||
public class VCreateFromStatementUI extends CreateFromStatement implements ActionListener
|
||||
{
|
||||
|
||||
private VCreateFromDialog dialog;
|
||||
|
||||
public VCreateFromStatementUI(GridTab mTab)
|
||||
|
@ -308,27 +306,6 @@ public class VCreateFromStatementUI extends CreateFromStatement implements Actio
|
|||
configureMiniTable(dialog.getMiniTable());
|
||||
}
|
||||
|
||||
/**
|
||||
* List total amount
|
||||
*/
|
||||
public void info()
|
||||
{
|
||||
DecimalFormat format = DisplayType.getNumberFormat(DisplayType.Amount);
|
||||
|
||||
BigDecimal total = new BigDecimal(0.0);
|
||||
int rows = dialog.getMiniTable().getRowCount();
|
||||
int count = 0;
|
||||
for (int i = 0; i < rows; i++)
|
||||
{
|
||||
if (((Boolean)dialog.getMiniTable().getValueAt(i, 0)).booleanValue())
|
||||
{
|
||||
total = total.add((BigDecimal)dialog.getMiniTable().getValueAt(i, 4));
|
||||
count++;
|
||||
}
|
||||
}
|
||||
dialog.setStatusLine(count, Msg.getMsg(Env.getCtx(), "Sum") + " " + format.format(total));
|
||||
} // infoStatement
|
||||
|
||||
public void showWindow()
|
||||
{
|
||||
dialog.setVisible(true);
|
||||
|
|
|
@ -17,12 +17,11 @@ Import-Package: javax.servlet,
|
|||
org.slf4j.helpers;version="1.6.1",
|
||||
org.slf4j.spi;version="1.6.1"
|
||||
DynamicImport-Package: action.images
|
||||
Bundle-ClassPath: WEB-INF/classes/,
|
||||
Bundle-ClassPath: .,
|
||||
WEB-INF/lib/atmosphere-compat-jbossweb-1.0.4.jar,
|
||||
WEB-INF/lib/atmosphere-compat-tomcat-1.0.4.jar,
|
||||
WEB-INF/lib/atmosphere-compat-tomcat7-1.0.4.jar,
|
||||
WEB-INF/lib/atmosphere-runtime-1.0.4.jar,
|
||||
.
|
||||
WEB-INF/lib/atmosphere-runtime-1.0.4.jar
|
||||
Export-Package: metainfo.zk,
|
||||
org.adempiere.webui,
|
||||
org.adempiere.webui.acct,
|
||||
|
|
|
@ -74,6 +74,11 @@ public final class LayoutUtils {
|
|||
|| ((" " + sclass + " ").indexOf(" " + cls + " ") > -1);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param label
|
||||
* @return wrapped label
|
||||
*/
|
||||
public static Component makeRightAlign(Label label) {
|
||||
Div div = new Div();
|
||||
div.setStyle("text-align: right");
|
||||
|
@ -154,6 +159,10 @@ public final class LayoutUtils {
|
|||
Clients.response("_openPopupWindow_", new AuScript(window, script.toString()));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param component
|
||||
*/
|
||||
public static void redraw(AbstractComponent component) {
|
||||
StringWriter writer = new StringWriter(1024);
|
||||
try {
|
||||
|
@ -163,4 +172,20 @@ public final class LayoutUtils {
|
|||
e.printStackTrace();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param component
|
||||
* @return true if the component and all its parent are visible
|
||||
*/
|
||||
public static boolean isReallyVisible(Component component) {
|
||||
if (!component.isVisible()) return false;
|
||||
Component parent = component.getParent();
|
||||
while (parent != null) {
|
||||
if (!parent.isVisible())
|
||||
return false;
|
||||
|
||||
parent = parent.getParent();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -229,16 +229,9 @@ public class ValuePreference extends Window implements EventListener<Event>
|
|||
}
|
||||
} // ValuePreference
|
||||
|
||||
private AbstractADWindowContent findADWindowContent(Component ref) {
|
||||
Component parent = ref.getParent();
|
||||
while(parent != null) {
|
||||
if (parent.getAttribute(ADWindow.AD_WINDOW_ATTRIBUTE_KEY) != null) {
|
||||
ADWindow adwindow = (ADWindow) parent.getAttribute(ADWindow.AD_WINDOW_ATTRIBUTE_KEY);
|
||||
return adwindow.getADWindowContent();
|
||||
}
|
||||
parent = parent.getParent();
|
||||
}
|
||||
return null;
|
||||
private AbstractADWindowContent findADWindowContent(Component comp) {
|
||||
ADWindow adwindow = ADWindow.findADWindow(comp);
|
||||
return adwindow != null ? adwindow.getADWindowContent() : null;
|
||||
}
|
||||
|
||||
private Properties m_ctx;
|
||||
|
|
|
@ -936,7 +936,7 @@ public class ADSortTab extends Panel implements IADTabpanel
|
|||
}
|
||||
|
||||
@Override
|
||||
public boolean isActive() {
|
||||
public boolean isActivated() {
|
||||
return active;
|
||||
}
|
||||
|
||||
|
@ -979,5 +979,14 @@ public class ADSortTab extends Panel implements IADTabpanel
|
|||
public int getTabNo() {
|
||||
return tabNo;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setDetailPane(DetailPane detailPane) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public DetailPane getDetailPane() {
|
||||
return null;
|
||||
}
|
||||
} //ADSortTab
|
||||
|
||||
|
|
|
@ -55,11 +55,15 @@ import org.compiere.model.DataStatusListener;
|
|||
import org.compiere.model.GridField;
|
||||
import org.compiere.model.GridTab;
|
||||
import org.compiere.model.GridWindow;
|
||||
import org.compiere.model.I_AD_Preference;
|
||||
import org.compiere.model.MLookup;
|
||||
import org.compiere.model.MPreference;
|
||||
import org.compiere.model.MTable;
|
||||
import org.compiere.model.MToolBarButton;
|
||||
import org.compiere.model.MToolBarButtonRestrict;
|
||||
import org.compiere.model.MTree;
|
||||
import org.compiere.model.MTreeNode;
|
||||
import org.compiere.model.Query;
|
||||
import org.compiere.model.X_AD_FieldGroup;
|
||||
import org.compiere.model.X_AD_ToolBarButton;
|
||||
import org.compiere.util.CLogger;
|
||||
|
@ -70,13 +74,13 @@ import org.compiere.util.Msg;
|
|||
import org.compiere.util.Util;
|
||||
import org.zkoss.zk.au.out.AuFocus;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.Desktop;
|
||||
import org.zkoss.zk.ui.Executions;
|
||||
import org.zkoss.zk.ui.HtmlBasedComponent;
|
||||
import org.zkoss.zk.ui.IdSpace;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zk.ui.event.EventListener;
|
||||
import org.zkoss.zk.ui.event.Events;
|
||||
import org.zkoss.zk.ui.event.OpenEvent;
|
||||
import org.zkoss.zk.ui.util.Clients;
|
||||
import org.zkoss.zul.Button;
|
||||
import org.zkoss.zul.Cell;
|
||||
|
@ -84,6 +88,7 @@ import org.zkoss.zul.Center;
|
|||
import org.zkoss.zul.DefaultTreeNode;
|
||||
import org.zkoss.zul.Div;
|
||||
import org.zkoss.zul.Separator;
|
||||
import org.zkoss.zul.South;
|
||||
import org.zkoss.zul.Space;
|
||||
import org.zkoss.zul.Style;
|
||||
import org.zkoss.zul.TreeModel;
|
||||
|
@ -108,6 +113,8 @@ import org.zkoss.zul.impl.XulElement;
|
|||
public class ADTabpanel extends Div implements Evaluatee, EventListener<Event>,
|
||||
DataStatusListener, IADTabpanel, IdSpace
|
||||
{
|
||||
private static final String ON_SAVE_OPEN_PREFERENCE_EVENT = "onSaveOpenPreference";
|
||||
|
||||
public static final String ON_POST_INIT_EVENT = "onPostInit";
|
||||
|
||||
public static final String ON_SWITCH_VIEW_EVENT = "onSwitchView";
|
||||
|
@ -159,17 +166,17 @@ DataStatusListener, IADTabpanel, IdSpace
|
|||
|
||||
List<Group> allCollapsibleGroups = new ArrayList<Group>();
|
||||
|
||||
private Component formContainer = null;
|
||||
private Borderlayout formContainer = null;
|
||||
|
||||
private ADTreePanel treePanel = null;
|
||||
|
||||
private GridTabDataBinder dataBinder;
|
||||
|
||||
private boolean active = false;
|
||||
private boolean activated = false;
|
||||
|
||||
private Group currentGroup;
|
||||
|
||||
private Component detailPane;
|
||||
private DetailPane detailPane;
|
||||
|
||||
private boolean detailPaneMode;
|
||||
|
||||
|
@ -195,6 +202,7 @@ DataStatusListener, IADTabpanel, IdSpace
|
|||
}
|
||||
});
|
||||
addEventListener(ON_POST_INIT_EVENT, this);
|
||||
addEventListener(ON_SAVE_OPEN_PREFERENCE_EVENT, this);
|
||||
}
|
||||
|
||||
private void initComponents()
|
||||
|
@ -214,19 +222,32 @@ DataStatusListener, IADTabpanel, IdSpace
|
|||
listPanel.getListbox().addEventListener(Events.ON_DOUBLE_CLICK, this);
|
||||
}
|
||||
|
||||
public void addDetails(Component component) {
|
||||
public void setDetailPane(DetailPane component) {
|
||||
detailPane = component;
|
||||
if (formContainer instanceof Borderlayout) {
|
||||
Borderlayout borderLayout = (Borderlayout) formContainer;
|
||||
borderLayout.appendSouth(detailPane);
|
||||
|
||||
borderLayout.getSouth().setCollapsible(true);
|
||||
borderLayout.getSouth().setSplittable(true);
|
||||
borderLayout.getSouth().setOpen(true);
|
||||
borderLayout.getSouth().setSclass("adwindow-gridview-detail");
|
||||
} else {
|
||||
formContainer.appendChild(component);
|
||||
}
|
||||
|
||||
Borderlayout borderLayout = (Borderlayout) formContainer;
|
||||
South south = borderLayout.getSouth();
|
||||
if (south == null) {
|
||||
south = new South();
|
||||
borderLayout.appendChild(south);
|
||||
south.setWidgetOverride("doClick_", "function (evt){this.$supers('doClick_', arguments);" +
|
||||
"var target = evt.domTarget;if (!target.id) target = target.parentNode;" +
|
||||
"if(this.$n('colled') == target) {" +
|
||||
"var se = new zk.Event(this, 'onSlide', null, {toServer: true}); zAu.send(se); } }");
|
||||
south.addEventListener(Events.ON_OPEN, this);
|
||||
south.addEventListener("onSlide", this);
|
||||
}
|
||||
south.appendChild(component);
|
||||
|
||||
south.setVisible(true);
|
||||
south.setCollapsible(true);
|
||||
south.setSplittable(true);
|
||||
south.setOpen(isOpenDetailPane());
|
||||
south.setSclass("adwindow-gridview-detail");
|
||||
}
|
||||
|
||||
public DetailPane getDetailPane() {
|
||||
return detailPane;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -291,6 +312,7 @@ DataStatusListener, IADTabpanel, IdSpace
|
|||
div.setHflex("1");
|
||||
div.setSclass("adtab-form");
|
||||
div.setStyle("overflow-y: visible;");
|
||||
div.setSpacing("0px");
|
||||
layout.appendChild(center);
|
||||
|
||||
formContainer = layout;
|
||||
|
@ -305,6 +327,7 @@ DataStatusListener, IADTabpanel, IdSpace
|
|||
div.setStyle("overflow-y: visible;");
|
||||
div.setVflex("1");
|
||||
div.setWidth("100%");
|
||||
div.setSpacing("0px");
|
||||
|
||||
StringBuilder cssContent = new StringBuilder();
|
||||
cssContent.append(".adtab-form-borderlayout .z-south-colpsd:before { ");
|
||||
|
@ -867,7 +890,7 @@ DataStatusListener, IADTabpanel, IdSpace
|
|||
setAttribute(ATTR_ON_ACTIVATE_POSTED, Boolean.TRUE);
|
||||
}
|
||||
|
||||
active = activate;
|
||||
activated = activate;
|
||||
if (listPanel.isVisible()) {
|
||||
if (activate)
|
||||
listPanel.activate(gridTab);
|
||||
|
@ -940,18 +963,72 @@ DataStatusListener, IADTabpanel, IdSpace
|
|||
else if (WPaymentEditor.ON_SAVE_PAYMENT.equals(event.getName())) {
|
||||
windowPanel.onSavePayment();
|
||||
}
|
||||
else if (ON_POST_INIT_EVENT.equals(event.getName())) {
|
||||
else if (ON_POST_INIT_EVENT.equals(event.getName())) {
|
||||
if (isDetailVisible() && detailPane.getSelectedADTabpanel() != null) {
|
||||
detailPane.getSelectedADTabpanel().activate(true);
|
||||
}
|
||||
}
|
||||
else if (event.getTarget() instanceof South) {
|
||||
if (detailPane != null) {
|
||||
Desktop desktop = Executions.getCurrent().getDesktop();
|
||||
//for unknown reason, this is needed once per desktop to fixed the layout of the detailpane.
|
||||
if (desktop.getAttribute("adtabpanel.detailpane.postinit.redraw") == null) {
|
||||
desktop.setAttribute("adtabpanel.detailpane.postinit.redraw", Boolean.TRUE);
|
||||
Events.postEvent(new Event(LayoutUtils.ON_REDRAW_EVENT, detailPane));
|
||||
boolean openEvent = event instanceof OpenEvent;
|
||||
if (openEvent) {
|
||||
Events.echoEvent(ON_SAVE_OPEN_PREFERENCE_EVENT, this, ((OpenEvent)event).isOpen());
|
||||
if (!((OpenEvent)event).isOpen()) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (detailPane.getParent() == null) {
|
||||
formContainer.appendSouth(detailPane);
|
||||
}
|
||||
IADTabpanel tabPanel = detailPane.getSelectedADTabpanel();
|
||||
if (tabPanel != null) {
|
||||
if (!tabPanel.isActivated()) {
|
||||
tabPanel.activate(true);
|
||||
}
|
||||
if (!tabPanel.isGridView()) {
|
||||
tabPanel.switchRowPresentation();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (event.getName().equals(ON_SAVE_OPEN_PREFERENCE_EVENT)) {
|
||||
Boolean value = (Boolean) event.getData();
|
||||
int windowId = getGridTab().getAD_Window_ID();
|
||||
int adTabId = getGridTab().getAD_Tab_ID();
|
||||
if (windowId > 0 && adTabId > 0) {
|
||||
Query query = new Query(Env.getCtx(), MTable.get(Env.getCtx(), I_AD_Preference.Table_ID), "AD_Window_ID=? AND Attribute=?", null);
|
||||
MPreference preference = query.setOnlyActiveRecords(true)
|
||||
.setApplyAccessFilter(true)
|
||||
.setParameters(windowId, adTabId+"|DetailPane.IsOpen")
|
||||
.first();
|
||||
if (preference != null && preference.getAD_Preference_ID() > 0) {
|
||||
preference.setValue(value ? "Y" : "N");
|
||||
} else {
|
||||
preference = new MPreference(Env.getCtx(), 0, null);
|
||||
preference.setAD_Window_ID(windowId);
|
||||
preference.setAttribute(adTabId+"|DetailPane.IsOpen");
|
||||
preference.setValue(value ? "Y" : "N");
|
||||
}
|
||||
preference.save();
|
||||
//update current context
|
||||
Env.getCtx().setProperty("P"+windowId+"|"+adTabId+"|DetailPane.IsOpen", value ? "Y" : "N");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private boolean isOpenDetailPane() {
|
||||
boolean open = true;
|
||||
int windowId = getGridTab().getAD_Window_ID();
|
||||
int adTabId = getGridTab().getAD_Tab_ID();
|
||||
if (windowId > 0 && adTabId > 0) {
|
||||
String preference = Env.getPreference(Env.getCtx(), windowId, adTabId+"|DetailPane.IsOpen", false);
|
||||
if (preference != null && preference.trim().length() > 0) {
|
||||
open = "Y".equals(preference);
|
||||
}
|
||||
}
|
||||
return open;
|
||||
}
|
||||
|
||||
private void navigateTo(DefaultTreeNode<MTreeNode> value) {
|
||||
MTreeNode treeNode = value.getData();
|
||||
// We Have a TreeNode
|
||||
|
@ -1177,6 +1254,10 @@ DataStatusListener, IADTabpanel, IdSpace
|
|||
listPanel.focus();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param columnName
|
||||
*/
|
||||
public void setFocusToField(String columnName) {
|
||||
if (formContainer.isVisible()) {
|
||||
boolean found = false;
|
||||
|
@ -1220,25 +1301,40 @@ DataStatusListener, IADTabpanel, IdSpace
|
|||
return listPanel;
|
||||
}
|
||||
|
||||
public boolean isActive() {
|
||||
return active;
|
||||
@Override
|
||||
public boolean isActivated() {
|
||||
return activated;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void setDetailPaneMode(boolean detailPaneMode) {
|
||||
if (this.detailPaneMode != detailPaneMode) {
|
||||
this.detailPaneMode = detailPaneMode;
|
||||
if (detailPaneMode) {
|
||||
detailPane = null;
|
||||
if (formContainer instanceof Borderlayout) {
|
||||
Borderlayout borderLayout = (Borderlayout) formContainer;
|
||||
if (borderLayout.getSouth() != null) {
|
||||
borderLayout.getSouth().detach();
|
||||
}
|
||||
}
|
||||
}
|
||||
detachDetailPane();
|
||||
} else {
|
||||
attachDetailPane();
|
||||
}
|
||||
this.setVflex("true");
|
||||
listPanel.setDetailPaneMode(detailPaneMode);
|
||||
}
|
||||
}
|
||||
|
||||
private void attachDetailPane() {
|
||||
if (formContainer.getSouth() != null) {
|
||||
formContainer.getSouth().setVisible(true);
|
||||
if (formContainer.getSouth().isOpen() && detailPane != null && detailPane.getParent() == null) {
|
||||
formContainer.appendSouth(detailPane);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void detachDetailPane() {
|
||||
if (formContainer.getSouth() != null) {
|
||||
formContainer.getSouth().setVisible(false);
|
||||
if (detailPane != null && detailPane.getParent() != null) {
|
||||
detailPane.detach();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1287,5 +1383,46 @@ DataStatusListener, IADTabpanel, IdSpace
|
|||
public int getTabNo() {
|
||||
return tabNo;
|
||||
}
|
||||
|
||||
/**
|
||||
* activate current selected detail tab if it is visible
|
||||
*/
|
||||
public void activateDetailIfVisible() {
|
||||
if (isDetailVisible()) {
|
||||
IADTabpanel tabPanel = detailPane.getSelectedADTabpanel();
|
||||
if (tabPanel != null && !tabPanel.isActivated()) {
|
||||
tabPanel.activate(true);
|
||||
if (!tabPanel.isGridView()) {
|
||||
tabPanel.switchRowPresentation();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @return true if the detailpane is visible
|
||||
*/
|
||||
public boolean isDetailVisible() {
|
||||
if (formContainer.getSouth() == null || !formContainer.getSouth().isVisible()
|
||||
|| !formContainer.getSouth().isOpen()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return detailPane != null;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @return true if have one or more detail tabs
|
||||
*/
|
||||
public boolean hasDetailTabs() {
|
||||
if (formContainer.getSouth() == null || !formContainer.getSouth().isVisible()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return detailPane != null && detailPane.getTabcount() > 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -51,11 +51,22 @@ public class ADWindow extends AbstractUIPart
|
|||
|
||||
private static final CCache<Integer, AImage> imageCache = new CCache<Integer, AImage>(null, "WindowImageCache", 5, false);
|
||||
|
||||
/**
|
||||
*
|
||||
* @param ctx
|
||||
* @param adWindowId
|
||||
*/
|
||||
public ADWindow(Properties ctx, int adWindowId)
|
||||
{
|
||||
this(ctx, adWindowId, null);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param ctx
|
||||
* @param adWindowId
|
||||
* @param query
|
||||
*/
|
||||
public ADWindow(Properties ctx, int adWindowId, MQuery query)
|
||||
{
|
||||
if(adWindowId <= 0)
|
||||
|
@ -75,11 +86,19 @@ public class ADWindow extends AbstractUIPart
|
|||
image = windowContent.getImage();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @return title of window
|
||||
*/
|
||||
public String getTitle()
|
||||
{
|
||||
return _title;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @return image for the country
|
||||
*/
|
||||
public MImage getMImage()
|
||||
{
|
||||
return image;
|
||||
|
@ -118,6 +137,7 @@ public class ADWindow extends AbstractUIPart
|
|||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public Component getComponent() {
|
||||
return windowPanelComponent;
|
||||
}
|
||||
|
@ -129,7 +149,28 @@ public class ADWindow extends AbstractUIPart
|
|||
return windowContent;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param windowNo
|
||||
* @return adwindow instance for windowNo ( if any )
|
||||
*/
|
||||
public static ADWindow get(int windowNo) {
|
||||
return (ADWindow) SessionManager.getAppDesktop().findWindow(windowNo);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param comp
|
||||
* @return adwindow instance if found, null otherwise
|
||||
*/
|
||||
public static ADWindow findADWindow(Component comp) {
|
||||
Component parent = comp.getParent();
|
||||
while(parent != null) {
|
||||
if (parent.getAttribute(AD_WINDOW_ATTRIBUTE_KEY) != null) {
|
||||
ADWindow adwindow = (ADWindow) parent.getAttribute(AD_WINDOW_ATTRIBUTE_KEY);
|
||||
return adwindow;
|
||||
}
|
||||
parent = parent.getParent();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -75,6 +75,7 @@ public class ADWindowContent extends AbstractADWindowContent
|
|||
} else {
|
||||
layout.setPage(page);
|
||||
}
|
||||
layout.setSpacing("0px");
|
||||
|
||||
//toolbar
|
||||
Div north = new Div();
|
||||
|
|
|
@ -140,7 +140,9 @@ import org.zkoss.zul.Window.Mode;
|
|||
public abstract class AbstractADWindowContent extends AbstractUIPart implements ToolbarListener,
|
||||
EventListener<Event>, DataStatusListener, ActionListener
|
||||
{
|
||||
private static final CLogger logger;
|
||||
private static final String ON_DEFER_SET_DETAILPANE_SELECTION_EVENT = "onDeferSetDetailpaneSelection";
|
||||
|
||||
private static final CLogger logger;
|
||||
|
||||
static
|
||||
{
|
||||
|
@ -213,6 +215,7 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
|
|||
|
||||
Component comp = super.createPart(parent);
|
||||
comp.addEventListener(LayoutUtils.ON_REDRAW_EVENT, this);
|
||||
comp.addEventListener(ON_DEFER_SET_DETAILPANE_SELECTION_EVENT, this);
|
||||
return comp;
|
||||
}
|
||||
|
||||
|
@ -976,7 +979,7 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
|
|||
if (eventData != null && eventData instanceof Object[] && ((Object[])eventData).length == 2)
|
||||
{
|
||||
Object[] indexes = (Object[]) eventData;
|
||||
int newTabIndex = (Integer)indexes[1];
|
||||
final int newTabIndex = (Integer)indexes[1];
|
||||
|
||||
final int originalTabIndex = adTabbox.getSelectedIndex();
|
||||
final int originalTabRow = adTabbox.getSelectedGridTab().getCurrentRow();
|
||||
|
@ -986,7 +989,14 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
|
|||
public void onCallback(Boolean result) {
|
||||
if (result)
|
||||
{
|
||||
adTabbox.setDetailpaneSelection(originalTabIndex, originalTabRow);
|
||||
if (newTabIndex < originalTabIndex)
|
||||
{
|
||||
if (adTabbox.isDetailPaneLoaded())
|
||||
adTabbox.setDetailPaneSelectedTab(originalTabIndex, originalTabRow);
|
||||
else {
|
||||
Events.echoEvent(new Event(ON_DEFER_SET_DETAILPANE_SELECTION_EVENT, getComponent(), new Integer[]{originalTabIndex, originalTabRow}));
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -1027,6 +1037,10 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
|
|||
}
|
||||
LayoutUtils.redraw((AbstractComponent) getComponent());
|
||||
}
|
||||
else if (event.getName().equals(ON_DEFER_SET_DETAILPANE_SELECTION_EVENT)) {
|
||||
Integer[] data = (Integer[]) event.getData();
|
||||
adTabbox.setDetailPaneSelectedTab(data[0], data[1]);
|
||||
}
|
||||
}
|
||||
|
||||
private void setActiveTab(final int newTabIndex, final Callback<Boolean> callback) {
|
||||
|
@ -1051,7 +1065,13 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
|
|||
}
|
||||
}
|
||||
};
|
||||
saveAndNavigate(command);
|
||||
Object value = Executions.getCurrent().getAttribute(CompositeADTabbox.AD_TABBOX_ON_EDIT_DETAIL_ATTRIBUTE);
|
||||
if (value != null && value == adTabbox.getSelectedDetailADTabpanel()
|
||||
&& adTabbox.getDirtyADTabpanel() == adTabbox.getSelectedDetailADTabpanel()) {
|
||||
command.onCallback(true);
|
||||
} else {
|
||||
saveAndNavigate(command);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1099,10 +1119,10 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
|
|||
|
||||
IADTabpanel newTabpanel = adTabbox.getSelectedTabpanel();
|
||||
|
||||
boolean activated = newTabpanel.isActive();
|
||||
boolean activated = newTabpanel.isActivated();
|
||||
if (oldTabpanel != null)
|
||||
oldTabpanel.activate(false);
|
||||
if (activated)
|
||||
if (!activated)
|
||||
newTabpanel.activate(true);
|
||||
|
||||
back = (newTabIndex < oldTabIndex);
|
||||
|
@ -1124,17 +1144,16 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
|
|||
}
|
||||
}
|
||||
|
||||
// if (!activated)
|
||||
// {
|
||||
if (!back)
|
||||
{
|
||||
newTabpanel.query();
|
||||
}
|
||||
else
|
||||
{
|
||||
newTabpanel.refresh();
|
||||
}
|
||||
// }
|
||||
if (!back)
|
||||
{
|
||||
Object value = Executions.getCurrent().removeAttribute(CompositeADTabbox.AD_TABBOX_ON_EDIT_DETAIL_ATTRIBUTE);
|
||||
if (value != newTabpanel)
|
||||
newTabpanel.query();
|
||||
}
|
||||
else
|
||||
{
|
||||
newTabpanel.refresh();
|
||||
}
|
||||
|
||||
if (adTabbox.getSelectedTabpanel() instanceof ADSortTab)
|
||||
{
|
||||
|
@ -1512,6 +1531,18 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
|
|||
toolbar.enableIgnore(true);
|
||||
toolbar.enablePrint(adTabbox.getSelectedGridTab().isPrinted());
|
||||
toolbar.enableReport(true);
|
||||
if (adTabbox.getSelectedGridTab().isSingleRow())
|
||||
{
|
||||
if (adTabbox.getSelectedTabpanel().isGridView())
|
||||
{
|
||||
adTabbox.getSelectedTabpanel().switchRowPresentation();
|
||||
}
|
||||
}
|
||||
|
||||
if (adTabbox.getSelectedTabpanel().isGridView())
|
||||
{
|
||||
adTabbox.getSelectedTabpanel().getGridView().onEditCurrentRow();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -2371,11 +2402,10 @@ public abstract class AbstractADWindowContent extends AbstractUIPart implements
|
|||
}
|
||||
} // DocAction
|
||||
|
||||
// Pop up Create From
|
||||
|
||||
else if (col.equals("CreateFrom"))
|
||||
// Pop up Create From
|
||||
else if (col.equals("CreateFrom") || col.equals("X_CreateFromBatch"))
|
||||
{
|
||||
ICreateFrom cf = WCreateFromFactory.create(adtabPanel.getGridTab());
|
||||
ICreateFrom cf = WCreateFromFactory.create(adtabPanel.getGridTab(), col);
|
||||
|
||||
if(cf != null)
|
||||
{
|
||||
|
|
|
@ -28,6 +28,7 @@ import org.adempiere.webui.component.Tabpanel;
|
|||
import org.adempiere.webui.component.ToolBar;
|
||||
import org.adempiere.webui.component.ToolBarButton;
|
||||
import org.adempiere.webui.component.Window;
|
||||
import org.adempiere.webui.component.ZkCssHelper;
|
||||
import org.adempiere.webui.event.ToolbarListener;
|
||||
import org.adempiere.webui.window.WRecordInfo;
|
||||
import org.compiere.model.DataStatusEvent;
|
||||
|
@ -37,6 +38,7 @@ import org.compiere.util.Env;
|
|||
import org.compiere.util.Msg;
|
||||
import org.compiere.util.Util;
|
||||
import org.zkoss.zhtml.Text;
|
||||
import org.zkoss.zk.au.out.AuScript;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.Execution;
|
||||
import org.zkoss.zk.ui.Executions;
|
||||
|
@ -62,6 +64,10 @@ import org.zkoss.zul.Space;
|
|||
*/
|
||||
public class BreadCrumb extends Div implements EventListener<Event> {
|
||||
|
||||
private static final String ON_MOUSE_OVER_ECHO_EVENT = "onMouseOverEcho";
|
||||
|
||||
private static final String ON_MOUSE_OUT_ECHO_EVENT = "onMouseOutEcho";
|
||||
|
||||
private static final String INFO_INDICATOR_IMAGE = "/images/InfoIndicator16.png";
|
||||
|
||||
private static final String ERROR_INDICATOR_IMAGE = "/images/ErrorIndicator16.png";
|
||||
|
@ -160,12 +166,24 @@ public class BreadCrumb extends Div implements EventListener<Event> {
|
|||
|
||||
toolbar.setStyle("background-image: none; background-color: transparent; border: none;");
|
||||
setWidgetAttribute(AdempiereWebUI.WIDGET_INSTANCE_NAME, "breadcrumb");
|
||||
|
||||
this.addEventListener(ON_MOUSE_OUT_ECHO_EVENT, this);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param listener
|
||||
*/
|
||||
public void setToolbarListener(ToolbarListener listener) {
|
||||
this.toolbarListener = listener;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param label
|
||||
* @param id
|
||||
* @param clickable
|
||||
*/
|
||||
public void addPath(String label, String id, boolean clickable) {
|
||||
if (clickable) {
|
||||
BreadCrumbLink a = new BreadCrumbLink();
|
||||
|
@ -193,6 +211,10 @@ public class BreadCrumb extends Div implements EventListener<Event> {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @return list of parent links
|
||||
*/
|
||||
public List<BreadCrumbLink> getParentLinks() {
|
||||
List<BreadCrumbLink> parents = new ArrayList<BreadCrumbLink>();
|
||||
for(Component component : layout.getChildren()) {
|
||||
|
@ -202,20 +224,63 @@ public class BreadCrumb extends Div implements EventListener<Event> {
|
|||
return parents;
|
||||
}
|
||||
|
||||
/**
|
||||
* add links to other tabs at the same level
|
||||
* @param links
|
||||
*/
|
||||
public void addLinks(LinkedHashMap<String, String> links) {
|
||||
this.links = links;
|
||||
final Label pathLabel = (Label) layout.getChildren().get(layout.getChildren().size()-2);
|
||||
pathLabel.setStyle("cursor: pointer; font-weight: bold");
|
||||
pathLabel.setStyle("cursor: pointer; font-weight: bold; padding-right: 10px;");
|
||||
EventListener<Event> listener = new EventListener<Event>() {
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
if (linkPopup != null ) {
|
||||
if (linkPopup.getPage() != null && linkPopup.isVisible()) {
|
||||
return;
|
||||
if (linkPopup != null && linkPopup.getPage() != null && linkPopup.isVisible()) {
|
||||
if (event.getName().equals(Events.ON_MOUSE_OUT)) {
|
||||
linkPopup.setAttribute(ON_MOUSE_OUT_ECHO_EVENT, Boolean.TRUE);
|
||||
StringBuilder script = new StringBuilder("setTimeout(function(){var w=zk('#")
|
||||
.append(BreadCrumb.this.getUuid()).append("').$();")
|
||||
.append("var e=new zk.Event(w, '")
|
||||
.append(ON_MOUSE_OUT_ECHO_EVENT)
|
||||
.append("', null, {toServer:true});")
|
||||
.append("zAu.send(e);},500)");
|
||||
final AuScript response = new AuScript(script.toString());
|
||||
Clients.response(response);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
linkPopup = new Menupopup();
|
||||
if (event.getName().equals(Events.ON_CLICK)) {
|
||||
if (linkPopup != null && linkPopup.getPage() != null)
|
||||
linkPopup.detach();
|
||||
linkPopup = new Menupopup();
|
||||
showLinksMenu(pathLabel);
|
||||
} else if (event.getName().equals(Events.ON_MOUSE_OVER)) {
|
||||
if (linkPopup == null || !linkPopup.isVisible()) {
|
||||
if (linkPopup != null && linkPopup.getPage() != null)
|
||||
linkPopup.detach();
|
||||
linkPopup = new Menupopup();
|
||||
StringBuilder script = new StringBuilder("setTimeout(function(){var w=zk('#")
|
||||
.append(event.getTarget().getUuid()).append("').$();")
|
||||
.append("var e=new zk.Event(w, '")
|
||||
.append(ON_MOUSE_OVER_ECHO_EVENT)
|
||||
.append("', null, {toServer:true});")
|
||||
.append("zAu.send(e);},500)");
|
||||
AuScript response = new AuScript(script.toString());
|
||||
Clients.response(response);
|
||||
}
|
||||
} else if (event.getName().equals(Events.ON_MOUSE_OUT)) {
|
||||
if (linkPopup != null && linkPopup.getPage() == null) {
|
||||
linkPopup = null;
|
||||
}
|
||||
} else if (event.getName().equals(ON_MOUSE_OVER_ECHO_EVENT)) {
|
||||
if (linkPopup != null && linkPopup.getPage() == null) {
|
||||
showLinksMenu(pathLabel);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void showLinksMenu(final Label pathLabel) {
|
||||
for(Map.Entry<String, String>entry : BreadCrumb.this.links.entrySet()) {
|
||||
final Menuitem item = new Menuitem();
|
||||
item.setLabel(entry.getValue());
|
||||
|
@ -223,12 +288,41 @@ public class BreadCrumb extends Div implements EventListener<Event> {
|
|||
item.addEventListener(Events.ON_CLICK, BreadCrumb.this);
|
||||
linkPopup.appendChild(item);
|
||||
}
|
||||
|
||||
StringBuilder script = new StringBuilder("setTimeout(function(){var w=zk('#")
|
||||
.append(BreadCrumb.this.getUuid()).append("').$();")
|
||||
.append("var e=new zk.Event(w, '")
|
||||
.append(ON_MOUSE_OUT_ECHO_EVENT)
|
||||
.append("', null, {toServer:true});")
|
||||
.append("zAu.send(e);},500)");
|
||||
final AuScript response = new AuScript(script.toString());
|
||||
linkPopup.addEventListener(Events.ON_MOUSE_OUT, new EventListener<Event>() {
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
if (linkPopup != null) {
|
||||
linkPopup.setAttribute(ON_MOUSE_OUT_ECHO_EVENT, Boolean.TRUE);
|
||||
Clients.response(response);
|
||||
}
|
||||
}
|
||||
});
|
||||
linkPopup.addEventListener(Events.ON_MOUSE_OVER, new EventListener<Event>() {
|
||||
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
if (linkPopup != null && linkPopup.isVisible()) {
|
||||
linkPopup.removeAttribute(ON_MOUSE_OUT_ECHO_EVENT);
|
||||
}
|
||||
}
|
||||
});
|
||||
linkPopup.setPage(pathLabel.getPage());
|
||||
linkPopup.open(pathLabel);
|
||||
linkPopup.open(pathLabel);
|
||||
}
|
||||
};
|
||||
pathLabel.addEventListener(Events.ON_CLICK, listener);
|
||||
pathLabel.addEventListener(Events.ON_MOUSE_OVER, listener);
|
||||
pathLabel.addEventListener(Events.ON_MOUSE_OUT, listener);
|
||||
pathLabel.addEventListener(ON_MOUSE_OVER_ECHO_EVENT, listener);
|
||||
ZkCssHelper.appendStyle(pathLabel, "background: transparent url('images/downarrow.png') no-repeat right center");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -241,10 +335,9 @@ public class BreadCrumb extends Div implements EventListener<Event> {
|
|||
|
||||
String title = Msg.getMsg(Env.getCtx(), "Who") + m_text;
|
||||
new WRecordInfo (title, m_dse);
|
||||
}else if(event.getTarget() instanceof RecordLink){
|
||||
} else if(event.getTarget() instanceof RecordLink){
|
||||
doZoom((RecordLink)event.getTarget());
|
||||
}
|
||||
else if (event.getTarget().getParent() == messageContainer) {
|
||||
} else if (event.getTarget().getParent() == messageContainer) {
|
||||
showPopup();
|
||||
} else if (event.getTarget() == btnFirst) {
|
||||
if (toolbarListener != null)
|
||||
|
@ -258,23 +351,42 @@ public class BreadCrumb extends Div implements EventListener<Event> {
|
|||
} else if (event.getTarget() == btnLast) {
|
||||
if (toolbarListener != null)
|
||||
toolbarListener.onLast();
|
||||
} else if (event.getName().equals(ON_MOUSE_OUT_ECHO_EVENT)) {
|
||||
if (linkPopup != null && linkPopup.getPage() != null && linkPopup.isVisible()
|
||||
&& linkPopup.getAttribute(ON_MOUSE_OUT_ECHO_EVENT) != null) {
|
||||
linkPopup.detach();
|
||||
linkPopup = null;
|
||||
}
|
||||
} else {
|
||||
Events.sendEvent(this, event);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* remove all links
|
||||
*/
|
||||
public void reset() {
|
||||
layout.getChildren().clear();
|
||||
layout.appendChild(toolbarContainer);
|
||||
this.links = null;
|
||||
if (layout.getChildren().size() == 0 || layout.getChildren().size() > 1) {
|
||||
layout.getChildren().clear();
|
||||
layout.appendChild(toolbarContainer);
|
||||
this.links = null;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* enable/disable first record and previous record toolbar button
|
||||
* @param enabled
|
||||
*/
|
||||
public void enableFirstNavigation(boolean enabled)
|
||||
{
|
||||
this.btnFirst.setDisabled(!enabled);
|
||||
this.btnPrevious.setDisabled(!enabled);
|
||||
}
|
||||
|
||||
/**
|
||||
* enable or disable the next record and last record toolbar button
|
||||
* @param enabled
|
||||
*/
|
||||
public void enableLastNavigation(boolean enabled)
|
||||
{
|
||||
this.btnLast.setDisabled(!enabled);
|
||||
|
@ -505,7 +617,6 @@ public class BreadCrumb extends Div implements EventListener<Event> {
|
|||
msgPopup.setContentStyle("overflow: auto");
|
||||
msgPopup.setWidth("500px");
|
||||
msgPopup.appendChild(msgPopupCnt);
|
||||
// msgPopup.setPage(SessionManager.getAppDesktop().getComponent().getPage());
|
||||
msgPopup.setShadow(true);
|
||||
msgPopupCaption = new Caption();
|
||||
msgPopup.appendChild(msgPopupCaption);
|
||||
|
@ -524,10 +635,17 @@ public class BreadCrumb extends Div implements EventListener<Event> {
|
|||
linkPopup.detach();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param visible
|
||||
*/
|
||||
public void setNavigationToolbarVisibility(boolean visible) {
|
||||
toolbarContainer.setVisible(visible);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return true if there are one or more parent link
|
||||
*/
|
||||
public boolean hasParentLink() {
|
||||
for(Component c : layout.getChildren()) {
|
||||
if (c instanceof BreadCrumbLink) {
|
||||
|
@ -537,6 +655,10 @@ public class BreadCrumb extends Div implements EventListener<Event> {
|
|||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @return process logs
|
||||
*/
|
||||
public ProcessInfoLog[] getPLogs() {
|
||||
return pInfoLogs;
|
||||
}
|
||||
|
|
|
@ -21,6 +21,7 @@ import java.util.ArrayList;
|
|||
import java.util.Collections;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
import java.util.logging.Level;
|
||||
|
||||
import org.adempiere.util.Callback;
|
||||
import org.adempiere.webui.component.ADTabListModel;
|
||||
|
@ -34,6 +35,7 @@ import org.compiere.util.CLogger;
|
|||
import org.compiere.util.Env;
|
||||
import org.compiere.util.Evaluator;
|
||||
import org.compiere.util.Msg;
|
||||
import org.zkoss.zk.au.out.AuScript;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.Execution;
|
||||
import org.zkoss.zk.ui.Executions;
|
||||
|
@ -54,10 +56,13 @@ import org.zkoss.zul.Vlayout;
|
|||
*/
|
||||
public class CompositeADTabbox extends AbstractADTabbox
|
||||
{
|
||||
public static final String AD_TABBOX_ON_EDIT_DETAIL_ATTRIBUTE = "ADTabbox.onEditDetail";
|
||||
|
||||
private static final String ON_POST_TAB_SELECTION_CHANGED_EVENT = "onPostTabSelectionChanged";
|
||||
|
||||
public static final String ON_SELECTION_CHANGED_EVENT = "onSelectionChanged";
|
||||
|
||||
/** Logger */
|
||||
@SuppressWarnings("unused")
|
||||
private static CLogger log = CLogger.getCLogger (CompositeADTabbox.class);
|
||||
|
||||
private List<ADTabListModel.ADTabLabel> tabLabelList = new ArrayList<ADTabListModel.ADTabLabel>();
|
||||
|
@ -66,17 +71,17 @@ public class CompositeADTabbox extends AbstractADTabbox
|
|||
|
||||
private Vlayout layout;
|
||||
|
||||
protected DetailPane detailPane;
|
||||
|
||||
private EventListener<Event> selectionListener;
|
||||
|
||||
private IADTabpanel headerTab;
|
||||
|
||||
private int selectedIndex = 0;
|
||||
|
||||
public CompositeADTabbox()
|
||||
{
|
||||
detailPane = new DetailPane();
|
||||
public CompositeADTabbox(){
|
||||
}
|
||||
|
||||
protected DetailPane createDetailPane() {
|
||||
DetailPane detailPane = new DetailPane();
|
||||
detailPane.setEventListener(new EventListener<Event>() {
|
||||
|
||||
@Override
|
||||
|
@ -84,31 +89,52 @@ public class CompositeADTabbox extends AbstractADTabbox
|
|||
if (DetailPane.ON_EDIT_EVENT.equals(event.getName())) {
|
||||
if (headerTab.getGridTab().isNew()) return;
|
||||
|
||||
final int row = detailPane.getSelectedADTabpanel() != null
|
||||
? detailPane.getSelectedADTabpanel().getGridTab().getCurrentRow()
|
||||
final int row = getSelectedDetailADTabpanel() != null
|
||||
? getSelectedDetailADTabpanel().getGridTab().getCurrentRow()
|
||||
: 0;
|
||||
final boolean formView = event.getData() != null ? (Boolean)event.getData() : true;
|
||||
adWindowPanel.saveAndNavigate(new Callback<Boolean>() {
|
||||
@Override
|
||||
public void onCallback(Boolean result) {
|
||||
if (result)
|
||||
onEditDetail(row, formView);
|
||||
}
|
||||
});
|
||||
if (getSelectedDetailADTabpanel() != null &&
|
||||
((getSelectedDetailADTabpanel() == getDirtyADTabpanel()) ||
|
||||
(getDirtyADTabpanel() == null && getSelectedDetailADTabpanel().getGridTab().isNew()))) {
|
||||
onEditDetail(row, formView);
|
||||
} else {
|
||||
adWindowPanel.saveAndNavigate(new Callback<Boolean>() {
|
||||
@Override
|
||||
public void onCallback(Boolean result) {
|
||||
if (result)
|
||||
onEditDetail(row, formView);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
else if (DetailPane.ON_NEW_EVENT.equals(event.getName())) {
|
||||
if (headerTab.getGridTab().isNew()) return;
|
||||
|
||||
final int row = detailPane.getSelectedADTabpanel() != null
|
||||
? detailPane.getSelectedADTabpanel().getGridTab().getCurrentRow()
|
||||
final int row = getSelectedDetailADTabpanel() != null
|
||||
? getSelectedDetailADTabpanel().getGridTab().getCurrentRow()
|
||||
: 0;
|
||||
adWindowPanel.saveAndNavigate(new Callback<Boolean>() {
|
||||
@Override
|
||||
public void onCallback(Boolean result) {
|
||||
if (result) {
|
||||
onEditDetail(row, true);
|
||||
if (!adWindowPanel.getActiveGridTab().isNew())
|
||||
adWindowPanel.onNew();
|
||||
if (getSelectedDetailADTabpanel().getGridTab().isSingleRow()) {
|
||||
onEditDetail(row, true);
|
||||
if (!adWindowPanel.getActiveGridTab().isNew())
|
||||
adWindowPanel.onNew();
|
||||
} else {
|
||||
if (!getSelectedDetailADTabpanel().getGridTab().isNew()) {
|
||||
getSelectedDetailADTabpanel().getGridTab().dataNew(false);
|
||||
if (!((ADTabpanel)headerTab).isDetailVisible()) {
|
||||
String uuid = headerTab.getDetailPane().getParent().getUuid();
|
||||
String vid = getSelectedDetailADTabpanel().getGridView().getUuid();
|
||||
String script = "setTimeout(function(){zk('#"+uuid+"').$().setOpen(true);setTimeout(function(){var v=zk('#" + vid
|
||||
+ "').$();var e=new zk.Event(v,'onEditCurrentRow',null,{toServer:true});zAu.send(e);},200);},200)";
|
||||
Clients.response(new AuScript(script));
|
||||
} else {
|
||||
getSelectedDetailADTabpanel().getGridView().onEditCurrentRow();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -116,7 +142,7 @@ public class CompositeADTabbox extends AbstractADTabbox
|
|||
else if (DetailPane.ON_DELETE_EVENT.equals(event.getName())) {
|
||||
if (headerTab.getGridTab().isNew()) return;
|
||||
|
||||
final IADTabpanel tabPanel = detailPane.getSelectedADTabpanel();
|
||||
final IADTabpanel tabPanel = getSelectedDetailADTabpanel();
|
||||
if (tabPanel != null && tabPanel.getGridTab().getRowCount() > 0
|
||||
&& tabPanel.getGridTab().getCurrentRow() >= 0) {
|
||||
FDialog.ask(tabPanel.getGridTab().getWindowNo(), null, "DeleteRecord?", new Callback<Boolean>() {
|
||||
|
@ -134,15 +160,19 @@ public class CompositeADTabbox extends AbstractADTabbox
|
|||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
return detailPane;
|
||||
}
|
||||
|
||||
|
||||
protected void onEditDetail(int row, boolean formView) {
|
||||
|
||||
int oldIndex = selectedIndex;
|
||||
IADTabpanel selectedPanel = detailPane.getSelectedADTabpanel();
|
||||
IADTabpanel selectedPanel = getSelectedDetailADTabpanel();
|
||||
if (selectedPanel == null) return;
|
||||
int newIndex = selectedPanel.getTabNo();
|
||||
|
||||
Executions.getCurrent().setAttribute(AD_TABBOX_ON_EDIT_DETAIL_ATTRIBUTE, selectedPanel);
|
||||
Event selectionChanged = new Event(ON_SELECTION_CHANGED_EVENT, layout, new Object[]{oldIndex, newIndex});
|
||||
try {
|
||||
selectionListener.onEvent(selectionChanged);
|
||||
|
@ -154,7 +184,15 @@ public class CompositeADTabbox extends AbstractADTabbox
|
|||
if (formView && headerTab.isGridView()) {
|
||||
headerTab.switchRowPresentation();
|
||||
}
|
||||
|
||||
headerTab.getGridTab().setCurrentRow(row, true);
|
||||
if (headerTab.isGridView()) {
|
||||
if (headerTab.getGridTab().isNew() || headerTab.needSave(true, false)) {
|
||||
headerTab.getGridView().onEditCurrentRow();
|
||||
}
|
||||
} else {
|
||||
((HtmlBasedComponent)headerTab).focus();
|
||||
}
|
||||
}
|
||||
|
||||
protected Component doCreatePart(Component parent)
|
||||
|
@ -168,6 +206,13 @@ public class CompositeADTabbox extends AbstractADTabbox
|
|||
} else {
|
||||
layout.setPage(page);
|
||||
}
|
||||
|
||||
layout.addEventListener(ON_POST_TAB_SELECTION_CHANGED_EVENT, new EventListener<Event>() {
|
||||
@Override
|
||||
public void onEvent(Event event) throws Exception {
|
||||
onPostTabSelectionChanged();
|
||||
}
|
||||
});
|
||||
|
||||
BreadCrumb breadCrumb = getBreadCrumb();
|
||||
breadCrumb.addEventListener(Events.ON_CLICK, new EventListener<Event>() {
|
||||
|
@ -210,12 +255,10 @@ public class CompositeADTabbox extends AbstractADTabbox
|
|||
return;
|
||||
|
||||
IADTabpanel tabPanel = (IADTabpanel) event.getTarget();
|
||||
if (tabPanel == headerTab) {
|
||||
if (tabPanel != headerTab) {
|
||||
if (b != null && b.booleanValue()) {
|
||||
activateDetailADTabpanel();
|
||||
}
|
||||
} else {
|
||||
onActivateDetail(tabPanel);
|
||||
onActivateDetail(tabPanel);
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -225,26 +268,26 @@ public class CompositeADTabbox extends AbstractADTabbox
|
|||
public void onEvent(Event event) throws Exception {
|
||||
final IADTabpanel tabPanel = (IADTabpanel) event.getTarget();
|
||||
int oldIndex = (Integer) event.getData();
|
||||
if (oldIndex != detailPane.getSelectedIndex()) {
|
||||
IADTabpanel prevTabPanel = detailPane.getADTabpanel(oldIndex);
|
||||
if (oldIndex != headerTab.getDetailPane().getSelectedIndex()) {
|
||||
IADTabpanel prevTabPanel = headerTab.getDetailPane().getADTabpanel(oldIndex);
|
||||
if (prevTabPanel != null && prevTabPanel.needSave(true, true)) {
|
||||
final int newIndex = detailPane.getSelectedIndex();
|
||||
detailPane.setSelectedIndex(oldIndex);
|
||||
final int newIndex = headerTab.getDetailPane().getSelectedIndex();
|
||||
headerTab.getDetailPane().setSelectedIndex(oldIndex);
|
||||
adWindowPanel.saveAndNavigate(new Callback<Boolean>() {
|
||||
@Override
|
||||
public void onCallback(Boolean result) {
|
||||
if (result) {
|
||||
detailPane.setSelectedIndex(newIndex);
|
||||
onActivateDetail(tabPanel);
|
||||
headerTab.getDetailPane().setSelectedIndex(newIndex);
|
||||
tabPanel.activate(true);
|
||||
}
|
||||
}
|
||||
});
|
||||
} else {
|
||||
detailPane.setSelectedIndex(detailPane.getSelectedIndex());
|
||||
onActivateDetail(tabPanel);
|
||||
headerTab.getDetailPane().setSelectedIndex(headerTab.getDetailPane().getSelectedIndex());
|
||||
tabPanel.activate(true);
|
||||
}
|
||||
} else {
|
||||
onActivateDetail(tabPanel);
|
||||
tabPanel.activate(true);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -259,7 +302,8 @@ public class CompositeADTabbox extends AbstractADTabbox
|
|||
if (detailPanel != null) {
|
||||
detailPanel.setDetailPaneMode(true);
|
||||
}
|
||||
detailPane.setVflex("true");
|
||||
if (headerTab.getDetailPane() != null)
|
||||
headerTab.getDetailPane().setVflex("true");
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -272,7 +316,7 @@ public class CompositeADTabbox extends AbstractADTabbox
|
|||
if (tabPanel == headerTab) {
|
||||
adWindowPanel.onToggle();
|
||||
} else {
|
||||
detailPane.onEdit(true);
|
||||
headerTab.getDetailPane().onEdit(true);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -295,19 +339,18 @@ public class CompositeADTabbox extends AbstractADTabbox
|
|||
headerTab = tabPanel;
|
||||
updateBreadCrumb();
|
||||
} else if (tabLabel.tabLevel <= 1) {
|
||||
if (detailPane.getParent() == null) {
|
||||
ADTabpanel adtabpanel = (ADTabpanel) headerTab;
|
||||
adtabpanel.addDetails(detailPane);
|
||||
if (headerTab.getDetailPane() == null) {
|
||||
headerTab.setDetailPane(createDetailPane());
|
||||
} else
|
||||
tabPanel.setVisible(false);
|
||||
detailPane.setHflex("1");
|
||||
detailPane.addADTabpanel(tabPanel, tabLabel);
|
||||
headerTab.getDetailPane().setHflex("1");
|
||||
headerTab.getDetailPane().addADTabpanel(tabPanel, tabLabel);
|
||||
tabPanel.setDetailPaneMode(true);
|
||||
detailPane.setVflex("true");
|
||||
headerTab.getDetailPane().setVflex("true");
|
||||
} else {
|
||||
detailPane.addADTabpanel(tabPanel, tabLabel, false);
|
||||
headerTab.getDetailPane().addADTabpanel(tabPanel, tabLabel, false);
|
||||
tabPanel.setDetailPaneMode(true);
|
||||
detailPane.setVflex("true");
|
||||
headerTab.getDetailPane().setVflex("true");
|
||||
}
|
||||
HtmlBasedComponent htmlComponent = (HtmlBasedComponent) tabPanel;
|
||||
htmlComponent.setVflex("1");
|
||||
|
@ -316,39 +359,33 @@ public class CompositeADTabbox extends AbstractADTabbox
|
|||
tabPanel.getGridTab().addDataStatusListener(new SyncDataStatusListener(tabPanel));
|
||||
}
|
||||
|
||||
private void activateDetailADTabpanel() {
|
||||
if (detailPane != null && detailPane.getParent() != null) {
|
||||
IADTabpanel tabPanel = detailPane.getSelectedADTabpanel();
|
||||
if (tabPanel != null) {
|
||||
tabPanel.activate(true);
|
||||
if (!tabPanel.isGridView()) {
|
||||
tabPanel.switchRowPresentation();
|
||||
}
|
||||
}
|
||||
private void activateDetailIfVisible() {
|
||||
if (headerTab instanceof ADTabpanel) {
|
||||
((ADTabpanel)headerTab).activateDetailIfVisible();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void updateTabState() {
|
||||
if (detailPane != null && detailPane.getTabcount() > 0)
|
||||
if (isDetailPaneLoaded())
|
||||
{
|
||||
for(int i = 0; i < detailPane.getTabcount(); i++)
|
||||
for(int i = 0; i < headerTab.getDetailPane().getTabcount(); i++)
|
||||
{
|
||||
IADTabpanel adtab = detailPane.getADTabpanel(i);
|
||||
IADTabpanel adtab = headerTab.getDetailPane().getADTabpanel(i);
|
||||
if (adtab.getDisplayLogic() != null && adtab.getDisplayLogic().trim().length() > 0) {
|
||||
if (!Evaluator.evaluateLogic(headerTab, adtab.getDisplayLogic())) {
|
||||
detailPane.setTabVisibility(i, false);
|
||||
headerTab.getDetailPane().setTabVisibility(i, false);
|
||||
} else {
|
||||
detailPane.setTabVisibility(i, true);
|
||||
headerTab.getDetailPane().setTabVisibility(i, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
int selected = detailPane.getSelectedIndex();
|
||||
if (detailPane.getADTabpanel(selected) == null || !detailPane.isTabVisible(selected)) {
|
||||
for(int i = 0; i < detailPane.getTabcount(); i++) {
|
||||
int selected = headerTab.getDetailPane().getSelectedIndex();
|
||||
if (headerTab.getDetailPane().getADTabpanel(selected) == null || !headerTab.getDetailPane().isTabVisible(selected)) {
|
||||
for(int i = 0; i < headerTab.getDetailPane().getTabcount(); i++) {
|
||||
if (selected == i) continue;
|
||||
if (detailPane.isTabVisible(i)) {
|
||||
detailPane.setSelectedIndex(i);
|
||||
if (headerTab.getDetailPane().isTabVisible(i)) {
|
||||
headerTab.getDetailPane().setSelectedIndex(i);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -387,46 +424,68 @@ public class CompositeADTabbox extends AbstractADTabbox
|
|||
layout.getChildren().clear();
|
||||
layout.appendChild(headerTab);
|
||||
|
||||
detailPane.detach();
|
||||
detailPane.reset();
|
||||
|
||||
int currentLevel = headerTab.getTabLevel();
|
||||
for (int i = selectedIndex + 1; i< tabPanelList.size(); i++) {
|
||||
IADTabpanel tabPanel = tabPanelList.get(i);
|
||||
int tabLevel = tabPanel.getTabLevel();
|
||||
ADTabListModel.ADTabLabel tabLabel = tabLabelList.get(i);
|
||||
if ((tabLevel - currentLevel) == 1 || (tabLevel == 0 && currentLevel == 0)) {
|
||||
if (tabPanel.isActive() && !tabPanel.isGridView()) {
|
||||
tabPanel.switchRowPresentation();
|
||||
}
|
||||
if (tabPanel.getParent() != null) tabPanel.detach();
|
||||
detailPane.addADTabpanel(tabPanel, tabLabel);
|
||||
tabPanel.setDetailPaneMode(true);
|
||||
} else if (tabLevel > currentLevel ){
|
||||
detailPane.addADTabpanel(tabPanel, tabLabel, false);
|
||||
tabPanel.setDetailPaneMode(true);
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (detailPane.getTabcount() > 0 && !headerTab.getGridTab().isSortTab()) {
|
||||
ADTabpanel adtabpanel = (ADTabpanel) headerTab;
|
||||
adtabpanel.addDetails(detailPane);
|
||||
detailPane.setVflex("true");
|
||||
detailPane.setSelectedIndex(0);
|
||||
activateDetailADTabpanel();
|
||||
}
|
||||
|
||||
//set state
|
||||
headerTab.setDetailPaneMode(false);
|
||||
getBreadCrumb().getFirstChild().setVisible(false);
|
||||
|
||||
updateBreadCrumb();
|
||||
Events.echoEvent(new Event(ON_POST_TAB_SELECTION_CHANGED_EVENT, layout));
|
||||
}
|
||||
|
||||
private void updateBreadCrumb() {
|
||||
private void onPostTabSelectionChanged() {
|
||||
if (headerTab instanceof ADTabpanel) {
|
||||
DetailPane detailPane = headerTab.getDetailPane();
|
||||
if (detailPane == null) {
|
||||
detailPane = createDetailPane();
|
||||
}
|
||||
|
||||
int tabIndex = -1;
|
||||
int currentLevel = headerTab.getTabLevel();
|
||||
for (int i = selectedIndex + 1; i< tabPanelList.size(); i++) {
|
||||
IADTabpanel tabPanel = tabPanelList.get(i);
|
||||
int tabLevel = tabPanel.getTabLevel();
|
||||
ADTabListModel.ADTabLabel tabLabel = tabLabelList.get(i);
|
||||
if ((tabLevel - currentLevel) == 1 || (tabLevel == 0 && currentLevel == 0)) {
|
||||
if (tabPanel.isActivated() && !tabPanel.isGridView()) {
|
||||
tabPanel.switchRowPresentation();
|
||||
}
|
||||
if (tabPanel.getParent() != null) tabPanel.detach();
|
||||
tabIndex++;
|
||||
detailPane.setADTabpanel(tabIndex, tabPanel, tabLabel);
|
||||
tabPanel.setDetailPaneMode(true);
|
||||
} else if (tabLevel > currentLevel ){
|
||||
tabIndex++;
|
||||
detailPane.setADTabpanel(tabIndex, tabPanel, tabLabel, false);
|
||||
tabPanel.setDetailPaneMode(true);
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (detailPane.getTabcount() > 0 && !headerTab.getGridTab().isSortTab()) {
|
||||
detailPane.setVflex("true");
|
||||
detailPane.setSelectedIndex(0);
|
||||
if (headerTab.getDetailPane() == null) {
|
||||
headerTab.setDetailPane(detailPane);
|
||||
}
|
||||
activateDetailIfVisible();
|
||||
}
|
||||
}
|
||||
|
||||
updateBreadCrumb();
|
||||
getBreadCrumb().getFirstChild().setVisible(true);
|
||||
|
||||
updateTabState();
|
||||
|
||||
ADWindow adwindow = ADWindow.findADWindow(layout);
|
||||
if (adwindow != null) {
|
||||
adwindow.getADWindowContent().getToolbar().enableTabNavigation(getBreadCrumb().hasParentLink(),
|
||||
headerTab.getDetailPane() != null && headerTab.getDetailPane().getTabcount() > 0);
|
||||
}
|
||||
}
|
||||
|
||||
private void updateBreadCrumb() {
|
||||
BreadCrumb breadCrumb = getBreadCrumb();
|
||||
breadCrumb.reset();
|
||||
|
||||
if (selectedIndex > 0) {
|
||||
List<ADTabLabel> parents = new ArrayList<ADTabListModel.ADTabLabel>();
|
||||
List<Integer> parentIndex = new ArrayList<Integer>();
|
||||
|
@ -510,14 +569,15 @@ public class CompositeADTabbox extends AbstractADTabbox
|
|||
Execution execution = Executions.getCurrent();
|
||||
if (execution == null) return;
|
||||
|
||||
if (tabPanel == headerTab && detailPane.getPage() != null && e.getChangedColumn() == -1) {
|
||||
if (tabPanel == headerTab && e.getChangedColumn() == -1
|
||||
&& isDetailActivated()) {
|
||||
ArrayList<String> parentColumnNames = new ArrayList<String>();
|
||||
GridField[] parentFields = headerTab.getGridTab().getFields();
|
||||
for (GridField parentField : parentFields) {
|
||||
parentColumnNames.add(parentField.getColumnName());
|
||||
}
|
||||
|
||||
IADTabpanel detailTab = detailPane.getSelectedADTabpanel();
|
||||
IADTabpanel detailTab = getSelectedDetailADTabpanel();
|
||||
if (detailTab != null) {
|
||||
//check data action
|
||||
String uuid = (String) execution.getAttribute(CompositeADTabbox.class.getName()+".dataAction");
|
||||
|
@ -540,7 +600,7 @@ public class CompositeADTabbox extends AbstractADTabbox
|
|||
detailTab.activate(true);
|
||||
detailTab.setDetailPaneMode(true);
|
||||
}
|
||||
detailPane.setVflex("true");
|
||||
headerTab.getDetailPane().setVflex("true");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -548,13 +608,24 @@ public class CompositeADTabbox extends AbstractADTabbox
|
|||
|
||||
@Override
|
||||
public void onDetailRecord() {
|
||||
if (detailPane != null && detailPane.getSelectedADTabpanel() != null) {
|
||||
if (headerTab.getDetailPane() != null && getSelectedDetailADTabpanel() != null) {
|
||||
try {
|
||||
detailPane.onEdit(false);
|
||||
} catch (Exception e) {}
|
||||
headerTab.getDetailPane().onEdit(false);
|
||||
} catch (Exception e) {
|
||||
log.log(Level.SEVERE, e.getLocalizedMessage(), e);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public boolean isDetailActivated() {
|
||||
if (headerTab instanceof ADTabpanel) {
|
||||
ADTabpanel atp = (ADTabpanel) headerTab;
|
||||
return atp.hasDetailTabs() && getSelectedDetailADTabpanel() != null &&
|
||||
getSelectedDetailADTabpanel().isActivated();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isSortTab() {
|
||||
return headerTab != null ? headerTab.getGridTab().isSortTab() : false;
|
||||
|
@ -562,8 +633,8 @@ public class CompositeADTabbox extends AbstractADTabbox
|
|||
|
||||
@Override
|
||||
public IADTabpanel getSelectedDetailADTabpanel() {
|
||||
if (detailPane != null && detailPane.getParent() != null) {
|
||||
return detailPane.getSelectedADTabpanel();
|
||||
if (headerTab instanceof ADTabpanel && ((ADTabpanel)headerTab).hasDetailTabs()) {
|
||||
return headerTab.getDetailPane().getSelectedADTabpanel();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
@ -612,7 +683,7 @@ public class CompositeADTabbox extends AbstractADTabbox
|
|||
|
||||
@Override
|
||||
public void setDetailPaneStatusMessage(String status, boolean error) {
|
||||
detailPane.setStatusMessage(status, error);
|
||||
headerTab.getDetailPane().setStatusMessage(status, error);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -636,9 +707,9 @@ public class CompositeADTabbox extends AbstractADTabbox
|
|||
tabPanel.switchRowPresentation();
|
||||
}
|
||||
tabPanel.setDetailPaneMode(true);
|
||||
detailPane.setVflex("true");
|
||||
headerTab.getDetailPane().setVflex("true");
|
||||
if (tabPanel instanceof ADSortTab) {
|
||||
detailPane.updateToolbar(false, true);
|
||||
headerTab.getDetailPane().updateToolbar(false, true);
|
||||
} else {
|
||||
tabPanel.dynamicDisplay(0);
|
||||
}
|
||||
|
@ -648,7 +719,7 @@ public class CompositeADTabbox extends AbstractADTabbox
|
|||
String msg = CLogger.retrieveErrorString(null);
|
||||
if (msg != null)
|
||||
{
|
||||
detailPane.setStatusMessage(Msg.getMsg(Env.getCtx(), msg), true);
|
||||
headerTab.getDetailPane().setStatusMessage(Msg.getMsg(Env.getCtx(), msg), true);
|
||||
}
|
||||
//other error will be catch in the dataStatusChanged event
|
||||
}
|
||||
|
@ -656,24 +727,36 @@ public class CompositeADTabbox extends AbstractADTabbox
|
|||
@Override
|
||||
public void updateDetailPaneToolbar(boolean changed, boolean readOnly) {
|
||||
if (headerTab.getGridTab().isNew() || headerTab.getGridTab().getRowCount() == 0)
|
||||
detailPane.disableToolbar();
|
||||
headerTab.getDetailPane().disableToolbar();
|
||||
else
|
||||
detailPane.updateToolbar(changed, readOnly);
|
||||
headerTab.getDetailPane().updateToolbar(changed, readOnly);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setDetailpaneSelection(int tabIndex, int currentRow) {
|
||||
if (detailPane.getTabcount() > 0) {
|
||||
for(int i = 0; i < detailPane.getTabcount(); i++) {
|
||||
IADTabpanel adtab = detailPane.getADTabpanel(i);
|
||||
int index = adtab.getTabNo();
|
||||
if (index == tabIndex) {
|
||||
if (!detailPane.isTabVisible(i) || !detailPane.isTabEnabled(i)) {
|
||||
public boolean isDetailPaneLoaded() {
|
||||
if (headerTab.getDetailPane() == null || headerTab.getDetailPane().getTabcount() == 0)
|
||||
return false;
|
||||
for(int i = 0; i < headerTab.getDetailPane().getTabcount(); i++) {
|
||||
if (headerTab.getDetailPane().getADTabpanel(i) == null)
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setDetailPaneSelectedTab(int adTabNo, int currentRow) {
|
||||
if (headerTab instanceof ADTabpanel && ((ADTabpanel) headerTab).hasDetailTabs()) {
|
||||
for(int i = 0; i < headerTab.getDetailPane().getTabcount(); i++) {
|
||||
IADTabpanel adtab = headerTab.getDetailPane().getADTabpanel(i);
|
||||
if (adtab == null) continue;
|
||||
int tabNo = adtab.getTabNo();
|
||||
if (tabNo == adTabNo) {
|
||||
if (!headerTab.getDetailPane().isTabVisible(i) || !headerTab.getDetailPane().isTabEnabled(i)) {
|
||||
return;
|
||||
}
|
||||
if (i != detailPane.getSelectedIndex()) {
|
||||
detailPane.setSelectedIndex(i);
|
||||
detailPane.fireActivateDetailEvent();
|
||||
if (i != headerTab.getDetailPane().getSelectedIndex()) {
|
||||
headerTab.getDetailPane().setSelectedIndex(i);
|
||||
headerTab.getDetailPane().fireActivateDetailEvent();
|
||||
}
|
||||
if (adtab.getGridTab().getCurrentRow() != currentRow)
|
||||
adtab.getGridTab().setCurrentRow(currentRow, true);
|
||||
|
|
|
@ -114,15 +114,25 @@ public class DetailPane extends Panel implements EventListener<Event>, IdSpace {
|
|||
setId("detailPane");
|
||||
}
|
||||
|
||||
/**
|
||||
* @return selected tab index
|
||||
*/
|
||||
public int getSelectedIndex() {
|
||||
return tabbox.getSelectedIndex();
|
||||
}
|
||||
|
||||
/**
|
||||
* set selected tab index
|
||||
* @param curTabIndex
|
||||
*/
|
||||
public void setSelectedIndex(int curTabIndex) {
|
||||
tabbox.setSelectedIndex(curTabIndex);
|
||||
prevSelectedIndex = curTabIndex;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return number of tabs
|
||||
*/
|
||||
public int getTabcount() {
|
||||
int count = 0;
|
||||
Tabs tabs = tabbox.getTabs();
|
||||
|
@ -131,18 +141,64 @@ public class DetailPane extends Panel implements EventListener<Event>, IdSpace {
|
|||
return count;
|
||||
}
|
||||
|
||||
/**
|
||||
* undo last tab selection
|
||||
*/
|
||||
public void undoLastTabSelection() {
|
||||
tabbox.setSelectedIndex(prevSelectedIndex);
|
||||
}
|
||||
|
||||
/**
|
||||
* redraw tabbox
|
||||
*/
|
||||
public void refresh() {
|
||||
tabbox.invalidate();
|
||||
}
|
||||
|
||||
/**
|
||||
* replace of add
|
||||
* @param index
|
||||
* @param tabPanel
|
||||
* @param tabLabel
|
||||
*/
|
||||
public void setADTabpanel(int index, IADTabpanel tabPanel, ADTabLabel tabLabel) {
|
||||
if (index < getTabcount()) {
|
||||
tabbox.getTabpanel(index).appendChild(tabPanel);
|
||||
} else {
|
||||
addADTabpanel(tabPanel, tabLabel);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* replace or add
|
||||
* @param index
|
||||
* @param tabPanel
|
||||
* @param tabLabel
|
||||
* @param enabled
|
||||
*/
|
||||
public void setADTabpanel(int index, IADTabpanel tabPanel, ADTabLabel tabLabel, boolean enabled) {
|
||||
if (index < getTabcount()) {
|
||||
tabbox.getTabpanel(index).appendChild(tabPanel);
|
||||
} else {
|
||||
addADTabpanel(tabPanel, tabLabel, enabled);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param tabPanel
|
||||
* @param tabLabel
|
||||
*/
|
||||
public void addADTabpanel(IADTabpanel tabPanel, ADTabLabel tabLabel) {
|
||||
addADTabpanel(tabPanel, tabLabel, true);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param tabPanel
|
||||
* @param tabLabel
|
||||
* @param enabled
|
||||
*/
|
||||
public void addADTabpanel(IADTabpanel tabPanel, ADTabLabel tabLabel, boolean enabled) {
|
||||
Tabs tabs = tabbox.getTabs();
|
||||
if (tabs == null) {
|
||||
|
@ -176,7 +232,7 @@ public class DetailPane extends Panel implements EventListener<Event>, IdSpace {
|
|||
}
|
||||
}
|
||||
if (adtab != null && adtab.isDetailPaneMode()) {
|
||||
onEdit(false);
|
||||
onEdit(adtab.getGridTab().isSingleRow());
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -280,10 +336,17 @@ public class DetailPane extends Panel implements EventListener<Event>, IdSpace {
|
|||
LayoutUtils.openPopupWindow(button, popup, "after_start");
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param listener
|
||||
*/
|
||||
public void setEventListener(EventListener<Event> listener) {
|
||||
eventListener = listener;
|
||||
}
|
||||
|
||||
/**
|
||||
* remove all tabs and tabpanels
|
||||
*/
|
||||
public void reset() {
|
||||
if (tabbox.getTabs() != null) {
|
||||
tabbox.getTabs().getChildren().clear();
|
||||
|
@ -294,6 +357,10 @@ public class DetailPane extends Panel implements EventListener<Event>, IdSpace {
|
|||
|
||||
}
|
||||
|
||||
/**
|
||||
* @param index
|
||||
* @return adtabpanel at index
|
||||
*/
|
||||
public IADTabpanel getADTabpanel(int index) {
|
||||
if (index < 0 || index >= tabbox.getTabpanels().getChildren().size())
|
||||
return null;
|
||||
|
@ -306,6 +373,10 @@ public class DetailPane extends Panel implements EventListener<Event>, IdSpace {
|
|||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @return selected adtabpanel
|
||||
*/
|
||||
public IADTabpanel getSelectedADTabpanel() {
|
||||
org.zkoss.zul.Tabpanel selectedPanel = tabbox.getSelectedPanel();
|
||||
if (selectedPanel != null) {
|
||||
|
@ -317,6 +388,11 @@ public class DetailPane extends Panel implements EventListener<Event>, IdSpace {
|
|||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param status
|
||||
* @param error
|
||||
*/
|
||||
public void setStatusMessage(String status, boolean error) {
|
||||
IADTabpanel tabPanel = getSelectedADTabpanel();
|
||||
if (tabPanel == null) return;
|
||||
|
@ -404,7 +480,8 @@ public class DetailPane extends Panel implements EventListener<Event>, IdSpace {
|
|||
createPopupContent(status);
|
||||
showPopup(error, messageContainer);
|
||||
} else if (event.getName().equals(ADTabpanel.ON_DYNAMIC_DISPLAY_EVENT)) {
|
||||
updateProcessToolbar();
|
||||
if (LayoutUtils.isReallyVisible(this))
|
||||
updateProcessToolbar();
|
||||
} else if (event.getName().equals(LayoutUtils.ON_REDRAW_EVENT)) {
|
||||
ExecutionCtrl ctrl = (ExecutionCtrl) Executions.getCurrent();
|
||||
Event evt = ctrl.getNextEvent();
|
||||
|
@ -463,6 +540,11 @@ public class DetailPane extends Panel implements EventListener<Event>, IdSpace {
|
|||
tabbox.setVflex(flex);
|
||||
}
|
||||
|
||||
/**
|
||||
* update toolbar button state
|
||||
* @param changed
|
||||
* @param readOnly
|
||||
*/
|
||||
public void updateToolbar(boolean changed, boolean readOnly) {
|
||||
int index = getSelectedIndex();
|
||||
if (index < 0 || index >= getTabcount()) return;
|
||||
|
@ -503,6 +585,7 @@ public class DetailPane extends Panel implements EventListener<Event>, IdSpace {
|
|||
Toolbar toolbar = (Toolbar) tabpanel.getFirstChild();
|
||||
|
||||
IADTabpanel adtab = getADTabpanel(index);
|
||||
if (adtab == null) return;
|
||||
|
||||
for(Component c : toolbar.getChildren()) {
|
||||
if (c instanceof ToolBarButton) {
|
||||
|
@ -519,11 +602,19 @@ public class DetailPane extends Panel implements EventListener<Event>, IdSpace {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Edit current record
|
||||
* @param formView
|
||||
* @throws Exception
|
||||
*/
|
||||
public void onEdit(boolean formView) throws Exception {
|
||||
Event openEvent = new Event(ON_EDIT_EVENT, DetailPane.this, Boolean.valueOf(formView));
|
||||
eventListener.onEvent(openEvent);
|
||||
}
|
||||
|
||||
/**
|
||||
* fire the on activate detail event
|
||||
*/
|
||||
public void fireActivateDetailEvent() {
|
||||
int index = tabbox.getSelectedIndex();
|
||||
IADTabpanel tabPanel = (IADTabpanel) tabbox.getTabpanel(index).getChildren().get(1);
|
||||
|
@ -531,11 +622,15 @@ public class DetailPane extends Panel implements EventListener<Event>, IdSpace {
|
|||
Events.sendEvent(activateEvent);
|
||||
}
|
||||
|
||||
public void setTabVisibility(int i, boolean visible) {
|
||||
if (i < 0 || tabbox.getTabs() == null || i >= tabbox.getTabs().getChildren().size())
|
||||
/**
|
||||
* @param tabIndex
|
||||
* @param visible
|
||||
*/
|
||||
public void setTabVisibility(int tabIndex, boolean visible) {
|
||||
if (tabIndex < 0 || tabbox.getTabs() == null || tabIndex >= tabbox.getTabs().getChildren().size())
|
||||
return;
|
||||
|
||||
Tab tab = (Tab) tabbox.getTabs().getChildren().get(i);
|
||||
Tab tab = (Tab) tabbox.getTabs().getChildren().get(tabIndex);
|
||||
tab.setVisible(visible);
|
||||
if (tab.isSelected()) {
|
||||
tab.setSelected(false);
|
||||
|
@ -545,29 +640,46 @@ public class DetailPane extends Panel implements EventListener<Event>, IdSpace {
|
|||
}
|
||||
}
|
||||
|
||||
public boolean isTabVisible(int i) {
|
||||
if (i < 0 || tabbox.getTabs() == null || i >= tabbox.getTabs().getChildren().size())
|
||||
/**
|
||||
*
|
||||
* @param tabIndex
|
||||
* @return true if tab at tabIndex is visible
|
||||
*/
|
||||
public boolean isTabVisible(int tabIndex) {
|
||||
if (tabIndex < 0 || tabbox.getTabs() == null || tabIndex >= tabbox.getTabs().getChildren().size())
|
||||
return false;
|
||||
|
||||
return tabbox.getTabs().getChildren().get(i).isVisible();
|
||||
return tabbox.getTabs().getChildren().get(tabIndex).isVisible();
|
||||
}
|
||||
|
||||
public boolean isTabEnabled(int i) {
|
||||
if (i < 0 || tabbox.getTabs() == null || i >= tabbox.getTabs().getChildren().size())
|
||||
/**
|
||||
* @param tabIndex
|
||||
* @return true if tab at tabIndex is enable
|
||||
*/
|
||||
public boolean isTabEnabled(int tabIndex) {
|
||||
if (tabIndex < 0 || tabbox.getTabs() == null || tabIndex >= tabbox.getTabs().getChildren().size())
|
||||
return false;
|
||||
|
||||
Tab tab = (Tab) tabbox.getTabs().getChildren().get(i);
|
||||
Tab tab = (Tab) tabbox.getTabs().getChildren().get(tabIndex);
|
||||
return !tab.isDisabled();
|
||||
}
|
||||
|
||||
public void setTabEnabled(int i, boolean enabled) {
|
||||
if (i < 0 || tabbox.getTabs() == null || i >= tabbox.getTabs().getChildren().size())
|
||||
/**
|
||||
*
|
||||
* @param tabIndex
|
||||
* @param enabled
|
||||
*/
|
||||
public void setTabEnabled(int tabIndex, boolean enabled) {
|
||||
if (tabIndex < 0 || tabbox.getTabs() == null || tabIndex >= tabbox.getTabs().getChildren().size())
|
||||
return;
|
||||
|
||||
Tab tab = (Tab) tabbox.getTabs().getChildren().get(i);
|
||||
Tab tab = (Tab) tabbox.getTabs().getChildren().get(tabIndex);
|
||||
tab.setDisabled(!enabled);
|
||||
}
|
||||
|
||||
/**
|
||||
* disable toolbar
|
||||
*/
|
||||
public void disableToolbar() {
|
||||
int index = getSelectedIndex();
|
||||
if (index < 0 || index >= getTabcount()) return;
|
||||
|
|
|
@ -820,4 +820,11 @@ public class GridView extends Vbox implements EventListener<Event>, IdSpace
|
|||
public GridField[] getFields() {
|
||||
return gridField;
|
||||
}
|
||||
|
||||
public void onEditCurrentRow() {
|
||||
if (!renderer.isEditing()) {
|
||||
renderer.editCurrentRow();
|
||||
renderer.setFocusToEditor();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -109,25 +109,72 @@ public interface IADTabbox extends UIPart {
|
|||
*/
|
||||
public void setADWindowPanel(AbstractADWindowContent abstractADWindowPanel);
|
||||
|
||||
/**
|
||||
* drill down to the current selected adtabpanel
|
||||
*/
|
||||
public void onDetailRecord();
|
||||
|
||||
/**
|
||||
* @return true if current header tab is a sort tab
|
||||
*/
|
||||
public boolean isSortTab();
|
||||
|
||||
/**
|
||||
* @param rowChange
|
||||
* @param onlyRealChange
|
||||
* @return true if there are changes pending to be save
|
||||
*/
|
||||
public boolean needSave(boolean rowChange, boolean onlyRealChange);
|
||||
|
||||
/**
|
||||
* ignore all pending changes
|
||||
*/
|
||||
public void dataIgnore();
|
||||
|
||||
/**
|
||||
* @return selected header grid tab
|
||||
*/
|
||||
public GridTab getSelectedGridTab();
|
||||
|
||||
/**
|
||||
*
|
||||
* @param onSaveEvent
|
||||
* @return true if save is successfull
|
||||
*/
|
||||
public boolean dataSave(boolean onSaveEvent);
|
||||
|
||||
/**
|
||||
*
|
||||
* @param status
|
||||
* @param error
|
||||
*/
|
||||
public void setDetailPaneStatusMessage(String status, boolean error);
|
||||
|
||||
/**
|
||||
* @return the currently selected detail adtabpanel
|
||||
*/
|
||||
IADTabpanel getSelectedDetailADTabpanel();
|
||||
|
||||
/**
|
||||
* @return dirty adtabpanel that need save ( if any )
|
||||
*/
|
||||
IADTabpanel getDirtyADTabpanel();
|
||||
|
||||
/**
|
||||
*
|
||||
* @param changed
|
||||
* @param readOnly
|
||||
*/
|
||||
public void updateDetailPaneToolbar(boolean changed, boolean readOnly);
|
||||
|
||||
public void setDetailpaneSelection(int tabIndex, int currentRow);
|
||||
/**
|
||||
* @param tabIndex
|
||||
* @param currentRow
|
||||
*/
|
||||
public void setDetailPaneSelectedTab(int tabIndex, int currentRow);
|
||||
|
||||
/**
|
||||
* @return true if all the tabs of detail pane have been linked up with adtabpanel
|
||||
*/
|
||||
boolean isDetailPaneLoaded();
|
||||
}
|
||||
|
|
|
@ -120,19 +120,64 @@ public interface IADTabpanel extends Component, Evaluatee {
|
|||
*/
|
||||
public boolean isGridView();
|
||||
|
||||
public boolean isActive();
|
||||
/**
|
||||
* @return true if the panel have been activated
|
||||
*/
|
||||
public boolean isActivated();
|
||||
|
||||
/**
|
||||
*
|
||||
* @param detailMode
|
||||
*/
|
||||
public void setDetailPaneMode(boolean detailMode);
|
||||
|
||||
/**
|
||||
*
|
||||
* @return true if the panel is in detailpane node
|
||||
*/
|
||||
public boolean isDetailPaneMode();
|
||||
|
||||
/**
|
||||
*
|
||||
* @return gridview instance
|
||||
*/
|
||||
public abstract GridView getGridView();
|
||||
|
||||
/**
|
||||
*
|
||||
* @param rowChange
|
||||
* @param onlyRealChange
|
||||
* @return true if there are pending changes
|
||||
*/
|
||||
public boolean needSave(boolean rowChange, boolean onlyRealChange);
|
||||
|
||||
/**
|
||||
* @param onSaveEvent
|
||||
* @return true if the save operation completed successfully
|
||||
*/
|
||||
public boolean dataSave(boolean onSaveEvent);
|
||||
|
||||
/**
|
||||
*
|
||||
* @param tabNo
|
||||
*/
|
||||
public void setTabNo(int tabNo);
|
||||
|
||||
public int getTabNo();
|
||||
/**
|
||||
*
|
||||
* @return tab no ( ad_tab.tabno )
|
||||
*/
|
||||
public int getTabNo();
|
||||
|
||||
/**
|
||||
*
|
||||
* @param detailPane
|
||||
*/
|
||||
public void setDetailPane(DetailPane detailPane);
|
||||
|
||||
/**
|
||||
*
|
||||
* @return detailpane
|
||||
*/
|
||||
public DetailPane getDetailPane();
|
||||
}
|
||||
|
|
|
@ -21,27 +21,41 @@ import org.compiere.model.I_C_Invoice;
|
|||
import org.compiere.model.I_M_InOut;
|
||||
import org.compiere.model.I_M_PackageMPS;
|
||||
import org.compiere.model.I_M_RMA;
|
||||
import org.compiere.model.I_X_DepositBatch;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Elaine
|
||||
*
|
||||
*/
|
||||
public class DefaultCreateFromFactory implements ICreateFromFactory {
|
||||
public class DefaultCreateFromFactory implements ICreateFromFactory
|
||||
{
|
||||
|
||||
@Override
|
||||
public ICreateFrom create(GridTab mTab) {
|
||||
public ICreateFrom create(GridTab mTab, String columnName)
|
||||
{
|
||||
String tableName = mTab.getTableName();
|
||||
if (tableName.equals(I_C_Invoice.Table_Name))
|
||||
return new WCreateFromInvoiceUI(mTab);
|
||||
else if (tableName.equals(I_C_BankStatement.Table_Name))
|
||||
return new WCreateFromStatementUI(mTab);
|
||||
else if (tableName.equals(I_M_InOut.Table_Name))
|
||||
return new WCreateFromShipmentUI(mTab);
|
||||
else if (tableName.equals(I_M_RMA.Table_Name))
|
||||
return new WCreateFromRMAUI(mTab);
|
||||
else if (tableName.equals(I_M_PackageMPS.Table_Name))
|
||||
return new WCreateFromPackageShipmentUI(mTab);
|
||||
if (columnName.equals("CreateFrom"))
|
||||
{
|
||||
if (tableName.equals(I_C_Invoice.Table_Name))
|
||||
return new WCreateFromInvoiceUI(mTab);
|
||||
else if (tableName.equals(I_C_BankStatement.Table_Name))
|
||||
// return new WCreateFromStatementUI(mTab);
|
||||
return new WCreateFromStatementBatchUI(mTab);
|
||||
else if (tableName.equals(I_M_InOut.Table_Name))
|
||||
return new WCreateFromShipmentUI(mTab);
|
||||
else if (tableName.equals(I_M_RMA.Table_Name))
|
||||
return new WCreateFromRMAUI(mTab);
|
||||
else if (tableName.equals(I_M_PackageMPS.Table_Name))
|
||||
return new WCreateFromPackageShipmentUI(mTab);
|
||||
else if (tableName.equals(I_X_DepositBatch.Table_Name))
|
||||
return new WCreateFromDepositBatchUI(mTab);
|
||||
}
|
||||
else if (columnName.equalsIgnoreCase("X_CreateFromBatch"))
|
||||
{
|
||||
if (tableName.equals(I_C_BankStatement.Table_Name))
|
||||
return new WCreateFromBatchStatementUI(mTab);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
@ -0,0 +1,310 @@
|
|||
/******************************************************************************
|
||||
* Copyright (C) 2013 Elaine Tan *
|
||||
* Copyright (C) 2013 Trek Global
|
||||
* This program is free software; you can redistribute it and/or modify it *
|
||||
* under the terms version 2 of the GNU General Public License as published *
|
||||
* by the Free Software Foundation. This program is distributed in the hope *
|
||||
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||
* See the GNU General Public License for more details. *
|
||||
* You should have received a copy of the GNU General Public License along *
|
||||
* with this program; if not, write to the Free Software Foundation, Inc., *
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
||||
*****************************************************************************/
|
||||
package org.adempiere.webui.apps.form;
|
||||
|
||||
import static org.compiere.model.SystemIDs.COLUMN_C_BANKSTATEMENT_C_BANKACCOUNT_ID;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Vector;
|
||||
import java.util.logging.Level;
|
||||
|
||||
import org.adempiere.webui.apps.AEnv;
|
||||
import org.adempiere.webui.component.Button;
|
||||
import org.adempiere.webui.component.Column;
|
||||
import org.adempiere.webui.component.Columns;
|
||||
import org.adempiere.webui.component.ConfirmPanel;
|
||||
import org.adempiere.webui.component.Grid;
|
||||
import org.adempiere.webui.component.GridFactory;
|
||||
import org.adempiere.webui.component.Label;
|
||||
import org.adempiere.webui.component.ListModelTable;
|
||||
import org.adempiere.webui.component.Panel;
|
||||
import org.adempiere.webui.component.Row;
|
||||
import org.adempiere.webui.component.Rows;
|
||||
import org.adempiere.webui.editor.WDateEditor;
|
||||
import org.adempiere.webui.editor.WEditor;
|
||||
import org.adempiere.webui.editor.WNumberEditor;
|
||||
import org.adempiere.webui.editor.WSearchEditor;
|
||||
import org.adempiere.webui.editor.WStringEditor;
|
||||
import org.adempiere.webui.editor.WTableDirEditor;
|
||||
import org.adempiere.webui.window.FDialog;
|
||||
import org.compiere.grid.CreateFromBatchStatement;
|
||||
import org.compiere.model.GridTab;
|
||||
import org.compiere.model.MBankStatement;
|
||||
import org.compiere.model.MColumn;
|
||||
import org.compiere.model.MLookup;
|
||||
import org.compiere.model.MLookupFactory;
|
||||
import org.compiere.model.MPayment;
|
||||
import org.compiere.util.CLogger;
|
||||
import org.compiere.util.DisplayType;
|
||||
import org.compiere.util.Env;
|
||||
import org.compiere.util.Msg;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zk.ui.event.EventListener;
|
||||
import org.zkoss.zk.ui.event.Events;
|
||||
import org.zkoss.zul.Borderlayout;
|
||||
import org.zkoss.zul.Center;
|
||||
import org.zkoss.zul.Hbox;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Elaine
|
||||
*
|
||||
*/
|
||||
public class WCreateFromBatchStatementUI extends CreateFromBatchStatement implements EventListener<Event>
|
||||
{
|
||||
private WCreateFromWindow window;
|
||||
|
||||
public WCreateFromBatchStatementUI(GridTab tab)
|
||||
{
|
||||
super(tab);
|
||||
log.info(getGridTab().toString());
|
||||
|
||||
window = new WCreateFromWindow(this, getGridTab().getWindowNo());
|
||||
|
||||
p_WindowNo = getGridTab().getWindowNo();
|
||||
|
||||
try
|
||||
{
|
||||
if (!dynInit())
|
||||
return;
|
||||
zkInit();
|
||||
setInitOK(true);
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
log.log(Level.SEVERE, "", e);
|
||||
setInitOK(false);
|
||||
}
|
||||
AEnv.showWindow(window);
|
||||
}
|
||||
|
||||
/** Window No */
|
||||
private int p_WindowNo;
|
||||
|
||||
/** Logger */
|
||||
private CLogger log = CLogger.getCLogger(getClass());
|
||||
|
||||
protected Label bankAccountLabel = new Label();
|
||||
protected WTableDirEditor bankAccountField;
|
||||
|
||||
protected Label documentNoLabel = new Label(Msg.translate(Env.getCtx(), "DocumentNo"));
|
||||
protected WStringEditor documentNoField = new WStringEditor();
|
||||
|
||||
protected Label documentTypeLabel = new Label();
|
||||
protected WTableDirEditor documentTypeField;
|
||||
|
||||
protected Label authorizationLabel = new Label();
|
||||
protected WStringEditor authorizationField = new WStringEditor();
|
||||
|
||||
protected Label tenderTypeLabel = new Label();
|
||||
protected WTableDirEditor tenderTypeField;
|
||||
|
||||
protected Label amtFromLabel = new Label(Msg.translate(Env.getCtx(), "PayAmt"));
|
||||
protected WNumberEditor amtFromField = new WNumberEditor("AmtFrom", false, false, true, DisplayType.Amount, Msg.translate(Env.getCtx(), "AmtFrom"));
|
||||
protected Label amtToLabel = new Label("-");
|
||||
protected WNumberEditor amtToField = new WNumberEditor("AmtTo", false, false, true, DisplayType.Amount, Msg.translate(Env.getCtx(), "AmtTo"));
|
||||
|
||||
protected Label BPartner_idLabel = new Label(Msg.translate(Env.getCtx(), "BPartner"));
|
||||
protected WEditor bPartnerLookup;
|
||||
|
||||
protected Label dateFromLabel = new Label(Msg.translate(Env.getCtx(), "DateTrx"));
|
||||
protected WDateEditor dateFromField = new WDateEditor("DateFrom", false, false, true, Msg.translate(Env.getCtx(), "DateFrom"));
|
||||
protected Label dateToLabel = new Label("-");
|
||||
protected WDateEditor dateToField = new WDateEditor("DateTo", false, false, true, Msg.translate(Env.getCtx(), "DateTo"));
|
||||
|
||||
/**
|
||||
* Dynamic Init
|
||||
* @throws Exception if Lookups cannot be initialized
|
||||
* @return true if initialized
|
||||
*/
|
||||
public boolean dynInit() throws Exception
|
||||
{
|
||||
log.config("");
|
||||
|
||||
super.dynInit();
|
||||
|
||||
//Refresh button
|
||||
Button refreshButton = window.getConfirmPanel().createButton(ConfirmPanel.A_REFRESH);
|
||||
refreshButton.addEventListener(Events.ON_CLICK, this);
|
||||
window.getConfirmPanel().addButton(refreshButton);
|
||||
|
||||
if (getGridTab().getValue("C_BankStatement_ID") == null)
|
||||
{
|
||||
FDialog.error(0, window, "SaveErrorRowNotFound");
|
||||
return false;
|
||||
}
|
||||
|
||||
window.setTitle(getTitle());
|
||||
|
||||
int AD_Column_ID = COLUMN_C_BANKSTATEMENT_C_BANKACCOUNT_ID; // C_BankStatement.C_BankAccount_ID
|
||||
MLookup lookup = MLookupFactory.get (Env.getCtx(), p_WindowNo, 0, AD_Column_ID, DisplayType.TableDir);
|
||||
bankAccountField = new WTableDirEditor ("C_BankAccount_ID", true, false, true, lookup);
|
||||
// Set Default
|
||||
int C_BankAccount_ID = Env.getContextAsInt(Env.getCtx(), p_WindowNo, "C_BankAccount_ID");
|
||||
bankAccountField.setValue(new Integer(C_BankAccount_ID));
|
||||
// initial Loading
|
||||
authorizationField = new WStringEditor ("authorization", false, false, true, 10, 30, null, null);
|
||||
authorizationField.getComponent().addEventListener(Events.ON_CHANGE, this);
|
||||
|
||||
lookup = MLookupFactory.get (Env.getCtx(), p_WindowNo, 0, MColumn.getColumn_ID(MPayment.Table_Name, MPayment.COLUMNNAME_C_DocType_ID), DisplayType.TableDir);
|
||||
documentTypeField = new WTableDirEditor (MPayment.COLUMNNAME_C_DocType_ID,false,false,true,lookup);
|
||||
documentTypeField.getComponent().addEventListener(Events.ON_CHANGE, this);
|
||||
|
||||
lookup = MLookupFactory.get (Env.getCtx(), p_WindowNo, 0, MColumn.getColumn_ID(MPayment.Table_Name, MPayment.COLUMNNAME_TenderType), DisplayType.List);
|
||||
tenderTypeField = new WTableDirEditor (MPayment.COLUMNNAME_TenderType,false,false,true,lookup);
|
||||
tenderTypeField.getComponent().addEventListener(Events.ON_CHANGE, this);
|
||||
|
||||
lookup = MLookupFactory.get (Env.getCtx(), p_WindowNo, 0, 3499, DisplayType.Search);
|
||||
bPartnerLookup = new WSearchEditor ("C_BPartner_ID", false, false, true, lookup);
|
||||
|
||||
Timestamp date = Env.getContextAsDate(Env.getCtx(), p_WindowNo, MBankStatement.COLUMNNAME_StatementDate);
|
||||
dateToField.setValue(date);
|
||||
|
||||
loadBankAccount();
|
||||
|
||||
return true;
|
||||
} // dynInit
|
||||
|
||||
protected void zkInit() throws Exception
|
||||
{
|
||||
bankAccountLabel.setText(Msg.translate(Env.getCtx(), "C_BankAccount_ID"));
|
||||
authorizationLabel.setText(Msg.translate(Env.getCtx(), "R_AuthCode"));
|
||||
|
||||
documentTypeLabel.setText(Msg.translate(Env.getCtx(), "C_DocType_ID"));
|
||||
tenderTypeLabel.setText(Msg.translate(Env.getCtx(), "TenderType"));
|
||||
|
||||
dateFromField.getComponent().setTooltiptext(Msg.translate(Env.getCtx(), "DateFrom"));
|
||||
dateToField.getComponent().setTooltiptext(Msg.translate(Env.getCtx(), "DateTo"));
|
||||
|
||||
amtFromField.getComponent().setTooltiptext(Msg.translate(Env.getCtx(), "AmtFrom"));
|
||||
amtToField.getComponent().setTooltiptext(Msg.translate(Env.getCtx(), "AmtTo"));
|
||||
|
||||
Borderlayout parameterLayout = new Borderlayout();
|
||||
parameterLayout.setHeight("130px");
|
||||
parameterLayout.setWidth("100%");
|
||||
Panel parameterPanel = window.getParameterPanel();
|
||||
parameterPanel.appendChild(parameterLayout);
|
||||
|
||||
Grid parameterBankLayout = GridFactory.newGridLayout();
|
||||
Panel parameterBankPanel = new Panel();
|
||||
parameterBankPanel.appendChild(parameterBankLayout);
|
||||
|
||||
Center center = new Center();
|
||||
parameterLayout.appendChild(center);
|
||||
center.appendChild(parameterBankPanel);
|
||||
|
||||
Columns columns = new Columns();
|
||||
parameterBankLayout.appendChild(columns);
|
||||
Column column = new Column();
|
||||
columns.appendChild(column);
|
||||
column = new Column();
|
||||
column.setWidth("15%");
|
||||
columns.appendChild(column);
|
||||
column.setWidth("35%");
|
||||
column = new Column();
|
||||
column.setWidth("15%");
|
||||
columns.appendChild(column);
|
||||
column = new Column();
|
||||
column.setWidth("35%");
|
||||
columns.appendChild(column);
|
||||
|
||||
Rows rows = (Rows) parameterBankLayout.newRows();
|
||||
Row row = rows.newRow();
|
||||
row.appendChild(bankAccountLabel.rightAlign());
|
||||
row.appendChild(bankAccountField.getComponent());
|
||||
row.appendChild(documentNoLabel.rightAlign());
|
||||
row.appendChild(documentNoField.getComponent());
|
||||
|
||||
row = rows.newRow();
|
||||
row.appendChild(documentTypeLabel.rightAlign());
|
||||
row.appendChild(documentTypeField.getComponent());
|
||||
row.appendChild(authorizationLabel.rightAlign());
|
||||
row.appendChild(authorizationField.getComponent());
|
||||
|
||||
row = rows.newRow();
|
||||
row.appendChild(tenderTypeLabel.rightAlign());
|
||||
row.appendChild(tenderTypeField.getComponent());
|
||||
|
||||
row.appendChild(amtFromLabel.rightAlign());
|
||||
Hbox hbox = new Hbox();
|
||||
hbox.appendChild(amtFromField.getComponent());
|
||||
hbox.appendChild(amtToLabel.rightAlign());
|
||||
hbox.appendChild(amtToField.getComponent());
|
||||
row.appendChild(hbox);
|
||||
|
||||
row = rows.newRow();
|
||||
row.appendChild(BPartner_idLabel.rightAlign());
|
||||
row.appendChild(bPartnerLookup.getComponent());
|
||||
row.appendChild(dateFromLabel.rightAlign());
|
||||
|
||||
hbox = new Hbox();
|
||||
hbox.appendChild(dateFromField.getComponent());
|
||||
hbox.appendChild(dateToLabel.rightAlign());
|
||||
hbox.appendChild(dateToField.getComponent());
|
||||
row.appendChild(hbox);
|
||||
}
|
||||
|
||||
/**
|
||||
* Action Listener
|
||||
* @param e event
|
||||
* @throws Exception
|
||||
*/
|
||||
public void onEvent(Event e) throws Exception
|
||||
{
|
||||
log.config("Action=" + e.getTarget().getId());
|
||||
if(e.getTarget().equals(window.getConfirmPanel().getButton(ConfirmPanel.A_REFRESH)))
|
||||
{
|
||||
loadBankAccount();
|
||||
window.tableChanged(null);
|
||||
}
|
||||
}
|
||||
|
||||
protected void loadBankAccount()
|
||||
{
|
||||
loadTableOIS(getBankAccountData(bankAccountField.getValue(), bPartnerLookup.getValue(),
|
||||
documentNoField.getValue().toString(), dateFromField.getValue(), dateToField.getValue(),
|
||||
amtFromField.getValue(), amtToField.getValue(),
|
||||
documentTypeField.getValue(), tenderTypeField.getValue(), authorizationField.getValue().toString()));
|
||||
}
|
||||
|
||||
protected void loadTableOIS (Vector<?> data)
|
||||
{
|
||||
window.getWListbox().clear();
|
||||
|
||||
// Remove previous listeners
|
||||
window.getWListbox().getModel().removeTableModelListener(window);
|
||||
// Set Model
|
||||
ListModelTable model = new ListModelTable(data);
|
||||
model.addTableModelListener(window);
|
||||
window.getWListbox().setData(model, getOISColumnNames());
|
||||
//
|
||||
|
||||
configureMiniTable(window.getWListbox());
|
||||
}
|
||||
|
||||
public void showWindow()
|
||||
{
|
||||
window.setVisible(true);
|
||||
}
|
||||
|
||||
public void closeWindow()
|
||||
{
|
||||
window.dispose();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getWindow() {
|
||||
return window;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,312 @@
|
|||
/******************************************************************************
|
||||
* Copyright (C) 2013 Elaine Tan *
|
||||
* Copyright (C) 2013 Trek Global
|
||||
* This program is free software; you can redistribute it and/or modify it *
|
||||
* under the terms version 2 of the GNU General Public License as published *
|
||||
* by the Free Software Foundation. This program is distributed in the hope *
|
||||
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||
* See the GNU General Public License for more details. *
|
||||
* You should have received a copy of the GNU General Public License along *
|
||||
* with this program; if not, write to the Free Software Foundation, Inc., *
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
||||
*****************************************************************************/
|
||||
package org.adempiere.webui.apps.form;
|
||||
|
||||
import static org.compiere.model.SystemIDs.COLUMN_C_BANKSTATEMENT_C_BANKACCOUNT_ID;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Vector;
|
||||
import java.util.logging.Level;
|
||||
|
||||
import org.adempiere.webui.apps.AEnv;
|
||||
import org.adempiere.webui.component.Button;
|
||||
import org.adempiere.webui.component.Column;
|
||||
import org.adempiere.webui.component.Columns;
|
||||
import org.adempiere.webui.component.ConfirmPanel;
|
||||
import org.adempiere.webui.component.Grid;
|
||||
import org.adempiere.webui.component.GridFactory;
|
||||
import org.adempiere.webui.component.Label;
|
||||
import org.adempiere.webui.component.ListModelTable;
|
||||
import org.adempiere.webui.component.Panel;
|
||||
import org.adempiere.webui.component.Row;
|
||||
import org.adempiere.webui.component.Rows;
|
||||
import org.adempiere.webui.editor.WDateEditor;
|
||||
import org.adempiere.webui.editor.WEditor;
|
||||
import org.adempiere.webui.editor.WNumberEditor;
|
||||
import org.adempiere.webui.editor.WSearchEditor;
|
||||
import org.adempiere.webui.editor.WStringEditor;
|
||||
import org.adempiere.webui.editor.WTableDirEditor;
|
||||
import org.adempiere.webui.window.FDialog;
|
||||
import org.compiere.grid.CreateFromDepositBatch;
|
||||
import org.compiere.model.GridTab;
|
||||
import org.compiere.model.MBankStatement;
|
||||
import org.compiere.model.MColumn;
|
||||
import org.compiere.model.MLookup;
|
||||
import org.compiere.model.MLookupFactory;
|
||||
import org.compiere.model.MPayment;
|
||||
import org.compiere.util.CLogger;
|
||||
import org.compiere.util.DisplayType;
|
||||
import org.compiere.util.Env;
|
||||
import org.compiere.util.Msg;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zk.ui.event.EventListener;
|
||||
import org.zkoss.zk.ui.event.Events;
|
||||
import org.zkoss.zul.Borderlayout;
|
||||
import org.zkoss.zul.Center;
|
||||
import org.zkoss.zul.Hbox;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Elaine
|
||||
*
|
||||
*/
|
||||
public class WCreateFromDepositBatchUI extends CreateFromDepositBatch implements EventListener<Event>
|
||||
{
|
||||
private WCreateFromWindow window;
|
||||
|
||||
public WCreateFromDepositBatchUI(GridTab tab)
|
||||
{
|
||||
super(tab);
|
||||
log.info(getGridTab().toString());
|
||||
|
||||
window = new WCreateFromWindow(this, getGridTab().getWindowNo());
|
||||
|
||||
p_WindowNo = getGridTab().getWindowNo();
|
||||
|
||||
try
|
||||
{
|
||||
if (!dynInit())
|
||||
return;
|
||||
zkInit();
|
||||
setInitOK(true);
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
log.log(Level.SEVERE, "", e);
|
||||
setInitOK(false);
|
||||
}
|
||||
AEnv.showWindow(window);
|
||||
}
|
||||
|
||||
/** Window No */
|
||||
private int p_WindowNo;
|
||||
|
||||
/** Logger */
|
||||
private CLogger log = CLogger.getCLogger(getClass());
|
||||
|
||||
protected Label bankAccountLabel = new Label();
|
||||
protected WTableDirEditor bankAccountField;
|
||||
|
||||
protected Label documentNoLabel = new Label(Msg.translate(Env.getCtx(), "DocumentNo"));
|
||||
protected WStringEditor documentNoField = new WStringEditor();
|
||||
|
||||
protected Label documentTypeLabel = new Label();
|
||||
protected WTableDirEditor documentTypeField;
|
||||
|
||||
protected Label authorizationLabel = new Label();
|
||||
protected WStringEditor authorizationField = new WStringEditor();
|
||||
|
||||
protected Label tenderTypeLabel = new Label();
|
||||
protected WTableDirEditor tenderTypeField;
|
||||
|
||||
protected Label amtFromLabel = new Label(Msg.translate(Env.getCtx(), "PayAmt"));
|
||||
protected WNumberEditor amtFromField = new WNumberEditor("AmtFrom", false, false, true, DisplayType.Amount, Msg.translate(Env.getCtx(), "AmtFrom"));
|
||||
protected Label amtToLabel = new Label("-");
|
||||
protected WNumberEditor amtToField = new WNumberEditor("AmtTo", false, false, true, DisplayType.Amount, Msg.translate(Env.getCtx(), "AmtTo"));
|
||||
|
||||
protected Label BPartner_idLabel = new Label(Msg.translate(Env.getCtx(), "BPartner"));
|
||||
protected WEditor bPartnerLookup;
|
||||
|
||||
protected Label dateFromLabel = new Label(Msg.translate(Env.getCtx(), "DateTrx"));
|
||||
protected WDateEditor dateFromField = new WDateEditor("DateFrom", false, false, true, Msg.translate(Env.getCtx(), "DateFrom"));
|
||||
protected Label dateToLabel = new Label("-");
|
||||
protected WDateEditor dateToField = new WDateEditor("DateTo", false, false, true, Msg.translate(Env.getCtx(), "DateTo"));
|
||||
|
||||
/**
|
||||
* Dynamic Init
|
||||
* @throws Exception if Lookups cannot be initialized
|
||||
* @return true if initialized
|
||||
*/
|
||||
public boolean dynInit() throws Exception
|
||||
{
|
||||
log.config("");
|
||||
|
||||
super.dynInit();
|
||||
|
||||
//Refresh button
|
||||
Button refreshButton = window.getConfirmPanel().createButton(ConfirmPanel.A_REFRESH);
|
||||
refreshButton.addEventListener(Events.ON_CLICK, this);
|
||||
window.getConfirmPanel().addButton(refreshButton);
|
||||
|
||||
if (getGridTab().getValue("X_DepositBatch_ID") == null)
|
||||
{
|
||||
FDialog.error(0, window, "SaveErrorRowNotFound");
|
||||
return false;
|
||||
}
|
||||
|
||||
window.setTitle(getTitle());
|
||||
|
||||
int AD_Column_ID = COLUMN_C_BANKSTATEMENT_C_BANKACCOUNT_ID; // C_BankStatement.C_BankAccount_ID
|
||||
MLookup lookup = MLookupFactory.get (Env.getCtx(), p_WindowNo, 0, AD_Column_ID, DisplayType.TableDir);
|
||||
bankAccountField = new WTableDirEditor ("C_BankAccount_ID", true, false, true, lookup);
|
||||
// Set Default
|
||||
int C_BankAccount_ID = Env.getContextAsInt(Env.getCtx(), p_WindowNo, "C_BankAccount_ID");
|
||||
bankAccountField.setValue(new Integer(C_BankAccount_ID));
|
||||
// initial Loading
|
||||
authorizationField = new WStringEditor ("authorization", false, false, true, 10, 30, null, null);
|
||||
// authorizationField.getComponent().addEventListener(Events.ON_CHANGE, this);
|
||||
|
||||
lookup = MLookupFactory.get (Env.getCtx(), p_WindowNo, 0, MColumn.getColumn_ID(MPayment.Table_Name, MPayment.COLUMNNAME_C_DocType_ID), DisplayType.TableDir);
|
||||
documentTypeField = new WTableDirEditor (MPayment.COLUMNNAME_C_DocType_ID,false,false,true,lookup);
|
||||
int C_DocType_ID = Env.getContextAsInt(Env.getCtx(), p_WindowNo, "C_DocType_ID");
|
||||
documentTypeField.setValue(new Integer(C_DocType_ID));
|
||||
// documentTypeField.getComponent().addEventListener(Events.ON_CHANGE, this);
|
||||
|
||||
lookup = MLookupFactory.get (Env.getCtx(), p_WindowNo, 0, MColumn.getColumn_ID(MPayment.Table_Name, MPayment.COLUMNNAME_TenderType), DisplayType.List);
|
||||
tenderTypeField = new WTableDirEditor (MPayment.COLUMNNAME_TenderType,false,false,true,lookup);
|
||||
// tenderTypeField.getComponent().addEventListener(Events.ON_CHANGE, this);
|
||||
|
||||
lookup = MLookupFactory.get (Env.getCtx(), p_WindowNo, 0, 3499, DisplayType.Search);
|
||||
bPartnerLookup = new WSearchEditor ("C_BPartner_ID", false, false, true, lookup);
|
||||
|
||||
Timestamp date = Env.getContextAsDate(Env.getCtx(), p_WindowNo, MBankStatement.COLUMNNAME_StatementDate);
|
||||
dateToField.setValue(date);
|
||||
|
||||
loadBankAccount();
|
||||
|
||||
return true;
|
||||
} // dynInit
|
||||
|
||||
protected void zkInit() throws Exception
|
||||
{
|
||||
bankAccountLabel.setText(Msg.translate(Env.getCtx(), "C_BankAccount_ID"));
|
||||
authorizationLabel.setText(Msg.translate(Env.getCtx(), "R_AuthCode"));
|
||||
|
||||
documentTypeLabel.setText(Msg.translate(Env.getCtx(), "C_DocType_ID"));
|
||||
tenderTypeLabel.setText(Msg.translate(Env.getCtx(), "TenderType"));
|
||||
|
||||
dateFromField.getComponent().setTooltiptext(Msg.translate(Env.getCtx(), "DateFrom"));
|
||||
dateToField.getComponent().setTooltiptext(Msg.translate(Env.getCtx(), "DateTo"));
|
||||
|
||||
amtFromField.getComponent().setTooltiptext(Msg.translate(Env.getCtx(), "AmtFrom"));
|
||||
amtToField.getComponent().setTooltiptext(Msg.translate(Env.getCtx(), "AmtTo"));
|
||||
|
||||
Borderlayout parameterLayout = new Borderlayout();
|
||||
parameterLayout.setHeight("130px");
|
||||
parameterLayout.setWidth("100%");
|
||||
Panel parameterPanel = window.getParameterPanel();
|
||||
parameterPanel.appendChild(parameterLayout);
|
||||
|
||||
Grid parameterBankLayout = GridFactory.newGridLayout();
|
||||
Panel parameterBankPanel = new Panel();
|
||||
parameterBankPanel.appendChild(parameterBankLayout);
|
||||
|
||||
Center center = new Center();
|
||||
parameterLayout.appendChild(center);
|
||||
center.appendChild(parameterBankPanel);
|
||||
|
||||
Columns columns = new Columns();
|
||||
parameterBankLayout.appendChild(columns);
|
||||
Column column = new Column();
|
||||
columns.appendChild(column);
|
||||
column = new Column();
|
||||
column.setWidth("15%");
|
||||
columns.appendChild(column);
|
||||
column.setWidth("35%");
|
||||
column = new Column();
|
||||
column.setWidth("15%");
|
||||
columns.appendChild(column);
|
||||
column = new Column();
|
||||
column.setWidth("35%");
|
||||
columns.appendChild(column);
|
||||
|
||||
Rows rows = (Rows) parameterBankLayout.newRows();
|
||||
Row row = rows.newRow();
|
||||
row.appendChild(bankAccountLabel.rightAlign());
|
||||
row.appendChild(bankAccountField.getComponent());
|
||||
row.appendChild(documentNoLabel.rightAlign());
|
||||
row.appendChild(documentNoField.getComponent());
|
||||
|
||||
row = rows.newRow();
|
||||
row.appendChild(documentTypeLabel.rightAlign());
|
||||
row.appendChild(documentTypeField.getComponent());
|
||||
row.appendChild(authorizationLabel.rightAlign());
|
||||
row.appendChild(authorizationField.getComponent());
|
||||
|
||||
row = rows.newRow();
|
||||
row.appendChild(tenderTypeLabel.rightAlign());
|
||||
row.appendChild(tenderTypeField.getComponent());
|
||||
|
||||
row.appendChild(amtFromLabel.rightAlign());
|
||||
Hbox hbox = new Hbox();
|
||||
hbox.appendChild(amtFromField.getComponent());
|
||||
hbox.appendChild(amtToLabel.rightAlign());
|
||||
hbox.appendChild(amtToField.getComponent());
|
||||
row.appendChild(hbox);
|
||||
|
||||
row = rows.newRow();
|
||||
row.appendChild(BPartner_idLabel.rightAlign());
|
||||
row.appendChild(bPartnerLookup.getComponent());
|
||||
row.appendChild(dateFromLabel.rightAlign());
|
||||
|
||||
hbox = new Hbox();
|
||||
hbox.appendChild(dateFromField.getComponent());
|
||||
hbox.appendChild(dateToLabel.rightAlign());
|
||||
hbox.appendChild(dateToField.getComponent());
|
||||
row.appendChild(hbox);
|
||||
}
|
||||
|
||||
/**
|
||||
* Action Listener
|
||||
* @param e event
|
||||
* @throws Exception
|
||||
*/
|
||||
public void onEvent(Event e) throws Exception
|
||||
{
|
||||
log.config("Action=" + e.getTarget().getId());
|
||||
if(e.getTarget().equals(window.getConfirmPanel().getButton(ConfirmPanel.A_REFRESH)))
|
||||
{
|
||||
loadBankAccount();
|
||||
window.tableChanged(null);
|
||||
}
|
||||
}
|
||||
|
||||
protected void loadBankAccount()
|
||||
{
|
||||
loadTableOIS(getBankAccountData(bankAccountField.getValue(), bPartnerLookup.getValue(),
|
||||
documentNoField.getValue().toString(), dateFromField.getValue(), dateToField.getValue(),
|
||||
amtFromField.getValue(), amtToField.getValue(),
|
||||
documentTypeField.getValue(), tenderTypeField.getValue(), authorizationField.getValue().toString()));
|
||||
}
|
||||
|
||||
protected void loadTableOIS (Vector<?> data)
|
||||
{
|
||||
window.getWListbox().clear();
|
||||
|
||||
// Remove previous listeners
|
||||
window.getWListbox().getModel().removeTableModelListener(window);
|
||||
// Set Model
|
||||
ListModelTable model = new ListModelTable(data);
|
||||
model.addTableModelListener(window);
|
||||
window.getWListbox().setData(model, getOISColumnNames());
|
||||
//
|
||||
|
||||
configureMiniTable(window.getWListbox());
|
||||
}
|
||||
|
||||
public void showWindow()
|
||||
{
|
||||
window.setVisible(true);
|
||||
}
|
||||
|
||||
public void closeWindow()
|
||||
{
|
||||
window.dispose();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getWindow() {
|
||||
return window;
|
||||
}
|
||||
}
|
|
@ -22,13 +22,13 @@ import org.compiere.model.GridTab;
|
|||
|
||||
public class WCreateFromFactory
|
||||
{
|
||||
public static ICreateFrom create (GridTab mTab)
|
||||
public static ICreateFrom create (GridTab mTab, String columnName)
|
||||
{
|
||||
ICreateFrom createFrom = null;
|
||||
List<ICreateFromFactory> factories = Service.locator().list(ICreateFromFactory.class).getServices();
|
||||
for (ICreateFromFactory factory : factories)
|
||||
{
|
||||
createFrom = factory.create(mTab);
|
||||
createFrom = factory.create(mTab, columnName);
|
||||
if (createFrom != null)
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -0,0 +1,311 @@
|
|||
/******************************************************************************
|
||||
* Copyright (C) 2013 Elaine Tan *
|
||||
* Copyright (C) 2013 Trek Global
|
||||
* This program is free software; you can redistribute it and/or modify it *
|
||||
* under the terms version 2 of the GNU General Public License as published *
|
||||
* by the Free Software Foundation. This program is distributed in the hope *
|
||||
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||
* See the GNU General Public License for more details. *
|
||||
* You should have received a copy of the GNU General Public License along *
|
||||
* with this program; if not, write to the Free Software Foundation, Inc., *
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
||||
*****************************************************************************/
|
||||
package org.adempiere.webui.apps.form;
|
||||
|
||||
import static org.compiere.model.SystemIDs.COLUMN_C_BANKSTATEMENT_C_BANKACCOUNT_ID;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Vector;
|
||||
import java.util.logging.Level;
|
||||
|
||||
import org.adempiere.webui.apps.AEnv;
|
||||
import org.adempiere.webui.component.Button;
|
||||
import org.adempiere.webui.component.Column;
|
||||
import org.adempiere.webui.component.Columns;
|
||||
import org.adempiere.webui.component.ConfirmPanel;
|
||||
import org.adempiere.webui.component.Grid;
|
||||
import org.adempiere.webui.component.GridFactory;
|
||||
import org.adempiere.webui.component.Label;
|
||||
import org.adempiere.webui.component.ListModelTable;
|
||||
import org.adempiere.webui.component.Panel;
|
||||
import org.adempiere.webui.component.Row;
|
||||
import org.adempiere.webui.component.Rows;
|
||||
import org.adempiere.webui.editor.WDateEditor;
|
||||
import org.adempiere.webui.editor.WEditor;
|
||||
import org.adempiere.webui.editor.WNumberEditor;
|
||||
import org.adempiere.webui.editor.WSearchEditor;
|
||||
import org.adempiere.webui.editor.WStringEditor;
|
||||
import org.adempiere.webui.editor.WTableDirEditor;
|
||||
import org.adempiere.webui.window.FDialog;
|
||||
import org.compiere.grid.CreateFromStatementBatch;
|
||||
import org.compiere.model.GridTab;
|
||||
import org.compiere.model.MBankStatement;
|
||||
import org.compiere.model.MColumn;
|
||||
import org.compiere.model.MLookup;
|
||||
import org.compiere.model.MLookupFactory;
|
||||
import org.compiere.model.MPayment;
|
||||
import org.compiere.util.CLogger;
|
||||
import org.compiere.util.DisplayType;
|
||||
import org.compiere.util.Env;
|
||||
import org.compiere.util.Msg;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zk.ui.event.EventListener;
|
||||
import org.zkoss.zk.ui.event.Events;
|
||||
import org.zkoss.zul.Borderlayout;
|
||||
import org.zkoss.zul.Center;
|
||||
import org.zkoss.zul.Hbox;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Elaine
|
||||
*
|
||||
*/
|
||||
public class WCreateFromStatementBatchUI extends CreateFromStatementBatch implements EventListener<Event>
|
||||
{
|
||||
private WCreateFromWindow window;
|
||||
|
||||
public WCreateFromStatementBatchUI(GridTab tab)
|
||||
{
|
||||
super(tab);
|
||||
log.info(getGridTab().toString());
|
||||
|
||||
window = new WCreateFromWindow(this, getGridTab().getWindowNo());
|
||||
|
||||
p_WindowNo = getGridTab().getWindowNo();
|
||||
|
||||
try
|
||||
{
|
||||
if (!dynInit())
|
||||
return;
|
||||
zkInit();
|
||||
setInitOK(true);
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
log.log(Level.SEVERE, "", e);
|
||||
setInitOK(false);
|
||||
}
|
||||
AEnv.showWindow(window);
|
||||
}
|
||||
|
||||
/** Window No */
|
||||
private int p_WindowNo;
|
||||
|
||||
/** Logger */
|
||||
private CLogger log = CLogger.getCLogger(getClass());
|
||||
|
||||
protected Label bankAccountLabel = new Label();
|
||||
protected WTableDirEditor bankAccountField;
|
||||
|
||||
protected Label documentNoLabel = new Label(Msg.translate(Env.getCtx(), "DocumentNo"));
|
||||
protected WStringEditor documentNoField = new WStringEditor();
|
||||
|
||||
protected Label documentTypeLabel = new Label();
|
||||
protected WTableDirEditor documentTypeField;
|
||||
|
||||
protected Label authorizationLabel = new Label();
|
||||
protected WStringEditor authorizationField = new WStringEditor();
|
||||
|
||||
protected Label tenderTypeLabel = new Label();
|
||||
protected WTableDirEditor tenderTypeField;
|
||||
|
||||
protected Label amtFromLabel = new Label(Msg.translate(Env.getCtx(), "PayAmt"));
|
||||
protected WNumberEditor amtFromField = new WNumberEditor("AmtFrom", false, false, true, DisplayType.Amount, Msg.translate(Env.getCtx(), "AmtFrom"));
|
||||
protected Label amtToLabel = new Label("-");
|
||||
protected WNumberEditor amtToField = new WNumberEditor("AmtTo", false, false, true, DisplayType.Amount, Msg.translate(Env.getCtx(), "AmtTo"));
|
||||
|
||||
protected Label BPartner_idLabel = new Label(Msg.translate(Env.getCtx(), "BPartner"));
|
||||
protected WEditor bPartnerLookup;
|
||||
|
||||
protected Label dateFromLabel = new Label(Msg.translate(Env.getCtx(), "DateTrx"));
|
||||
protected WDateEditor dateFromField = new WDateEditor("DateFrom", false, false, true, Msg.translate(Env.getCtx(), "DateFrom"));
|
||||
protected Label dateToLabel = new Label("-");
|
||||
protected WDateEditor dateToField = new WDateEditor("DateTo", false, false, true, Msg.translate(Env.getCtx(), "DateTo"));
|
||||
|
||||
/**
|
||||
* Dynamic Init
|
||||
* @throws Exception if Lookups cannot be initialized
|
||||
* @return true if initialized
|
||||
*/
|
||||
public boolean dynInit() throws Exception
|
||||
{
|
||||
log.config("");
|
||||
|
||||
super.dynInit();
|
||||
|
||||
//Refresh button
|
||||
Button refreshButton = window.getConfirmPanel().createButton(ConfirmPanel.A_REFRESH);
|
||||
refreshButton.addEventListener(Events.ON_CLICK, this);
|
||||
window.getConfirmPanel().addButton(refreshButton);
|
||||
|
||||
if (getGridTab().getValue("C_BankStatement_ID") == null)
|
||||
{
|
||||
FDialog.error(0, window, "SaveErrorRowNotFound");
|
||||
return false;
|
||||
}
|
||||
|
||||
window.setTitle(getTitle());
|
||||
|
||||
int AD_Column_ID = COLUMN_C_BANKSTATEMENT_C_BANKACCOUNT_ID; // C_BankStatement.C_BankAccount_ID
|
||||
MLookup lookup = MLookupFactory.get (Env.getCtx(), p_WindowNo, 0, AD_Column_ID, DisplayType.TableDir);
|
||||
bankAccountField = new WTableDirEditor ("C_BankAccount_ID", true, false, true, lookup);
|
||||
// Set Default
|
||||
int C_BankAccount_ID = Env.getContextAsInt(Env.getCtx(), p_WindowNo, "C_BankAccount_ID");
|
||||
bankAccountField.setValue(new Integer(C_BankAccount_ID));
|
||||
// initial Loading
|
||||
authorizationField = new WStringEditor ("authorization", false, false, true, 10, 30, null, null);
|
||||
authorizationField.getComponent().addEventListener(Events.ON_CHANGE, this);
|
||||
|
||||
lookup = MLookupFactory.get (Env.getCtx(), p_WindowNo, 0, MColumn.getColumn_ID(MPayment.Table_Name, MPayment.COLUMNNAME_C_DocType_ID), DisplayType.TableDir);
|
||||
documentTypeField = new WTableDirEditor (MPayment.COLUMNNAME_C_DocType_ID,false,false,true,lookup);
|
||||
documentTypeField.getComponent().addEventListener(Events.ON_CHANGE, this);
|
||||
|
||||
lookup = MLookupFactory.get (Env.getCtx(), p_WindowNo, 0, MColumn.getColumn_ID(MPayment.Table_Name, MPayment.COLUMNNAME_TenderType), DisplayType.List);
|
||||
tenderTypeField = new WTableDirEditor (MPayment.COLUMNNAME_TenderType,false,false,true,lookup);
|
||||
tenderTypeField.getComponent().addEventListener(Events.ON_CHANGE, this);
|
||||
|
||||
lookup = MLookupFactory.get (Env.getCtx(), p_WindowNo, 0, 3499, DisplayType.Search);
|
||||
bPartnerLookup = new WSearchEditor ("C_BPartner_ID", false, false, true, lookup);
|
||||
|
||||
Timestamp date = Env.getContextAsDate(Env.getCtx(), p_WindowNo, MBankStatement.COLUMNNAME_StatementDate);
|
||||
dateToField.setValue(date);
|
||||
|
||||
loadBankAccount();
|
||||
|
||||
return true;
|
||||
} // dynInit
|
||||
|
||||
protected void zkInit() throws Exception
|
||||
{
|
||||
bankAccountLabel.setText(Msg.translate(Env.getCtx(), "C_BankAccount_ID"));
|
||||
authorizationLabel.setText(Msg.translate(Env.getCtx(), "R_AuthCode"));
|
||||
|
||||
documentTypeLabel.setText(Msg.translate(Env.getCtx(), "C_DocType_ID"));
|
||||
tenderTypeLabel.setText(Msg.translate(Env.getCtx(), "TenderType"));
|
||||
|
||||
dateFromField.getComponent().setTooltiptext(Msg.translate(Env.getCtx(), "DateFrom"));
|
||||
dateToField.getComponent().setTooltiptext(Msg.translate(Env.getCtx(), "DateTo"));
|
||||
|
||||
amtFromField.getComponent().setTooltiptext(Msg.translate(Env.getCtx(), "AmtFrom"));
|
||||
amtToField.getComponent().setTooltiptext(Msg.translate(Env.getCtx(), "AmtTo"));
|
||||
|
||||
Borderlayout parameterLayout = new Borderlayout();
|
||||
parameterLayout.setHeight("130px");
|
||||
parameterLayout.setWidth("100%");
|
||||
Panel parameterPanel = window.getParameterPanel();
|
||||
parameterPanel.appendChild(parameterLayout);
|
||||
|
||||
Grid parameterBankLayout = GridFactory.newGridLayout();
|
||||
Panel parameterBankPanel = new Panel();
|
||||
parameterBankPanel.appendChild(parameterBankLayout);
|
||||
|
||||
Center center = new Center();
|
||||
parameterLayout.appendChild(center);
|
||||
center.appendChild(parameterBankPanel);
|
||||
|
||||
Columns columns = new Columns();
|
||||
parameterBankLayout.appendChild(columns);
|
||||
Column column = new Column();
|
||||
columns.appendChild(column);
|
||||
column = new Column();
|
||||
column.setWidth("15%");
|
||||
columns.appendChild(column);
|
||||
column.setWidth("35%");
|
||||
column = new Column();
|
||||
column.setWidth("15%");
|
||||
columns.appendChild(column);
|
||||
column = new Column();
|
||||
column.setWidth("35%");
|
||||
columns.appendChild(column);
|
||||
|
||||
Rows rows = (Rows) parameterBankLayout.newRows();
|
||||
Row row = rows.newRow();
|
||||
row.appendChild(bankAccountLabel.rightAlign());
|
||||
row.appendChild(bankAccountField.getComponent());
|
||||
row.appendChild(documentNoLabel.rightAlign());
|
||||
row.appendChild(documentNoField.getComponent());
|
||||
|
||||
row = rows.newRow();
|
||||
row.appendChild(documentTypeLabel.rightAlign());
|
||||
row.appendChild(documentTypeField.getComponent());
|
||||
row.appendChild(authorizationLabel.rightAlign());
|
||||
row.appendChild(authorizationField.getComponent());
|
||||
|
||||
row = rows.newRow();
|
||||
row.appendChild(tenderTypeLabel.rightAlign());
|
||||
row.appendChild(tenderTypeField.getComponent());
|
||||
|
||||
row.appendChild(amtFromLabel.rightAlign());
|
||||
Hbox hbox = new Hbox();
|
||||
hbox.appendChild(amtFromField.getComponent());
|
||||
hbox.appendChild(amtToLabel.rightAlign());
|
||||
hbox.appendChild(amtToField.getComponent());
|
||||
row.appendChild(hbox);
|
||||
|
||||
row = rows.newRow();
|
||||
row.appendChild(BPartner_idLabel.rightAlign());
|
||||
row.appendChild(bPartnerLookup.getComponent());
|
||||
row.appendChild(dateFromLabel.rightAlign());
|
||||
|
||||
hbox = new Hbox();
|
||||
hbox.appendChild(dateFromField.getComponent());
|
||||
hbox.appendChild(dateToLabel.rightAlign());
|
||||
hbox.appendChild(dateToField.getComponent());
|
||||
row.appendChild(hbox);
|
||||
}
|
||||
|
||||
/**
|
||||
* Action Listener
|
||||
* @param e event
|
||||
* @throws Exception
|
||||
*/
|
||||
public void onEvent(Event e) throws Exception
|
||||
{
|
||||
log.config("Action=" + e.getTarget().getId());
|
||||
if(e.getTarget().equals(window.getConfirmPanel().getButton(ConfirmPanel.A_REFRESH)))
|
||||
{
|
||||
loadBankAccount();
|
||||
window.tableChanged(null);
|
||||
}
|
||||
}
|
||||
|
||||
protected void loadBankAccount()
|
||||
{
|
||||
loadTableOIS(getBankAccountData(bankAccountField.getValue(), bPartnerLookup.getValue(),
|
||||
documentNoField.getValue().toString(), dateFromField.getValue(), dateToField.getValue(),
|
||||
amtFromField.getValue(), amtToField.getValue(),
|
||||
documentTypeField.getValue(), tenderTypeField.getValue(), authorizationField.getValue().toString()));
|
||||
}
|
||||
|
||||
protected void loadTableOIS (Vector<?> data)
|
||||
{
|
||||
window.getWListbox().clear();
|
||||
|
||||
// Remove previous listeners
|
||||
window.getWListbox().getModel().removeTableModelListener(window);
|
||||
// Set Model
|
||||
ListModelTable model = new ListModelTable(data);
|
||||
model.addTableModelListener(window);
|
||||
window.getWListbox().setData(model, getOISColumnNames());
|
||||
//
|
||||
|
||||
configureMiniTable(window.getWListbox());
|
||||
}
|
||||
|
||||
public void showWindow()
|
||||
{
|
||||
window.setVisible(true);
|
||||
}
|
||||
|
||||
public void closeWindow()
|
||||
{
|
||||
window.dispose();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Object getWindow()
|
||||
{
|
||||
return window;
|
||||
}
|
||||
}
|
|
@ -13,9 +13,9 @@
|
|||
*****************************************************************************/
|
||||
package org.adempiere.webui.apps.form;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import static org.compiere.model.SystemIDs.COLUMN_C_BANKSTATEMENT_C_BANKACCOUNT_ID;
|
||||
|
||||
import java.sql.Timestamp;
|
||||
import java.text.DecimalFormat;
|
||||
import java.util.Vector;
|
||||
import java.util.logging.Level;
|
||||
|
||||
|
@ -44,7 +44,6 @@ import org.compiere.model.MColumn;
|
|||
import org.compiere.model.MLookup;
|
||||
import org.compiere.model.MLookupFactory;
|
||||
import org.compiere.model.MPayment;
|
||||
import static org.compiere.model.SystemIDs.*;
|
||||
import org.compiere.util.CLogger;
|
||||
import org.compiere.util.DisplayType;
|
||||
import org.compiere.util.Env;
|
||||
|
@ -274,27 +273,6 @@ public class WCreateFromStatementUI extends CreateFromStatement implements Event
|
|||
configureMiniTable(window.getWListbox());
|
||||
}
|
||||
|
||||
/**
|
||||
* List total amount
|
||||
*/
|
||||
public void info()
|
||||
{
|
||||
DecimalFormat format = DisplayType.getNumberFormat(DisplayType.Amount);
|
||||
|
||||
BigDecimal total = new BigDecimal(0.0);
|
||||
int rows = window.getWListbox().getRowCount();
|
||||
int count = 0;
|
||||
for (int i = 0; i < rows; i++)
|
||||
{
|
||||
if (((Boolean)window.getWListbox().getValueAt(i, 0)).booleanValue())
|
||||
{
|
||||
total = total.add((BigDecimal)window.getWListbox().getValueAt(i, 4));
|
||||
count++;
|
||||
}
|
||||
}
|
||||
window.setStatusLine(count, Msg.getMsg(Env.getCtx(), "Sum") + " " + format.format(total));
|
||||
} // infoStatement
|
||||
|
||||
public void showWindow()
|
||||
{
|
||||
window.setVisible(true);
|
||||
|
|
|
@ -192,7 +192,7 @@ public class WCreateFromWindow extends Window implements EventListener<Event>, W
|
|||
}
|
||||
setStatusLine(count, null);
|
||||
|
||||
createFrom.info();
|
||||
createFrom.info(dataTable, statusBar);
|
||||
}
|
||||
|
||||
public void setStatusLine(int selectedRowCount, String text)
|
||||
|
|
|
@ -742,7 +742,10 @@ public class WTabEditor extends TabEditor implements IFormController, EventListe
|
|||
editorName.setValue(field.getName());
|
||||
editorSeqNo.setValue(field.getSeqNo());
|
||||
editorIsDisplayed.setValue(field.isDisplayed());
|
||||
editorAD_FieldGroup_ID.setValue(field.getAD_FieldGroup_ID());
|
||||
if (field.getAD_FieldGroup_ID() > 0)
|
||||
editorAD_FieldGroup_ID.setValue(field.getAD_FieldGroup_ID());
|
||||
else
|
||||
editorAD_FieldGroup_ID.setValue(null);
|
||||
editorXPosition.setValue(field.getXPosition());
|
||||
editorColumnSpan.setValue(field.getColumnSpan());
|
||||
editorNumLines.setValue(field.getNumLines());
|
||||
|
@ -750,7 +753,7 @@ public class WTabEditor extends TabEditor implements IFormController, EventListe
|
|||
GridField gridField = getGridField(field);
|
||||
String fieldGroup = "";
|
||||
String fieldGroupType = "";
|
||||
if (field.getAD_FieldGroup() != null) {
|
||||
if (field.getAD_FieldGroup_ID() > 0) {
|
||||
fieldGroup = field.getAD_FieldGroup().getName();
|
||||
fieldGroupType = field.getAD_FieldGroup().getFieldGroupType();
|
||||
}
|
||||
|
|
|
@ -35,6 +35,7 @@ import org.adempiere.webui.event.ActionListener;
|
|||
import org.compiere.model.GridField;
|
||||
import org.compiere.model.MLookup;
|
||||
import org.compiere.model.MLookupFactory;
|
||||
import org.compiere.model.MSysConfig;
|
||||
import org.compiere.util.CLogger;
|
||||
import org.compiere.util.DB;
|
||||
import org.compiere.util.DisplayType;
|
||||
|
@ -187,6 +188,11 @@ public class WButtonEditor extends WEditor implements IProcessButton
|
|||
{
|
||||
;
|
||||
}
|
||||
else if (super.getColumnName().equals("DocAction")
|
||||
&& !MSysConfig.getBooleanValue(MSysConfig.DOCACTIONBUTTON_SHOWACTIONNAME, false, Env.getAD_Client_ID(Env.getCtx())))
|
||||
{
|
||||
text = Msg.getElement(Env.getCtx(), "DocAction");
|
||||
}
|
||||
else if (m_values != null)
|
||||
{
|
||||
text = (String)m_values.get(value);
|
||||
|
@ -237,11 +243,13 @@ public class WButtonEditor extends WEditor implements IProcessButton
|
|||
+ " AND t.AD_Language='" + Env.getAD_Language(Env.getCtx()) + "'"
|
||||
+ " AND l.AD_Reference_ID=?";
|
||||
|
||||
PreparedStatement pstmt = null;
|
||||
ResultSet rs = null;
|
||||
try
|
||||
{
|
||||
PreparedStatement pstmt = DB.prepareStatement(SQL, null);
|
||||
pstmt = DB.prepareStatement(SQL, null);
|
||||
pstmt.setInt(1, AD_Reference_ID);
|
||||
ResultSet rs = pstmt.executeQuery();
|
||||
rs = pstmt.executeQuery();
|
||||
|
||||
while (rs.next())
|
||||
{
|
||||
|
@ -251,13 +259,15 @@ public class WButtonEditor extends WEditor implements IProcessButton
|
|||
}
|
||||
|
||||
|
||||
rs.close();
|
||||
pstmt.close();
|
||||
}
|
||||
catch (SQLException e)
|
||||
{
|
||||
logger.log(Level.SEVERE, SQL, e);
|
||||
}
|
||||
finally
|
||||
{
|
||||
DB.close(rs, pstmt);
|
||||
}
|
||||
|
||||
} // readReference
|
||||
|
||||
|
|
|
@ -47,6 +47,8 @@ import org.compiere.util.CLogger;
|
|||
import org.compiere.util.DB;
|
||||
import org.compiere.util.DisplayType;
|
||||
import org.compiere.util.Env;
|
||||
import org.zkoss.zk.ui.Executions;
|
||||
import org.zkoss.zk.ui.Page;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zk.ui.event.EventListener;
|
||||
import org.zkoss.zk.ui.event.Events;
|
||||
|
@ -67,12 +69,15 @@ public class WSearchEditor extends WEditor implements ContextMenuListener, Value
|
|||
private String columnName;
|
||||
private Object value;
|
||||
private InfoPanel infoPanel = null;
|
||||
private String imageUrl;
|
||||
|
||||
private static CLogger log = CLogger.getCLogger(WSearchEditor.class);
|
||||
|
||||
private static final String IN_PROGRESS_IMAGE = "~./zk/img/progress3.gif";
|
||||
|
||||
public WSearchEditor (GridField gridField)
|
||||
{
|
||||
super(new Searchbox(), gridField);
|
||||
super(new CustomSearchBox(), gridField);
|
||||
|
||||
lookup = gridField.getLookup();
|
||||
|
||||
|
@ -150,21 +155,22 @@ public class WSearchEditor extends WEditor implements ContextMenuListener, Value
|
|||
{
|
||||
|
||||
columnName = this.getColumnName();
|
||||
imageUrl = "/images/PickOpen10.png";
|
||||
if (columnName.equals("C_BPartner_ID"))
|
||||
{
|
||||
popupMenu = new WEditorPopupMenu(true, true, isShowPreference(), true, true, false, lookup);
|
||||
getComponent().setButtonImage("/images/BPartner10.png");
|
||||
imageUrl = "/images/BPartner10.png";
|
||||
}
|
||||
else if (columnName.equals("M_Product_ID"))
|
||||
{
|
||||
popupMenu = new WEditorPopupMenu(true, true, isShowPreference(), false, false, false, lookup);
|
||||
getComponent().setButtonImage("/images/Product10.png");
|
||||
imageUrl = "/images/Product10.png";
|
||||
}
|
||||
else
|
||||
{
|
||||
popupMenu = new WEditorPopupMenu(true, true, isShowPreference(), false, false, false, lookup);
|
||||
getComponent().setButtonImage("/images/PickOpen10.png");
|
||||
}
|
||||
getComponent().getButton().setImage(imageUrl);
|
||||
|
||||
addChangeLogMenu(popupMenu);
|
||||
|
||||
|
@ -319,6 +325,7 @@ public class WSearchEditor extends WEditor implements ContextMenuListener, Value
|
|||
if (text == null || text.length() == 0 || text.equals("%"))
|
||||
{
|
||||
actionButton(text);
|
||||
resetButtonState();
|
||||
return;
|
||||
}
|
||||
if (log.isLoggable(Level.CONFIG))
|
||||
|
@ -351,16 +358,25 @@ public class WSearchEditor extends WEditor implements ContextMenuListener, Value
|
|||
{
|
||||
actionButton(getComponent().getText());
|
||||
}
|
||||
resetButtonState();
|
||||
return;
|
||||
}
|
||||
if (log.isLoggable(Level.FINE))
|
||||
log.fine(getColumnName() + " - Unique ID=" + id);
|
||||
|
||||
actionCombo(new Integer(id)); // data binding
|
||||
//m_text.requestFocus();
|
||||
|
||||
resetButtonState();
|
||||
} // actionText
|
||||
|
||||
|
||||
private void resetButtonState() {
|
||||
getComponent().getButton().setEnabled(true);
|
||||
getComponent().getButton().setImage(imageUrl);
|
||||
getComponent().invalidate();
|
||||
}
|
||||
|
||||
|
||||
private void actionCombo (Object value)
|
||||
{
|
||||
if (log.isLoggable(Level.FINE))
|
||||
|
@ -533,7 +549,6 @@ public class WSearchEditor extends WEditor implements ContextMenuListener, Value
|
|||
m_tableName = m_columnName.substring(0, m_columnName.length()-3);
|
||||
m_keyColumnName = m_columnName;
|
||||
|
||||
//TODO: check info window definition
|
||||
if (m_columnName.equals("M_Product_ID"))
|
||||
{
|
||||
// Reset
|
||||
|
@ -849,4 +864,24 @@ public class WSearchEditor extends WEditor implements ContextMenuListener, Value
|
|||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
static class CustomSearchBox extends Searchbox {
|
||||
|
||||
/**
|
||||
* generated serial id
|
||||
*/
|
||||
private static final long serialVersionUID = 7490301044763375829L;
|
||||
|
||||
@Override
|
||||
public void onPageAttached(Page newpage, Page oldpage) {
|
||||
super.onPageAttached(newpage, oldpage);
|
||||
if (newpage != null) {
|
||||
String w = "var btn=jq('#'+this.parent.uuid+' @button').zk.$();";
|
||||
getTextbox().setWidgetListener("onChange", "try{"+w+"btn.setImage(\""
|
||||
+ Executions.getCurrent().encodeURL(IN_PROGRESS_IMAGE)+"\");"
|
||||
+ "btn.setDisabled(true, {adbs: false, skip: false});}catch(err){}");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -3,6 +3,11 @@
|
|||
*/
|
||||
package org.adempiere.webui.info;
|
||||
|
||||
import org.adempiere.webui.editor.WEditor;
|
||||
import org.adempiere.webui.panel.InvoiceHistory;
|
||||
import org.compiere.util.Env;
|
||||
import org.compiere.util.Util;
|
||||
|
||||
/**
|
||||
* @author hengsin
|
||||
*
|
||||
|
@ -28,7 +33,6 @@ public class InfoBPartnerWindow extends InfoWindow {
|
|||
int AD_InfoWindow_ID) {
|
||||
super(WindowNo, tableName, keyColumn, queryValue, multipleSelection,
|
||||
whereClause, AD_InfoWindow_ID);
|
||||
// TODO Auto-generated constructor stub
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -46,7 +50,55 @@ public class InfoBPartnerWindow extends InfoWindow {
|
|||
int AD_InfoWindow_ID, boolean lookup) {
|
||||
super(WindowNo, tableName, keyColumn, queryValue, multipleSelection,
|
||||
whereClause, AD_InfoWindow_ID, lookup);
|
||||
// TODO Auto-generated constructor stub
|
||||
}
|
||||
|
||||
/**
|
||||
* Has History
|
||||
* @return true
|
||||
*/
|
||||
@Override
|
||||
protected boolean hasHistory()
|
||||
{
|
||||
return true;
|
||||
} // hasHistory
|
||||
|
||||
// Elaine 2008/12/16
|
||||
/**************************************************************************
|
||||
* Show History
|
||||
*/
|
||||
@Override
|
||||
protected void showHistory()
|
||||
{
|
||||
log.info("");
|
||||
Integer C_BPartner_ID = getSelectedRowKey();
|
||||
if (C_BPartner_ID == null)
|
||||
return;
|
||||
InvoiceHistory ih = new InvoiceHistory (this, C_BPartner_ID.intValue(),
|
||||
0, 0, 0);
|
||||
ih.setVisible(true);
|
||||
ih = null;
|
||||
} // showHistory
|
||||
|
||||
@Override
|
||||
protected void createParameterPanel() {
|
||||
super.createParameterPanel();
|
||||
String isSOTrx = Env.getContext(Env.getCtx(), p_WindowNo, "IsSOTrx");
|
||||
if (!Util.isEmpty(isSOTrx)) {
|
||||
if ("Y".equals(isSOTrx)) {
|
||||
for (WEditor editor : editors) {
|
||||
if (editor.getGridField() != null && editor.getGridField().getColumnName().equals("IsCustomer")) {
|
||||
editor.setValue("Y");
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else if ("N".equals(isSOTrx)) {
|
||||
for (WEditor editor : editors) {
|
||||
if (editor.getGridField() != null && editor.getGridField().getColumnName().equals("IsVendor")) {
|
||||
editor.setValue("Y");
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -114,6 +114,12 @@ public class InfoProductWindow extends InfoWindow {
|
|||
@Override
|
||||
protected String getSQLWhere() {
|
||||
StringBuilder where = new StringBuilder(super.getSQLWhere());
|
||||
if (getSelectedWarehouseId() > 0) {
|
||||
if (where.length() > 0) {
|
||||
where.append(" AND ");
|
||||
}
|
||||
where.append("p.IsSummary='N' ");
|
||||
}
|
||||
return where.toString();
|
||||
}
|
||||
|
||||
|
@ -801,4 +807,14 @@ public class InfoProductWindow extends InfoWindow {
|
|||
String.valueOf(m_M_Locator_ID));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void prepareTable(ColumnInfo[] layout, String from, String where,
|
||||
String orderBy) {
|
||||
if (getSelectedWarehouseId() > 0)
|
||||
{
|
||||
orderBy = "QtyAvailable DESC";
|
||||
}
|
||||
super.prepareTable(layout, from, where, orderBy);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -43,6 +43,7 @@ import org.compiere.util.DisplayType;
|
|||
import org.compiere.util.Env;
|
||||
import org.compiere.util.KeyNamePair;
|
||||
import org.compiere.util.Msg;
|
||||
import org.compiere.util.Util;
|
||||
import org.compiere.util.ValueNamePair;
|
||||
import org.zkoss.zk.ui.Component;
|
||||
import org.zkoss.zk.ui.event.Events;
|
||||
|
@ -85,6 +86,7 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener {
|
|||
|
||||
private List<GridField> gridFields;
|
||||
private int AD_InfoWindow_ID;
|
||||
private Checkbox checkAND;
|
||||
|
||||
/**
|
||||
* @param WindowNo
|
||||
|
@ -195,6 +197,7 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener {
|
|||
if (infoColumn.getAD_Val_Rule_ID() > 0) {
|
||||
vo.ValidationCode = infoColumn.getAD_Val_Rule().getCode();
|
||||
}
|
||||
vo.DisplayLogic = infoColumn.getDisplayLogic() != null ? infoColumn.getDisplayLogic() : "";
|
||||
GridField gridField = new GridField(vo);
|
||||
gridFields.add(gridField);
|
||||
}
|
||||
|
@ -324,7 +327,7 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener {
|
|||
String whereClause = ((IWhereClauseEditor) editor).getWhereClause();
|
||||
if (whereClause != null && whereClause.trim().length() > 0) {
|
||||
if (builder.length() > 0) {
|
||||
builder.append(" AND ");
|
||||
builder.append(checkAND.isChecked() ? " AND " : " OR ");
|
||||
} else if (p_whereClause != null && p_whereClause.trim().length() > 0) {
|
||||
builder.append(" AND ");
|
||||
}
|
||||
|
@ -337,7 +340,7 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener {
|
|||
}
|
||||
String columnName = mInfoColumn.getSelectClause();
|
||||
if (builder.length() > 0) {
|
||||
builder.append(" AND ");
|
||||
builder.append(checkAND.isChecked() ? " AND " : " OR ");
|
||||
} else if (p_whereClause != null && p_whereClause.trim().length() > 0) {
|
||||
builder.append(" AND ");
|
||||
}
|
||||
|
@ -366,6 +369,7 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener {
|
|||
.append(" ?");
|
||||
}
|
||||
}
|
||||
System.out.println(builder.toString());
|
||||
return builder.toString();
|
||||
}
|
||||
|
||||
|
@ -462,6 +466,7 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener {
|
|||
North north = new North();
|
||||
layout.appendChild(north);
|
||||
renderParameterPane(north);
|
||||
|
||||
|
||||
Center center = new Center();
|
||||
layout.appendChild(center);
|
||||
|
@ -500,12 +505,17 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener {
|
|||
protected void createParameterPanel() {
|
||||
parameterGrid = GridFactory.newGridLayout();
|
||||
parameterGrid.setWidgetAttribute(AdempiereWebUI.WIDGET_INSTANCE_NAME, "infoParameterPanel");
|
||||
parameterGrid.setStyle("width: 90%; margin: auto;");
|
||||
parameterGrid.setStyle("width: 95%; margin: auto !important;");
|
||||
Columns columns = new Columns();
|
||||
parameterGrid.appendChild(columns);
|
||||
for(int i = 0; i < 6; i++)
|
||||
columns.appendChild(new Column());
|
||||
|
||||
Column column = new Column();
|
||||
column.setWidth("100px");
|
||||
column.setAlign("right");
|
||||
columns.appendChild(column);
|
||||
|
||||
Rows rows = new Rows();
|
||||
parameterGrid.appendChild(rows);
|
||||
|
||||
|
@ -515,6 +525,35 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener {
|
|||
if (infoColumns[i].isQueryCriteria())
|
||||
addSelectionColumn(gridFields.get(i));
|
||||
}
|
||||
|
||||
if (checkAND == null) {
|
||||
if (parameterGrid.getRows() != null && parameterGrid.getRows().getFirstChild() != null) {
|
||||
Row row = (Row) parameterGrid.getRows().getFirstChild();
|
||||
int col = row.getChildren().size();
|
||||
while (col < 6) {
|
||||
row.appendChild(new Space());
|
||||
col++;
|
||||
}
|
||||
createAndCheckbox();
|
||||
row.appendChild(checkAND);
|
||||
}
|
||||
}
|
||||
evalDisplayLogic();
|
||||
}
|
||||
|
||||
private void evalDisplayLogic() {
|
||||
for(WEditor editor : editors) {
|
||||
if (editor.getGridField() != null && !editor.getGridField().isDisplayed(true)) {
|
||||
editor.getComponent().setVisible(false);
|
||||
if (editor.getLabel() != null)
|
||||
editor.getLabel().setVisible(false);
|
||||
}
|
||||
else if (!editor.getComponent().isVisible()) {
|
||||
editor.getComponent().setVisible(true);
|
||||
if (editor.getLabel() != null)
|
||||
editor.getLabel().setVisible(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -569,8 +608,17 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener {
|
|||
else
|
||||
{
|
||||
panel = (Row) parameterGrid.getRows().getLastChild();
|
||||
if (panel.getChildren().size() >= 6)
|
||||
if (panel.getChildren().size() == 6)
|
||||
{
|
||||
if (parameterGrid.getRows().getChildren().size() == 1)
|
||||
{
|
||||
createAndCheckbox();
|
||||
panel.appendChild(checkAND);
|
||||
}
|
||||
else
|
||||
{
|
||||
panel.appendChild(new Space());
|
||||
}
|
||||
panel = new Row();
|
||||
parameterGrid.getRows().appendChild(panel);
|
||||
}
|
||||
|
@ -583,6 +631,18 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener {
|
|||
}
|
||||
panel.appendChild(fieldEditor);
|
||||
}
|
||||
|
||||
private void createAndCheckbox() {
|
||||
checkAND = new Checkbox();
|
||||
checkAND.setLabel(Msg.getMsg(Env.getCtx(), "SearchAND", true));
|
||||
String tips = Msg.getMsg(Env.getCtx(), "SearchAND", false);
|
||||
if (!Util.isEmpty(tips))
|
||||
{
|
||||
checkAND.setTooltiptext(tips);
|
||||
}
|
||||
checkAND.setChecked(true);
|
||||
checkAND.addEventListener(Events.ON_CHECK, this);
|
||||
}
|
||||
|
||||
protected int findColumnIndex(String columnName) {
|
||||
for(int i = 0; i < columnInfos.length; i++) {
|
||||
|
@ -710,7 +770,9 @@ public class InfoWindow extends InfoPanel implements ValueChangeListener {
|
|||
|
||||
otherEditor.dynamicDisplay();
|
||||
}
|
||||
|
||||
evalDisplayLogic();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -194,7 +194,7 @@ public class InfoBPartnerPanel extends InfoPanel implements EventListener<Event>
|
|||
fieldPhone.setWidgetAttribute(AdempiereWebUI.WIDGET_INSTANCE_NAME, "phone");
|
||||
|
||||
checkAND = new Checkbox();
|
||||
checkAND.setLabel(Msg.getMsg(Env.getCtx(), "SearchAND"));
|
||||
checkAND.setLabel(Msg.getMsg(Env.getCtx(), "SearchAND", true));
|
||||
checkAND.setChecked(true);
|
||||
checkAND.addEventListener(Events.ON_CHECK, this);
|
||||
checkCustomer = new Checkbox();
|
||||
|
|
|
@ -22,9 +22,11 @@ import org.adempiere.webui.component.Tabs;
|
|||
import org.adempiere.webui.component.Textbox;
|
||||
import org.adempiere.webui.component.Window;
|
||||
import org.zkforge.ckez.CKeditor;
|
||||
import org.zkoss.zk.au.out.AuScript;
|
||||
import org.zkoss.zk.ui.event.Event;
|
||||
import org.zkoss.zk.ui.event.EventListener;
|
||||
import org.zkoss.zk.ui.event.Events;
|
||||
import org.zkoss.zk.ui.util.Clients;
|
||||
import org.zkoss.zul.Div;
|
||||
import org.zkoss.zul.Html;
|
||||
import org.zkoss.zul.Separator;
|
||||
|
@ -150,6 +152,11 @@ public class WTextEditorDialog extends Window implements EventListener<Event>{
|
|||
editor.setValue(text);
|
||||
}
|
||||
|
||||
public void onEditorCallback(Event event) {
|
||||
text = (String) event.getData();
|
||||
detach();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param event
|
||||
*/
|
||||
|
@ -159,12 +166,16 @@ public class WTextEditorDialog extends Window implements EventListener<Event>{
|
|||
detach();
|
||||
} else if (event.getTarget().getId().equals(ConfirmPanel.A_OK)) {
|
||||
if (editable) {
|
||||
if (tabbox.getSelectedIndex() == 0)
|
||||
if (tabbox.getSelectedIndex() == 0) {
|
||||
text = textBox.getText();
|
||||
else
|
||||
text = editor.getValue();
|
||||
}
|
||||
detach();
|
||||
detach();
|
||||
} else {
|
||||
String script = "var w=zk('#"+editor.getUuid()+"').$();var d=w.getEditor().getData();var t=zk('#" +
|
||||
this.getUuid()+"').$();var e=new zk.Event(t,'onEditorCallback',d,{toServer:true});zAu.send(e);";
|
||||
Clients.response(new AuScript(script));
|
||||
}
|
||||
|
||||
}
|
||||
} else if (event.getTarget().getId().equals(ConfirmPanel.A_RESET)) {
|
||||
textBox.setText(text);
|
||||
editor.setValue(text);
|
||||
|
|
|
@ -99,4 +99,9 @@
|
|||
</name>
|
||||
<value>11px</value>
|
||||
</library-property>
|
||||
<!-- turn off borderlayout animation -->
|
||||
<library-property>
|
||||
<name>org.zkoss.zul.borderlayout.animation.disabed</name>
|
||||
<value>true</value>
|
||||
</library-property>
|
||||
</zk>
|
||||
|
|
|
@ -10,7 +10,6 @@ bin.includes = META-INF/,\
|
|||
zul/,\
|
||||
timeout.zul,\
|
||||
plugin.xml,\
|
||||
WEB-INF/classes/,\
|
||||
calendar.css,\
|
||||
calendar.zul,\
|
||||
calendar_mini.zul,\
|
||||
|
@ -49,4 +48,5 @@ src.includes = WEB-INF/classes/,\
|
|||
divtab.zul
|
||||
source.. = WEB-INF/src/
|
||||
bin.excludes = WEB-INF/src/,\
|
||||
WEB-INF/web-2.5.xml
|
||||
WEB-INF/web-2.5.xml,\
|
||||
WEB-INF/classes/
|
||||
|
|
|
@ -1,12 +1,17 @@
|
|||
CKEDITOR.editorConfig = function(config) {
|
||||
config.resize_enabled = false;
|
||||
config.toolbar = 'MyToolbar';
|
||||
config.toolbar_MyToolbar = [
|
||||
[ 'Bold', 'Italic', 'Underline', 'Strike', 'Subscript',
|
||||
'Superscript', 'TextColor', 'BGColor', '-', 'Cut', 'Copy',
|
||||
'Paste', 'Link', 'Unlink' ],
|
||||
[ 'Undo', 'Redo', '-', 'JustifyLeft', 'JustifyCenter',
|
||||
'JustifyRight', 'JustifyBlock' ],
|
||||
[ 'Table', 'Smiley', 'SpecialChar', 'PageBreak',
|
||||
'Styles', 'Format', 'Font', 'FontSize', 'Maximize'] ];
|
||||
};
|
||||
config.toolbar_MyToolbar =
|
||||
[
|
||||
{ name: 'styles', items : [ 'Styles','Format','Font','FontSize' ] },
|
||||
{ name: 'colors', items : [ 'TextColor','BGColor' ] },
|
||||
{ name: 'tools', items : [ 'Maximize', '-','About' ] },
|
||||
{ name: 'clipboard', items : [ 'Undo','Redo' ] },
|
||||
{ name: 'editing', items : [ 'Find','Replace','-','SelectAll' ] },
|
||||
'/',
|
||||
{ name: 'basicstyles', items : [ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ] },
|
||||
{ name: 'paragraph', items : [ 'NumberedList','BulletedList','-','Outdent','Indent','-','Blockquote','-','JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock' ] },
|
||||
{ name: 'links', items : [ 'Link','Unlink' ] },
|
||||
{ name: 'insert', items : [ 'Image','Table','HorizontalRule','SpecialChar' ] }
|
||||
];
|
||||
};
|
||||
|
|
|
@ -488,6 +488,7 @@ div.wc-modal, div.wc-modal-none, div.wc-highlighted, div.wc-highlighted-none {
|
|||
border: none;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: #F9F9F9;
|
||||
}
|
||||
|
||||
.adwindow-layout .z-center {
|
||||
|
@ -577,10 +578,12 @@ div.wc-modal, div.wc-modal-none, div.wc-highlighted, div.wc-highlighted-none {
|
|||
|
||||
.adwindow-gridview-detail + .z-south-splt {
|
||||
border-top: 1px solid #C5C5C5;
|
||||
border-bottom: 1px solid #C5C5C5;
|
||||
}
|
||||
|
||||
.adwindow-gridview-detail .z-south-body {
|
||||
padding-top: 1px;
|
||||
background-color: #D3D3D3;
|
||||
}
|
||||
|
||||
.adwindow-gridview-borderlayout {
|
||||
|
@ -772,6 +775,8 @@ span.z-tree-tee, span.z-tree-last {
|
|||
.editor-box .editor-button img {
|
||||
vertical-align: middle;
|
||||
text-align: center;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
}
|
||||
|
||||
.editor-box .editor-button-column {
|
||||
|
@ -805,6 +810,12 @@ tr.z-group {
|
|||
font-family: Helvetica,Arial,sans-serif;
|
||||
}
|
||||
|
||||
.z-group td.z-group-inner {
|
||||
overflow: hidden !important;
|
||||
border-bottom: 1px solid #CFCFCF !important;
|
||||
border-top: 1px solid #CFCFCF !important;
|
||||
}
|
||||
|
||||
<%-- Tablet --%>
|
||||
.tablet-scrolling {
|
||||
-webkit-overflow-scrolling: touch;
|
||||
|
@ -1041,12 +1052,6 @@ tbody.z-grid-empty-body td {
|
|||
width: 85% !important;
|
||||
}
|
||||
|
||||
.z-group td.z-group-inner {
|
||||
overflow: hidden !important;
|
||||
border-bottom: 1px solid #CFCFCF !important;
|
||||
border-top: 1px solid #CFCFCF !important;
|
||||
}
|
||||
|
||||
.embedded-dialog {
|
||||
position: absolute;
|
||||
}
|
||||
|
|
|
@ -21,6 +21,7 @@ import java.util.ArrayList;
|
|||
import java.util.Vector;
|
||||
import java.util.logging.Level;
|
||||
|
||||
import org.compiere.apps.IStatusBar;
|
||||
import org.compiere.minigrid.IMiniTable;
|
||||
import org.compiere.model.GridTab;
|
||||
import org.compiere.model.MOrder;
|
||||
|
@ -54,7 +55,7 @@ public abstract class CreateFrom implements ICreateFrom
|
|||
|
||||
public abstract boolean dynInit() throws Exception;
|
||||
|
||||
public abstract void info();
|
||||
public abstract void info(IMiniTable miniTable, IStatusBar statusBar);
|
||||
|
||||
public abstract boolean save(IMiniTable miniTable, String trxName);
|
||||
|
||||
|
|
|
@ -0,0 +1,181 @@
|
|||
/******************************************************************************
|
||||
* Copyright (C) 2013 Elaine Tan *
|
||||
* Copyright (C) 2013 Trek Global
|
||||
* This program is free software; you can redistribute it and/or modify it *
|
||||
* under the terms version 2 of the GNU General Public License as published *
|
||||
* by the Free Software Foundation. This program is distributed in the hope *
|
||||
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||
* See the GNU General Public License for more details. *
|
||||
* You should have received a copy of the GNU General Public License along *
|
||||
* with this program; if not, write to the Free Software Foundation, Inc., *
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
||||
*****************************************************************************/
|
||||
package org.compiere.grid;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.PreparedStatement;
|
||||
import java.sql.SQLException;
|
||||
import java.sql.Timestamp;
|
||||
import java.text.DecimalFormat;
|
||||
import java.util.Vector;
|
||||
|
||||
import org.compiere.apps.IStatusBar;
|
||||
import org.compiere.minigrid.IMiniTable;
|
||||
import org.compiere.model.GridTab;
|
||||
import org.compiere.util.DisplayType;
|
||||
import org.compiere.util.Env;
|
||||
import org.compiere.util.Msg;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Elaine
|
||||
*
|
||||
*/
|
||||
public abstract class CreateFromBatch extends CreateFrom
|
||||
{
|
||||
public CreateFromBatch(GridTab gridTab)
|
||||
{
|
||||
super(gridTab);
|
||||
}
|
||||
|
||||
public String getSQLWhere(Object BPartner, String DocumentNo, Object DateFrom, Object DateTo,
|
||||
Object AmtFrom, Object AmtTo, Object DocType, Object TenderType, String AuthCode)
|
||||
{
|
||||
StringBuilder sql = new StringBuilder();
|
||||
sql.append("WHERE p.Processed='Y' AND p.IsReconciled='N'");
|
||||
sql.append(" AND p.DocStatus IN ('CO','CL','RE','VO') AND p.PayAmt<>0");
|
||||
sql.append(" AND p.C_BankAccount_ID = ?");
|
||||
sql.append(" AND NOT EXISTS (SELECT * FROM C_BankStatementLine l WHERE p.C_Payment_ID=l.C_Payment_ID AND l.StmtAmt <> 0)");
|
||||
|
||||
if(DocType != null)
|
||||
sql.append(" AND p.C_DocType_ID=?");
|
||||
if(TenderType != null && TenderType.toString().length() > 0)
|
||||
sql.append(" AND p.TenderType=?");
|
||||
if(BPartner != null)
|
||||
sql.append(" AND p.C_BPartner_ID=?");
|
||||
|
||||
if(DocumentNo.length() > 0)
|
||||
sql.append(" AND UPPER(p.DocumentNo) LIKE ?");
|
||||
if(AuthCode.length() > 0)
|
||||
sql.append(" AND p.R_AuthCode LIKE ?");
|
||||
|
||||
if(AmtFrom != null || AmtTo != null)
|
||||
{
|
||||
BigDecimal from = (BigDecimal) AmtFrom;
|
||||
BigDecimal to = (BigDecimal) AmtTo;
|
||||
if(from == null && to != null)
|
||||
sql.append(" AND p.PayAmt <= ?");
|
||||
else if(from != null && to == null)
|
||||
sql.append(" AND p.PayAmt >= ?");
|
||||
else if(from != null && to != null)
|
||||
sql.append(" AND p.PayAmt BETWEEN ? AND ?");
|
||||
}
|
||||
|
||||
if(DateFrom != null || DateTo != null)
|
||||
{
|
||||
Timestamp from = (Timestamp) DateFrom;
|
||||
Timestamp to = (Timestamp) DateTo;
|
||||
if(from == null && to != null)
|
||||
sql.append(" AND TRUNC(p.DateTrx) <= ?");
|
||||
else if(from != null && to == null)
|
||||
sql.append(" AND TRUNC(p.DateTrx) >= ?");
|
||||
else if(from != null && to != null)
|
||||
sql.append(" AND TRUNC(p.DateTrx) BETWEEN ? AND ?");
|
||||
}
|
||||
|
||||
log.fine(sql.toString());
|
||||
return sql.toString();
|
||||
}
|
||||
|
||||
void setParameters(PreparedStatement pstmt, Object BankAccount, Object BPartner, String DocumentNo, Object DateFrom, Object DateTo,
|
||||
Object AmtFrom, Object AmtTo, Object DocType, Object TenderType, String AuthCode)
|
||||
throws SQLException
|
||||
{
|
||||
// Get StatementDate
|
||||
Timestamp ts = (Timestamp) getGridTab().getValue("StatementDate");
|
||||
if (ts == null)
|
||||
ts = new Timestamp(System.currentTimeMillis());
|
||||
|
||||
int index = 1;
|
||||
|
||||
pstmt.setTimestamp(index++, ts);
|
||||
pstmt.setInt(index++, BankAccount != null ? (Integer) BankAccount : (Integer) getGridTab().getValue("C_BankAccount_ID"));
|
||||
|
||||
if(DocType != null)
|
||||
pstmt.setInt(index++, (Integer) DocType);
|
||||
|
||||
if(TenderType != null && TenderType.toString().length() > 0)
|
||||
pstmt.setString(index++, (String) TenderType);
|
||||
|
||||
if(BPartner != null)
|
||||
pstmt.setInt(index++, (Integer) BPartner);
|
||||
|
||||
if(DocumentNo.length() > 0)
|
||||
pstmt.setString(index++, getSQLText(DocumentNo));
|
||||
|
||||
if(AuthCode.length() > 0)
|
||||
pstmt.setString(index++, getSQLText(AuthCode));
|
||||
|
||||
if(AmtFrom != null || AmtTo != null)
|
||||
{
|
||||
BigDecimal from = (BigDecimal) AmtFrom;
|
||||
BigDecimal to = (BigDecimal) AmtTo;
|
||||
log.fine("Amt From=" + from + ", To=" + to);
|
||||
if(from == null && to != null)
|
||||
pstmt.setBigDecimal(index++, to);
|
||||
else if(from != null && to == null)
|
||||
pstmt.setBigDecimal(index++, from);
|
||||
else if(from != null && to != null)
|
||||
{
|
||||
pstmt.setBigDecimal(index++, from);
|
||||
pstmt.setBigDecimal(index++, to);
|
||||
}
|
||||
}
|
||||
|
||||
if(DateFrom != null || DateTo != null)
|
||||
{
|
||||
Timestamp from = (Timestamp) DateFrom;
|
||||
Timestamp to = (Timestamp) DateTo;
|
||||
log.fine("Date From=" + from + ", To=" + to);
|
||||
if(from == null && to != null)
|
||||
pstmt.setTimestamp(index++, to);
|
||||
else if(from != null && to == null)
|
||||
pstmt.setTimestamp(index++, from);
|
||||
else if(from != null && to != null)
|
||||
{
|
||||
pstmt.setTimestamp(index++, from);
|
||||
pstmt.setTimestamp(index++, to);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private String getSQLText(String text)
|
||||
{
|
||||
String s = text.toUpperCase();
|
||||
if(!s.endsWith("%"))
|
||||
s += "%";
|
||||
log.fine( "String=" + s);
|
||||
return s;
|
||||
}
|
||||
|
||||
protected abstract Vector<Vector<Object>> getBankAccountData(Object BankAccount, Object BPartner, String DocumentNo,
|
||||
Object DateFrom, Object DateTo, Object AmtFrom, Object AmtTo, Object DocType, Object TenderType, String AuthCode);
|
||||
|
||||
public void info(IMiniTable miniTable, IStatusBar statusBar)
|
||||
{
|
||||
DecimalFormat format = DisplayType.getNumberFormat(DisplayType.Amount);
|
||||
BigDecimal total = new BigDecimal(0);
|
||||
int rows = miniTable.getRowCount();
|
||||
int count = 0;
|
||||
for(int i = 0; i < rows; i++)
|
||||
{
|
||||
if(((Boolean) miniTable.getValueAt(i, 0)).booleanValue())
|
||||
{
|
||||
total = total.add((BigDecimal) miniTable.getValueAt(i, 4));
|
||||
count++;
|
||||
}
|
||||
}
|
||||
statusBar.setStatusLine(String.valueOf(count) + " - " + Msg.getMsg(Env.getCtx(), "Sum") + " " + format.format(total));
|
||||
}
|
||||
}
|
|
@ -0,0 +1,218 @@
|
|||
/******************************************************************************
|
||||
* Copyright (C) 2013 Elaine Tan *
|
||||
* Copyright (C) 2013 Trek Global
|
||||
* This program is free software; you can redistribute it and/or modify it *
|
||||
* under the terms version 2 of the GNU General Public License as published *
|
||||
* by the Free Software Foundation. This program is distributed in the hope *
|
||||
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||
* See the GNU General Public License for more details. *
|
||||
* You should have received a copy of the GNU General Public License along *
|
||||
* with this program; if not, write to the Free Software Foundation, Inc., *
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
||||
*****************************************************************************/
|
||||
package org.compiere.grid;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.PreparedStatement;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Vector;
|
||||
import java.util.logging.Level;
|
||||
|
||||
import org.compiere.minigrid.IMiniTable;
|
||||
import org.compiere.model.GridTab;
|
||||
import org.compiere.model.MBankStatement;
|
||||
import org.compiere.model.MBankStatementLine;
|
||||
import org.compiere.model.MPayment;
|
||||
import org.compiere.util.DB;
|
||||
import org.compiere.util.Env;
|
||||
import org.compiere.util.KeyNamePair;
|
||||
import org.compiere.util.Msg;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Elaine
|
||||
*
|
||||
*/
|
||||
public abstract class CreateFromBatchStatement extends CreateFromBatch
|
||||
{
|
||||
public CreateFromBatchStatement(GridTab mTab)
|
||||
{
|
||||
super(mTab);
|
||||
log.info(mTab.toString());
|
||||
}
|
||||
|
||||
public boolean dynInit() throws Exception
|
||||
{
|
||||
log.config("");
|
||||
setTitle(Msg.getElement(Env.getCtx(), "C_BankStatement_ID") + " .. " + Msg.translate(Env.getCtx(), "X_CreateFromBatch"));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
protected Vector<Vector<Object>> getBankAccountData(Object BankAccount, Object BPartner, String DocumentNo,
|
||||
Object DateFrom, Object DateTo, Object AmtFrom, Object AmtTo, Object DocType, Object TenderType, String AuthCode)
|
||||
{
|
||||
log.config ("C_BankAccount_ID=" + BankAccount);
|
||||
|
||||
Vector<Vector<Object>> data = new Vector<Vector<Object>>();
|
||||
StringBuilder sql = new StringBuilder();
|
||||
sql.append("SELECT py.X_DepositBatch_ID, db.DocumentNo, db.DateDeposit, db.C_BankAccount_ID, ba.AccountNo,");
|
||||
sql.append("SUM(currencyConvert(p.PayAmt,p.C_Currency_ID,ba.C_Currency_ID,?,null,p.AD_Client_ID,p.AD_Org_ID)) AS amount,");
|
||||
sql.append("SUM(p.PayAmt) AS amountoriginal");
|
||||
sql.append(" FROM C_BankAccount ba");
|
||||
sql.append(" INNER JOIN C_Payment_v p ON (p.C_BankAccount_ID=ba.C_BankAccount_ID)");
|
||||
sql.append(" INNER JOIN C_Currency c ON (p.C_Currency_ID=c.C_Currency_ID)");
|
||||
sql.append(" INNER JOIN C_Payment py ON (py.C_Payment_ID=p.C_Payment_ID)");
|
||||
sql.append(" INNER JOIN X_DepositBatch db ON (py.X_DepositBatch_ID = db.X_DepositBatch_ID) ");
|
||||
sql.append(getSQLWhere(BPartner, DocumentNo, DateFrom, DateTo, AmtFrom, AmtTo, DocType, TenderType, AuthCode));
|
||||
|
||||
sql.append(" AND p.IsReceipt = 'Y'");
|
||||
sql.append(" AND py.X_DepositBatch_ID <> 0");
|
||||
sql.append(" AND db.Processed = 'Y'");
|
||||
|
||||
sql.append(" GROUP BY py.X_DepositBatch_ID,db.DocumentNo,db.DateDeposit, db.C_BankAccount_ID,ba.AccountNo");
|
||||
|
||||
PreparedStatement pstmt = null;
|
||||
ResultSet rs = null;
|
||||
try
|
||||
{
|
||||
pstmt = DB.prepareStatement(sql.toString(), null);
|
||||
setParameters(pstmt, BankAccount, BPartner, DocumentNo, DateFrom, DateTo, AmtFrom, AmtTo, DocType, TenderType, AuthCode);
|
||||
rs = pstmt.executeQuery();
|
||||
while(rs.next())
|
||||
{
|
||||
Vector<Object> line = new Vector<Object>(5);
|
||||
line.add(new Boolean(false)); // 0-Selection
|
||||
line.add(rs.getTimestamp(3)); // 1-DateDeposit
|
||||
KeyNamePair pp = new KeyNamePair(rs.getInt(1), rs.getString(2));
|
||||
line.add(pp); // 2-X_DepositBatch
|
||||
line.add(rs.getBigDecimal(7)); // 3-PayAmt
|
||||
line.add(rs.getBigDecimal(6)); // 4-Conv Amt
|
||||
pp = new KeyNamePair(rs.getInt(4), rs.getString(5));
|
||||
line.add(pp); // 5-Bank Account
|
||||
data.add(line);
|
||||
}
|
||||
}
|
||||
catch(SQLException e)
|
||||
{
|
||||
log.log(Level.SEVERE, sql.toString(), e);
|
||||
}
|
||||
finally
|
||||
{
|
||||
DB.close(rs, pstmt);
|
||||
rs = null; pstmt = null;
|
||||
}
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
protected void configureMiniTable (IMiniTable miniTable)
|
||||
{
|
||||
miniTable.setColumnClass(0, Boolean.class, false); // 0-Selection
|
||||
miniTable.setColumnClass(1, Timestamp.class, true); // 1-TrxDate
|
||||
miniTable.setColumnClass(2, String.class, true); // 2-DepositBatch
|
||||
miniTable.setColumnClass(3, BigDecimal.class, true); // 3-Amount
|
||||
miniTable.setColumnClass(4, BigDecimal.class, true); // 4-ConvAmount
|
||||
miniTable.setColumnClass(5, String.class, true); // 5-BankAccount
|
||||
// Table UI
|
||||
miniTable.autoSize();
|
||||
}
|
||||
|
||||
public boolean save(IMiniTable miniTable, String trxName)
|
||||
{
|
||||
// fixed values
|
||||
int C_BankStatement_ID = ((Integer)getGridTab().getValue("C_BankStatement_ID")).intValue();
|
||||
MBankStatement bs = new MBankStatement (Env.getCtx(), C_BankStatement_ID, null);
|
||||
log.config(bs.toString());
|
||||
|
||||
StringBuilder sql = new StringBuilder();
|
||||
sql.append("SELECT p.DateTrx,p.C_Payment_ID,p.DocumentNo, p.C_Currency_ID,c.ISO_Code, p.PayAmt,");
|
||||
sql.append("currencyConvert(p.PayAmt,p.C_Currency_ID,ba.C_Currency_ID,?,null,p.AD_Client_ID,p.AD_Org_ID), bp.Name ");
|
||||
sql.append(" FROM C_BankAccount ba");
|
||||
sql.append(" INNER JOIN C_Payment_v p ON (p.C_BankAccount_ID=ba.C_BankAccount_ID)");
|
||||
sql.append(" INNER JOIN C_Currency c ON (p.C_Currency_ID=c.C_Currency_ID)");
|
||||
sql.append(" INNER JOIN C_Payment py ON (py.C_Payment_ID=p.C_Payment_ID)");
|
||||
sql.append(" INNER JOIN X_DepositBatch db ON (py.X_DepositBatch_ID = db.X_DepositBatch_ID)");
|
||||
sql.append(" LEFT OUTER JOIN C_BPartner bp ON (p.C_BPartner_ID=bp.C_BPartner_ID)");
|
||||
sql.append(" WHERE p.Processed='Y' AND p.IsReconciled='N'");
|
||||
sql.append(" AND p.IsReceipt = 'Y'");
|
||||
sql.append(" AND py.X_DepositBatch_ID = ?");
|
||||
sql.append(" AND p.DocStatus IN ('CO','CL','RE','VO') AND p.PayAmt<>0");
|
||||
sql.append(" AND p.C_BankAccount_ID=?");
|
||||
sql.append(" AND NOT EXISTS (SELECT * FROM C_BankStatementLine l WHERE p.C_Payment_ID=l.C_Payment_ID AND l.StmtAmt <> 0)");
|
||||
|
||||
Timestamp ts = (Timestamp) getGridTab().getValue("StatementDate");
|
||||
if(ts == null)
|
||||
ts = new Timestamp(System.currentTimeMillis());
|
||||
|
||||
// Lines
|
||||
for(int i = 0; i < miniTable.getRowCount(); i++)
|
||||
{
|
||||
if(((Boolean) miniTable.getValueAt(i, 0)).booleanValue())
|
||||
{
|
||||
Timestamp trxDate = (Timestamp) miniTable.getValueAt(i, 1); // 1-DateTrx
|
||||
KeyNamePair pp = (KeyNamePair) miniTable.getValueAt(i, 2); // 2-X_DepositBatch_ID
|
||||
int X_DepositBatch_ID = pp.getKey();
|
||||
|
||||
pp = (KeyNamePair) miniTable.getValueAt(i, 5); // 5- C_BankAccount_ID
|
||||
int C_BankAccount_ID = pp.getKey();
|
||||
|
||||
log.fine("Deposit Batch Date=" + trxDate + ", Batch=" + X_DepositBatch_ID
|
||||
+" , Bank Account" + C_BankAccount_ID);
|
||||
|
||||
PreparedStatement pstmt = null;
|
||||
ResultSet rs = null;
|
||||
try
|
||||
{
|
||||
pstmt = DB.prepareStatement(sql.toString(), null);
|
||||
pstmt.setTimestamp(1, ts);
|
||||
pstmt.setInt(2, X_DepositBatch_ID);
|
||||
pstmt.setInt(3, C_BankAccount_ID);
|
||||
rs = pstmt.executeQuery();
|
||||
while(rs.next())
|
||||
{
|
||||
int C_Payment_ID = rs.getInt(2);
|
||||
int C_Currency_ID = rs.getInt(4);
|
||||
BigDecimal TrxAmt = rs.getBigDecimal(6); // PayAmt
|
||||
|
||||
log.fine("Line Date=" + trxDate + ", Payment=" + C_Payment_ID + ", Currency=" + C_Currency_ID + ", Amt=" + TrxAmt);
|
||||
//
|
||||
MBankStatementLine bsl = new MBankStatementLine (bs);
|
||||
bsl.setStatementLineDate(trxDate);
|
||||
bsl.setPayment(new MPayment(Env.getCtx(), C_Payment_ID, null));
|
||||
if (!bsl.save())
|
||||
log.log(Level.SEVERE, "Line not created #" + i);
|
||||
|
||||
}
|
||||
}
|
||||
catch(SQLException e)
|
||||
{
|
||||
log.log(Level.SEVERE, sql.toString(), e);
|
||||
}
|
||||
finally
|
||||
{
|
||||
DB.close(rs, pstmt);
|
||||
rs = null; pstmt = null;
|
||||
}
|
||||
} // if selected
|
||||
} // for all rows
|
||||
return true;
|
||||
}
|
||||
|
||||
protected Vector<String> getOISColumnNames()
|
||||
{
|
||||
// Header Info
|
||||
Vector<String> columnNames = new Vector<String>(6);
|
||||
columnNames.add(Msg.getMsg(Env.getCtx(), "Select"));
|
||||
columnNames.add(Msg.translate(Env.getCtx(), "Date"));
|
||||
columnNames.add(Msg.getElement(Env.getCtx(), "X_DepositBatch_ID"));
|
||||
columnNames.add(Msg.translate(Env.getCtx(), "Amount"));
|
||||
columnNames.add(Msg.translate(Env.getCtx(), "ConvertedAmount"));
|
||||
columnNames.add(Msg.translate(Env.getCtx(), "C_BankAccount_ID"));
|
||||
|
||||
return columnNames;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,169 @@
|
|||
/******************************************************************************
|
||||
* Copyright (C) 2013 Elaine Tan *
|
||||
* Copyright (C) 2013 Trek Global
|
||||
* This program is free software; you can redistribute it and/or modify it *
|
||||
* under the terms version 2 of the GNU General Public License as published *
|
||||
* by the Free Software Foundation. This program is distributed in the hope *
|
||||
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||
* See the GNU General Public License for more details. *
|
||||
* You should have received a copy of the GNU General Public License along *
|
||||
* with this program; if not, write to the Free Software Foundation, Inc., *
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
||||
*****************************************************************************/
|
||||
package org.compiere.grid;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.PreparedStatement;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Vector;
|
||||
import java.util.logging.Level;
|
||||
|
||||
import org.compiere.minigrid.IMiniTable;
|
||||
import org.compiere.model.GridTab;
|
||||
import org.compiere.model.MDepositBatch;
|
||||
import org.compiere.model.MDepositBatchLine;
|
||||
import org.compiere.model.MPayment;
|
||||
import org.compiere.util.DB;
|
||||
import org.compiere.util.Env;
|
||||
import org.compiere.util.KeyNamePair;
|
||||
import org.compiere.util.Msg;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Elaine
|
||||
*
|
||||
*/
|
||||
public abstract class CreateFromDepositBatch extends CreateFromBatch
|
||||
{
|
||||
public CreateFromDepositBatch(GridTab mTab)
|
||||
{
|
||||
super(mTab);
|
||||
log.info(mTab.toString());
|
||||
}
|
||||
|
||||
public boolean dynInit() throws Exception
|
||||
{
|
||||
log.config("");
|
||||
setTitle(Msg.getElement(Env.getCtx(), "X_DepositBatch_ID") + " .. " + Msg.translate(Env.getCtx(), "CreateFrom"));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
protected Vector<Vector<Object>> getBankAccountData(Object BankAccount, Object BPartner, String DocumentNo,
|
||||
Object DateFrom, Object DateTo, Object AmtFrom, Object AmtTo, Object DocType, Object TenderType, String AuthCode)
|
||||
{
|
||||
Vector<Vector<Object>> data = new Vector<Vector<Object>>();
|
||||
|
||||
StringBuilder sql = new StringBuilder();
|
||||
sql.append("SELECT p.DateTrx,p.C_Payment_ID,p.DocumentNo, p.C_Currency_ID,c.ISO_Code, p.PayAmt,");
|
||||
sql.append("currencyConvert(p.PayAmt,p.C_Currency_ID,ba.C_Currency_ID,?,null,p.AD_Client_ID,p.AD_Org_ID), bp.Name ");
|
||||
sql.append("FROM C_BankAccount ba");
|
||||
sql.append(" INNER JOIN C_Payment_v p ON (p.C_BankAccount_ID=ba.C_BankAccount_ID)");
|
||||
sql.append(" INNER JOIN C_Currency c ON (p.C_Currency_ID=c.C_Currency_ID)");
|
||||
sql.append(" INNER JOIN C_Payment py ON (py.C_Payment_ID=p.C_Payment_ID)");
|
||||
sql.append(" LEFT OUTER JOIN C_BPartner bp ON (p.C_BPartner_ID=bp.C_BPartner_ID) ");
|
||||
sql.append(getSQLWhere(BPartner, DocumentNo, DateFrom, DateTo, AmtFrom, AmtTo, DocType, TenderType, AuthCode));
|
||||
|
||||
sql.append(" AND p.IsReceipt = 'Y'");
|
||||
sql.append(" AND (py.X_DepositBatch_ID = 0 OR py.X_DepositBatch_ID IS NULL)");
|
||||
|
||||
sql.append(" ORDER BY p.DateTrx");
|
||||
|
||||
PreparedStatement pstmt = null;
|
||||
ResultSet rs = null;
|
||||
try
|
||||
{
|
||||
pstmt = DB.prepareStatement(sql.toString(), null);
|
||||
setParameters(pstmt, BankAccount, BPartner, DocumentNo, DateFrom, DateTo, AmtFrom, AmtTo, DocType, TenderType, AuthCode);
|
||||
rs = pstmt.executeQuery();
|
||||
while(rs.next())
|
||||
{
|
||||
Vector<Object> line = new Vector<Object>(6);
|
||||
line.add(new Boolean(false)); // 0-Selection
|
||||
line.add(rs.getTimestamp(1)); // 1-DateTrx
|
||||
KeyNamePair pp = new KeyNamePair(rs.getInt(2), rs.getString(3));
|
||||
line.add(pp); // 2-C_Payment_ID
|
||||
pp = new KeyNamePair(rs.getInt(4), rs.getString(5));
|
||||
line.add(pp); // 3-Currency
|
||||
line.add(rs.getBigDecimal(6)); // 4-PayAmt
|
||||
line.add(rs.getBigDecimal(7)); // 5-Conv Amt
|
||||
line.add(rs.getString(8)); // 6-BParner
|
||||
data.add(line);
|
||||
}
|
||||
}
|
||||
catch(SQLException e)
|
||||
{
|
||||
log.log(Level.SEVERE, sql.toString(), e);
|
||||
}
|
||||
finally
|
||||
{
|
||||
DB.close(rs, pstmt);
|
||||
rs = null; pstmt = null;
|
||||
}
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
protected void configureMiniTable(IMiniTable miniTable)
|
||||
{
|
||||
miniTable.setColumnClass(0, Boolean.class, false); // 0-Selection
|
||||
miniTable.setColumnClass(1, Timestamp.class, true); // 1-TrxDate
|
||||
miniTable.setColumnClass(2, String.class, true); // 2-Payment
|
||||
miniTable.setColumnClass(3, String.class, true); // 3-Currency
|
||||
miniTable.setColumnClass(4, BigDecimal.class, true); // 4-Amount
|
||||
miniTable.setColumnClass(5, BigDecimal.class, true); // 5-ConvAmount
|
||||
miniTable.setColumnClass(6, String.class, true); // 6-BPartner
|
||||
// Table UI
|
||||
miniTable.autoSize();
|
||||
}
|
||||
|
||||
public boolean save(IMiniTable miniTable, String trxName)
|
||||
{
|
||||
// fixed values
|
||||
int X_DepositBatch_ID = ((Integer) getGridTab().getValue("X_DepositBatch_ID")).intValue();
|
||||
MDepositBatch db = new MDepositBatch(Env.getCtx(), X_DepositBatch_ID, null);
|
||||
log.config(db.toString());
|
||||
|
||||
// Lines
|
||||
for(int i = 0; i < miniTable.getRowCount(); i++)
|
||||
{
|
||||
if(((Boolean) miniTable.getValueAt(i, 0)).booleanValue())
|
||||
{
|
||||
Timestamp trxDate = (Timestamp) miniTable.getValueAt(i, 1); // 1-DateTrx
|
||||
KeyNamePair pp = (KeyNamePair) miniTable.getValueAt(i, 2); // 2-C_Payment_ID
|
||||
int C_Payment_ID = pp.getKey();
|
||||
pp = (KeyNamePair) miniTable.getValueAt(i, 3); // 3-Currency
|
||||
int C_Currency_ID = pp.getKey();
|
||||
BigDecimal TrxAmt = (BigDecimal) miniTable.getValueAt(i, 4); // 4-PayAmt
|
||||
// BigDecimal StmtAmt = (BigDecimal) miniTable.getValueAt(i, 5);// 5-Conv Amt
|
||||
//
|
||||
log.fine("Line Date=" + trxDate + ", Payment=" + C_Payment_ID + ", Currency=" + C_Currency_ID + ", Amt=" + TrxAmt);
|
||||
//
|
||||
MDepositBatchLine dbl = new MDepositBatchLine(db);
|
||||
// dbl.setStatementLineDate(trxDate);
|
||||
dbl.setPayment(new MPayment(Env.getCtx(), C_Payment_ID, null));
|
||||
if(!dbl.save())
|
||||
log.log(Level.SEVERE, "Line not created #" + i);
|
||||
} // if selected
|
||||
} // for all rows
|
||||
return true;
|
||||
}
|
||||
|
||||
protected Vector<String> getOISColumnNames()
|
||||
{
|
||||
// Header Info
|
||||
Vector<String> columnNames = new Vector<String>(7);
|
||||
columnNames.add(Msg.getMsg(Env.getCtx(), "Select"));
|
||||
columnNames.add(Msg.translate(Env.getCtx(), "Date"));
|
||||
columnNames.add(Msg.getElement(Env.getCtx(), "C_Payment_ID"));
|
||||
columnNames.add(Msg.translate(Env.getCtx(), "C_Currency_ID"));
|
||||
columnNames.add(Msg.translate(Env.getCtx(), "Amount"));
|
||||
columnNames.add(Msg.translate(Env.getCtx(), "ConvertedAmount"));
|
||||
columnNames.add(Msg.translate(Env.getCtx(), "C_BPartner_ID"));
|
||||
|
||||
return columnNames;
|
||||
}
|
||||
}
|
|
@ -21,6 +21,7 @@ import java.util.ArrayList;
|
|||
import java.util.Vector;
|
||||
import java.util.logging.Level;
|
||||
|
||||
import org.compiere.apps.IStatusBar;
|
||||
import org.compiere.minigrid.IMiniTable;
|
||||
import org.compiere.model.GridTab;
|
||||
import org.compiere.model.MCurrency;
|
||||
|
@ -327,7 +328,7 @@ public abstract class CreateFromInvoice extends CreateFrom
|
|||
/**
|
||||
* List number of rows selected
|
||||
*/
|
||||
public void info()
|
||||
public void info(IMiniTable miniTable, IStatusBar statusBar)
|
||||
{
|
||||
|
||||
} // infoInvoice
|
||||
|
|
|
@ -21,6 +21,7 @@ import java.util.HashMap;
|
|||
import java.util.Vector;
|
||||
import java.util.logging.Level;
|
||||
|
||||
import org.compiere.apps.IStatusBar;
|
||||
import org.compiere.minigrid.IMiniTable;
|
||||
import org.compiere.model.GridTab;
|
||||
import org.compiere.model.MInOut;
|
||||
|
@ -94,7 +95,7 @@ public abstract class CreateFromPackageShipment extends CreateFrom
|
|||
return data;
|
||||
}
|
||||
|
||||
public void info()
|
||||
public void info(IMiniTable miniTable, IStatusBar statusBar)
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
@ -20,6 +20,7 @@ import java.sql.SQLException;
|
|||
import java.util.Vector;
|
||||
import java.util.logging.Level;
|
||||
|
||||
import org.compiere.apps.IStatusBar;
|
||||
import org.compiere.minigrid.IMiniTable;
|
||||
import org.compiere.model.GridTab;
|
||||
import org.compiere.model.MRMA;
|
||||
|
@ -122,7 +123,7 @@ public abstract class CreateFromRMA extends CreateFrom {
|
|||
}
|
||||
|
||||
@Override
|
||||
public void info()
|
||||
public void info(IMiniTable miniTable, IStatusBar statusBar)
|
||||
{
|
||||
|
||||
}
|
||||
|
|
|
@ -21,6 +21,8 @@ import java.sql.SQLException;
|
|||
import java.util.ArrayList;
|
||||
import java.util.Vector;
|
||||
import java.util.logging.Level;
|
||||
|
||||
import org.compiere.apps.IStatusBar;
|
||||
import org.compiere.minigrid.IMiniTable;
|
||||
import org.compiere.model.GridTab;
|
||||
import org.compiere.model.MInOut;
|
||||
|
@ -501,7 +503,7 @@ public abstract class CreateFromShipment extends CreateFrom
|
|||
/**
|
||||
* List number of rows selected
|
||||
*/
|
||||
public void info()
|
||||
public void info(IMiniTable miniTable, IStatusBar statusBar)
|
||||
{
|
||||
|
||||
} // infoInvoice
|
||||
|
|
|
@ -18,9 +18,11 @@ import java.sql.PreparedStatement;
|
|||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
import java.sql.Timestamp;
|
||||
import java.text.DecimalFormat;
|
||||
import java.util.Vector;
|
||||
import java.util.logging.Level;
|
||||
|
||||
import org.compiere.apps.IStatusBar;
|
||||
import org.compiere.minigrid.IMiniTable;
|
||||
import org.compiere.model.GridTab;
|
||||
import org.compiere.model.MBankAccount;
|
||||
|
@ -28,6 +30,7 @@ import org.compiere.model.MBankStatement;
|
|||
import org.compiere.model.MBankStatementLine;
|
||||
import org.compiere.model.MPayment;
|
||||
import org.compiere.util.DB;
|
||||
import org.compiere.util.DisplayType;
|
||||
import org.compiere.util.Env;
|
||||
import org.compiere.util.KeyNamePair;
|
||||
import org.compiere.util.Msg;
|
||||
|
@ -257,9 +260,22 @@ public abstract class CreateFromStatement extends CreateFrom
|
|||
return data;
|
||||
}
|
||||
|
||||
public void info()
|
||||
public void info(IMiniTable miniTable, IStatusBar statusBar)
|
||||
{
|
||||
|
||||
DecimalFormat format = DisplayType.getNumberFormat(DisplayType.Amount);
|
||||
|
||||
BigDecimal total = new BigDecimal(0.0);
|
||||
int rows = miniTable.getRowCount();
|
||||
int count = 0;
|
||||
for(int i = 0; i < rows; i++)
|
||||
{
|
||||
if(((Boolean) miniTable.getValueAt(i, 0)).booleanValue())
|
||||
{
|
||||
total = total.add((BigDecimal) miniTable.getValueAt(i, 4));
|
||||
count++;
|
||||
}
|
||||
}
|
||||
statusBar.setStatusLine(String.valueOf(count) + " - " + Msg.getMsg(Env.getCtx(), "Sum") + " " + format.format(total));
|
||||
}
|
||||
|
||||
protected void configureMiniTable (IMiniTable miniTable)
|
||||
|
|
|
@ -0,0 +1,169 @@
|
|||
/******************************************************************************
|
||||
* Copyright (C) 2013 Elaine Tan *
|
||||
* Copyright (C) 2013 Trek Global
|
||||
* This program is free software; you can redistribute it and/or modify it *
|
||||
* under the terms version 2 of the GNU General Public License as published *
|
||||
* by the Free Software Foundation. This program is distributed in the hope *
|
||||
* that it will be useful, but WITHOUT ANY WARRANTY; without even the implied *
|
||||
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
||||
* See the GNU General Public License for more details. *
|
||||
* You should have received a copy of the GNU General Public License along *
|
||||
* with this program; if not, write to the Free Software Foundation, Inc., *
|
||||
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. *
|
||||
*****************************************************************************/
|
||||
package org.compiere.grid;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.sql.PreparedStatement;
|
||||
import java.sql.ResultSet;
|
||||
import java.sql.SQLException;
|
||||
import java.sql.Timestamp;
|
||||
import java.util.Vector;
|
||||
import java.util.logging.Level;
|
||||
|
||||
import org.compiere.minigrid.IMiniTable;
|
||||
import org.compiere.model.GridTab;
|
||||
import org.compiere.model.MBankStatement;
|
||||
import org.compiere.model.MBankStatementLine;
|
||||
import org.compiere.model.MPayment;
|
||||
import org.compiere.util.DB;
|
||||
import org.compiere.util.Env;
|
||||
import org.compiere.util.KeyNamePair;
|
||||
import org.compiere.util.Msg;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author Elaine
|
||||
*
|
||||
*/
|
||||
public abstract class CreateFromStatementBatch extends CreateFromBatch
|
||||
{
|
||||
public CreateFromStatementBatch(GridTab mTab)
|
||||
{
|
||||
super(mTab);
|
||||
log.info(mTab.toString());
|
||||
}
|
||||
|
||||
public boolean dynInit() throws Exception
|
||||
{
|
||||
log.config("");
|
||||
setTitle(Msg.getElement(Env.getCtx(), "C_BankStatement_ID") + " .. " + Msg.translate(Env.getCtx(), "CreateFrom"));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
protected Vector<Vector<Object>> getBankAccountData(Object BankAccount, Object BPartner, String DocumentNo,
|
||||
Object DateFrom, Object DateTo, Object AmtFrom, Object AmtTo, Object DocType, Object TenderType, String AuthCode)
|
||||
{
|
||||
Vector<Vector<Object>> data = new Vector<Vector<Object>>();
|
||||
|
||||
StringBuilder sql = new StringBuilder();
|
||||
sql.append("SELECT p.DateTrx,p.C_Payment_ID,p.DocumentNo, p.C_Currency_ID,c.ISO_Code, p.PayAmt,");
|
||||
sql.append("currencyConvert(p.PayAmt,p.C_Currency_ID,ba.C_Currency_ID,?,null,p.AD_Client_ID,p.AD_Org_ID), bp.Name ");
|
||||
sql.append("FROM C_BankAccount ba");
|
||||
sql.append(" INNER JOIN C_Payment_v p ON (p.C_BankAccount_ID=ba.C_BankAccount_ID)");
|
||||
sql.append(" INNER JOIN C_Currency c ON (p.C_Currency_ID=c.C_Currency_ID)");
|
||||
sql.append(" LEFT OUTER JOIN C_BPartner bp ON (p.C_BPartner_ID=bp.C_BPartner_ID) ");
|
||||
sql.append(getSQLWhere(BPartner, DocumentNo, DateFrom, DateTo, AmtFrom, AmtTo, DocType, TenderType, AuthCode));
|
||||
sql.append(" ORDER BY p.DateTrx");
|
||||
|
||||
PreparedStatement pstmt = null;
|
||||
ResultSet rs = null;
|
||||
try
|
||||
{
|
||||
pstmt = DB.prepareStatement(sql.toString(), null);
|
||||
setParameters(pstmt, BankAccount, BPartner, DocumentNo, DateFrom, DateTo, AmtFrom, AmtTo, DocType, TenderType, AuthCode);
|
||||
rs = pstmt.executeQuery();
|
||||
while(rs.next())
|
||||
{
|
||||
Vector<Object> line = new Vector<Object>(6);
|
||||
line.add(new Boolean(false)); // 0-Selection
|
||||
line.add(rs.getTimestamp(1)); // 1-DateTrx
|
||||
KeyNamePair pp = new KeyNamePair(rs.getInt(2), rs.getString(3));
|
||||
line.add(pp); // 2-C_Payment_ID
|
||||
pp = new KeyNamePair(rs.getInt(4), rs.getString(5));
|
||||
line.add(pp); // 3-Currency
|
||||
line.add(rs.getBigDecimal(6)); // 4-PayAmt
|
||||
line.add(rs.getBigDecimal(7)); // 5-Conv Amt
|
||||
line.add(rs.getString(8)); // 6-BParner
|
||||
data.add(line);
|
||||
}
|
||||
}
|
||||
catch (SQLException e)
|
||||
{
|
||||
log.log(Level.SEVERE, sql.toString(), e);
|
||||
}
|
||||
finally
|
||||
{
|
||||
DB.close(rs, pstmt);
|
||||
rs = null; pstmt = null;
|
||||
}
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
protected void configureMiniTable(IMiniTable miniTable)
|
||||
{
|
||||
miniTable.setColumnClass(0, Boolean.class, false); // 0-Selection
|
||||
miniTable.setColumnClass(1, Timestamp.class, false); // 1-TrxDate / nmicoud - idempiere 240 Let user choose the 'Statement Line Date'
|
||||
miniTable.setColumnClass(2, String.class, true); // 2-Payment
|
||||
miniTable.setColumnClass(3, String.class, true); // 3-Currency
|
||||
miniTable.setColumnClass(4, BigDecimal.class, true); // 4-Amount
|
||||
miniTable.setColumnClass(5, BigDecimal.class, true); // 5-ConvAmount
|
||||
miniTable.setColumnClass(6, String.class, true); // 6-BPartner
|
||||
// Table UI
|
||||
miniTable.autoSize();
|
||||
}
|
||||
|
||||
public boolean save(IMiniTable miniTable, String trxName)
|
||||
{
|
||||
// fixed values
|
||||
int C_BankStatement_ID = ((Integer) getGridTab().getValue("C_BankStatement_ID")).intValue();
|
||||
MBankStatement bs = new MBankStatement (Env.getCtx(), C_BankStatement_ID, trxName);
|
||||
log.config(bs.toString());
|
||||
|
||||
// Lines
|
||||
for(int i = 0; i < miniTable.getRowCount(); i++)
|
||||
{
|
||||
if(((Boolean) miniTable.getValueAt(i, 0)).booleanValue())
|
||||
{
|
||||
Timestamp trxDate = (Timestamp) miniTable.getValueAt(i, 1); // 1-DateTrx
|
||||
KeyNamePair pp = (KeyNamePair) miniTable.getValueAt(i, 2); // 2-C_Payment_ID
|
||||
int C_Payment_ID = pp.getKey();
|
||||
pp = (KeyNamePair) miniTable.getValueAt(i, 3); // 3-Currency
|
||||
int C_Currency_ID = pp.getKey();
|
||||
BigDecimal TrxAmt = (BigDecimal) miniTable.getValueAt(i, 5); // 5- Conv Amt
|
||||
|
||||
log.fine("Line Date=" + trxDate
|
||||
+ ", Payment=" + C_Payment_ID + ", Currency=" + C_Currency_ID + ", Amt=" + TrxAmt);
|
||||
//
|
||||
MBankStatementLine bsl = new MBankStatementLine (bs);
|
||||
bsl.setStatementLineDate(trxDate);
|
||||
bsl.setPayment(new MPayment(Env.getCtx(), C_Payment_ID, trxName));
|
||||
|
||||
bsl.setTrxAmt(TrxAmt);
|
||||
bsl.setStmtAmt(TrxAmt);
|
||||
bsl.setC_Currency_ID(C_Currency_ID);
|
||||
|
||||
if (!bsl.save())
|
||||
log.log(Level.SEVERE, "Line not created #" + i);
|
||||
} // if selected
|
||||
} // for all rows
|
||||
return true;
|
||||
} // save
|
||||
|
||||
protected Vector<String> getOISColumnNames()
|
||||
{
|
||||
// Header Info
|
||||
Vector<String> columnNames = new Vector<String>(7);
|
||||
columnNames.add(Msg.getMsg(Env.getCtx(), "Select"));
|
||||
columnNames.add(Msg.translate(Env.getCtx(), "Date"));
|
||||
columnNames.add(Msg.getElement(Env.getCtx(), "C_Payment_ID"));
|
||||
columnNames.add(Msg.translate(Env.getCtx(), "C_Currency_ID"));
|
||||
columnNames.add(Msg.translate(Env.getCtx(), "Amount"));
|
||||
columnNames.add(Msg.translate(Env.getCtx(), "ConvertedAmount"));
|
||||
columnNames.add(Msg.translate(Env.getCtx(), "C_BPartner_ID"));
|
||||
|
||||
return columnNames;
|
||||
}
|
||||
}
|
|
@ -22,6 +22,6 @@ import org.compiere.model.GridTab;
|
|||
*/
|
||||
public interface ICreateFromFactory {
|
||||
|
||||
public ICreateFrom create(GridTab mTab);
|
||||
public ICreateFrom create(GridTab mTab, String columnName);
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue