using OakLeaf.MM.Main; using OakLeaf.MM.Main.Windows.Forms; using ESK.DataUploadSystem.Business; namespace ESK.InvoiceUploadSystem.Windows { /// <summary> /// Summary description for ViewInvoices /// </summary> public partial class ViewInvoices : mmBusinessForm { private Stores oStores; private Invoice oInvoice; private DataSet dsInvoices; /// <summary> /// Constructor /// </summary> public ViewInvoices() { //Get data for drop down lists this.oStores = (Stores)this.RegisterBizObj(new Stores()); this.oInvoice = (Invoice)this.RegisterPrimaryBizObj(new Invoice()); oStores.GetAllStores(); oInvoice.GetUniqueInvoices("*"); InitializeComponent(); } private void ddlStoreNo_SelectedIndexChanged(object sender, EventArgs e) { oInvoice.GetUniqueInvoices(this.ddlStoreNo.Text.ToString()); this.ddlInvoiceNo.Refresh(); } private void ddlInvoiceNo_SelectedIndexChanged(object sender, EventArgs e) { oInvoice.GetInvoiceByInvoiceNo(this.ddlInvoiceNo.Text.ToString()); this.grdInvoice.Refresh(); } } }Thanks.