Update Dashboar nach AbalusImport
This commit is contained in:
@@ -688,5 +688,33 @@ public class clsDB
|
||||
}
|
||||
|
||||
|
||||
public string get_importstatistik()
|
||||
{
|
||||
SqlConnection myConnection = new SqlConnection(this.Connectionstring);
|
||||
SqlCommand myCommand = new SqlCommand("dbo.sp_import_statistik", myConnection);
|
||||
myCommand.Parameters.Add("@fnkt", SqlDbType.Int, 4);
|
||||
myCommand.Parameters[0].Value = 1;
|
||||
myCommand.CommandType = CommandType.StoredProcedure;
|
||||
myCommand.CommandTimeout = 600;
|
||||
|
||||
SqlDataAdapter da = new SqlDataAdapter(myCommand);
|
||||
dsdaten.Tables.Clear();
|
||||
try
|
||||
{
|
||||
myConnection.Open();
|
||||
da.Fill(dsdaten, "Daten");
|
||||
//myCommand.ExecuteNonQuery();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
}
|
||||
finally
|
||||
{
|
||||
if (myConnection.State == ConnectionState.Open)
|
||||
myConnection.Close();
|
||||
}
|
||||
return dsdaten.Tables[0].Rows[0][0].ToString();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user