领胜LDS 键盘AOI检测项目
wells.liu
2020-07-14 ae5cd6f77221dca1307d5a6c0851470e74412ead
ef 数据迁移会包含子类
3 文件已重命名
5个文件已修改
378 ■■■■ 已修改文件
src/Bro.M071.DBManager/MeasurementUnitResultManager.cs 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/Bro.M071.Model/Bro.M071.Model.csproj 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/Bro.M071.Model/Migrations/202007140824439_initDB.Designer.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/Bro.M071.Model/Migrations/202007140824439_initDB.cs 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/Bro.M071.Model/Migrations/202007140824439_initDB.resx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/Bro.M071.Model/Model/MeasurementUnitResult.cs 21 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/Bro.M071.Process/UI/M071_DataForm.Designer.cs 298 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/Bro.M071.Process/UI/M071_DataForm.cs 35 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/Bro.M071.DBManager/MeasurementUnitResultManager.cs
@@ -29,7 +29,7 @@
        {
        }
        public List<MeasurementUnitResult_DTO> GetMeasurementUnitResult(MeasurementUnitResultRequest request)
        public List<MeasurementUnitResult> GetMeasurementUnitResult(MeasurementUnitResultRequest request)
        {
            using (DBModel context = new DBModel())
            {
@@ -59,7 +59,7 @@
                }
                if (!string.IsNullOrWhiteSpace(request.MeasurementResult))
                {
                    mList = mList.Where(u => u.MeasurementResult==request.MeasurementResult);
                    mList = mList.Where(u => u.MeasurementResult == request.MeasurementResult);
                }
                if (!string.IsNullOrWhiteSpace(request.MeasurementType))
                {
@@ -70,11 +70,10 @@
                            join measurementUnitResult in mList
                            on productionMeasurementRecords.ID equals measurementUnitResult.ProductionMeasurementRecordsId
                            //into pmList
                            select new MeasurementUnitResult_DTO
                            select new MeasurementUnitResult
                            {
                                ProductionCode = productionMeasurementRecords.ProductionCode,
                                ProductionBarcode = productionMeasurementRecords.ProductionBarcode
                            };
                var pageList = query.OrderBy(u => u.CREATE_TIME).ToPagedList(request);
                request.TotalNum = mList.Count();
src/Bro.M071.Model/Bro.M071.Model.csproj
@@ -108,9 +108,9 @@
  <ItemGroup>
    <Compile Include="BaseModel.cs" />
    <Compile Include="DBModel.cs" />
    <Compile Include="Migrations\202007130138484_initDB.cs" />
    <Compile Include="Migrations\202007130138484_initDB.designer.cs">
      <DependentUpon>202007130138484_initDB.cs</DependentUpon>
    <Compile Include="Migrations\202007140824439_initDB.cs" />
    <Compile Include="Migrations\202007140824439_initDB.designer.cs">
      <DependentUpon>202007140824439_initDB.cs</DependentUpon>
    </Compile>
    <Compile Include="Migrations\Configuration.cs" />
    <Compile Include="Model\KeyUnitData.cs" />
@@ -132,8 +132,8 @@
    </ProjectReference>
  </ItemGroup>
  <ItemGroup>
    <EmbeddedResource Include="Migrations\202007130138484_initDB.resx">
      <DependentUpon>202007130138484_initDB.cs</DependentUpon>
    <EmbeddedResource Include="Migrations\202007140824439_initDB.resx">
      <DependentUpon>202007140824439_initDB.cs</DependentUpon>
    </EmbeddedResource>
  </ItemGroup>
  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
src/Bro.M071.Model/Migrations/202007140824439_initDB.Designer.cs
File was renamed from src/Bro.M071.Model/Migrations/202007130138484_initDB.Designer.cs
@@ -13,7 +13,7 @@
        
        string IMigrationMetadata.Id
        {
            get { return "202007130138484_initDB"; }
            get { return "202007140824439_initDB"; }
        }
        
        string IMigrationMetadata.Source
src/Bro.M071.Model/Migrations/202007140824439_initDB.cs
File was renamed from src/Bro.M071.Model/Migrations/202007130138484_initDB.cs
@@ -57,9 +57,6 @@
                        CREATE_TIME = c.DateTime(nullable: false),
                        UPDATE_USER = c.String(maxLength: 64),
                        UPDATE_TIME = c.DateTime(),
                        ProductionCode = c.String(maxLength: 2147483647),
                        ProductionBarcode = c.String(maxLength: 2147483647),
                        Discriminator = c.String(nullable: false, maxLength: 128),
                    })
                .PrimaryKey(t => t.ID);
            
src/Bro.M071.Model/Migrations/202007140824439_initDB.resx
File was renamed from src/Bro.M071.Model/Migrations/202007130138484_initDB.resx
@@ -118,7 +118,7 @@
    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
  </resheader>
  <data name="Target" xml:space="preserve">
    <value>H4sIAAAAAAAEAO1c3W7bNhS+H7B3EHS1Aa2VpEPXZXaLxHYKb3GdWXavChS0RDvCJMoQqSB+tl3skfYKO9T/DyVLsuwkrVCgtXTI7xyShx8pnsP+98+//Q+Plik9YIcaNhnI570zWcJEs3WDbAayy9av38kf3v/4Q3+sW4/S57DcG14OahI6kO8Z214qCtXusYVozzI0x6b2mvU021KQbisXZ2e/KefnCgYIGbAkqT93CTMs7D3A49AmGt4yF5lTW8cmDd6DRPVQpU/IwnSLNDyQrx27Nz379bznFZWlK9NAYIWKzbUsIUJshhjYeLmkWGWOTTbqFl4gc7HbYii3RibFge2XcfGqzTi74M1Q4oohlOZSZls1Ac/fBP2iZKs36l056jfouTH0MNvxVnu9N5D/xLslMdgIMSRLWX2XQ9PhZbP9G/ydqPtKSpd4FXkFOA//80oauiZzHTwg2GUOghJ37so0NABZ2H9jMiCuaSZtBWtBlnoBr+4ce4sdtpvjddCCyUiWlHQ9JVsxqpao4zcMvAGcWpam6PEWkw27H8hvf5GlG+MR6+GLwDugrTAFoA5zXHj8BPailYkjuVKqEh51V+O9OsWIQkdYmLA51mxHpxP9cHPKtUOHHFtFolkThq1jq+M6PiOTFzyyIvXraKJeXd+OI6eZEPbmorYHcKDx7XhxKM5wPr5ajL8u1fH82G0PVC0m03GoCmY7XgBL1zZ7eTc6ldmBKrHZyap9JSbEUppMOPcV0WE2cdKbYzOg5ZrEWYrWUWkFMgvXneMzZ2KsuNI5ptD5x1fbsU7HOmLfO4RtYp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E5XOX0/VsUKIblYvPT77zSN+Zsz8hJzMJUYnVSIVrNWs4m0JsaBotyX0TI1uW7jZqz0D0xYu9pqg5FzrtTTMnFs8xhZAW7rFa8nLnEu7PC+zUC0V336z1JFbxtp+XOdVrfZx2MfhSXFYlAz7luLvrFt3QT1n++hi+Wb76F3s5oXFmT1L9SxVn6WqZ52+TbISCxhbeimF9Yqt43cS4MXViI0DoKgasTFgT0LfPwml6w6z9V0F2f361YV+yom5vbHZCHx3v2D5YZ47X7Ri8YhDX6q4Mc+tTsohs8nMoSL+eYXhFIixiyH4H1vA4HkRg4Y6c7y1wwhiEyN6FKpkjnQU8cTmrUONLdIoE2tAiFc07B0hR/LM2oA+xw8u3bv0lhCwNmaidm6olNv3aj6TPg8f9vyJtDEE5qbBSeEBj13D1CO/77LUVQTB4/8d4GhzYr9hd4iQPti4IlAwfVPYA9b5GR+sPYsjIA9YRc/QxLc1gXvYIe0QpqWLQY6/iOS0D6cG2jnIIgFG3J89sjWsWy9v/gNA/V6hZUQAAA==</value>
  </data>
  <data name="DefaultSchema" xml:space="preserve">
    <value>dbo</value>
src/Bro.M071.Model/Model/MeasurementUnitResult.cs
@@ -41,6 +41,11 @@
        [StringLength(64)]
        public string MeasurementResult { get; set; }
        /// <summary>
        /// 产品编码
        /// </summary>
        [NotMapped]
        public string ProductionCode { get; set; }
        [NotMapped]
        public string ProductionBarcode { get; set; }
    }
@@ -71,22 +76,6 @@
        ///  检测结果 ok ng
        /// </summary>
        public string MeasurementResult { get; set; }
    }
    public class MeasurementUnitResult_DTO : MeasurementUnitResult
    {
        //产品相关
        /// <summary>
        /// 产品编码
        /// </summary>
        public string ProductionCode { get; set; }
        /// <summary>
        /// 产品条码
        /// </summary>
        public string ProductionBarcode { get; set; }
    }
    public class ProductionMeasurementUnitResultAndKeyUnitDataSet
src/Bro.M071.Process/UI/M071_DataForm.Designer.cs
@@ -30,18 +30,18 @@
        {
            this.tabControl1 = new System.Windows.Forms.TabControl();
            this.tabPage1 = new System.Windows.Forms.TabPage();
            this.tabPage2 = new System.Windows.Forms.TabPage();
            this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel();
            this.groupBox1 = new System.Windows.Forms.GroupBox();
            this.panel1 = new System.Windows.Forms.Panel();
            this.label1 = new System.Windows.Forms.Label();
            this.button1 = new System.Windows.Forms.Button();
            this.button2 = new System.Windows.Forms.Button();
            this.button3 = new System.Windows.Forms.Button();
            this.button4 = new System.Windows.Forms.Button();
            this.textBox1 = new System.Windows.Forms.TextBox();
            this.textBoxPageNum = new System.Windows.Forms.TextBox();
            this.buttonToLastPage = new System.Windows.Forms.Button();
            this.buttonToNextPage = new System.Windows.Forms.Button();
            this.buttonToBeforePage = new System.Windows.Forms.Button();
            this.buttonToFirstPage = new System.Windows.Forms.Button();
            this.labelTotal = new System.Windows.Forms.Label();
            this.dataGridView1 = new System.Windows.Forms.DataGridView();
            this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel();
            this.tabPage2 = new System.Windows.Forms.TabPage();
            this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel();
            this.groupBox2 = new System.Windows.Forms.GroupBox();
            this.panel2 = new System.Windows.Forms.Panel();
@@ -53,12 +53,24 @@
            this.label2 = new System.Windows.Forms.Label();
            this.dataGridView2 = new System.Windows.Forms.DataGridView();
            this.tableLayoutPanel4 = new System.Windows.Forms.TableLayoutPanel();
            this.buttonQuery = new System.Windows.Forms.Button();
            this.textBoxPCode = new System.Windows.Forms.TextBox();
            this.label3 = new System.Windows.Forms.Label();
            this.label4 = new System.Windows.Forms.Label();
            this.textBoxPBarCode = new System.Windows.Forms.TextBox();
            this.label5 = new System.Windows.Forms.Label();
            this.comboBoxPResult = new System.Windows.Forms.ComboBox();
            this.labelPTime = new System.Windows.Forms.Label();
            this.dateTimePStartTime = new System.Windows.Forms.DateTimePicker();
            this.label9 = new System.Windows.Forms.Label();
            this.dateTimePEndTime = new System.Windows.Forms.DateTimePicker();
            this.tabControl1.SuspendLayout();
            this.tabPage1.SuspendLayout();
            this.tabPage2.SuspendLayout();
            this.tableLayoutPanel1.SuspendLayout();
            this.panel1.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
            this.tableLayoutPanel2.SuspendLayout();
            this.tabPage2.SuspendLayout();
            this.tableLayoutPanel3.SuspendLayout();
            this.panel2.SuspendLayout();
            ((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).BeginInit();
@@ -85,17 +97,6 @@
            this.tabPage1.TabIndex = 0;
            this.tabPage1.Text = "产品生产记录";
            this.tabPage1.UseVisualStyleBackColor = true;
            //
            // tabPage2
            //
            this.tabPage2.Controls.Add(this.tableLayoutPanel3);
            this.tabPage2.Location = new System.Drawing.Point(4, 22);
            this.tabPage2.Name = "tabPage2";
            this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
            this.tabPage2.Size = new System.Drawing.Size(1016, 691);
            this.tabPage2.TabIndex = 1;
            this.tabPage2.Text = "测量结果数据";
            this.tabPage2.UseVisualStyleBackColor = true;
            // 
            // tableLayoutPanel1
            // 
@@ -129,70 +130,70 @@
            // 
            // panel1
            // 
            this.panel1.Controls.Add(this.textBox1);
            this.panel1.Controls.Add(this.button4);
            this.panel1.Controls.Add(this.button3);
            this.panel1.Controls.Add(this.button2);
            this.panel1.Controls.Add(this.button1);
            this.panel1.Controls.Add(this.label1);
            this.panel1.Controls.Add(this.textBoxPageNum);
            this.panel1.Controls.Add(this.buttonToLastPage);
            this.panel1.Controls.Add(this.buttonToNextPage);
            this.panel1.Controls.Add(this.buttonToBeforePage);
            this.panel1.Controls.Add(this.buttonToFirstPage);
            this.panel1.Controls.Add(this.labelTotal);
            this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.panel1.Location = new System.Drawing.Point(3, 658);
            this.panel1.Name = "panel1";
            this.panel1.Size = new System.Drawing.Size(751, 24);
            this.panel1.TabIndex = 1;
            // 
            // label1
            // textBoxPageNum
            // 
            this.label1.AutoSize = true;
            this.label1.Font = new System.Drawing.Font("Tahoma", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((byte)(134)));
            this.label1.Location = new System.Drawing.Point(3, 3);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(42, 17);
            this.label1.TabIndex = 0;
            this.label1.Text = "label1";
            this.textBoxPageNum.Location = new System.Drawing.Point(542, 2);
            this.textBoxPageNum.Name = "textBoxPageNum";
            this.textBoxPageNum.Size = new System.Drawing.Size(80, 21);
            this.textBoxPageNum.TabIndex = 2;
            // 
            // button1
            // buttonToLastPage
            // 
            this.button1.Location = new System.Drawing.Point(416, 1);
            this.button1.Name = "button1";
            this.button1.Size = new System.Drawing.Size(55, 23);
            this.button1.TabIndex = 1;
            this.button1.Text = "第一页";
            this.button1.UseVisualStyleBackColor = true;
            this.buttonToLastPage.Location = new System.Drawing.Point(693, 0);
            this.buttonToLastPage.Name = "buttonToLastPage";
            this.buttonToLastPage.Size = new System.Drawing.Size(55, 23);
            this.buttonToLastPage.TabIndex = 1;
            this.buttonToLastPage.Text = "最后页";
            this.buttonToLastPage.UseVisualStyleBackColor = true;
            // 
            // button2
            // buttonToNextPage
            // 
            this.button2.Location = new System.Drawing.Point(477, 1);
            this.button2.Name = "button2";
            this.button2.Size = new System.Drawing.Size(55, 23);
            this.button2.TabIndex = 1;
            this.button2.Text = "前一页";
            this.button2.UseVisualStyleBackColor = true;
            this.buttonToNextPage.Location = new System.Drawing.Point(632, 1);
            this.buttonToNextPage.Name = "buttonToNextPage";
            this.buttonToNextPage.Size = new System.Drawing.Size(55, 23);
            this.buttonToNextPage.TabIndex = 1;
            this.buttonToNextPage.Text = "后一页";
            this.buttonToNextPage.UseVisualStyleBackColor = true;
            // 
            // button3
            // buttonToBeforePage
            // 
            this.button3.Location = new System.Drawing.Point(632, 1);
            this.button3.Name = "button3";
            this.button3.Size = new System.Drawing.Size(55, 23);
            this.button3.TabIndex = 1;
            this.button3.Text = "后一页";
            this.button3.UseVisualStyleBackColor = true;
            this.buttonToBeforePage.Location = new System.Drawing.Point(477, 1);
            this.buttonToBeforePage.Name = "buttonToBeforePage";
            this.buttonToBeforePage.Size = new System.Drawing.Size(55, 23);
            this.buttonToBeforePage.TabIndex = 1;
            this.buttonToBeforePage.Text = "前一页";
            this.buttonToBeforePage.UseVisualStyleBackColor = true;
            // 
            // button4
            // buttonToFirstPage
            // 
            this.button4.Location = new System.Drawing.Point(693, 0);
            this.button4.Name = "button4";
            this.button4.Size = new System.Drawing.Size(55, 23);
            this.button4.TabIndex = 1;
            this.button4.Text = "最后页";
            this.button4.UseVisualStyleBackColor = true;
            this.buttonToFirstPage.Location = new System.Drawing.Point(416, 1);
            this.buttonToFirstPage.Name = "buttonToFirstPage";
            this.buttonToFirstPage.Size = new System.Drawing.Size(55, 23);
            this.buttonToFirstPage.TabIndex = 1;
            this.buttonToFirstPage.Text = "第一页";
            this.buttonToFirstPage.UseVisualStyleBackColor = true;
            // 
            // textBox1
            // labelTotal
            // 
            this.textBox1.Location = new System.Drawing.Point(542, 2);
            this.textBox1.Name = "textBox1";
            this.textBox1.Size = new System.Drawing.Size(80, 21);
            this.textBox1.TabIndex = 2;
            this.labelTotal.AutoSize = true;
            this.labelTotal.Font = new System.Drawing.Font("Tahoma", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((byte)(134)));
            this.labelTotal.Location = new System.Drawing.Point(3, 3);
            this.labelTotal.Name = "labelTotal";
            this.labelTotal.Size = new System.Drawing.Size(97, 17);
            this.labelTotal.TabIndex = 0;
            this.labelTotal.Text = "数量:总页数:";
            // 
            // dataGridView1
            // 
@@ -219,6 +220,17 @@
            this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 15.625F));
            this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 9.375F));
            this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 15.625F));
            this.tableLayoutPanel2.Controls.Add(this.dateTimePEndTime, 3, 1);
            this.tableLayoutPanel2.Controls.Add(this.label9, 2, 1);
            this.tableLayoutPanel2.Controls.Add(this.label5, 4, 0);
            this.tableLayoutPanel2.Controls.Add(this.textBoxPBarCode, 3, 0);
            this.tableLayoutPanel2.Controls.Add(this.label4, 2, 0);
            this.tableLayoutPanel2.Controls.Add(this.buttonQuery, 7, 1);
            this.tableLayoutPanel2.Controls.Add(this.textBoxPCode, 1, 0);
            this.tableLayoutPanel2.Controls.Add(this.label3, 0, 0);
            this.tableLayoutPanel2.Controls.Add(this.comboBoxPResult, 5, 0);
            this.tableLayoutPanel2.Controls.Add(this.labelPTime, 0, 1);
            this.tableLayoutPanel2.Controls.Add(this.dateTimePStartTime, 1, 1);
            this.tableLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill;
            this.tableLayoutPanel2.Location = new System.Drawing.Point(3, 3);
            this.tableLayoutPanel2.Name = "tableLayoutPanel2";
@@ -227,6 +239,17 @@
            this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
            this.tableLayoutPanel2.Size = new System.Drawing.Size(751, 64);
            this.tableLayoutPanel2.TabIndex = 3;
            //
            // tabPage2
            //
            this.tabPage2.Controls.Add(this.tableLayoutPanel3);
            this.tabPage2.Location = new System.Drawing.Point(4, 22);
            this.tabPage2.Name = "tabPage2";
            this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
            this.tabPage2.Size = new System.Drawing.Size(1016, 691);
            this.tabPage2.TabIndex = 1;
            this.tabPage2.Text = "测量结果数据";
            this.tabPage2.UseVisualStyleBackColor = true;
            // 
            // tableLayoutPanel3
            // 
@@ -356,8 +379,124 @@
            this.tableLayoutPanel4.RowCount = 2;
            this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
            this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F));
            this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F));
            this.tableLayoutPanel4.Size = new System.Drawing.Size(751, 64);
            this.tableLayoutPanel4.TabIndex = 3;
            //
            // buttonQuery
            //
            this.buttonQuery.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
            | System.Windows.Forms.AnchorStyles.Right)));
            this.buttonQuery.Location = new System.Drawing.Point(673, 35);
            this.buttonQuery.Name = "buttonQuery";
            this.buttonQuery.Size = new System.Drawing.Size(75, 26);
            this.buttonQuery.TabIndex = 0;
            this.buttonQuery.Text = "查询";
            this.buttonQuery.UseVisualStyleBackColor = true;
            this.buttonQuery.Click += new System.EventHandler(this.buttonQuery_Click);
            //
            // textBoxPCode
            //
            this.textBoxPCode.Dock = System.Windows.Forms.DockStyle.Fill;
            this.textBoxPCode.Font = new System.Drawing.Font("Tahoma", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((byte)(134)));
            this.textBoxPCode.Location = new System.Drawing.Point(73, 3);
            this.textBoxPCode.Name = "textBoxPCode";
            this.textBoxPCode.Size = new System.Drawing.Size(111, 24);
            this.textBoxPCode.TabIndex = 1;
            //
            // label3
            //
            this.label3.AutoSize = true;
            this.label3.Dock = System.Windows.Forms.DockStyle.Fill;
            this.label3.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((byte)(134)));
            this.label3.Location = new System.Drawing.Point(3, 0);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(64, 32);
            this.label3.TabIndex = 2;
            this.label3.Text = "产品编码";
            this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            //
            // label4
            //
            this.label4.AutoSize = true;
            this.label4.Dock = System.Windows.Forms.DockStyle.Fill;
            this.label4.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((byte)(134)));
            this.label4.Location = new System.Drawing.Point(190, 0);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(64, 32);
            this.label4.TabIndex = 3;
            this.label4.Text = "产品条码";
            this.label4.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            //
            // textBoxPBarCode
            //
            this.textBoxPBarCode.Dock = System.Windows.Forms.DockStyle.Fill;
            this.textBoxPBarCode.Font = new System.Drawing.Font("Tahoma", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((byte)(134)));
            this.textBoxPBarCode.Location = new System.Drawing.Point(260, 3);
            this.textBoxPBarCode.Name = "textBoxPBarCode";
            this.textBoxPBarCode.Size = new System.Drawing.Size(111, 24);
            this.textBoxPBarCode.TabIndex = 4;
            //
            // label5
            //
            this.label5.AutoSize = true;
            this.label5.Dock = System.Windows.Forms.DockStyle.Fill;
            this.label5.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((byte)(134)));
            this.label5.Location = new System.Drawing.Point(377, 0);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(64, 32);
            this.label5.TabIndex = 5;
            this.label5.Text = "产品结果";
            this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            //
            // comboBoxPResult
            //
            this.comboBoxPResult.Font = new System.Drawing.Font("Tahoma", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((byte)(134)));
            this.comboBoxPResult.FormattingEnabled = true;
            this.comboBoxPResult.Location = new System.Drawing.Point(447, 3);
            this.comboBoxPResult.Name = "comboBoxPResult";
            this.comboBoxPResult.Size = new System.Drawing.Size(111, 25);
            this.comboBoxPResult.TabIndex = 6;
            //
            // labelPTime
            //
            this.labelPTime.AutoSize = true;
            this.labelPTime.Dock = System.Windows.Forms.DockStyle.Fill;
            this.labelPTime.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((byte)(134)));
            this.labelPTime.Location = new System.Drawing.Point(3, 32);
            this.labelPTime.Name = "labelPTime";
            this.labelPTime.Size = new System.Drawing.Size(64, 32);
            this.labelPTime.TabIndex = 7;
            this.labelPTime.Text = "生产时间";
            this.labelPTime.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
            //
            // dateTimePStartTime
            //
            this.dateTimePStartTime.CalendarFont = new System.Drawing.Font("Tahoma", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((byte)(134)));
            this.dateTimePStartTime.Location = new System.Drawing.Point(73, 35);
            this.dateTimePStartTime.Name = "dateTimePStartTime";
            this.dateTimePStartTime.Size = new System.Drawing.Size(111, 21);
            this.dateTimePStartTime.TabIndex = 8;
            //
            // label9
            //
            this.label9.AutoSize = true;
            this.label9.Dock = System.Windows.Forms.DockStyle.Fill;
            this.label9.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((byte)(134)));
            this.label9.Location = new System.Drawing.Point(190, 32);
            this.label9.Name = "label9";
            this.label9.Size = new System.Drawing.Size(64, 32);
            this.label9.TabIndex = 11;
            this.label9.Text = "~";
            this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
            //
            // dateTimePEndTime
            //
            this.dateTimePEndTime.CalendarFont = new System.Drawing.Font("Tahoma", 14F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.World, ((byte)(134)));
            this.dateTimePEndTime.Location = new System.Drawing.Point(260, 35);
            this.dateTimePEndTime.Name = "dateTimePEndTime";
            this.dateTimePEndTime.Size = new System.Drawing.Size(111, 21);
            this.dateTimePEndTime.TabIndex = 12;
            // 
            // M071_DataForm
            // 
@@ -369,11 +508,13 @@
            this.Text = "M071_DataFrm";
            this.tabControl1.ResumeLayout(false);
            this.tabPage1.ResumeLayout(false);
            this.tabPage2.ResumeLayout(false);
            this.tableLayoutPanel1.ResumeLayout(false);
            this.panel1.ResumeLayout(false);
            this.panel1.PerformLayout();
            ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
            this.tableLayoutPanel2.ResumeLayout(false);
            this.tableLayoutPanel2.PerformLayout();
            this.tabPage2.ResumeLayout(false);
            this.tableLayoutPanel3.ResumeLayout(false);
            this.panel2.ResumeLayout(false);
            this.panel2.PerformLayout();
@@ -390,12 +531,12 @@
        private System.Windows.Forms.TableLayoutPanel tableLayoutPanel1;
        private System.Windows.Forms.GroupBox groupBox1;
        private System.Windows.Forms.Panel panel1;
        private System.Windows.Forms.TextBox textBox1;
        private System.Windows.Forms.Button button4;
        private System.Windows.Forms.Button button3;
        private System.Windows.Forms.Button button2;
        private System.Windows.Forms.Button button1;
        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.TextBox textBoxPageNum;
        private System.Windows.Forms.Button buttonToLastPage;
        private System.Windows.Forms.Button buttonToNextPage;
        private System.Windows.Forms.Button buttonToBeforePage;
        private System.Windows.Forms.Button buttonToFirstPage;
        private System.Windows.Forms.Label labelTotal;
        private System.Windows.Forms.DataGridView dataGridView1;
        private System.Windows.Forms.TableLayoutPanel tableLayoutPanel2;
        private System.Windows.Forms.TableLayoutPanel tableLayoutPanel3;
@@ -409,5 +550,16 @@
        private System.Windows.Forms.Label label2;
        private System.Windows.Forms.DataGridView dataGridView2;
        private System.Windows.Forms.TableLayoutPanel tableLayoutPanel4;
        private System.Windows.Forms.Button buttonQuery;
        private System.Windows.Forms.TextBox textBoxPCode;
        private System.Windows.Forms.Label label3;
        private System.Windows.Forms.DateTimePicker dateTimePEndTime;
        private System.Windows.Forms.Label label9;
        private System.Windows.Forms.Label label5;
        private System.Windows.Forms.TextBox textBoxPBarCode;
        private System.Windows.Forms.Label label4;
        private System.Windows.Forms.ComboBox comboBoxPResult;
        private System.Windows.Forms.Label labelPTime;
        private System.Windows.Forms.DateTimePicker dateTimePStartTime;
    }
}
src/Bro.M071.Process/UI/M071_DataForm.cs
@@ -1,4 +1,6 @@
using Bro.UI.Model.Winform;
using Bro.M071.DBManager;
using Bro.M071.Model.Model;
using Bro.UI.Model.Winform;
using System;
using System.Collections.Generic;
using System.ComponentModel;
@@ -14,9 +16,40 @@
    [MenuNode("M071_DataForm", "数据查询界面", 3, "M071Node", true)]
    public partial class M071_DataForm : MenuFrmBase
    {
        public ProductionMeasurementRecordsManager _productionMeasurementRecordsManager = new ProductionMeasurementRecordsManager();
        public M071_DataForm()
        {
            InitializeComponent();
            InitialProductionRecordsLayout();
            InitialMeasurementResultLayout();
        }
        #region 产品记录
        private void InitialProductionRecordsLayout()
        {
        }
        private void buttonQuery_Click(object sender, EventArgs e)
        {
            ProductionMeasurementRecordsRequest recordsRequest = new ProductionMeasurementRecordsRequest();
            recordsRequest.ProductionCode = textBoxPCode.Text;
            recordsRequest.ProductionBarcode = textBoxPBarCode.Text;
            recordsRequest.ProductionResult = comboBoxPResult.SelectedItem?.ToString();
            recordsRequest.StartTime = dateTimePStartTime.Value;
            recordsRequest.EndTime = dateTimePEndTime.Value;
            var queryData = _productionMeasurementRecordsManager.GetProductionMeasurementRecords(recordsRequest);
            dataGridView1.DataSource = queryData;
        }
        #endregion
        #region 测量结果
        private void InitialMeasurementResultLayout()
        {
        }
        #endregion
    }
}