Ejemplo n.º 1
0
        private void btnShipTypeDelete_Click(object sender, EventArgs e)
        {
            Boolean iRowsAffected = false;

            iRowsAffected = dbAccessLayer.DeleteRow("tblshiptypemaster", new String[] { "ShiptypeID" }, new String[] { txtShipTypeID.Text });
            if (iRowsAffected)
            {
                txtShipTypeID.Text   = "";
                txtShipTypeDesc.Text = "";
                txtShipTypeName.Text = "";
                MessageBox.Show("Details Deleted Successfully");
            }
            else
            {
                MessageBox.Show("Deletion failed");
            }
        }
Ejemplo n.º 2
0
        private void btnShipDelete_Click(object sender, EventArgs e)
        {
            Boolean iRowsAffected = false;

            iRowsAffected = dbAccessLayer.DeleteRow("tblshipmaster", new String[] { "ShipNo" }, new String[] { txtShipNo.Text });
            if (iRowsAffected)
            {
                txtShipNo.Text               = "";
                txtShipName.Text             = "";
                txtShipSize.Text             = "";
                txtShipCapacity.Text         = "";
                cmbBoxFleet.SelectedIndex    = 0;
                cmbBoxShipType.SelectedIndex = 0;
                MessageBox.Show("Details Deleted Successfully");
            }
            else
            {
                MessageBox.Show("Deletion failed");
            }
        }
Ejemplo n.º 3
0
        private void btnDelete_Click(object sender, EventArgs e)
        {
            Boolean iRowsAffected = false;

            iRowsAffected = dbAccessLayer.DeleteRow("tblempmaster", new String[] { "EmpNo" }, new String[] { txtEmpNo.Text });
            if (iRowsAffected)
            {
                txtEmpNo.Text               = "";
                txtEmpName.Text             = "";
                txtFromDate.Text            = "";
                txtPassWord.Text            = "";
                txtToDate.Text              = "";
                cmbBoxShip.SelectedIndex    = 0;
                cmbBoxEmpType.SelectedIndex = 0;
                cmbBoxEmpDept.SelectedIndex = 0;
                rdBtnActive.Checked         = true;
                MessageBox.Show("Details Deleted Successfully");
            }
            else
            {
                MessageBox.Show("Deletion failed");
            }
        }