/// <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);
            }
        }
        /// <summary>
        /// 获取出厂条形码生成规则信息对话框
        /// </summary>
        /// <returns></returns>
        static public FormQueryInfo GetBuildRuleForVehicleBarcode()
        {
            IProductBarcodeServer server = ServerModuleFactory.GetServerModule <IProductBarcodeServer>();
            IQueryable <View_P_BuildRuleForVehicleBarcode> result = server.GetBuildRule();

            FormQueryInfo form = new FormQueryInfo(result);

            return(form);
        }