Beispiel #1
0
        private void altaBtn_Click(object sender, EventArgs e)
        {
            imp_data     obj = new imp_data(); //we creaTe an objecti from our imp_data class
            DialogResult dr  = MessageBox.Show("Do you want to add this Consorcio?", "Question....", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (dr == DialogResult.Yes)
            {
                obj.AddConsorcio(NameConsorcioTxt.Text, DomConsorcioTxt.Text, Convert.ToInt32(ConsorcioCpTxt.Text), CuitConsorcioTxt.Text, CategConsorcioTxt.Text, SuthernConsorcioTxt.Text, StatusConsorcioTxt.Text);
            }
        }
Beispiel #2
0
        private void AltaCategBtn_Click(object sender, EventArgs e)
        {
            imp_data     obj = new imp_data(); //we creaTe an object from our imp_data class
            DialogResult dr  = MessageBox.Show("Do you want to add this Categoría?", "Question....", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (dr == DialogResult.Yes)
            {
                obj.AddCategRubro(Convert.ToInt32(idcategTxt.Text), namecategTxt.Text, descripcategTxt.Text);
            }
        }
Beispiel #3
0
        private void AltaServBtn_Click(object sender, EventArgs e)
        {
            imp_data     obj = new imp_data(); //we creaTe an object from our imp_data class
            DialogResult dr  = MessageBox.Show("Do you want to add this Servicio?", "Question....", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (dr == DialogResult.Yes)
            {
                obj.AddServicio(Convert.ToInt32(idcategTxt.Text), CuitservicioTxt.Text, nameservicioTxt.Text, DomServicioTxt.Text,
                                phoneServicioTxt.Text, emailServicioTxt.Text);
            }
        }
Beispiel #4
0
        private void AltaBtn_Click(object sender, EventArgs e)
        {
            imp_data     obj = new imp_data(); //we creaTe an object from our imp_data class
            DialogResult dr  = MessageBox.Show("Do you want to add this Consorcista?", "Question....", MessageBoxButtons.YesNo, MessageBoxIcon.Question);

            if (dr == DialogResult.Yes)
            {
                obj.AddConsorcista(CuitConsorcio1Txt.Text, nameConsorcistaTxt.Text, NameConsorcio1Txt.Text, DomConsorcistaTxt.Text,
                                   phoneConsorcistaTxt.Text, emailConsorcistaTxt.Text, Convert.ToInt32(ConsorcistaCpTxt.Text), Convert.ToInt32(UFNumberTxt.Text),
                                   fdTxt.Text, Convert.ToDecimal(expenPorTxt.Text));
            }
        }
Beispiel #5
0
        private void DataGridServicios_Load(object sender, EventArgs e)
        {
            imp_data obj = new imp_data();

            obj.getAllServicios(dGridvServ);
        }