FrmPrint.cs 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. using System;
  2. using System.Drawing;
  3. using System.Collections;
  4. using System.ComponentModel;
  5. using System.Windows.Forms;
  6. using Core.Client.WinCommon;
  7. namespace Core.XgMes.Client.JGKC.SteelPlateManager
  8. {
  9. /// <summary>
  10. /// FrmPrint 的摘要说明。
  11. /// </summary>
  12. public class FrmPrint : System.Windows.Forms.Form
  13. {
  14. private UCGridPrint ucGridPrint1;
  15. /// <summary>
  16. /// 必需的设计器变量。
  17. /// </summary>
  18. private System.ComponentModel.Container components = null;
  19. public UCGridPrint UCGridPrint
  20. {
  21. get
  22. {
  23. return ucGridPrint1;
  24. }
  25. }
  26. public FrmPrint()
  27. {
  28. //
  29. // Windows 窗体设计器支持所必需的
  30. //
  31. InitializeComponent();
  32. //
  33. // TODO: 在 InitializeComponent 调用后添加任何构造函数代码
  34. //
  35. }
  36. public Control UltraGrid
  37. {
  38. set
  39. {
  40. if(value != null)
  41. {
  42. ucGridPrint1.DataSource = value;
  43. }
  44. }
  45. }
  46. // public string SubHeadLeftCaption
  47. // {
  48. // set
  49. // {
  50. // ucGridPrint1.SubHeadLeftText = value;
  51. // }
  52. //
  53. // }
  54. //
  55. // public string SubHeadRightCaption
  56. // {
  57. // set
  58. // {
  59. // ucGridPrint1.SubHeadRightText = value;
  60. // }
  61. //
  62. // }
  63. //
  64. // public string SubFootLeftCaption
  65. // {
  66. // set
  67. // {
  68. // ucGridPrint1.SubFootLeftText = value;
  69. // }
  70. //
  71. // }
  72. //
  73. // public string SubfootRightCaption
  74. // {
  75. // set
  76. // {
  77. // ucGridPrint1.SubfootRightText = value;
  78. // }
  79. //
  80. // }
  81. //
  82. // public string HeadCaption
  83. // {
  84. // set
  85. // {
  86. // ucGridPrint1.HeadText = value;
  87. // }
  88. //
  89. // }
  90. /// <summary>
  91. /// 清理所有正在使用的资源。
  92. /// </summary>
  93. protected override void Dispose( bool disposing )
  94. {
  95. if( disposing )
  96. {
  97. if(components != null)
  98. {
  99. components.Dispose();
  100. }
  101. }
  102. base.Dispose( disposing );
  103. }
  104. #region Windows 窗体设计器生成的代码
  105. /// <summary>
  106. /// 设计器支持所需的方法 - 不要使用代码编辑器修改
  107. /// 此方法的内容。
  108. /// </summary>
  109. private void InitializeComponent()
  110. {
  111. this.ucGridPrint1 = new UCGridPrint();
  112. this.SuspendLayout();
  113. //
  114. // ucGridPrint1
  115. //
  116. this.ucGridPrint1.FootFont = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
  117. this.ucGridPrint1.FootHeight = 30;
  118. this.ucGridPrint1.FootText = "";
  119. this.ucGridPrint1.HeadFont = new System.Drawing.Font("黑体", 12F, System.Drawing.FontStyle.Underline, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
  120. this.ucGridPrint1.HeadHeight = 20;
  121. this.ucGridPrint1.HeadText = "";
  122. this.ucGridPrint1.Location = new System.Drawing.Point(0, 0);
  123. this.ucGridPrint1.Name = "ucGridPrint1";
  124. this.ucGridPrint1.Size = new System.Drawing.Size(216, 302);
  125. this.ucGridPrint1.SubFootFont = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
  126. this.ucGridPrint1.SubFootHeight = 30;
  127. this.ucGridPrint1.SubFootLeftText = "";
  128. this.ucGridPrint1.SubfootRightText = "";
  129. this.ucGridPrint1.SubHeadFont = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
  130. this.ucGridPrint1.SubHeadHeight = 20;
  131. this.ucGridPrint1.SubHeadLeftText = "";
  132. this.ucGridPrint1.SubHeadRightText = "";
  133. this.ucGridPrint1.TabIndex = 0;
  134. this.ucGridPrint1.TableFont = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
  135. //
  136. // FrmPrint
  137. //
  138. this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
  139. this.ClientSize = new System.Drawing.Size(216, 302);
  140. this.Controls.Add(this.ucGridPrint1);
  141. this.Name = "FrmPrint";
  142. this.Text = "FrmPrint";
  143. this.ResumeLayout(false);
  144. }
  145. #endregion
  146. }
  147. }