Exemplo n.º 1
0
        private void radListView_Reminders_ColumnCreating(object sender, Telerik.WinControls.UI.ListViewColumnCreatingEventArgs e)
        {
            if (e.Column.FieldName == "techname")
            {
                e.Column.HeaderText = "Tech";
            }
            if (e.Column.FieldName == "store")
            {
                e.Column.HeaderText = "Store Number";
                e.Column.Width      = 80;
            }
            if (e.Column.FieldName == "city")
            {
                e.Column.HeaderText = "City";
            }
            if (e.Column.FieldName == "statecd")
            {
                e.Column.HeaderText = "State";
                e.Column.Width      = 50;
            }

            if (e.Column.FieldName == "contactphone")
            {
                e.Column.HeaderText = "Contact Phone";
                e.Column.Width      = 100;
            }
            if (e.Column.FieldName == "techphone")
            {
                e.Column.Visible = false;
            }
            if (e.Column.FieldName == "phonecarrier")
            {
                e.Column.Visible = false;
            }
            if (e.Column.FieldName == "floortype")
            {
                e.Column.HeaderText = "Floor Type";
                e.Column.Width      = 100;
            }
            if (e.Column.FieldName == "servicedate")
            {
                e.Column.HeaderText = "Service Date";
                e.Column.Width      = 100;
            }
            if (e.Column.FieldName == "servicetime")
            {
                e.Column.HeaderText = "Service Time";
                e.Column.Width      = 100;
            }
            if (e.Column.FieldName == "note")
            {
                e.Column.HeaderText = "Comments";
            }
            if (e.Column.FieldName == "isconfirmed")
            {
                e.Column.HeaderText = "Confirmed";
                e.Column.Width      = 80;
            }
        }
Exemplo n.º 2
0
        private void radListView_Reminders_ColumnCreating(object sender, Telerik.WinControls.UI.ListViewColumnCreatingEventArgs e)
        {
            if (e.Column.FieldName == "Id")
            {
                e.Column.HeaderText = "Id";
            }

            if (e.Column.FieldName == "Name")
            {
                e.Column.HeaderText = "Name";
            }

            if (e.Column.FieldName == "AlternateName")
            {
                e.Column.HeaderText = "AlternateName";
            }

            if (e.Column.FieldName == "LegalEntity")
            {
                e.Column.HeaderText = "LegalEntity";
                e.Column.Visible    = false;
            }

            if (e.Column.FieldName == "CompanyRelationship")
            {
                e.Column.HeaderText = "CompanyRelationship";
                e.Column.Visible    = false;
            }

            if (e.Column.FieldName == "ChainCode")
            {
                e.Column.HeaderText = "ChainCode";
            }

            if (e.Column.FieldName == "Role")
            {
                e.Column.HeaderText = "Role";
                e.Column.Visible    = false;
            }

            if (e.Column.FieldName == "Address")
            {
                e.Column.HeaderText = "Address";
            }

            if (e.Column.FieldName == "City")
            {
                e.Column.HeaderText = "City";
            }

            if (e.Column.FieldName == "State")
            {
                e.Column.HeaderText = "State";
            }
            if (e.Column.FieldName == "PostalCode")
            {
                e.Column.HeaderText = "PostalCode";
            }
            if (e.Column.FieldName == "BusinessRegionID")
            {
                e.Column.HeaderText = "BusinessRegionID";
                e.Column.Visible    = false;
            }

            if (e.Column.FieldName == "StartDate")
            {
                e.Column.HeaderText = "StartDate";
                e.Column.Visible    = false;
            }
            if (e.Column.FieldName == "EndDate")
            {
                e.Column.HeaderText = "EndDate";
                e.Column.Visible    = false;
            }

            if (e.Column.FieldName == "Language")
            {
                e.Column.HeaderText = "Language";
                e.Column.Visible    = false;
            }

            if (e.Column.FieldName == "Phone")
            {
                e.Column.HeaderText = "Phone";
                e.Column.Visible    = false;
            }

            if (e.Column.FieldName == "Mobile")
            {
                e.Column.HeaderText = "Mobile";
            }

            if (e.Column.FieldName == "MobileCarrier")
            {
                e.Column.HeaderText = "MobileCarrier";
            }

            if (e.Column.FieldName == "IsTxmMsgActive")
            {
                e.Column.HeaderText = "IsTxmMsgActive";
            }

            if (e.Column.FieldName == "Fax")
            {
                e.Column.HeaderText = "Fax";
                e.Column.Visible    = false;
            }

            if (e.Column.FieldName == "email")
            {
                e.Column.HeaderText = "email";
            }

            if (e.Column.FieldName == "emailOffice")
            {
                e.Column.HeaderText = "emailOffice";
            }

            if (e.Column.FieldName == "Website")
            {
                e.Column.HeaderText = "Website";
                e.Column.Visible    = false;
            }

            if (e.Column.FieldName == "AccountGroup")
            {
                e.Column.HeaderText = "AccountGroup";
                e.Column.Visible    = false;
            }

            if (e.Column.FieldName == "TaxID")
            {
                e.Column.HeaderText = "TaxID";
                e.Column.Visible    = false;
            }

            if (e.Column.FieldName == "BankAccount")
            {
                e.Column.HeaderText = "BankAccount";
                e.Column.Visible    = false;
            }

            if (e.Column.FieldName == "PayTermsCode")
            {
                e.Column.HeaderText = "PayTermsCode";
                e.Column.Visible    = false;
            }

            if (e.Column.FieldName == "PaymentFeeAgreetmentCode")
            {
                e.Column.HeaderText = "PaymentFeeAgreetmentCode";
                e.Column.Visible    = false;
            }

            if (e.Column.FieldName == "InsuranceType")
            {
                e.Column.HeaderText = "InsuranceType";
                e.Column.Visible    = false;
            }

            if (e.Column.FieldName == "InsuranceCompany")
            {
                e.Column.HeaderText = "InsuranceCompany";
                e.Column.Visible    = false;
            }

            if (e.Column.FieldName == "InsuranceStartDate")
            {
                e.Column.HeaderText = "InsuranceStartDate";
                e.Column.Visible    = false;
            }

            if (e.Column.FieldName == "InsuranceExpirationDate")
            {
                e.Column.HeaderText = "InsuranceExpirationDate";
                e.Column.Visible    = false;
            }

            if (e.Column.FieldName == "UserId")
            {
                e.Column.HeaderText = "UserId";
                e.Column.Visible    = false;
            }

            if (e.Column.FieldName == "Password")
            {
                e.Column.HeaderText = "Password";
                e.Column.Visible    = false;
            }

            if (e.Column.FieldName == "ManagedBy")
            {
                e.Column.HeaderText = "ManagedBy";
                e.Column.Visible    = false;
            }

            if (e.Column.FieldName == "IsActive")
            {
                e.Column.HeaderText = "IsActive";
            }

            if (e.Column.FieldName == "CreatedBy")
            {
                e.Column.HeaderText = "CreatedBy";
                e.Column.Visible    = false;
            }

            if (e.Column.FieldName == "UpdatedBy")
            {
                e.Column.HeaderText = "UpdatedBy";
                e.Column.Visible    = false;
            }

            if (e.Column.FieldName == "UpdatedAt")
            {
                e.Column.HeaderText = "UpdatedAt";
                e.Column.Visible    = false;
            }

            if (e.Column.FieldName == "IsFirstLogin")
            {
                e.Column.HeaderText = "IsFirstLogin";
                e.Column.Visible    = false;
            }

            if (e.Column.FieldName == "FirstLoginSignUpCode")
            {
                e.Column.HeaderText = "FirstLoginSignUpCode";
                e.Column.Visible    = false;
            }

            if (e.Column.FieldName == "MobileInvitation")
            {
                e.Column.HeaderText = "MobileInvitation";
                e.Column.Visible    = false;
            }

            if (e.Column.FieldName == "photo")
            {
                e.Column.HeaderText = "photo";
                e.Column.Visible    = false;
            }
        }