コード例 #1
0
        private void BtEnregistrer_Click(object sender, EventArgs e)
        {
            this.f6303BindingSource.EndEdit();
            DBf6303BindingSource.EndEdit();
            var f6303 = this.f6303BindingSource.Current as Model.F6303;

            if (f6303 != null)
            {
                _controller.Save(f6303.MF6303);
            }
            _CurrentF6303 = _controller.CurrentF6303();
            DBf6303BindingSource.DataSource    = _CurrentF6303;
            this.f6303BindingSource.DataSource = new Model.F6303(_CurrentF6303);
        }
コード例 #2
0
 public F6303(Core.Models.Liass.F6303 mF6303)
 {
     MF6303 = mF6303;
     Lignes = new List <LigneLiasse>();
     for (int j = 1; j <= 18; j++)
     {
         Lignes.Add(new LigneLiasse()
         {
             Ordre        = j,
             CodeN        = $"F63030{j:000}",
             CodeN1       = $"F63031{j:000}",
             Libelle      = Libelles[j - 1],
             ObjectLiasse = mF6303
         });
     }
 }
コード例 #3
0
        public XtraFrmF6303(LiasseController controller)
        {
            _controller = controller;
            InitializeComponent();
            gridView1.CustomRowCellEdit += GridView1OnCustomRowCellEdit;
            _CurrentF6303 = controller.CurrentF6303();
            DBf6303BindingSource.DataSource = _CurrentF6303;
            var Model = new Model.F6303(_CurrentF6303);

            this.f6303BindingSource.DataSource = new Model.F6303(_CurrentF6303);
            btEnregistrer.Click += BtEnregistrer_Click;
            btExporter.Click    += BtExporter_Click;
            //this.gridView1.OptionsView.RowAutoHeight = true;
            //colLibelle.AppearanceCell.TextOptions.WordWrap=WordWrap.Wrap;
            saveFileDialog1.FileName = controller.GetXmlFileName(this.DBf6303BindingSource.Current);
        }
コード例 #4
0
 public void F6303Update(Core.Models.Liass.F6303 f6303)
 {
     _f6303Repo.Update(f6303);
 }
コード例 #5
0
 public void F6303Create(Core.Models.Liass.F6303 f6303)
 {
     _f6303Repo.Create(f6303);
 }