update 20241211
85
ADDemo/ADDemo.csproj
Normal file
@@ -0,0 +1,85 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{16CA57CE-B430-4B04-B9BE-7E4FF909C7A6}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<RootNamespace>ADDemo</RootNamespace>
|
||||
<AssemblyName>ADDemo</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
||||
<Deterministic>true</Deterministic>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.DirectoryServices" />
|
||||
<Reference Include="System.DirectoryServices.Protocols" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Deployment" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Form1.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Form1.Designer.cs">
|
||||
<DependentUpon>Form1.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<EmbeddedResource Include="Form1.resx">
|
||||
<DependentUpon>Form1.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<Compile Include="Properties\Resources.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
</Compile>
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="App.config" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
||||
6
ADDemo/App.config
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
|
||||
</startup>
|
||||
</configuration>
|
||||
61
ADDemo/Form1.Designer.cs
generated
Normal file
@@ -0,0 +1,61 @@
|
||||
namespace ADDemo
|
||||
{
|
||||
partial class Form1
|
||||
{
|
||||
/// <summary>
|
||||
/// Erforderliche Designervariable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Verwendete Ressourcen bereinigen.
|
||||
/// </summary>
|
||||
/// <param name="disposing">True, wenn verwaltete Ressourcen gelöscht werden sollen; andernfalls False.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Vom Windows Form-Designer generierter Code
|
||||
|
||||
/// <summary>
|
||||
/// Erforderliche Methode für die Designerunterstützung.
|
||||
/// Der Inhalt der Methode darf nicht mit dem Code-Editor geändert werden.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.Location = new System.Drawing.Point(43, 28);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(75, 23);
|
||||
this.button1.TabIndex = 0;
|
||||
this.button1.Text = "button1";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new System.EventHandler(this.button1_Click);
|
||||
//
|
||||
// Form1
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(800, 450);
|
||||
this.Controls.Add(this.button1);
|
||||
this.Name = "Form1";
|
||||
this.Text = "Form1";
|
||||
this.ResumeLayout(false);
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Button button1;
|
||||
}
|
||||
}
|
||||
|
||||
148
ADDemo/Form1.cs
Normal file
@@ -0,0 +1,148 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Data.SqlClient;
|
||||
using System.DirectoryServices;
|
||||
using System.DirectoryServices.Protocols;
|
||||
using System.Drawing;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
|
||||
namespace ADDemo
|
||||
{
|
||||
public partial class Form1 : Form
|
||||
{
|
||||
string Username = "";
|
||||
string ADError = "";
|
||||
public Form1()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
DirectoryEntry de = new DirectoryEntry();
|
||||
Get_User("meyering", ref de);
|
||||
}
|
||||
|
||||
public class UserData
|
||||
{
|
||||
public string Name { get; set; } = "";
|
||||
public string Department { get; set; } = "";
|
||||
public string Office { get; set; }
|
||||
|
||||
}
|
||||
|
||||
private void trylogin()
|
||||
{
|
||||
try
|
||||
{
|
||||
LdapConnection connection = new LdapConnection("ldap.fabrikam.com");
|
||||
NetworkCredential credential = new NetworkCredential("user", "password");
|
||||
connection.Credential = credential;
|
||||
connection.Bind();
|
||||
Console.WriteLine("logged in");
|
||||
}
|
||||
catch (LdapException lexc)
|
||||
{
|
||||
String error = lexc.ServerErrorMessage;
|
||||
Console.WriteLine(lexc);
|
||||
}
|
||||
catch (Exception exc)
|
||||
{
|
||||
Console.WriteLine(exc);
|
||||
}
|
||||
|
||||
|
||||
//---------------------------
|
||||
using (DirectoryEntry adsEntry = new DirectoryEntry(path, strAccountId, strPassword))
|
||||
{
|
||||
using (DirectorySearcher adsSearcher = new DirectorySearcher(adsEntry))
|
||||
{
|
||||
//adsSearcher.Filter = "(&(objectClass=user)(objectCategory=person))";
|
||||
adsSearcher.Filter = "(sAMAccountName=" + strAccountId + ")";
|
||||
|
||||
try
|
||||
{
|
||||
SearchResult adsSearchResult = adsSearcher.FindOne();
|
||||
bSucceeded = true;
|
||||
|
||||
strAuthenticatedBy = "Active Directory";
|
||||
strError = "User has been authenticated by Active Directory.";
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
// Failed to authenticate. Most likely it is caused by unknown user
|
||||
// id or bad strPassword.
|
||||
strError = ex.Message;
|
||||
}
|
||||
finally
|
||||
{
|
||||
adsEntry.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
private void getusera()
|
||||
{
|
||||
UserData user = new UserData();
|
||||
DirectoryEntry entry = new DirectoryEntry("LDAP://DC=mydomain,DC=local");
|
||||
using (DirectorySearcher ds = new DirectorySearcher(entry))
|
||||
{
|
||||
ds.Filter = "(SAMAccountName=" + "myusername" + ")";
|
||||
ds.PropertiesToLoad.Add("displayName");
|
||||
ds.PropertiesToLoad.Add("name");
|
||||
ds.PropertiesToLoad.Add("department");
|
||||
ds.PropertiesToLoad.Add("physicalDeliveryOfficeName");
|
||||
var result = ds.FindOne();
|
||||
if (result != null)
|
||||
{
|
||||
try
|
||||
{
|
||||
user.Name = result.Properties["name"][0].ToString();
|
||||
user.Department = result.Properties["department"][0].ToString();
|
||||
user.Office = result.Properties["physicalDeliveryOfficeName"][0].ToString();
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
}
|
||||
}
|
||||
public bool Get_User(string Userid, ref DirectoryEntry de)
|
||||
{
|
||||
var enTry = new DirectoryEntry("LDAP://db.debian.org/uid=meyering,ou=users,dc=debian,dc=org");
|
||||
// Dim enTry As DirectoryEntry = New DirectoryEntry("LDAP://db.debian.org/uid=abi,ou=users,dc=example,dc=com")
|
||||
|
||||
var mySearcher = new DirectorySearcher(enTry);
|
||||
mySearcher.Filter = "(SAMAccountName=" + Userid + ")";
|
||||
foreach (System.DirectoryServices.SearchResult resEnt in mySearcher.FindAll())
|
||||
{
|
||||
try
|
||||
{
|
||||
de = resEnt.GetDirectoryEntry();
|
||||
Username = de.Properties["givenname"].ToString() + de.Properties["sn"].ToString();
|
||||
ADError = "";
|
||||
return true;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
this.Username = "";
|
||||
|
||||
this.ADError = ex.Message;
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
120
ADDemo/Form1.resx
Normal file
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
22
ADDemo/Program.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace ADDemo
|
||||
{
|
||||
internal static class Program
|
||||
{
|
||||
/// <summary>
|
||||
/// Der Haupteinstiegspunkt für die Anwendung.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
Application.EnableVisualStyles();
|
||||
Application.SetCompatibleTextRenderingDefault(false);
|
||||
Application.Run(new Form1());
|
||||
}
|
||||
}
|
||||
}
|
||||
36
ADDemo/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// Allgemeine Informationen über eine Assembly werden über die folgenden
|
||||
// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern,
|
||||
// die einer Assembly zugeordnet sind.
|
||||
[assembly: AssemblyTitle("ADDemo")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("HP Inc.")]
|
||||
[assembly: AssemblyProduct("ADDemo")]
|
||||
[assembly: AssemblyCopyright("Copyright © HP Inc. 2024")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Durch Festlegen von ComVisible auf FALSE werden die Typen in dieser Assembly
|
||||
// für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von
|
||||
// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird
|
||||
[assembly: Guid("16ca57ce-b430-4b04-b9be-7e4ff909c7a6")]
|
||||
|
||||
// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten:
|
||||
//
|
||||
// Hauptversion
|
||||
// Nebenversion
|
||||
// Buildnummer
|
||||
// Revision
|
||||
//
|
||||
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
|
||||
// indem Sie "*" wie unten gezeigt eingeben:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
71
ADDemo/Properties/Resources.Designer.cs
generated
Normal file
@@ -0,0 +1,71 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Dieser Code wurde von einem Tool generiert.
|
||||
// Laufzeitversion: 4.0.30319.42000
|
||||
//
|
||||
// Änderungen an dieser Datei können fehlerhaftes Verhalten verursachen und gehen verloren, wenn
|
||||
// der Code neu generiert wird.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace ADDemo.Properties
|
||||
{
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw.
|
||||
/// </summary>
|
||||
// Diese Klasse wurde von der StronglyTypedResourceBuilder-Klasse
|
||||
// über ein Tool wie ResGen oder Visual Studio automatisch generiert.
|
||||
// Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen
|
||||
// mit der Option /str erneut aus, oder erstellen Sie Ihr VS-Projekt neu.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class Resources
|
||||
{
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal Resources()
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Resources.ResourceManager ResourceManager
|
||||
{
|
||||
get
|
||||
{
|
||||
if ((resourceMan == null))
|
||||
{
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ADDemo.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle
|
||||
/// Ressourcenlookups, die diese stark typisierte Ressourcenklasse verwenden.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture
|
||||
{
|
||||
get
|
||||
{
|
||||
return resourceCulture;
|
||||
}
|
||||
set
|
||||
{
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
117
ADDemo/Properties/Resources.resx
Normal file
@@ -0,0 +1,117 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
30
ADDemo/Properties/Settings.Designer.cs
generated
Normal file
@@ -0,0 +1,30 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace ADDemo.Properties
|
||||
{
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
|
||||
{
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
||||
public static Settings Default
|
||||
{
|
||||
get
|
||||
{
|
||||
return defaultInstance;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
7
ADDemo/Properties/Settings.settings
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
|
||||
<Profiles>
|
||||
<Profile Name="(Default)" />
|
||||
</Profiles>
|
||||
<Settings />
|
||||
</SettingsFile>
|
||||
BIN
ADDemo/bin/Debug/ADDemo.exe
Normal file
6
ADDemo/bin/Debug/ADDemo.exe.config
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.8" />
|
||||
</startup>
|
||||
</configuration>
|
||||
BIN
ADDemo/bin/Debug/ADDemo.pdb
Normal file
@@ -0,0 +1,4 @@
|
||||
// <autogenerated />
|
||||
using System;
|
||||
using System.Reflection;
|
||||
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
|
||||
BIN
ADDemo/obj/Debug/ADDemo.Form1.resources
Normal file
BIN
ADDemo/obj/Debug/ADDemo.Properties.Resources.resources
Normal file
BIN
ADDemo/obj/Debug/ADDemo.csproj.AssemblyReference.cache
Normal file
1
ADDemo/obj/Debug/ADDemo.csproj.CoreCompileInputs.cache
Normal file
@@ -0,0 +1 @@
|
||||
7e09e81f758559317e635bfe9d9d57ed5f84f90f37a49c7cea79117a4591c6ab
|
||||
10
ADDemo/obj/Debug/ADDemo.csproj.FileListAbsolute.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
E:\Software-Projekte\OnDoc\OnDoc\ADDemo\bin\Debug\ADDemo.exe.config
|
||||
E:\Software-Projekte\OnDoc\OnDoc\ADDemo\bin\Debug\ADDemo.exe
|
||||
E:\Software-Projekte\OnDoc\OnDoc\ADDemo\bin\Debug\ADDemo.pdb
|
||||
E:\Software-Projekte\OnDoc\OnDoc\ADDemo\obj\Debug\ADDemo.csproj.AssemblyReference.cache
|
||||
E:\Software-Projekte\OnDoc\OnDoc\ADDemo\obj\Debug\ADDemo.Form1.resources
|
||||
E:\Software-Projekte\OnDoc\OnDoc\ADDemo\obj\Debug\ADDemo.Properties.Resources.resources
|
||||
E:\Software-Projekte\OnDoc\OnDoc\ADDemo\obj\Debug\ADDemo.csproj.GenerateResource.cache
|
||||
E:\Software-Projekte\OnDoc\OnDoc\ADDemo\obj\Debug\ADDemo.csproj.CoreCompileInputs.cache
|
||||
E:\Software-Projekte\OnDoc\OnDoc\ADDemo\obj\Debug\ADDemo.exe
|
||||
E:\Software-Projekte\OnDoc\OnDoc\ADDemo\obj\Debug\ADDemo.pdb
|
||||
BIN
ADDemo/obj/Debug/ADDemo.csproj.GenerateResource.cache
Normal file
BIN
ADDemo/obj/Debug/ADDemo.exe
Normal file
BIN
ADDemo/obj/Debug/ADDemo.pdb
Normal file
BIN
ADDemo/obj/Debug/DesignTimeResolveAssemblyReferences.cache
Normal file
BIN
ADDemo/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache
Normal file
@@ -596,6 +596,27 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="OnDoc6_Transparent.ico" />
|
||||
<None Include="Resources\Person_32x32-32.png" />
|
||||
<None Include="Resources\Person_24x24-32.png" />
|
||||
<None Include="Resources\Person_16x16-32.png" />
|
||||
<None Include="Resources\Person_256x256-32.png" />
|
||||
<None Include="Resources\Person_48x48-32.png" />
|
||||
<None Include="Resources\Person_16x16-32 %282%291.png" />
|
||||
<None Include="Resources\Person_48x48-321.png" />
|
||||
<None Include="Resources\Person_32x32-321.png" />
|
||||
<None Include="Resources\Person_256x256-321.png" />
|
||||
<None Include="Resources\Person_24x24-321.png" />
|
||||
<None Include="Resources\Person_16x16-321.png" />
|
||||
<None Include="Resources\Person_32x32-32 %282%29.png" />
|
||||
<None Include="Resources\Person_24x24-32 %282%29.png" />
|
||||
<None Include="Resources\Person_16x16-32 %282%29.png" />
|
||||
<None Include="Resources\Person_256x256-32 %282%29.png" />
|
||||
<None Include="Resources\Person_48x48-32 %282%29.png" />
|
||||
<None Include="Resources\Attribut_48x48-32.png" />
|
||||
<None Include="Resources\Attribut_32x32-32.png" />
|
||||
<None Include="Resources\Attribut_24x24-32.png" />
|
||||
<None Include="Resources\Attribut_16x16-32.png" />
|
||||
<None Include="Resources\Attribut_256x256-32.png" />
|
||||
<None Include="Resources\officevorlage_256x256-32.png" />
|
||||
<None Include="Resources\officevorlage_48x48-32.png" />
|
||||
<None Include="Resources\officevorlage_32x32-32.png" />
|
||||
|
||||
15
Client/DocMgmt/Dokumentpaket.Designer.cs
generated
@@ -148,7 +148,7 @@
|
||||
this.ribbon1.OrbStyle = System.Windows.Forms.RibbonOrbStyle.Office_2013;
|
||||
this.ribbon1.OrbVisible = false;
|
||||
this.ribbon1.RibbonTabFont = new System.Drawing.Font("Trebuchet MS", 9F);
|
||||
this.ribbon1.Size = new System.Drawing.Size(1807, 121);
|
||||
this.ribbon1.Size = new System.Drawing.Size(2120, 121);
|
||||
this.ribbon1.TabIndex = 17;
|
||||
this.ribbon1.Tabs.Add(this.ribbonTab1);
|
||||
this.ribbon1.TabSpacing = 4;
|
||||
@@ -260,7 +260,7 @@
|
||||
this.pnlfooter.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.pnlfooter.Location = new System.Drawing.Point(2, 802);
|
||||
this.pnlfooter.Name = "pnlfooter";
|
||||
this.pnlfooter.Size = new System.Drawing.Size(1807, 47);
|
||||
this.pnlfooter.Size = new System.Drawing.Size(2120, 47);
|
||||
this.pnlfooter.TabIndex = 20;
|
||||
//
|
||||
// progressBarAdv1
|
||||
@@ -270,14 +270,15 @@
|
||||
this.progressBarAdv1.BackSegments = false;
|
||||
this.progressBarAdv1.CustomText = null;
|
||||
this.progressBarAdv1.CustomWaitingRender = false;
|
||||
this.progressBarAdv1.Dock = System.Windows.Forms.DockStyle.Bottom;
|
||||
this.progressBarAdv1.ForeColor = System.Drawing.Color.Blue;
|
||||
this.progressBarAdv1.ForegroundImage = null;
|
||||
this.progressBarAdv1.Location = new System.Drawing.Point(16, 16);
|
||||
this.progressBarAdv1.Location = new System.Drawing.Point(0, 24);
|
||||
this.progressBarAdv1.MultipleColors = new System.Drawing.Color[] {
|
||||
System.Drawing.Color.Empty};
|
||||
this.progressBarAdv1.Name = "progressBarAdv1";
|
||||
this.progressBarAdv1.SegmentWidth = 12;
|
||||
this.progressBarAdv1.Size = new System.Drawing.Size(1733, 23);
|
||||
this.progressBarAdv1.Size = new System.Drawing.Size(2120, 23);
|
||||
this.progressBarAdv1.TabIndex = 0;
|
||||
this.progressBarAdv1.Text = "progressBarGeneraate";
|
||||
this.progressBarAdv1.Visible = false;
|
||||
@@ -348,7 +349,7 @@
|
||||
this.groupBox3.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.groupBox3.Location = new System.Drawing.Point(1326, 123);
|
||||
this.groupBox3.Name = "groupBox3";
|
||||
this.groupBox3.Size = new System.Drawing.Size(483, 679);
|
||||
this.groupBox3.Size = new System.Drawing.Size(796, 679);
|
||||
this.groupBox3.TabIndex = 23;
|
||||
this.groupBox3.TabStop = false;
|
||||
this.groupBox3.Text = "Generierte Dokumente";
|
||||
@@ -370,14 +371,14 @@
|
||||
this.dokList1.selected_cellvalue = null;
|
||||
this.dokList1.selected_dokumentid = null;
|
||||
this.dokList1.selected_partnernr = null;
|
||||
this.dokList1.Size = new System.Drawing.Size(477, 660);
|
||||
this.dokList1.Size = new System.Drawing.Size(790, 660);
|
||||
this.dokList1.TabIndex = 0;
|
||||
//
|
||||
// Dokumentpaket
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(1811, 851);
|
||||
this.ClientSize = new System.Drawing.Size(2124, 851);
|
||||
this.Controls.Add(this.groupBox3);
|
||||
this.Controls.Add(this.groupBox2);
|
||||
this.Controls.Add(this.pnlleft);
|
||||
|
||||
@@ -100,7 +100,7 @@ namespace OnDoc.DocMgmt
|
||||
if (!NeuesDokumentpaket()){ this.Close(); return; };
|
||||
}
|
||||
Update_PaketDetails();
|
||||
|
||||
dokList1.set_vorschau_aus_dp();
|
||||
if (this.txtbpnummer.Text == "") { btnSearchBP_Click(sender, e); }
|
||||
|
||||
this.EndUpdate();
|
||||
|
||||
@@ -437,6 +437,7 @@ namespace OnDoc.UIControls
|
||||
try
|
||||
{
|
||||
panelLoad.Visible = true;
|
||||
System.Windows.Forms.Application.DoEvents();
|
||||
this.sb = null;
|
||||
this.sb = new serienbrief();
|
||||
sb.dokumenttypnr = DokTypSelect.dokumenttypnr;
|
||||
@@ -947,7 +948,7 @@ namespace OnDoc.UIControls
|
||||
{
|
||||
add_progress();
|
||||
System.Windows.Forms.Application.DoEvents();
|
||||
dr = sb.dsempfaenger.Tables[0].Select("Partnernr='" + dt.Rows[i][0].ToString() + "'");
|
||||
dr = sb.dsempfaenger.Tables[0].Select("Partnernr='" + dt.Rows[i][0].ToString() + "' and status<>'1'");
|
||||
if (dr.Length == 0)
|
||||
{
|
||||
dr = sb.dsempfaenger.Tables[0].Select("Partnernr=''");
|
||||
|
||||
6
Client/DocMgmt/frmToApproval.Designer.cs
generated
@@ -47,7 +47,8 @@
|
||||
//
|
||||
// cbboxunterschriftrechts
|
||||
//
|
||||
this.cbboxunterschriftrechts.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
|
||||
this.cbboxunterschriftrechts.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
|
||||
this.cbboxunterschriftrechts.ComboBoxMode = Syncfusion.WinForms.ListView.Enums.ComboBoxMode.MultiSelection;
|
||||
this.cbboxunterschriftrechts.DropDownPosition = Syncfusion.WinForms.Core.Enums.PopupRelativeAlignment.Center;
|
||||
this.cbboxunterschriftrechts.Location = new System.Drawing.Point(216, 62);
|
||||
this.cbboxunterschriftrechts.Name = "cbboxunterschriftrechts";
|
||||
@@ -59,7 +60,8 @@
|
||||
//
|
||||
// cbboxunterschriftlinks
|
||||
//
|
||||
this.cbboxunterschriftlinks.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend;
|
||||
this.cbboxunterschriftlinks.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest;
|
||||
this.cbboxunterschriftlinks.ComboBoxMode = Syncfusion.WinForms.ListView.Enums.ComboBoxMode.MultiSelection;
|
||||
this.cbboxunterschriftlinks.DropDownPosition = Syncfusion.WinForms.Core.Enums.PopupRelativeAlignment.Center;
|
||||
this.cbboxunterschriftlinks.Location = new System.Drawing.Point(216, 27);
|
||||
this.cbboxunterschriftlinks.Name = "cbboxunterschriftlinks";
|
||||
|
||||
@@ -34,24 +34,31 @@ namespace OnDoc.Helper
|
||||
}
|
||||
}
|
||||
|
||||
public static void FormatTable(ref DataTable tbl, string tablename, ref SfDataGrid grid)
|
||||
public static void FormatTable(ref DataTable tbl, string tablename, ref SfDataGrid grid, bool use_sort = true)
|
||||
{
|
||||
|
||||
DB db = new DB(AppParams.connectionstring);
|
||||
db.Get_Tabledata("Select * from spalten where aktiv=1 and tabelle='" + tablename + "'", false, true);
|
||||
foreach (System.Data.DataRow dr in db.dsdaten.Tables[0].Rows)
|
||||
{
|
||||
foreach (DataColumn dc in tbl.Columns)
|
||||
{
|
||||
if (dr["tabellenspalte"].ToString() == dc.ColumnName)
|
||||
{
|
||||
dc.SetOrdinal(Convert.ToInt32(dr["reihenfolge"].ToString()));
|
||||
|
||||
break;
|
||||
DB db = new DB(AppParams.connectionstring);
|
||||
db.Get_Tabledata("Select * from spalten where aktiv=1 and tabelle='" + tablename + "'", false, true);
|
||||
if (use_sort)
|
||||
{
|
||||
|
||||
foreach (System.Data.DataRow dr in db.dsdaten.Tables[0].Rows)
|
||||
{
|
||||
foreach (DataColumn dc in tbl.Columns)
|
||||
{
|
||||
if (dr["tabellenspalte"].ToString() == dc.ColumnName)
|
||||
{
|
||||
if (tablename != "Partner")
|
||||
dc.SetOrdinal(Convert.ToInt32(dr["reihenfolge"].ToString()));
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
tbl.AcceptChanges();
|
||||
}
|
||||
tbl.AcceptChanges();
|
||||
}
|
||||
|
||||
|
||||
grid.DataSource = tbl;
|
||||
foreach (System.Data.DataRow dr in db.dsdaten.Tables[0].Rows)
|
||||
{
|
||||
|
||||
@@ -16,6 +16,7 @@ namespace OnDoc.Klassen
|
||||
{
|
||||
private static string Connectionstring = "";
|
||||
public static DataTable partnerliste;
|
||||
public static string tableleyout { get; set; } = "";
|
||||
public static void set_connectionstring(string connectionstring)
|
||||
{
|
||||
Connectionstring = connectionstring;
|
||||
@@ -32,6 +33,17 @@ namespace OnDoc.Klassen
|
||||
db.add_parameter("@anz", anzahl.ToString());
|
||||
db.add_parameter("@fnkt", fnkt.ToString());
|
||||
partnerliste = db.Get_Tabledata("sp_partner_search", true, false);
|
||||
//int i = 0;
|
||||
//foreach (DataColumn dc in partnerliste.Columns)
|
||||
//{
|
||||
// dc.SetOrdinal(i);
|
||||
// i++;
|
||||
//}
|
||||
//partnerliste.Columns.Add("Partnerart");
|
||||
//foreach (System.Data.DataRow row in partnerliste.Rows)
|
||||
//{
|
||||
// if (Convert.ToInt32(row[0]) > 999999) { row["Partnerart"] = 2; } else { row["Partnerart"] = 1; }
|
||||
//}
|
||||
return partnerliste;
|
||||
}
|
||||
finally { db = null; }
|
||||
|
||||
100
Client/Properties/Resources.Designer.cs
generated
@@ -260,6 +260,56 @@ namespace OnDoc.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap Attribut_16x16_32 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("Attribut_16x16_32", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap Attribut_24x24_32 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("Attribut_24x24_32", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap Attribut_256x256_32 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("Attribut_256x256_32", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap Attribut_32x32_32 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("Attribut_32x32_32", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap Attribut_48x48_32 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("Attribut_48x48_32", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
@@ -1860,6 +1910,56 @@ namespace OnDoc.Properties {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap Person_16x16_32 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("Person_16x16_32", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap Person_24x24_32 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("Person_24x24_32", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap Person_256x256_32 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("Person_256x256_32", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap Person_32x32_32 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("Person_32x32_32", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
internal static System.Drawing.Bitmap Person_48x48_32 {
|
||||
get {
|
||||
object obj = ResourceManager.GetObject("Person_48x48_32", resourceCulture);
|
||||
return ((System.Drawing.Bitmap)(obj));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Ressource vom Typ System.Drawing.Bitmap.
|
||||
/// </summary>
|
||||
|
||||
@@ -178,6 +178,21 @@
|
||||
<data name="Approval_OK_48x48_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Approval_OK_48x48-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="Attribut_16x16_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Attribut_16x16-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="Attribut_24x24_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Attribut_24x24-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="Attribut_256x256_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Attribut_256x256-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="Attribut_32x32_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Attribut_32x32-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="Attribut_48x48_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Attribut_48x48-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="Barcode_16x16_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Barcode_16x16-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
@@ -658,6 +673,21 @@
|
||||
<data name="PDF_48x48_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\PDF_48x48-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="Person_16x16_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Person_16x16-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="Person_24x24_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Person_24x24-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="Person_256x256_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Person_256x256-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="Person_32x32_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Person_32x32-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="Person_48x48_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Person_48x48-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
<data name="Pprofil_16x16_32" type="System.Resources.ResXFileRef, System.Windows.Forms">
|
||||
<value>..\Resources\Pprofil_16x16-32.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
|
||||
</data>
|
||||
|
||||
BIN
Client/Resources/Attribut_16x16-32.png
Normal file
|
After Width: | Height: | Size: 310 B |
BIN
Client/Resources/Attribut_24x24-32.png
Normal file
|
After Width: | Height: | Size: 544 B |
BIN
Client/Resources/Attribut_256x256-32.png
Normal file
|
After Width: | Height: | Size: 7.2 KiB |
BIN
Client/Resources/Attribut_32x32-32.png
Normal file
|
After Width: | Height: | Size: 702 B |
BIN
Client/Resources/Attribut_48x48-32.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
Client/Resources/Person_16x16-32 (2).png
Normal file
|
After Width: | Height: | Size: 737 B |
BIN
Client/Resources/Person_16x16-32 (2)1.png
Normal file
|
After Width: | Height: | Size: 737 B |
BIN
Client/Resources/Person_16x16-32.png
Normal file
|
After Width: | Height: | Size: 737 B |
BIN
Client/Resources/Person_16x16-321.png
Normal file
|
After Width: | Height: | Size: 649 B |
BIN
Client/Resources/Person_24x24-32 (2).png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
Client/Resources/Person_24x24-32.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
Client/Resources/Person_24x24-321.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
Client/Resources/Person_256x256-32 (2).png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
Client/Resources/Person_256x256-32.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
Client/Resources/Person_256x256-321.png
Normal file
|
After Width: | Height: | Size: 9.5 KiB |
BIN
Client/Resources/Person_32x32-32 (2).png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
Client/Resources/Person_32x32-32.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
Client/Resources/Person_32x32-321.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
Client/Resources/Person_48x48-32 (2).png
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
Client/Resources/Person_48x48-32.png
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
Client/Resources/Person_48x48-321.png
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
89
Client/UIControls/DokList.Designer.cs
generated
@@ -53,8 +53,6 @@ namespace OnDoc.UICintrols
|
||||
this.tsbtnpreviewbottom = new System.Windows.Forms.ToolStripButton();
|
||||
this.tsbtnpreviewright = new System.Windows.Forms.ToolStripButton();
|
||||
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
|
||||
this.dokwerte1 = new OnDoc.UIControls.Dokwerte();
|
||||
this.docPreview1 = new OnDoc.UIControls.DocPreview();
|
||||
this.panel2 = new System.Windows.Forms.Panel();
|
||||
this.lblTitel = new System.Windows.Forms.Label();
|
||||
this.ribbonPanel2 = new System.Windows.Forms.RibbonPanel();
|
||||
@@ -135,7 +133,7 @@ namespace OnDoc.UICintrols
|
||||
this.ribbonButton2 = new System.Windows.Forms.RibbonButton();
|
||||
this.RibbonButtonBerechtigungsgruppe = new System.Windows.Forms.RibbonButton();
|
||||
this.ribbonButtonSysadmins = new System.Windows.Forms.RibbonButton();
|
||||
this.ribbonPanel1 = new System.Windows.Forms.RibbonPanel();
|
||||
this.ribbonpanelanalyse = new System.Windows.Forms.RibbonPanel();
|
||||
this.ribbonbuttonedklog = new System.Windows.Forms.RibbonButton();
|
||||
this.ribbonbuttonedkverarbeitung = new System.Windows.Forms.RibbonButton();
|
||||
this.pdfConfig1 = new Syncfusion.Pdf.PdfConfig();
|
||||
@@ -143,6 +141,11 @@ namespace OnDoc.UICintrols
|
||||
this.timer1 = new System.Windows.Forms.Timer(this.components);
|
||||
this.RibbonButtonCreateNewDoc = new System.Windows.Forms.RibbonButton();
|
||||
this.ribbonButton5 = new System.Windows.Forms.RibbonButton();
|
||||
this.pdfConfig2 = new Syncfusion.Pdf.PdfConfig();
|
||||
this.dokwerte1 = new OnDoc.UIControls.Dokwerte();
|
||||
this.docPreview1 = new OnDoc.UIControls.DocPreview();
|
||||
this.ribbonPanel1 = new System.Windows.Forms.RibbonPanel();
|
||||
this.ribbonButton6 = new System.Windows.Forms.RibbonButton();
|
||||
((System.ComponentModel.ISupportInitialize)(this.sfDataGrid1)).BeginInit();
|
||||
this.ctxMenuDokList.SuspendLayout();
|
||||
this.toolStrip1.SuspendLayout();
|
||||
@@ -171,6 +174,7 @@ namespace OnDoc.UICintrols
|
||||
this.sfDataGrid1.TabIndex = 0;
|
||||
this.sfDataGrid1.ToolTipOpening += new Syncfusion.WinForms.DataGrid.Events.ToolTipOpeningEventHandler(this.sfDataGrid1_ToolTipOpening_1);
|
||||
this.sfDataGrid1.DrawCell += new Syncfusion.WinForms.DataGrid.Events.DrawCellEventHandler(this.sfDataGrid1_DrawCell);
|
||||
this.sfDataGrid1.SelectionChanged += new Syncfusion.WinForms.DataGrid.Events.SelectionChangedEventHandler(this.sfDataGrid1_SelectionChanged);
|
||||
this.sfDataGrid1.FilterChanged += new Syncfusion.WinForms.DataGrid.Events.FilterChangedEventHandler(this.sfDataGrid1_FilterChanged);
|
||||
this.sfDataGrid1.DataSourceChanged += new Syncfusion.WinForms.DataGrid.Events.DataSourceChangedEventHandler(this.sfDataGrid1_DataSourceChanged);
|
||||
this.sfDataGrid1.CellClick += new Syncfusion.WinForms.DataGrid.Events.CellClickEventHandler(this.sfDataGrid1_CellClick);
|
||||
@@ -363,7 +367,6 @@ namespace OnDoc.UICintrols
|
||||
// splitContainer1.Panel1
|
||||
//
|
||||
this.splitContainer1.Panel1.Controls.Add(this.sfDataGrid1);
|
||||
this.splitContainer1.Panel1.Controls.Add(this.dokwerte1);
|
||||
//
|
||||
// splitContainer1.Panel2
|
||||
//
|
||||
@@ -372,24 +375,6 @@ namespace OnDoc.UICintrols
|
||||
this.splitContainer1.SplitterDistance = 343;
|
||||
this.splitContainer1.TabIndex = 2;
|
||||
//
|
||||
// dokwerte1
|
||||
//
|
||||
this.dokwerte1.Dock = System.Windows.Forms.DockStyle.Right;
|
||||
this.dokwerte1.Location = new System.Drawing.Point(1709, 0);
|
||||
this.dokwerte1.Name = "dokwerte1";
|
||||
this.dokwerte1.Size = new System.Drawing.Size(0, 343);
|
||||
this.dokwerte1.TabIndex = 1;
|
||||
//
|
||||
// docPreview1
|
||||
//
|
||||
this.docPreview1.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.docPreview1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.docPreview1.Location = new System.Drawing.Point(0, 0);
|
||||
this.docPreview1.Name = "docPreview1";
|
||||
this.docPreview1.Size = new System.Drawing.Size(1709, 347);
|
||||
this.docPreview1.TabIndex = 0;
|
||||
this.docPreview1.ZoomPercentage = 0;
|
||||
//
|
||||
// panel2
|
||||
//
|
||||
this.panel2.BackColor = System.Drawing.Color.WhiteSmoke;
|
||||
@@ -740,6 +725,7 @@ namespace OnDoc.UICintrols
|
||||
this.ribbonTabAnsicht.Panels.Add(this.RibbonPannelAnsicht);
|
||||
this.ribbonTabAnsicht.Panels.Add(this.ribbonPanelVorschau);
|
||||
this.ribbonTabAnsicht.Panels.Add(this.ribbonPanelAttribute);
|
||||
this.ribbonTabAnsicht.Panels.Add(this.ribbonPanel1);
|
||||
this.ribbonTabAnsicht.Text = "Ansicht";
|
||||
//
|
||||
// RibbonPannelAnsicht
|
||||
@@ -1003,7 +989,7 @@ namespace OnDoc.UICintrols
|
||||
this.RibbonTabAdmin.Panels.Add(this.ribbonAnmelden);
|
||||
this.RibbonTabAdmin.Panels.Add(this.ribbonVorlagen);
|
||||
this.RibbonTabAdmin.Panels.Add(this.ribbonBerechtigung);
|
||||
this.RibbonTabAdmin.Panels.Add(this.ribbonPanel1);
|
||||
this.RibbonTabAdmin.Panels.Add(this.ribbonpanelanalyse);
|
||||
this.RibbonTabAdmin.Text = "Administration";
|
||||
//
|
||||
// RibbonPanelDiverses
|
||||
@@ -1039,7 +1025,7 @@ namespace OnDoc.UICintrols
|
||||
// ribbonVorlagen
|
||||
//
|
||||
this.ribbonVorlagen.ButtonMoreVisible = false;
|
||||
this.ribbonVorlagen.FlowsTo = System.Windows.Forms.RibbonPanelFlowDirection.Right;
|
||||
this.ribbonVorlagen.FlowsTo = System.Windows.Forms.RibbonPanelFlowDirection.Left;
|
||||
this.ribbonVorlagen.Items.Add(this.RibbonButtonDokumenttyp);
|
||||
this.ribbonVorlagen.Items.Add(this.RibbonButtonVorlagen);
|
||||
this.ribbonVorlagen.Items.Add(this.ribbonButtonVorlagenfeldregel);
|
||||
@@ -1052,7 +1038,7 @@ namespace OnDoc.UICintrols
|
||||
this.RibbonButtonDokumenttyp.LargeImage = ((System.Drawing.Image)(resources.GetObject("RibbonButtonDokumenttyp.LargeImage")));
|
||||
this.RibbonButtonDokumenttyp.Name = "RibbonButtonDokumenttyp";
|
||||
this.RibbonButtonDokumenttyp.SmallImage = ((System.Drawing.Image)(resources.GetObject("RibbonButtonDokumenttyp.SmallImage")));
|
||||
this.RibbonButtonDokumenttyp.Text = "Dokumenttyp";
|
||||
this.RibbonButtonDokumenttyp.Text = "Vorlagentyp";
|
||||
this.RibbonButtonDokumenttyp.Click += new System.EventHandler(this.RibbonButtonDokumenttyp_Click);
|
||||
//
|
||||
// RibbonButtonVorlagen
|
||||
@@ -1109,12 +1095,12 @@ namespace OnDoc.UICintrols
|
||||
this.ribbonButtonSysadmins.Text = "Sys-Admins";
|
||||
this.ribbonButtonSysadmins.Click += new System.EventHandler(this.ribbonButtonSysadmins_Click);
|
||||
//
|
||||
// ribbonPanel1
|
||||
// ribbonpanelanalyse
|
||||
//
|
||||
this.ribbonPanel1.Items.Add(this.ribbonbuttonedklog);
|
||||
this.ribbonPanel1.Items.Add(this.ribbonbuttonedkverarbeitung);
|
||||
this.ribbonPanel1.Name = "ribbonPanel1";
|
||||
this.ribbonPanel1.Text = "Analyse-Tools";
|
||||
this.ribbonpanelanalyse.Items.Add(this.ribbonbuttonedklog);
|
||||
this.ribbonpanelanalyse.Items.Add(this.ribbonbuttonedkverarbeitung);
|
||||
this.ribbonpanelanalyse.Name = "ribbonpanelanalyse";
|
||||
this.ribbonpanelanalyse.Text = "Analyse-Tools";
|
||||
//
|
||||
// ribbonbuttonedklog
|
||||
//
|
||||
@@ -1166,12 +1152,46 @@ namespace OnDoc.UICintrols
|
||||
this.ribbonButton5.SmallImage = ((System.Drawing.Image)(resources.GetObject("ribbonButton5.SmallImage")));
|
||||
this.ribbonButton5.Text = "Load";
|
||||
//
|
||||
// dokwerte1
|
||||
//
|
||||
this.dokwerte1.Dock = System.Windows.Forms.DockStyle.Right;
|
||||
this.dokwerte1.Location = new System.Drawing.Point(1709, 153);
|
||||
this.dokwerte1.Name = "dokwerte1";
|
||||
this.dokwerte1.Size = new System.Drawing.Size(0, 694);
|
||||
this.dokwerte1.TabIndex = 7;
|
||||
//
|
||||
// docPreview1
|
||||
//
|
||||
this.docPreview1.BackColor = System.Drawing.SystemColors.Control;
|
||||
this.docPreview1.Dock = System.Windows.Forms.DockStyle.Fill;
|
||||
this.docPreview1.Location = new System.Drawing.Point(0, 0);
|
||||
this.docPreview1.Name = "docPreview1";
|
||||
this.docPreview1.Size = new System.Drawing.Size(1709, 347);
|
||||
this.docPreview1.TabIndex = 0;
|
||||
this.docPreview1.ZoomPercentage = 0;
|
||||
//
|
||||
// ribbonPanel1
|
||||
//
|
||||
this.ribbonPanel1.Items.Add(this.ribbonButton6);
|
||||
this.ribbonPanel1.Name = "ribbonPanel1";
|
||||
this.ribbonPanel1.Text = "Dokumentliste";
|
||||
//
|
||||
// ribbonButton6
|
||||
//
|
||||
this.ribbonButton6.Image = global::OnDoc.Properties.Resources.Refresh_32x32_32;
|
||||
this.ribbonButton6.LargeImage = global::OnDoc.Properties.Resources.Refresh_32x32_32;
|
||||
this.ribbonButton6.Name = "ribbonButton6";
|
||||
this.ribbonButton6.SmallImage = global::OnDoc.Properties.Resources.Refresh_24x24_32;
|
||||
this.ribbonButton6.Text = "Aktualisieren";
|
||||
this.ribbonButton6.Click += new System.EventHandler(this.ribbonButton6_Click);
|
||||
//
|
||||
// DokList
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.Controls.Add(this.lblToApprove);
|
||||
this.Controls.Add(this.splitContainer1);
|
||||
this.Controls.Add(this.dokwerte1);
|
||||
this.Controls.Add(this.lblToApprove);
|
||||
this.Controls.Add(this.panel2);
|
||||
this.Controls.Add(this.ribbon2);
|
||||
this.Name = "DokList";
|
||||
@@ -1297,14 +1317,17 @@ namespace OnDoc.UICintrols
|
||||
private System.Windows.Forms.RibbonTab RibbonTabNativVorlagen;
|
||||
private System.Windows.Forms.RibbonPanel ribbonPanelNativVorlagen;
|
||||
private System.Windows.Forms.RibbonButton ribbonButtonNativVorlagen;
|
||||
private UIControls.Dokwerte dokwerte1;
|
||||
private System.Windows.Forms.ToolStripMenuItem attributeAnzeigenVersteckenToolStripMenuItem;
|
||||
private System.Windows.Forms.RibbonPanel ribbonPanelAttribute;
|
||||
private System.Windows.Forms.RibbonButton RibbonButtonAttributeEinAusblenden;
|
||||
private System.Windows.Forms.RibbonButton ribbonButtonVorlagenfeldregel;
|
||||
private System.Windows.Forms.RibbonButton ribbonButtonSysadmins;
|
||||
private System.Windows.Forms.RibbonPanel ribbonPanel1;
|
||||
private System.Windows.Forms.RibbonPanel ribbonpanelanalyse;
|
||||
private System.Windows.Forms.RibbonButton ribbonbuttonedklog;
|
||||
private System.Windows.Forms.RibbonButton ribbonbuttonedkverarbeitung;
|
||||
private Syncfusion.Pdf.PdfConfig pdfConfig2;
|
||||
private UIControls.Dokwerte dokwerte1;
|
||||
private System.Windows.Forms.RibbonPanel ribbonPanel1;
|
||||
private System.Windows.Forms.RibbonButton ribbonButton6;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -180,6 +180,7 @@ namespace OnDoc.UICintrols
|
||||
}
|
||||
public void refresh_dokumente(string layout = "")
|
||||
{
|
||||
|
||||
if (datafilter != "")
|
||||
{
|
||||
refresh_dokumente_filtered(layout);
|
||||
@@ -200,7 +201,10 @@ namespace OnDoc.UICintrols
|
||||
//this.sfDataGrid1.DataSource = dokumente;
|
||||
sfDataGrid1.View.AutoExpandGroups = true;
|
||||
this.timer1.Enabled = true;
|
||||
|
||||
//foreach (GridColumn gd in sfDataGrid1.Columns)
|
||||
//{
|
||||
// sfDataGrid1.GroupColumnDescriptions.Add(new GroupColumnDescription() { ColumnName = gd.MappingName });
|
||||
//}
|
||||
}
|
||||
|
||||
public void refresh_dokumente_filtered(string layout = "")
|
||||
@@ -253,6 +257,8 @@ namespace OnDoc.UICintrols
|
||||
archivierenToolStripMenuItem.Enabled = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (vorschauposition == "Keine Vorschau") { return; }
|
||||
if (Separate_Vorschau_offen)
|
||||
{
|
||||
@@ -528,7 +534,7 @@ namespace OnDoc.UICintrols
|
||||
docPreview1.Hide_Editbuttons();
|
||||
break;
|
||||
case "Vorschau rechts":
|
||||
this.splitContainer1.SplitterDistance = this.Width / 2;
|
||||
this.splitContainer1.SplitterDistance = this.Width / 3;
|
||||
this.splitContainer1.Orientation = Orientation.Vertical;
|
||||
docPreview1.Visible = true;
|
||||
docPreview1.Show_Doc(selected_dokumentid);
|
||||
@@ -596,6 +602,10 @@ namespace OnDoc.UICintrols
|
||||
createnewdoc(0, 0);
|
||||
}
|
||||
|
||||
public void set_vorschau_aus_dp()
|
||||
{
|
||||
tsrbvorschau.SelectedIndex = 2;
|
||||
}
|
||||
public void StartPruefung()
|
||||
{
|
||||
ribbonButtonApproval_Click(null, null);
|
||||
@@ -726,6 +736,7 @@ namespace OnDoc.UICintrols
|
||||
dB.Exec_SQL("Update dokument set verantwortlich=" + ma.result + " where dokumentid = '" + selected_dokumentid + "'");
|
||||
dB = null;
|
||||
Logging.DocLog.Info("Verantwortung zugewiesen auf " + ma.result.ToString(), "Doklist", selected_dokumentid, selected_partnernr, "Verantwortung zugewiesen");
|
||||
refresh_dokumente();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -781,9 +792,10 @@ namespace OnDoc.UICintrols
|
||||
|
||||
private void sfDataGrid1_DrawCell(object sender, DrawCellEventArgs e)
|
||||
{
|
||||
|
||||
|
||||
if (e.Column.MappingName == "zu_retournieren")
|
||||
{
|
||||
e.Handled = true;
|
||||
e.Column.CellStyle.HorizontalAlignment = HorizontalAlignment.Center;
|
||||
e.Handled = true;
|
||||
var selectedItem = e.DataRow;
|
||||
@@ -795,6 +807,7 @@ namespace OnDoc.UICintrols
|
||||
e.Graphics.DrawLine(borderPen, e.Bounds.Right, e.Bounds.Top, e.Bounds.Right, e.Bounds.Bottom);
|
||||
e.Graphics.DrawLine(borderPen, e.Bounds.Left, e.Bounds.Bottom, e.Bounds.Right, e.Bounds.Bottom);
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (e.Column.MappingName == "fileext")
|
||||
{
|
||||
@@ -834,6 +847,7 @@ namespace OnDoc.UICintrols
|
||||
{
|
||||
e.Graphics.DrawImage(OnDoc.Properties.Resources.Word_Edit_24x24_32, e.Bounds.X + 20, e.Bounds.Y);
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (dataRow[0].ToString().Substring(0, 1).ToUpper() == "X")
|
||||
{
|
||||
@@ -867,9 +881,11 @@ namespace OnDoc.UICintrols
|
||||
Pen borderPen = new Pen(Color.LightGray);
|
||||
e.Graphics.DrawLine(borderPen, e.Bounds.Right, e.Bounds.Top, e.Bounds.Right, e.Bounds.Bottom);
|
||||
e.Graphics.DrawLine(borderPen, e.Bounds.Left, e.Bounds.Bottom, e.Bounds.Right, e.Bounds.Bottom);
|
||||
return;
|
||||
}
|
||||
catch { }
|
||||
}
|
||||
e.Handled = false;
|
||||
}
|
||||
|
||||
private void zellenwertInZwischenablageKopierenToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
@@ -1205,6 +1221,7 @@ namespace OnDoc.UICintrols
|
||||
security = null;
|
||||
ribbonVorlagen.Visible = AppParams.isSysadmin;
|
||||
ribbonBerechtigung.Visible = AppParams.isSysadmin;
|
||||
ribbonpanelanalyse.Visible = AppParams.isSysadmin;
|
||||
RibbonTabAdmin.Visible = false;
|
||||
RibbonTabAdmin.Visible = true;
|
||||
if (AppParams.isSysadmin)
|
||||
@@ -1337,9 +1354,9 @@ namespace OnDoc.UICintrols
|
||||
this.sfDataGrid1.Deserialize(ms);
|
||||
|
||||
}
|
||||
//sfDataGrid1.ShowToolTip = true;
|
||||
//sfDataGrid1.ToolTipOption.AutoPopDelay = 500;
|
||||
//sfDataGrid1.ToolTipOption.InitialDelay = 500;
|
||||
sfDataGrid1.ShowToolTip = true;
|
||||
sfDataGrid1.ToolTipOption.AutoPopDelay = 500;
|
||||
sfDataGrid1.ToolTipOption.InitialDelay = 500;
|
||||
sfDataGrid1.ShowToolTip = true;
|
||||
System.Windows.Forms.Application.DoEvents();
|
||||
|
||||
@@ -1521,6 +1538,7 @@ namespace OnDoc.UICintrols
|
||||
{
|
||||
e.ToolTipInfo.Items.Clear();
|
||||
Syncfusion.WinForms.Controls.ToolTipItem tt = new Syncfusion.WinForms.Controls.ToolTipItem();
|
||||
tt.Text = "Ich bin der Tooltip";
|
||||
e.ToolTipInfo.Items.Add(tt);
|
||||
}
|
||||
|
||||
@@ -1670,6 +1688,36 @@ namespace OnDoc.UICintrols
|
||||
TableEditor tb = new TableEditor("OnDoc_EDK_Routing");
|
||||
tb.Show();
|
||||
}
|
||||
|
||||
private void sfDataGrid1_SelectionChanged(object sender, SelectionChangedEventArgs e)
|
||||
{
|
||||
var records = sfDataGrid1.View.GetSelectedRecords();
|
||||
if (records.Count > 1)
|
||||
{
|
||||
foreach (var record in records)
|
||||
{
|
||||
var datarow = record as DataRowView;
|
||||
string documentid = datarow["Bearbeitung_Zwingend"].ToString();
|
||||
if (datarow["Bearbeitung_Zwingend"].ToString() == "True")
|
||||
{
|
||||
RibbonButtonArchivToOnBase.Enabled = false;
|
||||
archivierenToolStripMenuItem.Enabled = false;
|
||||
break;
|
||||
}
|
||||
if (datarow["ToApprove"].ToString() == "True" && datarow["approved"].ToString() == "False")
|
||||
{
|
||||
RibbonButtonArchivToOnBase.Enabled = false;
|
||||
archivierenToolStripMenuItem.Enabled = false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private void ribbonButton6_Click(object sender, EventArgs e)
|
||||
{
|
||||
refresh_dokumente();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -506,55 +506,55 @@
|
||||
<data name="ribbonButtonSysadmins.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
vwAADr8BOAVTJAAAABpJREFUWEftwQEBAAAAgiD/r25IQAAAAMC5GhAgAAGdeElDAAAAAElFTkSuQmCC
|
||||
vAAADrwBlbxySQAAABpJREFUWEftwQEBAAAAgiD/r25IQAAAAMC5GhAgAAGdeElDAAAAAElFTkSuQmCC
|
||||
</value>
|
||||
</data>
|
||||
<data name="ribbonButtonSysadmins.LargeImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
vwAADr8BOAVTJAAAABpJREFUWEftwQEBAAAAgiD/r25IQAAAAMC5GhAgAAGdeElDAAAAAElFTkSuQmCC
|
||||
vAAADrwBlbxySQAAABpJREFUWEftwQEBAAAAgiD/r25IQAAAAMC5GhAgAAGdeElDAAAAAElFTkSuQmCC
|
||||
</value>
|
||||
</data>
|
||||
<data name="ribbonButtonSysadmins.SmallImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
vwAADr8BOAVTJAAAABNJREFUOE9jGAWjYBSMAjBgYAAABBAAAadEfGMAAAAASUVORK5CYII=
|
||||
vAAADrwBlbxySQAAABNJREFUOE9jGAWjYBSMAjBgYAAABBAAAadEfGMAAAAASUVORK5CYII=
|
||||
</value>
|
||||
</data>
|
||||
<data name="ribbonbuttonedklog.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wAAADsABataJCQAAABpJREFUWEftwQEBAAAAgiD/r25IQAAAAMC5GhAgAAGdeElDAAAAAElFTkSuQmCC
|
||||
vAAADrwBlbxySQAAABpJREFUWEftwQEBAAAAgiD/r25IQAAAAMC5GhAgAAGdeElDAAAAAElFTkSuQmCC
|
||||
</value>
|
||||
</data>
|
||||
<data name="ribbonbuttonedklog.LargeImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wAAADsABataJCQAAABpJREFUWEftwQEBAAAAgiD/r25IQAAAAMC5GhAgAAGdeElDAAAAAElFTkSuQmCC
|
||||
vAAADrwBlbxySQAAABpJREFUWEftwQEBAAAAgiD/r25IQAAAAMC5GhAgAAGdeElDAAAAAElFTkSuQmCC
|
||||
</value>
|
||||
</data>
|
||||
<data name="ribbonbuttonedklog.SmallImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wAAADsABataJCQAAABNJREFUOE9jGAWjYBSMAjBgYAAABBAAAadEfGMAAAAASUVORK5CYII=
|
||||
vAAADrwBlbxySQAAABNJREFUOE9jGAWjYBSMAjBgYAAABBAAAadEfGMAAAAASUVORK5CYII=
|
||||
</value>
|
||||
</data>
|
||||
<data name="ribbonbuttonedkverarbeitung.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wgAADsIBFShKgAAAABpJREFUWEftwQEBAAAAgiD/r25IQAAAAMC5GhAgAAGdeElDAAAAAElFTkSuQmCC
|
||||
vAAADrwBlbxySQAAABpJREFUWEftwQEBAAAAgiD/r25IQAAAAMC5GhAgAAGdeElDAAAAAElFTkSuQmCC
|
||||
</value>
|
||||
</data>
|
||||
<data name="ribbonbuttonedkverarbeitung.LargeImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wgAADsIBFShKgAAAABpJREFUWEftwQEBAAAAgiD/r25IQAAAAMC5GhAgAAGdeElDAAAAAElFTkSuQmCC
|
||||
vAAADrwBlbxySQAAABpJREFUWEftwQEBAAAAgiD/r25IQAAAAMC5GhAgAAGdeElDAAAAAElFTkSuQmCC
|
||||
</value>
|
||||
</data>
|
||||
<data name="ribbonbuttonedkverarbeitung.SmallImage" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAO
|
||||
wgAADsIBFShKgAAAABNJREFUOE9jGAWjYBSMAjBgYAAABBAAAadEfGMAAAAASUVORK5CYII=
|
||||
vAAADrwBlbxySQAAABNJREFUOE9jGAWjYBSMAjBgYAAABBAAAadEfGMAAAAASUVORK5CYII=
|
||||
</value>
|
||||
</data>
|
||||
<metadata name="pdfConfig1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
@@ -581,4 +581,7 @@
|
||||
vAAADrwBlbxySQAAABNJREFUOE9jGAWjYBSMAjBgYAAABBAAAadEfGMAAAAASUVORK5CYII=
|
||||
</value>
|
||||
</data>
|
||||
<metadata name="pdfConfig2.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>464, 17</value>
|
||||
</metadata>
|
||||
</root>
|
||||
2
Client/UIControls/Dokwerte.Designer.cs
generated
@@ -65,7 +65,7 @@
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label1.Location = new System.Drawing.Point(3, 9);
|
||||
this.label1.Location = new System.Drawing.Point(3, 13);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(79, 20);
|
||||
this.label1.TabIndex = 0;
|
||||
|
||||
1
Client/UIControls/Partnersuche.Designer.cs
generated
@@ -107,6 +107,7 @@
|
||||
this.trefferlistedata.Size = new System.Drawing.Size(531, 222);
|
||||
this.trefferlistedata.TabIndex = 0;
|
||||
this.trefferlistedata.Text = "sfDataGrid1";
|
||||
this.trefferlistedata.DrawCell += new Syncfusion.WinForms.DataGrid.Events.DrawCellEventHandler(this.trefferlistedata_DrawCell);
|
||||
this.trefferlistedata.SelectionChanged += new Syncfusion.WinForms.DataGrid.Events.SelectionChangedEventHandler(this.trefferlistedata_SelectionChanged);
|
||||
this.trefferlistedata.DoubleClick += new System.EventHandler(this.trefferlistedata_DoubleClick);
|
||||
//
|
||||
|
||||
@@ -15,6 +15,7 @@ using Syncfusion.WinForms.DataGrid;
|
||||
using System.Web.UI.WebControls;
|
||||
using Syncfusion.Data;
|
||||
using Syncfusion.WinForms.DataGrid.Interactivity;
|
||||
using System.IO;
|
||||
|
||||
namespace OnDoc.UIControls
|
||||
{
|
||||
@@ -38,7 +39,8 @@ namespace OnDoc.UIControls
|
||||
trefferlistedata.DataSource = clsPartner.get_partnerliste();
|
||||
try
|
||||
{
|
||||
TableHelper.FormatTable(ref clsPartner.partnerliste, "Partner", ref trefferlistedata);
|
||||
TableHelper.FormatTable(ref clsPartner.partnerliste, "Partner", ref trefferlistedata, true);
|
||||
|
||||
if (trefferlistedata.RowCount > 0) {sfButton1.Enabled = true;}
|
||||
trefferlistedata.SelectedIndex = 0;
|
||||
}
|
||||
@@ -47,12 +49,15 @@ namespace OnDoc.UIControls
|
||||
|
||||
private void btnsuche_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
if (txtPartnerNr.Text.Trim() != "")
|
||||
{
|
||||
string s = txtPartnerNr.Text.Replace(".", "").Trim();
|
||||
if (DivFnkt.IsNumeric(s))
|
||||
{
|
||||
trefferlistedata.DataSource = clsPartner.search_partner(s, 50, 0);
|
||||
TableHelper.FormatTable(ref clsPartner.partnerliste, "Partner", ref trefferlistedata,true);
|
||||
|
||||
if (clsPartner.partnerliste.Rows.Count == 1)
|
||||
{
|
||||
trefferlistedata.SelectedIndex = 0;
|
||||
@@ -64,6 +69,7 @@ namespace OnDoc.UIControls
|
||||
{
|
||||
string s = txtKurzname.Text.Trim();
|
||||
trefferlistedata.DataSource = clsPartner.search_partner(s, 50, 1);
|
||||
TableHelper.FormatTable(ref clsPartner.partnerliste, "Partner", ref trefferlistedata,true);
|
||||
if (clsPartner.partnerliste.Rows.Count == 1)
|
||||
{
|
||||
trefferlistedata.SelectedIndex = 0;
|
||||
@@ -72,7 +78,7 @@ namespace OnDoc.UIControls
|
||||
}
|
||||
try
|
||||
{
|
||||
TableHelper.FormatTable(ref clsPartner.partnerliste, "Partner", ref trefferlistedata);
|
||||
TableHelper.FormatTable(ref clsPartner.partnerliste, "Partner", ref trefferlistedata,true);
|
||||
trefferlistedata.SelectedIndex = 0;
|
||||
try
|
||||
{
|
||||
@@ -140,8 +146,7 @@ namespace OnDoc.UIControls
|
||||
|
||||
void TableControl_DoubleClick(object sender, System.EventArgs e)
|
||||
{
|
||||
|
||||
try
|
||||
try
|
||||
{
|
||||
partnernr = Convert.ToInt32(TableHelper.GetCellCValue(ref this.trefferlistedata, "nrpar00"));
|
||||
partnerkurzname = TableHelper.GetCellCValue(ref this.trefferlistedata, "bkpar00");
|
||||
@@ -152,5 +157,28 @@ namespace OnDoc.UIControls
|
||||
catch { }
|
||||
|
||||
}
|
||||
|
||||
private void trefferlistedata_DrawCell(object sender, Syncfusion.WinForms.DataGrid.Events.DrawCellEventArgs e)
|
||||
{
|
||||
if (e.Column.MappingName == "Typ")
|
||||
{
|
||||
var selectedItem = e.DataRow;
|
||||
var dataRow = (e.DataRow.RowData as DataRowView).Row;
|
||||
if (Convert.ToInt32(dataRow["Typ"]) == 1)
|
||||
{
|
||||
e.Graphics.DrawImage(OnDoc.Properties.Resources.Partner_16x16_32, e.Bounds.X+5 , e.Bounds.Y+3);
|
||||
}
|
||||
else
|
||||
{
|
||||
e.Graphics.DrawImage(OnDoc.Properties.Resources.Person_16x16_32,e.Bounds.X + 5, e.Bounds.Y + 3);
|
||||
}
|
||||
Pen borderPen = new Pen(Color.LightGray);
|
||||
e.Graphics.DrawLine(borderPen, e.Bounds.Right, e.Bounds.Top, e.Bounds.Right, e.Bounds.Bottom);
|
||||
e.Graphics.DrawLine(borderPen, e.Bounds.Left, e.Bounds.Bottom, e.Bounds.Right, e.Bounds.Bottom);
|
||||
e.Handled = true;
|
||||
return;
|
||||
}
|
||||
e.Handled = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -291,7 +291,7 @@ namespace OnDoc.UIControls
|
||||
{
|
||||
bpperson_error = true;
|
||||
bpperson_error_type = 1;
|
||||
if (!ausDokumentpaket) MessageBox.Show("Das gewöhlte Dokument muss für eine Person erstellt werden", "BP/Person", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
if (!ausDokumentpaket) MessageBox.Show("Das gewählte Dokument muss für eine Person erstellt werden", "BP/Person", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
return false;
|
||||
|
||||
}
|
||||
@@ -299,7 +299,7 @@ namespace OnDoc.UIControls
|
||||
{
|
||||
bpperson_error = true;
|
||||
bpperson_error_type = 2;
|
||||
if(!ausDokumentpaket) MessageBox.Show("Das gewöhlte Dokument muss für ein BP erstellt werden", "BP/Person", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
if(!ausDokumentpaket) MessageBox.Show("Das gewählte Dokument muss für ein BP erstellt werden", "BP/Person", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
BIN
Images/Icons/Icons/Blue/Attribut.ico
Normal file
|
After Width: | Height: | Size: 24 KiB |
BIN
Images/Icons/Icons/Blue/Images/Attribut_16x16-32.png
Normal file
|
After Width: | Height: | Size: 310 B |
BIN
Images/Icons/Icons/Blue/Images/Attribut_24x24-32.png
Normal file
|
After Width: | Height: | Size: 544 B |
BIN
Images/Icons/Icons/Blue/Images/Attribut_256x256-32.png
Normal file
|
After Width: | Height: | Size: 7.2 KiB |
BIN
Images/Icons/Icons/Blue/Images/Attribut_32x32-32.png
Normal file
|
After Width: | Height: | Size: 702 B |
BIN
Images/Icons/Icons/Blue/Images/Attribut_48x48-32.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
Images/Icons/Icons/Blue/Images/Person_16x16-32.png
Normal file
|
After Width: | Height: | Size: 737 B |
BIN
Images/Icons/Icons/Blue/Images/Person_24x24-32.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
Images/Icons/Icons/Blue/Images/Person_256x256-32.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
Images/Icons/Icons/Blue/Images/Person_32x32-32.png
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
Images/Icons/Icons/Blue/Images/Person_48x48-32.png
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
Images/Icons/Icons/Blue/Person.ico
Normal file
|
After Width: | Height: | Size: 33 KiB |
@@ -51,6 +51,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Excel_Test", "Excel_Test\Ex
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CSVNET", "CSVNET\CSVNET.csproj", "{417A61BC-206D-4895-BAAE-E6155AFBDF2A}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ADDemo", "ADDemo\ADDemo.csproj", "{16CA57CE-B430-4B04-B9BE-7E4FF909C7A6}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
@@ -141,6 +143,10 @@ Global
|
||||
{417A61BC-206D-4895-BAAE-E6155AFBDF2A}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{417A61BC-206D-4895-BAAE-E6155AFBDF2A}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{417A61BC-206D-4895-BAAE-E6155AFBDF2A}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{16CA57CE-B430-4B04-B9BE-7E4FF909C7A6}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{16CA57CE-B430-4B04-B9BE-7E4FF909C7A6}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{16CA57CE-B430-4B04-B9BE-7E4FF909C7A6}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{16CA57CE-B430-4B04-B9BE-7E4FF909C7A6}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
||||
@@ -14,7 +14,7 @@ using System.Reflection;
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("OnDocWPF")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+8ade4840637f19ad2c5b1c06a190fc91690c8008")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+2c42687a409e21f11fb588f6c6361ef8df3802ab")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("OnDocWPF")]
|
||||
[assembly: System.Reflection.AssemblyTitleAttribute("OnDocWPF")]
|
||||
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
||||
|
||||
@@ -1 +1 @@
|
||||
4041e19d89e81e682917f0679ad0fed2fbf4d7081949f8b08cfeec662ba17e83
|
||||
e215958530108d9bd3afc5dc719299b68782a9fb8845a54a880b2756be5075f2
|
||||
|
||||