Пример #1
0
 internal Temeljnica OpenTemeljnica(ref DataTable dt, DBDataGridView dbDataGridView1)
 {
     dt = _dnevnikKnjizenja.GetDnevnikByTemeljnica(BrojTemeljnice);
     _temeljnica.GetTemeljnicaByNumber(BrojTemeljnice);
     dbDataGridView1.DataSource            = dt;
     dbDataGridView1.Columns["Id"].Visible = false;
     return(_temeljnica);
 }
Пример #2
0
 /// <summary>
 /// Insert data from DataGridView in SQL
 /// DO NOT USE WITH CLASSES THAT HAVE NESTED CLASSES
 /// </summary>
 /// <param name="dgv">DataGridView</param>
 internal void InsertNewBulk(DBDataGridView dgv)
 {
     new DbDataInsert().InsertDataBulk(this, dgv);
 }
Пример #3
0
 /// <summary>
 /// Filters for URA and IRA datagridview's.
 /// Dictionary key 0: date column title, key 1: name column title that will be filtered,
 /// key 2: Invoice number clumn title
 /// </summary>
 /// <param name="dgv"></param>
 /// <param name="columns">key0:Name column title, key1:Date column title, key 2: Invoice number clumn title</param>
 public KnjigaFilter(DBDataGridView dgv, Dictionary <int, string> columns)
 {
     InitializeComponent();
     _dgv     = dgv;
     _columns = columns;
 }