/// <summary>
        /// 查找打印规则信息
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnFindRule_Click(object sender, EventArgs e)
        {
            FormQueryInfo dialog = QueryInfoDialog.GetBuildRuleForVehicleBarcode();

            if (dialog.ShowDialog() == DialogResult.OK)
            {
                int buildRuleID = (int)dialog.GetDataItem("规则编号");

                txtBuildRuleID.Text = buildRuleID.ToString();
                txtProductType.Text = dialog.GetStringDataItem("产品类型名称");

                m_buildRule = m_productBarcodeServer.GetBuildRule(buildRuleID);
            }
        }
        private void dataGridView1_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex < 0 || e.ColumnIndex < 0)
            {
                return;
            }

            View_P_PrintListForVehicleBarcode listInfo = dataGridView1.Rows[e.RowIndex].Tag as View_P_PrintListForVehicleBarcode;

            txtBuildRuleID.Text   = listInfo.打印规则编号.ToString();
            txtProductType.Text   = listInfo.产品类型名称;
            dateTimePicker1.Value = listInfo.产品日期;
            numBeginNumber.Value  = listInfo.打印起始编号;
            numEndNumber.Value    = listInfo.打印结束编号;
            numPrintAmount.Value  = listInfo.打印份数;
            cmbPrintMode.Text     = listInfo.打印模式;

            m_buildRule = m_productBarcodeServer.GetBuildRule(listInfo.打印规则编号);
        }