You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

265 lines
7.6 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace WeighBusiness
{
public enum ConfigType
{
,
,
,
,
,
,
,//默认设置分两部分,以逗号隔开:第一部分为ID;第二部分为Name
,//默认设置分两部分,以逗号隔开:第一部分为ID;第二部分为Name
,
,
,
使,
//按钮:
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
//键盘区、键盘上方:
,
,
,
,
,
,
,
,
,
,
,
,
,
,
线,
//表格配置:
,
,
,
//以下为打印相关的配置:
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
,
使,
,
,
,
,
,
}
public static class ConfigTypeUtil
{
public static string ToFieldString(this ConfigType type)
{
switch (type) {
case ConfigType.:
return "HostAddress";
case ConfigType.:
return "TerminalUser";
case ConfigType.:
return "UserName";
case ConfigType.:
return "UserPassword";
case ConfigType.:
return "GoodsClass";
case ConfigType.:
return "BackgroundImageName";
case ConfigType.:
return "DefaultStore";
case ConfigType.:
return "DefaultBuyer";
case ConfigType.:
return "DatabasePath";
case ConfigType.:
return "LoginPassword";
case ConfigType.:
return "CannotSaveWhenOverAvailableStock";
case ConfigType.使:
return "IsUseGoodsClass";
//按钮:
case ConfigType.:
return "GoodsButtonShowType";
case ConfigType.:
return "GoodsButtonShowStock";
case ConfigType.:
return "StoreButtonHeight";
case ConfigType.:
return "StoreButtonDistance";
case ConfigType.:
return "StoreButtonWidth";
case ConfigType.:
return "StoreButtonColumnsCount";
case ConfigType.:
return "StoreButtonRowsCount";
case ConfigType.:
return "GoodsButtonHeight";
case ConfigType.:
return "GoodsButtonDistance";
case ConfigType.:
return "GoodsButtonWidth";
case ConfigType.:
return "GoodsButtonColumnsCount";
case ConfigType.:
return "GoodsButtonRowsCount";
case ConfigType.:
return "GoodsClassButtonHeight";
case ConfigType.:
return "GoodsClassButtonDistance";
case ConfigType.:
return "GoodsClassButtonWidth";
case ConfigType.:
return "GoodsClassButtonColumnsCount";
case ConfigType.:
return "GoodsClassButtonRowsCount";
case ConfigType.:
return "CarButtonHeight";
case ConfigType.:
return "CarButtonDistance";
case ConfigType.:
return "CarButtonWidth";
case ConfigType.:
return "CarButtonColumnsCount";
case ConfigType.:
return "CarButtonRowsCount";
//键盘区、键盘上:
case ConfigType.:
return "KeyButtonWidth";
case ConfigType.:
return "KeyButtonHeight";
case ConfigType.:
return "KeyButtonDistance";
case ConfigType.:
return "KeyButtonWordSize";
case ConfigType.:
return "KeyButtonAreaHeight";
case ConfigType.:
return "KeyButtonAreaWidth";
case ConfigType.:
return "ButtonsNearKeyButtonWidth";
case ConfigType.:
return "ButtonsNearKeyButtonHeight";
case ConfigType.:
return "ButtonsNearKeyButtonDistance";
case ConfigType.:
return "ButtonsNearKeyButtonOffset";
case ConfigType.:
return "ButtonsUpKeyButtonWidth";
case ConfigType.:
return "ButtonsUpKeyButtonHeight";
case ConfigType.:
return "ButtonsUpKeyButtonDistance";
case ConfigType.:
return "ButtonsAreaUpKeyButtonHeight";
case ConfigType.线:
return "IsShowAuxiliaryLine";
//表格配置:
case ConfigType.:
return "BillDetailMaxRows";
case ConfigType.:
return "ListMaxRows";
case ConfigType.:
return "GoodsNameColumnWidth";
//以下为打印相关的配置:
case ConfigType.:
return "InforsBeforeHead";
case ConfigType.:
return "FontSize_InforsBeforeHead";
case ConfigType.:
return "Title";
case ConfigType.:
return "TitleFont";
case ConfigType.:
return "TitleMarginLeft";
case ConfigType.:
return "PageWidth";
case ConfigType.:
return "MarginLeft";
case ConfigType.:
return "MarginTop";
case ConfigType.:
return "FontSize";
case ConfigType.:
return "FontSize_Footer";
case ConfigType.:
return "ColumnNames";
case ConfigType.:
return "ColumnWidths";
case ConfigType.:
return "InforsBeforeFooter";
case ConfigType.:
return "InforsAfterFooter";
case ConfigType.:
return "FontSize_InforsBeforeFooter";
case ConfigType.:
return "FontSize_InforsAfterFooter";
case ConfigType.使:
return "IsUsingDefualtPrinter";
case ConfigType.:
return "HeaderColumnsCount";
case ConfigType.:
return "HeaderCharCount";
case ConfigType.:
return "LineDistance";
case ConfigType.:
return "DetailMaxRows";
case ConfigType.:
return "OperatonsBeforePrint";
default:
throw new ApplicationException("未处理的类型");
}
throw new ApplicationException("未处理的类型");
}
}
}