Update 20260109

This commit is contained in:
Stefan Hutter
2026-01-09 08:37:07 +01:00
parent e377f08ccd
commit 49155d898f
229 changed files with 28984 additions and 39486 deletions

View File

@@ -278,8 +278,11 @@ namespace ZZPDFTest
private void button7_Click(object sender, EventArgs e)
{
string jsonstring = System.IO.File.ReadAllText(@"E:\Software-Projekte\OnDoc\Office_Vorlagen\essdemo.json");
string jsonstring = System.IO.File.ReadAllText(@"E:\Software-Projekte\OnDoc\APIJson\essdemo.json");
dynamic dataj = JsonConvert.DeserializeObject(jsonstring);
Console.WriteLine(dataj.Bp.Zustaendiger.TgNummer);
@@ -306,7 +309,26 @@ namespace ZZPDFTest
docitemlist.Add(d);
}
Database.DB db = new Database.DB(@"Data Source=shu01\shu00;Initial Catalog=edoka_dms;Persist Security Info=True;User ID=sa;Password=*shu29;");
db.Get_Tabledata("Select * from vorlagenfeld where dokumenttypnr="+dataj.Dokumenttyp.ToString()+" and aktiv=1 and ess_field_class_id<>0",false,true);
foreach (DataRow dr in db.dsdaten.Tables[0].Rows)
{
foreach(docitem di in docitemlist)
{
if ("$."+di.itemname == dr["ess_feldname"].ToString())
{
di.bmstart = dr["beginntextmarke"].ToString();
di.bmend= dr["endetextmarke"].ToString();
di.field= dr["feldname"].ToString();
di.top = dr["ess_img_top"].ToString();
di.left = dr["ess_img_left"].ToString();
di.width = dr["ess_img_width"].ToString();
di.height = dr["ess_img_height"].ToString();
di.type = dr["ess_field_class_id"].ToString();
}
}
}
}
@@ -316,6 +338,16 @@ namespace ZZPDFTest
public string itemtag;
public string itemvalue;
public string doclinkname;
public string type;
public string field;
public string bmstart;
public string bmend;
public string top;
public string left;
public string width;
public string height;
}
private IEnumerable<(string path, string key, string value)> GetNodes(JToken token)
{

View File

@@ -33,6 +33,10 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Database, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\Database\bin\Debug\Database.dll</HintPath>
</Reference>
<Reference Include="Model, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\Model\bin\Debug\Model.dll</HintPath>

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.

File diff suppressed because it is too large Load Diff

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -1 +1 @@
cbe39974ee20b6613a09cfba2f04e23f3b4c29eb29b2d898bdc2cd0340c00bb1
ef4aab12c69422f1cd199a582bc413eb9b193c5f2c1e8f14f7e2a40ece507064

Binary file not shown.

Binary file not shown.