Ejemplo n.º 1
0
        private void btnOK_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            grdServicesView.FocusedRowHandle = grdServicesView.FocusedRowHandle + 1;
            DataTable dt  = new DataTable();
            DataTable dtM = new DataTable();

            dtM = grdServices.DataSource as DataTable;
            DataView dv = new DataView(dtM);

            if (dtM != null)
            {
                dv.RowFilter = "Sel = " + true + "";
                dt           = dv.ToTable();
            }
            ProjectInfoDL.InsertNBS(dt, i_CostCentreId, m_sType);

            Close();
        }
Ejemplo n.º 2
0
 public static void InsertNBS(DataTable argdt, int argCCID, string argType)
 {
     ProjectInfoDL.InsertNBS(argdt, argCCID, argType);
 }