📄 taskbill.cs
字号:
using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Windows.Forms;
namespace taskbill
{
/// <summary>
/// UserControl1 的摘要说明。
/// </summary>
public class taskbill : System.Windows.Forms.UserControl
{
private Infragistics.Win.UltraWinGrid.ExcelExport.UltraGridExcelExporter ultraGridExcelExporter1;
private AxVSFlex7.AxVSFlexGrid vsGrid;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button2;
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
public taskbill()
{
// 该调用是 Windows.Forms 窗体设计器所必需的。
InitializeComponent();
// TODO: 在 InitComponent 调用后添加任何初始化
}
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if( components != null )
components.Dispose();
}
base.Dispose( disposing );
}
#region 组件设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器
/// 修改此方法的内容。
/// </summary>
private void InitializeComponent()
{
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(taskbill));
this.vsGrid = new AxVSFlex7.AxVSFlexGrid();
this.ultraGridExcelExporter1 = new Infragistics.Win.UltraWinGrid.ExcelExport.UltraGridExcelExporter();
this.button1 = new System.Windows.Forms.Button();
this.button2 = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.vsGrid)).BeginInit();
this.SuspendLayout();
//
// vsGrid
//
this.vsGrid.DataSource = null;
this.vsGrid.Location = new System.Drawing.Point(8, 32);
this.vsGrid.Name = "vsGrid";
this.vsGrid.OcxState = ((System.Windows.Forms.AxHost.State)(resources.GetObject("vsGrid.OcxState")));
this.vsGrid.Size = new System.Drawing.Size(688, 384);
this.vsGrid.TabIndex = 0;
//
// button1
//
this.button1.Location = new System.Drawing.Point(256, 424);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(64, 24);
this.button1.TabIndex = 1;
this.button1.Text = "保存";
//
// button2
//
this.button2.Location = new System.Drawing.Point(392, 424);
this.button2.Name = "button2";
this.button2.Size = new System.Drawing.Size(64, 24);
this.button2.TabIndex = 2;
this.button2.Text = "取消";
//
// taskbill
//
this.Controls.Add(this.button2);
this.Controls.Add(this.button1);
this.Controls.Add(this.vsGrid);
this.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.Name = "taskbill";
this.Size = new System.Drawing.Size(704, 456);
this.Load += new System.EventHandler(this.taskbill_Load);
((System.ComponentModel.ISupportInitialize)(this.vsGrid)).EndInit();
this.ResumeLayout(false);
}
#endregion
private void taskbill_Load(object sender, System.EventArgs e)
{
vsGrid.SheetBorder =Color.White;
vsGrid.RowHeightMin =350;
vsGrid.RowHeightMax =400;
vsGrid.Editable =VSFlex7.EditableSettings.flexEDKbd;
vsGrid.AllowSelection =false;
vsGrid.MergeCells= VSFlex7.MergeSettings.flexMergeRestrictColumns;
vsGrid.MergeCompare = VSFlex7.MergeCompareSettings.flexMCTrimNoCase;
vsGrid.set_MergeCol(0,true);
vsGrid.set_MergeCol(1,true);
vsGrid.set_MergeCol(2,true);
vsGrid.MergeCells= VSFlex7.MergeSettings.flexMergeRestrictRows;
vsGrid.MergeCompare = VSFlex7.MergeCompareSettings.flexMCExact;
vsGrid.set_MergeRow(5,true);
vsGrid.set_MergeRow(6,true);
vsGrid.set_MergeRow(11,true);
vsGrid.set_MergeRow(12,true);
vsGrid.set_MergeRow(13,true);
vsGrid.set_MergeRow(14,true);
vsGrid.set_MergeRow(15,true);
vsGrid.set_Cell(VSFlex7.CellPropertySettings.flexcpChecked,2,1,7,7, VSFlex7.CellCheckedSettings.flexChecked );
vsGrid.set_Cell(VSFlex7.CellPropertySettings.flexcpChecked,10,1,10,7, VSFlex7.CellCheckedSettings.flexChecked );
vsGrid.set_Cell(VSFlex7.CellPropertySettings.flexcpChecked,11,4,15,7, VSFlex7.CellCheckedSettings.flexChecked );
}
public void Submit()
{
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -