Exemplo n.º 1
0
        public AddDelivery()
        {
            InitializeComponent();

            deliveryAdapter = new autoDataSetTableAdapters.DELIVERYTableAdapter();
            deliveryAdapter.ClearBeforeFill = true;
            deliveryAdapter.Fill(autoDataSet.DELIVERY);

            autoCount = new autoDataSetTableAdapters.AUTO_COUNTTableAdapter();
            autoCount.ClearBeforeFill = true;
            autoCount.Fill(autoDataSet.AUTO_COUNT);
        }
Exemplo n.º 2
0
        private void SaleEventForm_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'autoDataSet.MODIFICATION' table. You can move, or remove it, as needed.
            this.mODIFICATIONTableAdapter.Fill(this.autoDataSet.MODIFICATION);
            // TODO: This line of code loads data into the 'autoDataSet.ENGINE' table. You can move, or remove it, as needed.
            this.eNGINETableAdapter.Fill(this.autoDataSet.ENGINE);
            // TODO: This line of code loads data into the 'autoDataSet.MODEL' table. You can move, or remove it, as needed.
            this.mODELTableAdapter.Fill(this.autoDataSet.MODEL);
            // TODO: This line of code loads data into the 'autoDataSet.MARK' table. You can move, or remove it, as needed.
            this.mARKTableAdapter.Fill(this.autoDataSet.MARK);
            // TODO: This line of code loads data into the 'autoDataSet.PAY' table. You can move, or remove it, as needed.
            this.pAYTableAdapter.Fill(this.autoDataSet.PAY);
            // TODO: This line of code loads data into the 'autoDataSet.EMPLOYEE' table. You can move, or remove it, as needed.
            this.eMPLOYEETableAdapter.Fill(this.autoDataSet.EMPLOYEE);
            // TODO: This line of code loads data into the 'autoDataSet.AUTO' table. You can move, or remove it, as needed.
            this.aUTOTableAdapter.FillByStock(this.autoDataSet.AUTO);
            // TODO: This line of code loads data into the 'autoDataSet.PERSON' table. You can move, or remove it, as needed.
            this.pERSONTableAdapter.Fill(this.autoDataSet.PERSON);
            // TODO: This line of code loads data into the 'autoDataSet.CLIENT' table. You can move, or remove it, as needed.
            this.cLIENTTableAdapter.Fill(this.autoDataSet.CLIENT);

            saleAdapter.Fill(this.autoDataSet.SALE);
            markAdapter.Fill(this.autoDataSet.MARK);
            modelAdapter.Fill(this.autoDataSet.MODEL);
            autoCount.Fill(autoDataSet.AUTO_COUNT);

            this.Validate();

            this.pAYTableAdapter.Update(this.autoDataSet);
            this.eMPLOYEETableAdapter.Update(this.autoDataSet);
            this.aUTOTableAdapter.Update(this.autoDataSet);
            this.pERSONTableAdapter.Update(this.autoDataSet);
            this.cLIENTTableAdapter.Update(this.autoDataSet);
            this.autoCount.Update(autoDataSet.AUTO_COUNT);

            this.pAYBindingSource.EndEdit();
            this.eMPLOYEEBindingSource.EndEdit();
            this.aUTOBindingSource.EndEdit();
            this.pERSONBindingSource.EndEdit();
            this.cLIENTBindingSource.EndEdit();

            this.autoDataSet.AUTO.AcceptChanges();
        }