BKI_DichVuMatDat.NghiepVu.f322_lap_hop_dong_excel.check_ma_nhan_vien_is_ok C# (CSharp) Method

check_ma_nhan_vien_is_ok() private method

private check_ma_nhan_vien_is_ok ( DataRow dataRow ) : bool
dataRow DataRow
return bool
        private bool check_ma_nhan_vien_is_ok(DataRow dataRow)
        {
            US_DM_NHAN_VIEN v_us = new US_DM_NHAN_VIEN();
            DS_DM_NHAN_VIEN v_ds_nhan_vien = new DS_DM_NHAN_VIEN();
            v_us.FillDataset(v_ds_nhan_vien, " where MA_NV= '" + dataRow["MA_NHAN_VIEN"].ToString() + "'");
            //v_usdc.FillDatasetWithQuery(v_ds_nhan_vien, "select * from DM_NHAN_VIEN where MA_NV=" + dataRow["MA_NV"].ToString());
            if (v_ds_nhan_vien.Tables[0].Rows.Count > 0)
                return true;
            else
            {
                return false;
            }
        }