20240627
This commit is contained in:
@@ -68,9 +68,9 @@
|
||||
<Project>{9a58502e-ac8b-4103-ae5e-f4bac4b65820}</Project>
|
||||
<Name>EDOKA_Logging</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Helper\Helper.csproj">
|
||||
<ProjectReference Include="..\Helper\EDOKA_Helper.csproj">
|
||||
<Project>{216c1660-5ad5-4a5e-80e4-150ccf673cbc}</Project>
|
||||
<Name>Helper</Name>
|
||||
<Name>EDOKA_Helper</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="..\Model\Model.csproj">
|
||||
<Project>{a1fd0973-89a7-4588-877d-373835d6e00c}</Project>
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -668,5 +668,63 @@ namespace EDOKA_Database
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public DataTable Get_DokumentWertList(string dokumentid, int dokumenttypnr)
|
||||
{
|
||||
|
||||
var scmCmdToExecute = new SqlCommand();
|
||||
var dtToReturn = new DataTable();
|
||||
var sdaAdapter = new SqlDataAdapter(scmCmdToExecute);
|
||||
SqlConnection Connection = new SqlConnection();
|
||||
Connection.ConnectionString=connectionstring;
|
||||
scmCmdToExecute.CommandText = "dbo.SP_Dokumentbearbeitung_Dokumentwerte";
|
||||
scmCmdToExecute.CommandType = CommandType.StoredProcedure;
|
||||
scmCmdToExecute.Connection=Connection;
|
||||
try
|
||||
{
|
||||
scmCmdToExecute.Parameters.Add(new SqlParameter("@dokumentid", SqlDbType.VarChar, 22, ParameterDirection.Input, true, 10, 0, "", DataRowVersion.Proposed, dokumentid));
|
||||
scmCmdToExecute.Parameters.Add(new SqlParameter("@dokumenttypnr", SqlDbType.Int, 4, ParameterDirection.Input, true, 10, 0, "", DataRowVersion.Proposed, dokumenttypnr));
|
||||
scmCmdToExecute.Parameters.Add(new SqlParameter("@CreateNew", SqlDbType.Int, 4, ParameterDirection.Input, true, 10, 0, "", DataRowVersion.Proposed, 1));
|
||||
sdaAdapter.Fill(dtToReturn);
|
||||
|
||||
// Release 4.0 KC 01.06.2007 XMl Daten berücksichtigen (DokumentBearbeitung.edka)
|
||||
|
||||
//var objDokumentWert = default(AvaloqDokumentWert);
|
||||
//for (int i = 0, loopTo = dtToReturn.Rows.Count - 1; i <= loopTo; i++)
|
||||
//{
|
||||
// if (!object.ReferenceEquals(dtToReturn.Rows[i][0], DBNull.Value))
|
||||
// {
|
||||
// // objperson
|
||||
// // objDokumentWert = avqwerte.getAvaloqDokumentWertByName(dtToReturn.Rows(i).Item(0))
|
||||
// try
|
||||
// {
|
||||
// objDokumentWert = avqwerte.getAvaloqDokumentWertByName(avqwerte.ADokumentwerte, this.DokWertList.Item(i, 0), this.DokWertList.Item(i, 12));
|
||||
// }
|
||||
// catch
|
||||
// {
|
||||
// }
|
||||
// // objDokumentWert = objAvaloqDokumentWerte.getAvaloqDokumentWertByName(dtToReturn.Rows(i).Item(0))
|
||||
// }
|
||||
// if (objDokumentWert is null == false)
|
||||
// {
|
||||
// dtToReturn.Rows[i][2] = objDokumentWert.value;
|
||||
// }
|
||||
// objDokumentWert = default;
|
||||
//}
|
||||
|
||||
return dtToReturn;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
// // some error occured. Bubble it to caller and encapsulate Exception object
|
||||
throw new Exception("Dokument_Information_Wert::" + scmCmdToExecute.CommandText + "::Error occured." + ex.Message, ex);
|
||||
}
|
||||
finally
|
||||
{
|
||||
scmCmdToExecute.Dispose();
|
||||
sdaAdapter.Dispose();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user