Exemple #1
0
        protected void getData()
        {
            DataTable Dot = new DataTable();

            dataGridView1.DataSource = cM.getAllData("select_employee", null, null, null, null);
            cM.refresh_address(position, "select * from tbl_position");
            cM.refresh_address(accesstype, "select * from user_role");
            cM.ClearTextBoxes(this);
            picBox.Image = null;
            user_id      = "";
        }
Exemple #2
0
        protected void login_in()
        {
            role = login.GetLogin(txtname.Text, txtpwd.Text);
            if (role != "")
            {
                DataTable    Dot = new DataTable();
                SqlParameter par = new SqlParameter();
                par.Value         = txtname.Text;
                par.ParameterName = "@id";
                Dot = cM.getAllData("getUserLogin", par, null, null, null);

                POS pos1 = new POS();
                pos1.txtName.Text = Dot.Rows[0][1].ToString();
                pos1.txtID.Text   = Dot.Rows[0][0].ToString();
                NewOrder ord = new NewOrder();
                Name1 = txtname.Text;
                //   ord.textBox2.Text = txtname.Text.ToString();
                // Id = Dot.Rows[0][0].ToString();
                pos1.ShowDialog();
                cM.ClearTextBoxes(this);
                role = "";
                this.Hide();
            }
            else
            {
                txtpwd.Clear();
                txtpwd.Focus();
            }
        }
Exemple #3
0
 protected void getData()
 {
     dataGridView1.DataSource = cM.getAllData("select_position", null, null, null, null);
     cM.ClearTextBoxes(this);
     dvg = "";
 }