C_TXT_BarCode.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*******************************************************************************
  2. * Copyright(c) 2014 DongkeSoft All rights reserved. / Confidential
  3. * 类的信息:
  4. * 1.程序名称:C_TXT_BarCode.cs
  5. * 2.功能描述:条码文本框
  6. * 编辑履历:
  7. * 作者 日期 版本 修改内容
  8. * 陈晓野 2014/09/29 1.00 新建
  9. *******************************************************************************/
  10. using System.ComponentModel;
  11. using System.Drawing;
  12. namespace Dongke.IBOSS.PRD.Basics.BaseControls
  13. {
  14. /// <summary>
  15. /// 条码文本框
  16. /// </summary>
  17. public partial class C_TXT_BarCode : DKTextBoxBase
  18. {
  19. #region 构造函数
  20. /// <summary>
  21. /// 构造函数
  22. /// </summary>
  23. public C_TXT_BarCode()
  24. {
  25. InitializeComponent();
  26. base.Text = string.Empty;
  27. this.ImeMode = System.Windows.Forms.ImeMode.Off;
  28. base.RejectChars = @"[^0-9a-zA-Z]";
  29. this.FixChars = "[a-zA-Z0-9]";
  30. //base.FixChars = @"^([a-zA-Z]*|[a-zA-Z0-9]*[a-zA-Z]+)([0-9]{10,})$";
  31. base.FixPatternMessage = "";
  32. base.AllowCharsPattern = false;
  33. this.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;
  34. }
  35. #endregion
  36. #region 属性
  37. #endregion
  38. }
  39. }