Exemple #1
0
        private void FormProject_Load(object sender, EventArgs e)
        {
            List <ComboBoxClass> cbxValues = new List <ComboBoxClass>();
            var values = Enum.GetValues(typeof(ProjectAttribute.KDType)).Cast <ProjectAttribute.KDType>();

            foreach (var item in values)
            {
                ComboBoxClass cbx = new ComboBoxClass();
                cbx.Id    = ((int)item).ToString();
                cbx.Value = item.ToString();
                cbxValues.Add(cbx);
            }

            cbxType.ValueMember   = "Id";
            cbxType.DisplayMember = "Value";
            cbxType.DataSource    = cbxValues;

            grpAttr.Enabled = false;
        }
        /// <summary>
        /// unload accounts to the form
        /// выгружает счета на форму
        /// </summary>
        private void LoadPortfolioOnBox()
        {
            try
            {
                List <IServer> serversAll = ServerMaster.GetServers();

                IServer server = serversAll.Find(server1 => server1.ServerType == _selectedType);

                if (server == null)
                {
                    return;
                }


                if (!ComboBoxClass.CheckAccess())
                {
                    ComboBoxClass.Dispatcher.Invoke(LoadPortfolioOnBox);
                    return;
                }

                string curPortfolio = null;

                if (ComboBoxPortfolio.SelectedItem != null)
                {
                    curPortfolio = ComboBoxPortfolio.SelectedItem.ToString();
                }

                ComboBoxPortfolio.Items.Clear();


                string portfolio = _connectorBot.PortfolioName;


                if (portfolio != null)
                {
                    ComboBoxPortfolio.Items.Add(_connectorBot.PortfolioName);
                    ComboBoxPortfolio.Text = _connectorBot.PortfolioName;
                }

                List <Portfolio> portfolios = server.Portfolios;

                if (portfolios == null)
                {
                    return;
                }

                for (int i = 0; i < portfolios.Count; i++)
                {
                    bool isInArray = false;

                    for (int i2 = 0; i2 < ComboBoxPortfolio.Items.Count; i2++)
                    {
                        if (ComboBoxPortfolio.Items[i2].ToString() == portfolios[i].Number)
                        {
                            isInArray = true;
                        }
                    }

                    if (isInArray == true)
                    {
                        continue;
                    }
                    ComboBoxPortfolio.Items.Add(portfolios[i].Number);
                }
                if (curPortfolio != null)
                {
                    for (int i = 0; i < ComboBoxPortfolio.Items.Count; i++)
                    {
                        if (ComboBoxPortfolio.Items[i].ToString() == curPortfolio)
                        {
                            ComboBoxPortfolio.SelectedItem = curPortfolio;
                            break;
                        }
                    }
                }
            }
            catch (Exception error)
            {
                SendNewLogMessage(error.ToString(), LogMessageType.Error);
            }
        }
 /// <summary>
 /// 设计器支持所需的方法 - 不要
 /// 使用代码编辑器修改此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SelectClass));
     this.label1 = new System.Windows.Forms.Label();
     this.btnOK = new System.Windows.Forms.Button();
     this.rdbLab = new System.Windows.Forms.RadioButton();
     this.rdbTheroy = new System.Windows.Forms.RadioButton();
     this.cmbLabClass = new WinCQM.ComboBoxClass();
     this.cmbTheoryClass = new WinCQM.ComboBoxClass();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Font = new System.Drawing.Font("微软雅黑", 14F);
     this.label1.Location = new System.Drawing.Point(18, 14);
     this.label1.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(145, 25);
     this.label1.TabIndex = 0;
     this.label1.Text = "请选择上课的班";
     //
     // btnOK
     //
     this.btnOK.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.btnOK.Location = new System.Drawing.Point(89, 156);
     this.btnOK.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6);
     this.btnOK.Name = "btnOK";
     this.btnOK.Size = new System.Drawing.Size(108, 35);
     this.btnOK.TabIndex = 2;
     this.btnOK.Text = "确定(&O)";
     this.btnOK.UseVisualStyleBackColor = true;
     this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
     //
     // rdbLab
     //
     this.rdbLab.AutoSize = true;
     this.rdbLab.Location = new System.Drawing.Point(36, 57);
     this.rdbLab.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
     this.rdbLab.Name = "rdbLab";
     this.rdbLab.Size = new System.Drawing.Size(87, 29);
     this.rdbLab.TabIndex = 3;
     this.rdbLab.Text = "实验课";
     this.rdbLab.UseVisualStyleBackColor = true;
     this.rdbLab.CheckedChanged += new System.EventHandler(this.rdbClass_CheckedChanged);
     //
     // rdbTheroy
     //
     this.rdbTheroy.AutoSize = true;
     this.rdbTheroy.Checked = true;
     this.rdbTheroy.Location = new System.Drawing.Point(164, 57);
     this.rdbTheroy.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
     this.rdbTheroy.Name = "rdbTheroy";
     this.rdbTheroy.Size = new System.Drawing.Size(87, 29);
     this.rdbTheroy.TabIndex = 3;
     this.rdbTheroy.TabStop = true;
     this.rdbTheroy.Text = "理论课";
     this.rdbTheroy.UseVisualStyleBackColor = true;
     this.rdbTheroy.CheckedChanged += new System.EventHandler(this.rdbClass_CheckedChanged);
     //
     // cmbLabClass
     //
     this.cmbLabClass.ClassID = null;
     this.cmbLabClass.Font = new System.Drawing.Font("微软雅黑", 14F);
     this.cmbLabClass.Location = new System.Drawing.Point(74, 106);
     this.cmbLabClass.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
     this.cmbLabClass.Name = "cmbLabClass";
     this.cmbLabClass.Size = new System.Drawing.Size(146, 30);
     this.cmbLabClass.TabIndex = 4;
     //
     // cmbTheoryClass
     //
     this.cmbTheoryClass.ClassID = null;
     this.cmbTheoryClass.Font = new System.Drawing.Font("微软雅黑", 14F);
     this.cmbTheoryClass.Location = new System.Drawing.Point(74, 106);
     this.cmbTheoryClass.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
     this.cmbTheoryClass.Name = "cmbTheoryClass";
     this.cmbTheoryClass.Size = new System.Drawing.Size(146, 30);
     this.cmbTheoryClass.TabIndex = 5;
     //
     // SelectClass
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 25F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(293, 209);
     this.Controls.Add(this.rdbTheroy);
     this.Controls.Add(this.rdbLab);
     this.Controls.Add(this.btnOK);
     this.Controls.Add(this.label1);
     this.Controls.Add(this.cmbLabClass);
     this.Controls.Add(this.cmbTheoryClass);
     this.Font = new System.Drawing.Font("微软雅黑", 14F);
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Margin = new System.Windows.Forms.Padding(6, 6, 6, 6);
     this.MaximizeBox = false;
     this.Name = "SelectClass";
     this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide;
     this.Text = "选择班级";
     this.ResumeLayout(false);
     this.PerformLayout();
 }
 /// <summary>
 /// 设计器支持所需的方法 - 不要
 /// 使用代码编辑器修改此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(ChangeClass));
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.bntOK = new System.Windows.Forms.Button();
     this.cmbClass = new WinCQM.ComboBoxClass();
     this.label4 = new System.Windows.Forms.Label();
     this.lblSName = new System.Windows.Forms.Label();
     this.label2 = new System.Windows.Forms.Label();
     this.btnSearch = new System.Windows.Forms.Button();
     this.txtSID = new System.Windows.Forms.TextBox();
     this.label1 = new System.Windows.Forms.Label();
     this.groupBox1.SuspendLayout();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.bntOK);
     this.groupBox1.Controls.Add(this.cmbClass);
     this.groupBox1.Controls.Add(this.label4);
     this.groupBox1.Controls.Add(this.lblSName);
     this.groupBox1.Controls.Add(this.label2);
     this.groupBox1.Controls.Add(this.btnSearch);
     this.groupBox1.Controls.Add(this.txtSID);
     this.groupBox1.Controls.Add(this.label1);
     this.groupBox1.Dock = System.Windows.Forms.DockStyle.Fill;
     this.groupBox1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.groupBox1.Location = new System.Drawing.Point(0, 0);
     this.groupBox1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
     this.groupBox1.Name = "groupBox1";
     this.groupBox1.Padding = new System.Windows.Forms.Padding(3, 4, 3, 4);
     this.groupBox1.Size = new System.Drawing.Size(423, 204);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop = false;
     //
     // bntOK
     //
     this.bntOK.Location = new System.Drawing.Point(172, 147);
     this.bntOK.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
     this.bntOK.Name = "bntOK";
     this.bntOK.Size = new System.Drawing.Size(70, 31);
     this.bntOK.TabIndex = 7;
     this.bntOK.Text = "确定";
     this.bntOK.UseVisualStyleBackColor = true;
     this.bntOK.Click += new System.EventHandler(this.bntOK_Click);
     //
     // cmbClass
     //
     this.cmbClass.ClassID = null;
     this.cmbClass.Font = new System.Drawing.Font("微软雅黑", 12F);
     this.cmbClass.Location = new System.Drawing.Point(283, 93);
     this.cmbClass.Margin = new System.Windows.Forms.Padding(5, 6, 5, 6);
     this.cmbClass.Name = "cmbClass";
     this.cmbClass.Size = new System.Drawing.Size(115, 35);
     this.cmbClass.TabIndex = 8;
     //
     // label4
     //
     this.label4.AutoSize = true;
     this.label4.Location = new System.Drawing.Point(215, 91);
     this.label4.Name = "label4";
     this.label4.Size = new System.Drawing.Size(58, 21);
     this.label4.TabIndex = 5;
     this.label4.Text = "班别:";
     //
     // lblSName
     //
     this.lblSName.AutoSize = true;
     this.lblSName.Location = new System.Drawing.Point(107, 89);
     this.lblSName.Name = "lblSName";
     this.lblSName.Size = new System.Drawing.Size(0, 21);
     this.lblSName.TabIndex = 4;
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Location = new System.Drawing.Point(27, 89);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(58, 21);
     this.label2.TabIndex = 3;
     this.label2.Text = "姓名:";
     //
     // btnSearch
     //
     this.btnSearch.Location = new System.Drawing.Point(273, 37);
     this.btnSearch.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
     this.btnSearch.Name = "btnSearch";
     this.btnSearch.Size = new System.Drawing.Size(65, 30);
     this.btnSearch.TabIndex = 2;
     this.btnSearch.Text = "查找";
     this.btnSearch.UseVisualStyleBackColor = true;
     this.btnSearch.Click += new System.EventHandler(this.btnSearch_Click);
     //
     // txtSID
     //
     this.txtSID.Location = new System.Drawing.Point(110, 33);
     this.txtSID.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
     this.txtSID.Name = "txtSID";
     this.txtSID.Size = new System.Drawing.Size(116, 29);
     this.txtSID.TabIndex = 1;
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(27, 37);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(58, 21);
     this.label1.TabIndex = 0;
     this.label1.Text = "学号:";
     //
     // ChangeClass
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(423, 204);
     this.Controls.Add(this.groupBox1);
     this.Font = new System.Drawing.Font("微软雅黑", 9F);
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
     this.Name = "ChangeClass";
     this.Text = "调班操作";
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     this.ResumeLayout(false);
 }
 /// <summary>
 /// 设计器支持所需的方法 - 不要
 /// 使用代码编辑器修改此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     this.panel1 = new System.Windows.Forms.Panel();
     this.cmbClass = new WinCQM.ComboBoxClass();
     this.txtSName = new System.Windows.Forms.TextBox();
     this.txtSID = new System.Windows.Forms.TextBox();
     this.label3 = new System.Windows.Forms.Label();
     this.label2 = new System.Windows.Forms.Label();
     this.label1 = new System.Windows.Forms.Label();
     this.BtnAdd = new System.Windows.Forms.Button();
     this.BtnClear = new System.Windows.Forms.Button();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // panel1
     //
     this.panel1.Controls.Add(this.cmbClass);
     this.panel1.Controls.Add(this.txtSName);
     this.panel1.Controls.Add(this.txtSID);
     this.panel1.Controls.Add(this.label3);
     this.panel1.Controls.Add(this.label2);
     this.panel1.Controls.Add(this.label1);
     this.panel1.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.panel1.Location = new System.Drawing.Point(14, 14);
     this.panel1.Margin = new System.Windows.Forms.Padding(5, 5, 5, 5);
     this.panel1.Name = "panel1";
     this.panel1.Size = new System.Drawing.Size(303, 170);
     this.panel1.TabIndex = 0;
     //
     // cmbClass
     //
     this.cmbClass.ClassID = null;
     this.cmbClass.Font = new System.Drawing.Font("微软雅黑", 12F);
     this.cmbClass.Location = new System.Drawing.Point(104, 116);
     this.cmbClass.Margin = new System.Windows.Forms.Padding(7, 7, 7, 7);
     this.cmbClass.Name = "cmbClass";
     this.cmbClass.Size = new System.Drawing.Size(140, 46);
     this.cmbClass.TabIndex = 2;
     //
     // txtSName
     //
     this.txtSName.Location = new System.Drawing.Point(104, 68);
     this.txtSName.Margin = new System.Windows.Forms.Padding(5, 5, 5, 5);
     this.txtSName.Name = "txtSName";
     this.txtSName.Size = new System.Drawing.Size(140, 29);
     this.txtSName.TabIndex = 1;
     //
     // txtSID
     //
     this.txtSID.Location = new System.Drawing.Point(104, 24);
     this.txtSID.Margin = new System.Windows.Forms.Padding(5, 5, 5, 5);
     this.txtSID.Name = "txtSID";
     this.txtSID.Size = new System.Drawing.Size(140, 29);
     this.txtSID.TabIndex = 1;
     //
     // label3
     //
     this.label3.AutoSize = true;
     this.label3.Location = new System.Drawing.Point(35, 116);
     this.label3.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
     this.label3.Name = "label3";
     this.label3.Size = new System.Drawing.Size(42, 21);
     this.label3.TabIndex = 0;
     this.label3.Text = "班别";
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Location = new System.Drawing.Point(35, 68);
     this.label2.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(42, 21);
     this.label2.TabIndex = 0;
     this.label2.Text = "姓名";
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(35, 24);
     this.label1.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(42, 21);
     this.label1.TabIndex = 0;
     this.label1.Text = "学号";
     //
     // BtnAdd
     //
     this.BtnAdd.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.BtnAdd.Location = new System.Drawing.Point(45, 205);
     this.BtnAdd.Margin = new System.Windows.Forms.Padding(5, 5, 5, 5);
     this.BtnAdd.Name = "BtnAdd";
     this.BtnAdd.Size = new System.Drawing.Size(75, 33);
     this.BtnAdd.TabIndex = 1;
     this.BtnAdd.Text = "添加";
     this.BtnAdd.UseVisualStyleBackColor = true;
     this.BtnAdd.Click += new System.EventHandler(this.BtnAdd_Click);
     //
     // BtnClear
     //
     this.BtnClear.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.BtnClear.Location = new System.Drawing.Point(196, 205);
     this.BtnClear.Margin = new System.Windows.Forms.Padding(5, 5, 5, 5);
     this.BtnClear.Name = "BtnClear";
     this.BtnClear.Size = new System.Drawing.Size(74, 33);
     this.BtnClear.TabIndex = 1;
     this.BtnClear.Text = "清除";
     this.BtnClear.UseVisualStyleBackColor = true;
     this.BtnClear.Click += new System.EventHandler(this.BtnClear_Click);
     //
     // AddStudent
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 21F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(334, 257);
     this.Controls.Add(this.BtnClear);
     this.Controls.Add(this.BtnAdd);
     this.Controls.Add(this.panel1);
     this.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.Margin = new System.Windows.Forms.Padding(5, 5, 5, 5);
     this.MaximizeBox = false;
     this.Name = "AddStudent";
     this.Text = "添加学生";
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     this.ResumeLayout(false);
 }
Exemple #6
0
        /// <summary>
        /// поместить классы в окно
        /// </summary>
        private void LoadClassOnBox()
        {
            try
            {
                List <IServer> serversAll = ServerMaster.GetServers();

                IServer server = serversAll.Find(server1 => server1.ServerType == _selectedType);

                if (server == null)
                {
                    return;
                }

                if (ComboBoxClass.Items.Count != 0)
                {
                    ComboBoxClass.Items.Clear();
                }

                var securities = server.Securities;


                if (!ComboBoxClass.CheckAccess())
                {
                    ComboBoxClass.Dispatcher.Invoke(LoadClassOnBox);
                    return;
                }

                ComboBoxClass.Items.Clear();

                if (securities == null)
                {
                    return;
                }

                for (int i1 = 0; i1 < securities.Count; i1++)
                {
                    string clas = securities[i1].NameClass;

                    if (ComboBoxClass.Items.Count == 0)
                    {
                        ComboBoxClass.Items.Add(clas);
                        continue;
                    }

                    bool isInArray = false;

                    for (int i = 0; i < ComboBoxClass.Items.Count; i++)
                    {
                        string item = ComboBoxClass.Items[i].ToString();
                        if (item == clas)
                        {
                            isInArray = true;
                        }
                    }

                    if (isInArray == false)
                    {
                        ComboBoxClass.Items.Add(clas);
                    }
                }
                if (_connectorBot.Security != null)
                {
                    ComboBoxClass.SelectedItem = _connectorBot.Security.NameClass;
                }
            }
            catch (Exception error)
            {
                SendNewLogMessage(error.ToString(), LogMessageType.Error);
            }
        }
 /// <summary>
 /// 设计器支持所需的方法 - 不要
 /// 使用代码编辑器修改此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     this.label1 = new System.Windows.Forms.Label();
     this.label2 = new System.Windows.Forms.Label();
     this.label3 = new System.Windows.Forms.Label();
     this.btnOK = new System.Windows.Forms.Button();
     this.txtClassID = new System.Windows.Forms.TextBox();
     this.txtClassRoom = new System.Windows.Forms.TextBox();
     this.txtDate = new System.Windows.Forms.TextBox();
     this.panel1 = new System.Windows.Forms.Panel();
     this.rdbLab = new System.Windows.Forms.RadioButton();
     this.rdbSingle = new System.Windows.Forms.RadioButton();
     this.rdbTheroy = new System.Windows.Forms.RadioButton();
     this.label4 = new System.Windows.Forms.Label();
     this.cmbTheroyClass = new WinCQM.ComboBoxClass();
     this.panel1.SuspendLayout();
     this.SuspendLayout();
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(13, 26);
     this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(42, 21);
     this.label1.TabIndex = 0;
     this.label1.Text = "班号";
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Location = new System.Drawing.Point(13, 72);
     this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(74, 21);
     this.label2.TabIndex = 1;
     this.label2.Text = "上课时间";
     //
     // label3
     //
     this.label3.AutoSize = true;
     this.label3.Location = new System.Drawing.Point(13, 118);
     this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
     this.label3.Name = "label3";
     this.label3.Size = new System.Drawing.Size(42, 21);
     this.label3.TabIndex = 2;
     this.label3.Text = "课室";
     //
     // btnOK
     //
     this.btnOK.Location = new System.Drawing.Point(116, 153);
     this.btnOK.Margin = new System.Windows.Forms.Padding(4);
     this.btnOK.Name = "btnOK";
     this.btnOK.Size = new System.Drawing.Size(76, 34);
     this.btnOK.TabIndex = 3;
     this.btnOK.Text = "确定";
     this.btnOK.UseVisualStyleBackColor = true;
     this.btnOK.Click += new System.EventHandler(this.btnOK_Click);
     //
     // txtClassID
     //
     this.txtClassID.Location = new System.Drawing.Point(95, 26);
     this.txtClassID.Margin = new System.Windows.Forms.Padding(4);
     this.txtClassID.Name = "txtClassID";
     this.txtClassID.Size = new System.Drawing.Size(143, 29);
     this.txtClassID.TabIndex = 4;
     //
     // txtClassRoom
     //
     this.txtClassRoom.Location = new System.Drawing.Point(95, 116);
     this.txtClassRoom.Margin = new System.Windows.Forms.Padding(4);
     this.txtClassRoom.Name = "txtClassRoom";
     this.txtClassRoom.Size = new System.Drawing.Size(143, 29);
     this.txtClassRoom.TabIndex = 5;
     //
     // txtDate
     //
     this.txtDate.Location = new System.Drawing.Point(95, 71);
     this.txtDate.Margin = new System.Windows.Forms.Padding(4);
     this.txtDate.Name = "txtDate";
     this.txtDate.Size = new System.Drawing.Size(143, 29);
     this.txtDate.TabIndex = 6;
     //
     // panel1
     //
     this.panel1.Controls.Add(this.rdbLab);
     this.panel1.Controls.Add(this.rdbSingle);
     this.panel1.Controls.Add(this.rdbTheroy);
     this.panel1.Controls.Add(this.label4);
     this.panel1.Controls.Add(this.cmbTheroyClass);
     this.panel1.Location = new System.Drawing.Point(260, 13);
     this.panel1.Name = "panel1";
     this.panel1.Size = new System.Drawing.Size(170, 175);
     this.panel1.TabIndex = 7;
     //
     // rdbLab
     //
     this.rdbLab.AutoSize = true;
     this.rdbLab.Location = new System.Drawing.Point(21, 71);
     this.rdbLab.Name = "rdbLab";
     this.rdbLab.Size = new System.Drawing.Size(76, 25);
     this.rdbLab.TabIndex = 3;
     this.rdbLab.TabStop = true;
     this.rdbLab.Text = "实验课";
     this.rdbLab.UseVisualStyleBackColor = true;
     this.rdbLab.CheckedChanged += new System.EventHandler(this.rdbLab_CheckedChanged);
     //
     // rdbSingle
     //
     this.rdbSingle.AutoSize = true;
     this.rdbSingle.Location = new System.Drawing.Point(21, 40);
     this.rdbSingle.Name = "rdbSingle";
     this.rdbSingle.Size = new System.Drawing.Size(108, 25);
     this.rdbSingle.TabIndex = 3;
     this.rdbSingle.TabStop = true;
     this.rdbSingle.Text = "不分大小课";
     this.rdbSingle.UseVisualStyleBackColor = true;
     //
     // rdbTheroy
     //
     this.rdbTheroy.AutoSize = true;
     this.rdbTheroy.Location = new System.Drawing.Point(21, 9);
     this.rdbTheroy.Name = "rdbTheroy";
     this.rdbTheroy.Size = new System.Drawing.Size(76, 25);
     this.rdbTheroy.TabIndex = 3;
     this.rdbTheroy.TabStop = true;
     this.rdbTheroy.Text = "理论课";
     this.rdbTheroy.UseVisualStyleBackColor = true;
     //
     // label4
     //
     this.label4.AutoSize = true;
     this.label4.Location = new System.Drawing.Point(11, 103);
     this.label4.Name = "label4";
     this.label4.Size = new System.Drawing.Size(138, 21);
     this.label4.TabIndex = 2;
     this.label4.Text = "选择关联的理论课";
     //
     // cmbTheroyClass
     //
     this.cmbTheroyClass.ClassID = null;
     this.cmbTheroyClass.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.cmbTheroyClass.Location = new System.Drawing.Point(15, 129);
     this.cmbTheroyClass.Margin = new System.Windows.Forms.Padding(5);
     this.cmbTheroyClass.Name = "cmbTheroyClass";
     this.cmbTheroyClass.Size = new System.Drawing.Size(146, 32);
     this.cmbTheroyClass.TabIndex = 0;
     this.cmbTheroyClass.Load += new System.EventHandler(this.cmbTheroyClass_Load);
     //
     // AddClass
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 21F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(442, 200);
     this.Controls.Add(this.panel1);
     this.Controls.Add(this.txtDate);
     this.Controls.Add(this.txtClassRoom);
     this.Controls.Add(this.txtClassID);
     this.Controls.Add(this.btnOK);
     this.Controls.Add(this.label3);
     this.Controls.Add(this.label2);
     this.Controls.Add(this.label1);
     this.Font = new System.Drawing.Font("微软雅黑", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.Margin = new System.Windows.Forms.Padding(4);
     this.MaximizeBox = false;
     this.Name = "AddClass";
     this.Text = "添加班级";
     this.panel1.ResumeLayout(false);
     this.panel1.PerformLayout();
     this.ResumeLayout(false);
     this.PerformLayout();
 }
 /// <summary>
 /// 设计器支持所需的方法 - 不要
 /// 使用代码编辑器修改此方法的内容。
 /// </summary>
 private void InitializeComponent()
 {
     System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Export));
     this.groupBox1 = new System.Windows.Forms.GroupBox();
     this.cmbClass = new WinCQM.ComboBoxClass();
     this.label4 = new System.Windows.Forms.Label();
     this.label3 = new System.Windows.Forms.Label();
     this.label2 = new System.Windows.Forms.Label();
     this.label1 = new System.Windows.Forms.Label();
     this.txtBaseMark = new System.Windows.Forms.TextBox();
     this.btnExport = new System.Windows.Forms.Button();
     this.btnCalulate = new System.Windows.Forms.Button();
     this.GridViewMark = new System.Windows.Forms.DataGridView();
     this.groupBox1.SuspendLayout();
     ((System.ComponentModel.ISupportInitialize)(this.GridViewMark)).BeginInit();
     this.SuspendLayout();
     //
     // groupBox1
     //
     this.groupBox1.Controls.Add(this.cmbClass);
     this.groupBox1.Controls.Add(this.label4);
     this.groupBox1.Controls.Add(this.label3);
     this.groupBox1.Controls.Add(this.label2);
     this.groupBox1.Controls.Add(this.label1);
     this.groupBox1.Controls.Add(this.txtBaseMark);
     this.groupBox1.Controls.Add(this.btnExport);
     this.groupBox1.Controls.Add(this.btnCalulate);
     this.groupBox1.Dock = System.Windows.Forms.DockStyle.Top;
     this.groupBox1.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.groupBox1.Location = new System.Drawing.Point(0, 0);
     this.groupBox1.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
     this.groupBox1.Name = "groupBox1";
     this.groupBox1.Padding = new System.Windows.Forms.Padding(4, 5, 4, 5);
     this.groupBox1.Size = new System.Drawing.Size(453, 147);
     this.groupBox1.TabIndex = 0;
     this.groupBox1.TabStop = false;
     this.groupBox1.Text = "组合条件";
     //
     // cmbClass
     //
     this.cmbClass.ClassID = null;
     this.cmbClass.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.cmbClass.Location = new System.Drawing.Point(105, 24);
     this.cmbClass.Margin = new System.Windows.Forms.Padding(5, 7, 5, 7);
     this.cmbClass.Name = "cmbClass";
     this.cmbClass.Size = new System.Drawing.Size(96, 25);
     this.cmbClass.TabIndex = 8;
     //
     // label4
     //
     this.label4.AutoSize = true;
     this.label4.Location = new System.Drawing.Point(59, 122);
     this.label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
     this.label4.Name = "label4";
     this.label4.Size = new System.Drawing.Size(302, 16);
     this.label4.TabIndex = 7;
     this.label4.Text = "导出前请确认机器已经安装office2003";
     //
     // label3
     //
     this.label3.AutoSize = true;
     this.label3.Location = new System.Drawing.Point(41, 94);
     this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
     this.label3.Name = "label3";
     this.label3.Size = new System.Drawing.Size(348, 16);
     this.label3.TabIndex = 6;
     this.label3.Text = "计算和导出过程需要一段时间,请耐心等待。";
     //
     // label2
     //
     this.label2.AutoSize = true;
     this.label2.Location = new System.Drawing.Point(242, 24);
     this.label2.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
     this.label2.Name = "label2";
     this.label2.Size = new System.Drawing.Size(76, 16);
     this.label2.TabIndex = 5;
     this.label2.Text = "基准分数";
     //
     // label1
     //
     this.label1.AutoSize = true;
     this.label1.Location = new System.Drawing.Point(16, 24);
     this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
     this.label1.Name = "label1";
     this.label1.Size = new System.Drawing.Size(76, 16);
     this.label1.TabIndex = 4;
     this.label1.Text = "选择班级";
     //
     // txtBaseMark
     //
     this.txtBaseMark.Location = new System.Drawing.Point(328, 21);
     this.txtBaseMark.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
     this.txtBaseMark.Name = "txtBaseMark";
     this.txtBaseMark.Size = new System.Drawing.Size(76, 26);
     this.txtBaseMark.TabIndex = 3;
     //
     // btnExport
     //
     this.btnExport.Location = new System.Drawing.Point(245, 61);
     this.btnExport.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
     this.btnExport.Name = "btnExport";
     this.btnExport.Size = new System.Drawing.Size(73, 28);
     this.btnExport.TabIndex = 2;
     this.btnExport.Text = "导出";
     this.btnExport.UseVisualStyleBackColor = true;
     this.btnExport.Click += new System.EventHandler(this.btnExport_Click);
     //
     // btnCalulate
     //
     this.btnCalulate.Location = new System.Drawing.Point(94, 61);
     this.btnCalulate.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
     this.btnCalulate.Name = "btnCalulate";
     this.btnCalulate.Size = new System.Drawing.Size(80, 28);
     this.btnCalulate.TabIndex = 1;
     this.btnCalulate.Text = "计算";
     this.btnCalulate.UseVisualStyleBackColor = true;
     this.btnCalulate.Click += new System.EventHandler(this.btnCalulate_Click);
     //
     // GridViewMark
     //
     this.GridViewMark.AllowUserToAddRows = false;
     this.GridViewMark.AllowUserToDeleteRows = false;
     this.GridViewMark.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     this.GridViewMark.Dock = System.Windows.Forms.DockStyle.Bottom;
     this.GridViewMark.Location = new System.Drawing.Point(0, 157);
     this.GridViewMark.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
     this.GridViewMark.Name = "GridViewMark";
     this.GridViewMark.ReadOnly = true;
     this.GridViewMark.RowTemplate.Height = 23;
     this.GridViewMark.Size = new System.Drawing.Size(453, 317);
     this.GridViewMark.TabIndex = 1;
     //
     // Export
     //
     this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F);
     this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
     this.ClientSize = new System.Drawing.Size(453, 474);
     this.Controls.Add(this.GridViewMark);
     this.Controls.Add(this.groupBox1);
     this.Font = new System.Drawing.Font("微软雅黑", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
     this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
     this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
     this.Name = "Export";
     this.Text = "统计导出";
     this.Load += new System.EventHandler(this.Export_Load);
     this.Resize += new System.EventHandler(this.Export_Resize);
     this.groupBox1.ResumeLayout(false);
     this.groupBox1.PerformLayout();
     ((System.ComponentModel.ISupportInitialize)(this.GridViewMark)).EndInit();
     this.ResumeLayout(false);
 }