コード例 #1
0
 private void Supplier_List_Load(object sender, EventArgs e)
 {
     Master.Database.SupplierData Sup = new Master.Database.SupplierData();
     try
     {
         Sup.FnConn();
         DataTable dt = Sup.FillData();
         gridControl1.DataSource = dt;
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message.ToString());
     }
 }
コード例 #2
0
        private void barButtonItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            New_Supplier a = new New_Supplier(null);

            a.ShowDialog();
            Master.Database.SupplierData Sup = new Master.Database.SupplierData();
            try
            {
                Sup.FnConn();
                DataTable dt = Sup.FillData();
                gridControl1.DataSource = dt;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message.ToString());
            }
        }
コード例 #3
0
        private void repositoryItemCheckEdit1_CheckedChanged(object sender, EventArgs e)
        {
            DataRow      row    = gridView1.GetDataRow(gridView1.FocusedRowHandle);
            string       Sup_ID = row["supplierId"].ToString();
            New_Supplier NewSup = new New_Supplier(Sup_ID);

            NewSup.ShowDialog();

            Master.Database.SupplierData Sup = new Master.Database.SupplierData();
            try
            {
                Sup.FnConn();
                DataTable dt = Sup.FillData();
                gridControl1.DataSource = dt;
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message.ToString());
            }
        }