Select a Background Color

	
                                        

                                            var fn = function () {
                                                
                                                AsyncWidgets.user.isLogged({
                                                    callBack: function (isLogged) {
                                                        if (isLogged) {
                                                            //****Enabled Session Resume Option On Refresh if User Logged In*****//
                                                            $(document).timeout();
                                                            //****End****//

                                                            //****Load Proxy User On Refresh if User Logged In*****//
                                                            var f = AsyncWidgets.get('frmMenu_Header');
                                                            f.LoadCombo(f, $('[argumentid="ProxyUsers"]', f.el));
                                                            f.on('onComboFilled', function (cf) {
                                                                if ($(cf.combo).attr('argumentid') == "ProxyUsers")
                                                                    $('option:first', cf.combo).remove();
                                                            });
                                                            //****End****//
                                                        }
                                                    }
                                                });


                                                $('[argumentid="UserName"]', t.el).focus();

                                                $('[argumentid="UserName"],[argumentid="UserPassword"]', t.el).keyup(function () {
                                                    if (!!t.msg) t.msg.hide();
                                                });
                                                t.login = function (t, cf, btn) {
                                                    var t = this;
                                                    if (!!t.msg) t.msg.hide();
                                                    var cf = decJSON($(btn).attr('conf'));
                                                    if (!t.validator.isValid()) {
                                                        t.showInvalid(t);
                                                        return false;
                                                    }
                                                    var inv = new AsyncWidgets.RAInvoker();
                                                    inv.on('onSuccess', function (res) {
                                                        debugger;;
                                                        var res = decJSON(res);
                                                        if (res.status == 'OK') {
                                                            t.hide();
                                                            if (res.Response.Authenticated) {
                                                                var arRoles = res.Response.Roles.split(',');

                                                                if (arRoles.length) {
                                                                    for (var i = 0; i < arRoles.length; i++) {
                                                                        //if(arRoles[i])
                                                                        $('[displayroles*=' + arRoles[i] + ']').show();
                                                                    }
                                                                }
                                                                AsyncWidgets.user.conf = res.Response.Conf;
                                                                var frmMH = AsyncWidgets.get('frmMenu_Header').show(); //LoggedUser
                                                                $('.LoggedUser', frmMH.el).html(res.Response.Name);
                                                                
                                                                if (!window.StartupWidgetId ) {
                                                                    StartupWidgetId = "frmInbox";
                                                                }
                                                                else if (!AsyncWidgets.has(StartupWidgetId)) {
                                                                    StartupWidgetId = "frmInbox";
                                                                }

                                                                AsyncWidgets.get(StartupWidgetId).hide();
                                                                AsyncWidgets.get(StartupWidgetId).show();

                                                                AsyncWidgets.user.login();

                                                                //****Enabled Session Resume Option On Log In*****//
                                                                $(document).timeout();
                                                                //****End****//

                                                                //****Load Proxy User On Log In*****//
                                                                var f = AsyncWidgets.get('frmMenu_Header');
                                                                f.LoadCombo(f, $('[argumentid="ProxyUsers"]', f.el));
                                                                f.on('onComboFilled', function (cf) {
                                                                    if ($(cf.combo).attr('argumentid') == "ProxyUsers")
                                                                        $('option:first', cf.combo).remove();
                                                                });
                                                                //****End****//

                                                            }
                                                            else {

                                                                t.show();
                                                                var txt = $('[argumentid="UserName"]', t.el), pos = txt.offset(),
                                                                    msg = $('<div class="wrongpassword tmp_rtxt" style="background:#73ABCB;position:absolute;display:none;color:white;font-weight:bold;padding-top:2px;padding-bottom:2px;padding-right:10px;padding-left:10px;">Invalid User ID or Password!</div>');
                                                                if (!t.msg) {
                                                                    $('body').append(msg);
                                                                    t.msg = msg;
                                                                }
                                                                t.msg.css({ left: pos.left, top: pos.top + 24 }).show('fast');

                                                                if (!t.hideDT) t.hideDT = new Ext.util.DelayedTask(function () {
                                                                    t.msg.hide('fast');
                                                                });
                                                                t.hideDT.delay(3000);

                                                                //alert('Unable to logged in!');
                                                            }
                                                        }
                                                        else {
                                                            //$('.wrongpassword', t.el).html('Unable to login, contact system administrator!');
                                                            //alert('Unable to logged in!');
                                                        }

                                                        $(t.el).unmask();
                                                        //$('body').unmask();
                                                    });
                                                    inv.on('onFailure', function (res) {
                                                        $(t.el).unmask();
                                                        //$('body').unmask();
                                                        //$('.wrongpassword', t.el).html('Connection Error, contact system administrator!');
                                                        //alert('Problem occured while connection to web server');
                                                    });
                                                    t.$el.mask('Please wait while loading ...');
                                                    //$('body').mask('Please wait while loading ...');
                                                    ServiceInfo = getForm(t.el, null, null);
                                                    //debugger;
                                                    inv.invokeRA({
                                                        params: ["ActorId", cf.ActorId, "ActionId", cf.ActionId, "ServiceInfo", ServiceInfo]
                                                    });

                                                };
                                            };
                                        
                                    
Home
User ID:
Password:
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.
	
                                        
                                            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'
                                                }
                                            }
                                        
                                    
Name:
Organization:
Department:
Email:
Please contact helpdesk or systems administrator to change above details if incorrect...
Home - Payroll Information:
Email Notification:
	
                                        
                                            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'
                                                        }
                                                    }
                                                
                                            
Proxy User:
Is Disabled:
			
                                        
	
                                                
                                                    var fn = function () {
                                                        t.on('show', function (args) {
                                                            t.setParams({ reset: true });
                                                        });
                                                    };
                                                
                                            
	
                                                
                                                    cf = {
                                                        header: {
                                                            Style: {},
                                                            Visible: true,
                                                            Collapsed: false,
                                                            HeadText: 'Proxy Access'
                                                        }
                                                    }
                                                
                                            
Proxy User:
Is Disabled:
	
                                        
                                            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'
                                                        }
                                                    }
                                                
                                            
Type Name
			
                                        
                                     
	
                                                         
                                                             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'
                                                                         }
                                                                     }
                                                                 
                                                             
Name Code Sub Child
Description
			
                                                         
	
                                                                 
                                                                     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'
                                                                         }
                                                                     }
                                                                 
                                                             
Name Code Sub Child
Description
			
                                        
	
                                                
                                                    cf = {
                                                        header: {
                                                            Style: {},
                                                            Visible: true,
                                                            Collapsed: false,
                                                            HeadText: 'List of Values - Parent Details'
                                                        }
                                                    }
                                                
                                            
Type Name
	
                                        
                                            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'
                                                        }
                                                    }
                                                
                                            
KPI Name:
Container Name:
Query Type:
Query:
Table Name:
Column Name:
Is Column Ref:
Chart Width:
Order ID:
Is Disabled:
			
                                        
	
                                                
                                                    cf = {
                                                        header: {
                                                            Style: {},
                                                            Visible: true,
                                                            Collapsed: false,
                                                            HeadText: 'KPI Setup'
                                                        }
                                                    }
                                                
                                            
KPI Name:
Container Name:
Query Type:
Query:
Table Name:
Column Name:
Is Column Ref:
Chart Width:
Order ID:
Is Disabled:
	
                                        
                                            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'
                                                        }
                                                    }
                                                
                                            
Organization Name:
Is Disabled:
			
                                        
                                     
	
                                                         
                                                             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'
                                                                         }
                                                                     }
                                                                 
                                                             
Department Name:
Is Disabled:
			
                                                         
	
                                                                 
                                                                     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'
                                                                         }
                                                                     }
                                                                 
                                                             
Department Name:
Is Disabled:
			
                                        
	
                                                
                                                    cf = {
                                                        header: {
                                                            Style: {},
                                                            Visible: true,
                                                            Collapsed: false,
                                                            HeadText: 'Organization Setup'
                                                        }
                                                    }
                                                
                                            
Organization Name:
Is Disabled:
	
                                        
                                            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'
                                                                    }
                                                                }
                                                            
                                                        
Process Name*:
Role Name*:
Role ID*:
Is Disabled:
			
                                                    
	
                                                                 
                                                                     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'
                                                                    }
                                                                }
                                                            
                                                        
Process Name*:
Role Name*:
Role ID*:
Is Disabled:
	
                                        
                                            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'
                                                        }
                                                    }
                                                
                                            
Menu Name:
Is Disabled:
			
                                        
                                                         
	
                                                                            
                                                                                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'
                                                                                             }
                                                                                         }
                                                                                     
                                                                                 
Menu Name:
Show Widget:
Role*:
Is Disabled:
			
                                                                             
	
                                                                                     
                                                                                         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'
                                                                                             }
                                                                                         }
                                                                                     
                                                                                 
Menu Name:
Show Widget:
Role*:
Is Disabled:
			
                                        
	
                                                
                                                    cf = {
                                                        header: {
                                                            Style: {},
                                                            Visible: true,
                                                            Collapsed: false,
                                                            HeadText: 'Menu Configuration'
                                                        }
                                                    }
                                                
                                            
Menu Name:
Is Disabled:
	
                
                    cf = {
                        header: {
                            Style: {},
                            Visible: true,
                            Collapsed: true,
                            HeadText: 'Search'
                        }
                    }
                
            
Organization  Department  User Id   
  Directors   Managers   Secretories Disabled

	
          
              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: true,
                            HeadText: 'Search'
                        }
                    }
                
            
Emp ID Civil ID Employee Name Job Title Status
	
                
                    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)'
                        }
                    }
                
            

	
                
                    cf = {
                        header: {
                            Style: {},
                            Visible: true,
                            Collapsed: true,
                            HeadText: 'Search'
                        }
                    }
                    
                
Code Customer Name National ID No. Mobile Telephone Status
	
            
                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: true,
                            HeadText: 'Search'
                        }
                    }
                
            
Car For Brand Model Year Type Car Location Status
 
Car No. Chassis No. Normal Insurance Expiry (Days) Full Insurance Expiry (Days)  
	
                
                    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'
                        }
                    };
                
            

	
                
                    cf = {
                        header: {
                            Style: {},
                            Visible: true,
                            Collapsed: true,
                            HeadText: 'Search'
                        }
                    }
                    
                
Rate Type Brand Model Year Is Disable  
	
            
                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: true,
                            HeadText: 'Search'
                        }
                    }
                    
                
Car No. Out Location In Location Driver  
	
            
                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: 'Search'
                        }
                    }
                    
                
Contract No. Car Number Brand Model Year
 
Out Location National ID No. Customer Name Contract Status  
	
                
                    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'
                        }
                    }
                    
                
Chassis No. Car No. Brand Model Year Type
	
                
                    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.' }
                        
                    }
                };
            
            
	
                
                  var  cf = { 
                        header: {
                            Style: {},
                            Visible: true,
                            Collapsed: false,
                            HeadText: 'Search'
                        }
                    }
                    
                
Contract No. Car Number Brand Model Year
 
Out Location National ID No. Customer Name Contract Status  
	
                

                    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'
                        }
                    }
                    
                
Chassis No. Car No. Brand Model Year Type
	
            
                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.' }
                        
                    }
                };
            
            
	
                

                    var cf = {
                        header: {
                            Style: {},
                            Visible: true,
                            Collapsed: false,
                            HeadText: 'Search'
                        }
                    }
                
            
Contract No. LPO Number Finance Company Salesman Contract Status
Car No. Chassis No. Brand Model Color
Customer Name National ID No. Mobile Telephone Car Owner National ID No. Manual Receipt ID
        View Clear
	
                
                    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)}
 
                                     

                                     
                                        

                    
                                     
{Salesman}
{DateCreated} {DateCreatedTime}
{FinanceCompany}
LPO No.: {LPONumber}
                                {RecId}
                                

	
                
                    cf = {
                        header: {
                            Style: {},
                            Visible: true,
                            Collapsed: true,
                            HeadText: 'Search'
                        }
                    }
                
            
Car No. Chassis No. Brand Model Year Type
Location Registration Date From Registration Date To Car Status
View Clear
	
                

                    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'
                        }
                    };
                
            

	
                
                    cf = {
                        header: {
                            Style: {},
                            Visible: true,
                            Collapsed: true,
                            HeadText: 'Search'
                        }
                    }
                    
                
Brand Model Year Type
View Clear
	
                        
                            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 cf = {
                        header: {
                            Style: {},
                            Visible: true,
                            Collapsed: false,
                            HeadText: 'Search'
                        }
                    }
                
            
Item ID Item Code Description Brand Model Store
Purchasing From Rack No. Shelf No. Quantity Unit Price
View Clear
	
                

                    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'
                        //}
                    };
                
            

	
                

                    var cf = {
                        header: {
                            Style: {},
                            Visible: true,
                            Collapsed: false,
                            HeadText: 'Search'
                        }
                    }
                
            
Service No. Car No. Customer Name National ID No. Mobile Telephone
Receive Date Deliverd Date Status    
  View Clear
	
                

                    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: 'Search'
                        }
                    }
                
            
Invoice No.  Car No.  Brand Model Status
Service No. Customer Name National ID No. Mobile Telephone
View Clear
	
                

                    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)}
                                     
                                     
{CreatedBy}
{DateCreated} {DateCreatedTime}
{InvoiceType}
                                {RecId}
                                

	
                

                    var cf = {
                        header: {
                            Style: {},
                            Visible: true,
                            Collapsed: false,
                            HeadText: 'Search'
                        }
                    }
                
            
Car No.  Chassis No.  Brand Model Year
Car For Customer Name National ID No. Mobile Telephone
View Clear
	
                
                    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}
                                
{CustomerName}
ID: {NationalIDNo} - {Nationality}
{MobileTelephone1}  {MobileTelephone2}
                                     
Car For: {CarFor}
 
                                     
                                     
                                     
                                        
                    
                                     
                                     
{CreatedBy}
{DateCreated} {DateCreatedTime}
                                {RecId}
                                

	
                
                    cf = {
                        header: {
                            Style: {},
                            Visible: true,
                            Collapsed: true,
                            HeadText: 'Search'
                        }
                    }
                
                
Beneficiary Type Company Name Person Name National ID No. Mobile Telephone
	
            
                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'
                    }
                };
            
            
	
                

                    var cf = {
                        header: {
                            Style: {},
                            Visible: true,
                            Collapsed: false,
                            HeadText: 'Search'
                        }
                    }
                
            
Code Transaction Type Customer Name
	
                
                    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}
                                

Terms of Use |  Privacy Policy