private static string GetAtrribute(
     XmlElement ele,
     string atrrName)
 {
     return(GroupSchemas.GetAtrribute(ele, atrrName, string.Empty));
 }
        private static void SetGroupSchemaProperty(
            string localeid,
            GroupSchema gs,
            XmlElement groupSchemaElement)
        {
            gs.ID       = GroupSchemas.GetAtrribute(groupSchemaElement, GroupSchemas._xmlKeyID);
            gs.bDefault = Boolean.Parse(GroupSchemas.GetAtrribute(
                                            groupSchemaElement,
                                            GroupSchemas._xmlKeybDefault,
                                            "False"));
            string s = GroupSchemas.GetAtrribute(
                groupSchemaElement,
                GroupSchemas._xmlKeybShowDetial,
                "False");

            if (s == "1")
            {
                s = "True";
            }
            else if (s == "0")
            {
                s = "False";
            }
            gs.bShowDetail = Boolean.Parse(s);
            //添加是否显示小计
            string showSubTotal = GroupSchemas.GetAtrribute(
                groupSchemaElement,
                GroupSchemas._xmlKeyIsShowSubTotal);
            bool bShowSubTotal = false;

            if (!string.IsNullOrEmpty(showSubTotal))
            {
                if (showSubTotal.ToLower() == "true")
                {
                    bShowSubTotal = true;
                }
            }

            gs.bShowSubTotal    = bShowSubTotal;
            gs.bGroupItemsAhead = Boolean.Parse(GroupSchemas.GetAtrribute(
                                                    groupSchemaElement,
                                                    GroupSchemas._xmlKeybGroupItemsAhead,
                                                    "True"));
            int showStyle = Convert.ToInt32(GroupSchemas.GetAtrribute(
                                                groupSchemaElement,
                                                GroupSchemas._xmlKeyShowStyle,
                                                "2"));

            gs.ShowStyle = (ShowStyle)showStyle;
            if (gs.ShowStyle == ShowStyle.NoGroupSummary) //折叠展现默认显示小计,即折叠的一级元素
            {
                gs.bShowSubTotal = true;
            }
            gs.SwitchItem = GroupSchemas.GetAtrribute(
                groupSchemaElement,
                GroupSchemas._xmlKeySwitchItem,
                "");
            //modifytime赋值
            gs.GuidVersion = GroupSchemas.GetAtrribute(
                groupSchemaElement,
                GroupSchemas._xmlKeyVersion,
                "");
            gs.LastUserGuid = GroupSchemas.GetAtrribute(
                groupSchemaElement,
                GroupSchemas._xmlKeyLastUserGuid,
                "");
            gs.bShowCrossNullColumn = Boolean.Parse(GroupSchemas.GetAtrribute(
                                                        groupSchemaElement,
                                                        GroupSchemas._xmlKeyShowNullCrossColumn,
                                                        "True"));
            gs.BShowHorizonTotal = Boolean.Parse(GroupSchemas.GetAtrribute(
                                                     groupSchemaElement,
                                                     GroupSchemas._xmlKeyBShowHorizonTotal,
                                                     "True"));
        }