winfrom中用户控件写一个日历控件

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;


namespace WebUI
{
    public partial class DTPK : UserControl
    {
        public DTPK()
        {
            InitializeComponent();
            button1.Visible = false;
            panel2.Visible = false;
            panel2.Height = 0;
            panel2.Top = textBox2.Top + textBox2.Height;
            panel2.Left = textBox2.Left;
            this.Height = textBox2.Top + textBox2.Height;
            //textBox1.Text = DateTime.Now.ToShortDateString().ToString();yyyy-MM-dd/yyyy-MM-dd hh:mm:ss
            textBox1.Text = DateTime.Now.ToString("yyyy-MM-dd");
            caozuo();
            btnEnvent();
        }
        private void caozuo()
        {
            jisuan();
            shuzi();
        }


        //选择
        void shuzi()
        {
            int dy = DateTime.DaysInMonth(Convert.ToInt32(Convert.ToDateTime(textBox1.Text).Year), Convert.ToInt32(Convert.ToDateTime(textBox1.Text).Month));
            int daysNum = Convert.ToInt32(Convert.ToDateTime(Convert.ToDateTime(textBox1.Text.Trim()).Year.ToString() + "-" + Convert.ToDateTime(textBox1.Text.Trim()).Month.ToString() + "-1").DayOfWeek);
            int frist = daysNum;
            int zong = daysNum + dy;
            int hang = 0;
            int last = 0;
            if (zong > 35)
            {
                hang = 6;
                last = 7 - 42 + zong;
            }
            else
            {
                hang = 5;
                last = 7 - 35 + zong;
            }
            int j = 0;
            for (int i = daysNum; i < 7; i++)
            {
                j++;
                Button bu = (Button)panel1.Controls["d1" + i.ToString()];
                bu.Text = j.ToString();
            }
            for (int i = 0; i < 7; i++)
            {
                j++;
                Button bu = (Button)panel1.Controls["d2" + i.ToString()];
                bu.Text = j.ToString();
            }
            for (int i = 0; i < 7; i++)
            {
                j++;
                Button bu = (Button)panel1.Controls["d3" + i.ToString()];
                bu.Text = j.ToString();
            }
            for (int i = 0; i < 7; i++)
            {
                j++;
                Button bu = (Button)panel1.Controls["d4" + i.ToString()];
                bu.Text = j.ToString();
            }








            int dyPro = DateTime.DaysInMonth(Convert.ToInt32(Convert.ToDateTime(textBox1.Text).Year), Convert.ToInt32(Convert.ToDateTime(textBox1.Text).AddMonths(-1).Month)) + 1;
            for (int k = daysNum - 1; k >= 0; k--)
            {
                dyPro--;
                Button bu = (Button)panel1.Controls["d1" + k.ToString()];
                bu.Text = dyPro.ToString();
            }






            if (hang == 6)
            {
                for (int i = 0; i < 7; i++)
                {
                    j++;
                    Button bu = (Button)panel1.Controls["d5" + i.ToString()];
                    bu.Text = j.ToString();
                }
                for (int i = 0; i < last; i++)
                {
                    j++;
                    Button bu = (Button)panel1.Controls["d6" + i.ToString()];
                    bu.Text = j.ToString();
                }
                for (int i = last; i < 7; i++)
                {
                    Button bu = (Button)panel1.Controls["d6" + i.ToString()];
                    bu.Text = i.ToString();
                }
            }
            else
            {
                if (hang == 5)
                {
                    for (int i = 0; i < last; i++)
                    {
                        j++;
                        Button bu = (Button)panel1.Controls["d5" + i.ToString()];
                        bu.Text = j.ToString();
                    }
                    int ban = 0;
                    for (int i = last; i < 7; i++)
                    {
                        ban++;
                        Button bu = (Button)panel1.Controls["d5" + i.ToString()];
                        bu.Text = ban.ToString();
                    }
                    for (int i = 0; i < 7; i++)
                    {
                        ban++;
                        Button bu = (Button)panel1.Controls["d6" + i.ToString()];
                        bu.Text = ban.ToString();
                    }
                }


            }
        }
        void jisuan()
        {
            int dy = DateTime.DaysInMonth(Convert.ToInt32(Convert.ToDateTime(textBox1.Text).Year), Convert.ToInt32(Convert.ToDateTime(textBox1.Text).Month));
            int daysNum = Convert.ToInt32(Convert.ToDateTime(Convert.ToDateTime(textBox1.Text.Trim()).Year.ToString() + "-" + Convert.ToDateTime(textBox1.Text.Trim()).Month.ToString() + "-1").DayOfWeek);
            int frist = daysNum;
            int zong = daysNum + dy;
            int hang = 0;
            int last = 0;
            if (zong > 35)
            {
                hang = 6;
                last = 7 - 42 + zong;
            }
            else
            {
                hang = 5;
                last = 7 - 35 + zong;
            }


            //这里是排列日期
            #region


            foreach (Control ctl in this.panel1.Controls)
            {
                if (ctl is Button)
                {
                    //首行排列工作日
                    #region
                    if (ctl.Name.Substring(1, 1) == "1")
                    {
                        if (Convert.ToInt32(ctl.Name.Substring(2, 1)) < daysNum)
                        {
                            ctl.Enabled = false;
                        }
                        else
                        {
                            ctl.Enabled = true;
                        }
                    }
                    #endregion


                    if (hang == 5)
                    {
                        //这里是5行内有效区间
                        #region
                        if (ctl.Name.Substring(1, 1) == "5")
                        {
                            if (Convert.ToInt32(ctl.Name.Substring(2, 1)) >= last)
                            {
                                ctl.Enabled = false;
                            }
                            else
                            {
                                ctl.Enabled = true;
                            }
                        }
                        if (ctl.Name.Substring(1, 1) == "6")
                        {
                            ctl.Enabled = false;
                        }
                        #endregion
                    }


                    if (hang == 6)
                    {
                        //这里是6行内有效区间
                        #region
                        if (ctl.Name.Substring(1, 1) == "5")
                        {
                            ctl.Enabled = true;
                        }
                        if (ctl.Name.Substring(1, 1) == "6")
                        {
                            if (Convert.ToInt32(ctl.Name.Substring(2, 1)) >= last)
                            {
                                ctl.Enabled = false;
                            }
                            else
                            {
                                ctl.Enabled = true;
                            }
                        }
                        #endregion
                    }
                }
            }


            #endregion


        }


        //事件
        void btnBg(String Bgname)
        {
            foreach (Control ctl in this.panel1.Controls)
            {
                if (ctl is Button && ctl.Name == Bgname && ctl.Name.Substring(0, 1) == "d")
                {
                    ctl.BackColor = Color.Transparent;
                    ctl.ForeColor = Color.White;
                }
                else
                {
                    ctl.BackColor = Color.Transparent;
                    ctl.ForeColor = Color.Red;
                }
            }
        }
        void clickBtn(object sender, EventArgs e)
        {
            //textBox1.Text = Convert.ToDateTime(Convert.ToDateTime(textBox1.Text).Year.ToString() + "-" + Convert.ToDateTime(textBox1.Text).Month.ToString() + "-" + this.ActiveControl.Text).ToShortDateString();
            textBox1.Text = Convert.ToDateTime(Convert.ToDateTime(textBox1.Text).Year.ToString() + "-" + Convert.ToDateTime(textBox1.Text).Month.ToString() + "-" + this.ActiveControl.Text).Date.ToString("yyyy-MM-dd");
            textBox2.Text = textBox1.Text;
            if (this.ActiveControl.Name.Substring(0, 1) == "d")
            {
                btnBg(this.ActiveControl.Name);
            }
        }
        void btnEnvent()
        {
            foreach (Control ctl in this.panel1.Controls)
            {
                if (ctl is Button && ctl.Name.Substring(0, 1) == "d")
                {
                    ctl.Click += new EventHandler(clickBtn);
                }
            }
        }


        //操作
        private void button3_Click(object sender, EventArgs e)
        {
           
            //textBox1.Text = Convert.ToDateTime(textBox1.Text).AddMonths(1).ToShortDateString();
            textBox1.Text = Convert.ToDateTime(textBox1.Text).AddMonths(1).Date.ToString("yyyy-MM-dd");
            caozuo();
        }


        private void button2_Click(object sender, EventArgs e)
        {
            //textBox1.Text = Convert.ToDateTime(textBox1.Text).AddMonths(-1).ToShortDateString();
            textBox1.Text = Convert.ToDateTime(textBox1.Text).AddMonths(-1).Date.ToString("yyyy-MM-dd"); 
            caozuo();
        }


        private void utton4_Click(object sender, EventArgs e)
        {
            //textBox1.Text = Convert.ToDateTime(textBox1.Text).AddYears(1).ToShortDateString();
            textBox1.Text = Convert.ToDateTime(textBox1.Text).AddYears(1).Date.ToString("yyyy-MM-dd");
            caozuo();
        }


        private void utton1_Click(object sender, EventArgs e)
        {


            //textBox1.Text = Convert.ToDateTime(textBox1.Text).AddYears(-1).ToShortDateString();
            textBox1.Text = Convert.ToDateTime(textBox1.Text).AddYears(-1).Date.ToString("yyyy-MM-dd");
            caozuo();
        }


        //属性
        [DefaultValue(typeof(string), ""), Browsable(true), Description("控件中的TextBox的Text属性"), Category("Action")]


        public String DateNum
        {
            get { return textBox2.Text; }
            set { textBox2.Text = value; }
        }


        private void textBox2_MouseClick(object sender, MouseEventArgs e)
        {
            if (button1.Visible == false)
            {
                button1.Visible = true;
            }
        }


        private void button1_Click(object sender, EventArgs e)
        {
            panel2.Visible = true;
            panel2.Top = textBox2.Top + textBox2.Height;
            panel2.Height = 250;
            this.Height = 250 + textBox2.Height + textBox2.Top;
        }
        private void DTPK_MouseLeave(object sender, EventArgs e)
        {
            button1.Visible = false;
            panel2.Visible = false;
            panel2.Height = 0;
            panel2.Top = textBox2.Top + textBox2.Height;
            panel2.Left = textBox2.Left;
            this.Height = textBox2.Top + textBox2.Height;
        }


        private void btnC_Click(object sender, EventArgs e)
        {
            textBox2.Text = "";
        }


        private void btnNow_Click(object sender, EventArgs e)
        {


            textBox2.Text = DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss");


        }




    }
}


设计文件:namespace WebUI
{
    partial class DTPK
    {
        /// <summary> 
        /// 必需的设计器变量。
        /// </summary>
        private System.ComponentModel.IContainer components = null;


        /// <summary> 
        /// 清理所有正在使用的资源。
        /// </summary>
        /// <param name="disposing">如果应释放托管资源,为 true;否则为 false。</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }


        #region 组件设计器生成的代码


        /// <summary> 
        /// 设计器支持所需的方法 - 不要
        /// 使用代码编辑器修改此方法的内容。
        /// </summary>
        private void InitializeComponent()
        {
            this.panel1 = new System.Windows.Forms.Panel();
            this.d66 = new System.Windows.Forms.Button();
            this.d65 = new System.Windows.Forms.Button();
            this.d64 = new System.Windows.Forms.Button();
            this.d63 = new System.Windows.Forms.Button();
            this.d62 = new System.Windows.Forms.Button();
            this.d61 = new System.Windows.Forms.Button();
            this.d60 = new System.Windows.Forms.Button();
            this.label1 = new System.Windows.Forms.Label();
            this.d16 = new System.Windows.Forms.Button();
            this.label7 = new System.Windows.Forms.Label();
            this.d15 = new System.Windows.Forms.Button();
            this.label2 = new System.Windows.Forms.Label();
            this.d14 = new System.Windows.Forms.Button();
            this.label3 = new System.Windows.Forms.Label();
            this.d13 = new System.Windows.Forms.Button();
            this.label4 = new System.Windows.Forms.Label();
            this.d12 = new System.Windows.Forms.Button();
            this.label5 = new System.Windows.Forms.Label();
            this.d11 = new System.Windows.Forms.Button();
            this.label6 = new System.Windows.Forms.Label();
            this.d10 = new System.Windows.Forms.Button();
            this.d20 = new System.Windows.Forms.Button();
            this.d56 = new System.Windows.Forms.Button();
            this.d21 = new System.Windows.Forms.Button();
            this.d55 = new System.Windows.Forms.Button();
            this.d22 = new System.Windows.Forms.Button();
            this.d54 = new System.Windows.Forms.Button();
            this.d23 = new System.Windows.Forms.Button();
            this.d53 = new System.Windows.Forms.Button();
            this.d24 = new System.Windows.Forms.Button();
            this.d52 = new System.Windows.Forms.Button();
            this.d25 = new System.Windows.Forms.Button();
            this.d51 = new System.Windows.Forms.Button();
            this.d26 = new System.Windows.Forms.Button();
            this.d50 = new System.Windows.Forms.Button();
            this.d30 = new System.Windows.Forms.Button();
            this.d45 = new System.Windows.Forms.Button();
            this.d31 = new System.Windows.Forms.Button();
            this.d43 = new System.Windows.Forms.Button();
            this.d32 = new System.Windows.Forms.Button();
            this.d42 = new System.Windows.Forms.Button();
            this.d33 = new System.Windows.Forms.Button();
            this.d41 = new System.Windows.Forms.Button();
            this.d34 = new System.Windows.Forms.Button();
            this.d40 = new System.Windows.Forms.Button();
            this.d35 = new System.Windows.Forms.Button();
            this.d44 = new System.Windows.Forms.Button();
            this.d46 = new System.Windows.Forms.Button();
            this.d36 = new System.Windows.Forms.Button();
            this.textBox1 = new System.Windows.Forms.TextBox();
            this.utton3 = new System.Windows.Forms.Button();
            this.utton4 = new System.Windows.Forms.Button();
            this.utton2 = new System.Windows.Forms.Button();
            this.utton1 = new System.Windows.Forms.Button();
            this.textBox2 = new System.Windows.Forms.TextBox();
            this.panel2 = new System.Windows.Forms.Panel();
            this.btnNow = new System.Windows.Forms.Button();
            this.btnC = new System.Windows.Forms.Button();
            this.button1 = new System.Windows.Forms.Button();
            this.panel1.SuspendLayout();
            this.panel2.SuspendLayout();
            this.SuspendLayout();
            // 
            // panel1
            // 
            this.panel1.BackColor = System.Drawing.Color.Transparent;
            this.panel1.Controls.Add(this.d66);
            this.panel1.Controls.Add(this.d65);
            this.panel1.Controls.Add(this.d64);
            this.panel1.Controls.Add(this.d63);
            this.panel1.Controls.Add(this.d62);
            this.panel1.Controls.Add(this.d61);
            this.panel1.Controls.Add(this.d60);
            this.panel1.Controls.Add(this.label1);
            this.panel1.Controls.Add(this.d16);
            this.panel1.Controls.Add(this.label7);
            this.panel1.Controls.Add(this.d15);
            this.panel1.Controls.Add(this.label2);
            this.panel1.Controls.Add(this.d14);
            this.panel1.Controls.Add(this.label3);
            this.panel1.Controls.Add(this.d13);
            this.panel1.Controls.Add(this.label4);
            this.panel1.Controls.Add(this.d12);
            this.panel1.Controls.Add(this.label5);
            this.panel1.Controls.Add(this.d11);
            this.panel1.Controls.Add(this.label6);
            this.panel1.Controls.Add(this.d10);
            this.panel1.Controls.Add(this.d20);
            this.panel1.Controls.Add(this.d56);
            this.panel1.Controls.Add(this.d21);
            this.panel1.Controls.Add(this.d55);
            this.panel1.Controls.Add(this.d22);
            this.panel1.Controls.Add(this.d54);
            this.panel1.Controls.Add(this.d23);
            this.panel1.Controls.Add(this.d53);
            this.panel1.Controls.Add(this.d24);
            this.panel1.Controls.Add(this.d52);
            this.panel1.Controls.Add(this.d25);
            this.panel1.Controls.Add(this.d51);
            this.panel1.Controls.Add(this.d26);
            this.panel1.Controls.Add(this.d50);
            this.panel1.Controls.Add(this.d30);
            this.panel1.Controls.Add(this.d45);
            this.panel1.Controls.Add(this.d31);
            this.panel1.Controls.Add(this.d43);
            this.panel1.Controls.Add(this.d32);
            this.panel1.Controls.Add(this.d42);
            this.panel1.Controls.Add(this.d33);
            this.panel1.Controls.Add(this.d41);
            this.panel1.Controls.Add(this.d34);
            this.panel1.Controls.Add(this.d40);
            this.panel1.Controls.Add(this.d35);
            this.panel1.Controls.Add(this.d44);
            this.panel1.Controls.Add(this.d46);
            this.panel1.Controls.Add(this.d36);
            this.panel1.Location = new System.Drawing.Point(3, 30);
            this.panel1.Name = "panel1";
            this.panel1.Size = new System.Drawing.Size(210, 199);
            this.panel1.TabIndex = 47;
            // 
            // d66
            // 
            this.d66.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.d66.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.d66.ForeColor = System.Drawing.Color.Red;
            this.d66.Location = new System.Drawing.Point(174, 173);
            this.d66.Name = "d66";
            this.d66.Size = new System.Drawing.Size(30, 21);
            this.d66.TabIndex = 56;
            this.d66.Text = "31";
            this.d66.UseVisualStyleBackColor = true;
            // 
            // d65
            // 
            this.d65.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.d65.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.d65.ForeColor = System.Drawing.Color.Red;
            this.d65.Location = new System.Drawing.Point(145, 173);
            this.d65.Name = "d65";
            this.d65.Size = new System.Drawing.Size(30, 21);
            this.d65.TabIndex = 55;
            this.d65.Text = "30";
            this.d65.UseVisualStyleBackColor = true;
            // 
            // d64
            // 
            this.d64.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.d64.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.d64.ForeColor = System.Drawing.Color.Red;
            this.d64.Location = new System.Drawing.Point(116, 173);
            this.d64.Name = "d64";
            this.d64.Size = new System.Drawing.Size(30, 21);
            this.d64.TabIndex = 54;
            this.d64.Text = "29";
            this.d64.UseVisualStyleBackColor = true;
            // 
            // d63
            // 
            this.d63.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.d63.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.d63.ForeColor = System.Drawing.Color.Red;
            this.d63.Location = new System.Drawing.Point(87, 173);
            this.d63.Name = "d63";
            this.d63.Size = new System.Drawing.Size(30, 21);
            this.d63.TabIndex = 53;
            this.d63.Text = "28";
            this.d63.UseVisualStyleBackColor = true;
            // 
            // d62
            // 
            this.d62.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.d62.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.d62.ForeColor = System.Drawing.Color.Red;
            this.d62.Location = new System.Drawing.Point(58, 173);
            this.d62.Name = "d62";
            this.d62.Size = new System.Drawing.Size(30, 21);
            this.d62.TabIndex = 52;
            this.d62.Text = "27";
            this.d62.UseVisualStyleBackColor = true;
            // 
            // d61
            // 
            this.d61.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.d61.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.d61.ForeColor = System.Drawing.Color.Red;
            this.d61.Location = new System.Drawing.Point(29, 173);
            this.d61.Name = "d61";
            this.d61.Size = new System.Drawing.Size(30, 21);
            this.d61.TabIndex = 51;
            this.d61.Text = "26";
            this.d61.UseVisualStyleBackColor = true;
            // 
            // d60
            // 
            this.d60.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.d60.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.d60.ForeColor = System.Drawing.Color.Red;
            this.d60.Location = new System.Drawing.Point(0, 173);
            this.d60.Name = "d60";
            this.d60.Size = new System.Drawing.Size(30, 21);
            this.d60.TabIndex = 50;
            this.d60.Text = "25";
            this.d60.UseVisualStyleBackColor = true;
            // 
            // label1
            // 
            this.label1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192)))));
            this.label1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.label1.Location = new System.Drawing.Point(0, 4);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(30, 15);
            this.label1.TabIndex = 31;
            this.label1.Text = "日";
            this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // d16
            // 
            this.d16.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.d16.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.d16.ForeColor = System.Drawing.Color.Red;
            this.d16.Location = new System.Drawing.Point(174, 26);
            this.d16.Name = "d16";
            this.d16.Size = new System.Drawing.Size(30, 21);
            this.d16.TabIndex = 44;
            this.d16.Text = "7";
            this.d16.UseVisualStyleBackColor = true;
            // 
            // label7
            // 
            this.label7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192)))));
            this.label7.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.label7.Location = new System.Drawing.Point(174, 4);
            this.label7.Name = "label7";
            this.label7.Size = new System.Drawing.Size(30, 15);
            this.label7.TabIndex = 45;
            this.label7.Text = "六";
            this.label7.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // d15
            // 
            this.d15.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.d15.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.d15.ForeColor = System.Drawing.Color.Red;
            this.d15.Location = new System.Drawing.Point(145, 26);
            this.d15.Name = "d15";
            this.d15.Size = new System.Drawing.Size(30, 21);
            this.d15.TabIndex = 43;
            this.d15.Text = "6";
            this.d15.UseVisualStyleBackColor = true;
            // 
            // label2
            // 
            this.label2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192)))));
            this.label2.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.label2.Location = new System.Drawing.Point(29, 4);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(30, 15);
            this.label2.TabIndex = 32;
            this.label2.Text = "一";
            this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // d14
            // 
            this.d14.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.d14.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.d14.ForeColor = System.Drawing.Color.Red;
            this.d14.Location = new System.Drawing.Point(116, 26);
            this.d14.Name = "d14";
            this.d14.Size = new System.Drawing.Size(30, 21);
            this.d14.TabIndex = 42;
            this.d14.Text = "5";
            this.d14.UseVisualStyleBackColor = true;
            // 
            // label3
            // 
            this.label3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192)))));
            this.label3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.label3.Location = new System.Drawing.Point(58, 4);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(30, 15);
            this.label3.TabIndex = 33;
            this.label3.Text = "二";
            this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // d13
            // 
            this.d13.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.d13.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.d13.ForeColor = System.Drawing.Color.Red;
            this.d13.Location = new System.Drawing.Point(87, 26);
            this.d13.Name = "d13";
            this.d13.Size = new System.Drawing.Size(30, 21);
            this.d13.TabIndex = 41;
            this.d13.Text = "4";
            this.d13.UseVisualStyleBackColor = true;
            // 
            // label4
            // 
            this.label4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192)))));
            this.label4.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.label4.Location = new System.Drawing.Point(87, 4);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(30, 15);
            this.label4.TabIndex = 34;
            this.label4.Text = "三";
            this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // d12
            // 
            this.d12.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.d12.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.d12.ForeColor = System.Drawing.Color.Red;
            this.d12.Location = new System.Drawing.Point(58, 26);
            this.d12.Name = "d12";
            this.d12.Size = new System.Drawing.Size(30, 21);
            this.d12.TabIndex = 40;
            this.d12.Text = "3";
            this.d12.UseVisualStyleBackColor = true;
            // 
            // label5
            // 
            this.label5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192)))));
            this.label5.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.label5.Location = new System.Drawing.Point(116, 4);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(30, 15);
            this.label5.TabIndex = 35;
            this.label5.Text = "四";
            this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // d11
            // 
            this.d11.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.d11.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.d11.ForeColor = System.Drawing.Color.Red;
            this.d11.Location = new System.Drawing.Point(29, 26);
            this.d11.Name = "d11";
            this.d11.Size = new System.Drawing.Size(30, 21);
            this.d11.TabIndex = 39;
            this.d11.Text = "2";
            this.d11.UseVisualStyleBackColor = true;
            // 
            // label6
            // 
            this.label6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(224)))), ((int)(((byte)(192)))));
            this.label6.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
            this.label6.Location = new System.Drawing.Point(145, 4);
            this.label6.Name = "label6";
            this.label6.Size = new System.Drawing.Size(30, 15);
            this.label6.TabIndex = 36;
            this.label6.Text = "五";
            this.label6.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            // 
            // d10
            // 
            this.d10.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.d10.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.d10.ForeColor = System.Drawing.Color.Red;
            this.d10.Location = new System.Drawing.Point(0, 26);
            this.d10.Name = "d10";
            this.d10.Size = new System.Drawing.Size(30, 21);
            this.d10.TabIndex = 38;
            this.d10.TabStop = false;
            this.d10.Text = "1";
            this.d10.UseVisualStyleBackColor = true;
            // 
            // d20
            // 
            this.d20.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.d20.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.d20.ForeColor = System.Drawing.Color.Red;
            this.d20.Location = new System.Drawing.Point(0, 53);
            this.d20.Name = "d20";
            this.d20.Size = new System.Drawing.Size(30, 21);
            this.d20.TabIndex = 1;
            this.d20.Text = "1";
            this.d20.UseVisualStyleBackColor = true;
            // 
            // d56
            // 
            this.d56.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.d56.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.d56.ForeColor = System.Drawing.Color.Red;
            this.d56.Location = new System.Drawing.Point(174, 143);
            this.d56.Name = "d56";
            this.d56.Size = new System.Drawing.Size(30, 21);
            this.d56.TabIndex = 29;
            this.d56.Text = "31";
            this.d56.UseVisualStyleBackColor = true;
            // 
            // d21
            // 
            this.d21.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.d21.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.d21.ForeColor = System.Drawing.Color.Red;
            this.d21.Location = new System.Drawing.Point(29, 53);
            this.d21.Name = "d21";
            this.d21.Size = new System.Drawing.Size(30, 21);
            this.d21.TabIndex = 2;
            this.d21.Text = "2";
            this.d21.UseVisualStyleBackColor = true;
            // 
            // d55
            // 
            this.d55.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.d55.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.d55.ForeColor = System.Drawing.Color.Red;
            this.d55.Location = new System.Drawing.Point(145, 143);
            this.d55.Name = "d55";
            this.d55.Size = new System.Drawing.Size(30, 21);
            this.d55.TabIndex = 28;
            this.d55.Text = "30";
            this.d55.UseVisualStyleBackColor = true;
            // 
            // d22
            // 
            this.d22.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.d22.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.d22.ForeColor = System.Drawing.Color.Red;
            this.d22.Location = new System.Drawing.Point(58, 53);
            this.d22.Name = "d22";
            this.d22.Size = new System.Drawing.Size(30, 21);
            this.d22.TabIndex = 3;
            this.d22.Text = "3";
            this.d22.UseVisualStyleBackColor = true;
            // 
            // d54
            // 
            this.d54.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.d54.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.d54.ForeColor = System.Drawing.Color.Red;
            this.d54.Location = new System.Drawing.Point(116, 143);
            this.d54.Name = "d54";
            this.d54.Size = new System.Drawing.Size(30, 21);
            this.d54.TabIndex = 27;
            this.d54.Text = "29";
            this.d54.UseVisualStyleBackColor = true;
            // 
            // d23
            // 
            this.d23.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.d23.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.d23.ForeColor = System.Drawing.Color.Red;
            this.d23.Location = new System.Drawing.Point(87, 53);
            this.d23.Name = "d23";
            this.d23.Size = new System.Drawing.Size(30, 21);
            this.d23.TabIndex = 4;
            this.d23.Text = "4";
            this.d23.UseVisualStyleBackColor = true;
            // 
            // d53
            // 
            this.d53.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.d53.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.d53.ForeColor = System.Drawing.Color.Red;
            this.d53.Location = new System.Drawing.Point(87, 143);
            this.d53.Name = "d53";
            this.d53.Size = new System.Drawing.Size(30, 21);
            this.d53.TabIndex = 26;
            this.d53.Text = "28";
            this.d53.UseVisualStyleBackColor = true;
            // 
            // d24
            // 
            this.d24.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.d24.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.d24.ForeColor = System.Drawing.Color.Red;
            this.d24.Location = new System.Drawing.Point(116, 53);
            this.d24.Name = "d24";
            this.d24.Size = new System.Drawing.Size(30, 21);
            this.d24.TabIndex = 5;
            this.d24.Text = "5";
            this.d24.UseVisualStyleBackColor = true;
            // 
            // d52
            // 
            this.d52.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.d52.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.d52.ForeColor = System.Drawing.Color.Red;
            this.d52.Location = new System.Drawing.Point(58, 143);
            this.d52.Name = "d52";
            this.d52.Size = new System.Drawing.Size(30, 21);
            this.d52.TabIndex = 25;
            this.d52.Text = "27";
            this.d52.UseVisualStyleBackColor = true;
            // 
            // d25
            // 
            this.d25.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.d25.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.d25.ForeColor = System.Drawing.Color.Red;
            this.d25.Location = new System.Drawing.Point(145, 53);
            this.d25.Name = "d25";
            this.d25.Size = new System.Drawing.Size(30, 21);
            this.d25.TabIndex = 6;
            this.d25.Text = "6";
            this.d25.UseVisualStyleBackColor = true;
            // 
            // d51
            // 
            this.d51.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.d51.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.d51.ForeColor = System.Drawing.Color.Red;
            this.d51.Location = new System.Drawing.Point(29, 143);
            this.d51.Name = "d51";
            this.d51.Size = new System.Drawing.Size(30, 21);
            this.d51.TabIndex = 24;
            this.d51.Text = "26";
            this.d51.UseVisualStyleBackColor = true;
            // 
            // d26
            // 
            this.d26.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.d26.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.d26.ForeColor = System.Drawing.Color.Red;
            this.d26.Location = new System.Drawing.Point(174, 53);
            this.d26.Name = "d26";
            this.d26.Size = new System.Drawing.Size(30, 21);
            this.d26.TabIndex = 7;
            this.d26.Text = "7";
            this.d26.UseVisualStyleBackColor = true;
            // 
            // d50
            // 
            this.d50.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.d50.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.d50.ForeColor = System.Drawing.Color.Red;
            this.d50.Location = new System.Drawing.Point(0, 143);
            this.d50.Name = "d50";
            this.d50.Size = new System.Drawing.Size(30, 21);
            this.d50.TabIndex = 23;
            this.d50.Text = "25";
            this.d50.UseVisualStyleBackColor = true;
            // 
            // d30
            // 
            this.d30.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.d30.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.d30.ForeColor = System.Drawing.Color.Red;
            this.d30.Location = new System.Drawing.Point(0, 83);
            this.d30.Name = "d30";
            this.d30.Size = new System.Drawing.Size(30, 21);
            this.d30.TabIndex = 9;
            this.d30.Text = "9";
            this.d30.UseVisualStyleBackColor = true;
            // 
            // d45
            // 
            this.d45.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.d45.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.d45.ForeColor = System.Drawing.Color.Red;
            this.d45.Location = new System.Drawing.Point(145, 113);
            this.d45.Name = "d45";
            this.d45.Size = new System.Drawing.Size(30, 21);
            this.d45.TabIndex = 21;
            this.d45.Text = "22";
            this.d45.UseVisualStyleBackColor = true;
            // 
            // d31
            // 
            this.d31.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.d31.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.d31.ForeColor = System.Drawing.Color.Red;
            this.d31.Location = new System.Drawing.Point(29, 83);
            this.d31.Name = "d31";
            this.d31.Size = new System.Drawing.Size(30, 21);
            this.d31.TabIndex = 10;
            this.d31.Text = "10";
            this.d31.UseVisualStyleBackColor = true;
            // 
            // d43
            // 
            this.d43.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.d43.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.d43.ForeColor = System.Drawing.Color.Red;
            this.d43.Location = new System.Drawing.Point(87, 113);
            this.d43.Name = "d43";
            this.d43.Size = new System.Drawing.Size(30, 21);
            this.d43.TabIndex = 20;
            this.d43.Text = "20";
            this.d43.UseVisualStyleBackColor = true;
            // 
            // d32
            // 
            this.d32.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.d32.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.d32.ForeColor = System.Drawing.Color.Red;
            this.d32.Location = new System.Drawing.Point(58, 83);
            this.d32.Name = "d32";
            this.d32.Size = new System.Drawing.Size(30, 21);
            this.d32.TabIndex = 11;
            this.d32.Text = "11";
            this.d32.UseVisualStyleBackColor = true;
            // 
            // d42
            // 
            this.d42.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.d42.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.d42.ForeColor = System.Drawing.Color.Red;
            this.d42.Location = new System.Drawing.Point(58, 113);
            this.d42.Name = "d42";
            this.d42.Size = new System.Drawing.Size(30, 21);
            this.d42.TabIndex = 19;
            this.d42.Text = "19";
            this.d42.UseVisualStyleBackColor = true;
            // 
            // d33
            // 
            this.d33.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.d33.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.d33.ForeColor = System.Drawing.Color.Red;
            this.d33.Location = new System.Drawing.Point(87, 83);
            this.d33.Name = "d33";
            this.d33.Size = new System.Drawing.Size(30, 21);
            this.d33.TabIndex = 12;
            this.d33.Text = "12";
            this.d33.UseVisualStyleBackColor = true;
            // 
            // d41
            // 
            this.d41.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.d41.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.d41.ForeColor = System.Drawing.Color.Red;
            this.d41.Location = new System.Drawing.Point(29, 113);
            this.d41.Name = "d41";
            this.d41.Size = new System.Drawing.Size(30, 21);
            this.d41.TabIndex = 18;
            this.d41.Text = "18";
            this.d41.UseVisualStyleBackColor = true;
            // 
            // d34
            // 
            this.d34.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.d34.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.d34.ForeColor = System.Drawing.Color.Red;
            this.d34.Location = new System.Drawing.Point(115, 83);
            this.d34.Name = "d34";
            this.d34.Size = new System.Drawing.Size(30, 21);
            this.d34.TabIndex = 13;
            this.d34.Text = "13";
            this.d34.UseVisualStyleBackColor = true;
            // 
            // d40
            // 
            this.d40.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.d40.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.d40.ForeColor = System.Drawing.Color.Red;
            this.d40.Location = new System.Drawing.Point(0, 113);
            this.d40.Name = "d40";
            this.d40.Size = new System.Drawing.Size(30, 21);
            this.d40.TabIndex = 17;
            this.d40.Text = "17";
            this.d40.UseVisualStyleBackColor = true;
            // 
            // d35
            // 
            this.d35.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.d35.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.d35.ForeColor = System.Drawing.Color.Red;
            this.d35.Location = new System.Drawing.Point(144, 83);
            this.d35.Name = "d35";
            this.d35.Size = new System.Drawing.Size(30, 21);
            this.d35.TabIndex = 14;
            this.d35.Text = "14";
            this.d35.UseVisualStyleBackColor = true;
            // 
            // d44
            // 
            this.d44.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.d44.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.d44.ForeColor = System.Drawing.Color.Red;
            this.d44.Location = new System.Drawing.Point(116, 113);
            this.d44.Name = "d44";
            this.d44.Size = new System.Drawing.Size(30, 21);
            this.d44.TabIndex = 17;
            this.d44.Text = "21";
            this.d44.UseVisualStyleBackColor = true;
            // 
            // d46
            // 
            this.d46.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.d46.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.d46.ForeColor = System.Drawing.Color.Red;
            this.d46.Location = new System.Drawing.Point(173, 113);
            this.d46.Name = "d46";
            this.d46.Size = new System.Drawing.Size(30, 21);
            this.d46.TabIndex = 15;
            this.d46.Text = "23";
            this.d46.UseVisualStyleBackColor = true;
            // 
            // d36
            // 
            this.d36.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.d36.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.d36.ForeColor = System.Drawing.Color.Red;
            this.d36.Location = new System.Drawing.Point(173, 83);
            this.d36.Name = "d36";
            this.d36.Size = new System.Drawing.Size(30, 21);
            this.d36.TabIndex = 15;
            this.d36.Text = "15";
            this.d36.UseVisualStyleBackColor = true;
            // 
            // textBox1
            // 
            this.textBox1.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.textBox1.Location = new System.Drawing.Point(73, 3);
            this.textBox1.Name = "textBox1";
            this.textBox1.Size = new System.Drawing.Size(63, 21);
            this.textBox1.TabIndex = 49;
            this.textBox1.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
            // 
            // utton3
            // 
            this.utton3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
            this.utton3.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.utton3.ForeColor = System.Drawing.Color.Transparent;
            this.utton3.Location = new System.Drawing.Point(137, 3);
            this.utton3.Name = "utton3";
            this.utton3.Size = new System.Drawing.Size(37, 21);
            this.utton3.TabIndex = 48;
            this.utton3.Text = "月>";
            this.utton3.UseVisualStyleBackColor = false;
            this.utton3.Click += new System.EventHandler(this.button3_Click);
            // 
            // utton4
            // 
            this.utton4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
            this.utton4.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.utton4.ForeColor = System.Drawing.Color.Transparent;
            this.utton4.Location = new System.Drawing.Point(171, 3);
            this.utton4.Name = "utton4";
            this.utton4.Size = new System.Drawing.Size(37, 21);
            this.utton4.TabIndex = 47;
            this.utton4.Text = "年>>";
            this.utton4.UseVisualStyleBackColor = false;
            this.utton4.Click += new System.EventHandler(this.utton4_Click);
            // 
            // utton2
            // 
            this.utton2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
            this.utton2.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.utton2.ForeColor = System.Drawing.Color.Transparent;
            this.utton2.Location = new System.Drawing.Point(37, 3);
            this.utton2.Name = "utton2";
            this.utton2.Size = new System.Drawing.Size(37, 21);
            this.utton2.TabIndex = 46;
            this.utton2.Text = "<月";
            this.utton2.UseVisualStyleBackColor = false;
            this.utton2.Click += new System.EventHandler(this.button2_Click);
            // 
            // utton1
            // 
            this.utton1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(192)))), ((int)(((byte)(192)))));
            this.utton1.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.utton1.ForeColor = System.Drawing.Color.Transparent;
            this.utton1.Location = new System.Drawing.Point(3, 3);
            this.utton1.Name = "utton1";
            this.utton1.Size = new System.Drawing.Size(37, 21);
            this.utton1.TabIndex = 0;
            this.utton1.Text = "<<年";
            this.utton1.UseVisualStyleBackColor = false;
            this.utton1.Click += new System.EventHandler(this.utton1_Click);
            // 
            // textBox2
            // 
            this.textBox2.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.textBox2.Location = new System.Drawing.Point(3, 2);
            this.textBox2.Name = "textBox2";
            this.textBox2.Size = new System.Drawing.Size(206, 21);
            this.textBox2.TabIndex = 50;
            this.textBox2.MouseClick += new System.Windows.Forms.MouseEventHandler(this.textBox2_MouseClick);
            // 
            // panel2
            // 
            this.panel2.Controls.Add(this.btnNow);
            this.panel2.Controls.Add(this.utton1);
            this.panel2.Controls.Add(this.textBox1);
            this.panel2.Controls.Add(this.panel1);
            this.panel2.Controls.Add(this.utton4);
            this.panel2.Controls.Add(this.utton3);
            this.panel2.Controls.Add(this.utton2);
            this.panel2.Controls.Add(this.btnC);
            this.panel2.Location = new System.Drawing.Point(2, 26);
            this.panel2.Name = "panel2";
            this.panel2.Size = new System.Drawing.Size(210, 260);
            this.panel2.TabIndex = 51;
            // 
            // btnNow
            // 
            this.btnNow.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.btnNow.ForeColor = System.Drawing.Color.Red;
            this.btnNow.Location = new System.Drawing.Point(90, 230);
            this.btnNow.Name = "btnNow";
            this.btnNow.Size = new System.Drawing.Size(37, 21);
            this.btnNow.TabIndex = 57;
            this.btnNow.Text = "今天";
            this.btnNow.UseVisualStyleBackColor = true;
            this.btnNow.Click += new System.EventHandler(this.btnNow_Click);
            // 
            // btnC
            // 
            this.btnC.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.btnC.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
            this.btnC.ForeColor = System.Drawing.Color.Red;
            this.btnC.Location = new System.Drawing.Point(132, 230);
            this.btnC.Name = "btnC";
            this.btnC.Size = new System.Drawing.Size(37, 21);
            this.btnC.TabIndex = 56;
            this.btnC.Text = "清空";
            this.btnC.UseVisualStyleBackColor = true;
            this.btnC.Click += new System.EventHandler(this.btnC_Click);
            // 
            // button1
            // 
            this.button1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255)))));
            this.button1.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
            this.button1.Location = new System.Drawing.Point(172, 3);
            this.button1.Name = "button1";
            this.button1.Size = new System.Drawing.Size(38, 21);
            this.button1.TabIndex = 52;
            this.button1.Text = "┅";
            this.button1.UseVisualStyleBackColor = false;
            this.button1.Click += new System.EventHandler(this.button1_Click);
            // 
            // DTPK
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.BackColor = System.Drawing.Color.Transparent;
            this.Controls.Add(this.button1);
            this.Controls.Add(this.panel2);
            this.Controls.Add(this.textBox2);
            this.Name = "DTPK";
            this.Size = new System.Drawing.Size(213, 286);
            this.MouseLeave += new System.EventHandler(this.DTPK_MouseLeave);
            this.panel1.ResumeLayout(false);
            this.panel2.ResumeLayout(false);
            this.panel2.PerformLayout();
            this.ResumeLayout(false);
            this.PerformLayout();


        }


        #endregion


        private System.Windows.Forms.Panel panel1;
        private System.Windows.Forms.Button utton3;
        private System.Windows.Forms.Button utton4;
        private System.Windows.Forms.Button utton2;
        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.Button utton1;
        private System.Windows.Forms.Button d16;
        private System.Windows.Forms.Label label7;
        private System.Windows.Forms.Button d15;
        private System.Windows.Forms.Label label2;
        private System.Windows.Forms.Button d14;
        private System.Windows.Forms.Label label3;
        private System.Windows.Forms.Button d13;
        private System.Windows.Forms.Label label4;
        private System.Windows.Forms.Button d12;
        private System.Windows.Forms.Label label5;
        private System.Windows.Forms.Button d11;
        private System.Windows.Forms.Label label6;
        private System.Windows.Forms.Button d10;
        private System.Windows.Forms.Button d20;
        private System.Windows.Forms.Button d56;
        private System.Windows.Forms.Button d21;
        private System.Windows.Forms.Button d55;
        private System.Windows.Forms.Button d22;
        private System.Windows.Forms.Button d54;
        private System.Windows.Forms.Button d23;
        private System.Windows.Forms.Button d53;
        private System.Windows.Forms.Button d24;
        private System.Windows.Forms.Button d52;
        private System.Windows.Forms.Button d25;
        private System.Windows.Forms.Button d51;
        private System.Windows.Forms.Button d26;
        private System.Windows.Forms.Button d50;
        private System.Windows.Forms.Button d30;
        private System.Windows.Forms.Button d45;
        private System.Windows.Forms.Button d31;
        private System.Windows.Forms.Button d43;
        private System.Windows.Forms.Button d32;
        private System.Windows.Forms.Button d42;
        private System.Windows.Forms.Button d33;
        private System.Windows.Forms.Button d41;
        private System.Windows.Forms.Button d34;
        private System.Windows.Forms.Button d40;
        private System.Windows.Forms.Button d35;
        private System.Windows.Forms.Button d44;
        private System.Windows.Forms.Button d46;
        private System.Windows.Forms.Button d36;
        private System.Windows.Forms.Button d66;
      
        private System.Windows.Forms.Button d65;
        private System.Windows.Forms.Button d64;
        private System.Windows.Forms.Button d63;
        private System.Windows.Forms.Button d62;
        private System.Windows.Forms.Button d61;
        private System.Windows.Forms.Button d60;
        private System.Windows.Forms.Panel panel2;
        private System.Windows.Forms.Button button1;
        private System.Windows.Forms.TextBox textBox1;
        public System.Windows.Forms.TextBox textBox2;
        private System.Windows.Forms.Button btnC;
        private System.Windows.Forms.Button btnNow;
    }
}


后台调用:

  private void btnSelect_Click(object sender, EventArgs e)
        {
            try
            {
               // date.ToString("yyyy-MM-dd hh:mm:ss")
            
                if (txtYieloNo.Text != null)
                {
                    string NO = txtYieloNo.Text.ToString(); ;
                    string Name = txtSellUnitName.Text.Trim().ToString();


                    string date = dtpk1.textBox2.Text.Trim().ToString();
                    DataTable dt = new DataTable();
                    dt = Business.YieldManage.YieldTransit.YieldTransitEditBus.getRoleByRoleNo(NO, Name,date);
                    if (dt != null && dt.Rows.Count > 0)
                    {
                        dgvShowAll.DataSource = dt;
                      
                    }
                    else 
                    {
                        MessageBox.Show("没有对应的数据");
                    }
                }
                txtSendTime.CustomFormat = " ";
            }

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值