天津投入产出系统后端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

45 lines
1.6 KiB

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();
}
/// <summary>
///
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
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<CheckWithMaterial> dataResult = agent.InvokeServiceFunction<List<CheckWithMaterial>>("ProductCheckBLL_GetCheckWithMaterialInfo", searchModel);
this.DGData.DataSource = dataResult;
DGData.ClearSelection();
}
}
}