private void BtEnregistrer_Click(object sender, EventArgs e) { this.F6004BindingSource.EndEdit(); DBf6004BindingSource.EndEdit(); var F6004 = this.F6004BindingSource.Current as Model.F6004; if (F6004 != null) { _controller.Save(F6004.MF6004); } _CurrentF6004 = _controller.CurrentF6004(); DBf6004BindingSource.DataSource = _CurrentF6004; this.F6004BindingSource.DataSource = new Model.F6004(_CurrentF6004); }
public XtraFrmF6004(LiasseController controller) { _controller = controller; InitializeComponent(); gridView1.CustomRowCellEdit += GridView1OnCustomRowCellEdit; _CurrentF6004 = controller.CurrentF6004(); DBf6004BindingSource.DataSource = _CurrentF6004; this.F6004BindingSource.DataSource = new Model.F6004(_CurrentF6004); btEnregistrer.Click += BtEnregistrer_Click; btExporter.Click += BtExporter_Click; //this.gridView1.OptionsView.RowAutoHeight = true; //colLibelle.AppearanceCell.TextOptions.WordWrap=WordWrap.Wrap; saveFileDialog1.FileName = controller.GetXmlFileName(this.DBf6004BindingSource.Current); }
public F6004(Core.Models.Liass.F6004 mF6004) { MF6004 = mF6004; Lignes = new List <LigneLiasse>(); for (int j = 1; j <= 117; j++) { Lignes.Add(new LigneLiasse() { Ordre = j, CodeN = $"F60040{j:000}", CodeN1 = $"F60041{j:000}", Libelle = Libelles[j - 1], ObjectLiasse = mF6004 }); } }
public void F6004Update(Core.Models.Liass.F6004 f6004) { _f6004Repo.Update(f6004); }
public void F6004Create(Core.Models.Liass.F6004 f6004) { _f6004Repo.Create(f6004); }