示例#1
0
文件: Form1.cs 项目: egsoft18/SOFiaT
        private void startseccion()
        {
            //DBManager c = new DBManager();
            //string usu = txtuser.Text;
            //string pass = txtpass.Text;

            //c.startseccion(usu, pass);
            //if (c.valor == "si")
            //{
            //    string query = "insert into [actualuser]([user]) values ('" + usu + "')";
            //    //actual = usu;
            //    c.command3(query);
            //    txtpass.Clear();
            //    this.Hide();
            //    homeform frm = new homeform();
            //    frm.Show();
            //    c.valor = "";
            //}


            this.Hide();
            homeform frm = new homeform();

            frm.Show();
        }
示例#2
0
        private void btnnueva_Click(object sender, EventArgs e)
        {
            homeform frm   = new homeform();
            string   query = "insert into checkinhead(date,subtotal, discount, total, createby) values('" + dtpdatecheckin.Text + "', '0', '0', '0', '" + frm.txtactualuser.Text + "')";

            c.command(query);

            string comando = "Select idcheckin from checkinhead where idcheckin = (select max(idcheckin) from checkinhead)";

            c.last_id(txtlastid, comando, "idcheckin");

            txtidcheckin.Enabled = false;
        }