|
eForms provides ready to use web based modules,
- Business Process Automation Solution
- Employee & Payroll Management Solution
- Employee Attendance Management
- iDashboards - Interactive Reporting
- etc...
Please login to use the system...
Visionary – Our enthusiasm for technological achievement enables us to imagine far-reaching possibilities and bring them to fruition – raising the bar for excellence.
Valuable – Our proven ability to deliver reliable, high quality products and services makes us an important asset to our customers, communities and shareholders alike.
|
In the fast-moving and demanding world in which we live and work, once in a rare while a company comes along that actually delivers more than it promises, exceeding the customers needs, beyond their expectations and imagination – A company that is dynamic, innovative and yet completely dependable. A company that raises the bar...
We depend on our technically advanced next generation infrastructure to deliver best in class customer-aware and lifestyle-enhancing products and services that anticipate customer's needs. We understand that customers are on-the-go, busy and mobile and expect frictionless and seamless services. By deeply understanding the needs of customers we deliver the right products and services at the right time – helping customers simplify their lives, enabling them to transact their businesses and lives easily and ensuring a WOW user-experience from start to finish.
|
Terms of Use
|
Welcome to our site. If you continue to browse and use this site, you are agreeing
to comply with and be bound by the following Terms of Use, which together with our Privacy Policy govern the use of the site and apply to
all internet traffic visiting the site. IF YOU DISAGREE WITH ANY PART OF THESE TERMS,
PLEASE DO NOT USE THIS SITE.
The use of this site is subject to the following Terms of Use:
- Signup and Usage
Before signing up for an account or continuing on with your use of this site, you
MUST read these Terms carefully. Failure to do so places all liability, if
any, on you and not us.
Upon Signup, we will provide access to your user ID and password to log in and monitor
your account activity. We retain the right to deny access to anyone at its discretion
for any reason, including for violation of these Terms, your permission to use our
site immediately terminates without the necessity of any notice.
Your use of any information or materials on this site is entirely at your own risk,
for which we shall not be liable. It shall be your own responsibility to ensure
that any products, services or information available through this site meet your
specific requirements.
As a condition to your use of this site, you warrant to us that you will not use
our site for any purpose that is unlawful or prohibited by these Terms, including
without limitation the posting or transmitting any threatening, libelous, defamatory,
obscene, scandalous, inflammatory, pornographic, or profane material.
Unauthorised use of this site may give rise to a claim for damages and/or be a criminal
offence.
- Site Content
The content of the pages of this site is for your general information and use only.
It is subject to change without notice.
You may print a copy of the content and/or information contained herein for general,
non-commercial use only, but you may not copy, reproduce, republish, upload, post,
transmit, distribute, and/or exploit the content or information in any way (including
by e-mail or other electronic means) for commercial use.
This site contains material which is owned by or licensed to us. This material includes,
but is not limited to, the design, layout, look, appearance and graphics. Reproduction
is prohibited, which forms part of these Terms.
From time to time this site may also include links to other sites. These links are
provided for your convenience to provide further information. They do not signify
that we endorse the site(s). We have no responsibility for the content of the linked
site(s).
Neither we nor any third parties provide any warranty or guarantee as to the accuracy,
timeliness, performance, completeness or suitability of the information and materials
found or offered on this site for any particular purpose. You acknowledge that such
information and materials may contain inaccuracies or errors and we expressly exclude
liability for any such inaccuracies or errors to the fullest extent permitted by
law.
- Posting and other services charge
Posting of items and all other services offered by the site are free of charge. It
is subject to change without notice.
- Disclaimer
The information contained in this site is for general information purposes only.
While we endeavour to keep the information up to date and correct, we make no representations
or warranties of any kind, express or implied, about the completeness, accuracy,
reliability, suitability or availability with respect to the site or the information,
products, services, or related graphics contained on the site for any purpose. Any
reliance you place on such information is therefore strictly at your own risk.
In no event will we be liable for any loss or damage including without limitation,
indirect or consequential loss or damage, or any loss or damage whatsoever arising
from loss of data or profits arising out of, or in connection with, the use of this
site.
Through this site you are able to link to other sites which are not under our control.
We have no control over the nature, content and availability of those sites. The
inclusion of any links does not necessarily imply a recommendation or endorse the
views expressed within them.
Every effort is made to keep the site up and running smoothly. However, we take
no responsibility for, and will not be liable for, the site being unavailable due
to technical or any issues beyond our control.
- Modification
We reserve the right in our sole discretion, without any obligation and without
any notice requirement to you, to edit or delete any documents, information or other
content appearing on the site, including these Terms at anytime.
IF ANY MODIFICATION IS UNACCEPTABLE TO YOU, YOU MAY TERMINATE YOUR ACCOUNT AT ANY
TIME. HOWEVER, YOUR CONTINUED USAGE OF THIS SITE FOLLOWING THE POSTING OF NEW /
UPDATED TERMS WILL CONSTITUTE BINDING ACCEPTANCE OF THE CHANGE.
|
Privacy Policy
|
Cookies
Cookies are small data files that websites can write to your hard drive when you
visit them. Once written, the cookie can only be accessed by the site that originally
created it (ie. our site cannot read cookies set by another site you have visited
and vice-versa). Our site uses cookies to store personal site preferences, session
information, and information specific to you.
Some of the advertisements on our site are provided by outside advertisement companies
and may contain cookies. While we use cookies on our site, the cookies associated
with these advertisements are collected by their respective companies and are therefore
not accessible to us.
External Site Links
Our site may contain links to other sites of interest. However, once you have used
these links to leave our site, you should note that we do not have any control over
that other site. Therefore, we cannot be responsible for the protection and privacy
of any information which you provide whilst visiting such sites and such sites are
not governed by this privacy statement. You should exercise caution and look at
the privacy statement applicable to the site in question.
Customer Information
Information, collected from customers at the time of registration and item listing.
This information is NOT sold to, distributed to, or shared with third parties.
We are firmly against spam and neither participate nor promote any activities that
assist spammers.
We require this information to understand your needs and provide you with a better
service, and in particular for the following reasons:
- Internal record keeping.
- We may use the information to improve our products and services.
- We may periodically send promotional emails about new products, special offers or
other information which we think you may find interesting using the email address
which you have provided.
- From time to time, we may also use your information to contact you for market research
purposes. We may contact you by email, phone, fax or mail. We may use the information
to customise the site according to your interests.
-
Our server logs information regarding visitors to our site, such as IP address,
date/time, and pages accessed. This information is used to generate reports for
statistical purposes.
By using this site or providing your personal information, you signify your acceptance
of our Privacy Policy. IF YOU DO NOT AGREE TO THIS POLICY, DO NOT USE THIS SITE
OR PROVIDE ANY OF YOUR PERSONAL INFORMATION.
Federal and International Privacy Laws
It is very difficult to keep up with all the privacy laws of every country.
Please notify us if you believe our policies are in violation of any law, federal
or international. We will take immediate action to identify whether we are in violation
and will take corrective measures as quickly as possible.
Changes to this Privacy Policy
We reserve the right, to change, modify, add, or remove any statement from this
Privacy Policy at any time, we encourage visitors to review this Privacy Policy
whenever you visit this site. In the event of an acquisition, bankruptcy sale or
other change in ownership, collected information may be transferred or disclosed
to the acquiring party.
|
Access Denied
|
LOGIN with your User ID and Password...
|
This Module is Under Development, Coming Soon...
|
You have successfully Logged Out...
|
-
Basic Information
-
Contact Information
-
Contract Information
-
Payroll Information
|
|
|
|
|
|
Password Changed Successfully
|
|
|
fn = function () {
t.on('show', function () {
if (!t.__valuesLoaded) {
$(t.el).mask('Please wait while loading ...');
t.loadValues();
// AsyncWidgets.get('grdProxyUsers').show();
// AsyncWidgets.get('grdProxyUsers').Requery();
$(t.el).unmask('Please wait while loading ...');
t.__valuesLoaded = true;
}
});
}
cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'MY PROFILE'
}
}
cf = {
cols: {
RecId: { width: '0px' },
IsDisabled: { caption: 'Is Disabled', width: '100px' },
DateCreated: { caption: 'Date Created', width: '120px' }
},
pager: {
PageSizeType: 'Dropdown'
}
};
var fn = function () {
t.on('onLoadedValues', function (args) {
$('[argumentid="Name"]', t.el).attr('disabled', 'disabled');
});
};
cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Proxy Access'
}
}
var fn = function () {
t.on('show', function (args) {
t.setParams({ reset: true });
});
};
cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Proxy Access'
}
}
fn = function () {
t.on('beforeRowDelete', function (args) {
if (args.cf.ButtonId)
if (args.cf.ButtonId == 'Disable')
args.cf["Disable"] = 1;
else if (args.cf.ButtonId == 'Enable')
args.cf["Disable"] = 0;
});
}
cf = {
cols: {
Sequence: { width: '0px' },
TypeId: { width: '0px' },
Disabled: { width: '90px' }
},
pager: {
PageSizeType: 'Dropdown'
}
}
cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'List of Values - Parent Details'
}
}
fn = function () {
t.on('beforeRowDelete', function (args) {
if (args.cf.ButtonId)
if (args.cf.ButtonId == 'Disable')
args.cf["Disable"] = 1;
else if (args.cf.ButtonId == 'Enable')
args.cf["Disable"] = 0;
});
}
cf = {
cols: {
Sequence: { width: '0px' },
ChildId: { width: '0px' },
Description: { width: '0px' },
Code: { width: '0px' },
Name: { width: '222px' },
Disabled: { width: '90px' }
},
pager: {
PageSizeType: 'Dropdown'
}
}
fn = function () {
$('[argumentid="SubChildName"]', t.el).blur(function () {
if ($(this).val() == '')
t.SetArgVal('SubParentTypeId', '');
});
t.on('onLoad', function () {
// t.LoadCombo(t, $('select[argumentid="SubChildName"]', t.el), undefined, { params: { Description: 'Nationality'} });
//alert('hi!');
});
}
cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'List of Values - Child Details'
}
}
fn = function () {
t.on('show', function () {
//debugger;
if (!!t.parent) {
t.SetArgVal('ParentTypeId', t.parent.rowDetail.getValues("TypeId")['TypeId']);
}
});
$('[argumentid="SubChildName"]', t.el).blur(function () {
if ($(this).val() == '')
t.SetArgVal('SubParentTypeId', '');
});
}
cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'List of Values - Child Details'
}
}
cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'List of Values - Parent Details'
}
}
cf = {
cols: {
Sequence: { width: '0px' },
RecId: { width: '0px' },
ContainerName: { width: '180px' },
KPIName: { caption: 'KPI Name', width: '250px' },
QueryType: { caption: 'Type', width: '75px' },
ChartWidth: { caption: 'Width', width: '50px' },
ChartHeight: { caption: 'Height', width: '0px' },
ChartType: { width: '0px' },
OrderId: { caption: 'Order' }
},
pager: {
PageSizeType: 'Dropdown'
}
};
cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'KPI Setup'
}
}
cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'KPI Setup'
}
}
cf = {
cols: {
Sequence: { width: '0px' },
RecId: { caption: 'System ID', width: '100px' },
Name: { caption: 'Organization Name', width: '380px' },
IsDisabled: { width: '100px' },
OrgId: { width: '0px' }
},
pager: {
PageSizeType: 'Dropdown'
}
};
cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Organization Setup'
}
}
cf = {
cols: {
Sequence: { width: '0px' },
RecId: { caption: 'System ID', width: '100px' },
Name: { caption: 'Department Name', width: '350px' },
IsDisabled: { width: '100px' },
OrgId: { width: '0px' }
},
pager: {
PageSizeType: 'Dropdown'
}
}
cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Departments'
}
}
fn = function () {
t.on('show', function () {
if (!!t.parent) {
t.SetArgVal('OrgId', t.parent.rowDetail.getValues("OrgId")['OrgId']);
}
});
}
cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Departments'
}
}
cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Organization Setup'
}
}
cf = {
cols: {
RecId: { caption: 'System ID', width: '0px' },
Name: { caption: 'Category Name', width: '190px' },
CategoryId: { width: '0px' },
},
pager: {
PageSizeType: 'Dropdown'
}
};
cf = {
cols: {
Sequence: { width: '0px' },
RecId: { caption: 'System ID', width: '0px' },
ProcessName: { width: '170px' },
Name: { caption: 'Role Name', width: '205px' },
RoleId: { caption: 'Role ID', width: '170px' },
IsDisabled: { caption: '', width: '35px' },
CategoryId: { width: '0px' }
},
pager: {
PageSizeType: 'Dropdown'
}
};
cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Role Management'
}
}
fn = function () {
t.on('show', function () {
if (!!t.parent) {
t.SetArgVal('CategoryId', t.parent.rowDetail.getValues("CategoryId")['CategoryId']);
}
});
}
cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Role Management'
}
}
cf = {
cols: {
MenuId: { caption: 'Menu ID', width: '0px' },
OrderId: { caption: 'Order ID', width: '0px' },
ParentMenuId: { width: '0px' },
ChildId: { width: '0px' },
Role: { width: '0px' },
ShowWidget: { width: '0px' },
MenuName: { caption: 'Menu Name' },
IsDisabled: { width: '100px' }
},
pager: {
PageSizeType: 'Dropdown'
}
};
cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Menu Configuration'
}
}
cf = {
cols: {
MenuId: { caption: 'Menu ID', width: '0px' },
OrderId: { caption: 'Order ID', width: '0px' },
ParentMenuId: { width: '0px' },
RoleId: { width: '0px' },
ShowWidget: { caption: 'Show Widget', width: '200px' },
MenuName: { caption: 'Menu Name' },
IsDisabled: { width: '100px' }
},
pager: {
PageSizeType: 'Dropdown'
}
};
fn = function () {
t.on('onLoadedValues', function () {
t.LoadCombo(t, $('[argumentid="RoleId"]', t.el));
});
}
cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Menu Configuration'
}
}
fn = function () {
t.on('show', function () {
if (!!t.parent) {
t.SetArgVal('ParentMenuId', t.parent.rowDetail.getValues("MenuId")['MenuId']);
}
t.LoadCombo(t, $('[argumentid="RoleId"]', t.el));
});
}
cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Menu Configuration'
}
}
cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Menu Configuration'
}
}
cf = {
header: {
Style: {},
Visible: true,
Collapsed: true,
HeadText: 'Search'
}
}
var fn = function ()
{
}
cf = {
cols: {
Sequence: { width: '0px' },
RecId: { width: '0px' },
Name: { width: '120px' },
Roles: { width: '420px' },
DisabledStatus: { caption: 'Disabled', width: '80px' },
},
forms: {
NewFormId: 'frmUserManagement',
EditFormId: 'frmUserManagement',
Keys: 'RecId'
}
};
|
cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'User Management'
}
}
cf = {
header: {
Style: {},
Visible: true,
Collapsed: true,
HeadText: 'Search'
}
}
cf = {
cols: {
Sequence: { width: '0px' },
RecId: { width: '0px' },
EmpId: { caption: 'Emp ID', width: '70px' },
CivilId: { caption: 'Civil ID', width: '105px' },
NameInEnglish: { caption: 'Employee Name', width: '175px' },
ResidencyExpiryDate: { caption: 'Residency Expiry', width: '135px' },
GrossSalary: { width: '105px' },
Gender: { width: '0px' },
EmpStatus: { caption: 'Status', width: '125px' }
},
forms: {
NewFormId: 'frmEmployeeDatabase',
EditFormId: 'frmEmployeeDatabase',
Keys: 'RecId'
}
};
var fn = function () {
var LoadChart = function (msg) {
var strChart;
if (!msg.text) {
if (!!msg.childNodes[0])
strChart = msg.childNodes[0].textContent;
}
else
strChart = msg.text;
$('#dvContainer').html('');
$('.dvContainer', t.el).append(strChart);
};
var CallAjax = function (param) {
$.ajax({
type: "POST",
url: "AsyncDashboards/WebServices/KPI.asmx/GetKPICharts",
dataType: "",
data: "ContainerName=" + param,
success: function (msg) {
LoadChart(msg);
}
});
};
$('.w-ui-panel-icon-closed', t.el).click(function () {
if (!this.__ChartsLoaded) {
this.__ChartsLoaded = true;
CallAjax('conEmployeeDatabase');
}
});
};
cf = {
header: {
Style: {},
Visible: true,
Collapsed: true,
HeadText: 'KPI - Key Performance Indicator (s)'
}
}
fn = function () {
$('.SimpleTab li', t.el).click(function () {
//if (!t.EmpInfo) return false;
var li = $(this), tbl;
li.parent().children('li.active').removeClass('active');
li.addClass('active');
tbl = li.closest('table').children();
tbl.children('tr:not(:first)').hide();
tbl.children('tr[tabid="' + li.attr('tabid') + '"]').show();
$('.tabid', t.el).val(li.attr('tabid'));
return false;
});
}
cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Employee Database'
}
}
-
Basic Information
-
Contact Information
-
Contract Information
-
Payroll Information
|
|
|
|
|
cf = {
header: {
Style: {},
Visible: true,
Collapsed: true,
HeadText: 'Search'
}
}
cf = {
cols: {
Sequence: { width: '0px' },
RecId: { width: '0px' },
RecCode: { caption: 'Code', width: '90px' },
NationalIDNo: { caption: 'National ID No.' },
MobileTelephone1: { caption: 'Mobile Telephone' },
CustomerStatus: { caption: 'Status' }
},
forms: {
NewFormId: 'frmCustomerDetails',
EditFormId: 'frmCustomerDetails',
Keys: 'RecId'
}
};
cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Customer Management'
}
}
cf = {
header: {
Style: {},
Visible: true,
Collapsed: true,
HeadText: 'Search'
}
}
cf = {
cols: {
Sequence: { width: '0px' },
RecId: { width: '0px' },
RecCode: { width: '0px' },
CarNumber: { caption: 'Car No.', width: '80px' },
CarFor: { width: '70px' },
BrandId: { caption: 'Brand', width: '120px' },
ModelId: { caption: 'Model', width: '140px' },
TypeId: { caption: 'Type', width: '80px' },
CarYear: { caption: 'Year', width: '55px' },
CurrentMileage: { caption: 'Mileage', width: '75px' },
CarLocationId: { caption: 'Car Location', width: '105px' },
CarStatusId: { caption: 'Status' }
},
forms: {
//NewFormId: 'frmCarDetails',
//EditFormId: 'frmCarDetails',
NewFormId: 'frmCarForSalesDetails',
EditFormId: 'frmCarForSalesDetails',
Keys: 'RecId'
}
};
var fn = function () {
t.on('show', function (args) {
$('.ElemDisabled', t.el).removeClass('ElemDisabled');
$('[argumentid="CarLocationId"],[argumentid="CarStatusId"],[argumentid="CurrentMileage"]', t.el).removeAttr('disabled');
});
t.on('onLoadedValues', function (args) {
$('[argumentid="action"]', t.el).val("update");
if ($('[argumentid="ContractNo"]', t.el).text() != '') {
$('[argumentid="CarLocationId"],[argumentid="CarStatusId"],[argumentid="CurrentMileage"]', t.el).attr('disabled', 'disabled');
}
});
t.on('onComboFilled', function () {
$('.ElemDisabled', t.el).removeClass('ElemDisabled');
$('input[disabled="disabled"]:not([type="radio"]),textarea[disabled="disabled"],select[disabled="disabled"]', t.el).addClass('ElemDisabled');
});
}
cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Car Details'
}
}
cf = {
header: {
Style: {},
Visible: true,
Collapsed: true,
HeadText: 'Search'
}
}
cf = {
cols: {
Sequence: { width: '0px' },
RecId: { width: '0px' },
RateTypeId: { caption: 'Rate Type', width: '130px' },
BrandId: { caption: 'Brand', width: '130px' },
ModelId: { caption: 'Model', width: '150px' },
CarYear: { caption: 'Year', width: '55px' },
Rate: { caption: 'Daily Rate', width: '95px' },
AllowedKM: { caption: 'Daily KM Limit', width: '125px' },
ExtraKMRate: { caption: 'Rate/KM', width: '85px' }
},
forms: {
NewFormId: 'frmCarRateDetails',
EditFormId: 'frmCarRateDetails',
Keys: 'RecId'
}
};
cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Rate Management'
}
}
cf = {
header: {
Style: {},
Visible: true,
Collapsed: true,
HeadText: 'Search'
}
}
cf = {
cols: {
Sequence: { width: '0px' },
RecId: { width: '0px' },
CarNumber: { caption: 'Car No.', width: '80px' },
TransferDate: { width: '110px' },
CurrentMileage: { caption: 'Mileage', width: '75px' },
OutMileage: { width: '100px' },
InMileage: { width: '100px' },
OutLocationId: { caption: 'Out Location', width: '105px' },
InLocationId: { caption: 'In Location', width: '105px' },
DriverId: { caption: 'Driver' }
},
forms: {
NewFormId: 'frmCarTransfers',
EditFormId: 'frmCarTransfers',
Keys: 'RecId'
}
};
cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Car Transfers'
}
}
cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Search'
}
}
var fn = function () {
var ColClick = function () {
$('.EditForm.ColValue', $(this).closest('tr')).trigger('click');
return false;
};
t.on('rowsRendered', function () {
$('.StateName', t.el).each(function ()
{
//if ($(this).text().indexOf('Created - Reservation') > -1) {
//$('.chkRowSelect', $(this).closest('tr')).removeAttr('disabled');
//}
//else if ($(this).text() != '{StateName}') {
$('.chkRowSelect', $(this).closest('tr')).attr('disabled', 'disabled');
//}
var ptr = $(this).closest('tr');
if ($(this).text().indexOf('Contract Closed - Payment Cleared') > -1) {
ptr.css('background', '#F1F1F1').attr('disabled', 'disabled');
}
else if ($(this).text().indexOf('Contract Cancelled') > -1) {
ptr.css('background', '#F1F1F1').attr('disabled', 'disabled');
}
else if ($(this).text().indexOf('Contract Open - Car In') > -1) {
$(this).css('color', 'Red');
}
else if ($(this).text().indexOf('With Legal - Contract Open - Car Out') > -1) {
$(this).css('color', 'Red');
}
else if ($(this).text().indexOf('With Legal - Contract Open - Car In') > -1) {
$(this).css('color', 'Red');
}
else if ($(this).text().indexOf('With Legal - Contract Closed - Pending Payment') > -1) {
$(this).css('color', 'Red');
}
else if ($(this).text().indexOf('Contract Closed - Pending Payment') > -1) {
$(this).css('color', 'Red');
}
});
var cols = $('table[itemno] td:not(.RowSelect,.EditForm)', t.el).css('cursor', 'pointer').click(ColClick);
$('.ColValue', cols).css('cursor', 'pointer').click(ColClick);
});
};
cf = {
cols: {
EditForm:{width:'0px'},
Sequence: { width: '0px' },
ContractDetails: { caption: 'Contract & Car Details', width: '270px' },
CustomerDetails: { caption: 'Customer Details', width: '270px' },
ContractDateTimeDetails: { caption: 'Contract Date & Time', width: '165px' },
CreationDetails: { caption: 'Creation Details', width: '165px' },
RecId: { width: '0px' }
},
forms: {
NewFormId: 'frmRentalContracts',
EditFormId: 'frmRentalContracts',
Keys: 'RecId'
}
};
{RecCode}
{CarNumber} - {Brand} - {Model}
{StateName}
{CustomerName}
ID: {NationalIDNo} - {Nationality}
{MobileTelephone1} {MobileTelephone2}
{ContractStartDate} {ContractStartTime}
Charges: {ContractTotalCharges:fix(3)}
Balance: {TotalAmountDue:fix(3)}
{OutLocation}
{CreatedBy}
{DateCreated} {DateCreatedTime}
{RecId}
var fn = function () {
var conGrd = AsyncWidgets.get("conRentalContracts_Cust");
$('.ClosePopup', t.el).click(function () {
var f = conGrd._frm;
f._LOVCon.hide();
conGrd._Masked.unmask();
conGrd._frm = conGrd._Masked = null;
});
}
var cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Search'
}
}
var cf = {
cols: {
Sequence: { width: '0px' },
NationalIDExpiryDate: { width: '0px' },
Nationality: { width: '0px' },
Gender: { width: '0px' },
DrivingLicenseNo: { width: '0px' },
DrivingLicenseExpiry: { width: '0px' },
PassportNo: { width: '0px' },
PassportExpiry: { width: '0px' },
CustomerType: { width: '0px' },
WorkTelephone: { width: '0px' },
ResidenceTelephone: { width: '0px' },
MobileTelephone2: { width: '0px' },
RecCode: { caption: 'Code', width: '90px' },
NationalIDNo: { caption: 'National ID No.' },
MobileTelephone1: { caption: 'Mobile Telephone' },
CustomerStatus: { caption: 'Status' }
}
};
var fn = function () {
var conCar = AsyncWidgets.get("conRentalContracts_Cars");
$('.ClosePopup', t.el).click(function () {
var f = conCar._frm;
f._LOVConCar.hide();
conCar._Masked.unmask();
conCar._frm = conCar._Masked = null;
});
}
var cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Search'
}
}
var fn = function () {//CustomerRecCode
var conCar = AsyncWidgets.get("conRentalContracts_Cars");
var f = conCar._frm;
t.on('beforeSearchGetForm', function (p)
{
p.CarLocationId = f.GetArgVal('OutLocationId');
console.log(p.CarLocationId)
});
t.on('rowsRendered', function () {
$('[colid="Status"]:not(".w-grid-head-cell")').each(function () {
var ptr = $(this).closest('tr');
if ($(this).text().toLowerCase() != "available") {
ptr.css('background', '#F1F1F1').attr('disabled', 'disabled');
//$('td:nth-child(3)', ptr).css('cursor', '').unbind();
}
});
$('table[itemno]', t.el).click(function () {
debugger
if ($('[colid="Status"] .ColValue', this).text().toLowerCase() != "available") {
return;
}
$('[argumentid="CarNumber"]', f.el).val($('[colid="CarNumber"] .ColValue', this).text());
$('[argumentid="ChassisNo"]', f.el).text($('[colid="ChassisNo"] .ColValue', this).text());
$('[argumentid="Brand"]', f.el).text($('[colid="BrandId"] .ColValue', this).text());
$('[argumentid="Model"]', f.el).text($('[colid="ModelId"] .ColValue', this).text());
$('[argumentid="CarYear"]', f.el).text($('[colid="CarYear"] .ColValue', this).text());
$('[argumentid="Color"]', f.el).text($('[colid="ColorId"] .ColValue', this).text());
$('[argumentid="Type"]', f.el).text($('[colid="TypeId"] .ColValue', this).text());
$('[argumentid="InsuranceExpiry"]', f.el).text($('[colid="frmInsuranceExpiry"] .ColValue', this).text());
$('[argumentid="FullInsuranceExpiry"]', f.el).text($('[colid="frmFullInsuranceExpiry"] .ColValue', this).text());
$('[argumentid="CarPreviousKM"]', f.el).text($('[colid="CurrentMileage"] .ColValue', this).text());
$('[argumentid="ContractKMOut"]', f.el).val($('[colid="CurrentMileage"] .ColValue', this).text());
// Date Difference Function
var cDate = function (date) {
var dttmAr = date.split(' '), dt, tm, nDate;
dt = dttmAr[0].split('/');
if (dttmAr.length > 1) {
tm = dttmAr[1].split(':');
return new Date(dt[2], dt[1] - 1, dt[0], tm[0], tm[1], tm[2]);
}
return new Date(dt[2], dt[1] - 1, dt[0]);
};
var dateDiff = function (d1, d2) {
return (d1 - d2) / (3600000 * 24);
};
// End
$('span[argumentid="ChassisNo"],span[argumentid="InsuranceExpiry"],span[argumentid="FullInsuranceExpiry"]', f.el).css('color', '#628296'); //Change Color to Normal on every click
// Highlight dates as red which have expired
var HLD = function (arg) {
var expDate = f.GetArgVal(arg).replace(/3rd - /g, '').replace(/Full - /g, '');
if ($.trim(expDate) != '') {
if (Math.floor(dateDiff(new Date(), cDate(expDate))) >= 0) {
$('span[argumentid="' + arg + '"]', f.el).css('color', 'red');
$('span[argumentid="ChassisNo"]', f.el).css('color', 'red');
}
}
return HLD;
};
HLD('InsuranceExpiry')('FullInsuranceExpiry');
// End of Highlight of expired dates
f._LOVConCar.hide();
$('[argumentid="CarNumber"]', f.el).trigger('keyup'); //This is to remove the required validation issue
conCar._Masked.unmask();
conCar._frm = conCar._Masked = null;
//Load Car Rate Types
f.LoadCombo(f, $('[argumentid="CarRateType"]', f.el));
$('[argumentid="CarRate"],[argumentid="CarAllowedKM"],[argumentid="CarExtraKMRate"]', f.el).val(0);
//End Load Car Rate Types
})
$('table[itemno] td,table[itemno] div').css('cursor', 'pointer');
});
};
var cf = {
cols: {
Sequence: { width: '0px' },
RecId: { width: '0px' },
RecCode: { width: '0px' },
ChassisNo: { width: '0px' },
CarNumber: { caption: 'Car No.', width: '80px' },
BrandId: { caption: 'Brand', width: '120px' },
ModelId: { caption: 'Model', width: '140px' },
TypeId: { caption: 'Type', width: '80px' },
CarYear: { caption: 'Year', width: '80px' },
ColorId: { caption: 'Color', width: '80px' },
InsuranceExpiry: { caption: 'Normal Ins.', width: '0px' },
FullInsuranceExpiry: { caption: 'Full Ins.', width: '0px' },
CurrentMileage: { caption: 'Mileage', width: '100px' },
frmInsuranceExpiry: { width: '0px' },
frmFullInsuranceExpiry: { width: '0px' },
CarLocationId: { width: '0px' },
Status: { width: '100px' },
ContractNo: { caption: 'Contract No.' }
}
};
cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Rental Contracts'
}
}
-
Contract Details
-
Payment Details
-
Other Charges
-
Comments
|
|
cf = {
cols: {
Sequence: { width: '0px' },
RecId: { width: '0px', caption: 'ID' },
LocationReceiptId: { width: '110px', caption: 'ID' },
PrintId: { width: '30px', caption: '' },
ParentRecId: { width: '0px' },
PaymentType: { width: '65px', caption: 'Type' },
PaymentDate: { caption: 'Date', width: '90px' },
PaymentMode: { caption: 'Mode', width: '75px' },
ChequeNo: { width: '0px' },
PaymentAmount: { caption: 'Amount', width: '80px' },
ReceiptId: { caption: 'Manual ID' },
DateCreated: { caption: 'Date Created', width: '130px' },
CreatedBy: { caption: 'Created By', width: '150px' },
StateId: { width: '0px' }
},
forms: {
NewFormId: 'frmPaymentDetails',
EditFormId: 'frmPaymentDetails',
Keys: 'RecId'
}
};
var fn = function ()
{
t.on('rowsRendered', function ()
{
$('[colid="PaymentType_Audit"]:not(".w-grid-head-cell")').each(function ()
{
var ptr = $(this).closest('tr');
if ($(this).text().toLowerCase() == "return")
{
$('[colid="PaymentAmount"] div', ptr).css({ 'font-weight': 'bold', 'color': 'red' });
$('[colid="PaymentAmount"] div', ptr).text('-' + $('[colid="PaymentAmount"] div', ptr).text());
}
$('[colid="PaymentAmount"] div', ptr).text(parseFloat($('[colid="PaymentAmount"] div', ptr).text()).fix(3));
});
});
t.on('onNoRecords', function ()
{
$('.BottomTR', t.Repeater).hide();
});
}
cf = {
cols: {
AuditTrailId: { width: '0px', caption: 'Audit ID' },
StateId: { caption: 'Status', width: '182px' },
RecId: { width: '0px', caption: 'System ID' },
ParentRecId: { width: '0px' },
PaymentType_Audit: { width: '65px', caption: 'Type' },
PaymentDate: { caption: 'Date', width: '90px' },
PaymentMode: { caption: 'Mode', width: '75px' },
ChequeNo: { width: '0px' },
PaymentAmount: { caption: 'Amount', width: '80px' },
ReceiptId: { caption: 'Manual ID' },
DateCreated: { caption: 'Date Created', width: '130px' },
CreatedBy: { caption: 'Action By', width: '132px' }
}
};
var fn = function ()
{
//On Change of Amount Update Amount in Words
}
cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Payment Details'
}
}
|
var fn = function ()
{
t.on('beforeSearchGetForm', function (P)
{
var frm = AsyncWidgets.get('frmRentalContracts');
P.ParentRecId = frm.GetArgVal('RecId');
});
t.on('beforeRowDelete', function (P)
{
var fRow = $('td.Item table .chkRowSelect:first', t.Repeater).closest('tr'), pVal;
pVal = $('[colid="ParentRecId"] .ColValue', fRow).text();
P.cf['ParentRecId'] = pVal;
});
t.on('rowsRendered', function ()
{
var frm = AsyncWidgets.get('frmRentalContracts');
var strMainStateId = frm.GetArgVal('StateId');
$('[colid="Charges"]:not(".w-grid-head-cell")').each(function ()
{
var ptr = $(this).closest('tr');
$('[colid="Charges"] div', ptr).text(parseFloat($('[colid="Charges"] div', ptr).text()).fix(3));
});
$('[colid="StateId"]:not(".w-grid-head-cell")').each(function ()
{
var ptr = $(this).closest('tr');
if ($(this).text().toLowerCase() == "deleted")
{
ptr.css('background', '#F1F1F1').attr('disabled', 'disabled');
$('[colid="Charges"] div', ptr).css({ 'text-decoration': 'line-through' });
$('.chkRowSelect', ptr).attr('disabled', 'disabled');
$('td:nth-child(3)', ptr).css('cursor', '').unbind();
var cur = {
'background-image': 'url(' + ROOT_PATH + 'AsyncWidgets/Widgets/resources/images/RowEditForm_Disabled.png)',
'background-repeat': 'no-repeat',
'background-position': 'center center'
};
$('td:nth-child(3)', ptr).css(cur);
}
});
//If Main State ID = RRCContractClosed or RRCContractCancelled
if (strMainStateId == 'RRCContractClosed' || strMainStateId == 'RRCContractCancelled')
{
$('[itemno] td:nth-child(1) input', t.Repeater).attr('disabled', 'disabled');
$('[itemno] td:nth-child(3)', t.Repeater).css('cursor', '').unbind();
$('[buttonid="new"],[buttonid="delete"],.w-grid-buttons-top-container', t.Repeater).hide();
}
else
{
$('[buttonid="new"],[buttonid="delete"],.w-grid-buttons-top-container', t.Repeater).show();
}
//End If Main State ID = RRCContractClosed or RRCContractCancelled
});
t.on('onNoRecords', function ()
{
t.fireEvent('rowsRendered');
});
}
cf = {
cols: {
Sequence: { width: '0px' },
RecId: { width: '70px', caption: 'ID' },
ParentRecId: { width: '0px' },
Description: { caption: 'Description' },
Charges: { caption: 'Amount', width: '90px' },
DateCreated: { caption: 'Date Created', width: '130px' },
CreatedBy: { caption: 'Created By', width: '150px' },
StateId: { width: '0px' }
},
forms: {
NewFormId: 'frmOtherCharges',
EditFormId: 'frmOtherCharges',
Keys: 'RecId'
}
};
var fn = function ()
{
t.on('rowsRendered', function ()
{
$('[colid="Charges"]:not(".w-grid-head-cell")').each(function ()
{
var ptr = $(this).closest('tr');
$('[colid="Charges"] div', ptr).text(parseFloat($('[colid="Charges"] div', ptr).text()).fix(3));
});
});
t.on('onNoRecords', function ()
{
$('.BottomTR', t.Repeater).hide();
});
}
cf = {
cols: {
AuditTrailId: { width: '0px', caption: 'Audit ID' },
StateId: { caption: 'Status', width: '111px' },
RecId: { width: '0px' },
ParentRecId: { width: '0px' },
Description: { caption: 'Description' },
Charges: { caption: 'Amount', width: '90px' },
DateCreated: { caption: 'Date Created', width: '130px' },
CreatedBy: { caption: 'Created By', width: '132px' }
}
};
var fn = function ()
{
t.on('show', function (args)
{
var frm = AsyncWidgets.get('frmRentalContracts');
$('[argumentid="ParentRecId"]', t.el).text(frm.GetArgVal('RecId'));
});
}
cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Other Charges'
}
}
|
|
var cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Search'
}
}
var fn = function () {
var ColClick = function () {
$('.EditForm.ColValue', $(this).closest('tr')).trigger('click');
return false;
};
t.on('rowsRendered', function () {
$('.StateName', t.el).each(function () {
//if ($(this).text().indexOf('Created - Reservation') > -1) {
//$('.chkRowSelect', $(this).closest('tr')).removeAttr('disabled');
//}
//else if ($(this).text() != '{StateName}') {
$('.chkRowSelect', $(this).closest('tr')).attr('disabled', 'disabled');
//}
var ptr = $(this).closest('tr');
if ($(this).text().indexOf('Contract Closed - Payment Cleared') > -1) {
ptr.css('background', '#F1F1F1').attr('disabled', 'disabled');
}
else if ($(this).text().indexOf('Contract Cancelled') > -1) {
ptr.css('background', '#F1F1F1').attr('disabled', 'disabled');
}
else if ($(this).text().indexOf('Contract Open - Car In') > -1) {
$(this).css('color', 'Red');
}
else if ($(this).text().indexOf('With Legal - Contract Open - Car Out') > -1) {
$(this).css('color', 'Red');
}
else if ($(this).text().indexOf('With Legal - Contract Open - Car In') > -1) {
$(this).css('color', 'Red');
}
else if ($(this).text().indexOf('With Legal - Contract Closed - Pending Payment') > -1) {
$(this).css('color', 'Red');
}
else if ($(this).text().indexOf('Contract Closed - Pending Payment') > -1) {
$(this).css('color', 'Red');
}
});
var cols = $('table[itemno] td:not(.RowSelect,.EditForm)', t.el).css('cursor', 'pointer').click(ColClick);
$('.ColValue', cols).css('cursor', 'pointer').click(ColClick);
});
};
cf = {
cols: {
EditForm:{width:'0px'},
Sequence: { width: '0px' },
ContractDetails: { caption: 'Contract & Car Details', width: '270px' },
CustomerDetails: { caption: 'Customer Details', width: '270px' },
ContractDateTimeDetails: { caption: 'Contract Date & Time', width: '165px' },
CreationDetails: { caption: 'Creation Details', width: '165px' },
RecId: { width: '0px' }
},
forms: {
NewFormId: 'frmLeaseContracts',
EditFormId: 'frmLeaseContracts',
Keys: 'RecId'
}
};
{RecCode}
{CarNumber} - {Brand} - {Model}
{StateName}
{CustomerName}
ID: {NationalIDNo} - {Nationality}
{MobileTelephone1} {MobileTelephone2}
{ContractStartDate} {ContractStartTime}
Amount: {ContractTotalCharges:fix(3)}
Due INS: {DueINS}
{OutLocation}
{CreatedBy}
{DateCreated} {DateCreatedTime}
{RecId}
var fn = function () {
var conGrd = AsyncWidgets.get("conLeaseContracts_Cust");
$('.ClosePopup', t.el).click(function () {
var f = conGrd._frm;
f._LOVCon.hide();
conGrd._Masked.unmask();
conGrd._frm = conGrd._Masked = null;
});
}
var cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Search'
}
}
var cf = {
cols: {
Sequence: { width: '0px' },
NationalIDExpiryDate: { width: '0px' },
Nationality: { width: '0px' },
Gender: { width: '0px' },
DrivingLicenseNo: { width: '0px' },
DrivingLicenseExpiry: { width: '0px' },
PassportNo: { width: '0px' },
PassportExpiry: { width: '0px' },
CustomerType: { width: '0px' },
WorkTelephone: { width: '0px' },
ResidenceTelephone: { width: '0px' },
MobileTelephone2: { width: '0px' },
RecCode: { caption: 'Code', width: '90px' },
NationalIDNo: { caption: 'National ID No.' },
MobileTelephone1: { caption: 'Mobile Telephone' },
CustomerStatus: { caption: 'Status' }
}
};
var fn = function () {
var conCar = AsyncWidgets.get("conLeaseContracts_Cars");
$('.ClosePopup', t.el).click(function () {
var f = conCar._frm;
f._LOVConCar.hide();
conCar._Masked.unmask();
conCar._frm = conCar._Masked = null;
});
}
var cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Search'
}
}
var cf = {
cols: {
Sequence: { width: '0px' },
RecId: { width: '0px' },
RecCode: { width: '0px' },
ChassisNo: { width: '0px' },
CarNumber: { caption: 'Car No.', width: 'AW0px' },
BrandId: { caption: 'Brand', width: '120px' },
ModelId: { caption: 'Model', width: '140px' },
TypeId: { caption: 'Type', width: 'AW0px' },
CarYear: { caption: 'Year', width: 'AW0px' },
ColorId: { caption: 'Color', width: 'AW0px' },
InsuranceExpiry: { caption: 'Normal Ins.', width: '0px' },
FullInsuranceExpiry: { caption: 'Full Ins.', width: '0px' },
CurrentMileage: { caption: 'Mileage', width: '100px' },
frmInsuranceExpiry: { width: '0px' },
frmFullInsuranceExpiry: { width: '0px' },
CarLocationId: { width: '0px' },
Status: { width: '100px' },
ContractNo: { caption: 'Contract No.' }
}
};
cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Lease Contracts'
}
}
-
Contract Details
-
Payment Details
-
Other Charges
-
Comments
|
|
var fn = function () {
t.on('beforeSearchGetForm', function (P) {
var frm = AsyncWidgets.get('frmLeaseContracts');
P.ParentRecId = frm.GetArgVal('RecId');
});
t.on('beforeRowDelete', function (P) {
var fRow = $('td.Item table .chkRowSelect:first', t.Repeater).closest('tr'), pVal;
pVal = $('[colid="ParentRecId"] .ColValue', fRow).text();
P.cf['ParentRecId'] = pVal;
});
t.on('rowsRendered', function () {
var frm = AsyncWidgets.get('frmLeaseContracts');
var strMainStateId = frm.GetArgVal('StateId');
$('[colid="PaymentType"]:not(".w-grid-head-cell")').each(function () {
var ptr = $(this).closest('tr');
if ($(this).text().toLowerCase() == "return") {
$('[colid="PaymentAmount"] div', ptr).css({ 'font-weight': 'bold', 'color': 'red' });
$('[colid="PaymentAmount"] div', ptr).text('-' + $('[colid="PaymentAmount"] div', ptr).text());
}
$('[colid="PaymentAmount"] div', ptr).text(parseFloat($('[colid="PaymentAmount"] div', ptr).text()).fix(3));
});
$('[colid="StateId"]:not(".w-grid-head-cell")').each(function () {
var ptr = $(this).closest('tr');
if ($(this).text().toLowerCase() == "deleted") {
ptr.css('background', '#F1F1F1').attr('disabled', 'disabled');
$('[colid="PaymentAmount"] div', ptr).css({ 'font-weight': 'Normal', 'color': '#333333', 'text-decoration': 'line-through' });
$('.chkRowSelect', ptr).attr('disabled', 'disabled');
$('td:nth-child(3)', ptr).css('cursor', '').unbind();
$('td:nth-child(4)', ptr).css('cursor', '').unbind();
var cur = { 'background-image': 'url(' + ROOT_PATH + 'AsyncWidgets/Widgets/resources/images/RowEditForm_Disabled.png)',
'background-repeat': 'no-repeat',
'background-position': 'center center'
};
$('td:nth-child(3)', ptr).css(cur);
cur = { 'background-image': 'url(' + ROOT_PATH + 'App_Themes/eForms_Theme/Images/Print_Disabled.png)',
'background-repeat': 'no-repeat',
'background-position': 'center center'
};
$('td:nth-child(4)', ptr).css(cur);
}
});
//If Main State ID = RRCContractClosed or RRCContractCancelled
if (strMainStateId == 'RRCContractClosed' || strMainStateId == 'RRCContractCancelled') {
$('[itemno] td:nth-child(1) input', t.Repeater).attr('disabled', 'disabled');
$('[itemno] td:nth-child(3)', t.Repeater).css('cursor', '').unbind();
$('[itemno] td:nth-child(4)', t.Repeater).css('cursor', '').unbind();
$('[buttonid="new"],[buttonid="delete"],.w-grid-buttons-top-container', t.Repeater).hide();
}
else if (AsyncWidgets.user.conf.Roles.indexOf('iRen_Contracts_Lawyer') > -1) {
$('[itemno] td:nth-child(1) input', t.Repeater).attr('disabled', 'disabled');
$('[itemno] td:nth-child(3)', t.Repeater).css('cursor', '').unbind();
$('[itemno] td:nth-child(4)', t.Repeater).css('cursor', '').unbind();
$('[buttonid="new"],[buttonid="delete"],.w-grid-buttons-top-container', t.Repeater).hide();
}
else {
$('[buttonid="new"],[buttonid="delete"],.w-grid-buttons-top-container', t.Repeater).show();
}
//End If Main State ID = RRCContractClosed or RRCContractCancelled
});
t.on('onNoRecords', function () {
t.fireEvent('rowsRendered');
});
t.on('rowsRendered', function () {
$('.PrintReport', t.el).click(function () { //
var strlink = ROOT_PATH + "Pages/eForms/iRental/Reports/PrintReceiptVoucherFrPg.aspx?FormId=" + $(this).text() + "&ContractType=LST"; // +'&FormId=' + pm.SelectedKey;
console.log(strlink);
var width = 920;
var height = 600;
var left = parseInt((screen.availWidth / 2) - (width / 2)) - 15;
var top = parseInt((screen.availHeight / 2) - (height / 2));
window.open(strlink, '_blank', "'titlebar=no,resizable=1,scrollbars=yes,height=" + height + ",width=" + width + ",left=" + left + ",top=" + top + "screenX=" + left + ",screenY=" + top + "'");
return false;
});
});
t.on('onItemColGenerated', function (cf) {
if (cf.colId == 'PrintId') {
var cur = { 'background-image': 'url(' + ROOT_PATH + 'App_Themes/eForms_Theme/Images/print.png)',
'background-repeat': 'no-repeat',
'background-position': 'center center',
'cursor': 'hand'
};
var c = cf.itemCol, vl = $('.ColValue', c);
vl.hide().parent().css(cur).addClass('PrintReport');
//vl.html('<a class="EmpReportByEmpId" href="#" click="void(0);" style="" key="{PrintId}" style="text-decoration: none" > Print </a>');
//vl.html('<a class="EmpReportByEmpId" href="#" click="void(0);" style="" key="{PrintId}" style="text-decoration: none" >Print </a>');
}
});
}
cf = {
cols: {
Sequence: { width: '0px' },
RecId: { width: '0px', caption: 'ID' },
LocationReceiptId: { width: '110px', caption: 'ID' },
PrintId: { width: '30px', caption: '' },
ParentRecId: { width: '0px' },
PaymentType: { width: '65px', caption: 'Type' },
PaymentDate: { caption: 'Date', width: '90px' },
PaymentMode: { caption: 'Mode', width: '75px' },
ChequeNo: { width: '0px' },
PaymentAmount: { caption: 'Amount', width: '80px' },
ReceiptId: { caption: 'Manual ID' },
DateCreated: { caption: 'Date Created', width: '130px' },
CreatedBy: { caption: 'Created By', width: '150px' },
StateId: { width: '0px' }
},
forms: {
NewFormId: 'frmLeasePaymentDetails',
EditFormId: 'frmLeasePaymentDetails',
Keys: 'RecId'
}
};
var fn = function () {
t.on('rowsRendered', function ()
{
$('[colid="PaymentType_Audit"]:not(".w-grid-head-cell")').each(function ()
{
var ptr = $(this).closest('tr');
if ($(this).text().toLowerCase() == "return") {
$('[colid="PaymentAmount"] div', ptr).css({ 'font-weight': 'bold', 'color': 'red' });
$('[colid="PaymentAmount"] div', ptr).text('-' + $('[colid="PaymentAmount"] div', ptr).text());
}
$('[colid="PaymentAmount"] div', ptr).text(parseFloat($('[colid="PaymentAmount"] div', ptr).text()).fix(3));
});
});
t.on('onNoRecords', function () {
$('.BottomTR', t.Repeater).hide();
});
}
cf = {
cols: {
AuditTrailId: { width: '0px', caption: 'Audit ID' },
StateId: { caption: 'Status', width: '182px' },
RecId: { width: '0px', caption: 'System ID' },
ParentRecId: { width: '0px' },
PaymentType_Audit: { width: '65px', caption: 'Type' },
PaymentDate: { caption: 'Date', width: '90px' },
PaymentMode: { caption: 'Mode', width: '75px' },
ChequeNo: { width: '0px' },
PaymentAmount: { caption: 'Amount', width: '80px' },
ReceiptId: { caption: 'Manual ID' },
DateCreated: { caption: 'Date Created', width: '130px' },
CreatedBy: { caption: 'Action By', width: '132px' }
}
};
cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Payment Details'
}
}
|
var fn = function () {
t.on('beforeSearchGetForm', function (P) {
var frm = AsyncWidgets.get('frmLeaseContracts');
P.ParentRecId = frm.GetArgVal('RecId');
});
t.on('beforeRowDelete', function (P) {
var fRow = $('td.Item table .chkRowSelect:first', t.Repeater).closest('tr'), pVal;
pVal = $('[colid="ParentRecId"] .ColValue', fRow).text();
P.cf['ParentRecId'] = pVal;
});
t.on('rowsRendered', function () {
var frm = AsyncWidgets.get('frmLeaseContracts');
var strMainStateId = frm.GetArgVal('StateId');
$('[colid="Charges"]:not(".w-grid-head-cell")').each(function () {
var ptr = $(this).closest('tr');
$('[colid="Charges"] div', ptr).text(parseFloat($('[colid="Charges"] div', ptr).text()).fix(3));
});
$('[colid="StateId"]:not(".w-grid-head-cell")').each(function () {
var ptr = $(this).closest('tr');
if ($(this).text().toLowerCase() == "deleted") {
ptr.css('background', '#F1F1F1').attr('disabled', 'disabled');
$('[colid="Charges"] div', ptr).css({ 'text-decoration': 'line-through' });
$('.chkRowSelect', ptr).attr('disabled', 'disabled');
$('td:nth-child(3)', ptr).css('cursor', '').unbind();
var cur = { 'background-image': 'url(' + ROOT_PATH + 'AsyncWidgets/Widgets/resources/images/RowEditForm_Disabled.png)',
'background-repeat': 'no-repeat',
'background-position': 'center center'
};
$('td:nth-child(3)', ptr).css(cur);
}
});
//If Main State ID = RRCContractClosed or RRCContractCancelled
if (strMainStateId == 'RRCContractClosed' || strMainStateId == 'RRCContractCancelled') {
$('[itemno] td:nth-child(1) input', t.Repeater).attr('disabled', 'disabled');
$('[itemno] td:nth-child(3)', t.Repeater).css('cursor', '').unbind();
$('[buttonid="new"],[buttonid="delete"],.w-grid-buttons-top-container', t.Repeater).hide();
}
else {
$('[buttonid="new"],[buttonid="delete"],.w-grid-buttons-top-container', t.Repeater).show();
}
//End If Main State ID = RRCContractClosed or RRCContractCancelled
});
t.on('onNoRecords', function () {
t.fireEvent('rowsRendered');
});
}
cf = {
cols: {
Sequence: { width: '0px' },
RecId: { width: '70px', caption: 'ID' },
ParentRecId: { width: '0px' },
Description: { caption: 'Description' },
Charges: { caption: 'Amount', width: '90px' },
DateCreated: { caption: 'Date Created', width: '130px' },
CreatedBy: { caption: 'Created By', width: '150px' },
StateId: { width: '0px' }
},
forms: {
NewFormId: 'frmLeaseOtherCharges',
EditFormId: 'frmLeaseOtherCharges',
Keys: 'RecId'
}
};
var fn = function () {
t.on('rowsRendered', function () {
$('[colid="Charges"]:not(".w-grid-head-cell")').each(function () {
var ptr = $(this).closest('tr');
$('[colid="Charges"] div', ptr).text(parseFloat($('[colid="Charges"] div', ptr).text()).fix(3));
});
});
t.on('onNoRecords', function () {
$('.BottomTR', t.Repeater).hide();
});
}
cf = {
cols: {
AuditTrailId: { width: '0px', caption: 'Audit ID' },
StateId: { caption: 'Status', width: '111px' },
RecId: { width: '0px' },
ParentRecId: { width: '0px' },
Description: { caption: 'Description' },
Charges: { caption: 'Amount', width: '90px' },
DateCreated: { caption: 'Date Created', width: '130px' },
CreatedBy: { caption: 'Created By', width: '132px' }
}
};
var fn = function () {
t.on('show', function (args) {
var frm = AsyncWidgets.get('frmLeaseContracts');
$('[argumentid="ParentRecId"]', t.el).text(frm.GetArgVal('RecId'));
});
}
cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Other Charges'
}
}
|
|
var cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Search'
}
}
var fn = Sales.SalesContracts.grdSalesContracts;
var cf = {
cols: {
EditForm: { width: '0px' },
Sequence: { width: '0px' },
ContractDetails: { caption: 'Contract & Car Details', width: '270px' },
CustomerDetails: { caption: 'Customer Details', width: '270px' },
ContractDateTimeDetails: { caption: 'Contract Date & Time', width: '165px' },
CreationDetails: { caption: 'Creation Details', width: '165px' },
RecId: { width: '0px' }
},
forms: {
NewFormId: 'frmSalesContracts',
EditFormId: 'frmSalesContracts',
Keys: 'RecId'
}
,
DataActionParams: {
DBAction: 'SearchCarArriveNotArrive'
}
};
{RecCode}
{CarNumber}
- {Brand}
- {Model}
- {Color}
{Brand}
- {Model}
- {Color}
{ChassisNo}
{StateName}
{CustomerName}
ID: {NationalIDNo} - {Nationality}
{MobileTelephone1} {MobileTelephone2}
{ContractStartDate} {ContractStartTime}
Price: {TotalAmount:fix(3)}
Balance: {AmountDue:fix(3)}
{CarOwnerNationalIdNumber}
{CarOwnerNationalIdNumber}
{Salesman}
{DateCreated} {DateCreatedTime}
{FinanceCompany}
LPO No.: {LPONumber}
{RecId}
cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Sales Contracts'
}
}
-
Contract Details
-
Additional Amount
-
Payment Details
-
Comments
|
|
var fn = Sales.SalesContracts.grdSalesContractsPaymentDetails;
cf = {
cols: {
Sequence: { width: '0px' },
RecId: { width: '0px', caption: 'ID' },
LocationReceiptId: { width: '130px', caption: 'ID' },
PrintId: { width: '30px', caption: '' },
ParentRecId: { width: '0px' },
PaymentType: { width: '65px', caption: 'Type' },
PaymentDate: { caption: 'Date', width: '90px' },
PaymentMode: { caption: 'Mode', width: '75px' },
ChequeNo: { width: '0px' },
PaymentAmount: { caption: 'Amount', width: '80px' },
ReceiptId: { caption: 'Manual ID' },
DateCreated: { caption: 'Date Created', width: '130px' },
CreatedBy: { caption: 'Created By', width: '150px' },
StateId: { width: '0px' }
},
forms: {
NewFormId: 'frmSalesContactsPaymentDetails',
EditFormId: 'frmSalesContactsPaymentDetails',
Keys: 'RecId'
}
};
var fn = function () {
t.on('rowsRendered', function () {
$('[colid="PaymentType_Audit"]:not(".w-grid-head-cell")').each(function () {
var ptr = $(this).closest('tr');
if ($(this).text().toLowerCase() == "return") {
$('[colid="PaymentAmount"] div', ptr).css({ 'font-weight': 'bold', 'color': 'red' });
$('[colid="PaymentAmount"] div', ptr).text('-' + $('[colid="PaymentAmount"] div', ptr).text());
}
$('[colid="PaymentAmount"] div', ptr).text(parseFloat($('[colid="PaymentAmount"] div', ptr).text()).fix(3));
});
});
t.on('onNoRecords', function () {
$('.BottomTR', t.Repeater).hide();
});
}
cf = {
cols: {
AuditTrailId: { width: '0px', caption: 'Audit ID' },
StateId: { caption: 'Status', width: '182px' },
RecId: { width: '0px', caption: 'System ID' },
ParentRecId: { width: '0px' },
PaymentType_Audit: { width: '65px', caption: 'Type' },
PaymentDate: { caption: 'Date', width: '90px' },
PaymentMode: { caption: 'Mode', width: '75px' },
ChequeNo: { width: '0px' },
PaymentAmount: { caption: 'Amount', width: '80px' },
ReceiptId: { caption: 'Manual ID' },
DateCreated: { caption: 'Date Created', width: '130px' },
CreatedBy: { caption: 'Action By', width: '132px' }
}
};
var fn = Sales.SalesContracts.frmSalesContactsPaymentDetails;
cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Sales Payment Details'
}
}
|
var fn = function () {
t.on('beforeSearchGetForm', function (P) {
var frm = AsyncWidgets.get('frmSalesContracts');
var RecId = P.ParentRecId = frm.GetArgVal('RecId');
var params = {
Command: 'SEL_iRental_SalesContracts',
RecId: `${RecId}`,
};
// Assuming ServerCall is a function to make an API call
ServerCall(params, function (res) {
var res = decJSON(res)
if (res.status === 'OK') {
if (res.Response.Rows.length > 0) {
var rows = res.Response.Rows;
for (var i = 0; i < rows.length; i++) {
var row = rows[i];
var RecCode = row.RecCode;
var CarNumber = row.CarNumber;
var CustomerName = row.CustomerName;
var AmountDue = row.AmountDue;
var PaymentAmount = row.PaymentAmount;
}
var a = $('div.SalesAdditionalAmountPanelDiv')
$('[argumentid="RecCodePanel"]', a).text(RecCode);
$('[argumentid="CarNumberPanel"]', a).text(CarNumber);
$('[argumentid="CustomerNamePanel"]', a).text(CustomerName);
$('[argumentid="AmountDuePanel"]', a).text(AmountDue.toFixed(3));
$('[argumentid="PaymentAmountPanel"]', a).text(PaymentAmount.toFixed(3));
}
}
}, 'GetData');
});
t.on('beforeRowDelete', function (P) {
var fRow = $('td.Item table .chkRowSelect:first', t.Repeater).closest('tr'), pVal;
pVal = $('[colid="ParentRecId"] .ColValue', fRow).text();
P.cf['ParentRecId'] = pVal;
});
t.on('rowsRendered', function () {
var frm = AsyncWidgets.get('frmSalesContracts');
var strMainStateId = frm.GetArgVal('StateId');
$('[colid="AdditionalAmount"]:not(".w-grid-head-cell")').each(function () {
var ptr = $(this).closest('tr');
$('[colid="AdditionalAmount"] div', ptr).text(parseFloat($('[colid="AdditionalAmount"] div', ptr).text()).fix(3));
});
$('[colid="StateId"]:not(".w-grid-head-cell")').each(function () {
var ptr = $(this).closest('tr');
if ($(this).text().toLowerCase() == "deleted") {
ptr.css('background', '#F1F1F1').attr('disabled', 'disabled');
$('[colid="Charges"] div', ptr).css({ 'text-decoration': 'line-through' });
$('.chkRowSelect', ptr).attr('disabled', 'disabled');
$('td:nth-child(3)', ptr).css('cursor', '').unbind();
var cur = {
'background-image': 'url(' + ROOT_PATH + 'AsyncWidgets/Widgets/resources/images/RowEditForm_Disabled.png)',
'background-repeat': 'no-repeat',
'background-position': 'center center'
};
$('td:nth-child(3)', ptr).css(cur);
}
});
//If Main State ID = RRCContractClosed or RRCContractCancelled
//if (strMainStateId == 'RRCContractClosed' || strMainStateId == 'RRCContractCancelled') {
// $('[itemno] td:nth-child(1) input', t.Repeater).attr('disabled', 'disabled');
// $('[itemno] td:nth-child(3)', t.Repeater).css('cursor', '').unbind();
// $('[buttonid="new"],[buttonid="delete"],.w-grid-buttons-top-container', t.Repeater).hide();
//}
//else {
// $('[buttonid="new"],[buttonid="delete"],.w-grid-buttons-top-container', t.Repeater).show();
//}
//End If Main State ID = RRCContractClosed or RRCContractCancelled
var frm = AsyncWidgets.get('frmSalesContracts');
//var RecCode = $('[argumentid="RecCode"]', frm.el).text();
var RecId = $('[argumentid="RecId"]', frm.el).val();
var a = $('div.SalesAdditionalAmountPanelDiv')
if ($('table.SalesAdditonalAmountPanel', a).length > 0) {
$('table.SalesAdditonalAmountPanel', a).show();
}
});//end of rows renderd
t.on('onNoRecords', function () {
t.fireEvent('rowsRendered');
});
$('.ADCloseForm', t.el).on('click', function () {
var a = $('div.SalesAdditionalAmountPanelDiv')
if ($('table.SalesAdditonalAmountPanel', a).length > 0) {
$('table.SalesAdditonalAmountPanel', a).show();
}
});
$('[tabid="AdditionalAmount"]', t.el).on('click', function () {
var a = $('div.SalesAdditionalAmountPanelDiv')
if ($('table.SalesAdditonalAmountPanel', a).length > 0) {
$('table.SalesAdditonalAmountPanel', a).show();
}
});
}
cf = {
cols: {
Sequence: { width: '0px' },
RecId: { width: '70px', caption: 'ID' },
ParentRecId: { width: '0px' },
Description: { caption: 'Description', width: '380px' },
AdditionalAmount: { caption: 'Amount', width: '80px' },
DateCreated: { caption: 'Date Created', width: '130px' },
CreatedBy: { caption: 'Created By', width: '100px' },
StateId: { width: '0px' }
},
forms: {
NewFormId: 'frmAdditionalAmount',
EditFormId: 'frmAdditionalAmount',
Keys: 'RecId'
}
};
var fn = function () {
t.on('rowsRendered', function () {
$('[colid="AdditionalAmount"]:not(".w-grid-head-cell")').each(function () {
var ptr = $(this).closest('tr');
$('[colid="AdditionalAmount"] div', ptr).text(parseFloat($('[colid="AdditionalAmount"] div', ptr).text()).fix(3));
});
});
t.on('onNoRecords', function () {
$('.BottomTR', t.Repeater).hide();
});
}
cf = {
cols: {
AuditTrailId: { width: '0px', caption: 'Audit ID' },
StateId: { caption: 'Status', width: '111px' },
RecId: { width: '0px' },
ParentRecId: { width: '0px' },
Description: { caption: 'Description', width: '380px' },
AdditionalAmount: { caption: 'Amount', width: '80px' },
DateCreated: { caption: 'Date Created', width: '130px' },
CreatedBy: { caption: 'Created By', width: '132px' }
}
};
var fn = function () {
t.on('show', function (args) {
var frm = AsyncWidgets.get('frmSalesContracts');
$('[argumentid="ParentRecId"]', t.el).text(frm.GetArgVal('RecId'));
var a = $('div.SalesAdditionalAmountPanelDiv')
if ($('table.SalesAdditonalAmountPanel', a).length > 0) {
$('table.SalesAdditonalAmountPanel', a).show();
}
});
t.on('onLoadedValues', function (p) {
debugger;
if (p.res.status == "OK") {
if (p.res.Response.Rows) {
var row = p.res.Response.Rows;
for (var i = 0; i < row.length; i++) {
var ResRow = row[i];
var AdditionalAmount = ResRow.AdditionalAmount;
}
}
$('[argumentid="AdditionalAmount"]', t.el).val(AdditionalAmount.toFixed(3));
}
//var frm = AsyncWidgets.get('frmAdditionalAmount');
//var AdditionalAmount = val('AdditionalAmount',frm.el)
var a = $('div.SalesAdditionalAmountPanelDiv')
if ($('table.SalesAdditonalAmountPanel', a).length > 0) {
$('table.SalesAdditonalAmountPanel', a).show();
}
});
}
cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Additional Amount'
}
}
|
|
cf = {
header: {
Style: {},
Visible: true,
Collapsed: true,
HeadText: 'Search'
}
}
var fn = function ()
{
t.on('rowsRendered', function ()
{
$('[colid="Price"]:not(".w-grid-head-cell")').each(function ()
{
var ptr = $(this).closest('tr');
$('[colid="Price"] div', ptr).text(parseFloat($('[colid="Price"] div', ptr).text()).fix(3));
});
});
}
cf = {
cols: {
Sequence: { width: '0px' },
RecId: { width: '0px' },
RecCode: { width: '0px' },
CarNumber: { caption: 'Car No.', width: '80px' },
ChassisNo: { caption: 'ChassisNo.', width: '135px' },
CarFor: { width: '70px' },
BrandId: { caption: 'Brand', width: '80px' },
ModelId: { caption: 'Model', width: '100px' },
TypeId: { caption: 'Type', width: '50px' },
YearId: { caption: 'Year', width: '55px' },
ColorId: { caption: 'Color', width: '60px' },
RegistrationDate: { caption: "Reg'Date", width: '90px' },
//CurrentMileage: { caption: 'Mileage', width: '75px' },
/*CarType: { caption: 'CarType', width: '55px' },*/
Price: { caption: 'Price.', width: '80px' },
CarLocationId: { caption: 'Location', width: '75px' },
CarStatusId: { caption: 'Status', width: '63px' }
},
forms: {
NewFormId: 'frmCarForSales',
EditFormId: 'frmCarForSales',
Keys: 'ChassisNo'
}
,
DataActionParams: {
DBAction : 'SearchChassisNo'
}
};
var fn = function () {
//t.on('show', function (args) {
// $('.ElemDisabled', t.el).removeClass('ElemDisabled');
// $('[argumentid="CarLocationId"],[argumentid="CarStatusId"],[argumentid="CurrentMileage"]', t.el).removeAttr('disabled');
//});
//t.on('onLoadedValues', function (args) {
// $('[argumentid="action"]', t.el).val("update");
// if ($('[argumentid="ContractNo"]', t.el).text() != '') {
// $('[argumentid="CarLocationId"],[argumentid="CarStatusId"],[argumentid="CurrentMileage"]', t.el).attr('disabled', 'disabled');
// }
// //var res = args.res;
// //if (res.status == 'OK')
// //{
// //}
//});
//t.on('onComboFilled', function () {
// $('.ElemDisabled', t.el).removeClass('ElemDisabled');
// $('input[disabled="disabled"]:not([type="radio"]),textarea[disabled="disabled"],select[disabled="disabled"]', t.el).addClass('ElemDisabled');
//});
}
cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Car For Sale'
}
}
cf = {
header: {
Style: {},
Visible: true,
Collapsed: true,
HeadText: 'Search'
}
}
var fn = function ()
{
t.on('rowsRendered', function ()
{
$('[colid="Price"]:not(".w-grid-head-cell")').each(function ()
{
var ptr = $(this).closest('tr');
$('[colid="Price"] div', ptr).text(parseFloat($('[colid="Price"] div', ptr).text()).fix(3));
});
});
}
var cf = {
cols: {
Sequence: { width: '0px' },
RecId: { width: '0px' },
BrandId: { caption: 'Brand', width: '130px' },
ModelId: { caption: 'Model', width: '150px' },
YearId: { caption: 'Year', width: '55px' },
Price: { caption: 'Car Price', width: '95px' },
Comments: { caption: 'Comments', width: '95px' },
},
forms: {
NewFormId: 'frmSaleCarPriceDetails',
EditFormId: 'frmSaleCarPriceDetails',
Keys: 'RecId'
}
};
var fn = function ()
{
t.on('onLoadedValues', function (args)
{
var res = args.res;
if (res.status == 'OK')
{
var CarPrice = $('[argumentid="Price"]', t.el).val();
var CarPriceToFixed = parseFloat(CarPrice);
$('[argumentid="Price"]').val(CarPriceToFixed.toFixed(3));
}
});
t.on('Show', function (args)
{
});
$('[argumentid="Price"]').blur(function ()
{
var value = $(this).val();
value = parseFloat(value).toFixed(3);
$(this).val(value);
});
}
cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Sales Car Price'
}
}
var cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Search'
}
}
var fn = function ()
{
t.on('rowsRendered', function ()
{
$('[colid="SparePartUnitPrice"]:not(".w-grid-head-cell")').each(function ()
{
var ptr = $(this).closest('tr');
$('[colid="SparePartUnitPrice"] div', ptr).text(parseFloat($('[colid="SparePartUnitPrice"] div', ptr).text()).fix(3));
});
});
}
cf = {
cols: {
Sequence: { width: '0px' },
RecId: { width: '0px' },
ItemId: { caption: 'Item ID', width: '65px' },
SparePartSerialNo: { caption: 'Item Code', width: '45px' },
SparePartName: { caption: 'Description', width: '135px' },
SparePartSerialNo: { caption: 'Item Code', width: '110px' },
SparePartQuantity: { caption: 'Qty', width: '45px' },
BrandId: { caption: 'Brand', width: '70px' },
ModelId: { caption: 'Model', width: '60px' },
SparePartRackfNo: { caption: 'Rack', width: '60px' },
SparePartShelfNo: { caption: 'Shelf', width: '60px' },
SparePartUnitPrice: { caption: 'Price', width: '60px' },
SparePartRemarks: { caption: 'Remarks', width: '100px' },
SparePartImage: { caption: 'Image', width: '80px' },
StoreLocation: { caption: 'Store', width: '65px' },
PurchasingFrom: { caption: 'From', width: '60px' },
SearchOrderNo: { width: '0px' }
},
forms: {
NewFormId: 'frmSparePartInventory',
EditFormId: 'frmSparePartInventory',
Keys: 'RecId'
}
//,
//DataActionParams: {
// DBAction : 'SearchChassisNo'
//}
};
cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Spare Part Inventory'
}
}
var cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Search'
}
}
var fn = function ()
{
var ColClick = function ()
{
$('.EditForm.ColValue', $(this).closest('tr')).trigger('click');
return false;
};
t.on('rowsRendered', function ()
{
$('.StateName', t.el).each(function ()
{
$('.chkRowSelect', $(this).closest('tr')).attr('disabled', 'disabled');
if ($(this).text().indexOf('Created') > -1) {
$('.chkRowSelect', $(this).closest('tr')).removeAttr('disabled');
$(this).css('color', 'Green');
}
else if ($(this).text().indexOf('Open') > -1) {
$(this).css('color', 'Green');
}
else if ($(this).text() != '{StateName}') {
$('.chkRowSelect', $(this).closest('tr')).attr('disabled', 'disabled');
}
var ptr = $(this).closest('tr');
if ($(this).text().indexOf('Contract Closed - Payment Cleared') > -1)
{
ptr.css('background', '#F1F1F1').attr('disabled', 'disabled');
}
else if ($(this).text().indexOf('Contract Cancelled') > -1)
{
ptr.css('background', '#F1F1F1').attr('disabled', 'disabled');
}
else if ($(this).text().indexOf('Closed') > -1)
{
ptr.css('background', '#F1F1F1').attr('disabled', 'disabled');
$(this).css('color', 'Red');
}
else if ($(this).text().indexOf('Canceled') > -1) {
ptr.css('background', '#F1F1F1').attr('disabled', 'disabled');
$(this).css('color', 'Red');
}
else if ($(this).text().indexOf('Contract Open - Car In') > -1)
{
$(this).css('color', 'Red');
}
else if ($(this).text().indexOf('With Legal - Contract Open - Car Out') > -1)
{
$(this).css('color', 'Red');
}
else if ($(this).text().indexOf('With Legal - Contract Open - Car In') > -1)
{
$(this).css('color', 'Red');
}
else if ($(this).text().indexOf('With Legal - Contract Closed - Pending Payment') > -1)
{
$(this).css('color', 'Red');
}
else if ($(this).text().indexOf('Contract Closed - Pending Payment') > -1)
{
$(this).css('color', 'Red');
}
});
var cols = $('table[itemno] td:not(.RowSelect,.EditForm)', t.el).css('cursor', 'pointer').click(ColClick);
$('.ColValue', cols).css('cursor', 'pointer').click(ColClick);
});
}
var cf = {
cols: {
EditForm: { width: '0px' },
Sequence: { width: '0px' },
ContractDetails: { caption: 'Car Details', width: '270px' },
CustomerDetails: { caption: 'Customer Details', width: '270px' },
ContractDateTimeDetails: { caption: "Date's", width: '165px' },
CreationDetails: { caption: 'Creation Details', width: '165px' },
RecId: { width: '0px' }
},
forms: {
NewFormId: 'frmCarServiceDetails',
EditFormId: 'frmCarServiceDetails',
Keys: 'RecId'
}
};
{RecCode}
{CarNumber} - {BrandId} - {ModelId} - {CarYear}
{StateName}
- {TimeElapsed}
{CustomerName}
ID: {NationalIDNo} - {Nationality}
{MobileTelephone1} {MobileTelephone2}
Receive: {CarRecivedDate}
Deliverd: {CarDeliverdDate}
{CreatedBy}
{DateCreated} {DateCreatedTime}
KM: {LastServiceKM}
{RecId}
cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Car Service Details'
}
}
cf =
{
header:
{
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Search'
}
}
var fn = function ()
{
var ColClick = function ()
{
$('.EditForm.ColValue', $(this).closest('tr')).trigger('click');
return false;
};
t.on('rowsRendered', function () {
$('.StateName', t.el).each(function () {
$('.chkRowSelect', $(this).closest('tr')).attr('disabled', 'disabled');
if ($(this).text().indexOf('Created') > -1) {
$('.chkRowSelect', $(this).closest('tr')).attr('disabled');
$(this).css('color', 'Green');
}
else if ($(this).text().indexOf('Open') > -1) {
$(this).css('color', 'Green');
}
else if ($(this).text() != '{StateName}') {
$('.chkRowSelect', $(this).closest('tr')).attr('disabled', 'disabled');
}
var ptr = $(this).closest('tr');
if ($(this).text().indexOf('Contract Closed - Payment Cleared') > -1) {
ptr.css('background', '#F1F1F1').attr('disabled', 'disabled');
}
else if ($(this).text().indexOf('Contract Cancelled') > -1) {
ptr.css('background', '#F1F1F1').attr('disabled', 'disabled');
}
else if ($(this).text().indexOf('Closed') > -1) {
ptr.css('background', '#F1F1F1').attr('disabled', 'disabled');
$(this).css('color', 'Red');
}
else if ($(this).text().indexOf('Canceled') > -1) {
ptr.css('background', '#F1F1F1').attr('disabled', 'disabled');
$(this).css('color', 'Red');
}
else if ($(this).text().indexOf('Contract Open - Car In') > -1) {
$(this).css('color', 'Red');
}
else if ($(this).text().indexOf('With Legal - Contract Open - Car Out') > -1) {
$(this).css('color', 'Red');
}
else if ($(this).text().indexOf('With Legal - Contract Open - Car In') > -1) {
$(this).css('color', 'Red');
}
else if ($(this).text().indexOf('With Legal - Contract Closed - Pending Payment') > -1) {
$(this).css('color', 'Red');
}
else if ($(this).text().indexOf('Contract Closed - Pending Payment') > -1) {
$(this).css('color', 'Red');
}
$('.CarDetails').each(function ()
{
var carNumber = $(this).find('.ftitle').text().trim();
var content = $(this).text().trim();
// Check if any of the fields are empty, contain only white space, or a hyphen
if (!carNumber || carNumber === '-' || content.includes("{Brand}") || content.includes("{Model}") || content.includes("{CarYear}") ||
content.includes(" - ") || content.includes(" ") || content.includes(" -"))
{
$(this).hide();
}
});
//$('.ServiceNo').each(function ()
//{
// var ServiceNo = $(this).find('.ftitle').text().trim();
// var content = $(this).text().trim();
// // Check if any of the fields are empty, contain only white space, or a hyphen
// if (!ServiceNo || ServiceNo === '-' || content.includes("{ServiceNo}")||
// content.includes(" - ") || content.includes(" ") || content.includes(" -"))
// {
// $(this).hide();
// }
//});
});
var cols = $('table[itemno] td:not(.RowSelect,.EditForm)', t.el).css('cursor', 'pointer').click(ColClick);
$('.ColValue', cols).css('cursor', 'pointer').click(ColClick);
});
}
var cf = {
cols: {
EditForm: { width: '0px' },
Sequence: { width: '0px' },
ContractDetails: { caption: 'Invoice Details', width: '300px' },
CustomerDetails: { caption: 'Customer Details', width: '270px' },
ContractDateTimeDetails: { caption: 'Payment Details', width: '165px' },
CreationDetails: { caption: 'Creation Details', width: '165px' },
RecId: { width: '0px' }
},
forms: {
NewFormId: 'frmSparePartInventoryInvoice',
EditFormId: 'frmSparePartInventoryInvoice',
Keys: 'RecId'
}
};
{InvRecCode}
Invoice For:
{ServiceNo}
Invoice For:
{InvoiceDetails}
{CarNumber} - {Brand} - {Model} - {CarYear}
{StateName}
{CustomerName}
ID: {NationalIDNo} - {Nationality}
{MobileTelephone1} {MobileTelephone2}
Price: {GrandTotal:fix(3)}
Balance: {Balance:fix(3)}
{ChassisNo}
{CreatedBy}
{DateCreated} {DateCreatedTime}
{InvoiceType}
{RecId}
cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Spare Part Inventory Details'
}
}
|
//var fn = Sales.SalesContracts.grdSalesContractsPaymentDetails;
cf = {
cols: {
Sequence: { width: '0px' },
RecId: { width: '0px', caption: 'ID' },
LocationReceiptId: { width: '130px', caption: 'ID' },
PrintId: { width: '30px', caption: '' },
ParentRecId: { width: '0px' },
PaymentType: { width: '65px', caption: 'Type' },
PaymentDate: { caption: 'Date', width: '90px' },
PaymentMode: { caption: 'Mode', width: '75px' },
ChequeNo: { width: '0px' },
PaymentAmount: { caption: 'Amount', width: '80px' },
ReceiptId: { caption: 'Manual ID' },
DateCreated: { caption: 'Date Created', width: '130px' },
CreatedBy: { caption: 'Created By', width: '150px' },
StateId: { width: '0px' }
},
forms: {
NewFormId: 'frmInvoicePaymentDetails',
EditFormId: 'frmInvoicePaymentDetails',
Keys: 'RecId'
}
};
var fn = function () {
t.on('rowsRendered', function () {
$('[colid="PaymentType_Audit"]:not(".w-grid-head-cell")').each(function () {
var ptr = $(this).closest('tr');
if ($(this).text().toLowerCase() == "return") {
$('[colid="PaymentAmount"] div', ptr).css({ 'font-weight': 'bold', 'color': 'red' });
$('[colid="PaymentAmount"] div', ptr).text('-' + $('[colid="PaymentAmount"] div', ptr).text());
}
$('[colid="PaymentAmount"] div', ptr).text(parseFloat($('[colid="PaymentAmount"] div', ptr).text()).fix(3));
});
});
t.on('onNoRecords', function () {
$('.BottomTR', t.Repeater).hide();
});
}
cf = {
cols: {
AuditTrailId: { width: '0px', caption: 'Audit ID' },
StateId: { caption: 'Status', width: '182px' },
RecId: { width: '0px', caption: 'System ID' },
ParentRecId: { width: '0px' },
PaymentType_Audit: { width: '65px', caption: 'Type' },
PaymentDate: { caption: 'Date', width: '90px' },
PaymentMode: { caption: 'Mode', width: '75px' },
ChequeNo: { width: '0px' },
PaymentAmount: { caption: 'Amount', width: '80px' },
ReceiptId: { caption: 'Manual ID' },
DateCreated: { caption: 'Date Created', width: '130px' },
CreatedBy: { caption: 'Action By', width: '132px' }
}
};
cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Invoice Payment Details'
}
}
|
var cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Search'
}
}
var fn = function ()
{
var ColClick = function ()
{
$('.EditForm.ColValue', $(this).closest('tr')).trigger('click');
return false;
};
t.on('rowsRendered', function ()
{
$('.chkRowSelect', t.el).attr('disabled', 'disabled');
$('.StateName', t.el).each(function ()
{
$('.chkRowSelect', $(this).closest('tr')).attr('disabled');
//if ($(this).text().indexOf('Created') > -1)
//{
// $(this).css('color', 'Green');
//}
//else if ($(this).text() != '{StateName}')
//{
// $('.chkRowSelect', $(this).closest('tr')).attr('disabled', 'disabled');
//}
//var ptr = $(this).closest('tr');
//if ($(this).text().indexOf('Contract Closed - Payment Cleared') > -1)
//{
// ptr.css('background', '#F1F1F1').attr('disabled', 'disabled');
//}
//else if ($(this).text().indexOf('Contract Cancelled') > -1)
//{
// ptr.css('background', '#F1F1F1').attr('disabled', 'disabled');
//}
//else if ($(this).text().indexOf('Contract Open - Car In') > -1)
//{
// $(this).css('color', 'Red');
//}
//else if ($(this).text().indexOf('With Legal - Contract Open - Car Out') > -1)
//{
// $(this).css('color', 'Red');
//}
//else if ($(this).text().indexOf('With Legal - Contract Open - Car In') > -1)
//{
// $(this).css('color', 'Red');
//}
//else if ($(this).text().indexOf('With Legal - Contract Closed - Pending Payment') > -1)
//{
// $(this).css('color', 'Red');
//}
//else if ($(this).text().indexOf('Contract Closed - Pending Payment') > -1)
//{
// $(this).css('color', 'Red');
//}
});
var cols = $('table[itemno] td:not(.RowSelect,.EditForm)', t.el).css('cursor', 'pointer').click(ColClick);
$('.ColValue', cols).css('cursor', 'pointer').click(ColClick);
});
}
var cf = {
cols: {
EditForm: { width: '0px' },
Sequence: { width: '0px' },
ContractDetails: { caption: 'Car Details', width: '270px' },
CustomerDetails: { caption: 'Customer Details', width: '270px' },
ContractDateTimeDetails: { caption: 'Other Details', width: '165px' },
CreationDetails: { caption: 'Creation Details', width: '165px' },
RecId: { width: '0px' }
},
forms: {
NewFormId: 'frmCarAndServiceDetails',
EditFormId: 'frmCarAndServiceDetails',
Keys: 'RecId'
}
//,
//DataActionParams: {
// DBAction: 'SearchCarArriveNotArrive'
//}
};
{RecCode}
{CarNumber}{OtherCarNumber} - {BrandId}{Brand} - {ModelId}{Model} - {CarYear}
{StateName}
{CustomerName}
ID: {NationalIDNo} - {Nationality}
{MobileTelephone1} {MobileTelephone2}
Car For: {CarFor}
{ChassisNo}
{LPONumber}
{CarOwnerNationalIdNumber}
{CarOwnerNationalIdNumber}
{CreatedBy}
{DateCreated} {DateCreatedTime}
{RecId}
cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Car & Service Details'
}
}
cf = {
header: {
Style: {},
Visible: true,
Collapsed: true,
HeadText: 'Search'
}
}
cf = {
cols: {
Sequence: { width: '0px' },
RecId: { width: '0px' },
RecCode: { width: '0px' },
NationalIDNo: { caption: 'National ID No.' },
MobileTelephone1: { caption: 'Mobile Telephone' },
CustomerStatus: { caption: 'Status' }
},
forms: {
NewFormId: 'frmBeneficiaryManagement',
EditFormId: 'frmBeneficiaryManagement',
Keys: 'RecId'
}
};
cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Beneficiary Management'
}
}
var cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Search'
}
}
var fn = function (t) {
var ColClick = function () {
$('.EditForm.ColValue', $(this).closest('tr')).trigger('click');
return false;
};
t.on('rowsRendered', function () {
$('.StateName', t.el).each(function () {
//if ($(this).text().indexOf('Created - Reservation') > -1) {
//$('.chkRowSelect', $(this).closest('tr')).removeAttr('disabled');
//}
//else if ($(this).text() != '{StateName}') {
$('.chkRowSelect', $(this).closest('tr')).attr('disabled', 'disabled');
//}
var ptr = $(this).closest('tr');
if ($(this).text().indexOf('Contract Closed - Payment Cleared') > -1) {
ptr.css('background', '#F1F1F1').attr('disabled', 'disabled');
}
if ($(this).text().indexOf('Payment Cleared - Car NR') > -1) {
ptr.css('background', '#F1F1F1').attr('disabled', 'disabled');
}
else if ($(this).text().indexOf('Contract Cancelled') > -1) {
ptr.css('background', '#F1F1F1').attr('disabled', 'disabled');
}
else if ($(this).text().indexOf('Contract Open - Car In') > -1) {
$(this).css('color', 'Red');
}
else if ($(this).text().indexOf('With Legal - Contract Open - Car Out') > -1) {
$(this).css('color', 'Red');
}
else if ($(this).text().indexOf('With Legal - Contract Open - Car In') > -1) {
$(this).css('color', 'Red');
}
else if ($(this).text().indexOf('With Legal - Contract Closed - Pending Payment') > -1) {
$(this).css('color', 'Red');
}
else if ($(this).text().indexOf('Contract Closed - Pending Payment') > -1) {
$(this).css('color', 'Red');
}
else if ($(this).text().indexOf('Pending Payment - Car Out') > -1) {
$(this).css('color', 'Red');
}
else if ($(this).text().indexOf('Pending Payment - Car In') > -1) {
$(this).css('color', 'Red');
}
});
var cols = $('table[itemno] td:not(.RowSelect,.EditForm)', t.el).css('cursor', 'pointer').click(ColClick);
$('.ColValue', cols).css('cursor', 'pointer').click(ColClick);
//var $('[argumentid="CarReservationMode"]',t.el)
});
}
var cf = {
cols: {
EditForm: { width: '0px' },
Sequence: { width: '0px' },
LeadgerDetails: { caption: ' Details', width: '270px' },
CustomerDetails: { caption: 'Beneficery Details', width: '270px' },
LeadgerDateTimeDetails: { caption: 'Total Amount', width: '165px' },
CreationDetails: { caption: 'Creation Details', width: '165px' },
RecId: { width: '0px' }
},
forms: {
NewFormId: 'frmLedgerManagement',
EditFormId: 'frmLedgerManagement',
Keys: 'RecId'
}
,
DataActionParams: {
DBAction: 'SearchCarArriveNotArrive'
}
};
{LedgerManagementRecCode}
Title: {LedgerTitle}
Transaction Type: {TransactionType}
Ledger Date: {TransactionDate}
Beneficiary Type: {BeneficiaryType}
Company Name: {CompanyName}
Person Name: {PersonName}
Total Credit: {TotalCredit:fix(3)}
Total Debit: {TotalDebit:fix(3)}
Diffrence: {DebitCreditTotal:fix(3)}
{CreatedBy}
{DateCreated} {DateCreatedTime}
{RecId}
var fn = function () {
t.on('onLoadedValues', function (args) {
// console.log("Extracted Amount:", amount);
});
}
cf = {
header: {
Style: {},
Visible: true,
Collapsed: false,
HeadText: 'Ledger Management'
}
}
|
|