public void Save(Core.Models.Liass.F6001 f6001)
 {
     if (f6001.Id < 1)
     {
         _service.LiassService.F6001Create(f6001);
     }
     else
     {
         _service.LiassService.F6001Update(f6001);
     }
 }
Exemplo n.º 2
0
        private void BtEnregistrer_Click(object sender, EventArgs e)
        {
            this.f6001BindingSource.EndEdit();
            this.DBf6001BindingSource.EndEdit();
            var f6001 = this.f6001BindingSource.Current as  Model.F6001; if (f6001 != null)

            {
                _controller.Save(f6001.Mf6001);
            }

            _CurrentF6001 = _controller.CurrentF6001();
            this.DBf6001BindingSource.DataSource = _CurrentF6001;
            this.f6001BindingSource.DataSource   = new Model.F6001(_CurrentF6001);
        }
Exemplo n.º 3
0
        public XtraFrmF6001(LiasseController controller)
        {
            _controller = controller;
            InitializeComponent();
            gridView1.CustomRowCellEdit += GridView1OnCustomRowCellEdit;
            _CurrentF6001 = controller.CurrentF6001();
            var Model = new Model.F6001(_CurrentF6001);

            this.DBf6001BindingSource.DataSource = _CurrentF6001;
            this.f6001BindingSource.DataSource   = new Model.F6001(_CurrentF6001);
            btEnregistrer.Click += BtEnregistrer_Click;
            btExporter.Click    += BtExporter_Click;
            //this.gridView1.OptionsView.RowAutoHeight = true;
            //colLibelle.AppearanceCell.TextOptions.WordWrap=WordWrap.Wrap;
            saveFileDialog1.FileName = controller.GetXmlFileName(this.DBf6001BindingSource.Current);
        }
Exemplo n.º 4
0
 public F6001(Core.Models.Liass.F6001 mf6001)
 {
     Mf6001 = mf6001;
     Lignes = new List <LigneLiasse>();
     for (int j = 1; j <= 68; j++)
     {
         Lignes.Add(new LigneLiasse()
         {
             Ordre             = j,
             CodeB             = $"F600100{j:00}",
             CodeAmortissement = $"F600110{j:00}",
             CodeN             = $"F600120{j:00}",
             CodeN1            = $"F600130{j:00}",
             Libelle           = Libelles[j - 1],
             ObjectLiasse      = mf6001
         });
     }
 }
Exemplo n.º 5
0
 public void F6001Update(Core.Models.Liass.F6001 f6001)
 {
     _f6001Repo.Update(f6001);
 }
Exemplo n.º 6
0
 public void F6001Create(Core.Models.Liass.F6001 f6001)
 {
     _f6001Repo.Create(f6001);
 }