Example #1
0
        private void btnQuaHan_Click(object sender, EventArgs e)
        {
            mWsPhongthinghiemsoapclient = new WS_PTN.WS_PhongThiNghiemSoapClient();
            DataSet dataSet = new DataSet();

            dataSet = mWsPhongthinghiemsoapclient.getThietBiQuaHan();

            DataTable dataTable = new DataTable();

            dataTable = dataSet.Tables[0];

            dgvDATA.DataSource = dataTable;
        }
Example #2
0
        private void btnBaiThiNghiem_Click(object sender, EventArgs e)
        {
            mWsPhongthinghiemsoapclient = new WS_PTN.WS_PhongThiNghiemSoapClient();

            if (tvIDGV.Text != "")
            {
                int     idGV    = int.Parse(tvIDGV.Text);
                DataSet dataSet = new DataSet();
                dataSet = mWsPhongthinghiemsoapclient.getListBaiThiNghiem(idGV);

                DataTable dataTable = new DataTable();
                dataTable = dataSet.Tables[0];

                dgvDATA.DataSource = dataTable;
            }
        }
Example #3
0
        private void btnThietBi_Click(object sender, EventArgs e)
        {
            mWsPhongthinghiemsoapclient = new WS_PTN.WS_PhongThiNghiemSoapClient();

            if (tbchungloai.Text != "")
            {
                string  chungloai = tbchungloai.Text;
                DataSet dataSet   = new DataSet();
                dataSet = mWsPhongthinghiemsoapclient.getListThietBi(chungloai);


                DataTable dataTable = new DataTable();
                dataTable = dataSet.Tables[0];

                dgvDATA.DataSource = dataTable;
            }
        }