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 UAS_MES_NEW.DataOperate;
using UAS_MES_NEW.Entity;
using UAS_MES_NEW.PublicMethod;

namespace UAS_MES_NEW.Query
{
    public partial class Query_ProductTraceBack : Form
    {

        DataHelper dh;

        AutoSizeFormClass asc = new AutoSizeFormClass();

        public Query_ProductTraceBack()
        {
            InitializeComponent();
        }

        private void 产品制程追溯_Load(object sender, EventArgs e)
        {
            asc.controllInitializeSize(this);
            dh = SystemInf.dh;
            ma_code.TableName = "make left join product on ma_prodcode=pr_code";
            ma_code.SelectField = "ma_code # 工单号,ma_prodcode # 产品编号,ma_qty # 工单数量,pr_detail # 产品名称";
            ma_code.FormName = Name;
            ma_code.DBTitle = "工单查询";
            ma_code.SetValueField = new string[] { "ma_code", "ma_prodcode", "ma_qty", "pr_detail" };
        }

        private void 产品制程追溯_SizeChanged(object sender, EventArgs e)
        { 
            asc.controlAutoSize(this);
        }

        private void Search_Click(object sender, EventArgs e)
        {

        }
    }
}