📄 monthstatistisframe.cs
字号:
using System;using System.Collections;using System.ComponentModel;using System.Drawing;using System.Windows.Forms;using System.Data.SqlClient;using System.Data;namespace WindowsApplication{ public class MonthStatistisFrame : WindowsApplication.ReportsTable.ReportTableFrame {
#region 控件... private string starDate="",endDate="",emp_Name="";
private System.Data.SqlClient.SqlDataAdapter sqlDataAdapter;
private System.Data.SqlClient.SqlCommand sqlSelectCommand1;
private System.Data.SqlClient.SqlCommand sqlInsertCommand1;
private System.Data.SqlClient.SqlCommand sqlUpdateCommand1;
private System.Data.SqlClient.SqlCommand sqlDeleteCommand1;
private System.Data.SqlClient.SqlConnection sqlConnection;
private WindowsApplication.MonthTableSet monthTableSet; private System.ComponentModel.IContainer components = null; #endregion
#region 构造函数... public MonthStatistisFrame() { // 该调用是 Windows 窗体设计器所必需的。 InitializeComponent(); // TODO: 在 InitializeComponent 调用后添加任何初始化 } public MonthStatistisFrame(string emp_Name,string starDate,string endDate) { // 该调用是 Windows 窗体设计器所必需的。 InitializeComponent(); this.starDate=starDate; this.endDate=endDate; this.emp_Name=emp_Name; // TODO: 在 InitializeComponent 调用后添加任何初始化 } /// <summary> /// 清理所有正在使用的资源。 /// </summary> protected override void Dispose( bool disposing ) { if( disposing ) { if (components != null) { components.Dispose(); } } base.Dispose( disposing ); } #endregion #region 设计器生成的代码 /// <summary> /// 设计器支持所需的方法 - 不要使用代码编辑器修改 /// 此方法的内容。 /// </summary> private void InitializeComponent() { this.sqlDataAdapter = new System.Data.SqlClient.SqlDataAdapter();
this.sqlDeleteCommand1 = new System.Data.SqlClient.SqlCommand();
this.sqlConnection = new System.Data.SqlClient.SqlConnection();
this.sqlInsertCommand1 = new System.Data.SqlClient.SqlCommand();
this.sqlSelectCommand1 = new System.Data.SqlClient.SqlCommand();
this.sqlUpdateCommand1 = new System.Data.SqlClient.SqlCommand();
this.monthTableSet = new WindowsApplication.MonthTableSet();
((System.ComponentModel.ISupportInitialize)(this.monthTableSet)).BeginInit();
this.SuspendLayout();
//
// label1
//
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(768, 40);
this.label1.Text = "月考勤统计";
//
// csreportView
//
this.csreportView.DisplayToolbar = true;
this.csreportView.Name = "csreportView";
this.csreportView.Size = new System.Drawing.Size(768, 472);
//
// sqlDataAdapter
//
this.sqlDataAdapter.DeleteCommand = this.sqlDeleteCommand1;
this.sqlDataAdapter.InsertCommand = this.sqlInsertCommand1;
this.sqlDataAdapter.SelectCommand = this.sqlSelectCommand1;
this.sqlDataAdapter.TableMappings.AddRange(new System.Data.Common.DataTableMapping[] {
new System.Data.Common.DataTableMapping("Table", "Month_statictis_Table", new System.Data.Common.DataColumnMapping[] {
new System.Data.Common.DataColumnMapping("编号", "编号"),
new System.Data.Common.DataColumnMapping("职工名称", "职工名称"),
new System.Data.Common.DataColumnMapping("统计日期", "统计日期"),
new System.Data.Common.DataColumnMapping("月份", "月份"),
new System.Data.Common.DataColumnMapping("迟到次数", "迟到次数"),
new System.Data.Common.DataColumnMapping("未到次数", "未到次数"),
new System.Data.Common.DataColumnMapping("请假次数", "请假次数"),
new System.Data.Common.DataColumnMapping("备注", "备注")})});
this.sqlDataAdapter.UpdateCommand = this.sqlUpdateCommand1;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -