ControlsConst.cs 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. /*******************************************************************************
  2. * Copyright(c) 2014 DongkeSoft All rights reserved. / Confidential
  3. * 类的信息:
  4. * 1.程序名称:ControlsConst.cs
  5. * 2.功能描述:系统控件的常量类
  6. * 编辑履历:
  7. * 作者 日期 版本 修改内容
  8. * 陈晓野 2014/08/13 1.00 新建
  9. *******************************************************************************/
  10. namespace Dongke.IBOSS.PRD.Basics.BaseControls
  11. {
  12. /// <summary>
  13. /// 系统控件的常量类
  14. /// </summary>
  15. public class ControlsConst
  16. {
  17. /// <summary>
  18. /// 多选时文本分隔符
  19. /// </summary>
  20. public const string MULTIPLE_TEXT_SEPARATOR = ";";
  21. /// <summary>
  22. /// 多选时值分隔符
  23. /// </summary>
  24. public const string MULTIPLE_VALUE_SEPARATOR = ",";
  25. /// <summary>
  26. /// 控件间间隔
  27. /// </summary>
  28. public const int CONTROLSPACE = 6;
  29. /// <summary>
  30. /// 分组控件(GroupBox)关闭时图标
  31. /// </summary>
  32. public const string CLOSING_MARK = "▲";
  33. /// <summary>
  34. /// 分组控件(GroupBox)打开时图标
  35. /// </summary>
  36. public const string OPENING_MARK = "▼";
  37. // 半角空格
  38. public const string SPACE_MARK = " ";
  39. /// <summary>
  40. /// 必须输入项目的Label字体颜色
  41. /// </summary>
  42. public static readonly System.Drawing.Color FORECOLOR_LABEL_MUSTINPUT = System.Drawing.Color.FromArgb(((int)(((byte)(155)))), ((int)(((byte)(39)))), ((int)(((byte)(39)))));
  43. /// <summary>
  44. /// 必须输入项目的文本框背景颜色
  45. /// </summary>
  46. public static readonly System.Drawing.Color BACKCOLOR_TEXT_MUSTINPUT_EMPT = System.Drawing.Color.Yellow;
  47. /// <summary>
  48. /// 只读项目的文本框背景颜色
  49. /// </summary>
  50. public static readonly System.Drawing.Color BACKCOLOR_TEXT_READONLY_EMPT = System.Drawing.SystemColors.Control;
  51. /// <summary>
  52. /// 文本框默认背景颜色
  53. /// </summary>
  54. public static readonly System.Drawing.Color BACKCOLOR_TEXT_DEFAULT = System.Drawing.SystemColors.Window;
  55. /// <summary>
  56. /// 文本框中数据错误时,背景颜色
  57. /// </summary>
  58. public static readonly System.Drawing.Color BACKCOLOR_TEXT_ERROR = System.Drawing.Color.Red;
  59. /// <summary>
  60. /// 系统默认字体
  61. /// </summary>
  62. public static System.Drawing.Font FONT_SYSTEM_DEFAULT
  63. {
  64. get
  65. {
  66. return new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
  67. }
  68. }
  69. /// <summary>
  70. /// 日期时间格式(yyyy/MM/dd HH:mm)
  71. /// </summary>
  72. public const string DATETIME_FORMAT_YYYYMMDDHHMM = "yyyy/MM/dd HH:mm";
  73. /// <summary>
  74. /// 时间控件间隔时间(毫秒)
  75. /// </summary>
  76. public const int TIMER_INTERVAL = 1000;
  77. /// <summary>
  78. ///
  79. /// </summary>
  80. public const string CLIPBOARD_FORMAT = "DKDataGridView_InnerValue";
  81. /// <summary>
  82. /// 可编辑区域的背景颜色#FDE9D9
  83. /// </summary>
  84. public const string ALLOW_MODIFY_AREA_BACKGROUND_COLOR = "#FDE9D9";
  85. }
  86. }