Пример #1
0
        private void button3_Click(object sender, EventArgs e)
        {
            try
            {
                AntpDLL dll = new AntpDLL();
                var     res = dll.TerminarCitas(textBox2.Text.Trim(), textBox3.Text.Trim(), textBox4.Text.Trim(), textBox5.Text.Trim(), textBox6.Text.Trim(), textBox7.Text.Trim(), textBox8.Text.Trim(), textBox9.Text.Trim(), textBox10.Text);

                if (res.Estado)
                {
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message.ToString(), "error");
            }
        }
Пример #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            try
            {
                AntpDLL dll = new AntpDLL();

                var res = dll.IniciarCitas("TR", "01", "3636", "250557", "BBBBBB", "L-4654646546", "0002290078", "TRACPU1503", "jair.melgarejo");

                if (!res.Estado)
                {
                    MessageBox.Show(res.Mensaje, "Mensaje");
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message.ToString(), "error");
            }
        }
Пример #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            //string direccion;
            //direccion = string.Format(@"C:\PDFS\{0}.pdf", textBox1.Text);

            //if (File.Exists(direccion)) {

            //    System.Diagnostics.Process.Start(direccion);

            //}
            //else
            //{
            //    byte[] pdf = GeneraPermisoSalida(textBox1.Text).PermisoSalida;
            //    MessageBox.Show("Valor:", pdf.ToString());
            //    try
            //    {
            //        File.WriteAllBytes(@"C:\PDFS\"+textBox1.Text+".pdf", pdf);
            //    }
            //    catch (Exception ex)
            //    {
            //        MessageBox.Show(ex.Message);
            //    }

            //}
            try
            {
                AntpDLL dll = new AntpDLL();
                var     res = dll.ImprimirPermisoSalida(textBox1.Text.Trim());

                if (res.Estado)
                {
                }
            }catch (Exception ex) {
                MessageBox.Show(ex.Message.ToString(), "error");
            }
        }