Example #1
0
        void funSetGrid()
        {
            try
            {
                CtlGrid.Cols      = 5;
                CtlGrid.CanEdit   = true;
                CtlGrid.CanDelete = true;

                CtlGrid.Columns[0].Header = "ID";
                CtlGrid.Columns[1].Header = "Script Name";
                CtlGrid.Columns[2].Header = "Script URL";
                CtlGrid.Columns[3].Header = "Script Type";
                CtlGrid.Columns[4].Header = "Is Active";
                CtlGrid.Columns[4].IsIcon = true;
                //CtlGrid.Columns[5].Header = "CreatedBy";

                CtlGrid.Columns[0].BindTo("ID");
                CtlGrid.Columns[1].BindTo("ScriptName");
                CtlGrid.Columns[2].BindTo("ScriptURL");
                //  CtlGrid.Columns[3].BindTo("ScriptTypeID");
                CtlGrid.Columns[3].BindTo("Scripttype");
                CtlGrid.Columns[4].BindTo("IsActive");
                //CtlGrid.Columns[5].BindTo("CreatedBy");

                objScriptCollection = ClsScriptCollection.GetAll();
                CtlGrid.Bind(objScriptCollection);
            }
            catch (Exception ex)
            {
                VMuktiHelper.ExceptionHandler(ex, "funSetGrid", "CtlScript.xaml.cs");
            }
        }
Example #2
0
        //Function for setting data in grid
        void funSetGrid()
        {
            try
            {
                CtlGrid.Cols = 4;
                //CtlGrid.CanEdit = true;
                //CtlGrid.CanDelete = true;

                //set header of ctlgrid
                CtlGrid.Columns[0].Header = "Group ID";
                CtlGrid.Columns[1].Header = "Group Name";
                CtlGrid.Columns[2].Header = "Is Active";
                CtlGrid.Columns[2].IsIcon = true;
                CtlGrid.Columns[3].Header = "Description";

                CtlGrid.Columns[0].BindTo("ID");
                CtlGrid.Columns[1].BindTo("GroupName");
                CtlGrid.Columns[2].BindTo("IsActive");
                CtlGrid.Columns[3].BindTo("Description");

                //Calling the GetAll() function for getting all data
                _MyGroups = Group.Business.ClsGroupCollection.GetAll();
                //Bind data to CtlGrid
                CtlGrid.Bind(_MyGroups);
            }
            catch (Exception ex)
            {
                VMuktiHelper.ExceptionHandler(ex, "funSetGrid", "ctlUserGroup.xaml.cs");
            }
        }
Example #3
0
        public void funSetGrid()
        {
            try
            {
                CtlGrid.Cols = 4;
                //CtlGrid.CanEdit = true;
                //CtlGrid.CanDelete = true;

                CtlGrid.Columns[0].Header = "ID";
                CtlGrid.Columns[1].Header = "RoleName";
                CtlGrid.Columns[2].Header = "Description";
                CtlGrid.Columns[3].Header = "IsAdmin";
                CtlGrid.Columns[3].IsIcon = true;
                //CtlGrid.Columns[4].Header = "CreatedBy";
                //CtlGrid.Columns[5].Header = "ModifiedBy";
                //CtlGrid.Columns[6].Header = "CreatedDate";
                //CtlGrid.Columns[7].Header = "ModifiedDate";

                CtlGrid.Columns[0].BindTo("ID");
                CtlGrid.Columns[1].BindTo("RoleName");
                CtlGrid.Columns[2].BindTo("Description");
                CtlGrid.Columns[3].BindTo("IsAdmin");
                //CtlGrid.Columns[4].BindTo("CreatedBy");
                //CtlGrid.Columns[5].BindTo("ModifiedBy");
                //CtlGrid.Columns[6].BindTo("CreatedDate");
                //CtlGrid.Columns[7].BindTo("ModifiedDate");

                objRoleCollection = ClsRoleCollection.GetAll();
                CtlGrid.Bind(objRoleCollection);
            }
            catch (Exception ex)
            {
                VMuktiHelper.ExceptionHandler(ex, "FncSetGrid", "CtlRole.xaml.cs");
            }
        }
        void funSetGrid()
        {
            try
            {
                CtlGrid.Cols      = 4;
                CtlGrid.CanEdit   = true;
                CtlGrid.CanDelete = true;

                CtlGrid.Columns[0].Header = "ID";
                CtlGrid.Columns[1].Header = "Format Name";
                CtlGrid.Columns[2].Header = "Format Type";
                CtlGrid.Columns[3].Header = "Description";
                //CtlGrid.Columns[4].Header = "CreatedDate";
                //CtlGrid.Columns[5].Header = "CreatedBy";
                //CtlGrid.Columns[6].Header = "ModifiedDate";
                //CtlGrid.Columns[7].Header = "ModifeiedBy";

                CtlGrid.Columns[0].BindTo("ID");
                CtlGrid.Columns[1].BindTo("LeadFormatName");
                CtlGrid.Columns[2].BindTo("FormatType");
                CtlGrid.Columns[3].BindTo("Description");
                //CtlGrid.Columns[4].BindTo("CreatedDate");
                //CtlGrid.Columns[5].BindTo("CreatedBy");
                //CtlGrid.Columns[6].BindTo("ModifiedDate");
                //CtlGrid.Columns[7].BindTo("ModifiedBy");

                objLeadCollection = ClsLeadFormatBusinessCollection.GetAll();
                CtlGrid.Bind(objLeadCollection);
                //objLeadCollection = null;
            }
            catch (Exception ex)
            {
                VMuktiHelper.ExceptionHandler(ex, "funSetGrid()", "ctlLeadFormatDesigner.xaml.cs");
            }
        }
Example #5
0
        void funSetGrid()
        {
            try
            {
                CtlGrid.Cols = 4;

                CtlGrid.Columns[0].Header = "CallingList ID";
                CtlGrid.Columns[1].Header = "CallingList Name";
                CtlGrid.Columns[2].Header = "IsActive";
                CtlGrid.Columns[2].IsIcon = true;
                CtlGrid.Columns[3].Header = "IsDNCList";
                //CtlGrid.Columns[4].Header = "CreatedDate";
                //CtlGrid.Columns[5].Header = "CreatedBy";
                //CtlGrid.Columns[6].Header = "ModifiedDate";
                //CtlGrid.Columns[7].Header = "ModifeiedBy";

                CtlGrid.Columns[0].BindTo("ID");
                CtlGrid.Columns[1].BindTo("ListName");
                CtlGrid.Columns[2].BindTo("IsActive");
                CtlGrid.Columns[3].BindTo("IsDNCList");
                //CtlGrid.Columns[4].BindTo("CreatedDate");
                //CtlGrid.Columns[5].BindTo("CreatedBy");
                //CtlGrid.Columns[6].BindTo("ModifiedDate");
                //CtlGrid.Columns[7].BindTo("ModifiedBy");

                objCallCollection = ClsCallingListCollection.GetAll();
                CtlGrid.Bind(objCallCollection);
            }
            catch (Exception ex)
            {
                VMuktiHelper.ExceptionHandler(ex, "funSetGrid", "ctlCalllingList.xaml.cs");
            }
        }
Example #6
0
        //This function set the Grid with existing available data.
        void funSetGrid()
        {
            try
            {
                //Set the Grid.
                CtlGrid.Cols      = 4;
                CtlGrid.CanEdit   = true;
                CtlGrid.CanDelete = true;

                //Set the Header of the column of the grid.
                CtlGrid.Columns[0].Header = "ID";
                CtlGrid.Columns[1].Header = "CRM Name";
                CtlGrid.Columns[2].Header = "CRM URL";

                CtlGrid.Columns[3].Header = "Is Active";
                CtlGrid.Columns[3].IsIcon = true;
                //CtlGrid.Columns[5].Header = "CreatedBy";

                //Bind the column of the Grid.
                CtlGrid.Columns[0].BindTo("ID");
                CtlGrid.Columns[1].BindTo("CRMName");
                CtlGrid.Columns[2].BindTo("CRMURL");

                CtlGrid.Columns[3].BindTo("IsActive");
                //CtlGrid.Columns[5].BindTo("CreatedBy");

                //Calls the method of CRM.Business to retrive existing CRM.
                objCRMCollection = ClsCRMCollection.GetAll();
                CtlGrid.Bind(objCRMCollection);
            }
            catch (Exception ex)
            {
                VMuktiHelper.ExceptionHandler(ex, "funSetGrid()", "CtlCRM.xaml.cs");
            }
        }
Example #7
0
        private void fncSetGrid()
        {
            try
            {
                CtlGrid.Cols = 5;
                CtlGrid.Columns[0].Header = "Treatment ID";
                CtlGrid.Columns[1].Header = "Name";
                CtlGrid.Columns[2].Header = "Description";
                CtlGrid.Columns[3].Header = "Type";
                CtlGrid.Columns[4].Header = "IsActive";
                CtlGrid.Columns[4].IsIcon = true;

                CtlGrid.Columns[0].BindTo("ID");
                CtlGrid.Columns[1].BindTo("TreatmentName");
                CtlGrid.Columns[2].BindTo("Description");
                CtlGrid.Columns[3].BindTo("Type");
                CtlGrid.Columns[4].BindTo("IsInclude");

                objTreatmentCollection = ClsTreatmentCollection.GetAll();
                CtlGrid.Bind(objTreatmentCollection);
            }
            catch (Exception ex)
            {
                VMuktiHelper.ExceptionHandler(ex, "fncSetGrid()", "CtlTreatment.xaml.cs");
            }
        }
Example #8
0
        public void funSetGrid()
        {
            try
            {
                CtlGrid.ClearGrid();
                CtlGrid.Cols = 12;
                //CtlGrid.CanEdit = true;
                //CtlGrid.CanDelete = true;

                CtlGrid.Columns[0].Header = "User ID";
                CtlGrid.Columns[1].Header = "Display Name";
                CtlGrid.Columns[2].Header = "Role Name";
                CtlGrid.Columns[3].Header = "First Name";
                CtlGrid.Columns[4].Header = "Last Name";
                CtlGrid.Columns[5].Header = "Email";
                CtlGrid.Columns[6].Header = "Password";
                CtlGrid.Columns[7].Header = "Is Active";
                CtlGrid.Columns[7].IsIcon = true;
                //CtlGrid.Columns[8].Header = "Created Date";
                //CtlGrid.Columns[9].Header = "Created By";
                //CtlGrid.Columns[10].Header = "Modified Date";
                //CtlGrid.Columns[11].Header = "Modified By";
                CtlGrid.Columns[8].Header  = "RatePerHour";
                CtlGrid.Columns[9].Header  = "OverTimeRate";
                CtlGrid.Columns[10].Header = "DoubleRatePerHour";
                CtlGrid.Columns[11].Header = "DoubleOverTimeRate";

                CtlGrid.Columns[0].BindTo("ID");
                CtlGrid.Columns[1].BindTo("DisplayName");
                CtlGrid.Columns[2].BindTo("RoleName");
                CtlGrid.Columns[3].BindTo("FName");
                CtlGrid.Columns[4].BindTo("LName");
                CtlGrid.Columns[5].BindTo("EMail");
                CtlGrid.Columns[6].BindTo("PassWord");
                CtlGrid.Columns[7].BindTo("IsActive");
                //CtlGrid.Columns[8].BindTo("CreatedDate");
                //CtlGrid.Columns[9].BindTo("CreatedBy");
                //CtlGrid.Columns[10].BindTo("ModifiedDate");
                //CtlGrid.Columns[11].BindTo("ModifiedBy");
                CtlGrid.Columns[8].BindTo("RatePerHour");
                CtlGrid.Columns[9].BindTo("OverTimeRate");
                CtlGrid.Columns[10].BindTo("DoubleRatePerHour");
                CtlGrid.Columns[11].BindTo("DoubleOverTimeRate");

                objUserCollection = User.Business.UserCollection.GetAll();
                CtlGrid.Bind(objUserCollection);
            }
            catch (Exception ex)
            {
                VMuktiHelper.ExceptionHandler(ex, "FncSetGrid", "CtlUserInfo.xaml.cs");
            }
        }
Example #9
0
        private void funSetGrid()
        {
            //This function set the Grid with existing available data.
            try
            {
                //Set the Grid.
                CtlGrid.Cols      = 3;
                CtlGrid.CanEdit   = true;
                CtlGrid.CanDelete = true;

                //Set the Header of the column of the grid.
                CtlGrid.Columns[0].Header = "ID";
                CtlGrid.Columns[1].Header = "CRM Name";
                CtlGrid.Columns[2].Header = "Is Active";
                CtlGrid.Columns[2].IsIcon = true;

                //Bind the column of the Grid.
                CtlGrid.Columns[0].BindTo("ID");
                CtlGrid.Columns[1].BindTo("CRMName");
                CtlGrid.Columns[2].BindTo("IsActive");

                //Calls the method of CRM.Business to retrive existing CRM.
                objCRMCollection = ClsCRMsCollection.GetAll();
                CtlGrid.Bind(objCRMCollection);

                cmbCRM.Items.Clear();
                for (int i = 0; i < objCRMCollection.Count; i++)
                {
                    ComboBoxItem cmb1 = new ComboBoxItem();
                    cmb1.Content = objCRMCollection[i].CRMName;
                    cmb1.Tag     = objCRMCollection[i].ID;
                    cmbCRM.Items.Add(cmb1);
                }
            }
            catch (Exception ex)
            {
                VMuktiHelper.ExceptionHandler(ex, "funSetGrid()", "CtlCRM.xaml.cs");
            }
        }
Example #10
0
        //function for set data in Grid
        void funSetGrid()
        {
            try
            {
                CtlGrid.Cols = 4;
                //CtlGrid.CanEdit = true;
                //CtlGrid.CanDelete = true;

                //set header for Grid
                CtlGrid.Columns[0].Header = "ID";
                CtlGrid.Columns[1].Header = "Desposition Name";
                CtlGrid.Columns[2].Header = "Is Active";
                CtlGrid.Columns[2].IsIcon = true;
                CtlGrid.Columns[3].Header = "Description";
                //CtlGrid.Columns[4].Header = "CreatedDate";
                //CtlGrid.Columns[5].Header = "CreatedBy";
                //CtlGrid.Columns[6].Header = "ModifiedDate";
                //CtlGrid.Columns[7].Header = "ModifeiedBy";

                //Binding data for Grid
                CtlGrid.Columns[0].BindTo("ID");
                CtlGrid.Columns[1].BindTo("DespositionName");
                CtlGrid.Columns[2].BindTo("IsActive");
                CtlGrid.Columns[3].BindTo("Description");
                //CtlGrid.Columns[4].BindTo("CreatedDate");
                //CtlGrid.Columns[5].BindTo("CreatedBy");
                //CtlGrid.Columns[6].BindTo("ModifiedDate");
                //CtlGrid.Columns[7].BindTo("ModifiedBy");

                //calling the function to get all Disposition from Disposition.Business
                objDisCollection = ClsDispositionCollection.GetAll();
                CtlGrid.Bind(objDisCollection);
            }
            catch (Exception ex)
            {
                VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "funSetGrid()", "clsDisposition.xaml.cs");
            }
        }
Example #11
0
        void funSetGrid()
        {
            try
            {
                CtlGrid.Cols = 4;
                //CtlGrid.CanEdit = true;
                //CtlGrid.CanDelete = true;

                CtlGrid.Columns[0].Header = "ID";
                CtlGrid.Columns[1].Header = "DispositionListName";
                CtlGrid.Columns[2].Header = "Is Active";
                CtlGrid.Columns[2].IsIcon = true;
                CtlGrid.Columns[3].Header = "Description";
                //CtlGrid.Columns[4].Header = "CreatedDate";
                //CtlGrid.Columns[5].Header = "CreatedBy";
                //CtlGrid.Columns[6].Header = "ModifiedDate";
                //CtlGrid.Columns[7].Header = "ModifeiedBy";

                CtlGrid.Columns[0].BindTo("ID");
                CtlGrid.Columns[1].BindTo("DispositionListName");
                CtlGrid.Columns[2].BindTo("IsActive");
                CtlGrid.Columns[3].BindTo("Description");
                //CtlGrid.Columns[4].BindTo("CreatedDate");
                //CtlGrid.Columns[5].BindTo("CreatedBy");
                //CtlGrid.Columns[6].BindTo("ModifiedDate");
                //CtlGrid.Columns[7].BindTo("ModifiedBy");

                objDispListCollection = ClsDispositionListCollection.GetAll();
                CtlGrid.Bind(objDispListCollection);
            }

            catch (Exception ex)
            {
                VMuktiAPI.VMuktiHelper.ExceptionHandler(ex, "funSetGrid()", "CtlDispositionList.xaml.cs");
            }
        }