update 20241011

This commit is contained in:
Stefan Hutter
2024-10-11 21:38:02 +02:00
parent b8a392b514
commit 5bea1d4535
202 changed files with 995 additions and 289 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -13,6 +13,7 @@ using System.Security.Cryptography;
using System.Diagnostics.Eventing.Reader;
using Logging;
using System.Configuration;
using System.Runtime.CompilerServices;
@@ -660,7 +661,7 @@ namespace Database
return default;
}
public DataTable Get_Dokumente(int partnernr, int dokumentartnr, int profilnr, int ForMa, bool alleDokumente = false)
public DataTable Get_Dokumente(int partnernr, int dokumentartnr, int profilnr, int ForMa, string searchdocid, bool alleDokumente = false)
{
int i;
SqlConnection conn = new SqlConnection(connectionstring);
@@ -701,6 +702,8 @@ namespace Database
{
scmCmdToExecute.Parameters.Add(new SqlParameter("@alledokumente", SqlDbType.Int, 4, ParameterDirection.Input, true, 10, 0, "", DataRowVersion.Proposed, 0));
}
scmCmdToExecute.Parameters.Add(new SqlParameter("@searchdocid", SqlDbType.VarChar, 22, ParameterDirection.Input, true, 10, 0, "", DataRowVersion.Proposed, searchdocid));
scmCmdToExecute.Parameters.Add(new SqlParameter("@iErrorCode", SqlDbType.Int, 4, ParameterDirection.Output, true, 10, 0, "", DataRowVersion.Proposed, 0));
//if (this.txtnrpar00.Text.Length > 0)
@@ -846,6 +849,35 @@ namespace Database
}
}
public bool Dok_in_Bearbeietung(int typ, string dokumentid, int mitarbeiter)
{
switch (typ)
{
case 1:
string sql = "Insert DokInBearbeitung (dokumentid, mitarbeiternr,datum,erstellung,dokumentname,stationsname) ";
sql = sql + " values('" + dokumentid + "'," + mitarbeiter.ToString() + ",getdate(),'','','')";
Exec_SQL(sql);
return true;
case 2:
Exec_SQL("Delete from dokinbearbeitung where dokumentid='" + dokumentid + "'");
return true;
case 3:
Get_Tabledata("Select count(*) from dokinbearbeitung where dokumentid='" + dokumentid + "'",false,true);
if (Convert.ToInt32(dsdaten.Tables[0].Rows[0][0]) > 0) return false; else return true;
default:
return true;
}
if (typ == 2)
{
} else
{
string sql = "Insert DokInBearbeitung (dokumentid, mitarbeiternr,datum,erstellung,dokumentname,stationsname) ";
sql = sql + " values('" + dokumentid + "'," + mitarbeiter.ToString()+",getdate(),'','','')";
Exec_SQL(sql);
return true;
}
}
public Boolean save_vorlage_to_db(string filename, string office_vorlage_nr)
{
try
@@ -1041,6 +1073,7 @@ namespace Database
// Creates a SqlParameter and adds it to the command
public void InsertParameter(SqlCommand command,
string parameterName,
string sourceColumn,

Binary file not shown.

Binary file not shown.