private void BtEnregistrer_Click(object sender, EventArgs e)
        {
            this.F6003BindingSource.EndEdit();
            DBf6003BindingSource.EndEdit();
            var F6003 = this.F6003BindingSource.Current as Model.F6003;

            if (F6003 != null)
            {
                _controller.Save(F6003.MF6003);
            }
            _CurrentF6003 = _controller.CurrentF6003();
            DBf6003BindingSource.DataSource    = _CurrentF6003;
            this.F6003BindingSource.DataSource = new Model.F6003(_CurrentF6003);
        }
 public F6003(Core.Models.Liass.F6003 mF6003)
 {
     MF6003 = mF6003;
     Lignes = new List <LigneLiasse>();
     for (int j = 1; j <= 89; j++)
     {
         Lignes.Add(new LigneLiasse()
         {
             Ordre        = j,
             CodeN        = $"F60030{j:000}",
             CodeN1       = $"F60030{j+89:000}",
             Libelle      = Libelles[j - 1],
             ObjectLiasse = mF6003
         });
     }
 }
        public XtraFrmF6003(LiasseController controller)
        {
            _controller = controller;
            InitializeComponent();
            gridView1.CustomRowCellEdit += GridView1OnCustomRowCellEdit;
            _CurrentF6003 = controller.CurrentF6003();
            DBf6003BindingSource.DataSource = _CurrentF6003;
            var Model = new Model.F6003(_CurrentF6003);

            this.F6003BindingSource.DataSource = new Model.F6003(_CurrentF6003);
            btEnregistrer.Click += BtEnregistrer_Click;
            btExporter.Click    += BtExporter_Click;
            //this.gridView1.OptionsView.RowAutoHeight = true;
            //colLibelle.AppearanceCell.TextOptions.WordWrap=WordWrap.Wrap;
            saveFileDialog1.FileName = controller.GetXmlFileName(this.DBf6003BindingSource.Current);
        }
Exemple #4
0
 public void F6003Update(Core.Models.Liass.F6003 f6003)
 {
     _f6003Repo.Update(f6003);
 }
Exemple #5
0
 public void F6003Create(Core.Models.Liass.F6003 f6003)
 {
     _f6003Repo.Create(f6003);
 }