Дипломная работа: Автоматизация контроля качества ООО "ПСК Стройнеруд"

Внимание! Если размещение файла нарушает Ваши авторские права, то обязательно сообщите нам
126
this.tsbCancel,
this.tsbOk});
this.tsMain.Location = new System.Drawing.Point(0, 334);
this.tsMain.Name = "tsMain";
this.tsMain.Size = new System.Drawing.Size(529, 39);
this.tsMain.TabIndex = 10;
this.tsMain.Text = "toolStrip1";
//
// tsbCancel
//
this.tsbCancel.Alignment =
System.Windows.Forms.ToolStripItemAlignment.Right;
this.tsbCancel.DisplayStyle =
System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.tsbCancel.Image =
global::Project.Properties.Resources.button_cancel_7517;
this.tsbCancel.ImageTransparentColor =
System.Drawing.Color.Magenta;
this.tsbCancel.Name = "tsbCancel";
this.tsbCancel.Size = new System.Drawing.Size(36, 36);
this.tsbCancel.Text = "Отмена";
this.tsbCancel.Click += new
System.EventHandler(this.tsbCancel_Click);
//
// tsbOk
//
this.tsbOk.Alignment =
System.Windows.Forms.ToolStripItemAlignment.Right;
this.tsbOk.DisplayStyle =
System.Windows.Forms.ToolStripItemDisplayStyle.Image;
this.tsbOk.Image = global::Project.Properties.Resources.apply_1005;
this.tsbOk.ImageTransparentColor = System.Drawing.Color.Magenta;
this.tsbOk.Name = "tsbOk";
this.tsbOk.Size = new System.Drawing.Size(36, 36);
this.tsbOk.Text = "Сохранить";
this.tsbOk.Click += new System.EventHandler(this.tsbOk_Click);
//
// baseDataSet
//
this.baseDataSet.DataSetName = "baseDataSet";
this.baseDataSet.SchemaSerializationMode =
System.Data.SchemaSerializationMode.IncludeSchema;
//
127
// categoryBindingSource
//
this.categoryBindingSource.DataMember = "category";
this.categoryBindingSource.DataSource = this.baseDataSet;
//
// categoryTableAdapter
//
this.categoryTableAdapter.ClearBeforeFill = true;
//
// tableAdapterManager
//
this.tableAdapterManager.accuracy_classTableAdapter = null;
this.tableAdapterManager.application_areaTableAdapter = null;
this.tableAdapterManager.BackupDataSetBeforeUpdate = false;
this.tableAdapterManager.categoryTableAdapter =
this.categoryTableAdapter;
this.tableAdapterManager.device_compositionTableAdapter = null;
this.tableAdapterManager.device_operationTableAdapter = null;
this.tableAdapterManager.device_status_historyTableAdapter = null;
this.tableAdapterManager.deviceTableAdapter = null;
this.tableAdapterManager.executorTableAdapter = null;
this.tableAdapterManager.markTableAdapter = null;
this.tableAdapterManager.measuring_kindTableAdapter = null;
this.tableAdapterManager.metalTableAdapter = null;
this.tableAdapterManager.modelTableAdapter = null;
this.tableAdapterManager.operation_statusTableAdapter = null;
this.tableAdapterManager.operation_typeTableAdapter = null;
this.tableAdapterManager.stateTableAdapter = null;
this.tableAdapterManager.statusTableAdapter = null;
this.tableAdapterManager.subdivisionTableAdapter = null;
this.tableAdapterManager.typeTableAdapter = null;
this.tableAdapterManager.unitTableAdapter = null;
this.tableAdapterManager.UpdateOrder =
Project.baseDataSetTableAdapters.TableAdapterManager.UpdateOrderOption.Insert
UpdateDelete;
//
// categoryDataGridView
//
this.categoryDataGridView.AutoGenerateColumns = false;
this.categoryDataGridView.ColumnHeadersHeightSizeMode =
System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.categoryDataGridView.Columns.AddRange(new
System.Windows.Forms.DataGridViewColumn[] {
128
this.dataGridViewTextBoxColumn1,
this.dataGridViewTextBoxColumn2});
this.categoryDataGridView.DataSource =
this.categoryBindingSource;
this.categoryDataGridView.Dock =
System.Windows.Forms.DockStyle.Fill;
this.categoryDataGridView.Location = new System.Drawing.Point(0,
0);
this.categoryDataGridView.Name = "categoryDataGridView";
this.categoryDataGridView.Size = new System.Drawing.Size(529,
334);
this.categoryDataGridView.TabIndex = 11;
//
// dataGridViewTextBoxColumn1
//
this.dataGridViewTextBoxColumn1.DataPropertyName = "id";
this.dataGridViewTextBoxColumn1.HeaderText = "id";
this.dataGridViewTextBoxColumn1.Name =
"dataGridViewTextBoxColumn1";
this.dataGridViewTextBoxColumn1.Width = 64;
//
// dataGridViewTextBoxColumn2
//
this.dataGridViewTextBoxColumn2.DataPropertyName = "title";
this.dataGridViewTextBoxColumn2.HeaderText = "title";
this.dataGridViewTextBoxColumn2.Name =
"dataGridViewTextBoxColumn2";
this.dataGridViewTextBoxColumn2.Width = 350;
//
// CategoryForm
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(529, 373);
this.Controls.Add(this.categoryDataGridView);
this.Controls.Add(this.tsMain);
this.Name = "CategoryForm";
this.StartPosition =
System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "Категории СИ";
this.Load += new System.EventHandler(this.CategoryForm_Load);
this.tsMain.ResumeLayout(false);
this.tsMain.PerformLayout();
129
((System.ComponentModel.ISupportInitialize)(this.baseDataSet)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.categoryBindingSource)).EndInit
();
((System.ComponentModel.ISupportInitialize)(this.categoryDataGridView)).EndInit(
);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.ToolStrip tsMain;
private System.Windows.Forms.ToolStripButton tsbCancel;
private System.Windows.Forms.ToolStripButton tsbOk;
private baseDataSet baseDataSet;
private System.Windows.Forms.BindingSource categoryBindingSource;
private baseDataSetTableAdapters.categoryTableAdapter
categoryTableAdapter;
private baseDataSetTableAdapters.TableAdapterManager
tableAdapterManager;
private System.Windows.Forms.DataGridView categoryDataGridView;
private System.Windows.Forms.DataGridViewTextBoxColumn
dataGridViewTextBoxColumn1;
private System.Windows.Forms.DataGridViewTextBoxColumn
dataGridViewTextBoxColumn2;
}
}
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace Project
{
public partial class DeviceForm : Form
130
{
private int id = 0;
public DeviceForm()
{
InitializeComponent();
}
public int ID
{
get
{
return id;
}
set
{
id = value;
}
}
private void DeviceForm_Load(object sender, EventArgs e)
{
// TODO: данная строка кода позволяет загрузить данные в
таблицу "baseDataSet.subdivision". При необходимости она может быть
перемещена или удалена.
this.subdivisionTableAdapter.Fill(this.baseDataSet.subdivision);
// TODO: данная строка кода позволяет загрузить данные в
таблицу "baseDataSet.state". При необходимости она может быть перемещена
или удалена.
this.stateTableAdapter.Fill(this.baseDataSet.state);
// TODO: данная строка кода позволяет загрузить данные в
таблицу "baseDataSet.status". При необходимости она может быть перемещена
или удалена.
this.statusTableAdapter.Fill(this.baseDataSet.status);
// TODO: данная строка кода позволяет загрузить данные в
таблицу "baseDataSet.operation_status". При необходимости она может быть
перемещена или удалена.
this.operation_statusTableAdapter.Fill(this.baseDataSet.operation_status);
Источник: https://baza.diplomsite.ru/previewfile/1834