|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
|
using System.Linq;
|
|
|
using System.Text;
|
|
|
|
|
|
namespace WeighBusiness
|
|
|
{
|
|
|
partial class ConfigUtil
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// 终端用户。与系统中的存货、客户配置表中的终端用户相对应。
|
|
|
/// </summary>
|
|
|
public static string TerminalUser { get; private set; }//终端用户
|
|
|
/// <summary>
|
|
|
/// 登陆系统的用户名
|
|
|
/// </summary>
|
|
|
public static string UserName { get; private set; }//登陆系统的用户名
|
|
|
/// <summary>
|
|
|
/// 登陆系统的密码
|
|
|
/// </summary>
|
|
|
public static string UserPassword { get; private set; }//登陆系统的密码
|
|
|
/// <summary>
|
|
|
/// 系统IP。
|
|
|
/// <para>如:http://localhost 或 http://192.168.1.1</para>
|
|
|
/// </summary>
|
|
|
public static string HostAddress { get; private set; }//系统IP。如:http://localhost 或 http://192.168.1.1
|
|
|
/// <summary>
|
|
|
/// 背景图片名
|
|
|
/// </summary>
|
|
|
public static string BackgroundImageName { get; private set; }//背景图片名
|
|
|
/// <summary>
|
|
|
/// 登陆信息
|
|
|
/// </summary>
|
|
|
public static string Ticket { get; set; }//登陆信息
|
|
|
|
|
|
#region 打印设置
|
|
|
/// <summary>
|
|
|
/// 标题
|
|
|
/// </summary>
|
|
|
public static string Title { get; private set; }//标题
|
|
|
/// <summary>
|
|
|
/// 标题字号
|
|
|
/// </summary>
|
|
|
public static double TitleFont { get; private set; }//标题字号
|
|
|
/// <summary>
|
|
|
/// 标题左边距
|
|
|
/// </summary>
|
|
|
public static double TitleMarginLeft { get; private set; }//标题左边距
|
|
|
/// <summary>
|
|
|
/// 页宽
|
|
|
/// </summary>
|
|
|
public static double PageWidth { get; private set; }//页宽
|
|
|
/// <summary>
|
|
|
/// 左边距
|
|
|
/// </summary>
|
|
|
public static double MarginLeft { get; private set; }//左边距
|
|
|
/// <summary>
|
|
|
/// 顶边距
|
|
|
/// </summary>
|
|
|
public static double MarginTop { get; private set; }//顶边距
|
|
|
/// <summary>
|
|
|
/// 字号
|
|
|
/// </summary>
|
|
|
public static int FontSize { get; private set; }//字号
|
|
|
/// <summary>
|
|
|
/// 页脚字号
|
|
|
/// </summary>
|
|
|
public static int FontSize_Footer { get; private set; }//页脚字号
|
|
|
/// <summary>
|
|
|
/// 列。多个列之间以英文逗号隔开
|
|
|
/// </summary>
|
|
|
public static IList<string> ColumnNames { get; private set; }//列。多个列之间以英文逗号隔开
|
|
|
/// <summary>
|
|
|
/// 列宽。多个列宽之间以英文逗号隔开
|
|
|
/// </summary>
|
|
|
public static IList<double> ColumnWidths { get; private set; }//列宽。多个列宽之间以英文逗号隔开
|
|
|
/// <summary>
|
|
|
/// 表前信息。多行文字之间以英文逗号隔开
|
|
|
/// </summary>
|
|
|
public static IList<string> InforsBeforeHead { get; private set; }//表前信息。多行文字之间以英文逗号隔开
|
|
|
/// <summary>
|
|
|
/// 表前信息字号
|
|
|
/// </summary>
|
|
|
public static int FontSize_InforsBeforeHead { get; private set; }//表前信息字号
|
|
|
/// <summary>
|
|
|
/// 页脚前信息。多行文字之间以英文逗号隔开
|
|
|
/// </summary>
|
|
|
public static IList<string> InforsBeforeFooter { get; private set; }//页脚前信息。多行文字之间以英文逗号隔开
|
|
|
/// <summary>
|
|
|
/// 页脚后信息。多行文字之间以英文逗号隔开
|
|
|
/// </summary>
|
|
|
public static IList<string> InforsAfterFooter { get; private set; }//页脚后信息。多行文字之间以英文逗号隔开
|
|
|
/// <summary>
|
|
|
/// 页脚前信息字号
|
|
|
/// </summary>
|
|
|
public static int FontSize_InforsBeforeFooter { get; private set; }//页脚前信息字号
|
|
|
/// <summary>
|
|
|
/// 页脚后信息字号
|
|
|
/// </summary>
|
|
|
public static int FontSize_InforsAfterFooter { get; private set; }//页脚后信息字号
|
|
|
/// <summary>
|
|
|
/// 是否使用默认打印机打印
|
|
|
/// </summary>
|
|
|
public static bool IsUsingDefualtPrinter { get; private set; }//是否使用默认打印机打印
|
|
|
/// <summary>
|
|
|
/// 行距
|
|
|
/// </summary>
|
|
|
public static double LineDistance { get; private set; }//行距
|
|
|
/// <summary>
|
|
|
/// 表头列数
|
|
|
/// </summary>
|
|
|
public static int HeaderColumnsCount { get; private set; }//表头列数
|
|
|
/// <summary>
|
|
|
/// 表头名称字数(指“仓库”、“购货客户”等)
|
|
|
/// </summary>
|
|
|
public static int HeaderCharCount { get; private set; }//表头名称字数(指“仓库”、“购货客户”等)
|
|
|
/// <summary>
|
|
|
/// 清单最大行数
|
|
|
/// </summary>
|
|
|
public static int DetailMaxRows { get; private set; }//清单最大行数
|
|
|
#endregion
|
|
|
|
|
|
#region 默认设置//默认设置分两部分,以逗号隔开:第一部分为ID;第二部分为Name
|
|
|
/// <summary>
|
|
|
/// 客户ID
|
|
|
/// </summary>
|
|
|
public static long? DefaultBuyerID { get; private set; }//默认客户ID
|
|
|
/// <summary>
|
|
|
/// 客户Name
|
|
|
/// </summary>
|
|
|
public static string DefaultBuyerName { get; private set; }//默认客户Name
|
|
|
/// <summary>
|
|
|
/// 仓库ID
|
|
|
/// </summary>
|
|
|
public static long? DefaultStoreID { get; private set; }//默认仓库ID
|
|
|
/// <summary>
|
|
|
/// 仓库Name
|
|
|
/// </summary>
|
|
|
public static string DefaultStoreName { get; private set; }//默认仓库Name
|
|
|
#endregion
|
|
|
|
|
|
/// <summary>
|
|
|
/// 打印前执行的操作
|
|
|
/// </summary>
|
|
|
public static IList<string> OperatonsBeforePrint { get; private set; }// 打印前执行的操作
|
|
|
/// <summary>
|
|
|
/// 数据库路径(包括名称,后缀不限)(只给出名称,则在程序所在文件夹下)
|
|
|
/// </summary>
|
|
|
public static string DatabasePath { get; set; }
|
|
|
/// <summary>
|
|
|
/// 客户端登陆密码
|
|
|
/// </summary>
|
|
|
public static string LoginPassword { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 使用存货分类
|
|
|
/// </summary>
|
|
|
public static bool IsUseGoodsClass { get; set; }//使用存货分类
|
|
|
|
|
|
#region 按钮设置
|
|
|
public static bool GoodsButtonShowType { get; set; }//存货按钮上显示规格
|
|
|
public static bool GoodsButtonShowStock { get; set; }//存货按钮上显示库存
|
|
|
|
|
|
public static int StoreButtonHeight { get; set; }//仓库按钮高度。默认40
|
|
|
public static int StoreButtonDistance { get; set; }//仓库按钮间距。默认4
|
|
|
public static int StoreButtonWidth { get; set; }//仓库按钮宽度。默认140
|
|
|
public static int StoreButtonColumnsCount { get; set; }//仓库按钮列数。默认3
|
|
|
public static int StoreButtonRowsCount { get; set; }//仓库按钮行数。默认13
|
|
|
public static int GoodsButtonHeight { get; set; }//存货按钮高度。默认40
|
|
|
public static int GoodsButtonDistance { get; set; }//存货按钮间距。默认4
|
|
|
public static int GoodsButtonWidth { get; set; }//存货按钮宽度。默认140
|
|
|
public static int GoodsButtonColumnsCount { get; set; }//存货按钮列数。默认3
|
|
|
public static int GoodsButtonRowsCount { get; set; }//存货按钮行数。默认13
|
|
|
public static int GoodsClassButtonHeight { get; set; }//存货分类按钮高度。默认40
|
|
|
public static int GoodsClassButtonDistance { get; set; }//存货分类按钮间距。默认4
|
|
|
public static int GoodsClassButtonWidth { get; set; }//存货分类按钮宽度。默认140
|
|
|
public static int GoodsClassButtonColumnsCount { get; set; }//存货分类按钮列数。默认3
|
|
|
public static int GoodsClassButtonRowsCount { get; set; }//存货分类按钮行数。默认13
|
|
|
public static int CarButtonHeight { get; set; }//车辆按钮高度。默认40
|
|
|
public static int CarButtonDistance { get; set; }//车辆按钮间距。默认4
|
|
|
public static int CarButtonWidth { get; set; }//车辆按钮宽度。默认140
|
|
|
public static int CarButtonColumnsCount { get; set; }//车辆按钮列数。默认3
|
|
|
public static int CarButtonRowsCount { get; set; }//车辆按钮行数。默认13
|
|
|
#endregion
|
|
|
|
|
|
#region 键盘区、键盘上方
|
|
|
public static int KeyButtonWidth { get; set; }//键盘按键宽度
|
|
|
public static int KeyButtonHeight { get; set; }//键盘按键高度
|
|
|
public static int KeyButtonDistance { get; set; }//键盘按键间距
|
|
|
public static int KeyButtonWordSize { get; set; }//键盘文字大小
|
|
|
public static int KeyButtonAreaHeight { get; set; }//键盘区高度
|
|
|
public static int KeyButtonAreaWidth { get; set; }//键盘区宽度
|
|
|
public static int ButtonsNearKeyButtonWidth { get; set; }//键盘旁边按钮宽度
|
|
|
public static int ButtonsNearKeyButtonHeight { get; set; }//键盘旁边按钮高度
|
|
|
public static int ButtonsNearKeyButtonDistance { get; set; }//键盘旁边按钮间距
|
|
|
public static int ButtonsNearKeyButtonOffset { get; set; }//键盘旁边按钮偏移
|
|
|
public static int ButtonsUpKeyButtonWidth { get; set; }//键盘上方按钮宽度
|
|
|
public static int ButtonsUpKeyButtonHeight { get; set; }//键盘上方按钮高度
|
|
|
public static int ButtonsUpKeyButtonDistance { get; set; }//键盘上方按钮间距
|
|
|
public static int ButtonsAreaUpKeyButtonHeight { get; set; }//键盘上方区域高度
|
|
|
public static bool IsShowAuxiliaryLine { get; set; }//显示辅助线
|
|
|
#endregion
|
|
|
|
|
|
#region 表格配置
|
|
|
public static int BillDetailMaxRows { get; set; }//单据清单最大行数
|
|
|
public static int ListMaxRows { get; set; }//查询列表最大行数
|
|
|
public static int GoodsNameColumnWidth { get; set; }//清单存货列列宽
|
|
|
#endregion
|
|
|
|
|
|
public static string ConfigFilePathAndName { get; private set; }
|
|
|
public static string ApplicationPath { get; private set; }
|
|
|
|
|
|
}
|
|
|
}
|