using System;
|
using System.Collections.Generic;
|
using System.ComponentModel;
|
using System.Data;
|
using System.Drawing;
|
using System.Text;
|
using System.Windows.Forms;
|
|
namespace APSM
|
{
|
public partial class Sc_PlanMaterReadyAnalyseMX : Form
|
{
|
public Sc_PlanMaterReadyAnalyseMX()
|
{
|
InitializeComponent();
|
}
|
public long HInterID;
|
|
|
private void Display()
|
{
|
SQLHelper.ClsCN SubCn = new SQLHelper.ClsCN();
|
DataSet DSet = new DataSet();
|
DSet = SubCn.RunProcReturn("exec h_p_Sc_PlanMaterReadyAnalyseMX " + HInterID, "Gy_Czygl", ref DBUtility.ClsPub.sExeReturnInfo);
|
//Éú³ÉÊ×ÐбêÌâ
|
if (DSet == null)
|
{
|
MessageBox.Show("ûÓзµ»ØÈκνá¹û,³¢ÊÔÔٴβéѯ£¡" + DBUtility.ClsPub.sExeReturnInfo);
|
return;
|
}
|
//
|
grdMain.DataSource = DSet.Tables[0].DefaultView;
|
//
|
DBUtility.Xt_BaseBillFun.DisplayGrid(grdMain, this.Name, "ÊÇ", 0);
|
|
DBUtility.Xt_BaseBillFun.GetGrid(grdMain, this.Name);
|
SubCn.CnClose();
|
SubCn.CnDispose();
|
}
|
|
private void initGrid()
|
{
|
DBUtility.Xt_BaseBillFun.initGridList(grdMain, this.Name);
|
grdMain.CellBorderStyle = DataGridViewCellBorderStyle.Raised; //Íø¸ñ±êÌâ Ñùʽ
|
}
|
|
private void timer1_Tick(object sender, EventArgs e)
|
{
|
|
timer1.Enabled = false;
|
initGrid();
|
Display();
|
}
|
}
|
}
|