private void BtEnregistrer_Click(object sender, EventArgs e) { this.f6301BindingSource.EndEdit(); DBf6301BindingSource.EndEdit(); var f6301 = this.f6301BindingSource.Current as Model.F6301; if (f6301 != null) { _controller.Save(f6301.MF6301); } _CurrentF6301 = _controller.CurrentF6301(); DBf6301BindingSource.DataSource = _CurrentF6301; this.f6301BindingSource.DataSource = new Model.F6301(_CurrentF6301); }
public F6301(Core.Models.Liass.F6301 mF6301) { MF6301 = mF6301; Lignes = new List <LigneLiasse>(); for (int j = 1; j <= 19; j++) { Lignes.Add(new LigneLiasse() { Ordre = j, CodeN = $"F63010{j:000}", CodeN1 = $"F63011{j:000}", Libelle = Libelles[j - 1], ObjectLiasse = mF6301 }); } }
public XtraFrmF6301(LiasseController controller) { _controller = controller; InitializeComponent(); gridView1.CustomRowCellEdit += GridView1OnCustomRowCellEdit; _CurrentF6301 = controller.CurrentF6301(); DBf6301BindingSource.DataSource = _CurrentF6301; var Model = new Model.F6301(_CurrentF6301); this.f6301BindingSource.DataSource = new Model.F6301(_CurrentF6301); btEnregistrer.Click += BtEnregistrer_Click; btExporter.Click += BtExporter_Click; //this.gridView1.OptionsView.RowAutoHeight = true; //colLibelle.AppearanceCell.TextOptions.WordWrap=WordWrap.Wrap; saveFileDialog1.FileName = controller.GetXmlFileName(this.DBf6301BindingSource.Current); }
public void F6301Update(Core.Models.Liass.F6301 f6301) { _f6301Repo.Update(f6301); }
public void F6301Create(Core.Models.Liass.F6301 f6301) { _f6301Repo.Create(f6301); }