Exemplo n.º 1
0
        private void PedidosFacturas_Shown(object sender, EventArgs e)
        {
            ISujeto lsujeto = lrn.lbd;

            lsujeto.Registrar(this);

            this.Text = " Interfaz Pedidos/facturas " + " " + this.ProductVersion;
            lrn.mSeteaDirectorio(Directory.GetCurrentDirectory());

            if (Cadenaconexion != "" && Cadenaconexion != "data source =;initial catalog =CompacWAdmin ;user id = ; password = ;")
            {
                empresasComercial1.Populate(Cadenaconexion);
                mCargaConceptos();
                empresasComercial1.SelectedItem += new EventHandler(OnComboChange);
            }
            else
            {
                this.Visible = false;
                Form5 x = new Form5();
                //this.Visible = false;
                x.ShowDialog(this);
            }
            botonExcel1.mGeneraNombre(2, "CARGA DE PEDIDOS");
            botonExcel2.mSetearEtiqueta("Archivo Bitacora");
            botonExcel2.mGeneraNombre(1);
            botonExcel2.mAsignaTipo(1);
        }
Exemplo n.º 2
0
        private void XMLComercial_Load(object sender, EventArgs e)
        {
            timer1.Interval = 1000;
            timer1.Start();

            ISujeto lsujeto = lrn.lbd;

            lsujeto.Registrar(this);

            this.Text = " Interfaz xml " + " " + this.ProductVersion;
            lrn.mSeteaDirectorio(Directory.GetCurrentDirectory());

            if (Cadenaconexion != "" && Cadenaconexion != "data source =;initial catalog =CompacWAdmin ;user id = ; password = ;")
            {
                empresasComercial1.Populate(Cadenaconexion);
                mCargaConceptos();
                empresasComercial1.SelectedItem += new EventHandler(OnComboChange);
            }
            else
            {
                Form5 x = new Form5();
                x.ShowDialog(this);
            }

            botonExcel1.mSetearEtiqueta("Archivo Bitacora");
            botonExcel1.mGeneraNombre(1);
            botonExcel1.mAsignaTipo(1);

            //

            //mCargaConceptos();
        }
Exemplo n.º 3
0
        private void Microplane_Load(object sender, EventArgs e)
        {
            ISujeto lsujeto = lrn.lbd;

            //IObservador lobs = (IObservador)this;
            //lobs.Miforma = this;
            lsujeto.Registrar(this);

            this.Text = " Interfaz Microplane " + " " + this.ProductVersion;

            txtServer.Text = Properties.Settings.Default.serverOrigen;
            txtBD.Text     = Properties.Settings.Default.databaseOrigen;
            txtUser.Text   = Properties.Settings.Default.userOrigen;
            txtPass.Text   = Properties.Settings.Default.passwordO;


            textBox1.Text = Properties.Settings.Default.DSN;

            textBox2.Text = Properties.Settings.Default.UltimoFolio;
            textBox4.Text = "0";


            lrn.mSeteaDirectorio(Directory.GetCurrentDirectory());

            if (Cadenaconexion != "" && Cadenaconexion != "data source =;initial catalog =CompacWAdmin ;user id = ; password = ;")
            {
                empresasComercial1.Populate(Cadenaconexion);


                mCargaConceptos();
                empresasComercial1.SelectedItem += new EventHandler(OnComboChange);
            }
            else
            {
                Form5 x = new Form5();
                x.ShowDialog(this);
            }
            botonExcel1.mSetearEtiqueta("Archivo Bitacora");
            botonExcel1.mGeneraNombre(1);
            botonExcel1.mAsignaTipo(1);
        }
Exemplo n.º 4
0
 public void ActualizarEstado(ISujeto sender)
 {
     Console.WriteLine("Observador 2 notificado...");
 }
Exemplo n.º 5
0
        private void PedidosFacturas_Load(object sender, EventArgs e)
        {
            ISujeto lsujeto = lrn.lbd;

            lsujeto.Registrar(this);
        }
 public void Pedido(int peso, ISujeto prov)
 {
     prov.Orden(getId(), getDireccion(), getName(), peso, prov.ToString());
 }
Exemplo n.º 7
0
 public void Actualizar(ISujeto sujeto)
 {
     throw new NotImplementedException();
 }