using System; using System.Collections.Generic; using System.ComponentModel; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using YiLvRunFrom.BLL; namespace YiLvRunFrom { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Dispose_Click(object sender,EventArgs e) { Form2 f2 = new Form2(); f2.Show(); } private void process_Click(object sender, EventArgs e) { Button b = (Button)sender; IBll process = null; switch (b.Tag.ToString()) { case "Vendor": process = new VendorBll(); break; case "Inventory": process = new InventoryBll(); break; case "Warehouse": process = new WarehouseBll(); break; case "Rdrecord08": process = new RdRecord08Bll(); break; case "Rdrecord09": process = new RdRecord09Bll(); break; case "PO_Pomain": process = new PO_PomainBll(); break; case "Rdrecord01": process = new RdRecord01Bll(); break; case "PU_ArrivalVouch": process = new PU_ArrivalVouchBll(); break; case "DispatchList": process = new DispatchListBll(); break; //case "SO_SOMain": // process = new SO_SOMainBll(); // break; default: break; } //try //{ process.Process(); MessageBox.Show("下载成功"); b.Enabled = false; //} //catch (Exception ex) //{ // MessageBox.Show(ex.Message); //} } } }