diff --git a/Extensions/Extensions.csproj b/Extensions/Extensions.csproj
index 370ff88..4ee4c85 100755
--- a/Extensions/Extensions.csproj
+++ b/Extensions/Extensions.csproj
@@ -6,6 +6,9 @@
+
+
+
diff --git a/Extensions/csv/CSVAdapter.cs b/Extensions/csv/CSVAdapter.cs
new file mode 100755
index 0000000..58b2c7e
--- /dev/null
+++ b/Extensions/csv/CSVAdapter.cs
@@ -0,0 +1,43 @@
+using System;
+using System.Collections.Generic;
+using CsvHelper;
+using System.IO;
+using System.Linq;
+using Extensions.Models;
+
+namespace Extensions.CSV
+{
+ public static class CSVAdapter
+ {
+ public static void LoadFileToDb(string pathToFile, string ConnectionString, string countryCode, string clientId, string year, string setId, string setIndex)
+ {
+ List samples = null;
+ using (var reader = new StreamReader(pathToFile))
+ using (var csv = new CsvReader(reader))
+ {
+ //csv.Configuration.PrepareHeaderForMatch = (string header, int index) => header.ToLower();
+ csv.Configuration.ShouldSkipRecord = row => row[0].StartsWith("0");
+ csv.Configuration.Delimiter = "\t";
+ try
+ {
+ samples = new List(csv.GetRecords());
+
+ samples.ForEach(s => { s.F_Country_Code = countryCode; s.F_Client_Id = clientId; s.F_Year = year; s.F_Sample_Set_Id = setId; s.F_Sample_Set_Index = setIndex; s.A_Sample_ID = s.Number.ToString("d2"); });
+
+ using (var ic = new InfoContext(ConnectionString))
+ {
+ ic.Samples.AddRange(samples);
+ ic.SaveChanges();
+ }
+
+
+ }
+ catch (Exception ex)
+ {
+ ;
+ }
+ }
+
+ }
+ }
+}
diff --git a/Extensions/csv/InfoContext.cs b/Extensions/csv/InfoContext.cs
new file mode 100755
index 0000000..4cd9ad3
--- /dev/null
+++ b/Extensions/csv/InfoContext.cs
@@ -0,0 +1,29 @@
+using Microsoft.EntityFrameworkCore;
+
+namespace Extensions.Models
+{
+ public class InfoContext : DbContext
+ {
+ public DbSet Samples { get; set; }
+
+ private readonly string connectionString;
+ public InfoContext(string connectionString) : base()
+ {
+ this.connectionString = connectionString;
+ }
+
+ protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
+ {
+ if (!optionsBuilder.IsConfigured)
+ {
+ optionsBuilder.UseSqlServer(connectionString);
+ }
+ }
+
+ protected override void OnModelCreating(ModelBuilder modelBuilder)
+ {
+ modelBuilder.Entity()
+ .HasKey(s => new { s.F_Country_Code, s.F_Client_Id, s.F_Year, s.F_Sample_Set_Id, s.F_Sample_Set_Index, s.A_Sample_ID });
+ }
+ }
+}
diff --git a/Extensions/csv/SampleInfo.cs b/Extensions/csv/SampleInfo.cs
new file mode 100755
index 0000000..338878f
--- /dev/null
+++ b/Extensions/csv/SampleInfo.cs
@@ -0,0 +1,188 @@
+using CsvHelper.Configuration.Attributes;
+using System.ComponentModel.DataAnnotations.Schema;
+using System.ComponentModel.DataAnnotations;
+
+namespace Extensions.Models
+{
+ [Table("table_Sample")]
+ public class SampleInfo
+ {
+
+ [Ignore]
+ [Key]
+ public string F_Country_Code { get; set; }
+ [Ignore]
+ [Key]
+ public string F_Client_Id { get; set; }
+ [Ignore]
+ [Key]
+ public string F_Year { get; set; }
+ [Ignore]
+ [Key]
+ public string F_Sample_Set_Id { get; set; }
+ [Ignore]
+ [Key]
+ public string F_Sample_Set_Index { get; set; }
+ [Ignore]
+ [Key]
+ public string A_Sample_ID { get; set; }
+
+ [NotMapped]
+ [Index(0)]
+ public int Number { get; set; }
+ [Index(1)]
+ public string A_Client_Sample_ID { get; set; }
+ [Index(2)]
+ public string A_Sample_Type { get; set; }
+ [Index(3)]
+ public string A_Sample_Subtype { get; set; }
+ [Index(4)]
+ public string A_Latitude { get; set; }
+ [Index(5)]
+ public string A_Longitude { get; set; }
+ [Index(6)]
+ public string A_Collection_Place { get; set; }
+ [Index(7)]
+ public string A_Determined_Elements { get; set; }
+ [Index(8)]
+ public string A_Halogens_Plan { get; set; }
+ [Index(9)]
+ public string A_Heavy_Metals_Plan { get; set; }
+ [Index(10)]
+ public bool A_Short_Lived_Plan { get; set; }
+ [Index(11)]
+ public bool A_Long_Lived_Plan { get; set; }
+ [Index(12)]
+ public bool A_F_Plan { get; set; }
+ [Index(13)]
+ public bool A_Na_Plan { get; set; }
+ [Index(14)]
+ public bool A_Mg_Plan { get; set; }
+ [Index(15)]
+ public bool A_Al_Plan { get; set; }
+ [Index(16)]
+ public bool A_Si_Plan { get; set; }
+ [Index(17)]
+ public bool A_S_Plan { get; set; }
+ [Index(18)]
+ public bool A_Cl_Plan { get; set; }
+ [Index(19)]
+ public bool A_K_Plan { get; set; }
+ [Index(20)]
+ public bool A_Ca_Plan { get; set; }
+ [Index(21)]
+ public bool A_Sc_Plan { get; set; }
+ [Index(22)]
+ public bool A_Ti_Plan { get; set; }
+ [Index(23)]
+ public bool A_V_Plan { get; set; }
+ [Index(24)]
+ public bool A_Cr_Plan { get; set; }
+ [Index(25)]
+ public bool A_Mn_Plan { get; set; }
+ [Index(26)]
+ public bool A_Fe_Plan { get; set; }
+ [Index(27)]
+ public bool A_Co_Plan { get; set; }
+ [Index(28)]
+ public bool A_Ni_Plan { get; set; }
+ [Index(29)]
+ public bool A_Cu_Plan { get; set; }
+ [Index(30)]
+ public bool A_Zn_Plan { get; set; }
+ [Index(31)]
+ public bool A_Ga_Plan { get; set; }
+ [Index(32)]
+ public bool A_Ge_Plan { get; set; }
+ [Index(33)]
+ public bool A_As_Plan { get; set; }
+ [Index(34)]
+ public bool A_Se_Plan { get; set; }
+ [Index(35)]
+ public bool A_Br_Plan { get; set; }
+ [Index(36)]
+ public bool A_Rb_Plan { get; set; }
+ [Index(37)]
+ public bool A_Sr_Plan { get; set; }
+ [Index(38)]
+ public bool A_Y_Plan { get; set; }
+ [Index(39)]
+ public bool A_Zr_Plan { get; set; }
+ [Index(40)]
+ public bool A_Nb_Plan { get; set; }
+ [Index(41)]
+ public bool A_Mo_Plan { get; set; }
+ [Index(42)]
+ public bool A_Ru_Plan { get; set; }
+ [Index(43)]
+ public bool A_Pd_Plan { get; set; }
+ [Index(44)]
+ public bool A_Ag_Plan { get; set; }
+ [Index(45)]
+ public bool A_Cd_Plan { get; set; }
+ [Index(46)]
+ public bool A_In_Plan { get; set; }
+ [Index(47)]
+ public bool A_Sn_Plan { get; set; }
+ [Index(48)]
+ public bool A_Sb_Plan { get; set; }
+ [Index(49)]
+ public bool A_I_Plan { get; set; }
+ [Index(50)]
+ public bool A_Cs_Plan { get; set; }
+ [Index(51)]
+ public bool A_Ba_Plan { get; set; }
+ [Index(52)]
+ public bool A_La_Plan { get; set; }
+ [Index(53)]
+ public bool A_Ce_Plan { get; set; }
+ [Index(54)]
+ public bool A_Pr_Plan { get; set; }
+ [Index(55)]
+ public bool A_Nd_Plan { get; set; }
+ [Index(56)]
+ public bool A_Sm_Plan { get; set; }
+ [Index(57)]
+ public bool A_Eu_Plan { get; set; }
+ [Index(58)]
+ public bool A_Gd_Plan { get; set; }
+ [Index(59)]
+ public bool A_Tb_Plan { get; set; }
+ [Index(60)]
+ public bool A_Dy_Plan { get; set; }
+ [Index(61)]
+ public bool A_Ho_Plan { get; set; }
+ [Index(62)]
+ public bool A_Er_Plan { get; set; }
+ [Index(63)]
+ public bool A_Tm_Plan { get; set; }
+ [Index(64)]
+ public bool A_Yb_Plan { get; set; }
+ [Index(65)]
+ public bool A_Lu_Plan { get; set; }
+ [Index(66)]
+ public bool A_Hf_Plan { get; set; }
+ [Index(67)]
+ public bool A_Ta_Plan { get; set; }
+ [Index(68)]
+ public bool A_W_Plan { get; set; }
+ [Index(69)]
+ public bool A_Re_Plan { get; set; }
+ [Index(70)]
+ public bool A_Os_Plan { get; set; }
+ [Index(71)]
+ public bool A_Ir_Plan { get; set; }
+ [Index(72)]
+ public bool A_Pt_Plan { get; set; }
+ [Index(73)]
+ public bool A_Au_Plan { get; set; }
+ [Index(74)]
+ public bool A_Hg_Plan { get; set; }
+ [Index(75)]
+ public bool A_Th_Plan { get; set; }
+ [Index(76)]
+ public bool A_U_Plan { get; set; }
+ [Index(77)]
+ public string A_Notes { get; set; }
+ }
+}
diff --git a/Forms/Form_ElsSum.vb b/Forms/Form_ElsSum.vb
index ee9fb76..ccccdcb 100755
--- a/Forms/Form_ElsSum.vb
+++ b/Forms/Form_ElsSum.vb
@@ -177,44 +177,48 @@ Public Class Form_ElsSum
End Sub
Function FormFinalFilesDict(ByVal type As String, ByRef gYear As String) As Dictionary(Of String, String)
- Debug.WriteLine("Started to form final files array:")
- LabelStatus.Text = "Формирование имен загружаемых файлов..."
- Dim finArr = New Dictionary(Of String, String)
- Dim finSrmsArr = New Dictionary(Of String, String)
- Dim typeFtp As New Dictionary(Of String, String)
- Dim dtStrCont As String = ""
- Dim dt As New DateTime()
- typeFtp.Add("КЖИ", "kji")
- typeFtp.Add("ДЖИ-1", "dji-1")
- typeFtp.Add("ДЖИ-2", "dji-2")
- Dim setKey As String = $"{LablelElSumCountryCode.Text}-{LabelElSumClientId.Text}-{LabelElSumYear.Text}-{LabelElSumSetId.Text}-{LabelElSumSetIndex.Text}"
-
- For Each row As DataGridViewRow In DataGridViewElsSum.Rows
- Dim cellFile As DataGridViewCell = row.Cells($"Файлы спектров {type}")
- If String.IsNullOrEmpty(cellFile.Value.ToString) Then Continue For
- Dim cellDate As DataGridViewCell = row.Cells($"{typeFtp(type)}-Date")
- Dim loadNumCell As DataGridViewCell = row.Cells($"loadNumber")
- If String.IsNullOrEmpty(cellDate.Value.ToString) Then Continue For
- dt = Convert.ToDateTime(cellDate.Value)
- If (Not dtStrCont.Contains($"{dt.ToShortDateString}-{row.Cells("Container_Number").Value}")) Then dtStrCont += $"'{dt.ToShortDateString}-{row.Cells("Container_Number").Value}',"
+ Try
+ Debug.WriteLine("Started to form final files array:")
+ LabelStatus.Text = "Формирование имен загружаемых файлов..."
+ Dim finArr = New Dictionary(Of String, String)
+ Dim finSrmsArr = New Dictionary(Of String, String)
+ Dim typeFtp As New Dictionary(Of String, String)
+ Dim dtStrCont As String = ""
+ Dim dt As New DateTime()
+ typeFtp.Add("КЖИ", "kji")
+ typeFtp.Add("ДЖИ-1", "dji-1")
+ typeFtp.Add("ДЖИ-2", "dji-2")
+ Dim setKey As String = $"{LablelElSumCountryCode.Text}-{LabelElSumClientId.Text}-{LabelElSumYear.Text}-{LabelElSumSetId.Text}-{LabelElSumSetIndex.Text}"
+
+ For Each row As DataGridViewRow In DataGridViewElsSum.Rows
+ Dim cellFile As DataGridViewCell = row.Cells($"Файлы спектров {type}")
+ If String.IsNullOrEmpty(cellFile.Value.ToString) Then Continue For
+ Dim cellDate As DataGridViewCell = row.Cells($"{typeFtp(type)}-Date")
+ Dim loadNumCell As DataGridViewCell = row.Cells($"loadNumber")
+ If String.IsNullOrEmpty(cellDate.Value.ToString) Then Continue For
+ dt = Convert.ToDateTime(cellDate.Value)
+ If (Not dtStrCont.Contains($"{dt.ToShortDateString}-{row.Cells("Container_Number").Value}")) Then dtStrCont += $"'{dt.ToShortDateString}-{row.Cells("Container_Number").Value}',"
+
+ If type.Contains("ДЖИ") Then
+ Debug.WriteLine($"{setKey}\{loadNumCell.Value}\{typeFtp(type)}\c-{row.Cells("Container_Number").Value}\samples\{row.Cells($"Файлы спектров {type}").Value}.cnf")
+ finArr.Add(row.Cells($"Файлы спектров {type}").Value, $"{setKey}\{loadNumCell.Value}\{typeFtp(type)}\c-{row.Cells("Container_Number").Value}\samples\{row.Cells($"Файлы спектров {type}").Value}.cnf")
+ Else
+ Debug.WriteLine($"{setKey}\{typeFtp(type)}\samples\{row.Cells($"Файлы спектров {type}").Value}.cnf")
+ finArr.Add(row.Cells($"Файлы спектров {type}").Value, $"{setKey}\{typeFtp(type)}\samples\{row.Cells($"Файлы спектров {type}").Value}.cnf")
+ GetRelatedSLISRMs(finSrmsArr, setKey, dt)
+ End If
+ Next
If type.Contains("ДЖИ") Then
- Debug.WriteLine($"{setKey}\{loadNumCell.Value}\{typeFtp(type)}\c-{row.Cells("Container_Number").Value}\samples\{row.Cells($"Файлы спектров {type}").Value}.cnf")
- finArr.Add(row.Cells($"Файлы спектров {type}").Value, $"{setKey}\{loadNumCell.Value}\{typeFtp(type)}\c-{row.Cells("Container_Number").Value}\samples\{row.Cells($"Файлы спектров {type}").Value}.cnf")
- Else
- Debug.WriteLine($"{setKey}\{typeFtp(type)}\samples\{row.Cells($"Файлы спектров {type}").Value}.cnf")
- finArr.Add(row.Cells($"Файлы спектров {type}").Value, $"{setKey}\{typeFtp(type)}\samples\{row.Cells($"Файлы спектров {type}").Value}.cnf")
- GetRelatedSLISRMs(finSrmsArr, setKey, dt)
+ GetRelatedLLISRMs(finSrmsArr, setKey, typeFtp(type), dtStrCont.Substring(0, dtStrCont.Length - 1))
End If
- Next
-
- If type.Contains("ДЖИ") Then
- GetRelatedLLISRMs(finSrmsArr, setKey, typeFtp(type), dtStrCont.Substring(0, dtStrCont.Length - 1))
- End If
- gYear = Convert.ToDateTime(DataGridViewElsSum.Rows(0).Cells($"{typeFtp(type)}-Date").Value).Year.ToString()
- Debug.WriteLine($"Guessed year: {gYear}")
- Return finArr.Union(finSrmsArr).ToDictionary(Function(p) p.Key, Function(p) p.Value)
+ gYear = Convert.ToDateTime(DataGridViewElsSum.Rows(0).Cells($"{typeFtp(type)}-Date").Value).Year.ToString()
+ Debug.WriteLine($"Guessed year: {gYear}")
+ Return finArr.Union(finSrmsArr).ToDictionary(Function(p) p.Key, Function(p) p.Value)
+ Catch ex As Exception
+ Return New Dictionary(Of String, String)
+ End Try
End Function
Function FindFiles(ByRef names As Dictionary(Of String, String).KeyCollection, ByVal gYear As String) As Dictionary(Of String, String)
diff --git a/Forms/Form_Sample_Accept.Designer.vb b/Forms/Form_Sample_Accept.Designer.vb
index 34a85b1..a156a5a 100755
--- a/Forms/Form_Sample_Accept.Designer.vb
+++ b/Forms/Form_Sample_Accept.Designer.vb
@@ -410,6 +410,7 @@ Partial Class Form_Sample_Accept
'OpenFileDialog_Fill_In_From_File
'
Me.OpenFileDialog_Fill_In_From_File.Filter = "Samples info files (*.nas)|*.nas|All files (*.*)|*.*"
+ Me.OpenFileDialog_Fill_In_From_File.RestoreDirectory = True
'
'ComboBox_Sample_Subtype
'
diff --git a/Forms/Form_Sample_Accept.resx b/Forms/Form_Sample_Accept.resx
index 4827145..ad54f8e 100755
--- a/Forms/Form_Sample_Accept.resx
+++ b/Forms/Form_Sample_Accept.resx
@@ -120,12 +120,6 @@
617, 24
-
- 617, 24
-
-
- 17, 17
-
17, 17
diff --git a/Forms/Form_Sample_Accept.vb b/Forms/Form_Sample_Accept.vb
index 9206e41..49f935a 100755
--- a/Forms/Form_Sample_Accept.vb
+++ b/Forms/Form_Sample_Accept.vb
@@ -180,26 +180,34 @@ Public Class Form_Sample_Accept
sqlConnection1.Open()
reader = cmd.ExecuteReader()
While reader.Read()
- TextBox_Client_Sample_ID.Text = reader(0)
- ComboBox_Sample_Type.Text = reader(1)
+ TextBox_Client_Sample_ID.Text = reader(0).ToString
+ ComboBox_Sample_Type.Text = reader(1).ToString
ComboBox_Sample_Type_SelectionChangeCommitted(sender, e)
- ComboBox_Sample_Subtype.Text = reader(2)
- TextBox_Collection_Place.Text = reader(3)
- MaskedTextBox_Latitude.Text = reader(4)
- MaskedTextBox_Longitude.Text = reader(5)
+ ComboBox_Sample_Subtype.Text = reader(2).ToString
+ TextBox_Collection_Place.Text = reader(3).ToString
+ MaskedTextBox_Latitude.Text = reader(4).ToString
+ MaskedTextBox_Longitude.Text = reader(5).ToString
For i = 0 To CheckedListBox_Sample_Preparation.Items.Count - 1
- If reader(6 + i) = True Then
- CheckedListBox_Sample_Preparation.SetItemChecked(i, True)
+ If Not IsDBNull(reader(6 + i)) Then
+ If reader(6 + i) = True Then
+ CheckedListBox_Sample_Preparation.SetItemChecked(i, True)
+ Else
+ CheckedListBox_Sample_Preparation.SetItemChecked(i, False)
+ End If
Else
CheckedListBox_Sample_Preparation.SetItemChecked(i, False)
End If
Next
- ComboBox_Determined_Elements.Text = reader(13)
+ ComboBox_Determined_Elements.Text = reader(13).ToString()
For i = 0 To CheckedListBox_Group_Of_Elements.Items.Count - 1
- If reader(14 + i) = True Then
- CheckedListBox_Group_Of_Elements.SetItemChecked(i, True)
- Else
+ If IsDBNull(reader(14 + i)) Then
CheckedListBox_Group_Of_Elements.SetItemChecked(i, False)
+ Else
+ If reader(14 + i) = True Then
+ CheckedListBox_Group_Of_Elements.SetItemChecked(i, True)
+ Else
+ CheckedListBox_Group_Of_Elements.SetItemChecked(i, False)
+ End If
End If
Next
For i = 0 To CheckedListBox_Separate_Elements.Items.Count - 1
@@ -213,10 +221,10 @@ Public Class Form_Sample_Accept
End If
End If
Next
- ComboBox_Cupboard_Number.Text = reader(83)
- ComboBox_Box_Number.Text = reader(84)
- ComboBox_Table_ReceivedBy.Text = reader(85)
- TextBox_New_Sample_Accept_Notes.Text = reader(86)
+ ComboBox_Cupboard_Number.Text = reader(83).ToString()
+ ComboBox_Box_Number.Text = reader(84).ToString()
+ ComboBox_Table_ReceivedBy.Text = reader(85).ToString()
+ TextBox_New_Sample_Accept_Notes.Text = reader(86).ToString()
End While
sqlConnection1.Close()
@@ -348,7 +356,7 @@ Public Class Form_Sample_Accept
End If
Catch ex As Exception
If Form_Main.language = "Русский" Then
- MsgBox("Операция была отменена (ошибка в Form_NewSampleAccept_Load)!", MsgBoxStyle.Critical, Me.Text)
+ MsgBox($"Операция была отменена (ошибка в Form_NewSampleAccept_Load)!{vbCrLf}{ex.ToString}", MsgBoxStyle.Critical, Me.Text)
ElseIf Form_Main.language = "English" Then
MsgBox("The operation was cancelled (error in Form_NewSampleAccept_Load)!", MsgBoxStyle.Critical, Me.Text)
End If
diff --git a/Forms/Form_Samples_List.vb b/Forms/Form_Samples_List.vb
index c203497..1df0495 100755
--- a/Forms/Form_Samples_List.vb
+++ b/Forms/Form_Samples_List.vb
@@ -307,14 +307,7 @@ Public Class Form_Samples_List
Private Sub B_Insert_All_Samples_Into_Sample_Set_Click(sender As System.Object, e As System.EventArgs) Handles B_Insert_All_Samples_Into_Sample_Set.Click
Try
- Dim sqlConnection1 As New SqlConnection(Form_Main.MyConnectionString)
- 'Dim reader As SqlDataReader
- 'Dim cmd As New System.Data.SqlClient.SqlCommand
- 'cmd.CommandType = System.Data.CommandType.Text
- Dim array_length_NAS As Integer
- Dim Samples_Info(,) As String
- 'Dim Samples_Weights(,) As Single
- Dim row_count As Integer
+
With MaskedTextBox_New_Sample_ID
If .Text.Trim = "" Or .Text.Trim = "0" Or .Text.Trim = "00" Then
If Form_Main.language = "Русский" Then
@@ -326,17 +319,6 @@ Public Class Form_Samples_List
End If
End With
- With MaskedTextBox_New_Sample_ID
- If .Text.Trim <> "01" Then
- If Form_Main.language = "Русский" Then
- MsgBox("Партия образцов должна быть пустой!", MsgBoxStyle.Exclamation, Me.Text)
- ElseIf Form_Main.language = "English" Then
- MsgBox("Sample set must be empty!", MsgBoxStyle.Exclamation, Me.Text)
- End If
- Exit Sub
- End If
- End With
-
If ListBox_Sample_ID.Items.Count <> 0 Then
If Form_Main.language = "Русский" Then
MsgBox("Партия образцов должна быть пустой!", MsgBoxStyle.Exclamation, Me.Text)
@@ -346,8 +328,6 @@ Public Class Form_Samples_List
Exit Sub
End If
- sample_action = "new sample"
-
If Form_Sample_Accept.OpenFileDialog_Fill_In_From_File.ShowDialog = System.Windows.Forms.DialogResult.Cancel Then
If Form_Main.language = "Русский" Then
MsgBox("Выберите партию образцов!", MsgBoxStyle.Exclamation, Me.Text)
@@ -356,198 +336,11 @@ Public Class Form_Samples_List
End If
Exit Sub
Else
- ' определяем количество строк в файле с инфой об образцах
- array_length_NAS = 0
- Using MyReader As New FileIO.TextFieldParser(Form_Sample_Accept.OpenFileDialog_Fill_In_From_File.FileName, System.Text.Encoding.Default)
- MyReader.TextFieldType = FileIO.FieldType.Delimited
- MyReader.SetDelimiters(vbTab)
- Dim currentRow As String
- While Not MyReader.EndOfData
- currentRow = MyReader.ReadLine
- currentRow = currentRow.Trim 'удаляем пробелы в начале и конце строки, если они есть
- While InStr(currentRow, " ") > 0
- currentRow = Replace(currentRow, " ", " ")
- End While
- If (currentRow = "0") Or (currentRow = "1") Then
- currentRow = MyReader.ReadLine
- currentRow = currentRow.Trim 'удаляем пробелы в начале и конце строки, если они есть
- While InStr(currentRow, " ") > 0
- currentRow = Replace(currentRow, " ", " ")
- End While
- If currentRow = "№ Sample ID Sample type Sample subtype Latitude Longitude Collection place Determined elements Halogens Heavy metals Short-lived Long-lived F Na Mg Al Si S Cl K Ca Sc Ti V Cr Mn Fe Co Ni Cu Zn Ga Ge As Se Br Rb Sr Y Zr Nb Mo Ru Pd Ag Cd In Sn Sb I Cs Ba La Ce Pr Nd Sm Eu Gd Tb Dy Ho Er Tm Yb Lu Hf Ta W Re Os Ir Pt Au Hg Th U Notes" Or currentRow = "№ Номер образца Тип образца Подтип образца Широта Долгота Место сбора Определяемые элементы Галогены Тяжёлые металлы Короткоживущие Долгоживущие F Na Mg Al Si S Cl K Ca Sc Ti V Cr Mn Fe Co Ni Cu Zn Ga Ge As Se Br Rb Sr Y Zr Nb Mo Ru Pd Ag Cd In Sn Sb I Cs Ba La Ce Pr Nd Sm Eu Gd Tb Dy Ho Er Tm Yb Lu Hf Ta W Re Os Ir Pt Au Hg Th U Примечания" Then
- 'currentRow = MyReader.ReadLine
- 'currentRow = currentRow.Trim 'удаляем пробелы в начале и конце строки, если они есть
- 'While InStr(currentRow, "--") > 0
- ' currentRow = Replace(currentRow, "--", "-")
- 'End While
- 'If currentRow = "-" Then
- 'MessageBox.Show("Похоже, правильный формат файла активностей исследуемого образца!")
- currentRow = MyReader.ReadLine
-a: array_length_NAS = array_length_NAS + 1
- currentRow = MyReader.ReadLine
- If currentRow <> "" Then GoTo a
- 'End If
- End If
- End If
- End While
- End Using
-
- ReDim Samples_Info(array_length_NAS, 78)
- 'ReDim Samples_Weights(array_length_VES, 2)
-
- Dim File_Name As String
- File_Name = Form_Sample_Accept.OpenFileDialog_Fill_In_From_File.FileName
-
- Using MyReader As New FileIO.TextFieldParser(Form_Sample_Accept.OpenFileDialog_Fill_In_From_File.FileName, System.Text.Encoding.Default)
- MyReader.TextFieldType = FileIO.FieldType.Delimited
- MyReader.SetDelimiters(vbTab)
- Dim currentRow As String
- While Not MyReader.EndOfData
- currentRow = MyReader.ReadLine
- currentRow = currentRow.Trim 'удаляем пробелы в начале и конце строки, если они есть
- While InStr(currentRow, " ") > 0
- currentRow = Replace(currentRow, " ", " ")
- End While
- If (currentRow = "0") Or (currentRow = "1") Then
- currentRow = MyReader.ReadLine
- currentRow = currentRow.Trim 'удаляем пробелы в начале и конце строки, если они есть
- While InStr(currentRow, " ") > 0
- currentRow = Replace(currentRow, " ", " ")
- End While
- If currentRow = "№ Sample ID Sample type Sample subtype Latitude Longitude Collection place Determined elements Halogens Heavy metals Short-lived Long-lived F Na Mg Al Si S Cl K Ca Sc Ti V Cr Mn Fe Co Ni Cu Zn Ga Ge As Se Br Rb Sr Y Zr Nb Mo Ru Pd Ag Cd In Sn Sb I Cs Ba La Ce Pr Nd Sm Eu Gd Tb Dy Ho Er Tm Yb Lu Hf Ta W Re Os Ir Pt Au Hg Th U Notes" Or currentRow = "№ Номер образца Тип образца Подтип образца Широта Долгота Место сбора Определяемые элементы Галогены Тяжёлые металлы Короткоживущие Долгоживущие F Na Mg Al Si S Cl K Ca Sc Ti V Cr Mn Fe Co Ni Cu Zn Ga Ge As Se Br Rb Sr Y Zr Nb Mo Ru Pd Ag Cd In Sn Sb I Cs Ba La Ce Pr Nd Sm Eu Gd Tb Dy Ho Er Tm Yb Lu Hf Ta W Re Os Ir Pt Au Hg Th U Примечания" Then
-
- ' currentRow = MyReader.ReadLine
- ' currentRow = currentRow.Trim 'удаляем пробелы в начале и конце строки, если они есть
- ' While InStr(currentRow, "--") > 0
- ' currentRow = Replace(currentRow, "--", "-")
- ' End While
- ' If currentRow = "-" Then
- ' 'MessageBox.Show("Похоже, правильный формат файла активностей исследуемого образца!")
-
- row_count = 0
- currentRow = MyReader.ReadLine
-b: currentRow = currentRow.Trim 'удаляем пробелы в начале и конце строки, если они есть
- 'While InStr(currentRow, vbTab + vbTab) > 0
- ' currentRow = Replace(currentRow, vbTab + vbTab, vbTab) ' заменяем все двойные пробелы одинарными
- 'End While
- If currentRow(currentRow.Count - 1) <> vbTab Then currentRow = currentRow + vbTab 'добавляем пробел в конец строки
- Dim i As Integer
- i = 0
-c: Samples_Info(row_count, i) = Mid(currentRow, 1, InStr(1, currentRow, vbTab) - 1) ' первое слово до пробела
- currentRow = Replace(currentRow, Samples_Info(row_count, i) + vbTab, "", , 1, )
- i = i + 1
- If currentRow <> "" Then GoTo c
- 'Samples_Info(row_count, 1) = Mid(currentRow, 1, InStr(1, currentRow, vbTab) - 1) 'имя образца - первое слово до пробела
- 'currentRow = Replace(currentRow, Samples_Info(row_count, 1) + vbTab, "", , 1, )
- ' Samples_Weights(row_count, 0) = CDbl(Replace(Mid(currentRow, 1, InStr(1, currentRow, " ") - 1), ".", ","))
- ' currentRow = Replace(currentRow, Mid(currentRow, 1, InStr(1, currentRow, " ") - 1) + " ", "")
- ' Samples_Weights(row_count, 1) = CDbl(Replace(Mid(currentRow, 1, InStr(1, currentRow, " ") - 1), ".", ","))
-
- row_count = row_count + 1
- currentRow = MyReader.ReadLine
- If currentRow <> "" Then GoTo b
-
- 'End If
- 'MsgBox(Samples_Info(row_count - 1, 71))
- End If
- End If
- End While
- End Using
-
- ' цикл по количеству строк в файле с инфой об образцах
- For i2 = 0 To array_length_NAS - 1
-
- Form_Sample_Accept.OpenFileDialog_Fill_In_From_File.FileName = File_Name
-
- MaskedTextBox_New_Sample_ID.Text = i2 + 1
-
- If MaskedTextBox_New_Sample_ID.Text < 10 Then MaskedTextBox_New_Sample_ID.Text = "0" + MaskedTextBox_New_Sample_ID.Text.Trim("0")
-
- Form_Sample_Accept.L_SS_Country_Code.Text = L_SS_Country_Code.Text
- Form_Sample_Accept.L_SS_Client_ID.Text = L_SS_Client_ID.Text
- Form_Sample_Accept.L_SS_Year.Text = L_SS_Year.Text
- Form_Sample_Accept.L_SS_Sample_Set_ID.Text = L_SS_Sample_Set_ID.Text
- Form_Sample_Accept.L_SS_Sample_Set_Index.Text = L_SS_Sample_Set_Index.Text
-
- Form_Sample_Accept.L_Sample_ID.Text = MaskedTextBox_New_Sample_ID.Text.Trim
-
- Form_Sample_Accept.TextBox_Client_Sample_ID.Text = Samples_Info(i2, 1)
-
- Form_Sample_Accept.ComboBox_Sample_Subtype.Visible = False
- Form_Sample_Accept.L_Name_Sample_Subtype.Visible = False
-
- For i = 0 To array_length_NAS - 1
- If Samples_Info(i, 2) = "почвы" Then Samples_Info(i, 2) = "soils"
- If Samples_Info(i, 2) = "донные отложения" Then Samples_Info(i, 2) = "sediments"
- If Samples_Info(i, 2) = "горные породы" Then Samples_Info(i, 2) = "rocks"
- If Samples_Info(i, 2) = "продукты" Then Samples_Info(i, 2) = "foodstuffs"
- If Samples_Info(i, 2) = "растительность" Then Samples_Info(i, 2) = "vegetation"
- If Samples_Info(i, 2) = "биосубстраты" Then Samples_Info(i, 2) = "biomedical materials"
- If Samples_Info(i, 2) = "технологический" Then Samples_Info(i, 2) = "technological"
- If Samples_Info(i, 2) = "фильтры" Then Samples_Info(i, 2) = "filters"
- If Samples_Info(i, 2) = "жидкий" Then Samples_Info(i, 2) = "luquids"
- If Samples_Info(i, 2) = "другие" Then Samples_Info(i, 2) = "others"
-
- If Samples_Info(i, 3) = "мох" Then Samples_Info(i, 3) = "moss"
- If Samples_Info(i, 3) = "листья" Then Samples_Info(i, 3) = "leaves"
- If Samples_Info(i, 3) = "кора" Then Samples_Info(i, 3) = "tree-bark"
- If Samples_Info(i, 3) = "лишайники" Then Samples_Info(i, 3) = "lichens"
- If Samples_Info(i, 3) = "другая растительность" Then Samples_Info(i, 3) = "others vegetation"
-
- If Samples_Info(i, 3) = "волосы" Then Samples_Info(i, 3) = "hairs"
- If Samples_Info(i, 3) = "ногти" Then Samples_Info(i, 3) = "nails"
- If Samples_Info(i, 3) = "кровь" Then Samples_Info(i, 3) = "blood"
- If Samples_Info(i, 3) = "моча" Then Samples_Info(i, 3) = "urine"
- If Samples_Info(i, 3) = "ткани" Then Samples_Info(i, 3) = "tissues"
- If Samples_Info(i, 3) = "зубы" Then Samples_Info(i, 3) = "teeth"
- If Samples_Info(i, 3) = "другие биосубстраты" Then Samples_Info(i, 3) = "others biomedical materials"
-
- If Samples_Info(i, 7) = "группа элементов" Then Samples_Info(i, 7) = "group of elements"
- If Samples_Info(i, 7) = "отдельные элементы" Then Samples_Info(i, 7) = "separate elements"
- If Samples_Info(i, 7) = "все элементы" Then Samples_Info(i, 7) = "all elements"
- Next
-
- For i = 0 To array_length_NAS - 1
- If Form_Sample_Accept.TextBox_Client_Sample_ID.Text = Samples_Info(i, 1) Then
- For i1 = 0 To Form_Sample_Accept.ComboBox_Sample_Type.Items.Count - 1
- If Form_Sample_Accept.ComboBox_Sample_Type.Items(i1) = Samples_Info(i, 2) Then
- Form_Sample_Accept.ComboBox_Sample_Type.SelectedItem = Form_Sample_Accept.ComboBox_Sample_Type.Items(i1)
- Form_Sample_Accept.ComboBox_Sample_Type_SelectionChangeCommitted(sender, e)
- End If
- Next
- If Form_Sample_Accept.ComboBox_Sample_Subtype.Visible = True Then
- For i1 = 0 To Form_Sample_Accept.ComboBox_Sample_Subtype.Items.Count - 1
- If Form_Sample_Accept.ComboBox_Sample_Subtype.Items(i1) = Samples_Info(i, 3) Then
- Form_Sample_Accept.ComboBox_Sample_Subtype.SelectedItem = Form_Sample_Accept.ComboBox_Sample_Subtype.Items(i1)
- End If
- Next
- End If
- Form_Sample_Accept.MaskedTextBox_Latitude.Text = Samples_Info(i, 4)
- Form_Sample_Accept.MaskedTextBox_Longitude.Text = Samples_Info(i, 5)
- Form_Sample_Accept.TextBox_Collection_Place.Text = Samples_Info(i, 6)
- For i1 = 0 To Form_Sample_Accept.ComboBox_Determined_Elements.Items.Count - 1
- If Form_Sample_Accept.ComboBox_Determined_Elements.Items(i1) = Samples_Info(i, 7) Then
- Form_Sample_Accept.ComboBox_Determined_Elements.SelectedItem = Form_Sample_Accept.ComboBox_Determined_Elements.Items(i1)
- Form_Sample_Accept.ComboBox_Determined_Elements_SelectionChangeCommitted(sender, e)
- End If
- Next
- For j = 0 To Form_Sample_Accept.CheckedListBox_Group_Of_Elements.Items.Count - 1
- If Samples_Info(i, j + 8) = "1" Then Form_Sample_Accept.CheckedListBox_Group_Of_Elements.SetItemChecked(j, True)
- If Samples_Info(i, j + 8) = "0" Then Form_Sample_Accept.CheckedListBox_Group_Of_Elements.SetItemChecked(j, False)
- Next
- For j = 0 To Form_Sample_Accept.CheckedListBox_Separate_Elements.Items.Count - 1
- If Samples_Info(i, j + 12) = "1" Then Form_Sample_Accept.CheckedListBox_Separate_Elements.SetItemChecked(j, True)
- If Samples_Info(i, j + 12) = "0" Then Form_Sample_Accept.CheckedListBox_Separate_Elements.SetItemChecked(j, False)
- Next
- Form_Sample_Accept.TextBox_New_Sample_Accept_Notes.Text = Samples_Info(i, 77)
- End If
- Next
- 'Form_Sample_Accept.B_Fill_In_From_File_Click(sender, e)
-
- Form_Sample_Accept.Button_Save_Sample_Click(sender, e)
- Next
+ Extensions.CSV.CSVAdapter.LoadFileToDb(Form_Sample_Accept.OpenFileDialog_Fill_In_From_File.FileName, Form_Main.MyConnectionString, L_SS_Country_Code.Text, L_SS_Client_ID.Text, L_SS_Year.Text, L_SS_Sample_Set_ID.Text, L_SS_Sample_Set_Index.Text)
End If
+ Close()
+ Form_Main.B_Select_Sample_Set.PerformClick()
Catch ex As Exception
If Form_Main.language = "Русский" Then
diff --git a/Forms/NAA_DB_EXPDataSet.Designer.vb b/Forms/NAA_DB_EXPDataSet.Designer.vb
index e4c1141..98f4c7e 100755
--- a/Forms/NAA_DB_EXPDataSet.Designer.vb
+++ b/Forms/NAA_DB_EXPDataSet.Designer.vb
@@ -3073,9 +3073,9 @@ Partial Public Class NAA_DB_EXPDataSet
Private columnSample_Set_Report_Date As Global.System.Data.DataColumn
Private columnReceived_By As Global.System.Data.DataColumn
-
-
+
+ _
Public Sub New()
MyBase.New
Me.TableName = "table_Sample_Set"
@@ -3083,9 +3083,9 @@ Partial Public Class NAA_DB_EXPDataSet
Me.InitClass
Me.EndInit
End Sub
-
-
+
+ _
Friend Sub New(ByVal table As Global.System.Data.DataTable)
MyBase.New
Me.TableName = table.TableName
@@ -3101,145 +3101,145 @@ Partial Public Class NAA_DB_EXPDataSet
Me.Prefix = table.Prefix
Me.MinimumCapacity = table.MinimumCapacity
End Sub
-
-
+
+ _
Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
MyBase.New(info, context)
Me.InitVars
End Sub
-
-
+
+ _
Public ReadOnly Property Country_CodeColumn() As Global.System.Data.DataColumn
Get
Return Me.columnCountry_Code
End Get
End Property
-
-
+
+ _
Public ReadOnly Property Client_IDColumn() As Global.System.Data.DataColumn
Get
Return Me.columnClient_ID
End Get
End Property
-
-
+
+ _
Public ReadOnly Property YearColumn() As Global.System.Data.DataColumn
Get
Return Me.columnYear
End Get
End Property
-
-
+
+ _
Public ReadOnly Property Sample_Set_IDColumn() As Global.System.Data.DataColumn
Get
Return Me.columnSample_Set_ID
End Get
End Property
-
-
+
+ _
Public ReadOnly Property Sample_Set_IndexColumn() As Global.System.Data.DataColumn
Get
Return Me.columnSample_Set_Index
End Get
End Property
-
-
+
+ _
Public ReadOnly Property Sample_Set_Receipt_DateColumn() As Global.System.Data.DataColumn
Get
Return Me.columnSample_Set_Receipt_Date
End Get
End Property
-
-
+
+ _
Public ReadOnly Property Sample_Set_Report_DateColumn() As Global.System.Data.DataColumn
Get
Return Me.columnSample_Set_Report_Date
End Get
End Property
-
-
+
+ _
Public ReadOnly Property Received_ByColumn() As Global.System.Data.DataColumn
Get
Return Me.columnReceived_By
End Get
End Property
-
-
+
+ _
Public ReadOnly Property Count() As Integer
Get
Return Me.Rows.Count
End Get
End Property
-
-
- Default Public ReadOnly Property Item(ByVal index As Integer) As table_Sample_SetRow
+
+ _
+ Public Default ReadOnly Property Item(ByVal index As Integer) As table_Sample_SetRow
Get
- Return CType(Me.Rows(index), table_Sample_SetRow)
+ Return CType(Me.Rows(index),table_Sample_SetRow)
End Get
End Property
-
-
+
+ _
Public Event table_Sample_SetRowChanging As table_Sample_SetRowChangeEventHandler
-
-
+
+ _
Public Event table_Sample_SetRowChanged As table_Sample_SetRowChangeEventHandler
-
-
+
+ _
Public Event table_Sample_SetRowDeleting As table_Sample_SetRowChangeEventHandler
-
-
+
+ _
Public Event table_Sample_SetRowDeleted As table_Sample_SetRowChangeEventHandler
-
-
+
+ _
Public Overloads Sub Addtable_Sample_SetRow(ByVal row As table_Sample_SetRow)
Me.Rows.Add(row)
End Sub
-
-
+
+ _
Public Overloads Function Addtable_Sample_SetRow(ByVal Country_Code As String, ByVal Client_ID As String, ByVal Year As String, ByVal Sample_Set_ID As String, ByVal Sample_Set_Index As String, ByVal Sample_Set_Receipt_Date As Date, ByVal Sample_Set_Report_Date As Date, ByVal Received_By As String) As table_Sample_SetRow
- Dim rowtable_Sample_SetRow As table_Sample_SetRow = CType(Me.NewRow, table_Sample_SetRow)
+ Dim rowtable_Sample_SetRow As table_Sample_SetRow = CType(Me.NewRow,table_Sample_SetRow)
Dim columnValuesArray() As Object = New Object() {Country_Code, Client_ID, Year, Sample_Set_ID, Sample_Set_Index, Sample_Set_Receipt_Date, Sample_Set_Report_Date, Received_By}
rowtable_Sample_SetRow.ItemArray = columnValuesArray
Me.Rows.Add(rowtable_Sample_SetRow)
Return rowtable_Sample_SetRow
End Function
-
-
+
+ _
Public Function FindByCountry_CodeClient_IDYearSample_Set_IDSample_Set_Index(ByVal Country_Code As String, ByVal Client_ID As String, ByVal Year As String, ByVal Sample_Set_ID As String, ByVal Sample_Set_Index As String) As table_Sample_SetRow
- Return CType(Me.Rows.Find(New Object() {Country_Code, Client_ID, Year, Sample_Set_ID, Sample_Set_Index}), table_Sample_SetRow)
+ Return CType(Me.Rows.Find(New Object() {Country_Code, Client_ID, Year, Sample_Set_ID, Sample_Set_Index}),table_Sample_SetRow)
End Function
-
-
+
+ _
Public Overrides Function Clone() As Global.System.Data.DataTable
- Dim cln As table_Sample_SetDataTable = CType(MyBase.Clone, table_Sample_SetDataTable)
+ Dim cln As table_Sample_SetDataTable = CType(MyBase.Clone,table_Sample_SetDataTable)
cln.InitVars
Return cln
End Function
-
-
+
+ _
Protected Overrides Function CreateInstance() As Global.System.Data.DataTable
Return New table_Sample_SetDataTable()
End Function
-
-
+
+ _
Friend Sub InitVars()
Me.columnCountry_Code = MyBase.Columns("Country_Code")
Me.columnClient_ID = MyBase.Columns("Client_ID")
@@ -3250,9 +3250,9 @@ Partial Public Class NAA_DB_EXPDataSet
Me.columnSample_Set_Report_Date = MyBase.Columns("Sample_Set_Report_Date")
Me.columnReceived_By = MyBase.Columns("Received_By")
End Sub
-
-
+
+ _
Private Sub InitClass()
Me.columnCountry_Code = New Global.System.Data.DataColumn("Country_Code", GetType(String), Nothing, Global.System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnCountry_Code)
@@ -3270,84 +3270,82 @@ Partial Public Class NAA_DB_EXPDataSet
MyBase.Columns.Add(Me.columnSample_Set_Report_Date)
Me.columnReceived_By = New Global.System.Data.DataColumn("Received_By", GetType(String), Nothing, Global.System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnReceived_By)
- Me.Constraints.Add(New Global.System.Data.UniqueConstraint("Constraint1", New Global.System.Data.DataColumn() {Me.columnCountry_Code, Me.columnClient_ID, Me.columnYear, Me.columnSample_Set_ID, Me.columnSample_Set_Index}, True))
+ Me.Constraints.Add(New Global.System.Data.UniqueConstraint("Constraint1", New Global.System.Data.DataColumn() {Me.columnCountry_Code, Me.columnClient_ID, Me.columnYear, Me.columnSample_Set_ID, Me.columnSample_Set_Index}, true))
Me.columnCountry_Code.AllowDBNull = False
Me.columnCountry_Code.MaxLength = 2
Me.columnClient_ID.AllowDBNull = False
Me.columnClient_ID.MaxLength = 2
Me.columnYear.AllowDBNull = False
Me.columnYear.MaxLength = 2
-
'Me.columnSample_Set_ID.AllowDBNull = False
'Me.columnSample_Set_ID.MaxLength = 2
-
- Me.columnSample_Set_Index.AllowDBNull = False
+ 'Me.columnSample_Set_Index.AllowDBNull = False
Me.columnSample_Set_Index.MaxLength = 1
Me.columnReceived_By.MaxLength = 25
End Sub
-
-
+
+ _
Public Function Newtable_Sample_SetRow() As table_Sample_SetRow
- Return CType(Me.NewRow, table_Sample_SetRow)
+ Return CType(Me.NewRow,table_Sample_SetRow)
End Function
-
-
+
+ _
Protected Overrides Function NewRowFromBuilder(ByVal builder As Global.System.Data.DataRowBuilder) As Global.System.Data.DataRow
Return New table_Sample_SetRow(builder)
End Function
-
-
+
+ _
Protected Overrides Function GetRowType() As Global.System.Type
Return GetType(table_Sample_SetRow)
End Function
-
-
+
+ _
Protected Overrides Sub OnRowChanged(ByVal e As Global.System.Data.DataRowChangeEventArgs)
MyBase.OnRowChanged(e)
If (Not (Me.table_Sample_SetRowChangedEvent) Is Nothing) Then
- RaiseEvent table_Sample_SetRowChanged(Me, New table_Sample_SetRowChangeEvent(CType(e.Row, table_Sample_SetRow), e.Action))
+ RaiseEvent table_Sample_SetRowChanged(Me, New table_Sample_SetRowChangeEvent(CType(e.Row,table_Sample_SetRow), e.Action))
End If
End Sub
-
-
+
+ _
Protected Overrides Sub OnRowChanging(ByVal e As Global.System.Data.DataRowChangeEventArgs)
MyBase.OnRowChanging(e)
If (Not (Me.table_Sample_SetRowChangingEvent) Is Nothing) Then
- RaiseEvent table_Sample_SetRowChanging(Me, New table_Sample_SetRowChangeEvent(CType(e.Row, table_Sample_SetRow), e.Action))
+ RaiseEvent table_Sample_SetRowChanging(Me, New table_Sample_SetRowChangeEvent(CType(e.Row,table_Sample_SetRow), e.Action))
End If
End Sub
-
-
+
+ _
Protected Overrides Sub OnRowDeleted(ByVal e As Global.System.Data.DataRowChangeEventArgs)
MyBase.OnRowDeleted(e)
If (Not (Me.table_Sample_SetRowDeletedEvent) Is Nothing) Then
- RaiseEvent table_Sample_SetRowDeleted(Me, New table_Sample_SetRowChangeEvent(CType(e.Row, table_Sample_SetRow), e.Action))
+ RaiseEvent table_Sample_SetRowDeleted(Me, New table_Sample_SetRowChangeEvent(CType(e.Row,table_Sample_SetRow), e.Action))
End If
End Sub
-
-
+
+ _
Protected Overrides Sub OnRowDeleting(ByVal e As Global.System.Data.DataRowChangeEventArgs)
MyBase.OnRowDeleting(e)
If (Not (Me.table_Sample_SetRowDeletingEvent) Is Nothing) Then
- RaiseEvent table_Sample_SetRowDeleting(Me, New table_Sample_SetRowChangeEvent(CType(e.Row, table_Sample_SetRow), e.Action))
+ RaiseEvent table_Sample_SetRowDeleting(Me, New table_Sample_SetRowChangeEvent(CType(e.Row,table_Sample_SetRow), e.Action))
End If
End Sub
-
-
+
+ _
Public Sub Removetable_Sample_SetRow(ByVal row As table_Sample_SetRow)
Me.Rows.Remove(row)
End Sub
-
-
+
+ _
Public Shared Function GetTypedTableSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
Dim type As Global.System.Xml.Schema.XmlSchemaComplexType = New Global.System.Xml.Schema.XmlSchemaComplexType()
Dim sequence As Global.System.Xml.Schema.XmlSchemaSequence = New Global.System.Xml.Schema.XmlSchemaSequence()
@@ -3376,28 +3374,28 @@ Partial Public Class NAA_DB_EXPDataSet
If xs.Contains(dsSchema.TargetNamespace) Then
Dim s1 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
Dim s2 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
- Try
+ Try
Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
dsSchema.Write(s1)
Dim schemas As Global.System.Collections.IEnumerator = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator
Do While schemas.MoveNext
- schema = CType(schemas.Current, Global.System.Xml.Schema.XmlSchema)
+ schema = CType(schemas.Current,Global.System.Xml.Schema.XmlSchema)
s2.SetLength(0)
schema.Write(s2)
If (s1.Length = s2.Length) Then
s1.Position = 0
s2.Position = 0
-
- Do While ((s1.Position <> s1.Length) _
+
+ Do While ((s1.Position <> s1.Length) _
AndAlso (s1.ReadByte = s2.ReadByte))
-
-
+
+
Loop
If (s1.Position = s1.Length) Then
Return type
End If
End If
-
+
Loop
Finally
If (Not (s1) Is Nothing) Then
@@ -3412,19 +3410,19 @@ Partial Public Class NAA_DB_EXPDataSet
Return type
End Function
End Class
-
+
'''
'''Represents the strongly named DataTable class.
'''
-
+ _
Partial Public Class table_Sample_TypeDataTable
Inherits Global.System.Data.TypedTableBase(Of table_Sample_TypeRow)
-
+
Private columnSampleType As Global.System.Data.DataColumn
-
-
+
+ _
Public Sub New()
MyBase.New
Me.TableName = "table_Sample_Type"
@@ -3432,9 +3430,9 @@ Partial Public Class NAA_DB_EXPDataSet
Me.InitClass
Me.EndInit
End Sub
-
-
+
+ _
Friend Sub New(ByVal table As Global.System.Data.DataTable)
MyBase.New
Me.TableName = table.TableName
@@ -3450,158 +3448,158 @@ Partial Public Class NAA_DB_EXPDataSet
Me.Prefix = table.Prefix
Me.MinimumCapacity = table.MinimumCapacity
End Sub
-
-
+
+ _
Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
MyBase.New(info, context)
Me.InitVars
End Sub
-
-
+
+ _
Public ReadOnly Property SampleTypeColumn() As Global.System.Data.DataColumn
Get
Return Me.columnSampleType
End Get
End Property
-
-
+
+ _
Public ReadOnly Property Count() As Integer
Get
Return Me.Rows.Count
End Get
End Property
-
-
- Default Public ReadOnly Property Item(ByVal index As Integer) As table_Sample_TypeRow
+
+ _
+ Public Default ReadOnly Property Item(ByVal index As Integer) As table_Sample_TypeRow
Get
- Return CType(Me.Rows(index), table_Sample_TypeRow)
+ Return CType(Me.Rows(index),table_Sample_TypeRow)
End Get
End Property
-
-
+
+ _
Public Event table_Sample_TypeRowChanging As table_Sample_TypeRowChangeEventHandler
-
-
+
+ _
Public Event table_Sample_TypeRowChanged As table_Sample_TypeRowChangeEventHandler
-
-
+
+ _
Public Event table_Sample_TypeRowDeleting As table_Sample_TypeRowChangeEventHandler
-
-
+
+ _
Public Event table_Sample_TypeRowDeleted As table_Sample_TypeRowChangeEventHandler
-
-
+
+ _
Public Overloads Sub Addtable_Sample_TypeRow(ByVal row As table_Sample_TypeRow)
Me.Rows.Add(row)
End Sub
-
-
+
+ _
Public Overloads Function Addtable_Sample_TypeRow(ByVal SampleType As String) As table_Sample_TypeRow
- Dim rowtable_Sample_TypeRow As table_Sample_TypeRow = CType(Me.NewRow, table_Sample_TypeRow)
+ Dim rowtable_Sample_TypeRow As table_Sample_TypeRow = CType(Me.NewRow,table_Sample_TypeRow)
Dim columnValuesArray() As Object = New Object() {SampleType}
rowtable_Sample_TypeRow.ItemArray = columnValuesArray
Me.Rows.Add(rowtable_Sample_TypeRow)
Return rowtable_Sample_TypeRow
End Function
-
-
+
+ _
Public Overrides Function Clone() As Global.System.Data.DataTable
- Dim cln As table_Sample_TypeDataTable = CType(MyBase.Clone, table_Sample_TypeDataTable)
+ Dim cln As table_Sample_TypeDataTable = CType(MyBase.Clone,table_Sample_TypeDataTable)
cln.InitVars
Return cln
End Function
-
-
+
+ _
Protected Overrides Function CreateInstance() As Global.System.Data.DataTable
Return New table_Sample_TypeDataTable()
End Function
-
-
+
+ _
Friend Sub InitVars()
Me.columnSampleType = MyBase.Columns("SampleType")
End Sub
-
-
+
+ _
Private Sub InitClass()
Me.columnSampleType = New Global.System.Data.DataColumn("SampleType", GetType(String), Nothing, Global.System.Data.MappingType.Element)
MyBase.Columns.Add(Me.columnSampleType)
- Me.columnSampleType.AllowDBNull = False
+ Me.columnSampleType.AllowDBNull = false
Me.columnSampleType.MaxLength = 15
End Sub
-
-
+
+ _
Public Function Newtable_Sample_TypeRow() As table_Sample_TypeRow
- Return CType(Me.NewRow, table_Sample_TypeRow)
+ Return CType(Me.NewRow,table_Sample_TypeRow)
End Function
-
-
+
+ _
Protected Overrides Function NewRowFromBuilder(ByVal builder As Global.System.Data.DataRowBuilder) As Global.System.Data.DataRow
Return New table_Sample_TypeRow(builder)
End Function
-
-
+
+ _
Protected Overrides Function GetRowType() As Global.System.Type
Return GetType(table_Sample_TypeRow)
End Function
-
-
+
+ _
Protected Overrides Sub OnRowChanged(ByVal e As Global.System.Data.DataRowChangeEventArgs)
MyBase.OnRowChanged(e)
If (Not (Me.table_Sample_TypeRowChangedEvent) Is Nothing) Then
- RaiseEvent table_Sample_TypeRowChanged(Me, New table_Sample_TypeRowChangeEvent(CType(e.Row, table_Sample_TypeRow), e.Action))
+ RaiseEvent table_Sample_TypeRowChanged(Me, New table_Sample_TypeRowChangeEvent(CType(e.Row,table_Sample_TypeRow), e.Action))
End If
End Sub
-
-
+
+ _
Protected Overrides Sub OnRowChanging(ByVal e As Global.System.Data.DataRowChangeEventArgs)
MyBase.OnRowChanging(e)
If (Not (Me.table_Sample_TypeRowChangingEvent) Is Nothing) Then
- RaiseEvent table_Sample_TypeRowChanging(Me, New table_Sample_TypeRowChangeEvent(CType(e.Row, table_Sample_TypeRow), e.Action))
+ RaiseEvent table_Sample_TypeRowChanging(Me, New table_Sample_TypeRowChangeEvent(CType(e.Row,table_Sample_TypeRow), e.Action))
End If
End Sub
-
-
+
+ _
Protected Overrides Sub OnRowDeleted(ByVal e As Global.System.Data.DataRowChangeEventArgs)
MyBase.OnRowDeleted(e)
If (Not (Me.table_Sample_TypeRowDeletedEvent) Is Nothing) Then
- RaiseEvent table_Sample_TypeRowDeleted(Me, New table_Sample_TypeRowChangeEvent(CType(e.Row, table_Sample_TypeRow), e.Action))
+ RaiseEvent table_Sample_TypeRowDeleted(Me, New table_Sample_TypeRowChangeEvent(CType(e.Row,table_Sample_TypeRow), e.Action))
End If
End Sub
-
-
+
+ _
Protected Overrides Sub OnRowDeleting(ByVal e As Global.System.Data.DataRowChangeEventArgs)
MyBase.OnRowDeleting(e)
If (Not (Me.table_Sample_TypeRowDeletingEvent) Is Nothing) Then
- RaiseEvent table_Sample_TypeRowDeleting(Me, New table_Sample_TypeRowChangeEvent(CType(e.Row, table_Sample_TypeRow), e.Action))
+ RaiseEvent table_Sample_TypeRowDeleting(Me, New table_Sample_TypeRowChangeEvent(CType(e.Row,table_Sample_TypeRow), e.Action))
End If
End Sub
-
-
+
+ _
Public Sub Removetable_Sample_TypeRow(ByVal row As table_Sample_TypeRow)
Me.Rows.Remove(row)
End Sub
-
-
+
+ _
Public Shared Function GetTypedTableSchema(ByVal xs As Global.System.Xml.Schema.XmlSchemaSet) As Global.System.Xml.Schema.XmlSchemaComplexType
Dim type As Global.System.Xml.Schema.XmlSchemaComplexType = New Global.System.Xml.Schema.XmlSchemaComplexType()
Dim sequence As Global.System.Xml.Schema.XmlSchemaSequence = New Global.System.Xml.Schema.XmlSchemaSequence()
@@ -3630,28 +3628,28 @@ Partial Public Class NAA_DB_EXPDataSet
If xs.Contains(dsSchema.TargetNamespace) Then
Dim s1 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
Dim s2 As Global.System.IO.MemoryStream = New Global.System.IO.MemoryStream()
- Try
+ Try
Dim schema As Global.System.Xml.Schema.XmlSchema = Nothing
dsSchema.Write(s1)
Dim schemas As Global.System.Collections.IEnumerator = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator
Do While schemas.MoveNext
- schema = CType(schemas.Current, Global.System.Xml.Schema.XmlSchema)
+ schema = CType(schemas.Current,Global.System.Xml.Schema.XmlSchema)
s2.SetLength(0)
schema.Write(s2)
If (s1.Length = s2.Length) Then
s1.Position = 0
s2.Position = 0
-
- Do While ((s1.Position <> s1.Length) _
+
+ Do While ((s1.Position <> s1.Length) _
AndAlso (s1.ReadByte = s2.ReadByte))
-
-
+
+
Loop
If (s1.Position = s1.Length) Then
Return type
End If
End If
-
+
Loop
Finally
If (Not (s1) Is Nothing) Then
@@ -3666,285 +3664,285 @@ Partial Public Class NAA_DB_EXPDataSet
Return type
End Function
End Class
-
+
'''
'''Represents the strongly named DataTable class.
'''
-
+ _
Partial Public Class table_SampleDataTable
Inherits Global.System.Data.TypedTableBase(Of table_SampleRow)
-
+
Private columnF_Country_Code As Global.System.Data.DataColumn
-
+
Private columnF_Client_ID As Global.System.Data.DataColumn
-
+
Private columnF_Year As Global.System.Data.DataColumn
-
+
Private columnF_Sample_Set_ID As Global.System.Data.DataColumn
-
+
Private columnF_Sample_Set_Index As Global.System.Data.DataColumn
-
+
Private columnA_Sample_ID As Global.System.Data.DataColumn
-
+
Private columnA_Client_Sample_ID As Global.System.Data.DataColumn
-
+
Private columnA_Sample_Type As Global.System.Data.DataColumn
-
+
Private columnA_Sample_Subtype As Global.System.Data.DataColumn
-
+
Private columnA_Collection_Place As Global.System.Data.DataColumn
-
+
Private columnA_Latitude As Global.System.Data.DataColumn
-
+
Private columnA_Longitude As Global.System.Data.DataColumn
-
+
Private columnA_Cleaning_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Drying_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Evaporation_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Freeze_Drying_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Homogenizing_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Pelletization_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Fragmentation_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Determined_Elements As Global.System.Data.DataColumn
-
+
Private columnA_Halogens_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Heavy_Metals_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Short_Lived_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Long_Lived_Plan As Global.System.Data.DataColumn
-
+
Private columnA_F_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Na_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Mg_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Al_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Si_Plan As Global.System.Data.DataColumn
-
+
Private columnA_S_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Cl_Plan As Global.System.Data.DataColumn
-
+
Private columnA_K_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Ca_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Sc_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Ti_Plan As Global.System.Data.DataColumn
-
+
Private columnA_V_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Cr_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Mn_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Fe_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Co_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Cu_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Zn_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Ga_Plan As Global.System.Data.DataColumn
-
+
Private columnA_As_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Se_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Br_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Rb_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Sr_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Y_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Zr_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Nb_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Mo_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Ru_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Ag_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Cd_Plan As Global.System.Data.DataColumn
-
+
Private columnA_In_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Sn_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Sb_Plan As Global.System.Data.DataColumn
-
+
Private columnA_I_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Cs_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Ba_Plan As Global.System.Data.DataColumn
-
+
Private columnA_La_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Ce_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Nd_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Sm_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Eu_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Gd_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Tb_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Dy_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Er_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Tm_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Yb_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Lu_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Hf_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Ta_Plan As Global.System.Data.DataColumn
-
+
Private columnA_W_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Re_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Ir_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Pt_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Au_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Hg_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Th_Plan As Global.System.Data.DataColumn
-
+
Private columnA_U_Plan As Global.System.Data.DataColumn
-
+
Private columnA_Cupboard_Number As Global.System.Data.DataColumn
-
+
Private columnA_Box_Number As Global.System.Data.DataColumn
-
+
Private columnA_Received_By As Global.System.Data.DataColumn
-
+
Private columnA_Notes As Global.System.Data.DataColumn
-
+
Private columnP_Cleaning_Fact As Global.System.Data.DataColumn
-
+
Private columnP_Drying_Fact As Global.System.Data.DataColumn
-
+
Private columnP_Evaporation_Fact As Global.System.Data.DataColumn
-
+
Private columnP_Freeze_Drying_Fact As Global.System.Data.DataColumn
-
+
Private columnP_Homogenizing_Fact As Global.System.Data.DataColumn
-
+
Private columnP_Pelletization_Fact As Global.System.Data.DataColumn
-
+
Private columnP_Fragmentation_Fact As Global.System.Data.DataColumn
-
+
Private columnP_Weighting_SLI As Global.System.Data.DataColumn
-
+
Private columnP_Weighting_LLI As Global.System.Data.DataColumn
-
+
Private columnP_Date_Sample_Preparation As Global.System.Data.DataColumn
-
+
Private columnP_Maked_By As Global.System.Data.DataColumn
-
+
Private columnI_SLI_Time_Start As Global.System.Data.DataColumn
-
+
Private columnI_SLI_Channel_Irradiation As Global.System.Data.DataColumn
-
+
Private columnI_SLI_File_First As Global.System.Data.DataColumn
-
+
Private columnI_SLI_Irradiated_By As Global.System.Data.DataColumn
-
+
Private columnI_LLI_1_Irradiation_Fact As Global.System.Data.DataColumn
-
+
Private columnI_LLI_1_Date_Start As Global.System.Data.DataColumn
-
+
Private columnI_LLI_1_Time_Start As Global.System.Data.DataColumn
-
+
Private columnI_LLI_1_Date_Finish As Global.System.Data.DataColumn
-
+
Private columnI_LLI_1_Time_Finish As Global.System.Data.DataColumn
-
+
Private columnI_LLI_1_Channel_Irradiation As Global.System.Data.DataColumn
-
+
Private columnI_LLI_1_Detector_Number As Global.System.Data.DataColumn
-
+
Private columnI_LLI_1_File_First As Global.System.Data.DataColumn
-
+
Private columnI_LLI_1_File_Last As Global.System.Data.DataColumn
-
+
Private columnI_LLI_1_Irradiated_By As Global.System.Data.DataColumn
-
+
Private columnI_LLI_1_Irradiation_Log As Global.System.Data.DataColumn
-
+
Private columnI_LLI_2_Irradiation_Fact As Global.System.Data.DataColumn
-
+
Private columnI_LLI_2_Date_Start As Global.System.Data.DataColumn
-
+
Private columnI_LLI_2_Time_Start As Global.System.Data.DataColumn
-
+
Private columnI_LLI_2_Date_Finish As Global.System.Data.DataColumn
-
+
Private columnI_LLI_2_Time_Finish As Global.System.Data.DataColumn
-
+
Private columnI_LLI_2_Channel_Irradiation As Global.System.Data.DataColumn
-
+
Private columnI_LLI_2_Detector_Number As Global.System.Data.DataColumn
-
+
Private columnI_LLI_2_File_First As Global.System.Data.DataColumn
-
+
Private columnI_LLI_2_File_Last As Global.System.Data.DataColumn
-
+
Private columnI_LLI_2_Irradiated_By As Global.System.Data.DataColumn
-
+
Private columnI_LLI_2_Irradiation_Log As Global.System.Data.DataColumn
-
+
Private columnI_SLI_Date As Global.System.Data.DataColumn
-
+
Private columnI_SLI_Duration As Global.System.Data.DataColumn
-
+
Private columnI_SLI_Irradiation_Log_Number As Global.System.Data.DataColumn
-
+
Private columnI_SLI_Measured_By As Global.System.Data.DataColumn
-
+
Private columnI_SLI_Detector_1 As Global.System.Data.DataColumn
-
+
Private columnI_SLI_Detector_2 As Global.System.Data.DataColumn
-
+
Private columnI_SLI_Detector_3 As Global.System.Data.DataColumn
-
+
Private columnI_SLI_Detector_4 As Global.System.Data.DataColumn
-
+
Private columnI_SLI_File_Last As Global.System.Data.DataColumn
-
+
Private columnI_SLI_Duration1 As Global.System.Data.DataColumn
-
-
+
+ _
Public Sub New()
MyBase.New
Me.TableName = "table_Sample"
@@ -3952,9 +3950,9 @@ Partial Public Class NAA_DB_EXPDataSet
Me.InitClass
Me.EndInit
End Sub
-
-
+
+ _
Friend Sub New(ByVal table As Global.System.Data.DataTable)
MyBase.New
Me.TableName = table.TableName
@@ -3970,1281 +3968,1281 @@ Partial Public Class NAA_DB_EXPDataSet
Me.Prefix = table.Prefix
Me.MinimumCapacity = table.MinimumCapacity
End Sub
-
-
+
+ _
Protected Sub New(ByVal info As Global.System.Runtime.Serialization.SerializationInfo, ByVal context As Global.System.Runtime.Serialization.StreamingContext)
MyBase.New(info, context)
Me.InitVars
End Sub
-
-
+
+ _
Public ReadOnly Property F_Country_CodeColumn() As Global.System.Data.DataColumn
Get
Return Me.columnF_Country_Code
End Get
End Property
-
-
+
+ _
Public ReadOnly Property F_Client_IDColumn() As Global.System.Data.DataColumn
Get
Return Me.columnF_Client_ID
End Get
End Property
-
-
+
+ _
Public ReadOnly Property F_YearColumn() As Global.System.Data.DataColumn
Get
Return Me.columnF_Year
End Get
End Property
-
-
+
+ _
Public ReadOnly Property F_Sample_Set_IDColumn() As Global.System.Data.DataColumn
Get
Return Me.columnF_Sample_Set_ID
End Get
End Property
-
-
+
+ _
Public ReadOnly Property F_Sample_Set_IndexColumn() As Global.System.Data.DataColumn
Get
Return Me.columnF_Sample_Set_Index
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Sample_IDColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Sample_ID
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Client_Sample_IDColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Client_Sample_ID
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Sample_TypeColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Sample_Type
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Sample_SubtypeColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Sample_Subtype
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Collection_PlaceColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Collection_Place
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_LatitudeColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Latitude
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_LongitudeColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Longitude
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Cleaning_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Cleaning_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Drying_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Drying_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Evaporation_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Evaporation_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Freeze_Drying_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Freeze_Drying_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Homogenizing_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Homogenizing_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Pelletization_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Pelletization_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Fragmentation_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Fragmentation_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Determined_ElementsColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Determined_Elements
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Halogens_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Halogens_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Heavy_Metals_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Heavy_Metals_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Short_Lived_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Short_Lived_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Long_Lived_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Long_Lived_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_F_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_F_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Na_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Na_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Mg_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Mg_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Al_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Al_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Si_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Si_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_S_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_S_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Cl_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Cl_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_K_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_K_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Ca_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Ca_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Sc_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Sc_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Ti_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Ti_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_V_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_V_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Cr_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Cr_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Mn_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Mn_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Fe_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Fe_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Co_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Co_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Cu_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Cu_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Zn_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Zn_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Ga_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Ga_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_As_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_As_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Se_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Se_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Br_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Br_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Rb_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Rb_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Sr_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Sr_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Y_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Y_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Zr_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Zr_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Nb_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Nb_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Mo_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Mo_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Ru_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Ru_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Ag_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Ag_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Cd_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Cd_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_In_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_In_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Sn_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Sn_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Sb_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Sb_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_I_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_I_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Cs_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Cs_Plan
End Get
End Property
-
-
+
+ _
Public ReadOnly Property A_Ba_PlanColumn() As Global.System.Data.DataColumn
Get
Return Me.columnA_Ba_Plan
End Get
End Property
-
-
+
+