Exemplo n.º 1
0
        private void LoadData(int year)
        {
            var includes = new[] { "r_abp", "r_enstru", "r_fsource", "r_months", "r_point_types",
                                   "r_prg", "r_specific", "r_sprg", "r_subj_type", "r_trade_method", "r_trade_method_just" };
            var data = rep.GetListWhere(includes, u => u.Year == year).AsEnumerable()
                       .Select(u => MapToPlan(u)).ToList();

            bs_1.DataSource = data;
        }
Exemplo n.º 2
0
 private void button3_Click(object sender, EventArgs e)
 {
     if (dataGridViewX1.CurrentRow != null)
     {
         var ens = dataGridViewX1.CurrentRow.DataBoundItem as r_enstru;
         Enstru            = rep.GetListWhere(n => n.id == ens.id).SingleOrDefault();
         ktru              = comboBox1.SelectedValue.ToString();
         this.DialogResult = DialogResult.OK;
     }
 }