Ejemplo n.º 1
0
        public override string GetLocalizedString(TreeListStringId id)
        {
            switch (id)
            {
            case TreeListStringId.ColumnCustomizationText:
                return("自定义显示字段");

            case TreeListStringId.MenuColumnBestFit:
                return("自动调整本列宽度");

            case TreeListStringId.MenuColumnBestFitAllColumns:
                return("自动调整所有列宽度");

            case TreeListStringId.MenuColumnColumnCustomization:
                return("显示/隐藏列");

            case TreeListStringId.MenuColumnSortAscending:
                return("升序排序");

            case TreeListStringId.MenuColumnSortDescending:
                return("降序排序");

            default:
                return(base.GetLocalizedString(id));
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 获取编号对应的中文
        /// </summary>
        /// <param name="id">编号</param>
        /// <returns>编号对应的中文</returns>
        public override string GetLocalizedString(TreeListStringId id)
        {
            switch (id)
            {
            case TreeListStringId.ColumnCustomizationText: return("自定显示字段");

            case TreeListStringId.ColumnNamePrefix: return("列名首标");

            case TreeListStringId.InvalidNodeExceptionText: return("是否确定要修改?");

            case TreeListStringId.MenuColumnBestFit: return("最佳匹配");

            case TreeListStringId.MenuColumnBestFitAllColumns: return("最佳匹配(所有列)");

            case TreeListStringId.MenuColumnColumnCustomization: return("列选择");

            case TreeListStringId.MenuColumnSortAscending: return("升序排序");

            case TreeListStringId.MenuColumnSortDescending: return("降序排序");

            case TreeListStringId.MenuFooterAllNodes: return("全部节点");

            case TreeListStringId.MenuFooterAverage: return("平均");

            case TreeListStringId.MenuFooterAverageFormat: return("平均值={0:#.##}");

            case TreeListStringId.MenuFooterCount: return("计数");

            case TreeListStringId.MenuFooterCountFormat: return("{0}");

            case TreeListStringId.MenuFooterMax: return("最大值");

            case TreeListStringId.MenuFooterMaxFormat: return("最大值={0}");

            case TreeListStringId.MenuFooterMin: return("最小值");

            case TreeListStringId.MenuFooterMinFormat: return("最小值={0}");

            case TreeListStringId.MenuFooterNone: return("无");

            case TreeListStringId.MenuFooterSum: return("合计");

            case TreeListStringId.MenuFooterSumFormat: return("合计={0:#.##}");

            case TreeListStringId.MultiSelectMethodNotSupported: return("OptionsBehavior.MultiSelect未激活时,指定方法不能工作.");

            case TreeListStringId.PrintDesignerDescription: return("为当前的树状列表设置不同的打印选项.");

            case TreeListStringId.PrintDesignerHeader: return("打印设置");
            }

            return(base.GetLocalizedString(id));
        }
Ejemplo n.º 3
0
 public override string GetLocalizedString(TreeListStringId id)
 {
     if (dicGridStringIdValues.ContainsKey(id.ToString()))
     {
         return dicGridStringIdValues[id.ToString()];
     }
     else
     {
         string str = base.GetLocalizedString(id);
         return str;
     }
 }
Ejemplo n.º 4
0
 /// <summary>
 /// GetLocalizedString重载
 /// </summary>
 /// <param name="id">TreeListStringId</param>
 /// <returns>string</returns>
 public override string GetLocalizedString(TreeListStringId id)
 {
     if (CusLocalizedKeyValue != null)
     {
         string gridStringDisplay = string.Empty;
         foreach (KeyValuePair <TreeListStringId, string> gridLocalizer in CusLocalizedKeyValue)
         {
             if (gridLocalizer.Key.Equals(id))
             {
                 gridStringDisplay = gridLocalizer.Value;
                 break;
             }
         }
         return(gridStringDisplay);
     }
     return(base.GetLocalizedString(id));
 }
Ejemplo n.º 5
0
        /// <summary>
        /// Grid Control에서 보여지는 Text를 설정합니다.
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public override string GetLocalizedString(TreeListStringId id)
        {
            switch (id)
            {
            case TreeListStringId.ColumnCustomizationText: return("컬럼 사용자지정");

            case TreeListStringId.MenuColumnBestFit: return("최적너비");

            case TreeListStringId.MenuColumnBestFitAllColumns: return("최적너비(전체 컬럼)");

            case TreeListStringId.MenuColumnSortAscending: return("오름차순 정렬");

            case TreeListStringId.MenuColumnSortDescending: return("내림차순 정렬");

            case TreeListStringId.MenuColumnColumnCustomization: return("컬럼 사용자지정");
            }
            return(base.GetLocalizedString(id));
        }
Ejemplo n.º 6
0
        public override string GetLocalizedString(TreeListStringId id)
        {
            // lam sau
            switch (id)
            {
            case TreeListStringId.MenuColumnBestFit: return("Điều chỉnh kích thước cột");

            case TreeListStringId.MenuColumnBestFitAllColumns: return("Điều chỉnh kích thước tất cả cột");

            case TreeListStringId.MenuColumnSortAscending: return("Sắp xếp tăng");

            case TreeListStringId.MenuColumnSortDescending: return("Sắp xếp giảm");

            case TreeListStringId.MenuColumnClearSorting: return("Không sắp xếp");

            case TreeListStringId.MenuColumnColumnCustomization: return("Điều chỉnh ẩn hiện cột");

            case TreeListStringId.ColumnCustomizationText: return("Điều chỉnh ẩn hiện cột");
            }
            return(base.GetLocalizedString(id));
        }
Ejemplo n.º 7
0
 public override string GetLocalizedString(TreeListStringId ID)
 {
     return(BaseLocalizer.GetLocalizedString <TreeListStringId>((int)ID, base.GetLocalizedString(ID), base.GetType().Name));
     //string enumName = Enum.GetName(typeof(TreeListStringId), ID);
     //List<Sys_Globalization> sys_Globalizations = (List<Sys_Globalization>)Provider["Sys_Globalization"];
     //Sys_Globalization sys_Globalization = sys_Globalizations.Find(l => l.Globalization_Cultural == ((Sys_User)Provider["Sys_User"]).User_Cultural
     //                                 && l.Globalization_Partition.ToLower() == "devexpress"
     //                                 && l.Globalization_Localizer.ToLower() == base.GetType().Name.ToLower()
     //                                 && l.Globalization_Name.ToLower() == enumName.ToLower());
     //if (sys_Globalization != null)
     //{
     //    return sys_Globalization.Globalization_Nick;
     //}
     //List<MyParameter> myParameters = new List<MyParameter>();
     //myParameters.Add("@Globalization_Cultural", SqlDbType.Int, ((Sys_User)Provider["Sys_User"]).User_Cultural, null);
     //myParameters.Add("@Globalization_Partition", SqlDbType.NVarChar, "Devexpress", null);
     //myParameters.Add("@Globalization_Localizer", SqlDbType.NVarChar, base.GetType().Name, null);
     //myParameters.Add("@Globalization_Name", SqlDbType.NVarChar, enumName, null);
     //myParameters.Add("@Globalization_Nick", SqlDbType.NVarChar, base.GetLocalizedString(ID), null);
     //myParameters.Add("@Globalization_StringId", SqlDbType.Int, (int)ID, null);
     //BaseService.Open_Sys_WorkSet("Save_Sys_Globalization", myParameters);
     //return base.GetLocalizedString(ID);
 }
Ejemplo n.º 8
0
 public override string GetLocalizedString(TreeListStringId id)
 {
     switch (id)
     {
         case TreeListStringId.ColumnCustomizationText: return "自定显示字段";
         case TreeListStringId.ColumnNamePrefix: return "列名首标";
         case TreeListStringId.InvalidNodeExceptionText: return "是否确定要修改?";
         case TreeListStringId.MenuColumnBestFit: return "最佳匹配";
         case TreeListStringId.MenuColumnBestFitAllColumns: return "最佳匹配(所有列)";
         case TreeListStringId.MenuColumnColumnCustomization: return "列选择";
         case TreeListStringId.MenuColumnSortAscending: return "升序排序";
         case TreeListStringId.MenuColumnSortDescending: return "降序排序";
         case TreeListStringId.MenuFooterAllNodes: return "全部节点";
         case TreeListStringId.MenuFooterAverage: return "平均";
         case TreeListStringId.MenuFooterAverageFormat: return "平均值={0:#.##}";
         case TreeListStringId.MenuFooterCount: return "计数";
         case TreeListStringId.MenuFooterCountFormat: return "{0}";
         case TreeListStringId.MenuFooterMax: return "最大值";
         case TreeListStringId.MenuFooterMaxFormat: return "最大值={0}";
         case TreeListStringId.MenuFooterMin: return "最小值";
         case TreeListStringId.MenuFooterMinFormat: return "最小值={0}";
         case TreeListStringId.MenuFooterNone: return "无";
         case TreeListStringId.MenuFooterSum: return "合计";
         case TreeListStringId.MenuFooterSumFormat: return "合计={0:#.##}";
         case TreeListStringId.MultiSelectMethodNotSupported: return "OptionsBehavior.MultiSelect未激活时,指定方法不能工作.";
         case TreeListStringId.PrintDesignerDescription: return "为当前的树状列表设置不同的打印选项.";
         case TreeListStringId.PrintDesignerHeader: return "打印设置";
     }
     return base.GetLocalizedString(id);
 }
Ejemplo n.º 9
0
 public override string GetLocalizedString(TreeListStringId id)
 {
     switch (id)
     {
         case TreeListStringId.ColumnCustomizationText: return "�Զ���ʾ�ֶ�";
         case TreeListStringId.ColumnNamePrefix: return "�����ױ�";
         case TreeListStringId.InvalidNodeExceptionText: return "�Ƿ�ȷ��Ҫ�޸�?";
         case TreeListStringId.MenuColumnBestFit: return "���ƥ��";
         case TreeListStringId.MenuColumnBestFitAllColumns: return "���ƥ��(������)";
         case TreeListStringId.MenuColumnColumnCustomization: return "��ѡ��";
         case TreeListStringId.MenuColumnSortAscending: return "��������";
         case TreeListStringId.MenuColumnSortDescending: return "��������";
         case TreeListStringId.MenuFooterAllNodes: return "ȫ���ڵ�";
         case TreeListStringId.MenuFooterAverage: return "ƽ��";
         case TreeListStringId.MenuFooterAverageFormat: return "ƽ��ֵ={0:#.##}";
         case TreeListStringId.MenuFooterCount: return "����";
         case TreeListStringId.MenuFooterCountFormat: return "{0}";
         case TreeListStringId.MenuFooterMax: return "���ֵ";
         case TreeListStringId.MenuFooterMaxFormat: return "���ֵ={0}";
         case TreeListStringId.MenuFooterMin: return "��Сֵ";
         case TreeListStringId.MenuFooterMinFormat: return "��Сֵ={0}";
         case TreeListStringId.MenuFooterNone: return "��";
         case TreeListStringId.MenuFooterSum: return "�ϼ�";
         case TreeListStringId.MenuFooterSumFormat: return "�ϼ�={0:#.##}";
         case TreeListStringId.MultiSelectMethodNotSupported: return "OptionsBehavior.MultiSelectδ����ʱ��ָ���������ܹ���.";
         case TreeListStringId.PrintDesignerDescription: return "Ϊ��ǰ����״�б����ò�ͬ�Ĵ�ӡѡ��.";
         case TreeListStringId.PrintDesignerHeader: return "��ӡ����";
     }
     return base.GetLocalizedString(id);
 }
Ejemplo n.º 10
0
        public override string GetLocalizedString(TreeListStringId id)
        {
            switch (id)
            {
            case TreeListStringId.MenuFooterSum:
                return("和");

            case TreeListStringId.MenuFooterMin:
                return("最小值");

            case TreeListStringId.MenuFooterMax:
                return("最大值");

            case TreeListStringId.MenuFooterCount:
                return("计数");

            case TreeListStringId.MenuFooterAverage:
                return("平均值");

            case TreeListStringId.MenuFooterNone:
                return("无");

            case TreeListStringId.MenuFooterAllNodes:
                return("所有节点");

            case TreeListStringId.MenuFooterSumFormat:
                return("和={0:#.##}");

            case TreeListStringId.MenuFooterMinFormat:
                return("最小值={0}");

            case TreeListStringId.MenuFooterMaxFormat:
                return("最大值={0}");

            case TreeListStringId.MenuFooterCountFormat:
                return("{0}");

            case TreeListStringId.MenuFooterAverageFormat:
                return("平均值={0:#.##}");

            case TreeListStringId.MenuColumnSortAscending:
                return("升序排列");

            case TreeListStringId.MenuColumnSortDescending:
                return("降序排列");

            case TreeListStringId.MenuColumnColumnCustomization:
                return("列选择");

            case TreeListStringId.MenuColumnBestFit:
                return("最佳匹配");

            case TreeListStringId.MenuColumnBestFitAllColumns:
                return("最佳匹配 (所有列)");

            case TreeListStringId.ColumnCustomizationText:
                return("自定义");

            case TreeListStringId.ColumnNamePrefix:
                return("列");

            case TreeListStringId.PrintDesignerHeader:
                return("打印设置");

            case TreeListStringId.PrintDesignerDescription:
                return("为当前的树状列表设置不同的打印选项");

            case TreeListStringId.InvalidNodeExceptionText:
                return(" 要修正当前值吗?");

            case TreeListStringId.MultiSelectMethodNotSupported:
                return("OptionsBehavior.MultiSelect未激活时,指定方法不能工作.");

            case TreeListStringId.CustomizationFormColumnHint:
                return("拖放列到这自定布局");

            case TreeListStringId.FilterPanelCustomizeButton:
                return("编辑过滤器");

            case TreeListStringId.WindowErrorCaption:
                return("错误");

            case TreeListStringId.FilterEditorOkButton:
                return("确定(&)");

            case TreeListStringId.FilterEditorCancelButton:
                return("取消(&)");

            case TreeListStringId.FilterEditorApplyButton:
                return("应用(&)");

            case TreeListStringId.FilterEditorCaption:
                return("过滤器编辑器");

            case TreeListStringId.MenuColumnAutoFilterRowHide:
                return("隐藏自动过滤行");

            case TreeListStringId.MenuColumnAutoFilterRowShow:
                return("显示自动过滤行");

            case TreeListStringId.MenuColumnFilterEditor:
                return("过滤器编辑器...");

            case TreeListStringId.MenuColumnClearFilter:
                return("清空过滤器");

            case TreeListStringId.PopupFilterAll:
                return("(所有)");

            case TreeListStringId.PopupFilterBlanks:
                return("(空白)");

            case TreeListStringId.PopupFilterNonBlanks:
                return("(非空白)");
            }
            return(base.GetLocalizedString(id));
        }