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; using QMAPP.FJC.Entity.Operation; namespace QMAPP.WinForm.Forms.Mend { public partial class ProductCheckDetailForm : Form { CheckWithMaterial searchModel = new CheckWithMaterial(); ProductCheckForm ProductForm = new ProductCheckForm(); public ProductCheckDetailForm(ProductCheckForm ProductCheckInfo) { ProductForm = ProductCheckInfo; searchModel.PRODUCTCHECK_PID = ProductForm.dataGridView1.SelectedRows[0].Cells["id"].Value.ToString(); searchModel.MATERIAL_CODE = ProductForm.dataGridView1.SelectedRows[0].Cells["MATERIAL_CODE"].Value.ToString(); InitializeComponent(); } /// /// /// /// /// private void ProductCheckDetailForm_Load(object sender, EventArgs e) { if (string.IsNullOrEmpty(searchModel.PRODUCTCHECK_PID)) { return; } DGData.AutoGenerateColumns = false; //获取信息 QMAPP.ServicesAgent.ServiceAgent agent = ClientContext.GetServiceAgent(); List dataResult = agent.InvokeServiceFunction>("ProductCheckBLL_GetCheckWithMaterialInfo", searchModel); this.DGData.DataSource = dataResult; DGData.ClearSelection(); } } }