private void BtEnregistrer_Click(object sender, EventArgs e) { this.f6002BindingSource.EndEdit(); DBf6002BindingSource.EndEdit(); var f6002 = this.f6002BindingSource.Current as Model.F6002; if (f6002 != null) { _controller.Save(f6002.Mf6002); } _CurrentF6002 = _controller.CurrentF6002(); DBf6002BindingSource.DataSource = _CurrentF6002; this.f6002BindingSource.DataSource = new Model.F6002(_CurrentF6002); }
public XtraFrmF6002(LiasseController controller) { _controller = controller; InitializeComponent(); gridView1.CustomRowCellEdit += GridView1OnCustomRowCellEdit; _CurrentF6002 = controller.CurrentF6002(); DBf6002BindingSource.DataSource = _CurrentF6002; var Model = new Model.F6002(_CurrentF6002); this.f6002BindingSource.DataSource = new Model.F6002(_CurrentF6002); btEnregistrer.Click += BtEnregistrer_Click; btExporter.Click += BtExporter_Click; //this.gridView1.OptionsView.RowAutoHeight = true; //colLibelle.AppearanceCell.TextOptions.WordWrap=WordWrap.Wrap; saveFileDialog1.FileName = controller.GetXmlFileName(this.DBf6002BindingSource.Current); }
public F6002(Core.Models.Liass.F6002 mf6002) { Mf6002 = mf6002; Lignes = new List <LigneLiasse>(); for (int j = 1; j <= 53; j++) { Lignes.Add(new LigneLiasse() { Ordre = j, CodeN = $"F60020{j:000}", CodeN1 = $"F60020{j+53:000}", Libelle = Libelles[j - 1], ObjectLiasse = mf6002 }); } }
public void F6002Update(Core.Models.Liass.F6002 f6002) { _f6002Repo.Update(f6002); }
public void F6002Create(Core.Models.Liass.F6002 f6002) { _f6002Repo.Create(f6002); }