コード例 #1
0
        private void BtEnregistrer_Click(object sender, EventArgs e)
        {
            this.f6304BindingSource.EndEdit();
            DBf6304BindingSource.EndEdit();
            var f6304 = this.f6304BindingSource.Current as Model.F6304;

            if (f6304 != null)
            {
                _controller.Save(f6304.MF6304);
            }
            _CurrentF6304 = _controller.CurrentF6304();
            DBf6304BindingSource.DataSource    = _CurrentF6304;
            this.f6304BindingSource.DataSource = new Model.F6304(_CurrentF6304);
        }
コード例 #2
0
        public XtraFrmF6304(LiasseController controller)
        {
            _controller = controller;
            InitializeComponent();
            gridView1.CustomRowCellEdit += GridView1OnCustomRowCellEdit;
            _CurrentF6304 = controller.CurrentF6304();
            DBf6304BindingSource.DataSource = _CurrentF6304;
            var Model = new Model.F6304(_CurrentF6304);

            this.f6304BindingSource.DataSource = new Model.F6304(_CurrentF6304);
            btEnregistrer.Click += BtEnregistrer_Click;
            btExporter.Click    += BtExporter_Click;
            //this.gridView1.OptionsView.RowAutoHeight = true;
            //colLibelle.AppearanceCell.TextOptions.WordWrap=WordWrap.Wrap;
            saveFileDialog1.FileName = controller.GetXmlFileName(this.DBf6304BindingSource.Current);
        }
コード例 #3
0
 public F6304(Core.Models.Liass.F6304 mF6304)
 {
     MF6304 = mF6304;
     Lignes = new List <LigneLiasse>();
     for (int j = 1; j <= 26; j++)
     {
         Lignes.Add(new LigneLiasse()
         {
             Ordre        = j,
             CodeN        = $"F63040{j:000}",
             CodeN1       = $"F63041{j:000}",
             Libelle      = Libelles[j - 1],
             ObjectLiasse = mF6304
         });
     }
 }
コード例 #4
0
 public void F6304Update(Core.Models.Liass.F6304 f6304)
 {
     _f6304Repo.Update(f6304);
 }
コード例 #5
0
 public void F6304Create(Core.Models.Liass.F6304 f6304)
 {
     _f6304Repo.Create(f6304);
 }