diff --git a/Bizgaze.CRM.Companies.dll b/Bizgaze.CRM.Companies.dll index 298a1d9..045b6d8 100755 Binary files a/Bizgaze.CRM.Companies.dll and b/Bizgaze.CRM.Companies.dll differ diff --git a/Bizgaze.CRM.Companies.pdb b/Bizgaze.CRM.Companies.pdb index b17585f..e10d571 100755 Binary files a/Bizgaze.CRM.Companies.pdb and b/Bizgaze.CRM.Companies.pdb differ diff --git a/Bizgaze.CRM.Contacts.dll b/Bizgaze.CRM.Contacts.dll index 5a1716b..bff3aae 100644 Binary files a/Bizgaze.CRM.Contacts.dll and b/Bizgaze.CRM.Contacts.dll differ diff --git a/Bizgaze.CRM.Contacts.pdb b/Bizgaze.CRM.Contacts.pdb index a6450e8..e887c15 100644 Binary files a/Bizgaze.CRM.Contacts.pdb and b/Bizgaze.CRM.Contacts.pdb differ diff --git a/Bizgaze.CRM.Routes.dll b/Bizgaze.CRM.Routes.dll index 9154fd0..3704975 100755 Binary files a/Bizgaze.CRM.Routes.dll and b/Bizgaze.CRM.Routes.dll differ diff --git a/Bizgaze.CRM.Routes.pdb b/Bizgaze.CRM.Routes.pdb index ecbc6e2..328e1cf 100755 Binary files a/Bizgaze.CRM.Routes.pdb and b/Bizgaze.CRM.Routes.pdb differ diff --git a/Bizgaze.CRM.dll b/Bizgaze.CRM.dll index 4a4f87f..4bc0b19 100755 Binary files a/Bizgaze.CRM.dll and b/Bizgaze.CRM.dll differ diff --git a/Bizgaze.CRM.pdb b/Bizgaze.CRM.pdb index f9341ab..394f5c9 100755 Binary files a/Bizgaze.CRM.pdb and b/Bizgaze.CRM.pdb differ diff --git a/Bizgaze.Communications.dll b/Bizgaze.Communications.dll index 2cccb8f..83a7fda 100755 Binary files a/Bizgaze.Communications.dll and b/Bizgaze.Communications.dll differ diff --git a/Bizgaze.Communications.pdb b/Bizgaze.Communications.pdb index 1130855..5630580 100755 Binary files a/Bizgaze.Communications.pdb and b/Bizgaze.Communications.pdb differ diff --git a/Bizgaze.HRMS.Payroll.dll b/Bizgaze.HRMS.Payroll.dll index b9f7bea..b6b9225 100644 Binary files a/Bizgaze.HRMS.Payroll.dll and b/Bizgaze.HRMS.Payroll.dll differ diff --git a/Bizgaze.HRMS.Payroll.pdb b/Bizgaze.HRMS.Payroll.pdb index 34e5d12..6da7c01 100644 Binary files a/Bizgaze.HRMS.Payroll.pdb and b/Bizgaze.HRMS.Payroll.pdb differ diff --git a/Bizgaze.HRMS.dll b/Bizgaze.HRMS.dll index c6c1f65..1cb6946 100644 Binary files a/Bizgaze.HRMS.dll and b/Bizgaze.HRMS.dll differ diff --git a/Bizgaze.HRMS.pdb b/Bizgaze.HRMS.pdb index 80bf271..3c75400 100644 Binary files a/Bizgaze.HRMS.pdb and b/Bizgaze.HRMS.pdb differ diff --git a/Bizgaze.Integration.Busy.dll b/Bizgaze.Integration.Busy.dll index 73938da..3558c40 100755 Binary files a/Bizgaze.Integration.Busy.dll and b/Bizgaze.Integration.Busy.dll differ diff --git a/Bizgaze.Integration.Busy.pdb b/Bizgaze.Integration.Busy.pdb index 6f81bf1..516d72f 100755 Binary files a/Bizgaze.Integration.Busy.pdb and b/Bizgaze.Integration.Busy.pdb differ diff --git a/Bizgaze.Integration.Tally.dll b/Bizgaze.Integration.Tally.dll index 3056720..d504eff 100755 Binary files a/Bizgaze.Integration.Tally.dll and b/Bizgaze.Integration.Tally.dll differ diff --git a/Bizgaze.Integration.Tally.pdb b/Bizgaze.Integration.Tally.pdb index bde73e0..5dcb872 100755 Binary files a/Bizgaze.Integration.Tally.pdb and b/Bizgaze.Integration.Tally.pdb differ diff --git a/Bizgaze.Integrations.GST.dll b/Bizgaze.Integrations.GST.dll index daeed62..5aa37a5 100755 Binary files a/Bizgaze.Integrations.GST.dll and b/Bizgaze.Integrations.GST.dll differ diff --git a/Bizgaze.Integrations.GST.pdb b/Bizgaze.Integrations.GST.pdb index 008f90c..04077f4 100755 Binary files a/Bizgaze.Integrations.GST.pdb and b/Bizgaze.Integrations.GST.pdb differ diff --git a/Bizgaze.PM.dll b/Bizgaze.PM.dll index 7c2e1cd..aeb059c 100644 Binary files a/Bizgaze.PM.dll and b/Bizgaze.PM.dll differ diff --git a/Bizgaze.PM.pdb b/Bizgaze.PM.pdb index 61b145f..3832602 100644 Binary files a/Bizgaze.PM.pdb and b/Bizgaze.PM.pdb differ diff --git a/Bizgaze.Paybacks.dll b/Bizgaze.Paybacks.dll index 4dd8271..632152f 100644 Binary files a/Bizgaze.Paybacks.dll and b/Bizgaze.Paybacks.dll differ diff --git a/Bizgaze.Paybacks.pdb b/Bizgaze.Paybacks.pdb index f07a601..d190bce 100644 Binary files a/Bizgaze.Paybacks.pdb and b/Bizgaze.Paybacks.pdb differ diff --git a/Bizgaze.Support.dll b/Bizgaze.Support.dll index cbe7b2c..94bc0a1 100755 Binary files a/Bizgaze.Support.dll and b/Bizgaze.Support.dll differ diff --git a/Bizgaze.Support.pdb b/Bizgaze.Support.pdb index e3b027a..57919a7 100755 Binary files a/Bizgaze.Support.pdb and b/Bizgaze.Support.pdb differ diff --git a/Bizgaze.TM.dll b/Bizgaze.TM.dll index cab69bf..7156d5a 100755 Binary files a/Bizgaze.TM.dll and b/Bizgaze.TM.dll differ diff --git a/Bizgaze.TM.pdb b/Bizgaze.TM.pdb index abf5db5..d93fe44 100755 Binary files a/Bizgaze.TM.pdb and b/Bizgaze.TM.pdb differ diff --git a/Bizgaze.Transact.Accounting.dll b/Bizgaze.Transact.Accounting.dll index 6f1a23f..9ca36e0 100644 Binary files a/Bizgaze.Transact.Accounting.dll and b/Bizgaze.Transact.Accounting.dll differ diff --git a/Bizgaze.Transact.Accounting.pdb b/Bizgaze.Transact.Accounting.pdb index 31704f5..48967be 100644 Binary files a/Bizgaze.Transact.Accounting.pdb and b/Bizgaze.Transact.Accounting.pdb differ diff --git a/Bizgaze.Transact.Assets.dll b/Bizgaze.Transact.Assets.dll index 9078a5b..90fa139 100755 Binary files a/Bizgaze.Transact.Assets.dll and b/Bizgaze.Transact.Assets.dll differ diff --git a/Bizgaze.Transact.Assets.pdb b/Bizgaze.Transact.Assets.pdb index 6b1943f..ef843f6 100755 Binary files a/Bizgaze.Transact.Assets.pdb and b/Bizgaze.Transact.Assets.pdb differ diff --git a/Bizgaze.Transact.Automation.dll b/Bizgaze.Transact.Automation.dll index 81c2374..a38e26f 100644 Binary files a/Bizgaze.Transact.Automation.dll and b/Bizgaze.Transact.Automation.dll differ diff --git a/Bizgaze.Transact.Automation.pdb b/Bizgaze.Transact.Automation.pdb index 869399c..667e445 100644 Binary files a/Bizgaze.Transact.Automation.pdb and b/Bizgaze.Transact.Automation.pdb differ diff --git a/Bizgaze.Transact.Coupons.dll b/Bizgaze.Transact.Coupons.dll index f9ef4c2..4583908 100755 Binary files a/Bizgaze.Transact.Coupons.dll and b/Bizgaze.Transact.Coupons.dll differ diff --git a/Bizgaze.Transact.Coupons.pdb b/Bizgaze.Transact.Coupons.pdb index 3f9fd0d..4a9cfd2 100755 Binary files a/Bizgaze.Transact.Coupons.pdb and b/Bizgaze.Transact.Coupons.pdb differ diff --git a/Bizgaze.Transact.Estimates.dll b/Bizgaze.Transact.Estimates.dll index f7355f8..8af934a 100644 Binary files a/Bizgaze.Transact.Estimates.dll and b/Bizgaze.Transact.Estimates.dll differ diff --git a/Bizgaze.Transact.Estimates.pdb b/Bizgaze.Transact.Estimates.pdb index 04f2be1..b6b7511 100644 Binary files a/Bizgaze.Transact.Estimates.pdb and b/Bizgaze.Transact.Estimates.pdb differ diff --git a/Bizgaze.Transact.Expenses.dll b/Bizgaze.Transact.Expenses.dll index c2f91a9..7626ac8 100755 Binary files a/Bizgaze.Transact.Expenses.dll and b/Bizgaze.Transact.Expenses.dll differ diff --git a/Bizgaze.Transact.Expenses.pdb b/Bizgaze.Transact.Expenses.pdb index 0e92c0a..8323f67 100755 Binary files a/Bizgaze.Transact.Expenses.pdb and b/Bizgaze.Transact.Expenses.pdb differ diff --git a/Bizgaze.Transact.Integrations.dll b/Bizgaze.Transact.Integrations.dll index 5de3c21..f4308a0 100755 Binary files a/Bizgaze.Transact.Integrations.dll and b/Bizgaze.Transact.Integrations.dll differ diff --git a/Bizgaze.Transact.Integrations.pdb b/Bizgaze.Transact.Integrations.pdb index d890561..0096479 100755 Binary files a/Bizgaze.Transact.Integrations.pdb and b/Bizgaze.Transact.Integrations.pdb differ diff --git a/Bizgaze.Transact.Inventory.dll b/Bizgaze.Transact.Inventory.dll index 0f9e10a..6678923 100644 Binary files a/Bizgaze.Transact.Inventory.dll and b/Bizgaze.Transact.Inventory.dll differ diff --git a/Bizgaze.Transact.Inventory.pdb b/Bizgaze.Transact.Inventory.pdb index f1c249b..3f093f5 100644 Binary files a/Bizgaze.Transact.Inventory.pdb and b/Bizgaze.Transact.Inventory.pdb differ diff --git a/Bizgaze.Transact.Invoices.dll b/Bizgaze.Transact.Invoices.dll index 2b3be3f..71bb03c 100755 Binary files a/Bizgaze.Transact.Invoices.dll and b/Bizgaze.Transact.Invoices.dll differ diff --git a/Bizgaze.Transact.Invoices.pdb b/Bizgaze.Transact.Invoices.pdb index ecd213c..c30d9be 100755 Binary files a/Bizgaze.Transact.Invoices.pdb and b/Bizgaze.Transact.Invoices.pdb differ diff --git a/Bizgaze.Transact.Offers.dll b/Bizgaze.Transact.Offers.dll index 4dfd364..fcbce12 100644 Binary files a/Bizgaze.Transact.Offers.dll and b/Bizgaze.Transact.Offers.dll differ diff --git a/Bizgaze.Transact.Offers.pdb b/Bizgaze.Transact.Offers.pdb index 1c560d6..a1969e8 100644 Binary files a/Bizgaze.Transact.Offers.pdb and b/Bizgaze.Transact.Offers.pdb differ diff --git a/Bizgaze.Transact.Opportunities.dll b/Bizgaze.Transact.Opportunities.dll index ae6499f..eb8444a 100755 Binary files a/Bizgaze.Transact.Opportunities.dll and b/Bizgaze.Transact.Opportunities.dll differ diff --git a/Bizgaze.Transact.Opportunities.pdb b/Bizgaze.Transact.Opportunities.pdb index 8e77f24..5a184e7 100755 Binary files a/Bizgaze.Transact.Opportunities.pdb and b/Bizgaze.Transact.Opportunities.pdb differ diff --git a/Bizgaze.Transact.Orders.dll b/Bizgaze.Transact.Orders.dll index 1a85dbc..0c34ad6 100644 Binary files a/Bizgaze.Transact.Orders.dll and b/Bizgaze.Transact.Orders.dll differ diff --git a/Bizgaze.Transact.Orders.pdb b/Bizgaze.Transact.Orders.pdb index 8657054..77e7d39 100644 Binary files a/Bizgaze.Transact.Orders.pdb and b/Bizgaze.Transact.Orders.pdb differ diff --git a/Bizgaze.Transact.Payments.dll b/Bizgaze.Transact.Payments.dll index be41db6..56022c3 100644 Binary files a/Bizgaze.Transact.Payments.dll and b/Bizgaze.Transact.Payments.dll differ diff --git a/Bizgaze.Transact.Payments.pdb b/Bizgaze.Transact.Payments.pdb index 0033e4b..669238a 100644 Binary files a/Bizgaze.Transact.Payments.pdb and b/Bizgaze.Transact.Payments.pdb differ diff --git a/Bizgaze.Transact.PriceLists.dll b/Bizgaze.Transact.PriceLists.dll index 1edad21..8d21786 100644 Binary files a/Bizgaze.Transact.PriceLists.dll and b/Bizgaze.Transact.PriceLists.dll differ diff --git a/Bizgaze.Transact.PriceLists.pdb b/Bizgaze.Transact.PriceLists.pdb index 2fa8e43..d210196 100644 Binary files a/Bizgaze.Transact.PriceLists.pdb and b/Bizgaze.Transact.PriceLists.pdb differ diff --git a/Bizgaze.Transact.Subscriptions.dll b/Bizgaze.Transact.Subscriptions.dll index 16f89b2..d52171c 100644 Binary files a/Bizgaze.Transact.Subscriptions.dll and b/Bizgaze.Transact.Subscriptions.dll differ diff --git a/Bizgaze.Transact.Subscriptions.pdb b/Bizgaze.Transact.Subscriptions.pdb index 483e635..ae2bb06 100644 Binary files a/Bizgaze.Transact.Subscriptions.pdb and b/Bizgaze.Transact.Subscriptions.pdb differ diff --git a/Bizgaze.Transact.Taxes.dll b/Bizgaze.Transact.Taxes.dll index c7dc2f7..9379203 100644 Binary files a/Bizgaze.Transact.Taxes.dll and b/Bizgaze.Transact.Taxes.dll differ diff --git a/Bizgaze.Transact.Taxes.pdb b/Bizgaze.Transact.Taxes.pdb index 7c158d9..01b7b9a 100644 Binary files a/Bizgaze.Transact.Taxes.pdb and b/Bizgaze.Transact.Taxes.pdb differ diff --git a/Bizgaze.Transact.Wallets.dll b/Bizgaze.Transact.Wallets.dll index 7c644f6..c7cfc47 100755 Binary files a/Bizgaze.Transact.Wallets.dll and b/Bizgaze.Transact.Wallets.dll differ diff --git a/Bizgaze.Transact.Wallets.pdb b/Bizgaze.Transact.Wallets.pdb index 194efbf..785551c 100755 Binary files a/Bizgaze.Transact.Wallets.pdb and b/Bizgaze.Transact.Wallets.pdb differ diff --git a/Bizgaze.Transact.dll b/Bizgaze.Transact.dll index 8ade573..d08bcbe 100644 Binary files a/Bizgaze.Transact.dll and b/Bizgaze.Transact.dll differ diff --git a/Bizgaze.Transact.pdb b/Bizgaze.Transact.pdb index 0b83c1e..490bed4 100644 Binary files a/Bizgaze.Transact.pdb and b/Bizgaze.Transact.pdb differ diff --git a/Hyperfusion.WebApis.Publish.dll b/Hyperfusion.WebApis.Publish.dll index 16b37d8..1d28d26 100755 Binary files a/Hyperfusion.WebApis.Publish.dll and b/Hyperfusion.WebApis.Publish.dll differ diff --git a/Hyperfusion.WebApis.Publish.pdb b/Hyperfusion.WebApis.Publish.pdb index 795dace..cb98367 100755 Binary files a/Hyperfusion.WebApis.Publish.pdb and b/Hyperfusion.WebApis.Publish.pdb differ diff --git a/Hyperfusion.dll b/Hyperfusion.dll index fdb67de..f4fb68d 100755 Binary files a/Hyperfusion.dll and b/Hyperfusion.dll differ diff --git a/Hyperfusion.pdb b/Hyperfusion.pdb index 0995550..9ec5906 100755 Binary files a/Hyperfusion.pdb and b/Hyperfusion.pdb differ diff --git a/Mobil.Publish.dll b/Mobil.Publish.dll index 694c433..a755edb 100755 Binary files a/Mobil.Publish.dll and b/Mobil.Publish.dll differ diff --git a/Mobil.Publish.pdb b/Mobil.Publish.pdb index 22da817..f68b4ab 100755 Binary files a/Mobil.Publish.pdb and b/Mobil.Publish.pdb differ diff --git a/SPRL.dll b/SPRL.dll index 82f820a..6613a10 100755 Binary files a/SPRL.dll and b/SPRL.dll differ diff --git a/SPRL.pdb b/SPRL.pdb index d3fcd58..daef59b 100755 Binary files a/SPRL.pdb and b/SPRL.pdb differ diff --git a/UniConnect.Objects.dll b/UniConnect.Objects.dll index 362eb3b..537830d 100755 Binary files a/UniConnect.Objects.dll and b/UniConnect.Objects.dll differ diff --git a/UniConnect.Objects.pdb b/UniConnect.Objects.pdb index 1736631..433a834 100755 Binary files a/UniConnect.Objects.pdb and b/UniConnect.Objects.pdb differ diff --git a/UniConnect.WebApis.dll b/UniConnect.WebApis.dll index 9dffb2f..aa9c826 100755 Binary files a/UniConnect.WebApis.dll and b/UniConnect.WebApis.dll differ diff --git a/UniConnect.WebApis.pdb b/UniConnect.WebApis.pdb index cff1f48..4b7aeb6 100755 Binary files a/UniConnect.WebApis.pdb and b/UniConnect.WebApis.pdb differ diff --git a/Unibase.Core.dll b/Unibase.Core.dll index 848bf20..ae4b2d9 100755 Binary files a/Unibase.Core.dll and b/Unibase.Core.dll differ diff --git a/Unibase.Core.pdb b/Unibase.Core.pdb index e7d45ee..2dc81ec 100755 Binary files a/Unibase.Core.pdb and b/Unibase.Core.pdb differ diff --git a/Unibase.DbProviders.MongoDbProvider.dll b/Unibase.DbProviders.MongoDbProvider.dll index 6d66bea..7ff07ce 100755 Binary files a/Unibase.DbProviders.MongoDbProvider.dll and b/Unibase.DbProviders.MongoDbProvider.dll differ diff --git a/Unibase.DbProviders.MongoDbProvider.pdb b/Unibase.DbProviders.MongoDbProvider.pdb index 72b9aee..8ade427 100755 Binary files a/Unibase.DbProviders.MongoDbProvider.pdb and b/Unibase.DbProviders.MongoDbProvider.pdb differ diff --git a/Unibase.DbProviders.PgSqlDbProvider.dll b/Unibase.DbProviders.PgSqlDbProvider.dll index 76d8563..bb81f00 100755 Binary files a/Unibase.DbProviders.PgSqlDbProvider.dll and b/Unibase.DbProviders.PgSqlDbProvider.dll differ diff --git a/Unibase.DbProviders.PgSqlDbProvider.pdb b/Unibase.DbProviders.PgSqlDbProvider.pdb index 7849132..44c0538 100755 Binary files a/Unibase.DbProviders.PgSqlDbProvider.pdb and b/Unibase.DbProviders.PgSqlDbProvider.pdb differ diff --git a/Unibase.Helpers.ApiLogHelper.dll b/Unibase.Helpers.ApiLogHelper.dll index d45a4ae..4969414 100755 Binary files a/Unibase.Helpers.ApiLogHelper.dll and b/Unibase.Helpers.ApiLogHelper.dll differ diff --git a/Unibase.Helpers.ApiLogHelper.pdb b/Unibase.Helpers.ApiLogHelper.pdb index b5b788b..442b5a9 100755 Binary files a/Unibase.Helpers.ApiLogHelper.pdb and b/Unibase.Helpers.ApiLogHelper.pdb differ diff --git a/Unibase.Helpers.EmailHelper.dll b/Unibase.Helpers.EmailHelper.dll index 3b13429..249b16d 100755 Binary files a/Unibase.Helpers.EmailHelper.dll and b/Unibase.Helpers.EmailHelper.dll differ diff --git a/Unibase.Helpers.EmailHelper.pdb b/Unibase.Helpers.EmailHelper.pdb index 79bb2e5..a53e6d7 100755 Binary files a/Unibase.Helpers.EmailHelper.pdb and b/Unibase.Helpers.EmailHelper.pdb differ diff --git a/Unibase.Helpers.ExcelHelper.dll b/Unibase.Helpers.ExcelHelper.dll index 6b8593f..0f1aa2f 100755 Binary files a/Unibase.Helpers.ExcelHelper.dll and b/Unibase.Helpers.ExcelHelper.dll differ diff --git a/Unibase.Helpers.ExcelHelper.pdb b/Unibase.Helpers.ExcelHelper.pdb index 736fe75..68867dd 100755 Binary files a/Unibase.Helpers.ExcelHelper.pdb and b/Unibase.Helpers.ExcelHelper.pdb differ diff --git a/Unibase.Helpers.FileHelper.dll b/Unibase.Helpers.FileHelper.dll index 5368b49..02c7e6e 100755 Binary files a/Unibase.Helpers.FileHelper.dll and b/Unibase.Helpers.FileHelper.dll differ diff --git a/Unibase.Helpers.FileHelper.pdb b/Unibase.Helpers.FileHelper.pdb index d7e6e3c..ceda678 100755 Binary files a/Unibase.Helpers.FileHelper.pdb and b/Unibase.Helpers.FileHelper.pdb differ diff --git a/Unibase.Helpers.HybridCacheHelper.dll b/Unibase.Helpers.HybridCacheHelper.dll index a049e40..6a8579e 100755 Binary files a/Unibase.Helpers.HybridCacheHelper.dll and b/Unibase.Helpers.HybridCacheHelper.dll differ diff --git a/Unibase.Helpers.HybridCacheHelper.pdb b/Unibase.Helpers.HybridCacheHelper.pdb index 0158d29..9cc8559 100755 Binary files a/Unibase.Helpers.HybridCacheHelper.pdb and b/Unibase.Helpers.HybridCacheHelper.pdb differ diff --git a/Unibase.Helpers.LogHelper.dll b/Unibase.Helpers.LogHelper.dll index 4771f10..ab0e8f2 100755 Binary files a/Unibase.Helpers.LogHelper.dll and b/Unibase.Helpers.LogHelper.dll differ diff --git a/Unibase.Helpers.LogHelper.pdb b/Unibase.Helpers.LogHelper.pdb index aee9d56..a2c20e0 100755 Binary files a/Unibase.Helpers.LogHelper.pdb and b/Unibase.Helpers.LogHelper.pdb differ diff --git a/Unibase.Helpers.MemCacheHelper.dll b/Unibase.Helpers.MemCacheHelper.dll index 041a5aa..e44f6db 100755 Binary files a/Unibase.Helpers.MemCacheHelper.dll and b/Unibase.Helpers.MemCacheHelper.dll differ diff --git a/Unibase.Helpers.MemCacheHelper.pdb b/Unibase.Helpers.MemCacheHelper.pdb index c9bce56..5e705d9 100755 Binary files a/Unibase.Helpers.MemCacheHelper.pdb and b/Unibase.Helpers.MemCacheHelper.pdb differ diff --git a/Unibase.Helpers.MongoDbCacheHelper.dll b/Unibase.Helpers.MongoDbCacheHelper.dll index 4820844..db44601 100755 Binary files a/Unibase.Helpers.MongoDbCacheHelper.dll and b/Unibase.Helpers.MongoDbCacheHelper.dll differ diff --git a/Unibase.Helpers.MongoDbCacheHelper.pdb b/Unibase.Helpers.MongoDbCacheHelper.pdb index 4731e61..307efbe 100755 Binary files a/Unibase.Helpers.MongoDbCacheHelper.pdb and b/Unibase.Helpers.MongoDbCacheHelper.pdb differ diff --git a/Unibase.Helpers.PdfHelper.dll b/Unibase.Helpers.PdfHelper.dll index e62b45c..ec1a072 100755 Binary files a/Unibase.Helpers.PdfHelper.dll and b/Unibase.Helpers.PdfHelper.dll differ diff --git a/Unibase.Helpers.PdfHelper.pdb b/Unibase.Helpers.PdfHelper.pdb index 36613e5..f4f3aaf 100755 Binary files a/Unibase.Helpers.PdfHelper.pdb and b/Unibase.Helpers.PdfHelper.pdb differ diff --git a/Unibase.Helpers.RedisCacheHelper.dll b/Unibase.Helpers.RedisCacheHelper.dll index e030070..13ab0b6 100755 Binary files a/Unibase.Helpers.RedisCacheHelper.dll and b/Unibase.Helpers.RedisCacheHelper.dll differ diff --git a/Unibase.Helpers.RedisCacheHelper.pdb b/Unibase.Helpers.RedisCacheHelper.pdb index 1d18150..5dbb86e 100755 Binary files a/Unibase.Helpers.RedisCacheHelper.pdb and b/Unibase.Helpers.RedisCacheHelper.pdb differ diff --git a/Unibase.Helpers.SharedFileHelper.dll b/Unibase.Helpers.SharedFileHelper.dll index 953714a..cbf4bed 100755 Binary files a/Unibase.Helpers.SharedFileHelper.dll and b/Unibase.Helpers.SharedFileHelper.dll differ diff --git a/Unibase.Helpers.SharedFileHelper.pdb b/Unibase.Helpers.SharedFileHelper.pdb index b3243dd..65461ca 100755 Binary files a/Unibase.Helpers.SharedFileHelper.pdb and b/Unibase.Helpers.SharedFileHelper.pdb differ diff --git a/Unibase.Helpers.SignatureHelper.dll b/Unibase.Helpers.SignatureHelper.dll index 72ead25..b358240 100755 Binary files a/Unibase.Helpers.SignatureHelper.dll and b/Unibase.Helpers.SignatureHelper.dll differ diff --git a/Unibase.Helpers.SignatureHelper.pdb b/Unibase.Helpers.SignatureHelper.pdb index 8b38001..dc11bb8 100755 Binary files a/Unibase.Helpers.SignatureHelper.pdb and b/Unibase.Helpers.SignatureHelper.pdb differ diff --git a/Unibase.Helpers.TokenHelper.dll b/Unibase.Helpers.TokenHelper.dll index 8ec09a9..4b5c184 100755 Binary files a/Unibase.Helpers.TokenHelper.dll and b/Unibase.Helpers.TokenHelper.dll differ diff --git a/Unibase.Helpers.TokenHelper.pdb b/Unibase.Helpers.TokenHelper.pdb index bf55a98..3f29c6a 100755 Binary files a/Unibase.Helpers.TokenHelper.pdb and b/Unibase.Helpers.TokenHelper.pdb differ diff --git a/Unibase.Platform.Analytics.dll b/Unibase.Platform.Analytics.dll index 07ed35e..95784ba 100755 Binary files a/Unibase.Platform.Analytics.dll and b/Unibase.Platform.Analytics.dll differ diff --git a/Unibase.Platform.Analytics.pdb b/Unibase.Platform.Analytics.pdb index 0661327..f37f369 100755 Binary files a/Unibase.Platform.Analytics.pdb and b/Unibase.Platform.Analytics.pdb differ diff --git a/Unibase.Platform.Apps.dll b/Unibase.Platform.Apps.dll index a480d9a..b458129 100755 Binary files a/Unibase.Platform.Apps.dll and b/Unibase.Platform.Apps.dll differ diff --git a/Unibase.Platform.Apps.pdb b/Unibase.Platform.Apps.pdb index 1dc6488..a0f8eb8 100755 Binary files a/Unibase.Platform.Apps.pdb and b/Unibase.Platform.Apps.pdb differ diff --git a/Unibase.Platform.Automation.dll b/Unibase.Platform.Automation.dll index 89cfc74..e7a4679 100755 Binary files a/Unibase.Platform.Automation.dll and b/Unibase.Platform.Automation.dll differ diff --git a/Unibase.Platform.Automation.pdb b/Unibase.Platform.Automation.pdb index f38d23f..3d7d399 100755 Binary files a/Unibase.Platform.Automation.pdb and b/Unibase.Platform.Automation.pdb differ diff --git a/Unibase.Platform.Common.dll b/Unibase.Platform.Common.dll index 5486a7c..87755c8 100755 Binary files a/Unibase.Platform.Common.dll and b/Unibase.Platform.Common.dll differ diff --git a/Unibase.Platform.Common.pdb b/Unibase.Platform.Common.pdb index 03b2a2b..6c80ba4 100755 Binary files a/Unibase.Platform.Common.pdb and b/Unibase.Platform.Common.pdb differ diff --git a/Unibase.Platform.Communications.Calls.dll b/Unibase.Platform.Communications.Calls.dll index 28acf2a..cf129fe 100755 Binary files a/Unibase.Platform.Communications.Calls.dll and b/Unibase.Platform.Communications.Calls.dll differ diff --git a/Unibase.Platform.Communications.Calls.pdb b/Unibase.Platform.Communications.Calls.pdb index 6cd6311..84e09cb 100755 Binary files a/Unibase.Platform.Communications.Calls.pdb and b/Unibase.Platform.Communications.Calls.pdb differ diff --git a/Unibase.Platform.Communications.Tasks.dll b/Unibase.Platform.Communications.Tasks.dll index cf37a0d..232a545 100755 Binary files a/Unibase.Platform.Communications.Tasks.dll and b/Unibase.Platform.Communications.Tasks.dll differ diff --git a/Unibase.Platform.Communications.Tasks.pdb b/Unibase.Platform.Communications.Tasks.pdb index e3cfc68..2485089 100755 Binary files a/Unibase.Platform.Communications.Tasks.pdb and b/Unibase.Platform.Communications.Tasks.pdb differ diff --git a/Unibase.Platform.Communications.dll b/Unibase.Platform.Communications.dll index c73e068..7dba858 100755 Binary files a/Unibase.Platform.Communications.dll and b/Unibase.Platform.Communications.dll differ diff --git a/Unibase.Platform.Communications.pdb b/Unibase.Platform.Communications.pdb index 45f6279..3267292 100755 Binary files a/Unibase.Platform.Communications.pdb and b/Unibase.Platform.Communications.pdb differ diff --git a/Unibase.Platform.Core.dll b/Unibase.Platform.Core.dll index 8fb5e04..1defc98 100755 Binary files a/Unibase.Platform.Core.dll and b/Unibase.Platform.Core.dll differ diff --git a/Unibase.Platform.Core.pdb b/Unibase.Platform.Core.pdb index 322ae42..08f96ce 100755 Binary files a/Unibase.Platform.Core.pdb and b/Unibase.Platform.Core.pdb differ diff --git a/Unibase.Platform.Crypto.dll b/Unibase.Platform.Crypto.dll index 47d4a79..6f77836 100755 Binary files a/Unibase.Platform.Crypto.dll and b/Unibase.Platform.Crypto.dll differ diff --git a/Unibase.Platform.Crypto.pdb b/Unibase.Platform.Crypto.pdb index 20d9a24..5cde8ae 100755 Binary files a/Unibase.Platform.Crypto.pdb and b/Unibase.Platform.Crypto.pdb differ diff --git a/Unibase.Platform.DataSources.dll b/Unibase.Platform.DataSources.dll index d4f4627..21b8f6f 100755 Binary files a/Unibase.Platform.DataSources.dll and b/Unibase.Platform.DataSources.dll differ diff --git a/Unibase.Platform.DataSources.pdb b/Unibase.Platform.DataSources.pdb index b9939d9..adb824d 100755 Binary files a/Unibase.Platform.DataSources.pdb and b/Unibase.Platform.DataSources.pdb differ diff --git a/Unibase.Platform.GPS.WebApis.dll b/Unibase.Platform.GPS.WebApis.dll index 37f22a5..890b79a 100755 Binary files a/Unibase.Platform.GPS.WebApis.dll and b/Unibase.Platform.GPS.WebApis.dll differ diff --git a/Unibase.Platform.GPS.WebApis.pdb b/Unibase.Platform.GPS.WebApis.pdb index 6b60d7e..588d889 100755 Binary files a/Unibase.Platform.GPS.WebApis.pdb and b/Unibase.Platform.GPS.WebApis.pdb differ diff --git a/Unibase.Platform.GPS.dll b/Unibase.Platform.GPS.dll index 8a51f94..493822d 100755 Binary files a/Unibase.Platform.GPS.dll and b/Unibase.Platform.GPS.dll differ diff --git a/Unibase.Platform.GPS.pdb b/Unibase.Platform.GPS.pdb index e4678be..c46af27 100755 Binary files a/Unibase.Platform.GPS.pdb and b/Unibase.Platform.GPS.pdb differ diff --git a/Unibase.Platform.Integrations.dll b/Unibase.Platform.Integrations.dll index c9fce66..10a550a 100755 Binary files a/Unibase.Platform.Integrations.dll and b/Unibase.Platform.Integrations.dll differ diff --git a/Unibase.Platform.Integrations.pdb b/Unibase.Platform.Integrations.pdb index ada8794..4b91f64 100755 Binary files a/Unibase.Platform.Integrations.pdb and b/Unibase.Platform.Integrations.pdb differ diff --git a/Unibase.Platform.Membership.dll b/Unibase.Platform.Membership.dll index b1aefdd..458ac1d 100755 Binary files a/Unibase.Platform.Membership.dll and b/Unibase.Platform.Membership.dll differ diff --git a/Unibase.Platform.Membership.pdb b/Unibase.Platform.Membership.pdb index 18d5922..f843970 100755 Binary files a/Unibase.Platform.Membership.pdb and b/Unibase.Platform.Membership.pdb differ diff --git a/Unibase.Platform.Objects.dll b/Unibase.Platform.Objects.dll index 57aae2d..d007efc 100755 Binary files a/Unibase.Platform.Objects.dll and b/Unibase.Platform.Objects.dll differ diff --git a/Unibase.Platform.Objects.pdb b/Unibase.Platform.Objects.pdb index 8d583ae..8f49071 100755 Binary files a/Unibase.Platform.Objects.pdb and b/Unibase.Platform.Objects.pdb differ diff --git a/Unibase.Platform.Server.dll b/Unibase.Platform.Server.dll index 4226a23..b8805cf 100755 Binary files a/Unibase.Platform.Server.dll and b/Unibase.Platform.Server.dll differ diff --git a/Unibase.Platform.Server.pdb b/Unibase.Platform.Server.pdb index edaffe8..412aeca 100755 Binary files a/Unibase.Platform.Server.pdb and b/Unibase.Platform.Server.pdb differ diff --git a/Unibase.Platform.Subscription.dll b/Unibase.Platform.Subscription.dll index 58c31a2..e9f5bef 100755 Binary files a/Unibase.Platform.Subscription.dll and b/Unibase.Platform.Subscription.dll differ diff --git a/Unibase.Platform.Subscription.pdb b/Unibase.Platform.Subscription.pdb index 919a76d..08b20c0 100755 Binary files a/Unibase.Platform.Subscription.pdb and b/Unibase.Platform.Subscription.pdb differ diff --git a/Unibase.Platform.Templates.dll b/Unibase.Platform.Templates.dll index 0a1f550..60062da 100755 Binary files a/Unibase.Platform.Templates.dll and b/Unibase.Platform.Templates.dll differ diff --git a/Unibase.Platform.Templates.pdb b/Unibase.Platform.Templates.pdb index 21b4325..e130035 100755 Binary files a/Unibase.Platform.Templates.pdb and b/Unibase.Platform.Templates.pdb differ diff --git a/Unibase.Platform.Tenants.dll b/Unibase.Platform.Tenants.dll index c524430..d8e56f0 100755 Binary files a/Unibase.Platform.Tenants.dll and b/Unibase.Platform.Tenants.dll differ diff --git a/Unibase.Platform.Tenants.pdb b/Unibase.Platform.Tenants.pdb index 5a37a32..974606e 100755 Binary files a/Unibase.Platform.Tenants.pdb and b/Unibase.Platform.Tenants.pdb differ diff --git a/Unibase.Platform.Themes.dll b/Unibase.Platform.Themes.dll index af58e65..a73b0ac 100755 Binary files a/Unibase.Platform.Themes.dll and b/Unibase.Platform.Themes.dll differ diff --git a/Unibase.Platform.Themes.pdb b/Unibase.Platform.Themes.pdb index eb00de2..45d7108 100755 Binary files a/Unibase.Platform.Themes.pdb and b/Unibase.Platform.Themes.pdb differ diff --git a/Unibase.Platform.WebApis.dll b/Unibase.Platform.WebApis.dll index 73fcf33..77e9f9b 100755 Binary files a/Unibase.Platform.WebApis.dll and b/Unibase.Platform.WebApis.dll differ diff --git a/Unibase.Platform.WebApis.pdb b/Unibase.Platform.WebApis.pdb index e7286de..fb3c162 100755 Binary files a/Unibase.Platform.WebApis.pdb and b/Unibase.Platform.WebApis.pdb differ diff --git a/Unibase.Utilities.AppUtility.dll b/Unibase.Utilities.AppUtility.dll index 6c6b796..6573bd1 100755 Binary files a/Unibase.Utilities.AppUtility.dll and b/Unibase.Utilities.AppUtility.dll differ diff --git a/Unibase.Utilities.AppUtility.pdb b/Unibase.Utilities.AppUtility.pdb index 92c0008..4578bf1 100755 Binary files a/Unibase.Utilities.AppUtility.pdb and b/Unibase.Utilities.AppUtility.pdb differ diff --git a/Unibase.Utilities.Conflicts.dll b/Unibase.Utilities.Conflicts.dll index e5e317f..d7da540 100755 Binary files a/Unibase.Utilities.Conflicts.dll and b/Unibase.Utilities.Conflicts.dll differ diff --git a/Unibase.Utilities.Conflicts.pdb b/Unibase.Utilities.Conflicts.pdb index 71c0a8b..37dbce4 100755 Binary files a/Unibase.Utilities.Conflicts.pdb and b/Unibase.Utilities.Conflicts.pdb differ diff --git a/Unibase.Web.Server.deps.json b/Unibase.Web.Server.deps.json index bbcc679..e4d656f 100755 --- a/Unibase.Web.Server.deps.json +++ b/Unibase.Web.Server.deps.json @@ -83,10 +83,6 @@ "SPRL": "1.0.0", "UniConnect.Objects": "1.0.0", "UniConnect.WebApis": "1.0.0", - "UniMail.Core": "1.0.0", - "UniMail.Helpers.ApiHelper": "1.0.0", - "UniMail.UniMailProvider": "1.0.0", - "UniMail.WebApis.publish": "1.0.0", "Unibase.Core": "1.0.0", "Unibase.Core.Web": "1.0.0", "Unibase.DbProviders.MongoDbProvider": "1.0.0", @@ -4909,45 +4905,6 @@ "UniConnect.WebApis.dll": {} } }, - "UniMail.Core/1.0.0": { - "dependencies": { - "Unibase.Core": "1.0.0" - }, - "compile": { - "UniMail.Core.dll": {} - } - }, - "UniMail.Helpers.ApiHelper/1.0.0": { - "dependencies": { - "Newtonsoft.Json": "13.0.1", - "RestSharp": "106.11.7", - "UniMail.Core": "1.0.0" - }, - "compile": { - "UniMail.Helpers.ApiHelper.dll": {} - } - }, - "UniMail.UniMailProvider/1.0.0": { - "dependencies": { - "UniMail.Helpers.ApiHelper": "1.0.0", - "Unibase.Core": "1.0.0" - }, - "compile": { - "UniMail.UniMailProvider.dll": {} - } - }, - "UniMail.WebApis.publish/1.0.0": { - "dependencies": { - "Microsoft.AspNetCore.Mvc.Core": "2.2.5", - "RestSharp": "106.11.7", - "UniMail.Core": "1.0.0", - "UniMail.UniMailProvider": "1.0.0", - "Unibase.Core": "1.0.0" - }, - "compile": { - "UniMail.WebApis.publish.dll": {} - } - }, "Unibase.Itext.barcodes/7.2.1.0": { "compile": { "Unibase.Itext.barcodes.dll": {} @@ -5062,10 +5019,6 @@ "SPRL": "1.0.0", "UniConnect.Objects": "1.0.0", "UniConnect.WebApis": "1.0.0", - "UniMail.Core": "1.0.0", - "UniMail.Helpers.ApiHelper": "1.0.0", - "UniMail.UniMailProvider": "1.0.0", - "UniMail.WebApis.publish": "1.0.0", "Unibase.Core": "1.0.0", "Unibase.Core.Web": "1.0.0", "Unibase.DbProviders.MongoDbProvider": "1.0.0", @@ -9954,45 +9907,6 @@ "UniConnect.WebApis.dll": {} } }, - "UniMail.Core/1.0.0": { - "dependencies": { - "Unibase.Core": "1.0.0" - }, - "runtime": { - "UniMail.Core.dll": {} - } - }, - "UniMail.Helpers.ApiHelper/1.0.0": { - "dependencies": { - "Newtonsoft.Json": "13.0.1", - "RestSharp": "106.11.7", - "UniMail.Core": "1.0.0" - }, - "runtime": { - "UniMail.Helpers.ApiHelper.dll": {} - } - }, - "UniMail.UniMailProvider/1.0.0": { - "dependencies": { - "UniMail.Helpers.ApiHelper": "1.0.0", - "Unibase.Core": "1.0.0" - }, - "runtime": { - "UniMail.UniMailProvider.dll": {} - } - }, - "UniMail.WebApis.publish/1.0.0": { - "dependencies": { - "Microsoft.AspNetCore.Mvc.Core": "2.2.5", - "RestSharp": "106.11.7", - "UniMail.Core": "1.0.0", - "UniMail.UniMailProvider": "1.0.0", - "Unibase.Core": "1.0.0" - }, - "runtime": { - "UniMail.WebApis.publish.dll": {} - } - }, "Unibase.Itext.barcodes/7.2.1.0": { "runtime": { "Unibase.Itext.barcodes.dll": { @@ -12570,26 +12484,6 @@ "serviceable": false, "sha512": "" }, - "UniMail.Core/1.0.0": { - "type": "project", - "serviceable": false, - "sha512": "" - }, - "UniMail.Helpers.ApiHelper/1.0.0": { - "type": "project", - "serviceable": false, - "sha512": "" - }, - "UniMail.UniMailProvider/1.0.0": { - "type": "project", - "serviceable": false, - "sha512": "" - }, - "UniMail.WebApis.publish/1.0.0": { - "type": "project", - "serviceable": false, - "sha512": "" - }, "Unibase.Itext.barcodes/7.2.1.0": { "type": "reference", "serviceable": false, diff --git a/Unibase.Web.Server.dll b/Unibase.Web.Server.dll index 4ad8c22..5388114 100755 Binary files a/Unibase.Web.Server.dll and b/Unibase.Web.Server.dll differ diff --git a/Unibase.Web.Server.pdb b/Unibase.Web.Server.pdb index 1609145..ed7d5fa 100755 Binary files a/Unibase.Web.Server.pdb and b/Unibase.Web.Server.pdb differ diff --git a/wwwroot/apps/crm/leads/components/createlead.js b/wwwroot/apps/crm/leads/components/createlead.js index 7b57249..435261f 100644 --- a/wwwroot/apps/crm/leads/components/createlead.js +++ b/wwwroot/apps/crm/leads/components/createlead.js @@ -48,115 +48,123 @@ var Bizgaze; } var instance = this; $(detailContainer).find('.DetailSetting_' + Unibase.Themes.Providers.DetailHelper.installedAppId + '_Confirm').click(function () { - Unibase.Platform.Forms.Managers.FormManager.Instance().getFormbyUniqueId("Bizgaze_Platform_Crm_CreateCustomer").then(function (res) { - var formid = res.result.FormId; - var loadobj = { - CallBack: function () { - $(".div_SubFormdetails").find(".btn-success").click(); - var tagpropertyid = $(".hdn_tagcontrol").parents(".divCustomProperties").data("uniqueid"); - var tagJson = ""; - instance.fileCacheHelper.loadJsFile('apps/crm/contacts/managers/contactmanager.js', function () { + var RefStatusid = (Unibase.Themes.Providers.Detail_Settings.Instance().InputParameters.filter(function (o) { + return o.Key === "hf_" + Unibase.Themes.Providers.DetailHelper.installedAppId + "_refstatusid"; + })[0].Value); + if (RefStatusid == 1 || RefStatusid == 2 || RefStatusid == 9) { + MessageHelper.Instance().showError('Cannot Move Non-Prospect Stage Leads To Confirm Stage', 'div_message'); + } + else { + Unibase.Platform.Forms.Managers.FormManager.Instance().getFormbyUniqueId("Bizgaze_Platform_Crm_CreateCustomer").then(function (res) { + var formid = res.result.FormId; + var loadobj = { + CallBack: function () { $(".div_SubFormdetails").find(".btn-success").click(); - var leadid = Unibase.Themes.Providers.Detail_Settings.Instance().InputParameters.filter(function (o) { return o.Key === "hf_" + Unibase.Themes.Providers.DetailHelper.installedAppId + "_recordid"; })[0].Value; - Bizgaze.Apps.Crm.Contacts.Managers.ContactManager.Instance().getleadbyleadid(Number(leadid)).then(function (leadres) { - Bizgaze.Apps.Crm.Contacts.Managers.ContactManager.Instance().getleadtagsbyleadid(Number(leadid), formid).then(function (res) { - return __awaiter(this, void 0, void 0, function* () { - if (leadres.result.LeadType == 2) { - var drdbid = $("#rdb_organizationtypeid_2"); - $("#hdnRdb_organizationtypeid").val(2); - drdbid.attr("checked", true).trigger('change'); - } - $(".hdn_refid").val(Number(leadid)); - $(".txt_organizationid").val(leadres.result.OrganizationName); - if (leadres.result.OrganizationName != "") - $(".div_organizationid").addClass("floating-label-form-group-with-value"); - $(".txt_defaultemailid").val(leadres.result.OrganizationEmail); - if (leadres.result.OrganizationEmail != "") - $(".div_defaultemailid").addClass("floating-label-form-group-with-value"); - $(".txt_defaultnumberid").val(leadres.result.PhoneNumber); - if (leadres.result.PhoneNumber != "") - $(".div_defaultnumberid").addClass("floating-label-form-group-with-value"); - $(".txt_contactname").val(leadres.result.ContactPersonName); - if (leadres.result.ContactPersonName != "") - $(".div_contactname ").addClass("floating-label-form-group-with-value"); - $("#txtPhn_phonenumber").val(leadres.result.ContactNumbers); - if (leadres.result.ContactNumbers != "") - $(".div_phonenumber ").addClass("floating-label-form-group-with-value"); - $(".txt_emailaddress").val(leadres.result.Email); - if (leadres.result.Email != "") - $(".div_emailaddress").addClass("floating-label-form-group-with-value"); - $(".txtAutoComplete_branchid").append($("") - .attr("value", leadres.result.BranchId) - .text(leadres.result.AliasName)); - $(".txtAutoComplete_designationid") - .append($("") - .attr("value", leadres.result.DesignationId) - .text(leadres.result.DesignationName)); - if ((leadres.result.AddressName1 != "" && leadres.result.AddressName1 != undefined) || (leadres.result.CityId1 != 0 && leadres.result.CityId1 != undefined)) { - yield $.when().then(function (x) { - $(".subform_container_1").find(".txt_addressname").val(leadres.result.AddressName1); - if (leadres.result.AddressName1 != "") - $(".subform_container_1").find(".div_addressname").addClass("floating-label-form-group-with-value"); - $(".subform_container_1").find(".txt_addressline1").val(leadres.result.AddressLine11); - if (leadres.result.AddressLine11 != "") - $(".subform_container_1").find(".div_addressline1").addClass("floating-label-form-group-with-value"); - $(".subform_container_1").find(".txt_addressline2").val(leadres.result.AddressLine12); - if (leadres.result.AddressLine12 != "") - $(".subform_container_1").find(".div_addressline2").addClass("floating-label-form-group-with-value"); - $(".subform_container_1").find(".txtAutoComplete_cityid").append($("").attr("value", leadres.result.CityId1) - .text(leadres.result.Address_CityName1)).trigger("change"); - $(".subform_container_1").find(".txt_zipcode").val(leadres.result.PinCode1); - if (leadres.result.PinCode1 != "") - $(".subform_container_1").find(".div_zipcode").addClass("floating-label-form-group-with-value"); - $(".subform_container_1").find(".txt_landmark").val(leadres.result.LandMark1); - if (leadres.result.LandMark1 != "") - $(".subform_container_1").find(".div_landmark").addClass("floating-label-form-group-with-value"); - }); - } - else { - $(".subform_1").find(".btn-icon-circle").click(); - } - if ((leadres.result.AddressName2 != "" && leadres.result.AddressName2 != undefined) || (leadres.result.CityId2 != 0 && leadres.result.CityId2 != undefined)) { - $(".subform_container_2").find(".txt_addressname").val(leadres.result.AddressName2); - if (leadres.result.AddressName2 != "") - $(".subform_container_2").find(".div_addressname").addClass("floating-label-form-group-with-value"); - $(".subform_container_2").find(".txt_addressline1").val(leadres.result.AddressLine21); - if (leadres.result.AddressLine21 != "") - $(".subform_container_2").find(".div_addressline1").addClass("floating-label-form-group-with-value"); - $(".subform_container_2").find(".txt_addressline2").val(leadres.result.AddressLine22); - if (leadres.result.AddressLine22 != "") - $(".subform_container_2").find(".div_addressline2").addClass("floating-label-form-group-with-value"); - $(".subform_container_2").find(".txtAutoComplete_cityid").append($("").attr("value", leadres.result.CityId2) - .text(leadres.result.Address_CityName2)).trigger("change"); - $(".subform_container_2").find(".txt_zipcode").val(leadres.result.PinCode2); - if (leadres.result.PinCode2 != "") - $(".subform_container_2").find(".div_zipcode ").addClass("floating-label-form-group-with-value"); - $(".subform_container_2").find(".txt_landmark").val(leadres.result.LandMark2); - if (leadres.result.LandMark2 != "") - $(".subform_container_2").find(".div_landmark").addClass("floating-label-form-group-with-value"); - } - else { - $(".subform_2").find(".btn-icon-circle").click(); - } - Unibase.Forms.Controls.Tag.Instance().bindEditFormDetails(tagpropertyid, res.result, ""); + var tagpropertyid = $(".hdn_tagcontrol").parents(".divCustomProperties").data("uniqueid"); + var tagJson = ""; + instance.fileCacheHelper.loadJsFile('apps/crm/contacts/managers/contactmanager.js', function () { + $(".div_SubFormdetails").find(".btn-success").click(); + var leadid = Unibase.Themes.Providers.Detail_Settings.Instance().InputParameters.filter(function (o) { return o.Key === "hf_" + Unibase.Themes.Providers.DetailHelper.installedAppId + "_recordid"; })[0].Value; + Bizgaze.Apps.Crm.Contacts.Managers.ContactManager.Instance().getleadbyleadid(Number(leadid)).then(function (leadres) { + Bizgaze.Apps.Crm.Contacts.Managers.ContactManager.Instance().getleadtagsbyleadid(Number(leadid), formid).then(function (res) { + return __awaiter(this, void 0, void 0, function* () { + if (leadres.result.LeadType == 2) { + var drdbid = $("#rdb_organizationtypeid_2"); + $("#hdnRdb_organizationtypeid").val(2); + drdbid.attr("checked", true).trigger('change'); + } + $(".hdn_refid").val(Number(leadid)); + $(".txt_organizationid").val(leadres.result.OrganizationName); + if (leadres.result.OrganizationName != "") + $(".div_organizationid").addClass("floating-label-form-group-with-value"); + $(".txt_defaultemailid").val(leadres.result.OrganizationEmail); + if (leadres.result.OrganizationEmail != "") + $(".div_defaultemailid").addClass("floating-label-form-group-with-value"); + $(".txt_defaultnumberid").val(leadres.result.PhoneNumber); + if (leadres.result.PhoneNumber != "") + $(".div_defaultnumberid").addClass("floating-label-form-group-with-value"); + $(".txt_contactname").val(leadres.result.ContactPersonName); + if (leadres.result.ContactPersonName != "") + $(".div_contactname ").addClass("floating-label-form-group-with-value"); + $("#txtPhn_phonenumber").val(leadres.result.ContactNumbers); + if (leadres.result.ContactNumbers != "") + $(".div_phonenumber ").addClass("floating-label-form-group-with-value"); + $(".txt_emailaddress").val(leadres.result.Email); + if (leadres.result.Email != "") + $(".div_emailaddress").addClass("floating-label-form-group-with-value"); + $(".txtAutoComplete_branchid").append($("") + .attr("value", leadres.result.BranchId) + .text(leadres.result.AliasName)); + $(".txtAutoComplete_designationid") + .append($("") + .attr("value", leadres.result.DesignationId) + .text(leadres.result.DesignationName)); + if ((leadres.result.AddressName1 != "" && leadres.result.AddressName1 != undefined) || (leadres.result.CityId1 != 0 && leadres.result.CityId1 != undefined)) { + yield $.when().then(function (x) { + $(".subform_container_1").find(".txt_addressname").val(leadres.result.AddressName1); + if (leadres.result.AddressName1 != "") + $(".subform_container_1").find(".div_addressname").addClass("floating-label-form-group-with-value"); + $(".subform_container_1").find(".txt_addressline1").val(leadres.result.AddressLine11); + if (leadres.result.AddressLine11 != "") + $(".subform_container_1").find(".div_addressline1").addClass("floating-label-form-group-with-value"); + $(".subform_container_1").find(".txt_addressline2").val(leadres.result.AddressLine12); + if (leadres.result.AddressLine12 != "") + $(".subform_container_1").find(".div_addressline2").addClass("floating-label-form-group-with-value"); + $(".subform_container_1").find(".txtAutoComplete_cityid").append($("").attr("value", leadres.result.CityId1) + .text(leadres.result.Address_CityName1)).trigger("change"); + $(".subform_container_1").find(".txt_zipcode").val(leadres.result.PinCode1); + if (leadres.result.PinCode1 != "") + $(".subform_container_1").find(".div_zipcode").addClass("floating-label-form-group-with-value"); + $(".subform_container_1").find(".txt_landmark").val(leadres.result.LandMark1); + if (leadres.result.LandMark1 != "") + $(".subform_container_1").find(".div_landmark").addClass("floating-label-form-group-with-value"); + }); + } + else { + $(".subform_1").find(".btn-icon-circle").click(); + } + if ((leadres.result.AddressName2 != "" && leadres.result.AddressName2 != undefined) || (leadres.result.CityId2 != 0 && leadres.result.CityId2 != undefined)) { + $(".subform_container_2").find(".txt_addressname").val(leadres.result.AddressName2); + if (leadres.result.AddressName2 != "") + $(".subform_container_2").find(".div_addressname").addClass("floating-label-form-group-with-value"); + $(".subform_container_2").find(".txt_addressline1").val(leadres.result.AddressLine21); + if (leadres.result.AddressLine21 != "") + $(".subform_container_2").find(".div_addressline1").addClass("floating-label-form-group-with-value"); + $(".subform_container_2").find(".txt_addressline2").val(leadres.result.AddressLine22); + if (leadres.result.AddressLine22 != "") + $(".subform_container_2").find(".div_addressline2").addClass("floating-label-form-group-with-value"); + $(".subform_container_2").find(".txtAutoComplete_cityid").append($("").attr("value", leadres.result.CityId2) + .text(leadres.result.Address_CityName2)).trigger("change"); + $(".subform_container_2").find(".txt_zipcode").val(leadres.result.PinCode2); + if (leadres.result.PinCode2 != "") + $(".subform_container_2").find(".div_zipcode ").addClass("floating-label-form-group-with-value"); + $(".subform_container_2").find(".txt_landmark").val(leadres.result.LandMark2); + if (leadres.result.LandMark2 != "") + $(".subform_container_2").find(".div_landmark").addClass("floating-label-form-group-with-value"); + } + else { + $(".subform_2").find(".btn-icon-circle").click(); + } + Unibase.Forms.Controls.Tag.Instance().bindEditFormDetails(tagpropertyid, res.result, ""); + }); }); }); }); - }); - }, - Parameters: null, - }; - var formviewerObj = { - FormId: formid, - AppConfigurationId: 0, - Pk_Value: 0, - PortletWidgetId: 0, - OnSuccess: null, - OnFail: null, - OnLoad: loadobj, - }; - Unibase.Platform.Forms.Components.FormViewer.Instance().init(formviewerObj); - }); + }, + Parameters: null, + }; + var formviewerObj = { + FormId: formid, + AppConfigurationId: 0, + Pk_Value: 0, + PortletWidgetId: 0, + OnSuccess: null, + OnFail: null, + OnLoad: loadobj, + }; + Unibase.Platform.Forms.Components.FormViewer.Instance().init(formviewerObj); + }); + } }); } static Instance() { diff --git a/wwwroot/apps/hrms/components/attendence.js b/wwwroot/apps/hrms/components/attendence.js index 3d9b8f4..907befb 100644 --- a/wwwroot/apps/hrms/components/attendence.js +++ b/wwwroot/apps/hrms/components/attendence.js @@ -711,7 +711,7 @@ var Bizgaze; let date_end = `${date.getDate()} ${months[get_month]} ${date.getFullYear()}`; let User_endTime = `${date_end} ${instance.Start_time}`; let User_name = Unibase.Platform.Membership.Infos.Identity.currentUser.name; - let User_img = Unibase.Platform.Membership.Infos.Identity.currentUser.photoUrl; + let User_img = $("#bizgaze_body").find(".profile-Img-Update").find("img").attr("src"); MessageHelper.Instance().ShowAttendenceSuccess(User_name, User_img, response.message, User_endTime, instance.address); $("#bizgaze_body").parent().find('.jq-toast-wrap').find('.d-flex.list-inline .mr-4').addClass("d-none"); $("#bizgaze_body").parent().find('.jq-toast-wrap').find('.d-flex.list-inline h3.font-14.font-weight-400').addClass("d-none"); @@ -774,7 +774,7 @@ var Bizgaze; let date_end = `${Current_Time.getDate()} ${months[get_month]} ${Current_Time.getFullYear()}`; let User_startTime = `${date_end} ${instance.End_time}`; let User_name = Unibase.Platform.Membership.Infos.Identity.currentUser.name; - let User_img = Unibase.Platform.Membership.Infos.Identity.currentUser.photoUrl; + let User_img = $("#bizgaze_body").find(".profile-Img-Update").find("img").attr("src"); MessageHelper.Instance().ShowAttendenceSuccess(User_name, User_img, response.message, User_startTime, instance.address); $("#bizgaze_body").parent().find('.jq-toast-wrap').find('.d-flex.list-inline .mr-4').addClass("d-none"); $("#bizgaze_body").parent().find('.jq-toast-wrap').find('.d-flex.list-inline h3.font-14.font-weight-400').addClass("d-none"); diff --git a/wwwroot/apps/hrms/components/employeeleaves.js b/wwwroot/apps/hrms/components/employeeleaves.js index 9d95ebe..a6620ed 100644 --- a/wwwroot/apps/hrms/components/employeeleaves.js +++ b/wwwroot/apps/hrms/components/employeeleaves.js @@ -73,16 +73,30 @@ var Bizgaze; var leavefromdate = moment(fromdate).format("YYYY-MM-DD"); var leavetodate = moment(todate).format("YYYY-MM-DD"); var diffInDays = Math.abs(firstDate.diff(secondDate, 'days')); + var durationtype = Number($(".dropdown_durationtype").val()); instance.fileCacheHelper.loadJsFile("apps/hrms/managers/holidaymanager.js", function () { Bizgaze.Apps.Hrms.Managers.HolidayManager.Instance().getHolidayDates(leavefromdate, leavetodate, instance.leavepolicyid).then(function (response) { - var data = response.result; - instance.currentlybooked = data + "(days)"; - instance.currentlybookedcount = data; + if (durationtype == 1) { + var data = response.result; + instance.currentlybooked = data + "(days)"; + instance.currentlybookedcount = data; + } + else { + instance.currentlybooked = 0.5 + "(days)"; + instance.currentlybookedcount = 0.5; + } instance.balanceleaves = instance.availablebalance - instance.currentlybookedcount; instance.loadControl(instance.containerid, null); }); }); } + durationtype() { + var EmployeeId = Number($(".txtAutoComplete_employeeid").val()); + var LeaveTypeId = Number($(".ddl_cascading_leavetypeid").val()); + if (EmployeeId != 0 && LeaveTypeId != 0) { + Bizgaze.Apps.Hrms.Controls.EmployeeLeaves.Instance().getEmployeeAvailableLeaves(EmployeeId, LeaveTypeId); + } + } employeeleavesControlObj() { let instance = this; var EmployeeId = Number($(".txtAutoComplete_employeeid").val()); diff --git a/wwwroot/apps/transact/controls/itemdetails/itemrecdetails.component.js b/wwwroot/apps/transact/controls/itemdetails/itemrecdetails.component.js index 201bd89..9a054fa 100644 --- a/wwwroot/apps/transact/controls/itemdetails/itemrecdetails.component.js +++ b/wwwroot/apps/transact/controls/itemdetails/itemrecdetails.component.js @@ -60,10 +60,16 @@ var Bizgaze; let elem = a[a.length - 1]; let itemlength = ItemRecDetails.instance.ItemIds.findIndex(x => x == Number($(elem).find(".txtAutoComplete_itemid").val())); ItemRecDetails.instance.getitem($(elem).find(".txtAutoComplete_itemid").val(), elem); + $('.txtAutoComplete_lobid').prop('disabled', "true"); + $('.txtAutoComplete_branchid').prop('disabled', "true"); if (Unibase.Themes.Providers.Detail_Settings.Instance().InputParameters.length != 0) { ItemRecDetails.instance.bindRecDetails(); } }); + $(".txtAutoComplete_lobid").change(function () { + var Parameters = [{ "ColumnName": "lobid", "Value": Number($(".txtAutoComplete_lobid").val()), }]; + Unibase.Forms.Controls.AutoComplete.Instance().LoadAutoComplete($(".txtAutoComplete_itemid"), Parameters); + }); $(".number_phylqty").keyup(function () { let elem1 = $(this); let a = $(elem1).parentsUntil(".subformcls"); diff --git a/wwwroot/platform/analytics/components/chartbuilder/chartbuilder.js b/wwwroot/platform/analytics/components/chartbuilder/chartbuilder.js index acda4e9..f446ed9 100644 --- a/wwwroot/platform/analytics/components/chartbuilder/chartbuilder.js +++ b/wwwroot/platform/analytics/components/chartbuilder/chartbuilder.js @@ -1566,6 +1566,7 @@ var Unibase; ColorAppliedOn: chartSelectedColumn.ColorType || chartSelectedColumn.ColorAppliedOn, IsChartBaseColumn: chartSelectedColumn.IsBaseColumn, IsNumAbb: chartSelectedColumn.IsNumAbb == undefined ? true : chartSelectedColumn.IsNumAbb, + ToolTipIndex: tooltip ? tooltip.Index : 0 }); } } @@ -1635,7 +1636,7 @@ var Unibase; } var tIndex = instance.getIndexByDisplayText_tooltipColumnsArray(data.text); if (tIndex == -1) { - instance.toolTipArray.push({ ColumnId: Number(data.id), ColumnName: data.text, DisplayText: data.text, AliasName: data.text }); + instance.toolTipArray.push({ ColumnId: Number(data.id), ColumnName: data.text, DisplayText: data.text, AliasName: data.text, ToolTipIndex: 0 }); } instance.ChartSelectedColumns = instance.coordinate_Elements(true, true, true, true, true, true); instance.chartData(); @@ -1792,8 +1793,7 @@ var Unibase; } changeIndexOfElementsInArray(arr, fromIndex, toIndex) { let element = arr[fromIndex]; - arr.splice(fromIndex, 1); - arr.splice(toIndex, 0, element); + element.Index = toIndex + 1; } updateshowTooltipTitleProp(showTooltip) { $("#showtooltipheader_checkbox").prop("checked", showTooltip); diff --git a/wwwroot/platform/analytics/components/chartviewer/_chart.js b/wwwroot/platform/analytics/components/chartviewer/_chart.js index f5b3462..5a53592 100644 --- a/wwwroot/platform/analytics/components/chartviewer/_chart.js +++ b/wwwroot/platform/analytics/components/chartviewer/_chart.js @@ -511,6 +511,7 @@ var Unibase; var instance = this; instance.DatasetTooltips = []; if (instance.toolTipArray.length > 0) { + instance.toolTipArray.sort((x, y) => Number(x.Index) - Number(y.Index)); for (var i = 0; i < instance.toolTipArray.length; i++) { var tooltiparr = instance.toolTipArray[i]; let Labelarr = []; @@ -2007,11 +2008,12 @@ var Unibase; prepareAndBindToolTipColumns(ChartColumns) { let tooltipColumns = ChartColumns.filter(x => x.IsToolTip); let cols = this.getReportColumns(); - for (var i = 0; i < tooltipColumns.length; i++) { + var tCols = tooltipColumns.sort((x, y) => Number(x.ToolTipIndex) - Number(y.ToolTipIndex)); + for (var i = 0; i < tCols.length; i++) { let idx = cols.findIndex(x => x.AliasName == tooltipColumns[i].AliasName); if (idx > -1) { let col = cols[idx]; - this.toolTipArray.push({ ColumnValue: col.ColumnValue, ColumnName: col.ReportColumnName, DisplayText: col.DisplayText, AliasName: col.AliasName, Index: col.ColumnIndex }); + this.toolTipArray.push({ ColumnValue: col.ColumnValue, ColumnName: col.ReportColumnName, DisplayText: col.DisplayText, AliasName: col.AliasName, Index: tooltipColumns[i].ToolTipIndex }); if (this._reportBuilder.isEdit) { var html = this._reportBuilderTemplate.loadToolTipColumn(col.ReportColumnId, col.AliasName, col.DataType, col.DisplayText); $("#tab_tooltip #tooltip_selected_columns").append(html); diff --git a/wwwroot/platform/analytics/components/reportbuilder/dynamicfilter.js b/wwwroot/platform/analytics/components/reportbuilder/dynamicfilter.js index 9455f37..db87cec 100644 --- a/wwwroot/platform/analytics/components/reportbuilder/dynamicfilter.js +++ b/wwwroot/platform/analytics/components/reportbuilder/dynamicfilter.js @@ -590,6 +590,7 @@ var Unibase; $("#dynFilParentProperty_AutoComplete").val(dynamicfilters[0].ParentColumn).trigger("change"); $("#dynFilApplyFor_AutoComplete").val(dynamicfilters[0].ApplyFor).trigger("change"); } + $('#dataList_AutoComplete').attr('disabled', 'true'); } } else { diff --git a/wwwroot/platform/analytics/components/reportbuilder/pivot.js b/wwwroot/platform/analytics/components/reportbuilder/pivot.js index f982a32..75382d3 100644 --- a/wwwroot/platform/analytics/components/reportbuilder/pivot.js +++ b/wwwroot/platform/analytics/components/reportbuilder/pivot.js @@ -332,14 +332,19 @@ var Unibase; instance.fileCacheHelper.loadJsFile("libs/pivottable/js/pivot.js", function () { var rptRowCols = []; var rptColumnCols = []; + let rptDisplayTexts = []; if (instance._reportBuilder.ReportColumns.length != 0) { for (var p = 0; p < instance._reportBuilder.ReportColumns.length; p++) { - if (instance._reportBuilder.ReportColumns[p].IsPivotTableCol) { - rptColumnCols.push("" + instance._reportBuilder.ReportColumns[p].AliasName + ""); + const { IsPivotTableCol, AliasName, DisplayText, ReportColumnId, Isvisible } = instance._reportBuilder.ReportColumns[p]; + if (IsPivotTableCol) { + rptColumnCols.push(AliasName); } - else { - rptRowCols.push("" + instance._reportBuilder.ReportColumns[p].AliasName + ""); + else if (Isvisible) { + rptRowCols.push(AliasName); } + rptDisplayTexts[AliasName] = { + ReportColumnId, DisplayText + }; } } let containerEl = $("#tabulatorReportbuilder"); @@ -350,14 +355,33 @@ var Unibase; rendererName: "Table", onRefresh: function (config) { return __awaiter(this, void 0, void 0, function* () { - const pvtUnusedList = []; - containerEl.find('.pvtUnused .pvtAttr').each(function (i, e) { - pvtUnusedList.push($(e).contents().get(0).nodeValue); - var hiddencol_index = instance._reportBuilder.getIndexByAliasName_selectedColumnsArray($(e).contents().get(0).nodeValue); + containerEl.find('.pvtAxisLabel').each(function (i, e) { + const aliasName = $(e).contents().get(0).nodeValue; + $(e).contents().get(0).nodeValue = rptDisplayTexts[aliasName].DisplayText; + $(e).attr('id', `pvtAxisLabel_${aliasName}`); + }); + containerEl.find('.pvtAttr').each(function (i, e) { + const aliasName = $(e).find('.pvtDisplayText').attr('data-aliasname'); + const isUnused = $(e).closest('.pvtUnused').length; + const isRowCol = $(e).closest('.pvtRows').length; + var hiddencol_index = instance._reportBuilder.getIndexByAliasName_selectedColumnsArray(aliasName); + const selectedColumn = instance._reportBuilder.selectedColumns[hiddencol_index]; if (hiddencol_index > -1) { - instance._reportBuilder.selectedColumns[hiddencol_index].Isvisible = false; + if (isUnused || isRowCol) { + if (isUnused) { + selectedColumn.Isvisible = false; + } + else { + selectedColumn.Isvisible = true; + } + selectedColumn.IsPivotTableCol = false; + } } }); + containerEl.find('.pvtRows,.pvtCols').find('.pvtDisplayText').addClass('hidden'); + containerEl.find('.pvtRows,.pvtCols').find('.pvtDisplayTextInput').removeClass('hidden'); + containerEl.find('.pvtUnused .pvtDisplayText').removeClass('hidden'); + containerEl.find('.pvtUnused .pvtDisplayTextInput').addClass('hidden'); for (var c = 0; c < config.cols.length; c++) { var index = instance._reportBuilder.getIndexByAliasName_selectedColumnsArray(config.cols[c]); if (index > -1) { @@ -375,7 +399,7 @@ var Unibase; } }); instance._reportBuilder.EditableTabulatorTitle(); - containerEl.find('.pvtAttr').append(''); + instance.appendInputToPivotRows(rptDisplayTexts); containerEl.addClass('pivot-ui-tableview'); containerEl.find('button').each(function (i, e) { if ($(e).text().toLowerCase().includes('cancel')) { @@ -388,6 +412,16 @@ var Unibase; }); }); } + appendInputToPivotRows(rptDisplayTexts) { + $("#tabulatorReportbuilder .pvtAttr").contents().filter(function () { + return this.nodeType === Node.TEXT_NODE; + }).each(function (i, el) { + const aliasName = $(el).text(); + const isUsedCol = $(el).closest('.pvtRows,.pvtCols').length; + const { ReportColumnId, DisplayText } = rptDisplayTexts[aliasName]; + $(el).after(`${DisplayText}`).remove(); + }); + } getPivotAggregationTypeId(aggrName) { var aggrtypeid = 0; var instance = this; diff --git a/wwwroot/platform/analytics/components/reportbuilder/reportbuilder.js b/wwwroot/platform/analytics/components/reportbuilder/reportbuilder.js index 7650f0a..ca21d61 100644 --- a/wwwroot/platform/analytics/components/reportbuilder/reportbuilder.js +++ b/wwwroot/platform/analytics/components/reportbuilder/reportbuilder.js @@ -1101,8 +1101,10 @@ var Unibase; rowClick: function (e, row) { }, cellClick: function (e, cell) { - var Interval = cell["_cell"].column.definition.title; - Unibase.Platform.Analytics.Reports.Tenure.Instance().tenureDetailsTable(Interval); + if ($(cell.getElement()).closest('.tabulator-footer').length === 0) { + var Interval = cell["_cell"].column.definition.title; + Unibase.Platform.Analytics.Reports.Tenure.Instance().tenureDetailsTable(Interval); + } }, placeholder: "No data available", columnResized: function (column) { @@ -1509,13 +1511,29 @@ var Unibase; } changeDisplayText_table(columnId, aliasName) { var instance = this; - let displayText = $("[tabulator-field = '" + aliasName + "']").find(".tabulator-title-editor").val().toString(); + let displayText = ''; + let isPivotTable = false; + const containerEl = $('#tabulatorReportbuilder'); + if (containerEl.find('.pvtUi').length !== 0) { + isPivotTable = true; + } + if (isPivotTable) { + displayText = containerEl.find(`#pvtDisplayTextInput_${aliasName}`).val().toString(); + } + else { + displayText = $(`[tabulator-field='${aliasName}'] .tabulator-title-editor`).val().toString(); + } if (displayText) { let sIndex = instance.getIndexByAliasName_selectedColumnsArray(aliasName); if (sIndex > -1) { instance.selectedColumns[sIndex].DisplayText = displayText; - $(".tabulator-col-title").find("#DisplayText_" + aliasName).val(displayText); - $(".tabulator-col-title").find("#DisplayText_" + aliasName).focus(); + if (isPivotTable) { + containerEl.find(`#pvtAxisLabel_${aliasName}`).contents().get(0).nodeValue = displayText; + } + else { + $(".tabulator-col-title").find("#DisplayText_" + aliasName).val(displayText); + $(".tabulator-col-title").find("#DisplayText_" + aliasName).focus(); + } $("#selectedColumns #column_" + aliasName + "_block").find(".dsl-block-name").text(displayText); } let xIdx = this._chartBuilder.xaxisColumns.findIndex(x => x.AliasName == aliasName); diff --git a/wwwroot/platform/analytics/components/reportbuilder/reportbuilder.template.js b/wwwroot/platform/analytics/components/reportbuilder/reportbuilder.template.js index 8c58f45..a9a51f0 100644 --- a/wwwroot/platform/analytics/components/reportbuilder/reportbuilder.template.js +++ b/wwwroot/platform/analytics/components/reportbuilder/reportbuilder.template.js @@ -47,7 +47,7 @@ var Unibase; loadToolTipColumn(ColumnId, AliasName, DataType, DisplayText) { let tooltipHtml = `
- +
diff --git a/wwwroot/platform/analytics/components/reportviewer/_reportviewer.js b/wwwroot/platform/analytics/components/reportviewer/_reportviewer.js index e30e661..a0ae15e 100644 --- a/wwwroot/platform/analytics/components/reportviewer/_reportviewer.js +++ b/wwwroot/platform/analytics/components/reportviewer/_reportviewer.js @@ -2025,6 +2025,8 @@ ${instance.getViewAllHtml(containerid, 'desktop', reportid)} let rv_ins = instance.getReportViewerInstance(containerid); if (rv_ins && rv_ins.PageSize) instance.PageSize = rv_ins.PageSize; + instance.filterId = filterid; + instance._applyfilter(reportid, containerid); instance.loadFilteredReport(reportid, filterid, containerid); } statusFilters(statusname) { @@ -2880,7 +2882,9 @@ ${instance.getViewAllHtml(containerid, 'desktop', reportid)} if (rv_instance && rv_instance.PageSize) instance.PageSize = rv_instance.PageSize; !ErrorProduced && instance.loadFilteredReport(reportid, instance.filterId ? instance.filterId : rv_instance.filterId, containerid); - !ErrorProduced && $(`#filter-icon${containerid}`).dropdown('toggle'); + if (!ErrorProduced && $(`#biz-filter-dropdown${containerid}`).hasClass('show')) { + $(`#filter-icon${containerid}`).dropdown('toggle'); + } if (ErrorProduced) { instance.navigationHelper.hideLoading(); rv_instance.dynamicFilters = []; diff --git a/wwwroot/platform/analytics/components/tableviewer/tableviewer.js b/wwwroot/platform/analytics/components/tableviewer/tableviewer.js index 31e687d..94c0aab 100644 --- a/wwwroot/platform/analytics/components/tableviewer/tableviewer.js +++ b/wwwroot/platform/analytics/components/tableviewer/tableviewer.js @@ -162,22 +162,24 @@ var Unibase; } }, cellClick: function (e, cell) { - if (instance.subreportResponse && instance.subreportResponse.length) { - let cellAliasName = cell._cell.column.field; - let subRpt = instance.subreportResponse.find(x => x.AliasName == cellAliasName); - if (subRpt) { - return instance.tableCellClick(e, cell, level, reportid, instance.subreportResponse, containerid); + if ($(cell.getElement()).closest('.tabulator-footer').length === 0) { + if (instance.subreportResponse && instance.subreportResponse.length) { + let cellAliasName = cell._cell.column.field; + let subRpt = instance.subreportResponse.find(x => x.AliasName == cellAliasName); + if (subRpt) { + return instance.tableCellClick(e, cell, level, reportid, instance.subreportResponse, containerid); + } + } + var row = cell.getRow(); + let onclick = rv_instance.ViewerSettings.OnClick.trim(); + let InstalledAppId = rv_instance.ViewerSettings.InstalledAppId; + if (onclick) { + onclick = onclick.replace("{{appinstalledappid}}", InstalledAppId.toString()); + let row_data = row.getData(); + var templateScript = Handlebars.compile(onclick); + onclick = templateScript(row_data); + eval(onclick); } - } - var row = cell.getRow(); - let onclick = rv_instance.ViewerSettings.OnClick.trim(); - let InstalledAppId = rv_instance.ViewerSettings.InstalledAppId; - if (onclick) { - onclick = onclick.replace("{{appinstalledappid}}", InstalledAppId.toString()); - let row_data = row.getData(); - var templateScript = Handlebars.compile(onclick); - onclick = templateScript(row_data); - eval(onclick); } }, ajaxProgressiveLoadScrollMargin: 500, @@ -518,7 +520,9 @@ var Unibase; subreportdata.forEach(function (subreport) { if (subreport.AliasName && instance._reportViewer.table.getColumn(subreport.AliasName)) { instance._reportViewer.table.getColumn(subreport.AliasName).getCells().forEach(function (cell) { - $(cell.getElement()).addClass("text-underline clickable-cell"); + if ($(cell.getElement()).closest('.tabulator-footer').length === 0) { + $(cell.getElement()).addClass("text-underline clickable-cell"); + } }); } }); @@ -1120,8 +1124,10 @@ var Unibase; movableColumns: true, resizableColumns: !instance.isTouchScreen ? true : 'header', cellClick: function (e, cell) { - var subres = JSON.parse(subresponse.result.toString()); - instance.tableCellClick(e, cell, level, mainreportid, subres, containerid); + if ($(cell.getElement()).closest('.tabulator-footer').length === 0) { + var subres = JSON.parse(subresponse.result.toString()); + instance.tableCellClick(e, cell, level, mainreportid, subres, containerid); + } } }); let cols = []; @@ -1529,6 +1535,11 @@ var Unibase; const pvtTableEl = viewerEl.find('.pvtTable'); $(`#exportCSVBtn_${containerid}`).removeClass('d-none'); $(`#DownloadReport_${containerid}`).addClass('d-none'); + pvtTableEl.find('.pvtAxisLabel').each(function (i, e) { + const aliasName = $(e).contents().get(0).nodeValue; + const displayText = rv_instance.reportColumns.find(col => col.AliasName === aliasName).DisplayText; + $(e).contents().get(0).nodeValue = displayText; + }); underlineCols.forEach((column) => { if (pvtTableEl.find(`.pvtAxisLabel:contains("${column}")`).siblings('.pvtColLabel').length > 0) { pvtTableEl.find('.pvtVal[data-value!="null"]').addClass('text-underline'); diff --git a/wwwroot/platform/automation/components/notificationhub.js b/wwwroot/platform/automation/components/notificationhub.js index c247fc9..15bc607 100644 --- a/wwwroot/platform/automation/components/notificationhub.js +++ b/wwwroot/platform/automation/components/notificationhub.js @@ -11,6 +11,9 @@ var Unibase; this.server = { Connect: function (packet, callback) { Unibase.Platform.Automation.Hubs.NotificationHub.Instance(_appsettings.notification_url()).invoke("Connect", packet, callback); + }, + ClearOnlineUsers: function (sessionId, callback) { + Unibase.Platform.Automation.Hubs.NotificationHub.Instance(_appsettings.notification_url()).invoke("ClearOnlineUsers", sessionId, callback); } }; this.huburl = huburl; diff --git a/wwwroot/platform/automation/components/notifier.js b/wwwroot/platform/automation/components/notifier.js index 1063414..28f1a45 100644 --- a/wwwroot/platform/automation/components/notifier.js +++ b/wwwroot/platform/automation/components/notifier.js @@ -55,6 +55,7 @@ var Unibase; this._notificationHub = Automation.Hubs.NotificationHub.Instance(_appsettings.notification_url()); this.connection = this._notificationHub; this.start(); + Notifier.Instance().ClearOnlineUsers(); } playAudio(audiotype) { var obj = document.createElement("audio"); @@ -66,6 +67,11 @@ var Unibase; getAudioUrl(audiotype) { return this.audiolibrary[Number(audiotype)]; } + ClearOnlineUsers() { + var timerID = setInterval(function () { + Notifier.Instance()._notificationHub.server.ClearOnlineUsers(Unibase.Platform.Membership.Infos.Identity.currentUser.sessionId, null); + }, 1800000); + } seedAudioLibrary() { if (this.audiolibrary === undefined) this.audiolibrary = new Array(); diff --git a/wwwroot/platform/bundle/index.min.js b/wwwroot/platform/bundle/index.min.js index 32d1d8e..da4ffa2 100644 --- a/wwwroot/platform/bundle/index.min.js +++ b/wwwroot/platform/bundle/index.min.js @@ -440,7 +440,7 @@ function isMobileApp(){return Unibase.Platform.Helpers.MobileHelper!==undefined& Column
- `;html+=htmlli}$("#"+containerid).find("#selectedColumns").html(html);instance.sortSelectedColums(previewscontainerid,containerid);$("#selectedColumns").find(".btn-flush-biz-theme").click(function(){$(".list-group-item").removeClass("z-index-10");$(this).parents(".list-group-item").addClass("z-index-10")});$("#selectedColumns").find(".column-visible-icon").click(function(){const isVisible=$(this).find(".eye-icon").hasClass("la-eye");isVisible?$(this).find(".eye-icon").removeClass("la-eye").addClass("la-eye-slash"):$(this).find(".eye-icon").removeClass("la-eye-slash").addClass("la-eye")})})}updatestageindex(){var instance=this;$(".report_Columns_Duplicate_Fields #selectedColumns").find(".list-group-item").each(function(i){$(this).find(".ListColumnIndex").html(`${i}`);$(this).find(".ListColumnIndexInput").val(`${i}`)});instance.updateIndexBasedOnSorting()}sortSelectedColums(){var instance=this;let list=$("#selectedColumns");list&&list.sortable({connectWith:"#selectedColumns",cursor:"move",update:function(){instance.updatestageindex()}})}updateIndexBasedOnSorting(){function mapOrder(array,order,key){return array.sort(function(a,b){var A=a[key],B=b[key];return order.indexOf(A)>order.indexOf(B)?1:-1}),array}var instance=this;let ui_updated_array=[];$(".ui_list_sorting").each(function(){var ColumnIndex=$(this).find(".ListColumnIndexInput").val(),DisplayText=$(this).find(".columnname").text(),ReportColumnId=$(this).attr("data-ReportColumnId");ui_updated_array.push({ReportColumnId,ColumnIndex,DisplayText})});ui_updated_array=ui_updated_array.reverse();let ordered_array=mapOrder(instance.reportColumns,ui_updated_array,"ReportColumnId");console.log(ordered_array.reverse())}bindSelect2(){var ViewRoleElementId="txtIncludeViewRoles",ExcludeRoleElementId="txtExcludeViewRoles",userinfo=Unibase.Platform.Membership.Infos.Identity.getCurrentUser(),url=_appsettings.server_url()+"/apis/v4/unibase/platform/roles/getroles";url=url+"/term/";url=url.replace("#","");$("#"+ViewRoleElementId).select2({multiple:!0,allowClear:!1,data:[],placeholder:"Select Role",ajax:{url:request=>{var reqUrl=url,term=request.term;return term==undefined||term==""?reqUrl+term+"/authtoken/"+userinfo.sessionId:reqUrl+term+"/authtoken/"+userinfo.sessionId},beforeSend:xhr=>{userinfo!==undefined&&userinfo!==null&&(xhr.setRequestHeader("Authorization","Basic "+userinfo.sessionId),xhr.setRequestHeader("geoposition",userinfo.latd+":"+userinfo.lgId))},delay:250,dataType:"json",processResults:function(data){for(var selectData=[],Data=JSON.parse(data.result),i=0;i{let result=e.params.data;if(Number(result.id)!=0){var roleId=result.id;this.addViewRole(this.reportId,roleId,!0,!1)}});$("#txtIncludeViewRoles").on("select2:unselect",e=>{let result=e.params.data;var roleId=Number(result.id);if(roleId!=0){let idx=this.includeRoles.findIndex(x=>x.RoleId==roleId);if(idx!=-1){this.includeRoles.splice(idx,1);let ids=this.excludeRoles.map(x=>x.RoleId);$("#txtExcludeViewRoles").val(ids).trigger("change")}}});$("#"+ExcludeRoleElementId).select2({multiple:!0,allowClear:!1,data:[],placeholder:"Select Role",ajax:{url:function(request){var reqUrl=url,term=request.term;return term==undefined||term==""?reqUrl+term+"/authtoken/"+userinfo.sessionId:reqUrl+term+"/authtoken/"+userinfo.sessionId},beforeSend:function(xhr){userinfo!==undefined&&userinfo!==null&&(xhr.setRequestHeader("Authorization","Basic "+userinfo.sessionId),xhr.setRequestHeader("geoposition",userinfo.latd+":"+userinfo.lgId))},delay:250,dataType:"json",processResults:function(data){for(var selectData=[],Data=JSON.parse(data.result),i=0;i{let result=e.params.data;if(Number(result.id)!=0){var roleId=result.id;this.addViewRole(this.reportId,roleId,!1,!0);let includeRoleIdx=this.includeRoles.findIndex(x=>x.RoleId==Number(roleId));if(includeRoleIdx!=-1){this.includeRoles.splice(includeRoleIdx,1);let ids=this.includeRoles.map(x=>x.RoleId);$("#txtIncludeViewRoles").val(ids).trigger("change")}}});$("#txtExcludeViewRoles").on("select2:unselect",e=>{let result=e.params.data;var roleId=Number(result.id);if(roleId!=0){let idx=this.excludeRoles.findIndex(x=>x.RoleId==roleId);idx!=-1&&this.excludeRoles.splice(idx,1)}})}changeViewAllPermission(){var viewable=$("#chkIsViewable").prop("checked");this.viewAll=viewable;viewable?$("#divViewRoles").hide():$("#divViewRoles").show()}addViewRole(reportId,roleId,IsView,IsExclude){let listOfRoles;listOfRoles=IsView?this.includeRoles:this.excludeRoles;let idx=listOfRoles.findIndex(x=>x.RoleId==roleId);if(idx==-1){let reqObj=new Unibase.Platform.Analytics.Requests.ReportRole;reqObj.ReportId=reportId;reqObj.RoleId=Number(roleId);reqObj.ViewReport=IsView;reqObj.ExcludeViewReport=IsExclude;listOfRoles.push(reqObj)}}removeReportRole(reportId,roleId,IsView){let listOfRoles;listOfRoles=IsView?this.includeRoles:this.excludeRoles;let idx=listOfRoles.findIndex(x=>x.RoleId==roleId);idx!=-1&&listOfRoles.splice(idx,1)}saveDuplicateReport(){for(var i=0;ires.status==Unibase.Data.Status.Success?(MessageHelper.Instance().showSuccess("Report duplicate sucessfully created","duplicate_errormsg"),$("#btn_Close").click()):MessageHelper.Instance().showError(res.message,"duplicate_errormsg"))}changeDisplayText(aliasName){let column=this.getReportColumn(aliasName);column&&(column.DisplayText=$("#txtAliasName_"+aliasName).val())}showOrHideColumn(aliasName){let column=this.getReportColumn(aliasName);column&&(column.Isvisible=!column.Isvisible)}removeColumn(aliasName){var sortColumns=JSON.parse(this.reportInfo.SortColumns),index=sortColumns.findIndex(x=>x.Name==aliasName);if(index>-1)return MessageHelper.Instance().showError("Current column is used as sort column in main report","duplicate_errormsg");let idx=this.getReportColumnIndex(aliasName);idx>-1&&(this.reportColumns.splice(idx,1),$("#dsl_column_"+aliasName).remove(),this.updatestageindex())}getReportColumnIndex(aliasName){return this.reportColumns.findIndex(x=>x.AliasName==aliasName)}getReportColumn(aliasName){return this.reportColumns.find(x=>x.AliasName==aliasName)}linkreport(aliasname){this._reportBuilder.selectedColumns=this.reportInfo.ReportColumns;this._reportBuilder.res=this.reportInfo;let sr=Unibase.Platform.Analytics.Reports.SubReport.Instance();sr.isReportDuplicate=!0;sr.linkreport(aliasname)}static Instance(){return this.instance===undefined&&(this.instance=new DuplicateReport),this.instance}}Components.DuplicateReport=DuplicateReport})(Components=Analytics.Components||(Analytics.Components={}))})(Analytics=Platform.Analytics||(Platform.Analytics={}))})(Platform=Unibase.Platform||(Unibase.Platform={}))}(Unibase||(Unibase={})),function(Unibase){let Platform;(function(Platform){let Analytics;(function(Analytics){let Requests;(function(Requests){class Report{}Requests.Report=Report;class ReportColumn{}Requests.ReportColumn=ReportColumn;class TemplateView{}Requests.TemplateView=TemplateView;class ReportRole{}Requests.ReportRole=ReportRole;class ViewerRole{}Requests.ViewerRole=ViewerRole;class ReportRoleSetting{}Requests.ReportRoleSetting=ReportRoleSetting;class CalendarView{}Requests.CalendarView=CalendarView;class MapView{}Requests.MapView=MapView;class CardView{}Requests.CardView=CardView;class SubReport{}Requests.SubReport=SubReport;class DuplicateReport{}Requests.DuplicateReport=DuplicateReport})(Requests=Analytics.Requests||(Analytics.Requests={}))})(Analytics=Platform.Analytics||(Platform.Analytics={}))})(Platform=Unibase.Platform||(Unibase.Platform={}))}(Unibase||(Unibase={})),function(Unibase){let Platform;(function(Platform){let Analytics;(function(Analytics){let Providers;(function(Providers){class ViewerSettings{constructor(){this.defaultViewerId=0;this.defaultViewerTypeId=0;this.viewertypes=[{ViewerTypeId:1,ViewerTypeName:"Table",Classname:"TableViewer",icontext:"fa fa-table font-16"},{ViewerTypeId:2,ViewerTypeName:"Template",Classname:"TemplateViewer",icontext:"fa fa-list-alt font-16",formclass:"TemplateViewerSettings"},{ViewerTypeId:3,ViewerTypeName:"Calendar",Classname:"CalendarViewer",icontext:"fa fa-calendar font-15",formclass:"CalendarViewerSettings"},{ViewerTypeId:4,ViewerTypeName:"Map",Classname:"MapViewer",icontext:"fa fa-map-marker pl-1 font-18",formclass:"MapViewerSettings"},{ViewerTypeId:5,ViewerTypeName:"Card",Classname:"CardViewer",icontext:"fa fa-clone",formclass:"CardViewerSettings"}];this.defaultViewer=[]}}Providers.ViewerSettings=ViewerSettings})(Providers=Analytics.Providers||(Analytics.Providers={}))})(Analytics=Platform.Analytics||(Platform.Analytics={}))})(Platform=Unibase.Platform||(Unibase.Platform={}))}(Unibase||(Unibase={}));__awaiter=this&&this.__awaiter||function(thisArg,_arguments,P,generator){function adopt(value){return value instanceof P?value:new P(function(resolve){resolve(value)})}return new(P||(P=Promise))(function(resolve,reject){function fulfilled(value){try{step(generator.next(value))}catch(e){reject(e)}}function rejected(value){try{step(generator["throw"](value))}catch(e){reject(e)}}function step(result){result.done?resolve(result.value):adopt(result.value).then(fulfilled,rejected)}step((generator=generator.apply(thisArg,_arguments||[])).next())})},function(Unibase){let Platform;(function(Platform){let Analytics;(function(Analytics){let Viewers;(function(Viewers){class TableViewer extends Platform.Core.BaseComponent{constructor(){super();this.IsTenure=!1;this.CommonFilter=[];this.Filter=[];this.subreportpagination=[];this._lists_default_index=0;this.IsSelectable=!1;this.IdColumn=null;this.TextColumn=null;this.dataListId=0;this.subreportResponse="";this.widgetHeightNum=Unibase.Themes.Compact.Components.Index.Instance().widgetHeightNum;this.isTouchScreen=Unibase.Themes.Compact.Components.Index.Instance().isTouchScreen;this.reportManager=Analytics.Managers.ReportManager.Instance();this._reportBuilder=Analytics.Reports.ReportBuilder.Instance();this._reportViewer=Analytics.Components.ReportViewer.Instance();this.ListSearchTerm=""}loadView(reportresponse,reportid,viewerid,page,pageSize,containerid,ViewerSettings,callback,reportwidgetdata){var instance=this;let rv_instance=instance._reportViewer.getReportViewerInstance(containerid);let portletWidgetId=0;if(containerid.indexOf("div_portletwidget")>-1?(portletWidgetId=Number(containerid.split("_")[2]),containerid.indexOf("viewall")==-1&&(instance._reportViewer.IsPortletWidget=!0)):($(".report-search").addClass("d-sm-flex"),$(".search_icon").removeClass("hidden")),instance._reportViewer.toggleGroupByAndShowAllBtn(containerid,!0),ViewerSettings.InstalledAppId!=0&&(Unibase.Platform.Analytics.Reports.ReportBuilder.Instance().appConfigType=Unibase.Platform.Apps.Enums.AppConfigeType.Details),rv_instance.pivotTypeId==Analytics.Reports.Enums.PivotType.PivotTable)return instance.loadPivotTable(reportid,containerid,reportresponse);instance.initTable(reportresponse,containerid,reportid,null,reportwidgetdata);Unibase.Platform.Helpers.NavigationHelper.Instance().hideLoading()}initTable(reportresponse,containerid,reportid,filters,reportwidgetdata){return __awaiter(this,void 0,void 0,function*(){var instance=this,data,columnresponse,res,len,checkcontainerid,checkcontainer,col;let rv_instance=instance._reportViewer.getReportViewerInstance(containerid);let level=0;const isPivotTree=reportresponse.result.ReportInfo.IsPivotTree;var radioIcon=function(cell){var Selected="",textdata,iddata;return $("#"+Unibase.Platform.Analytics.Viewers.TableViewer.Instance().AutoCompleteElement).val()==cell.getRow().getData()[Unibase.Platform.Analytics.Viewers.TableViewer.Instance().IdColumn]&&(Selected=" checked"),textdata=cell.getRow().getData()[Unibase.Platform.Analytics.Viewers.TableViewer.Instance().TextColumn],iddata=cell.getRow().getData()[Unibase.Platform.Analytics.Viewers.TableViewer.Instance().IdColumn],'"},groupBy=[],autoNumFormatter=function(cell){if(!isPivotTree){var row=cell.getRow(),rowIndex=row.getPosition(!1);return rowIndex+1}},tableresponse=reportresponse.result.ReportJsonData,maintabledata=reportresponse.result.ReportJsonData.Result;let user=Unibase.Platform.Membership.Infos.Identity.getCurrentUser();let parentEl=$("#Viewer_"+containerid),height="100%",viewerMarginWidth=parseInt(parentEl.css("margin-left"))+parseInt(parentEl.css("margin-right"));if(parentEl.css({"max-width":`calc(100% - ${viewerMarginWidth}px)`,"max-height":""}),instance._reportViewer.IsPortletWidget){let widgetHeight=instance.widgetHeightNum;height=widgetHeight;parentEl.css({overflow:"auto",height:"100%","max-height":`${widgetHeight}px`})}if(containerid.includes("div_dashboardportletwidget")){let portletWidgetHeight=$(`#${containerid}`).siblings(".hf_portletwidgetheight").val();portletWidgetHeight=parseInt(portletWidgetHeight);height=portletWidgetHeight<=0?"100%":portletWidgetHeight+48}res=reportresponse.result.ReportInfo.ReportColumns;res=res.filter(x=>x.Isvisible==!0);let IsPivotColumn=res.filter(function(o){return o.IsPivotColumn===!0});if((IsPivotColumn.length>0||reportresponse.result.ReportInfo.IsPivotTree)&&(instance._reportViewer.ispivottable=!0),instance._reportViewer.table=new Tabulator("#Viewer_"+containerid,{placeholder:"
No data available<\/div>",downloadDataFormatter:function(data){return data},columnCalcs:"both",dataTree:instance._reportViewer.ispivottable,dataTreeStartExpanded:reportresponse.result.ReportInfo.IsTreeExpand,dataTreeRowExpanded:function(row,level){if(!reportresponse.result.ReportInfo.IsTreeExpand){instance._reportBuilder.datatreeIndex_Width=instance._reportBuilder.datatreeIndex_Width?instance._reportBuilder.datatreeIndex_Width:70;instance._reportBuilder.datatreeIndex_Width/70<=level&&(instance._reportBuilder.datatreeIndex_Width=instance._reportBuilder.datatreeIndex_Width+70);Unibase.Platform.Analytics.Reports.ReportBuilder.Instance().tabulatorColumns[0].width=instance._reportBuilder.datatreeIndex_Width;Unibase.Platform.Analytics.Reports.ReportBuilder.Instance().tabulatorColumns[0].minWidth=instance._reportBuilder.datatreeIndex_Width;const id=eval("row.getData()."+instance._reportViewer.pivotparentcolumn[0].ReportColumnName+"");let{fromDate,toDate}=instance._reportViewer.checkForReportDatePicker(reportid,containerid);rv_instance.fromDate&&rv_instance.toDate&&(fromDate=rv_instance.fromDate,toDate=rv_instance.toDate);var postdata={ReportId:reportid,page:1,pageSize:0,IsPivot:!0,PivotId:Number(id),FromDate:fromDate,ToDate:toDate,IsJson:!0,InputParameters:rv_instance.inputParameters,Filter:rv_instance.dynamicFilters};instance._reportBuilder.dataTreeRowExpandedColumn.push({Level:level});$.when(instance.reportManager.getReportViewerData(postdata)).done(function(response1){let res=JSON.parse(response1.result);var pivotdata=JSON.parse(res.Data),hasChild=pivotdata.filter(x=>x.haschild==!0).forEach(c=>c._children=[]);return row.getData()._children=pivotdata,row.update(row.getData())})}},cellClick:function(e,cell){var row,templateScript;if(instance.subreportResponse&&instance.subreportResponse.length){let cellAliasName=cell._cell.column.field,subRpt=instance.subreportResponse.find(x=>x.AliasName==cellAliasName);if(subRpt)return instance.tableCellClick(e,cell,level,reportid,instance.subreportResponse,containerid)}row=cell.getRow();let onclick=rv_instance.ViewerSettings.OnClick.trim(),InstalledAppId=rv_instance.ViewerSettings.InstalledAppId;if(onclick){onclick=onclick.replace("{{appinstalledappid}}",InstalledAppId.toString());let row_data=row.getData();templateScript=Handlebars.compile(onclick);onclick=templateScript(row_data);eval(onclick)}},ajaxProgressiveLoadScrollMargin:500,ajaxError:function(errortabletable1,error){let id;id=eval("postmethod1(parameters)");var userinfo=Unibase.Platform.Membership.Infos.Identity.getCurrentUser();id.then(function(res){var report=JSON.parse(JSON.parse(res.result).Result.Data);let column=new PaginationObject;column.last_page=1;column.data=report;error.setData(column.data);$("#Viewer_pagintion"+containerid).html(Math.ceil(JSON.parse(JSON.parse(res.result).Result.Data).length)+" of "+JSON.parse(res.result).Result.Count);JSON.parse(res.result).Result.Count>20&&($(error.element.childNodes[1]).append(``),$(".btn-list-load-more_"+containerid).unbind().click(function(){let listsearch=$("#"+containerid).find("#ListSearch").val();var page=error.element.childNodes[1].lastChild.lastChild.classList[5].match(/\d+/g).map(Number)[0];let isdynamicfilters=instance._reportViewer.isIdentityFilter(rv_instance.dynamicFilters),repObj=new Report;repObj.ReportId=Number(reportid);repObj.page=Number(page);repObj.Filter=rv_instance.dynamicFilters;repObj.DateFilter=rv_instance.dateFilters;repObj.InputParameters=rv_instance.inputParameters;repObj.FilterId=rv_instance.filterId;repObj.pageSize=instance._reportViewer.PageSize;repObj.SearchTerm=listsearch?$("#"+containerid).find("#ListSearch").val().toString():null;repObj.IsDynamicFilterApplied=isdynamicfilters;let method;method=eval("postmethod1(parameters)");method.then(function(res){error.addData(JSON.parse(res.result).Result.Data,!1);error.element.childNodes[1].lastChild.lastChild.classList.remove("btncount_"+page+"");error.element.childNodes[1].lastChild.lastChild.classList.add("btncount_"+(page+1)+"");let datalength=error.getDataCount();datalength>=JSON.parse(res.result).Result.Count?(JSON.parse(res.result).Result.Count!=0&&$("#btn-list-load-more_"+containerid).addClass("hidden"),$("#Viewer_pagintion"+containerid).html(JSON.parse(res.result).Result.Count+" of "+JSON.parse(res.result).Result.Count)):$("#Viewer_pagintion"+containerid).html(Math.ceil(datalength)+" of "+JSON.parse(res.result).Result.Count)})}))})},ajaxResponse:function(url,params,response){var editeditems={},data=[],report;let column=new PaginationObject;if(response.length>0){if(report=JSON.parse(JSON.parse(response.result).Result.Data),instance._reportViewer.ispivottable==!0){for(let i=0;i0){if(sort=[],rv_instance.sortColumn)if(Sort=typeof rv_instance.sortColumn=="string"?JSON.parse(rv_instance.sortColumn):rv_instance.sortColumn,sortCol=Sort.find(s=>s.Name==sorters[0].field),sortCol){let order=sortCol.Order.toLowerCase()=="asc"?"Desc":"Asc";sort.push({Order:order,Name:sorters[0].field})}else sort.push({Order:sorters[0].dir,Name:sorters[0].field});else sort.push({Order:sorters[0].dir,Name:sorters[0].field});rv_instance.sortColumn=sort;instance._reportViewer.getReportData(reportid,containerid,reportwidgetdata,null)}},virtualDom:rv_instance.virtualDom,layoutColumnsOnNewData:!0,dataLoaded:rows=>{rows.length&&rv_instance.js&&this.bindWidgetConfigurations(containerid,rows),instance.setTableHolderHeight(containerid)}}),rv_instance.table=instance._reportViewer.table,maintabledata.Data==""&&$(".tabulator-loader").remove(),filters!=null)if(tableresponse.TotalRecords==0)$("#Viewer_"+containerid).css("height","100");else{$("#Viewer_"+containerid).css("height","88%");let calWidth="67%";window.innerWidth<=575&&(calWidth="100%");$("#Viewer_"+containerid).next(".modal-footer").css({position:"fixed",bottom:"0px",width:calWidth})}if(len=0,maintabledata.Data!=""&&(len=JSON.parse(maintabledata.Data).length,len>=5&&instance._reportViewer.IsPortletWidget)){const viewAllHtml=instance._reportViewer.getViewAllHtml(containerid,"mobile",reportid);$(`#Viewer_${containerid}`).find(".tabulator-tableHolder").append(viewAllHtml);$(`#lnkViewAll_${containerid}`).removeClass("hidden")}if(instance._reportViewer.IsPortletWidget){if($("#WidgetTitleLink_"+containerid).addClass("widget-title-link"),$("#ViewerHeader_"+containerid).attr("data-toggle","collapse").attr("data-target","#Viewer_"+containerid),$("#Viewer_"+containerid).addClass("collapse"),reportwidgetdata!="undefined"&&reportwidgetdata!=null&&reportwidgetdata!=0&&reportwidgetdata.Data.CssProperty!=null&&reportwidgetdata.Data.CssProperty!=undefined&&reportwidgetdata.Data.CssProperty!=""&&JSON.parse(reportwidgetdata.Data.CssProperty)[0].ReportCollapase!=undefined&&rv_instance.ViewerSettings.defaultViewerTypeId==Unibase.Platform.Analytics.Reports.Enums.ReportType.Table){if(reportwidgetdata.Data.PortletWidgetCss==undefined)if(JSON.parse(reportwidgetdata.Data.CssProperty)[0].ReportCollapase==!0)$("#Viewer_"+containerid).addClass("show"),$("#ViewerHeader_"+containerid).attr("aria-expanded","true");else{$("#Viewer_"+containerid).removeClass("show");$("#ViewerHeader_"+containerid).attr("aria-expanded","false");$("#Viewer_"+containerid).on("shown.bs.collapse",function(){rv_instance.table&&rv_instance.table.redraw(!0)})}if(reportwidgetdata.Data.PortletWidgetCss!=undefined)if(reportwidgetdata.Data.portletWidgetIsCollapse==!0)$("#Viewer_"+containerid).addClass("show"),$("#ViewerHeader_"+containerid).attr("aria-expanded","true");else{$("#Viewer_"+containerid).removeClass("show");$("#ViewerHeader_"+containerid).attr("aria-expanded","false");$(`#Viewer_${containerid}`).on("shown.bs.collapse",function(){rv_instance.table&&rv_instance.table.redraw(!0)})}$("#Viewer_"+containerid).attr("data-iscollapseapplied","true")}let widgetHeight=instance.widgetHeightNum-Math.abs($("#Viewer_"+containerid).find(".tabulator-header").height());if($("#Viewer_"+containerid).css({overflow:"auto",height:"100%","max-height":""+widgetHeight+"px"}),instance._reportViewer.appendWidgetNoDataIcon(maintabledata,containerid),maintabledata.Data==="")$("#Viewer_"+containerid).off("shown.bs.collapse").on("shown.bs.collapse",function(){rv_instance.table.redraw(!0)})}else{checkcontainerid="#Viewer_"+containerid;checkcontainer=checkcontainerid.includes("div_dashboardportletwidget");let countHtml="";const isCountVisible=instance._reportViewer.tabMode&&(!checkcontainer||instance.navigationHelper.isReportPopup(containerid));countHtml=isCountVisible&&maintabledata.Data!=""?``)}pivotTable(reportid,containerid,rptData){var instance=this,p,pivotTableObj;let rv_instance=instance._reportViewer.getReportViewerInstance(containerid);if(rv_instance.pivotTableRowCols=[],rv_instance.pivotTableColumnCols=[],rv_instance.reportColumns.length!=0)for(p=0;px.ReportColumnId==pt_subreportdata[s].ReportColumnId),col&&underlineCols.push(col.AliasName)})});let viewerEl=$("#Viewer_"+containerid),viewerHeaderEl=$("#ViewerHeader_"+containerid);const tpl=$.pivotUtilities.aggregatorTemplates;let pivotAggrTypeId=0,aggCol=[],agg="Count";rv_instance.reportColumns.length>0&&(rptCol=rv_instance.reportColumns.find(pt=>pt.PivotTableAggrTypeId!=0),rptCol!=undefined&&rptCol.PivotTableAggrTypeId!=0&&(pivotAggrTypeId=rptCol.PivotTableAggrTypeId,aggCol=[rptCol.ReportColumnName]));pivotAggrTypeId==0&&pivotTableObj.AggCol!=""?(aggCol=[pivotTableObj.AggCol],agg=pivotTableObj.PivotTableAgg):(aggrtypeid=instance.getPivotTableAggregationType(pivotAggrTypeId),agg=aggrtypeid);viewerEl.pivotUI(rptData,{cols:pivotTableObj.Cols,rows:pivotTableObj.Rows,vals:aggCol,aggregatorName:agg,rendererName:"Table",rendererOptions:{table:{clickCallback:function(e,value,rowData,pivotData){for(var col,filter,filters,i,f=0;fx.ReportColumnId==pt_subreportdata[f].ReportColumnId),col&&col.AliasName==pivotData.colAttrs[0]){for(filter=[],instance._reportViewer.dateFilters=[],filters=JSON.parse(pt_subreportdata[f].Filters),i=0;i-1){var dt=new Date(value.split("/").reverse().join("-")),dd=dt.getDate(),mm=dt.getMonth()+1,yy=dt.getFullYear(),date=yy+"/"+mm+"/"+dd;instance._reportViewer.dateFilters.push({ParameterName:fill.ParameterName,FromDate:date,ToDate:date})}else filter.push({ParameterName:fill.ParameterValue.trim(),ParameterValue:value.toString(),ExpOp:expid})}return instance._reportViewer.dynamicFilters=filter,instance._reportViewer.report_ViewAll(pt_subreportdata[f].ChildReportId,0,"_linkedreport_"+pt_subreportdata[f].ChildReportId)}}}},onRefresh:function(){const pvtTableEl=viewerEl.find(".pvtTable");$(`#exportCSVBtn_${containerid}`).removeClass("d-none");$(`#DownloadReport_${containerid}`).addClass("d-none");underlineCols.forEach(column=>{if(pvtTableEl.find(`.pvtAxisLabel:contains("${column}")`).siblings(".pvtColLabel").length>0){pvtTableEl.find('.pvtVal[data-value!="null"]').addClass("text-underline");return}let colSpan=0;if(pvtTableEl.find(`.pvtAxisLabel:contains("${column}")`).prevAll("th[colspan]").each(function(i,e){Number($(e).attr("colspan"))>0&&(colSpan+=Number($(e).attr("colspan")))}),pvtTableEl.find(`.pvtAxisLabel:contains("${column}")`).length){let columnIndex=pvtTableEl.find(`.pvtAxisLabel:contains("${column}")`).index()+colSpan;pvtTableEl.find(`tbody tr`).each(function(i,e){$(e).find(".pvtRowLabel").eq(columnIndex).addClass("text-underline")})}});rv_instance.reportResponse.result.ReportInfo.Js!=""&&eval(rv_instance.reportResponse.result.ReportInfo.Js)}});pivotTableObj.EnablePTConfig||(viewerEl.find(".pvtUiCell").addClass("d-none"),viewerEl.find(".pvtRendererArea").addClass("pa-0"));Unibase.Platform.Helpers.NavigationHelper.Instance().hideLoading();viewerEl.addClass("pivot-ui-tableview");viewerEl.find("button").each(function(i,e){$(e).text().toLowerCase().includes("cancel")?$(e).addClass("btn btn-outline-danger btn-sm"):$(e).addClass("btn btn-primary btn-sm")})})}getPivotTableAggregationType(aggrTypeId){var aggrName="";switch(aggrTypeId){case Analytics.Reports.Enums.PivotTableAggregationType.Count:aggrName="Count";break;case Analytics.Reports.Enums.PivotTableAggregationType.ListUniqueValues:aggrName="List Unique Values"}return aggrName}pivotMoreButtonClick(containerid,reportid,rptData){var instance=this,pivotTableObj;let rv_instance=instance._reportViewer.getReportViewerInstance(containerid);$(".pvtUi").remove();pivotTableObj={Cols:rv_instance.pivotTableColumnCols,Rows:rv_instance.pivotTableRowCols,AggCol:rv_instance.pivotTableAggCol,EnablePTConfig:rv_instance.enablePivotTableConfig};instance.pivotUI(reportid,containerid,rptData,pivotTableObj)}applySorting(ContainerId,AliasName,Order){let rv_ins=Unibase.Platform.Analytics.Components.ReportViewer.Instance().getReportViewerInstance(ContainerId),col=rv_ins.reportColumns.find(x=>x.AliasName==AliasName);if(col){typeof rv_ins.sortColumn=="string"&&(rv_ins.sortColumn=JSON.parse(rv_ins.sortColumn));let sortCol=rv_ins.sortColumn.find(x=>x.Name==AliasName);sortCol?sortCol.Order=Order:rv_ins.sortColumn=[{Name:AliasName,Order:Order}];rv_ins.getReportData(rv_ins.ReportId,ContainerId,"","")}}applyTableDynamicFiltering(ContainerId,AliasName){let rv_ins=Unibase.Platform.Analytics.Components.ReportViewer.Instance().getReportViewerInstance(ContainerId),dropDownElement=$("#"+ContainerId).find(`#dropdown_menu_${AliasName}`);if(dropDownElement.length){let option1Val=dropDownElement.find(`#dynamic_filtering_${AliasName}_value1`).val(),option2Val=dropDownElement.find(`#dynamic_filtering_${AliasName}_value2`).val(),expOp1Text=dropDownElement.find(`#dynamic_filtering_${AliasName}_exp1`).find(":selected").text(),expOp2Text=dropDownElement.find(`#dynamic_filtering_${AliasName}_exp2`).find(":selected").text(),expOpJoinOp=Number(dropDownElement.find(`#dynamic_filtering_${AliasName}_operator`).val())+1;option1Val&&(rv_ins.tableDynamicFilters.find(x=>x.Key==AliasName&&x.Value==option1Val)||(rv_ins.inputParameters.push({Key:AliasName,Value:option1Val,ExpOp:this.getOperatorForTableDynamicFilter(expOp1Text)}),rv_ins.tableDynamicFilters.push({Key:AliasName,Value:option1Val,ExpOp:this.getOperatorForTableDynamicFilter(expOp1Text)})));option2Val&&(rv_ins.tableDynamicFilters.find(x=>x.Key==AliasName&&x.Value==option2Val)||(rv_ins.inputParameters.push({Key:AliasName,Value:option2Val,ExpOp:this.getOperatorForTableDynamicFilter(expOp2Text),ConjectiveOp:expOpJoinOp}),rv_ins.tableDynamicFilters.push({Key:AliasName,Value:option2Val,ExpOp:this.getOperatorForTableDynamicFilter(expOp2Text),ConjectiveOp:expOpJoinOp})));rv_ins.loadFilteredReport(rv_ins.ReportId,0,ContainerId)}}clearTableDynamicFiltering(ContainerId,AliasName){let rv_ins=Unibase.Platform.Analytics.Components.ReportViewer.Instance().getReportViewerInstance(ContainerId),ipIdx=rv_ins.inputParameters.findIndex(x=>x.Key==AliasName),tdfIdx=rv_ins.tableDynamicFilters.findIndex(x=>x.Key==AliasName);while(ipIdx>-1)rv_ins.inputParameters.splice(ipIdx,1),ipIdx=rv_ins.inputParameters.findIndex(x=>x.Key==AliasName);while(tdfIdx>-1)rv_ins.tableDynamicFilters.splice(tdfIdx,1),ipIdx=rv_ins.tableDynamicFilters.findIndex(x=>x.Key==AliasName);let dropDownElement=$("#"+ContainerId).find(`#dropdown_menu_${AliasName}`);dropDownElement.length&&(dropDownElement.find(`#dynamic_filtering_${AliasName}_value1`).val(""),dropDownElement.find(`#dynamic_filtering_${AliasName}_value2`).val(""),dropDownElement.find(`#dynamic_filtering_${AliasName}_exp1`).val("0"),dropDownElement.find(`#dynamic_filtering_${AliasName}_exp2`).val("0"),dropDownElement.find(`#dynamic_filtering_${AliasName}_operator`).val("0"));rv_ins.loadFilteredReport(rv_ins.ReportId,0,ContainerId)}getOperatorForTableDynamicFilter(OperatorName){let exp;switch(OperatorName){case"is equal to":exp=Platform.Core.Enums.ExpressionOperator.Equals;break;case"Is not equal to":exp=Platform.Core.Enums.ExpressionOperator.NotEquals;break;case"Starts with":exp=Platform.Core.Enums.ExpressionOperator.StartsWith;break;case"Contains":exp=Platform.Core.Enums.ExpressionOperator.Contains;break;case"Does not contain":exp=Platform.Core.Enums.ExpressionOperator.DoesNotContains;break;case"Ends with":exp=Platform.Core.Enums.ExpressionOperator.EndsWith;break;case"Is null":exp=Platform.Core.Enums.ExpressionOperator.IsNull;break;case"Is not null":exp=Platform.Core.Enums.ExpressionOperator.IsNotNull;break;case"Is empty":exp=Platform.Core.Enums.ExpressionOperator.Empty;break;case"Is not empty":exp=Platform.Core.Enums.ExpressionOperator.NotEmpty}return exp}bindTableDynamicfiltersIfExists(containerId){var fils,i;let rv_instance=Unibase.Platform.Analytics.Components.ReportViewer.Instance().getReportViewerInstance(containerId);if(rv_instance&&rv_instance.tableDynamicFilters&&rv_instance.tableDynamicFilters.length)for(fils=rv_instance.tableDynamicFilters,i=0;i{var templateScript,rowElement,rowsData,i,model,condition;let rv_instance=Unibase.Platform.Analytics.Components.ReportViewer.Instance().getReportViewerInstance(containerid);if(rv_instance.js){let{jsToEval,statusconditions,widgetconditions}=this.getWidgetConfigsHtml(rv_instance.js,containerid);if(jsToEval)for(templateScript=Handlebars.compile(jsToEval),i=0;i-1&&(detailsub=jsToEval.substring(jsToEval.indexOf("widgetitem_config")-15,jsToEval.indexOf("widgetitem_config")+40),sub=detailsub.substring(detailsub.indexOf("")+6),rv_ins.reportWidgetData!=null)){if(rv_ins.reportWidgetData.AppConfigurations.WidgetItemGrouped.length!=0){for(widgetitemgrouped=rv_ins.reportWidgetData.AppConfigurations.WidgetItemGrouped,designhtml=`