Commit ed334b7b authored by Hanen Deghais's avatar Hanen Deghais

ajout solution to git

parents
Pipeline #39790 failed with stages
<?xml version="1.0"?>
<configuration>
<connectionStrings>
<add name="OraConnection" connectionString="user id=nova;Password=oRP0zI6K4GU=;server=10.12.12.21;direct=True;sid=smart02;port=1521;persist security info=True;Pooling=True;Unicode=True" providerName="Devart.Data.OracleClient"/>
</connectionStrings>
<appSettings>
<add key="PAS" value="10"/>
<add key="Destination" value="C:\Users\hanen\Documents\test\"/>
</appSettings>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<connectionStrings>
<add name="OraConnection" connectionString="user id=nova;Password=oRP0zI6K4GU=;server=10.12.12.21;direct=True;sid=smart06;port=1521;persist security info=True;Pooling=True;Unicode=True" providerName="Devart.Data.OracleClient" />
</connectionStrings>
<appSettings>
<add key="CLES" value="PWhT331waIEz2xjhffpR9T4rYyAa:s9uh56y0NSnG5wg_23sqMHSTWfEa" />
<add key="PAS" value="10"/>
<add key="STA_PRJ" value="PROJECT"/>
</appSettings>
</configuration>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="3.5" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{7F69CD6F-7C75-4EBB-B0B5-D41FEFE32E52}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>CallApiPalexpo</RootNamespace>
<AssemblyName>CallApiPalexpo</AssemblyName>
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<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' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Devart.Data, Version=5.0.170.0, Culture=neutral, PublicKeyToken=09af7300eec23701, processorArchitecture=MSIL">
<Private>True</Private>
</Reference>
<Reference Include="Devart.Data.Linq, Version=2.0.9.0, Culture=neutral, PublicKeyToken=09af7300eec23701, processorArchitecture=MSIL" />
<Reference Include="Devart.Data.Oracle, Version=6.0.70.0, Culture=neutral, PublicKeyToken=09af7300eec23701, processorArchitecture=MSIL">
<Private>True</Private>
</Reference>
<Reference Include="Devart.Data.Oracle.Linq, Version=2.0.9.0, Culture=neutral, PublicKeyToken=09af7300eec23701, processorArchitecture=MSIL">
<Private>True</Private>
</Reference>
<Reference Include="Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\Downloads\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.configuration" />
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data.Linq">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Net">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Web.Extensions">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Xml.Linq">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data.DataSetExtensions">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="ContextDataBase.cs" />
<Compile Include="CryptorEngine.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
\ No newline at end of file
//------------------------------------------------------------------------------
// This is auto-generated code.
//------------------------------------------------------------------------------
// This code was generated by Entity Developer tool.
// Code is generated on: 15.09.2010 16:50:34
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//------------------------------------------------------------------------------
using System.Data.Linq;
using System.Data.Linq.Mapping;
using System.Data;
using System.Collections.Generic;
using System.Reflection;
using System.Linq;
using System.Linq.Expressions;
using System.ComponentModel;
using System;
using System.Runtime.Serialization;
[System.Data.Linq.Mapping.DatabaseAttribute(Name = "NOVA")]
[ProviderAttribute(typeof(Devart.Data.Oracle.Linq.Provider.OracleDataProvider))]
public partial class ContextDataBase : Devart.Data.Linq.DataContext
{
private static System.Data.Linq.Mapping.MappingSource mappingSource = new Devart.Data.Linq.Mapping.AttributeMappingSource();
#region Extensibility Method Definitions
partial void OnCreated();
partial void InsertZerr(Zerr instance);
partial void UpdateZerr(Zerr instance);
partial void DeleteZerr(Zerr instance);
partial void InsertSSTA(SSTA instance);
partial void UpdateSSTA(SSTA instance);
partial void DeleteSSTA(SSTA instance);
partial void InsertZINS(ZINS instance);
partial void UpdateZINS(ZINS instance);
partial void DeleteZINS(ZINS instance);
#endregion
public ContextDataBase() :
base(@"user id=nova;Password=NOVA;server=10.12.12.114;direct=True;sid=novacldev;port=1525;persist security info=True;Unicode=True", mappingSource)
{
OnCreated();
}
public ContextDataBase(string connection) :
base(connection, mappingSource)
{
// this.Connection.ConnectionString = CryptorEngine.CryptConnexionString(connection);
OnCreated();
}
public ContextDataBase(System.Data.IDbConnection connection) :
base(connection, mappingSource)
{
OnCreated();
}
public ContextDataBase(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
base(connection, mappingSource)
{
OnCreated();
}
public ContextDataBase(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
base(connection, mappingSource)
{
OnCreated();
}
public Devart.Data.Linq.Table<ZINS> ZINS
{
get
{
return this.GetTable<ZINS>();
}
}
public Devart.Data.Linq.Table<SSTA> SSTAs
{
get
{
return this.GetTable<SSTA>();
}
}
public Devart.Data.Linq.Table<Zerr> Zerrs
{
get
{
return this.GetTable<Zerr>();
}
}
}
[Table(Name = @"NOVA.ZERR")]
public partial class Zerr : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private string _ZerrIdu;
private string _ZerrPrg;
private int _ZerrDat;
private int _ZerrHre;
private int _ZerrPas;
private string _ZerrNum;
private string _ZerrMsg;
private string _ZerrKey;
private System.Nullable<double> _ZerrMat;
private string _ZerrApp;
private System.Nullable<int> _ZerrSeq;
private System.Nullable<int> _ZerrPti;
private System.Nullable<int> _ZerrNiv;
private System.Nullable<int> _ZerrSe2;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnZerrIduChanging(string value);
partial void OnZerrIduChanged();
partial void OnZerrPrgChanging(string value);
partial void OnZerrPrgChanged();
partial void OnZerrDatChanging(int value);
partial void OnZerrDatChanged();
partial void OnZerrHreChanging(int value);
partial void OnZerrHreChanged();
partial void OnZerrPasChanging(int value);
partial void OnZerrPasChanged();
partial void OnZerrNumChanging(string value);
partial void OnZerrNumChanged();
partial void OnZerrMsgChanging(string value);
partial void OnZerrMsgChanged();
partial void OnZerrKeyChanging(string value);
partial void OnZerrKeyChanged();
partial void OnZerrMatChanging(System.Nullable<double> value);
partial void OnZerrMatChanged();
partial void OnZerrAppChanging(string value);
partial void OnZerrAppChanged();
partial void OnZerrSeqChanging(System.Nullable<int> value);
partial void OnZerrSeqChanged();
partial void OnZerrPtiChanging(System.Nullable<int> value);
partial void OnZerrPtiChanged();
partial void OnZerrNivChanging(System.Nullable<int> value);
partial void OnZerrNivChanged();
partial void OnZerrSe2Changing(System.Nullable<int> value);
partial void OnZerrSe2Changed();
#endregion
public Zerr()
{
OnCreated();
}
[Column(Name = @"ZERR_IDU", Storage = "_ZerrIdu", CanBeNull = false, DbType = "VARCHAR2(10) NOT NULL", IsPrimaryKey = true)]
public string ZerrIdu
{
get
{
return this._ZerrIdu;
}
set
{
if (this._ZerrIdu != value)
{
this.OnZerrIduChanging(value);
this.SendPropertyChanging();
this._ZerrIdu = value;
this.SendPropertyChanged("ZerrIdu");
this.OnZerrIduChanged();
}
}
}
[Column(Name = @"ZERR_PRG", Storage = "_ZerrPrg", CanBeNull = false, DbType = "VARCHAR2(20) NOT NULL", IsPrimaryKey = true)]
public string ZerrPrg
{
get
{
return this._ZerrPrg;
}
set
{
if (this._ZerrPrg != value)
{
this.OnZerrPrgChanging(value);
this.SendPropertyChanging();
this._ZerrPrg = value;
this.SendPropertyChanged("ZerrPrg");
this.OnZerrPrgChanged();
}
}
}
[Column(Name = @"ZERR_DAT", Storage = "_ZerrDat", CanBeNull = false, DbType = "NUMBER(8) NOT NULL", IsPrimaryKey = true)]
public int ZerrDat
{
get
{
return this._ZerrDat;
}
set
{
if (this._ZerrDat != value)
{
this.OnZerrDatChanging(value);
this.SendPropertyChanging();
this._ZerrDat = value;
this.SendPropertyChanged("ZerrDat");
this.OnZerrDatChanged();
}
}
}
[Column(Name = @"ZERR_HRE", Storage = "_ZerrHre", CanBeNull = false, DbType = "NUMBER(6) NOT NULL", IsPrimaryKey = true)]
public int ZerrHre
{
get
{
return this._ZerrHre;
}
set
{
if (this._ZerrHre != value)
{
this.OnZerrHreChanging(value);
this.SendPropertyChanging();
this._ZerrHre = value;
this.SendPropertyChanged("ZerrHre");
this.OnZerrHreChanged();
}
}
}
[Column(Name = @"ZERR_PAS", Storage = "_ZerrPas", CanBeNull = false, DbType = "NUMBER(4) NOT NULL", IsPrimaryKey = true)]
public int ZerrPas
{
get
{
return this._ZerrPas;
}
set
{
if (this._ZerrPas != value)
{
this.OnZerrPasChanging(value);
this.SendPropertyChanging();
this._ZerrPas = value;
this.SendPropertyChanged("ZerrPas");
this.OnZerrPasChanged();
}
}
}
[Column(Name = @"ZERR_NUM", Storage = "_ZerrNum", DbType = "VARCHAR2(10)")]
public string ZerrNum
{
get
{
return this._ZerrNum;
}
set
{
if (this._ZerrNum != value)
{
this.OnZerrNumChanging(value);
this.SendPropertyChanging();
this._ZerrNum = value;
this.SendPropertyChanged("ZerrNum");
this.OnZerrNumChanged();
}
}
}
[Column(Name = @"ZERR_MSG", Storage = "_ZerrMsg", DbType = "VARCHAR2(255)")]
public string ZerrMsg
{
get
{
return this._ZerrMsg;
}
set
{
if (this._ZerrMsg != value)
{
this.OnZerrMsgChanging(value);
this.SendPropertyChanging();
this._ZerrMsg = value;
this.SendPropertyChanged("ZerrMsg");
this.OnZerrMsgChanged();
}
}
}
[Column(Name = @"ZERR_KEY", Storage = "_ZerrKey", DbType = "VARCHAR2(255)")]
public string ZerrKey
{
get
{
return this._ZerrKey;
}
set
{
if (this._ZerrKey != value)
{
this.OnZerrKeyChanging(value);
this.SendPropertyChanging();
this._ZerrKey = value;
this.SendPropertyChanged("ZerrKey");
this.OnZerrKeyChanged();
}
}
}
[Column(Name = @"ZERR_MAT", Storage = "_ZerrMat", DbType = "NUMBER(10)")]
public System.Nullable<double> ZerrMat
{
get
{
return this._ZerrMat;
}
set
{
if (this._ZerrMat != value)
{
this.OnZerrMatChanging(value);
this.SendPropertyChanging();
this._ZerrMat = value;
this.SendPropertyChanged("ZerrMat");
this.OnZerrMatChanged();
}
}
}
[Column(Name = @"ZERR_APP", Storage = "_ZerrApp", DbType = "VARCHAR2(50)")]
public string ZerrApp
{
get
{
return this._ZerrApp;
}
set
{
if (this._ZerrApp != value)
{
this.OnZerrAppChanging(value);
this.SendPropertyChanging();
this._ZerrApp = value;
this.SendPropertyChanged("ZerrApp");
this.OnZerrAppChanged();
}
}
}
[Column(Name = @"ZERR_SEQ", Storage = "_ZerrSeq", DbType = "NUMBER(8)")]
public System.Nullable<int> ZerrSeq
{
get
{
return this._ZerrSeq;
}
set
{
if (this._ZerrSeq != value)
{
this.OnZerrSeqChanging(value);
this.SendPropertyChanging();
this._ZerrSeq = value;
this.SendPropertyChanged("ZerrSeq");
this.OnZerrSeqChanged();
}
}
}
[Column(Name = @"ZERR_PTI", Storage = "_ZerrPti", DbType = "NUMBER(1)")]
public System.Nullable<int> ZerrPti
{
get
{
return this._ZerrPti;
}
set
{
if (this._ZerrPti != value)
{
this.OnZerrPtiChanging(value);
this.SendPropertyChanging();
this._ZerrPti = value;
this.SendPropertyChanged("ZerrPti");
this.OnZerrPtiChanged();
}
}
}
[Column(Name = @"ZERR_NIV", Storage = "_ZerrNiv", DbType = "NUMBER(3)")]
public System.Nullable<int> ZerrNiv
{
get
{
return this._ZerrNiv;
}
set
{
if (this._ZerrNiv != value)
{
this.OnZerrNivChanging(value);
this.SendPropertyChanging();
this._ZerrNiv = value;
this.SendPropertyChanged("ZerrNiv");
this.OnZerrNivChanged();
}
}
}
[Column(Name = @"ZERR_SE2", Storage = "_ZerrSe2", DbType = "NUMBER(8)")]
public System.Nullable<int> ZerrSe2
{
get
{
return this._ZerrSe2;
}
set
{
if (this._ZerrSe2 != value)
{
this.OnZerrSe2Changing(value);
this.SendPropertyChanging();
this._ZerrSe2 = value;
this.SendPropertyChanged("ZerrSe2");
this.OnZerrSe2Changed();
}
}
}
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void SendPropertyChanging()
{
if (this.PropertyChanging != null)
this.PropertyChanging(this, emptyChangingEventArgs);
}
protected virtual void SendPropertyChanged(String propertyName)
{
if (this.PropertyChanged != null)
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
/// There are no comments for ZHRU in the schema.
/// </summary>
/// <summary>
/// There are no comments for ZINS in the schema.
/// </summary>
[Table(Name = @"NOVA.ZINS")]
public partial class ZINS : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private int _ZINS_SOC;
private string _ZINS_COD;
private string _ZINS_DES;
private string _ZINS_PAR;
private string _ZINS_LIB;
private string _ZINS_CHOI;
private string _ZINS_PRG;
private string _ZINS_APP;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnZINS_SOCChanging(int value);
partial void OnZINS_SOCChanged();
partial void OnZINS_CODChanging(string value);
partial void OnZINS_CODChanged();
partial void OnZINS_DESChanging(string value);
partial void OnZINS_DESChanged();
partial void OnZINS_PARChanging(string value);
partial void OnZINS_PARChanged();
partial void OnZINS_LIBChanging(string value);
partial void OnZINS_LIBChanged();
partial void OnZINS_CHOIChanging(string value);
partial void OnZINS_CHOIChanged();
partial void OnZINS_PRGChanging(string value);
partial void OnZINS_PRGChanged();
partial void OnZINS_APPChanging(string value);
partial void OnZINS_APPChanged();
#endregion
public ZINS()
{
OnCreated();
}
/// <summary>
/// There are no comments for ZINS_SOC in the schema.
/// </summary>
[Column(Storage = "_ZINS_SOC", CanBeNull = false, DbType = "NUMBER(4) NOT NULL", IsPrimaryKey = true)]
public int ZINS_SOC
{
get
{
return this._ZINS_SOC;
}
set
{
if (this._ZINS_SOC != value)
{
this.OnZINS_SOCChanging(value);
this.SendPropertyChanging();
this._ZINS_SOC = value;
this.SendPropertyChanged("ZINS_SOC");
this.OnZINS_SOCChanged();
}
}
}
/// <summary>
/// There are no comments for ZINS_COD in the schema.
/// </summary>
[Column(Storage = "_ZINS_COD", CanBeNull = false, DbType = "VARCHAR2(10) NOT NULL", IsPrimaryKey = true)]
public string ZINS_COD
{
get
{
return this._ZINS_COD;
}
set
{
if (this._ZINS_COD != value)
{
this.OnZINS_CODChanging(value);
this.SendPropertyChanging();
this._ZINS_COD = value;
this.SendPropertyChanged("ZINS_COD");
this.OnZINS_CODChanged();
}
}
}
/// <summary>
/// There are no comments for ZINS_DES in the schema.
/// </summary>
[Column(Storage = "_ZINS_DES", DbType = "VARCHAR2(4000) NULL")]
public string ZINS_DES
{
get
{
return this._ZINS_DES;
}
set
{
if (this._ZINS_DES != value)
{
this.OnZINS_DESChanging(value);
this.SendPropertyChanging();
this._ZINS_DES = value;
this.SendPropertyChanged("ZINS_DES");
this.OnZINS_DESChanged();
}
}
}
/// <summary>
/// There are no comments for ZINS_PAR in the schema.
/// </summary>
[Column(Storage = "_ZINS_PAR", DbType = "VARCHAR2(254) NULL")]
public string ZINS_PAR
{
get
{
return this._ZINS_PAR;
}
set
{
if (this._ZINS_PAR != value)
{
this.OnZINS_PARChanging(value);
this.SendPropertyChanging();
this._ZINS_PAR = value;
this.SendPropertyChanged("ZINS_PAR");
this.OnZINS_PARChanged();
}
}
}
/// <summary>
/// There are no comments for ZINS_LIB in the schema.
/// </summary>
[Column(Storage = "_ZINS_LIB", CanBeNull = false, DbType = "VARCHAR2(254) NOT NULL")]
public string ZINS_LIB
{
get
{
return this._ZINS_LIB;
}
set
{
if (this._ZINS_LIB != value)
{
this.OnZINS_LIBChanging(value);
this.SendPropertyChanging();
this._ZINS_LIB = value;
this.SendPropertyChanged("ZINS_LIB");
this.OnZINS_LIBChanged();
}
}
}
/// <summary>
/// There are no comments for ZINS_CHOI in the schema.
/// </summary>
[Column(Storage = "_ZINS_CHOI", CanBeNull = false, DbType = "VARCHAR2(12) NOT NULL")]
public string ZINS_CHOI
{
get
{
return this._ZINS_CHOI;
}
set
{
if (this._ZINS_CHOI != value)
{
this.OnZINS_CHOIChanging(value);
this.SendPropertyChanging();
this._ZINS_CHOI = value;
this.SendPropertyChanged("ZINS_CHOI");
this.OnZINS_CHOIChanged();
}
}
}
/// <summary>
/// There are no comments for ZINS_PRG in the schema.
/// </summary>
[Column(Storage = "_ZINS_PRG", DbType = "VARCHAR2(20) NULL")]
public string ZINS_PRG
{
get
{
return this._ZINS_PRG;
}
set
{
if (this._ZINS_PRG != value)
{
this.OnZINS_PRGChanging(value);
this.SendPropertyChanging();
this._ZINS_PRG = value;
this.SendPropertyChanged("ZINS_PRG");
this.OnZINS_PRGChanged();
}
}
}
/// <summary>
/// There are no comments for ZINS_APP in the schema.
/// </summary>
[Column(Storage = "_ZINS_APP", DbType = "VARCHAR2(20) NULL")]
public string ZINS_APP
{
get
{
return this._ZINS_APP;
}
set
{
if (this._ZINS_APP != value)
{
this.OnZINS_APPChanging(value);
this.SendPropertyChanging();
this._ZINS_APP = value;
this.SendPropertyChanged("ZINS_APP");
this.OnZINS_APPChanged();
}
}
}
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void SendPropertyChanging()
{
if (this.PropertyChanging != null)
this.PropertyChanging(this, emptyChangingEventArgs);
}
protected virtual void SendPropertyChanging(String propertyName)
{
if (this.PropertyChanging != null)
this.PropertyChanging(this, new PropertyChangingEventArgs(propertyName));
}
protected virtual void SendPropertyChanged(String propertyName)
{
if (this.PropertyChanged != null)
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
/// <summary>
/// There are no comments for SSTA in the schema.
/// </summary>
/// <LongDescription>
/// Categorie statut
/// </LongDescription>
[Table(Name = @"NOVA.SSTA")]
public partial class SSTA : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private string _SSTA_TST;
private string _SSTA_NUM;
private string _SSTA_LIB;
private string _SSTA_DEB;
private string _SSTA_CRE;
private string _SSTA_LI2;
private int _SSTA_PAS;
private int _SSTA_VIS;
private System.Nullable<double> _SSTA_VAL1;
private System.Nullable<double> _SSTA_VAL2;
private string _SSTA_COD1;
private string _SSTA_COD2;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnSSTA_TSTChanging(string value);
partial void OnSSTA_TSTChanged();
partial void OnSSTA_NUMChanging(string value);
partial void OnSSTA_NUMChanged();
partial void OnSSTA_LIBChanging(string value);
partial void OnSSTA_LIBChanged();
partial void OnSSTA_DEBChanging(string value);
partial void OnSSTA_DEBChanged();
partial void OnSSTA_CREChanging(string value);
partial void OnSSTA_CREChanged();
partial void OnSSTA_LI2Changing(string value);
partial void OnSSTA_LI2Changed();
partial void OnSSTA_PASChanging(int value);
partial void OnSSTA_PASChanged();
partial void OnSSTA_VAL1Changing(System.Nullable<double> value);
partial void OnSSTA_VAL1Changed();
partial void OnSSTA_VAL2Changing(System.Nullable<double> value);
partial void OnSSTA_VAL2Changed();
partial void OnSSTA_COD1Changing(string value);
partial void OnSSTA_COD1Changed();
partial void OnSSTA_COD2Changing(string value);
partial void OnSSTA_COD2Changed();
partial void OnSSTA_VISChanging(int value);
partial void OnSSTA_VISChanged();
#endregion
public SSTA()
{
OnCreated();
}
/// <summary>
/// There are no comments for SSTA_TST in the schema.
/// </summary>
/// <LongDescription>
/// No statut
/// </LongDescription>
[Column(Storage = "_SSTA_TST", CanBeNull = false, DbType = "VARCHAR2(10) NOT NULL", IsPrimaryKey = true)]
public string SSTA_TST
{
get
{
return this._SSTA_TST;
}
set
{
if (this._SSTA_TST != value)
{
this.OnSSTA_TSTChanging(value);
this.SendPropertyChanging();
this._SSTA_TST = value;
this.SendPropertyChanged("SSTA_TST");
this.OnSSTA_TSTChanged();
}
}
}
/// <summary>
/// There are no comments for SSTA_NUM in the schema.
/// </summary>
/// <LongDescription>
/// Code statut
/// </LongDescription>
[Column(Storage = "_SSTA_NUM", CanBeNull = false, DbType = "VARCHAR2(12) NOT NULL", IsPrimaryKey = true)]
public string SSTA_NUM
{
get
{
return this._SSTA_NUM;
}
set
{
if (this._SSTA_NUM != value)
{
this.OnSSTA_NUMChanging(value);
this.SendPropertyChanging();
this._SSTA_NUM = value;
this.SendPropertyChanged("SSTA_NUM");
this.OnSSTA_NUMChanged();
}
}
}
/// <summary>
/// There are no comments for SSTA_LIB in the schema.
/// </summary>
/// <LongDescription>
/// Libelle Categorie
/// </LongDescription>
[Column(Storage = "_SSTA_LIB", CanBeNull = false, DbType = "VARCHAR2(60) NOT NULL")]
public string SSTA_LIB
{
get
{
return this._SSTA_LIB;
}
set
{
if (this._SSTA_LIB != value)
{
this.OnSSTA_LIBChanging(value);
this.SendPropertyChanging();
this._SSTA_LIB = value;
this.SendPropertyChanged("SSTA_LIB");
this.OnSSTA_LIBChanged();
}
}
}
/// <summary>
/// There are no comments for SSTA_DEB in the schema.
/// </summary>
/// <LongDescription>
/// Compte debit
/// </LongDescription>
[Column(Storage = "_SSTA_DEB", DbType = "VARCHAR2(30) NULL")]
public string SSTA_DEB
{
get
{
return this._SSTA_DEB;
}
set
{
if (this._SSTA_DEB != value)
{
this.OnSSTA_DEBChanging(value);
this.SendPropertyChanging();
this._SSTA_DEB = value;
this.SendPropertyChanged("SSTA_DEB");
this.OnSSTA_DEBChanged();
}
}
}
/// <summary>
/// There are no comments for SSTA_CRE in the schema.
/// </summary>
/// <LongDescription>
/// Compte credit
/// </LongDescription>
[Column(Storage = "_SSTA_CRE", DbType = "VARCHAR2(30) NULL")]
public string SSTA_CRE
{
get
{
return this._SSTA_CRE;
}
set
{
if (this._SSTA_CRE != value)
{
this.OnSSTA_CREChanging(value);
this.SendPropertyChanging();
this._SSTA_CRE = value;
this.SendPropertyChanged("SSTA_CRE");
this.OnSSTA_CREChanged();
}
}
}
/// <summary>
/// There are no comments for SSTA_LI2 in the schema.
/// </summary>
/// <LongDescription>
/// Libelle long
/// </LongDescription>
[Column(Storage = "_SSTA_LI2", DbType = "VARCHAR2(60) NULL")]
public string SSTA_LI2
{
get
{
return this._SSTA_LI2;
}
set
{
if (this._SSTA_LI2 != value)
{
this.OnSSTA_LI2Changing(value);
this.SendPropertyChanging();
this._SSTA_LI2 = value;
this.SendPropertyChanged("SSTA_LI2");
this.OnSSTA_LI2Changed();
}
}
}
/// <summary>
/// There are no comments for SSTA_PAS in the schema.
/// </summary>
[Column(Storage = "_SSTA_PAS", CanBeNull = false, DbType = "NUMBER(4) NOT NULL", IsPrimaryKey = true)]
public int SSTA_PAS
{
get
{
return this._SSTA_PAS;
}
set
{
if (this._SSTA_PAS != value)
{
this.OnSSTA_PASChanging(value);
this.SendPropertyChanging();
this._SSTA_PAS = value;
this.SendPropertyChanged("SSTA_PAS");
this.OnSSTA_PASChanged();
}
}
}
/// <summary>
/// There are no comments for SSTA_PAS in the schema.
/// </summary>
[Column(Storage = "_SSTA_VIS", CanBeNull = false, DbType = "NUMBER(4) NOT NULL")]
public int SSTA_VIS
{
get
{
return this._SSTA_VIS;
}
set
{
if (this._SSTA_VIS != value)
{
this.OnSSTA_VISChanging(value);
this.SendPropertyChanging();
this._SSTA_VIS = value;
this.SendPropertyChanged("SSTA_VIS");
this.OnSSTA_VISChanged();
}
}
}
/// <summary>
/// There are no comments for SSTA_VAL1 in the schema.
/// </summary>
/// <LongDescription>
/// Valeur 1
/// </LongDescription>
[Column(Storage = "_SSTA_VAL1", DbType = "NUMBER(18,4) NULL")]
public System.Nullable<double> SSTA_VAL1
{
get
{
return this._SSTA_VAL1;
}
set
{
if (this._SSTA_VAL1 != value)
{
this.OnSSTA_VAL1Changing(value);
this.SendPropertyChanging();
this._SSTA_VAL1 = value;
this.SendPropertyChanged("SSTA_VAL1");
this.OnSSTA_VAL1Changed();
}
}
}
/// <summary>
/// There are no comments for SSTA_VAL2 in the schema.
/// </summary>
/// <LongDescription>
/// Valeur 2
/// </LongDescription>
[Column(Storage = "_SSTA_VAL2", DbType = "NUMBER(18,4) NULL")]
public System.Nullable<double> SSTA_VAL2
{
get
{
return this._SSTA_VAL2;
}
set
{
if (this._SSTA_VAL2 != value)
{
this.OnSSTA_VAL2Changing(value);
this.SendPropertyChanging();
this._SSTA_VAL2 = value;
this.SendPropertyChanged("SSTA_VAL2");
this.OnSSTA_VAL2Changed();
}
}
}
/// <summary>
/// There are no comments for SSTA_COD1 in the schema.
/// </summary>
/// <LongDescription>
/// Code Libre 1
/// </LongDescription>
[Column(Storage = "_SSTA_COD1", DbType = "VARCHAR2(30) NULL")]
public string SSTA_COD1
{
get
{
return this._SSTA_COD1;
}
set
{
if (this._SSTA_COD1 != value)
{
this.OnSSTA_COD1Changing(value);
this.SendPropertyChanging();
this._SSTA_COD1 = value;
this.SendPropertyChanged("SSTA_COD1");
this.OnSSTA_COD1Changed();
}
}
}
/// <summary>
/// There are no comments for SSTA_COD2 in the schema.
/// </summary>
/// <LongDescription>
/// Code Libre 2
/// </LongDescription>
[Column(Storage = "_SSTA_COD2", DbType = "VARCHAR2(30) NULL")]
public string SSTA_COD2
{
get
{
return this._SSTA_COD2;
}
set
{
if (this._SSTA_COD2 != value)
{
this.OnSSTA_COD2Changing(value);
this.SendPropertyChanging();
this._SSTA_COD2 = value;
this.SendPropertyChanged("SSTA_COD2");
this.OnSSTA_COD2Changed();
}
}
}
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void SendPropertyChanging()
{
if (this.PropertyChanging != null)
this.PropertyChanging(this, emptyChangingEventArgs);
}
protected virtual void SendPropertyChanging(String propertyName)
{
if (this.PropertyChanging != null)
this.PropertyChanging(this, new PropertyChangingEventArgs(propertyName));
}
protected virtual void SendPropertyChanged(String propertyName)
{
if (this.PropertyChanged != null)
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
using System;
using System.Collections.Generic;
using System.Text;
using System.Security.Cryptography;
using System.Configuration;
using System.IO;
public class CryptorEngine
{
public static string CryptConnexionString(string connection)
{
int iPos = connection.ToUpper().IndexOf("PASSWORD=");
int iFin = connection.IndexOf(";", iPos);
string sPwd = connection.Substring(iPos + 9, iFin - iPos - 9);
string sPwd2 = CryptorEngine.Decrypt(sPwd, true);
connection = connection.Replace("Password=" + sPwd, "Password=" + sPwd2);
return connection;
}
public static string Encrypt(string toEncrypt, bool useHashing)
{
byte[] keyArray;
byte[] toEncryptArray = UTF8Encoding.UTF8.GetBytes(toEncrypt);
System.Configuration.AppSettingsReader settingsReader = new AppSettingsReader();
// Get the key from config file
//string key = (string)settingsReader.GetValue("SecurityKey", typeof(String));
string key = "Sdf253654FDFD";
//System.Windows.Forms.MessageBox.Show(key);
if (useHashing)
{
MD5CryptoServiceProvider hashmd5 = new MD5CryptoServiceProvider();
keyArray = hashmd5.ComputeHash(UTF8Encoding.UTF8.GetBytes(key));
hashmd5.Clear();
}
else
keyArray = UTF8Encoding.UTF8.GetBytes(key);
TripleDESCryptoServiceProvider tdes = new TripleDESCryptoServiceProvider();
tdes.Key = keyArray;
tdes.Mode = CipherMode.ECB;
tdes.Padding = PaddingMode.PKCS7;
ICryptoTransform cTransform = tdes.CreateEncryptor();
byte[] resultArray = cTransform.TransformFinalBlock(toEncryptArray, 0, toEncryptArray.Length);
tdes.Clear();
return Convert.ToBase64String(resultArray, 0, resultArray.Length);
}
/// <summary>
/// DeCrypt a string using dual encryption method. Return a DeCrypted clear string
/// </summary>
/// <param name="cipherString">encrypted string</param>
/// <param name="useHashing">Did you use hashing to encrypt this data? pass true is yes</param>
/// <returns></returns>
public static string Decrypt(string cipherString, bool useHashing)
{
byte[] keyArray;
byte[] toEncryptArray = Convert.FromBase64String(cipherString);
System.Configuration.AppSettingsReader settingsReader = new AppSettingsReader();
//Get your key from config file to open the lock!
string key = "Sdf253654FDFD";// (string)settingsReader.GetValue("SecurityKey", typeof(String));
if (useHashing)
{
MD5CryptoServiceProvider hashmd5 = new MD5CryptoServiceProvider();
keyArray = hashmd5.ComputeHash(UTF8Encoding.UTF8.GetBytes(key));
hashmd5.Clear();
}
else
keyArray = UTF8Encoding.UTF8.GetBytes(key);
TripleDESCryptoServiceProvider tdes = new TripleDESCryptoServiceProvider();
tdes.Key = keyArray;
tdes.Mode = CipherMode.ECB;
tdes.Padding = PaddingMode.PKCS7;
ICryptoTransform cTransform = tdes.CreateDecryptor();
byte[] resultArray = cTransform.TransformFinalBlock(toEncryptArray, 0, toEncryptArray.Length);
tdes.Clear();
return UTF8Encoding.UTF8.GetString(resultArray);
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.IO;
using System.Web.Script.Serialization;
using Newtonsoft.Json;
using System.Configuration;
namespace CallApiPalexpo
{
class Program
{
static void Main(string[] args)
{
ContextDataBase dcPrj = new ContextDataBase(CryptorEngine.CryptConnexionString(ConfigurationManager.ConnectionStrings["OraConnection"].ConnectionString));
string sDate = dcPrj.ZINS.Where(cc => cc.ZINS_COD == "PALEXPO_WS").First().ZINS_PAR;
WebRequest request2 =
WebRequest.Create(@"https://api.palexpo.ch:8443/token");
string encodedUserCredentials =
Convert.ToBase64String(
System.Text.ASCIIEncoding.ASCII.GetBytes(ConfigurationManager.AppSettings["CLES"]));
request2.ContentType = @"application/json; charset=utf-8";
request2.Method = "POST";
request2.ContentType = "application/x-www-form-urlencoded";
var userData = "grant_type=password&username=novative&password=Novative123";
request2.Headers.Add("Authorization", "Basic " + encodedUserCredentials);
// request2.Headers.Add("Authorization", "Basic " + encodedUserCredentials);
StreamWriter requestWriter = new StreamWriter(request2.GetRequestStream());
requestWriter.Write(userData);
requestWriter.Close();
string sKey = "";
// var response = request2.GetResponse() as HttpWebResponse;
HttpWebResponse response2 = (HttpWebResponse)request2.GetResponse();
string jsonResponse2 = string.Empty;
using (StreamReader sr = new StreamReader(response2.GetResponseStream()))
{
jsonResponse2 = sr.ReadToEnd();
var jss = new JavaScriptSerializer();
Dictionary<string, string> sData = jss.Deserialize<Dictionary<string, string>>(jsonResponse2);
sKey=sData["access_token"].ToString();
// Console.WriteLine(jsonResponse2);
// Console.ReadLine();
}
WebRequest request = WebRequest.Create(@"https://api.palexpo.ch:8443/services/project/1.0.0/search?after_updatedate="+sDate);
// WebRequest request = WebRequest.Create(@"https://api.palexpo.ch/store/api/services/project/1.0.0/search?after_updatedate=01.01.2017");
request.Method = "GET";
// request.Headers.Add("api_key", "e9cf5706-2885-3a0e-aac1-6e37be774ad7");
// request.Headers["Authorization"] = "Basic" + Convert.ToBase64String(Encoding.Default.GetBytes("novative:Novative123"));
// client.DefaultRequestHeaders.Add("Authorization", "Bearer " + accessToken);
request.Headers["Authorization"] = "Bearer "+sKey;
request.ContentLength = 0;
request.ContentType = @"application/json; charset=utf-8";
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
string jsonResponse = string.Empty;
using (StreamReader sr = new StreamReader(response.GetResponseStream()))
{
jsonResponse = sr.ReadToEnd();
var jss = new JavaScriptSerializer();
// Dictionary<string, string> sData = jss.Deserialize<<string, string>>(jsonResponse);
// var jss2 = new JavaScriptSerializer();
// string sLstProduct = jsonResponse.Substring(0, jsonResponse.Length - 3).Replace("{\"ProjectList\":{", "");
Dictionary<string, object> sData2 = jss.Deserialize<Dictionary<string, object>>(jsonResponse);
var arrayprj = sData2["ProjectList"] as Dictionary<string, object>;
var lstprj= arrayprj["Project"] as System.Collections.ArrayList;
int iPas = int.Parse(ConfigurationManager.AppSettings["PAS"]);
string sSstaTst=ConfigurationManager.AppSettings["STA_PRJ"];
try
{
for (int idx = 0; idx < lstprj.Count; idx++)
{
var project = lstprj[idx] as Dictionary<string, object>;
string sCode = project["EventId"].ToString();
string sSstaLib = project["EventDescription"].ToString();
string sSStaVis = project["TimesheetFlag"].ToString();
int isStaVis = (sSStaVis == "Y") ? 0 : 1;
if (!string.IsNullOrEmpty(sSstaLib))
{
if (dcPrj.SSTAs.Where(cc => cc.SSTA_PAS == iPas && cc.SSTA_TST == sSstaTst
&& cc.SSTA_NUM == sCode).ToList().Count == 0)
{
dcPrj.SSTAs.InsertOnSubmit(new SSTA()
{
SSTA_NUM = sCode,
SSTA_TST = sSstaTst,
SSTA_LIB = sSstaLib,
SSTA_PAS = iPas,
SSTA_VIS = isStaVis
});
}
else
{
dcPrj.SSTAs.Where(cc => cc.SSTA_PAS == iPas && cc.SSTA_TST == sSstaTst
&& cc.SSTA_NUM == sCode).First().SSTA_VIS = isStaVis;
}
}
}
dcPrj.SubmitChanges();
dcPrj.ZINS.Where(cc => cc.ZINS_COD == "PALEXPO_WS").First().ZINS_PAR = string.Format("{0:yyyy-MM-dd}", DateTime.Now.Date.AddDays(-1));
dcPrj.SubmitChanges();
}
catch (Exception ex)
{
ContextDataBase dcPrj2 = new ContextDataBase(CryptorEngine.CryptConnexionString(ConfigurationManager.ConnectionStrings["OraConnection"].ConnectionString));
DateTime dtNow = DateTime.Now;
int iDat = int.Parse(String.Format("{0:yyyyMMdd}", dtNow));
int iHre = int.Parse(String.Format("{0:HHmmss}", dtNow));
try
{
dcPrj2.Zerrs.InsertOnSubmit(new Zerr()
{
ZerrPrg = "PALEXPO_WS",
ZerrMsg = (ex.Message.Length < 254) ? ex.Message : ex.Message.Substring(0, 254),
ZerrKey = (ex.InnerException.Message.Length < 254) ? ex.InnerException.Message : ex.InnerException.Message.Substring(0, 254),
ZerrDat = iDat,
ZerrHre = iHre,
ZerrIdu = "NOVAP",
ZerrPas = 0,
ZerrMat = 0,
ZerrNum = "",
});
dcPrj2.SubmitChanges();
//return "succées";
}
catch (Exception ex2)
{
string sMsg = ex2.Message;
// return sMsg;
}
}
// var jarray = JsonConvert.DeserializeObject<Product>(sLstProduct);
//Console.WriteLine(jsonResponse);
//Console.ReadLine();
}
}
}
public class Project
{
public string EventId;
public string StartDate;
public int OrganisationCode;
public string EventDescription;
public string TimesheetFlag;
public string UpdateStamp;
}
}
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("CallApiPalexpo")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("CallApiPalexpo")]
[assembly: AssemblyCopyright("Copyright © 2017")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("45b5aabc-3d73-47a3-b3d1-d4570cc1e514")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{7F69CD6F-7C75-4EBB-B0B5-D41FEFE32E52}</ProjectGuid>
<OutputType>Exe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>CallExportComptable</RootNamespace>
<AssemblyName>CallExportComptable</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<OldToolsVersion>3.5</OldToolsVersion>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Reference Include="Devart.Data, Version=5.0.170.0, Culture=neutral, PublicKeyToken=09af7300eec23701, processorArchitecture=MSIL">
<Private>True</Private>
</Reference>
<Reference Include="Devart.Data.Linq, Version=2.0.9.0, Culture=neutral, PublicKeyToken=09af7300eec23701, processorArchitecture=MSIL" />
<Reference Include="Devart.Data.Oracle, Version=6.0.70.0, Culture=neutral, PublicKeyToken=09af7300eec23701, processorArchitecture=MSIL">
<Private>True</Private>
</Reference>
<Reference Include="Devart.Data.Oracle.Linq, Version=2.0.9.0, Culture=neutral, PublicKeyToken=09af7300eec23701, processorArchitecture=MSIL">
<Private>True</Private>
</Reference>
<Reference Include="Newtonsoft.Json, Version=9.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\..\Downloads\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.configuration" />
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data.Linq">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Net" />
<Reference Include="System.Xml.Linq">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data.DataSetExtensions">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="ContextDataBase.cs" />
<Compile Include="CryptorEngine.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
\ No newline at end of file

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CallExportComptable", "CallExportComptable.csproj", "{7F69CD6F-7C75-4EBB-B0B5-D41FEFE32E52}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{7F69CD6F-7C75-4EBB-B0B5-D41FEFE32E52}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7F69CD6F-7C75-4EBB-B0B5-D41FEFE32E52}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7F69CD6F-7C75-4EBB-B0B5-D41FEFE32E52}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7F69CD6F-7C75-4EBB-B0B5-D41FEFE32E52}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
//------------------------------------------------------------------------------
// This is auto-generated code.
//------------------------------------------------------------------------------
// This code was generated by Entity Developer tool.
// Code is generated on: 15.09.2010 16:50:34
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//------------------------------------------------------------------------------
using System.Data.Linq;
using System.Data.Linq.Mapping;
using System.Data;
using System.Collections.Generic;
using System.Reflection;
using System.Linq;
using System.Linq.Expressions;
using System.ComponentModel;
using System;
using System.Runtime.Serialization;
[System.Data.Linq.Mapping.DatabaseAttribute(Name = "NOVA")]
[ProviderAttribute(typeof(Devart.Data.Oracle.Linq.Provider.OracleDataProvider))]
public partial class ContextDataBase : Devart.Data.Linq.DataContext
{
private static System.Data.Linq.Mapping.MappingSource mappingSource = new Devart.Data.Linq.Mapping.AttributeMappingSource();
#region Extensibility Method Definitions
partial void OnCreated();
partial void InsertZerr(Zerr instance);
partial void UpdateZerr(Zerr instance);
partial void DeleteZerr(Zerr instance);
partial void InsertSSTA(SSTA instance);
partial void UpdateSSTA(SSTA instance);
partial void DeleteSSTA(SSTA instance);
partial void InsertZINS(ZINS instance);
partial void UpdateZINS(ZINS instance);
partial void DeleteZINS(ZINS instance);
#endregion
public ContextDataBase() :
base(@"user id=nova;Password=NOVA;server=10.12.12.114;direct=True;sid=novacldev;port=1525;persist security info=True;Unicode=True", mappingSource)
{
OnCreated();
}
public ContextDataBase(string connection) :
base(connection, mappingSource)
{
// this.Connection.ConnectionString = CryptorEngine.CryptConnexionString(connection);
OnCreated();
}
public ContextDataBase(System.Data.IDbConnection connection) :
base(connection, mappingSource)
{
OnCreated();
}
public ContextDataBase(string connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
base(connection, mappingSource)
{
OnCreated();
}
public ContextDataBase(System.Data.IDbConnection connection, System.Data.Linq.Mapping.MappingSource mappingSource) :
base(connection, mappingSource)
{
OnCreated();
}
public Devart.Data.Linq.Table<ZINS> ZINS
{
get
{
return this.GetTable<ZINS>();
}
}
public Devart.Data.Linq.Table<SSTA> SSTAs
{
get
{
return this.GetTable<SSTA>();
}
}
public Devart.Data.Linq.Table<Zerr> Zerrs
{
get
{
return this.GetTable<Zerr>();
}
}
}
[Table(Name = @"NOVA.ZERR")]
public partial class Zerr : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private string _ZerrIdu;
private string _ZerrPrg;
private int _ZerrDat;
private int _ZerrHre;
private int _ZerrPas;
private string _ZerrNum;
private string _ZerrMsg;
private string _ZerrKey;
private System.Nullable<double> _ZerrMat;
private string _ZerrApp;
private System.Nullable<int> _ZerrSeq;
private System.Nullable<int> _ZerrPti;
private System.Nullable<int> _ZerrNiv;
private System.Nullable<int> _ZerrSe2;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnZerrIduChanging(string value);
partial void OnZerrIduChanged();
partial void OnZerrPrgChanging(string value);
partial void OnZerrPrgChanged();
partial void OnZerrDatChanging(int value);
partial void OnZerrDatChanged();
partial void OnZerrHreChanging(int value);
partial void OnZerrHreChanged();
partial void OnZerrPasChanging(int value);
partial void OnZerrPasChanged();
partial void OnZerrNumChanging(string value);
partial void OnZerrNumChanged();
partial void OnZerrMsgChanging(string value);
partial void OnZerrMsgChanged();
partial void OnZerrKeyChanging(string value);
partial void OnZerrKeyChanged();
partial void OnZerrMatChanging(System.Nullable<double> value);
partial void OnZerrMatChanged();
partial void OnZerrAppChanging(string value);
partial void OnZerrAppChanged();
partial void OnZerrSeqChanging(System.Nullable<int> value);
partial void OnZerrSeqChanged();
partial void OnZerrPtiChanging(System.Nullable<int> value);
partial void OnZerrPtiChanged();
partial void OnZerrNivChanging(System.Nullable<int> value);
partial void OnZerrNivChanged();
partial void OnZerrSe2Changing(System.Nullable<int> value);
partial void OnZerrSe2Changed();
#endregion
public Zerr()
{
OnCreated();
}
[Column(Name = @"ZERR_IDU", Storage = "_ZerrIdu", CanBeNull = false, DbType = "VARCHAR2(10) NOT NULL", IsPrimaryKey = true)]
public string ZerrIdu
{
get
{
return this._ZerrIdu;
}
set
{
if (this._ZerrIdu != value)
{
this.OnZerrIduChanging(value);
this.SendPropertyChanging();
this._ZerrIdu = value;
this.SendPropertyChanged("ZerrIdu");
this.OnZerrIduChanged();
}
}
}
[Column(Name = @"ZERR_PRG", Storage = "_ZerrPrg", CanBeNull = false, DbType = "VARCHAR2(20) NOT NULL", IsPrimaryKey = true)]
public string ZerrPrg
{
get
{
return this._ZerrPrg;
}
set
{
if (this._ZerrPrg != value)
{
this.OnZerrPrgChanging(value);
this.SendPropertyChanging();
this._ZerrPrg = value;
this.SendPropertyChanged("ZerrPrg");
this.OnZerrPrgChanged();
}
}
}
[Column(Name = @"ZERR_DAT", Storage = "_ZerrDat", CanBeNull = false, DbType = "NUMBER(8) NOT NULL", IsPrimaryKey = true)]
public int ZerrDat
{
get
{
return this._ZerrDat;
}
set
{
if (this._ZerrDat != value)
{
this.OnZerrDatChanging(value);
this.SendPropertyChanging();
this._ZerrDat = value;
this.SendPropertyChanged("ZerrDat");
this.OnZerrDatChanged();
}
}
}
[Column(Name = @"ZERR_HRE", Storage = "_ZerrHre", CanBeNull = false, DbType = "NUMBER(6) NOT NULL", IsPrimaryKey = true)]
public int ZerrHre
{
get
{
return this._ZerrHre;
}
set
{
if (this._ZerrHre != value)
{
this.OnZerrHreChanging(value);
this.SendPropertyChanging();
this._ZerrHre = value;
this.SendPropertyChanged("ZerrHre");
this.OnZerrHreChanged();
}
}
}
[Column(Name = @"ZERR_PAS", Storage = "_ZerrPas", CanBeNull = false, DbType = "NUMBER(4) NOT NULL", IsPrimaryKey = true)]
public int ZerrPas
{
get
{
return this._ZerrPas;
}
set
{
if (this._ZerrPas != value)
{
this.OnZerrPasChanging(value);
this.SendPropertyChanging();
this._ZerrPas = value;
this.SendPropertyChanged("ZerrPas");
this.OnZerrPasChanged();
}
}
}
[Column(Name = @"ZERR_NUM", Storage = "_ZerrNum", DbType = "VARCHAR2(10)")]
public string ZerrNum
{
get
{
return this._ZerrNum;
}
set
{
if (this._ZerrNum != value)
{
this.OnZerrNumChanging(value);
this.SendPropertyChanging();
this._ZerrNum = value;
this.SendPropertyChanged("ZerrNum");
this.OnZerrNumChanged();
}
}
}
[Column(Name = @"ZERR_MSG", Storage = "_ZerrMsg", DbType = "VARCHAR2(255)")]
public string ZerrMsg
{
get
{
return this._ZerrMsg;
}
set
{
if (this._ZerrMsg != value)
{
this.OnZerrMsgChanging(value);
this.SendPropertyChanging();
this._ZerrMsg = value;
this.SendPropertyChanged("ZerrMsg");
this.OnZerrMsgChanged();
}
}
}
[Column(Name = @"ZERR_KEY", Storage = "_ZerrKey", DbType = "VARCHAR2(255)")]
public string ZerrKey
{
get
{
return this._ZerrKey;
}
set
{
if (this._ZerrKey != value)
{
this.OnZerrKeyChanging(value);
this.SendPropertyChanging();
this._ZerrKey = value;
this.SendPropertyChanged("ZerrKey");
this.OnZerrKeyChanged();
}
}
}
[Column(Name = @"ZERR_MAT", Storage = "_ZerrMat", DbType = "NUMBER(10)")]
public System.Nullable<double> ZerrMat
{
get
{
return this._ZerrMat;
}
set
{
if (this._ZerrMat != value)
{
this.OnZerrMatChanging(value);
this.SendPropertyChanging();
this._ZerrMat = value;
this.SendPropertyChanged("ZerrMat");
this.OnZerrMatChanged();
}
}
}
[Column(Name = @"ZERR_APP", Storage = "_ZerrApp", DbType = "VARCHAR2(50)")]
public string ZerrApp
{
get
{
return this._ZerrApp;
}
set
{
if (this._ZerrApp != value)
{
this.OnZerrAppChanging(value);
this.SendPropertyChanging();
this._ZerrApp = value;
this.SendPropertyChanged("ZerrApp");
this.OnZerrAppChanged();
}
}
}
[Column(Name = @"ZERR_SEQ", Storage = "_ZerrSeq", DbType = "NUMBER(8)")]
public System.Nullable<int> ZerrSeq
{
get
{
return this._ZerrSeq;
}
set
{
if (this._ZerrSeq != value)
{
this.OnZerrSeqChanging(value);
this.SendPropertyChanging();
this._ZerrSeq = value;
this.SendPropertyChanged("ZerrSeq");
this.OnZerrSeqChanged();
}
}
}
[Column(Name = @"ZERR_PTI", Storage = "_ZerrPti", DbType = "NUMBER(1)")]
public System.Nullable<int> ZerrPti
{
get
{
return this._ZerrPti;
}
set
{
if (this._ZerrPti != value)
{
this.OnZerrPtiChanging(value);
this.SendPropertyChanging();
this._ZerrPti = value;
this.SendPropertyChanged("ZerrPti");
this.OnZerrPtiChanged();
}
}
}
[Column(Name = @"ZERR_NIV", Storage = "_ZerrNiv", DbType = "NUMBER(3)")]
public System.Nullable<int> ZerrNiv
{
get
{
return this._ZerrNiv;
}
set
{
if (this._ZerrNiv != value)
{
this.OnZerrNivChanging(value);
this.SendPropertyChanging();
this._ZerrNiv = value;
this.SendPropertyChanged("ZerrNiv");
this.OnZerrNivChanged();
}
}
}
[Column(Name = @"ZERR_SE2", Storage = "_ZerrSe2", DbType = "NUMBER(8)")]
public System.Nullable<int> ZerrSe2
{
get
{
return this._ZerrSe2;
}
set
{
if (this._ZerrSe2 != value)
{
this.OnZerrSe2Changing(value);
this.SendPropertyChanging();
this._ZerrSe2 = value;
this.SendPropertyChanged("ZerrSe2");
this.OnZerrSe2Changed();
}
}
}
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void SendPropertyChanging()
{
if (this.PropertyChanging != null)
this.PropertyChanging(this, emptyChangingEventArgs);
}
protected virtual void SendPropertyChanged(String propertyName)
{
if (this.PropertyChanged != null)
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
/// There are no comments for ZHRU in the schema.
/// </summary>
/// <summary>
/// There are no comments for ZINS in the schema.
/// </summary>
[Table(Name = @"NOVA.ZINS")]
public partial class ZINS : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private int _ZINS_SOC;
private string _ZINS_COD;
private string _ZINS_DES;
private string _ZINS_PAR;
private string _ZINS_LIB;
private string _ZINS_CHOI;
private string _ZINS_PRG;
private string _ZINS_APP;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnZINS_SOCChanging(int value);
partial void OnZINS_SOCChanged();
partial void OnZINS_CODChanging(string value);
partial void OnZINS_CODChanged();
partial void OnZINS_DESChanging(string value);
partial void OnZINS_DESChanged();
partial void OnZINS_PARChanging(string value);
partial void OnZINS_PARChanged();
partial void OnZINS_LIBChanging(string value);
partial void OnZINS_LIBChanged();
partial void OnZINS_CHOIChanging(string value);
partial void OnZINS_CHOIChanged();
partial void OnZINS_PRGChanging(string value);
partial void OnZINS_PRGChanged();
partial void OnZINS_APPChanging(string value);
partial void OnZINS_APPChanged();
#endregion
public ZINS()
{
OnCreated();
}
/// <summary>
/// There are no comments for ZINS_SOC in the schema.
/// </summary>
[Column(Storage = "_ZINS_SOC", CanBeNull = false, DbType = "NUMBER(4) NOT NULL", IsPrimaryKey = true)]
public int ZINS_SOC
{
get
{
return this._ZINS_SOC;
}
set
{
if (this._ZINS_SOC != value)
{
this.OnZINS_SOCChanging(value);
this.SendPropertyChanging();
this._ZINS_SOC = value;
this.SendPropertyChanged("ZINS_SOC");
this.OnZINS_SOCChanged();
}
}
}
/// <summary>
/// There are no comments for ZINS_COD in the schema.
/// </summary>
[Column(Storage = "_ZINS_COD", CanBeNull = false, DbType = "VARCHAR2(10) NOT NULL", IsPrimaryKey = true)]
public string ZINS_COD
{
get
{
return this._ZINS_COD;
}
set
{
if (this._ZINS_COD != value)
{
this.OnZINS_CODChanging(value);
this.SendPropertyChanging();
this._ZINS_COD = value;
this.SendPropertyChanged("ZINS_COD");
this.OnZINS_CODChanged();
}
}
}
/// <summary>
/// There are no comments for ZINS_DES in the schema.
/// </summary>
[Column(Storage = "_ZINS_DES", DbType = "VARCHAR2(4000) NULL")]
public string ZINS_DES
{
get
{
return this._ZINS_DES;
}
set
{
if (this._ZINS_DES != value)
{
this.OnZINS_DESChanging(value);
this.SendPropertyChanging();
this._ZINS_DES = value;
this.SendPropertyChanged("ZINS_DES");
this.OnZINS_DESChanged();
}
}
}
/// <summary>
/// There are no comments for ZINS_PAR in the schema.
/// </summary>
[Column(Storage = "_ZINS_PAR", DbType = "VARCHAR2(254) NULL")]
public string ZINS_PAR
{
get
{
return this._ZINS_PAR;
}
set
{
if (this._ZINS_PAR != value)
{
this.OnZINS_PARChanging(value);
this.SendPropertyChanging();
this._ZINS_PAR = value;
this.SendPropertyChanged("ZINS_PAR");
this.OnZINS_PARChanged();
}
}
}
/// <summary>
/// There are no comments for ZINS_LIB in the schema.
/// </summary>
[Column(Storage = "_ZINS_LIB", CanBeNull = false, DbType = "VARCHAR2(254) NOT NULL")]
public string ZINS_LIB
{
get
{
return this._ZINS_LIB;
}
set
{
if (this._ZINS_LIB != value)
{
this.OnZINS_LIBChanging(value);
this.SendPropertyChanging();
this._ZINS_LIB = value;
this.SendPropertyChanged("ZINS_LIB");
this.OnZINS_LIBChanged();
}
}
}
/// <summary>
/// There are no comments for ZINS_CHOI in the schema.
/// </summary>
[Column(Storage = "_ZINS_CHOI", CanBeNull = false, DbType = "VARCHAR2(12) NOT NULL")]
public string ZINS_CHOI
{
get
{
return this._ZINS_CHOI;
}
set
{
if (this._ZINS_CHOI != value)
{
this.OnZINS_CHOIChanging(value);
this.SendPropertyChanging();
this._ZINS_CHOI = value;
this.SendPropertyChanged("ZINS_CHOI");
this.OnZINS_CHOIChanged();
}
}
}
/// <summary>
/// There are no comments for ZINS_PRG in the schema.
/// </summary>
[Column(Storage = "_ZINS_PRG", DbType = "VARCHAR2(20) NULL")]
public string ZINS_PRG
{
get
{
return this._ZINS_PRG;
}
set
{
if (this._ZINS_PRG != value)
{
this.OnZINS_PRGChanging(value);
this.SendPropertyChanging();
this._ZINS_PRG = value;
this.SendPropertyChanged("ZINS_PRG");
this.OnZINS_PRGChanged();
}
}
}
/// <summary>
/// There are no comments for ZINS_APP in the schema.
/// </summary>
[Column(Storage = "_ZINS_APP", DbType = "VARCHAR2(20) NULL")]
public string ZINS_APP
{
get
{
return this._ZINS_APP;
}
set
{
if (this._ZINS_APP != value)
{
this.OnZINS_APPChanging(value);
this.SendPropertyChanging();
this._ZINS_APP = value;
this.SendPropertyChanged("ZINS_APP");
this.OnZINS_APPChanged();
}
}
}
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void SendPropertyChanging()
{
if (this.PropertyChanging != null)
this.PropertyChanging(this, emptyChangingEventArgs);
}
protected virtual void SendPropertyChanging(String propertyName)
{
if (this.PropertyChanging != null)
this.PropertyChanging(this, new PropertyChangingEventArgs(propertyName));
}
protected virtual void SendPropertyChanged(String propertyName)
{
if (this.PropertyChanged != null)
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
/// <summary>
/// There are no comments for SSTA in the schema.
/// </summary>
/// <LongDescription>
/// Categorie statut
/// </LongDescription>
[Table(Name = @"NOVA.SSTA")]
public partial class SSTA : INotifyPropertyChanging, INotifyPropertyChanged
{
private static PropertyChangingEventArgs emptyChangingEventArgs = new PropertyChangingEventArgs(String.Empty);
private string _SSTA_TST;
private string _SSTA_NUM;
private string _SSTA_LIB;
private string _SSTA_DEB;
private string _SSTA_CRE;
private string _SSTA_LI2;
private int _SSTA_PAS;
private int _SSTA_VIS;
private System.Nullable<double> _SSTA_VAL1;
private System.Nullable<double> _SSTA_VAL2;
private string _SSTA_COD1;
private string _SSTA_COD2;
#region Extensibility Method Definitions
partial void OnLoaded();
partial void OnValidate(System.Data.Linq.ChangeAction action);
partial void OnCreated();
partial void OnSSTA_TSTChanging(string value);
partial void OnSSTA_TSTChanged();
partial void OnSSTA_NUMChanging(string value);
partial void OnSSTA_NUMChanged();
partial void OnSSTA_LIBChanging(string value);
partial void OnSSTA_LIBChanged();
partial void OnSSTA_DEBChanging(string value);
partial void OnSSTA_DEBChanged();
partial void OnSSTA_CREChanging(string value);
partial void OnSSTA_CREChanged();
partial void OnSSTA_LI2Changing(string value);
partial void OnSSTA_LI2Changed();
partial void OnSSTA_PASChanging(int value);
partial void OnSSTA_PASChanged();
partial void OnSSTA_VAL1Changing(System.Nullable<double> value);
partial void OnSSTA_VAL1Changed();
partial void OnSSTA_VAL2Changing(System.Nullable<double> value);
partial void OnSSTA_VAL2Changed();
partial void OnSSTA_COD1Changing(string value);
partial void OnSSTA_COD1Changed();
partial void OnSSTA_COD2Changing(string value);
partial void OnSSTA_COD2Changed();
partial void OnSSTA_VISChanging(int value);
partial void OnSSTA_VISChanged();
#endregion
public SSTA()
{
OnCreated();
}
/// <summary>
/// There are no comments for SSTA_TST in the schema.
/// </summary>
/// <LongDescription>
/// No statut
/// </LongDescription>
[Column(Storage = "_SSTA_TST", CanBeNull = false, DbType = "VARCHAR2(10) NOT NULL", IsPrimaryKey = true)]
public string SSTA_TST
{
get
{
return this._SSTA_TST;
}
set
{
if (this._SSTA_TST != value)
{
this.OnSSTA_TSTChanging(value);
this.SendPropertyChanging();
this._SSTA_TST = value;
this.SendPropertyChanged("SSTA_TST");
this.OnSSTA_TSTChanged();
}
}
}
/// <summary>
/// There are no comments for SSTA_NUM in the schema.
/// </summary>
/// <LongDescription>
/// Code statut
/// </LongDescription>
[Column(Storage = "_SSTA_NUM", CanBeNull = false, DbType = "VARCHAR2(12) NOT NULL", IsPrimaryKey = true)]
public string SSTA_NUM
{
get
{
return this._SSTA_NUM;
}
set
{
if (this._SSTA_NUM != value)
{
this.OnSSTA_NUMChanging(value);
this.SendPropertyChanging();
this._SSTA_NUM = value;
this.SendPropertyChanged("SSTA_NUM");
this.OnSSTA_NUMChanged();
}
}
}
/// <summary>
/// There are no comments for SSTA_LIB in the schema.
/// </summary>
/// <LongDescription>
/// Libelle Categorie
/// </LongDescription>
[Column(Storage = "_SSTA_LIB", CanBeNull = false, DbType = "VARCHAR2(60) NOT NULL")]
public string SSTA_LIB
{
get
{
return this._SSTA_LIB;
}
set
{
if (this._SSTA_LIB != value)
{
this.OnSSTA_LIBChanging(value);
this.SendPropertyChanging();
this._SSTA_LIB = value;
this.SendPropertyChanged("SSTA_LIB");
this.OnSSTA_LIBChanged();
}
}
}
/// <summary>
/// There are no comments for SSTA_DEB in the schema.
/// </summary>
/// <LongDescription>
/// Compte debit
/// </LongDescription>
[Column(Storage = "_SSTA_DEB", DbType = "VARCHAR2(30) NULL")]
public string SSTA_DEB
{
get
{
return this._SSTA_DEB;
}
set
{
if (this._SSTA_DEB != value)
{
this.OnSSTA_DEBChanging(value);
this.SendPropertyChanging();
this._SSTA_DEB = value;
this.SendPropertyChanged("SSTA_DEB");
this.OnSSTA_DEBChanged();
}
}
}
/// <summary>
/// There are no comments for SSTA_CRE in the schema.
/// </summary>
/// <LongDescription>
/// Compte credit
/// </LongDescription>
[Column(Storage = "_SSTA_CRE", DbType = "VARCHAR2(30) NULL")]
public string SSTA_CRE
{
get
{
return this._SSTA_CRE;
}
set
{
if (this._SSTA_CRE != value)
{
this.OnSSTA_CREChanging(value);
this.SendPropertyChanging();
this._SSTA_CRE = value;
this.SendPropertyChanged("SSTA_CRE");
this.OnSSTA_CREChanged();
}
}
}
/// <summary>
/// There are no comments for SSTA_LI2 in the schema.
/// </summary>
/// <LongDescription>
/// Libelle long
/// </LongDescription>
[Column(Storage = "_SSTA_LI2", DbType = "VARCHAR2(60) NULL")]
public string SSTA_LI2
{
get
{
return this._SSTA_LI2;
}
set
{
if (this._SSTA_LI2 != value)
{
this.OnSSTA_LI2Changing(value);
this.SendPropertyChanging();
this._SSTA_LI2 = value;
this.SendPropertyChanged("SSTA_LI2");
this.OnSSTA_LI2Changed();
}
}
}
/// <summary>
/// There are no comments for SSTA_PAS in the schema.
/// </summary>
[Column(Storage = "_SSTA_PAS", CanBeNull = false, DbType = "NUMBER(4) NOT NULL", IsPrimaryKey = true)]
public int SSTA_PAS
{
get
{
return this._SSTA_PAS;
}
set
{
if (this._SSTA_PAS != value)
{
this.OnSSTA_PASChanging(value);
this.SendPropertyChanging();
this._SSTA_PAS = value;
this.SendPropertyChanged("SSTA_PAS");
this.OnSSTA_PASChanged();
}
}
}
/// <summary>
/// There are no comments for SSTA_PAS in the schema.
/// </summary>
[Column(Storage = "_SSTA_VIS", CanBeNull = false, DbType = "NUMBER(4) NOT NULL")]
public int SSTA_VIS
{
get
{
return this._SSTA_VIS;
}
set
{
if (this._SSTA_VIS != value)
{
this.OnSSTA_VISChanging(value);
this.SendPropertyChanging();
this._SSTA_VIS = value;
this.SendPropertyChanged("SSTA_VIS");
this.OnSSTA_VISChanged();
}
}
}
/// <summary>
/// There are no comments for SSTA_VAL1 in the schema.
/// </summary>
/// <LongDescription>
/// Valeur 1
/// </LongDescription>
[Column(Storage = "_SSTA_VAL1", DbType = "NUMBER(18,4) NULL")]
public System.Nullable<double> SSTA_VAL1
{
get
{
return this._SSTA_VAL1;
}
set
{
if (this._SSTA_VAL1 != value)
{
this.OnSSTA_VAL1Changing(value);
this.SendPropertyChanging();
this._SSTA_VAL1 = value;
this.SendPropertyChanged("SSTA_VAL1");
this.OnSSTA_VAL1Changed();
}
}
}
/// <summary>
/// There are no comments for SSTA_VAL2 in the schema.
/// </summary>
/// <LongDescription>
/// Valeur 2
/// </LongDescription>
[Column(Storage = "_SSTA_VAL2", DbType = "NUMBER(18,4) NULL")]
public System.Nullable<double> SSTA_VAL2
{
get
{
return this._SSTA_VAL2;
}
set
{
if (this._SSTA_VAL2 != value)
{
this.OnSSTA_VAL2Changing(value);
this.SendPropertyChanging();
this._SSTA_VAL2 = value;
this.SendPropertyChanged("SSTA_VAL2");
this.OnSSTA_VAL2Changed();
}
}
}
/// <summary>
/// There are no comments for SSTA_COD1 in the schema.
/// </summary>
/// <LongDescription>
/// Code Libre 1
/// </LongDescription>
[Column(Storage = "_SSTA_COD1", DbType = "VARCHAR2(30) NULL")]
public string SSTA_COD1
{
get
{
return this._SSTA_COD1;
}
set
{
if (this._SSTA_COD1 != value)
{
this.OnSSTA_COD1Changing(value);
this.SendPropertyChanging();
this._SSTA_COD1 = value;
this.SendPropertyChanged("SSTA_COD1");
this.OnSSTA_COD1Changed();
}
}
}
/// <summary>
/// There are no comments for SSTA_COD2 in the schema.
/// </summary>
/// <LongDescription>
/// Code Libre 2
/// </LongDescription>
[Column(Storage = "_SSTA_COD2", DbType = "VARCHAR2(30) NULL")]
public string SSTA_COD2
{
get
{
return this._SSTA_COD2;
}
set
{
if (this._SSTA_COD2 != value)
{
this.OnSSTA_COD2Changing(value);
this.SendPropertyChanging();
this._SSTA_COD2 = value;
this.SendPropertyChanged("SSTA_COD2");
this.OnSSTA_COD2Changed();
}
}
}
public event PropertyChangingEventHandler PropertyChanging;
public event PropertyChangedEventHandler PropertyChanged;
protected virtual void SendPropertyChanging()
{
if (this.PropertyChanging != null)
this.PropertyChanging(this, emptyChangingEventArgs);
}
protected virtual void SendPropertyChanging(String propertyName)
{
if (this.PropertyChanging != null)
this.PropertyChanging(this, new PropertyChangingEventArgs(propertyName));
}
protected virtual void SendPropertyChanged(String propertyName)
{
if (this.PropertyChanged != null)
this.PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
}
}
using System;
using System.Collections.Generic;
using System.Text;
using System.Security.Cryptography;
using System.Configuration;
using System.IO;
public class CryptorEngine
{
public static string CryptConnexionString(string connection)
{
int iPos = connection.ToUpper().IndexOf("PASSWORD=");
int iFin = connection.IndexOf(";", iPos);
string sPwd = connection.Substring(iPos + 9, iFin - iPos - 9);
string sPwd2 = CryptorEngine.Decrypt(sPwd, true);
connection = connection.Replace("Password=" + sPwd, "Password=" + sPwd2);
return connection;
}
public static string Encrypt(string toEncrypt, bool useHashing)
{
byte[] keyArray;
byte[] toEncryptArray = UTF8Encoding.UTF8.GetBytes(toEncrypt);
System.Configuration.AppSettingsReader settingsReader = new AppSettingsReader();
// Get the key from config file
//string key = (string)settingsReader.GetValue("SecurityKey", typeof(String));
string key = "Sdf253654FDFD";
//System.Windows.Forms.MessageBox.Show(key);
if (useHashing)
{
MD5CryptoServiceProvider hashmd5 = new MD5CryptoServiceProvider();
keyArray = hashmd5.ComputeHash(UTF8Encoding.UTF8.GetBytes(key));
hashmd5.Clear();
}
else
keyArray = UTF8Encoding.UTF8.GetBytes(key);
TripleDESCryptoServiceProvider tdes = new TripleDESCryptoServiceProvider();
tdes.Key = keyArray;
tdes.Mode = CipherMode.ECB;
tdes.Padding = PaddingMode.PKCS7;
ICryptoTransform cTransform = tdes.CreateEncryptor();
byte[] resultArray = cTransform.TransformFinalBlock(toEncryptArray, 0, toEncryptArray.Length);
tdes.Clear();
return Convert.ToBase64String(resultArray, 0, resultArray.Length);
}
/// <summary>
/// DeCrypt a string using dual encryption method. Return a DeCrypted clear string
/// </summary>
/// <param name="cipherString">encrypted string</param>
/// <param name="useHashing">Did you use hashing to encrypt this data? pass true is yes</param>
/// <returns></returns>
public static string Decrypt(string cipherString, bool useHashing)
{
byte[] keyArray;
byte[] toEncryptArray = Convert.FromBase64String(cipherString);
System.Configuration.AppSettingsReader settingsReader = new AppSettingsReader();
//Get your key from config file to open the lock!
string key = "Sdf253654FDFD";// (string)settingsReader.GetValue("SecurityKey", typeof(String));
if (useHashing)
{
MD5CryptoServiceProvider hashmd5 = new MD5CryptoServiceProvider();
keyArray = hashmd5.ComputeHash(UTF8Encoding.UTF8.GetBytes(key));
hashmd5.Clear();
}
else
keyArray = UTF8Encoding.UTF8.GetBytes(key);
TripleDESCryptoServiceProvider tdes = new TripleDESCryptoServiceProvider();
tdes.Key = keyArray;
tdes.Mode = CipherMode.ECB;
tdes.Padding = PaddingMode.PKCS7;
ICryptoTransform cTransform = tdes.CreateDecryptor();
byte[] resultArray = cTransform.TransformFinalBlock(toEncryptArray, 0, toEncryptArray.Length);
tdes.Clear();
return UTF8Encoding.UTF8.GetString(resultArray);
}
}
<?xml version="1.0"?>
<configuration>
<connectionStrings>
<add name="OraConnection" connectionString="user id=nova;Password=oRP0zI6K4GU=;server=10.12.12.21;direct=True;sid=smart02;port=1521;persist security info=True;Pooling=True;Unicode=True" providerName="Devart.Data.OracleClient"/>
</connectionStrings>
<appSettings>
<add key="PAS" value="10"/>
<add key="Destination" value="C:\Users\hanen\Documents\test\"/>
</appSettings>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
create or replace PROCEDURE pr_create_export_ic (
idu_p VARCHAR2,
prg_p VARCHAR2,
dat_p NUMBER,
hre_p NUMBER,
pas_p NUMBER
) is
begin
declare
cursor c_lstp(cod_p varchar2) is
select * from slstp
where lstp_dat= dat_p
and lstp_hre=hre_p
and lstp_prg= prg_p
and lstp_idu= idu_p
and lstp_typ=cod_p
;
r_lstp c_lstp%rowtype;
cursor c_zjc2 is
SELECT ssta_lib,srul_lib,"ZJCP"."ZJCP_TST", "ZJCP"."ZJCP_STA", "ZJCP"."ZJCP_LET", "ZJCP"."ZJCP_NUM", "ZJCP"."ZJCP_CRE", "ZJCP"."ZJCP_DEB", sum("ZJCP"."ZJCP_RES") as MNT,
"ZJCP"."ZJCP_MON", "ZJCP"."ZJCP_MONLIB"
FROM "NOVA"."ZJCP" "ZJCP",srul,ssta
where srul_let(+)="ZJCP"."ZJCP_LET" and srul_num(+)="ZJCP"."ZJCP_NUM" and srul_pas(+)=pas_p and srul_lan(+)='F' and ssta_pas(+)= pas_p and ssta_tst(+)= "ZJCP"."ZJCP_TST" and ssta_num(+)= "ZJCP"."ZJCP_STA"
group by ssta_lib,srul_lib, zjcp_tst,zjcp_sta,zjcp_let,zjcp_num,zjcp_cre,zjcp_deb, "ZJCP"."ZJCP_MON", "ZJCP"."ZJCP_MONLIB"
ORDER BY "ZJCP"."ZJCP_MON", "ZJCP"."ZJCP_STA", "ZJCP"."ZJCP_LET", "ZJCP"."ZJCP_NUM", "ZJCP"."ZJCP_DEB", "ZJCP"."ZJCP_CRE"
;
r_zjc2 c_zjc2%rowtype;
p_sficher varchar2(255);
v_DATA1 varchar2(4000);
ligne number;
v_periode varchar2(2);
v_annee varchar2(4);
v_date date;
begin
-------
open c_lstp('PER_DE');
fetch c_lstp into r_lstp;
close c_lstp;
v_periode:=r_lstp.lstp_par;
open c_lstp('ANN_DE');
fetch c_lstp into r_lstp;
close c_lstp;
v_annee:=r_lstp.lstp_par;
v_date:= ADD_MONTHS(to_date(v_annee||lpad(v_periode,'2','0')||'01','yyyyMMdd'),1)-1;
-------entete
ligne:=1;
p_sficher:= 'Export_interface_comptable'||'_'|| dat_p ||'_'||hre_p ||'.xls'; -- Nom rapport
v_DATA1:='Rubrique'||';'|| 'Description'||';'|| 'Centre de charge'||';'||'Descritpion Centre de charge'||';'||'Compte Debit'||';'||'Compte Credit'||';'||'Montant'||';'||'Periode';
INSERT INTO sw_exp_lst (IDU,PRG,DAT,HRE,FICHIER,PAS,MAT,LIG,DATA)
VALUES(idu_p,prg_p,dat_p,hre_p,p_sficher,pas_p,0,ligne,v_DATA1);
ligne:=ligne+1;
------lignes
open c_zjc2;
loop
fetch c_zjc2 into r_zjc2;
exit when c_zjc2%notfound;
v_DATA1:=r_zjc2.zjcp_let||r_zjc2.zjcp_num||';'|| r_zjc2.srul_lib||';'|| r_zjc2.zjcp_sta||';'||r_zjc2.ssta_lib||';'||r_zjc2.zjcp_deb||';'||r_zjc2.zjcp_cre||';'||r_zjc2.MNT||';'||to_char(v_date,'dd.MM.yyyy');
INSERT INTO sw_exp_lst (IDU,PRG,DAT,HRE,FICHIER,PAS,MAT,LIG,DATA)
VALUES(idu_p,prg_p,dat_p,hre_p,p_sficher,pas_p,0,ligne,v_DATA1);
ligne:=ligne+1;
end loop;
close c_zjc2;
commit;
exception when others then
null;
end;
end ;
-- Start of DDL Script for Procedure NOVA.PR_CREATE_EXPORT_IC_ALL
-- Generated 16-mars-2022 8:15:03 from NOVA@smart02
CREATE OR REPLACE
PROCEDURE pr_create_export_ic_all (
idu_p VARCHAR2,
prg_p VARCHAR2,
dat_p NUMBER,
hre_p NUMBER,
pas_p NUMBER
) is
begin
declare
v_per number;
v_ann number;
inbr number;
begin
v_per :=to_char(ADD_MONTHS(sysdate,-1),'MM');
v_ann :=to_char(ADD_MONTHS(sysdate,-1),'yyyy');
INSERT INTO slstp
(LSTP_IDU,LSTP_DAT,LSTP_HRE,LSTP_TYP,
LSTP_PAR,LSTP_CAT_NUM,LSTP_PRG,LSTP_TMP,
LSTP_FLTS,LSTP_TXT)
VALUES
(idu_p,dat_p,hre_p,'PAS',pas_p,NULL,'JCPT',0,0,NULL);
INSERT INTO slstp
(LSTP_IDU,LSTP_DAT,LSTP_HRE,LSTP_TYP,
LSTP_PAR,LSTP_CAT_NUM,LSTP_PRG,LSTP_TMP,
LSTP_FLTS,LSTP_TXT)
VALUES
(idu_p,dat_p,hre_p,'PER_DE',v_per,NULL,'JCPT',0,0,NULL);
INSERT INTO slstp
(LSTP_IDU,LSTP_DAT,LSTP_HRE,LSTP_TYP,
LSTP_PAR,LSTP_CAT_NUM,LSTP_PRG,LSTP_TMP,
LSTP_FLTS,LSTP_TXT)
VALUES
(idu_p,dat_p,hre_p,'DATE_REF',to_char(sysdate,'yyyyMMdd'),NULL,'JCPT',0,0,NULL);
INSERT INTO slstp
(LSTP_IDU,LSTP_DAT,LSTP_HRE,LSTP_TYP,
LSTP_PAR,LSTP_CAT_NUM,LSTP_PRG,LSTP_TMP,
LSTP_FLTS,LSTP_TXT)
VALUES
(idu_p,dat_p,hre_p,'DAT_REF',to_char(sysdate,'yyyyMMdd'),NULL,'JCPT',0,0,NULL);
INSERT INTO slstp
(LSTP_IDU,LSTP_DAT,LSTP_HRE,LSTP_TYP,
LSTP_PAR,LSTP_CAT_NUM,LSTP_PRG,LSTP_TMP,
LSTP_FLTS,LSTP_TXT)
VALUES
(idu_p,dat_p,hre_p,'ParamDe0',to_char(sysdate,'yyyyMMdd'),NULL,'JCPT',0,0,NULL);
INSERT INTO slstp
(LSTP_IDU,LSTP_DAT,LSTP_HRE,LSTP_TYP,
LSTP_PAR,LSTP_CAT_NUM,LSTP_PRG,LSTP_TMP,
LSTP_FLTS,LSTP_TXT)
VALUES
(idu_p,dat_p,hre_p,'ANN_DE',v_ann,NULL,'JCPT',0,0,NULL);
/* INSERT INTO slstp
(LSTP_IDU,LSTP_DAT,LSTP_HRE,LSTP_TYP,
LSTP_PAR,LSTP_CAT_NUM,LSTP_PRG,LSTP_TMP,
LSTP_FLTS,LSTP_TXT)
VALUES
(idu_p,dat_p,hre_p,'COMPTA_OK','0',NULL,'JCPT',0,0,NULL);
*/
INSERT INTO slstp
(LSTP_IDU,LSTP_DAT,LSTP_HRE,LSTP_TYP,
LSTP_PAR,LSTP_CAT_NUM,LSTP_PRG,LSTP_TMP,
LSTP_FLTS,LSTP_TXT)
VALUES
(idu_p,dat_p,hre_p,'SAUT_PAGE','0',NULL,'JCPT',0,0,NULL);
INSERT INTO slstp
(LSTP_IDU,LSTP_DAT,LSTP_HRE,LSTP_TYP,
LSTP_PAR,LSTP_CAT_NUM,LSTP_PRG,LSTP_TMP,
LSTP_FLTS,LSTP_TXT)
VALUES
(idu_p,dat_p,hre_p,'JUSTIF_RUB','1',NULL,'JCPT',0,0,NULL);
INSERT INTO slstp
(LSTP_IDU,LSTP_DAT,LSTP_HRE,LSTP_TYP,
LSTP_PAR,LSTP_CAT_NUM,LSTP_PRG,LSTP_TMP,
LSTP_FLTS,LSTP_TXT)
VALUES
(idu_p,dat_p,hre_p,'JUSTIF_CT','1',NULL,'JCPT',0,0,NULL);
INSERT INTO slstp
(LSTP_IDU,LSTP_DAT,LSTP_HRE,LSTP_TYP,
LSTP_PAR,LSTP_CAT_NUM,LSTP_PRG,LSTP_TMP,
LSTP_FLTS,LSTP_TXT)
VALUES
(idu_p,dat_p,hre_p,'DAT_VAL',NULL,NULL,'JCPT',0,0,to_char(sysdate,'dd.mm.yyyy'));
INSERT INTO slstp
(LSTP_IDU,LSTP_DAT,LSTP_HRE,LSTP_TYP,
LSTP_PAR,LSTP_CAT_NUM,LSTP_PRG,LSTP_TMP,
LSTP_FLTS,LSTP_TXT)
VALUES
(idu_p,dat_p,hre_p,'MON',NULL,NULL,'JCPT',0,0,NULL);
INSERT INTO slstp
(LSTP_IDU,LSTP_DAT,LSTP_HRE,LSTP_TYP,
LSTP_PAR,LSTP_CAT_NUM,LSTP_PRG,LSTP_TMP,
LSTP_FLTS,LSTP_TXT)
VALUES
(idu_p,dat_p,hre_p,'MAT_DE',1,NULL,'JCPT',0,0,NULL);
INSERT INTO slstp
(LSTP_IDU,LSTP_DAT,LSTP_HRE,LSTP_TYP,
LSTP_PAR,LSTP_CAT_NUM,LSTP_PRG,LSTP_TMP,
LSTP_FLTS,LSTP_TXT)
VALUES
(idu_p,dat_p,hre_p,'MAT_A',999999999,NULL,'JCPT',0,0,NULL);
INSERT INTO slstp
(LSTP_IDU,LSTP_DAT,LSTP_HRE,LSTP_TYP,
LSTP_PAR,LSTP_CAT_NUM,LSTP_PRG,LSTP_TMP,
LSTP_FLTS,LSTP_TXT)
VALUES
(idu_p,dat_p,hre_p,'TYP_PER','12',NULL,'JCPT',0,0,NULL);
INSERT INTO slstp
(LSTP_IDU,LSTP_DAT,LSTP_HRE,LSTP_TYP,
LSTP_PAR,LSTP_CAT_NUM,LSTP_PRG,LSTP_TMP,
LSTP_FLTS,LSTP_TXT)
VALUES
(idu_p,dat_p,hre_p,'SELECT','0',NULL,'JCPT',0,0,NULL);
INSERT INTO slstp (LSTP_IDU,LSTP_DAT,LSTP_HRE,LSTP_TYP,LSTP_PAR,LSTP_CAT_NUM,LSTP_PRG,LSTP_TMP,LSTP_FLTS,LSTP_TXT,LSTP_LOC)
select idu_p,dat_p,hre_p,'SRED_LET',srub_let,srub_num,'JCPT',0,1,NULL,NULL from srub where srub_pas=pas_p and srub_let in ('B','E', 'G', 'I');
INSERT INTO scivs (sciv_idu,sciv_dat,sciv_hre,sciv_pas,sciv_mat, sciv_prg)
select distinct idu_p,dat_p,hre_p,SCIV_PAS,SCIV_MAT,'JCPT'
from sciv where
sciv_pas=pas_p and sciv_mil=1
;
PR_INSERT_PRINTJOBPARAM(pas_p, idu_p, prg_p,dat_p, hre_p, 'F');
pa_sb_compta.effacer( idu_p,0,0, prg_p);
pa_sb_compta.initialiseretpiloter(idu_p,'JCPT',dat_p,hre_p,pas_p);
pr_create_export_ic (idu_p,'JCPT',dat_p,hre_p,pas_p);
commit;
exception when others then null;
end ;
end;
/
-- End of DDL Script for Procedure NOVA.PR_CREATE_EXPORT_IC_ALL
-- Start of DDL Script for Procedure NOVA.PR_CREATE_EXPORT_IC
-- Generated 16-mars-2022 16:02:22 from NOVA@smart02
CREATE OR REPLACE
PROCEDURE pr_create_export_ic (
idu_p VARCHAR2,
prg_p VARCHAR2,
dat_p NUMBER,
hre_p NUMBER,
pas_p NUMBER
) is
begin
declare
cursor c_lstp(cod_p varchar2) is
select * from slstp
where lstp_dat= dat_p
and lstp_hre=hre_p
and lstp_prg= prg_p
and lstp_idu= idu_p
and lstp_typ=cod_p
;
r_lstp c_lstp%rowtype;
cursor c_zjc2 is
SELECT ssta_lib,srul_lib,"ZJCP"."ZJCP_TST", "ZJCP"."ZJCP_STA", "ZJCP"."ZJCP_LET", "ZJCP"."ZJCP_NUM", "ZJCP"."ZJCP_CRE", "ZJCP"."ZJCP_DEB", sum("ZJCP"."ZJCP_RES") as MNT,
"ZJCP"."ZJCP_MON", "ZJCP"."ZJCP_MONLIB"
FROM "NOVA"."ZJCP" "ZJCP",srul,ssta
where srul_let(+)="ZJCP"."ZJCP_LET" and srul_num(+)="ZJCP"."ZJCP_NUM" and srul_pas(+)=pas_p and srul_lan(+)='F' and ssta_pas(+)= pas_p and ssta_tst(+)= "ZJCP"."ZJCP_TST" and ssta_num(+)= "ZJCP"."ZJCP_STA"
group by ssta_lib,srul_lib, zjcp_tst,zjcp_sta,zjcp_let,zjcp_num,zjcp_cre,zjcp_deb, "ZJCP"."ZJCP_MON", "ZJCP"."ZJCP_MONLIB"
ORDER BY "ZJCP"."ZJCP_MON", "ZJCP"."ZJCP_STA", "ZJCP"."ZJCP_LET", "ZJCP"."ZJCP_NUM", "ZJCP"."ZJCP_DEB", "ZJCP"."ZJCP_CRE"
;
r_zjc2 c_zjc2%rowtype;
p_sficher varchar2(255);
v_DATA1 varchar2(4000);
ligne number;
v_periode varchar2(2);
v_annee varchar2(4);
v_date date;
begin
-------
open c_lstp('PER_DE');
fetch c_lstp into r_lstp;
close c_lstp;
v_periode:=r_lstp.lstp_par;
open c_lstp('ANN_DE');
fetch c_lstp into r_lstp;
close c_lstp;
v_annee:=r_lstp.lstp_par;
v_date:= ADD_MONTHS(to_date(v_annee||lpad(v_periode,'2','0')||'01','yyyyMMdd'),1)-1;
-------entete
ligne:=1;
p_sficher:= 'Export_interface_comptable'||'_'|| dat_p ||'_'||hre_p ||'.CSV'; -- Nom rapport
v_DATA1:='Rubrique'||';'|| 'Description'||';'|| 'Centre de charge'||';'||'Descritpion Centre de charge'||';'||'Compte Debit'||';'||'Compte Credit'||';'||'Montant'||';'||'Periode';
INSERT INTO sw_exp_lst (IDU,PRG,DAT,HRE,FICHIER,PAS,MAT,LIG,DATA)
VALUES(idu_p,prg_p,dat_p,hre_p,p_sficher,pas_p,0,ligne,v_DATA1);
ligne:=ligne+1;
------lignes
open c_zjc2;
loop
fetch c_zjc2 into r_zjc2;
exit when c_zjc2%notfound;
v_DATA1:=r_zjc2.zjcp_let||r_zjc2.zjcp_num||';'|| r_zjc2.srul_lib||';'|| r_zjc2.zjcp_sta||';'||r_zjc2.ssta_lib||';'||r_zjc2.zjcp_deb||';'||r_zjc2.zjcp_cre||';'||r_zjc2.MNT||';'||to_char(v_date,'MM.yyyy');
INSERT INTO sw_exp_lst (IDU,PRG,DAT,HRE,FICHIER,PAS,MAT,LIG,DATA)
VALUES(idu_p,prg_p,dat_p,hre_p,p_sficher,pas_p,0,ligne,v_DATA1);
ligne:=ligne+1;
end loop;
close c_zjc2;
commit;
exception when others then
null;
end;
end ;
/
-- End of DDL Script for Procedure NOVA.PR_CREATE_EXPORT_IC
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.IO;
using System.Web.Script.Serialization;
using Newtonsoft.Json;
using System.Configuration;
using System.Net.Http;
using System.Net.Http.Headers;
namespace CallApiPalexpo
{
class Program
{
static void Main(string[] args)
{
ContextDataBase dcPrj = new ContextDataBase(CryptorEngine.CryptConnexionString(ConfigurationManager.ConnectionStrings["OraConnection"].ConnectionString));
string sDate = dcPrj.ZINS.Where(cc => cc.ZINS_COD == "PALEXPO_WS").First().ZINS_PAR;
/*
using (var httpClient = new HttpClient())
{
using (var request = new HttpRequestMessage(new HttpMethod("POST"), "https://apis.palexpo.ch/api-token-auth/"))
{
request.Headers.TryAddWithoutValidation("accept", "application/json");
request.Headers.TryAddWithoutValidation("X-CSRFToken", "nCo5EKi4TTKCnUDpAeRTry5aYvgIds8UCUNaKa3zJeQM4zkrbFSKBV07tY6o2q6Y");
request.Content = new StringContent("{ \"password\": \"123456789\", \"username\": \"novative\"}");
request.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json");
var response = await httpClient.SendAsync(request);
}
}*/
WebRequest request2 =
WebRequest.Create(@"https://apis.palexpo.ch/api-token-auth/");
/* string encodedUserCredentials =
Convert.ToBase64String(
System.Text.ASCIIEncoding.ASCII.GetBytes(ConfigurationManager.AppSettings["CLES"]));*/
request2.ContentType = @"application/json; charset=utf-8";
request2.Method = "POST";
request2.ContentType = "application/json";
var userData =new StringContent("{ \"password\": \"VGRpKmgw0UhYfmQ\", \"username\": \"novative\"}");
request2.Headers.Add("X-CSRFToken","nCo5EKi4TTKCnUDpAeRTry5aYvgIds8UCUNaKa3zJeQM4zkrbFSKBV07tY6o2q6Y");
//request2.Headers.Add("accept", "application/json");
// request2.Headers.Add("Authorization", "Basic " + encodedUserCredentials);
StreamWriter requestWriter = new StreamWriter(request2.GetRequestStream());
requestWriter.Write(userData);
requestWriter.Close();
string sKey = "";
// var response = request2.GetResponse() as HttpWebResponse;
HttpWebResponse response2 = (HttpWebResponse)request2.GetResponse();
string jsonResponse2 = string.Empty;
using (StreamReader sr = new StreamReader(response2.GetResponseStream()))
{
jsonResponse2 = sr.ReadToEnd();
var jss = new JavaScriptSerializer();
Dictionary<string, string> sData = jss.Deserialize<Dictionary<string, string>>(jsonResponse2);
sKey = sData["access_token"].ToString();
// Console.WriteLine(jsonResponse2);
// Console.ReadLine();
}
WebRequest request = WebRequest.Create(@"https://apis.palexpo.ch/novasmart/" + sDate);
// WebRequest request = WebRequest.Create(@"https://api.palexpo.ch/store/api/services/project/1.0.0/search?after_updatedate=01.01.2017");
request.Method = "GET";
// request.Headers.Add("api_key", "e9cf5706-2885-3a0e-aac1-6e37be774ad7");
// request.Headers["Authorization"] = "Basic" + Convert.ToBase64String(Encoding.Default.GetBytes("novative:Novative123"));
// client.DefaultRequestHeaders.Add("Authorization", "Bearer " + accessToken);
request.Headers["Authorization"] = "Bearer " + sKey;
request.ContentLength = 0;
request.ContentType = @"application/json; charset=utf-8";
HttpWebResponse response = (HttpWebResponse)request.GetResponse();
string jsonResponse = string.Empty;
using (StreamReader sr = new StreamReader(response.GetResponseStream()))
{
jsonResponse = sr.ReadToEnd();
var jss = new JavaScriptSerializer();
// Dictionary<string, string> sData = jss.Deserialize<<string, string>>(jsonResponse);
// var jss2 = new JavaScriptSerializer();
// string sLstProduct = jsonResponse.Substring(0, jsonResponse.Length - 3).Replace("{\"ProjectList\":{", "");
Dictionary<string, object> sData2 = jss.Deserialize<Dictionary<string, object>>(jsonResponse);
var arrayprj = sData2["ProjectList"] as Dictionary<string, object>;
var lstprj = arrayprj["Project"] as System.Collections.ArrayList;
int iPas = int.Parse(ConfigurationManager.AppSettings["PAS"]);
string sSstaTst = ConfigurationManager.AppSettings["STA_PRJ"];
try
{
for (int idx = 0; idx < lstprj.Count; idx++)
{
var project = lstprj[idx] as Dictionary<string, object>;
string sCode = project["EventId"].ToString();
string sSstaLib = project["EventDescription"].ToString();
string sSStaVis = project["TimesheetFlag"].ToString();
int isStaVis = (sSStaVis == "Y") ? 0 : 1;
if (!string.IsNullOrEmpty(sSstaLib))
{
if (dcPrj.SSTAs.Where(cc => cc.SSTA_PAS == iPas && cc.SSTA_TST == sSstaTst
&& cc.SSTA_NUM == sCode).ToList().Count == 0)
{
dcPrj.SSTAs.InsertOnSubmit(new SSTA()
{
SSTA_NUM = sCode,
SSTA_TST = sSstaTst,
SSTA_LIB = sSstaLib,
SSTA_PAS = iPas,
SSTA_VIS = isStaVis
});
}
else
{
dcPrj.SSTAs.Where(cc => cc.SSTA_PAS == iPas && cc.SSTA_TST == sSstaTst
&& cc.SSTA_NUM == sCode).First().SSTA_VIS = isStaVis;
}
}
}
dcPrj.SubmitChanges();
dcPrj.ZINS.Where(cc => cc.ZINS_COD == "PALEXPO_WS").First().ZINS_PAR = string.Format("{0:yyyy-MM-dd}", DateTime.Now.Date.AddDays(-1));
dcPrj.SubmitChanges();
}
catch (Exception ex)
{
ContextDataBase dcPrj2 = new ContextDataBase(CryptorEngine.CryptConnexionString(ConfigurationManager.ConnectionStrings["OraConnection"].ConnectionString));
DateTime dtNow = DateTime.Now;
int iDat = int.Parse(String.Format("{0:yyyyMMdd}", dtNow));
int iHre = int.Parse(String.Format("{0:HHmmss}", dtNow));
try
{
dcPrj2.Zerrs.InsertOnSubmit(new Zerr()
{
ZerrPrg = "PALEXPO_WS",
ZerrMsg = (ex.Message.Length < 254) ? ex.Message : ex.Message.Substring(0, 254),
ZerrKey = (ex.InnerException.Message.Length < 254) ? ex.InnerException.Message : ex.InnerException.Message.Substring(0, 254),
ZerrDat = iDat,
ZerrHre = iHre,
ZerrIdu = "NOVAP",
ZerrPas = 0,
ZerrMat = 0,
ZerrNum = "",
});
dcPrj2.SubmitChanges();
//return "succées";
}
catch (Exception ex2)
{
string sMsg = ex2.Message;
// return sMsg;
}
}
// var jarray = JsonConvert.DeserializeObject<Product>(sLstProduct);
//Console.WriteLine(jsonResponse);
//Console.ReadLine();
}
}
}
public class Project
{
public string EventId;
public string StartDate;
public int OrganisationCode;
public string EventDescription;
public string TimesheetFlag;
public string UpdateStamp;
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.IO;
//using System.Web.Script.Serialization;
using Newtonsoft.Json;
using System.Configuration;
using Devart.Data.Oracle;
using System.Data;
//using System.Web.Script.Serialization;
namespace CallExportComptable
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Début traitement");
string sKey = "";
ContextDataBase dcPrj = new ContextDataBase(CryptorEngine.CryptConnexionString(ConfigurationManager.ConnectionStrings["OraConnection"].ConnectionString));
DateTime dtNow = DateTime.Now;
string sDate = dtNow.Year+"."+dtNow.Month.ToString().PadLeft(2,'0')+"."+dtNow.Day.ToString().PadLeft(2,'0');
int idate = dtNow.Year *10000 + dtNow.Month*100 + dtNow.Day;
int ihre= int.Parse(String.Format("{0:HHmmss}", dtNow));
int iPas = int.Parse(ConfigurationManager.AppSettings["PAS"]);
string destination = ConfigurationManager.AppSettings["Destination"];
string Qry = "pr_create_export_ic_all ('NOVA','JCPT'," + idate + "," + ihre + ", "+iPas+")";
Console.WriteLine("call de la procedure");
OracleConnection ora = new OracleConnection(dcPrj.Connection.ConnectionString);
try
{
ora.Open();
OracleCommand command = new OracleCommand(Qry, ora);
command.CommandType = CommandType.StoredProcedure;
command.ExecuteNonQuery();
}
catch (Exception ex)
{
ora.Close();
Console.WriteLine("Exception execution proc="+ex.Message);
}
finally
{
ora.Dispose();
}
Console.WriteLine("Fin de la procédure");
//----------creation fichier
try
{
string cur_dir = "";
string sPathDst = "";
string sNomFichier = "";
string data = "";
Console.WriteLine("EXPORTING FILE AT PATH: " + destination);
sPathDst = destination;
string sSqlInstruction2 = "SELECT distinct FICHIER FROM sw_exp_lst where idu = '" + "NOVA" + "' and prg = '" + "JCPT" + "'" +
"and dat = " + idate.ToString() + " and hre = " + ihre.ToString();
List<string> lstFile = dcPrj.ExecuteQuery<string>(sSqlInstruction2).ToList();
if (lstFile.Count == 0)
{
Console.WriteLine("table sw_exp_lst vide");
}
foreach (var item in lstFile)
{
sNomFichier = item;
if (!string.IsNullOrEmpty(sNomFichier))
{
string ssql = "SELECT DATA FROM sw_exp_lst where idu = '" + "NOVA" + "' and prg = '" + "JCPT" + "' and dat = " + idate.ToString() +
" and hre = " + ihre.ToString() +
" and fichier = '" + sNomFichier + "' order by lig";
List<string> lstdata = dcPrj.ExecuteQuery<string>(ssql).ToList();
//Création du fichier dans novaexp
// PathFileName.sprintf("%s%s", cur_dir, sNomFichier);
//if ((out = fopen(PathFileName.c_str(), "wt"))== NULL)
//{
// ShowMessage("Canot create file "+ PathFileName);
// bTrt = false;
//}
string sFile = sPathDst + sNomFichier;
System.IO.StreamWriter file = new System.IO.StreamWriter(sFile, false, System.Text.Encoding.UTF8);
{
/// écrire les données dans le ficher
foreach (var elem in lstdata)
{
data = elem;
file.WriteLine(data);
//file.WriteLine("\n");
data = "";
}
//close file
file.Close();
}
}
}
}
catch (Exception err)
{
string smsg = err.Message;
}
Console.WriteLine("Fin traitement");
}
// // request.Headers.Add("api_key", "e9cf5706-2885-3a0e-aac1-6e37be774ad7");
// // request.Headers["Authorization"] = "Basic" + Convert.ToBase64String(Encoding.Default.GetBytes("novative:Novative123"));
// // client.DefaultRequestHeaders.Add("Authorization", "Bearer " + accessToken);
// request.Headers["Authorization"] = "Bearer " + "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJvcmlnX2lhdCI6MTY0MTI4NzQ0MCwiZXhwIjoxNjQxMzE3NDQwLCJlbWFpbCI6IiIsInVzZXJuYW1lIjoibm92YXRpdmUiLCJ1c2VyX2lkIjoyOX0._DAsdO2HWTyHc9GG4lIThQIiOyvDhVuHdZveXy0J8ZE";
// request.ContentLength = 0;
// request.ContentType = @"application/json; charset=utf-8";
// HttpWebResponse response = (HttpWebResponse)request.GetResponse();
// string jsonResponse = string.Empty;
// using (StreamReader sr = new StreamReader(response.GetResponseStream()))
// {
// jsonResponse = sr.ReadToEnd();
// var jss = new JavaScriptSerializer();
// // Dictionary<string, string> sData = jss.Deserialize<<string, string>>(jsonResponse);
// // var jss2 = new JavaScriptSerializer();
// // string sLstProduct = jsonResponse.Substring(0, jsonResponse.Length - 3).Replace("{\"ProjectList\":{", "");
// Dictionary<string, object> sData2 = jss.Deserialize<Dictionary<string, object>>(jsonResponse);
// var arrayprj = sData2["ProjectList"] as Dictionary<string, object>;
// var lstprj = arrayprj["Project"] as System.Collections.ArrayList;
// int iPas = int.Parse(ConfigurationManager.AppSettings["PAS"]);
// string sSstaTst = ConfigurationManager.AppSettings["STA_PRJ"];
// try
// {
// for (int idx = 0; idx < lstprj.Count; idx++)
// {
// var project = lstprj[idx] as Dictionary<string, object>;
// string sCode = project["EventId"].ToString();
// string sSstaLib = project["EventDescription"].ToString();
// string sSStaVis = project["TimesheetFlag"].ToString();
// int isStaVis = (sSStaVis == "Y") ? 0 : 1;
// if (!string.IsNullOrEmpty(sSstaLib))
// {
// if (dcPrj.SSTAs.Where(cc => cc.SSTA_PAS == iPas && cc.SSTA_TST == sSstaTst
// && cc.SSTA_NUM == sCode).ToList().Count == 0)
// {
// dcPrj.SSTAs.InsertOnSubmit(new SSTA()
// {
// SSTA_NUM = sCode,
// SSTA_TST = sSstaTst,
// SSTA_LIB = sSstaLib,
// SSTA_PAS = iPas,
// SSTA_VIS = isStaVis
// });
// }
// else
// {
// dcPrj.SSTAs.Where(cc => cc.SSTA_PAS == iPas && cc.SSTA_TST == sSstaTst
// && cc.SSTA_NUM == sCode).First().SSTA_VIS = isStaVis;
// }
// }
// }
// dcPrj.SubmitChanges();
// dcPrj.ZINS.Where(cc => cc.ZINS_COD == "PALEXPO_WS").First().ZINS_PAR = string.Format("{0:yyyy-MM-dd}", DateTime.Now.Date.AddDays(-1));
// dcPrj.SubmitChanges();
//}
//catch (Exception ex)
//{
// ContextDataBase dcPrj2 = new ContextDataBase(CryptorEngine.CryptConnexionString(ConfigurationManager.ConnectionStrings["OraConnection"].ConnectionString));
// DateTime dtNow = DateTime.Now;
// int iDat = int.Parse(String.Format("{0:yyyyMMdd}", dtNow));
// int iHre = int.Parse(String.Format("{0:HHmmss}", dtNow));
// try
// {
// dcPrj2.Zerrs.InsertOnSubmit(new Zerr()
// {
// ZerrPrg = "PALEXPO_WS",
// ZerrMsg = (ex.Message.Length < 254) ? ex.Message : ex.Message.Substring(0, 254),
// ZerrKey = (ex.InnerException.Message.Length < 254) ? ex.InnerException.Message : ex.InnerException.Message.Substring(0, 254),
// ZerrDat = iDat,
// ZerrHre = iHre,
// ZerrIdu = "NOVAP",
// ZerrPas = 0,
// ZerrMat = 0,
// ZerrNum = "",
// });
// dcPrj2.SubmitChanges();
// //return "succées";
// }
// catch (Exception ex2)
// {
// string sMsg = ex2.Message;
// // return sMsg;
// }
//}
// var jarray = JsonConvert.DeserializeObject<Product>(sLstProduct);
//Console.WriteLine(jsonResponse);
//Console.ReadLine();
/*
using (var httpClient = new HttpClient())
{
using (var request = new HttpRequestMessage(new HttpMethod("POST"), "https://apis.palexpo.ch/api-token-auth/"))
{
request.Headers.TryAddWithoutValidation("accept", "application/json");
request.Headers.TryAddWithoutValidation("X-CSRFToken", "nCo5EKi4TTKCnUDpAeRTry5aYvgIds8UCUNaKa3zJeQM4zkrbFSKBV07tY6o2q6Y");
request.Content = new StringContent("{ \"password\": \"123456789\", \"username\": \"novative\"}");
request.Content.Headers.ContentType = MediaTypeHeaderValue.Parse("application/json");
var response = await httpClient.SendAsync(request);
}
}*/
//// WebRequest request2 =
//// WebRequest.Create(@"https://apis.palexpo.ch/api-token-auth/");
//// /* string encodedUserCredentials =
////Convert.ToBase64String(
//// System.Text.ASCIIEncoding.ASCII.GetBytes(ConfigurationManager.AppSettings["CLES"]));*/
//// request2.ContentType = @"application/json; charset=utf-8";
//// request2.Method = "POST";
//// request2.ContentType = "application/json";
//// var userData =new StringContent("{ \"password\": \"VGRpKmgw0UhYfmQ\", \"username\": \"novative\"}");
//// // request2.Headers.Add("X-CSRFToken","nCo5EKi4TTKCnUDpAeRTry5aYvgIds8UCUNaKa3zJeQM4zkrbFSKBV07tY6o2q6Y");
//// //request2.Headers.Add("accept", "application/json");
//// // request2.Headers.Add("Authorization", "Basic " + encodedUserCredentials);
//// StreamWriter requestWriter = new StreamWriter(request2.GetRequestStream());
//// requestWriter.Write(userData);
//// requestWriter.Close();
//// string sKey = "";
//// // var response = request2.GetResponse() as HttpWebResponse;
//// HttpWebResponse response2 = (HttpWebResponse)request2.GetResponse();
//// string jsonResponse2 = string.Empty;
//// using (StreamReader sr = new StreamReader(response2.GetResponseStream()))
//// {
//// jsonResponse2 = sr.ReadToEnd();
//// var jss = new JavaScriptSerializer();
//// Dictionary<string, string> sData = jss.Deserialize<Dictionary<string, string>>(jsonResponse2);
//// sKey = sData["access_token"].ToString();
//// // Console.WriteLine(jsonResponse2);
//// // Console.ReadLine();
//// }
// }
// *
// * *
// * = "http://www.letrot.com/stats/fiche-cheval/diane-des-champs/ZWF8ZQoHCgoR/courses/dernieres-performances-paginate-2";
////// ou
//// string Uri = "https://www.letrot.com/stats/fiche-cheval/diane-des-champs/ZWF8ZQoHCgoR/courses/dernieres-performances-paginate-2";
//using (System.Net.WebClient wc = new System.Net.WebClient())
//{
// wc.DownloadFile(Uri, @"D:\urlContent.txt");
// *
// *
// *
// * /
// WebRequest request = WebRequest.Create();
// //
}
public class Project
{
public string EventId;
public string StartDate;
public int OrganisationCode;
public string EventDescription;
public string TimesheetFlag;
public string UpdateStamp;
}
}
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("CallApiPalexpo")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("CallApiPalexpo")]
[assembly: AssemblyCopyright("Copyright © 2017")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("45b5aabc-3d73-47a3-b3d1-d4570cc1e514")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
BODY
{
BACKGROUND-COLOR: white;
FONT-FAMILY: "Verdana", sans-serif;
FONT-SIZE: 100%;
MARGIN-LEFT: 0px;
MARGIN-TOP: 0px
}
P
{
FONT-FAMILY: "Verdana", sans-serif;
FONT-SIZE: 70%;
LINE-HEIGHT: 12pt;
MARGIN-BOTTOM: 0px;
MARGIN-LEFT: 10px;
MARGIN-TOP: 10px
}
.note
{
BACKGROUND-COLOR: #ffffff;
COLOR: #336699;
FONT-FAMILY: "Verdana", sans-serif;
FONT-SIZE: 100%;
MARGIN-BOTTOM: 0px;
MARGIN-LEFT: 0px;
MARGIN-TOP: 0px;
PADDING-RIGHT: 10px
}
.infotable
{
BACKGROUND-COLOR: #f0f0e0;
BORDER-BOTTOM: #ffffff 0px solid;
BORDER-COLLAPSE: collapse;
BORDER-LEFT: #ffffff 0px solid;
BORDER-RIGHT: #ffffff 0px solid;
BORDER-TOP: #ffffff 0px solid;
FONT-SIZE: 70%;
MARGIN-LEFT: 10px
}
.issuetable
{
BACKGROUND-COLOR: #ffffe8;
BORDER-COLLAPSE: collapse;
COLOR: #000000;
FONT-SIZE: 100%;
MARGIN-BOTTOM: 10px;
MARGIN-LEFT: 13px;
MARGIN-TOP: 0px
}
.issuetitle
{
BACKGROUND-COLOR: #ffffff;
BORDER-BOTTOM: #dcdcdc 1px solid;
BORDER-TOP: #dcdcdc 1px;
COLOR: #003366;
FONT-WEIGHT: normal
}
.header
{
BACKGROUND-COLOR: #cecf9c;
BORDER-BOTTOM: #ffffff 1px solid;
BORDER-LEFT: #ffffff 1px solid;
BORDER-RIGHT: #ffffff 1px solid;
BORDER-TOP: #ffffff 1px solid;
COLOR: #000000;
FONT-WEIGHT: bold
}
.issuehdr
{
BACKGROUND-COLOR: #E0EBF5;
BORDER-BOTTOM: #dcdcdc 1px solid;
BORDER-TOP: #dcdcdc 1px solid;
COLOR: #000000;
FONT-WEIGHT: normal
}
.issuenone
{
BACKGROUND-COLOR: #ffffff;
BORDER-BOTTOM: 0px;
BORDER-LEFT: 0px;
BORDER-RIGHT: 0px;
BORDER-TOP: 0px;
COLOR: #000000;
FONT-WEIGHT: normal
}
.content
{
BACKGROUND-COLOR: #e7e7ce;
BORDER-BOTTOM: #ffffff 1px solid;
BORDER-LEFT: #ffffff 1px solid;
BORDER-RIGHT: #ffffff 1px solid;
BORDER-TOP: #ffffff 1px solid;
PADDING-LEFT: 3px
}
.issuecontent
{
BACKGROUND-COLOR: #ffffff;
BORDER-BOTTOM: #dcdcdc 1px solid;
BORDER-TOP: #dcdcdc 1px solid;
PADDING-LEFT: 3px
}
A:link
{
COLOR: #cc6633;
TEXT-DECORATION: underline
}
A:visited
{
COLOR: #cc6633;
}
A:active
{
COLOR: #cc6633;
}
A:hover
{
COLOR: #cc3300;
TEXT-DECORATION: underline
}
H1
{
BACKGROUND-COLOR: #003366;
BORDER-BOTTOM: #336699 6px solid;
COLOR: #ffffff;
FONT-SIZE: 130%;
FONT-WEIGHT: normal;
MARGIN: 0em 0em 0em -20px;
PADDING-BOTTOM: 8px;
PADDING-LEFT: 30px;
PADDING-TOP: 16px
}
H2
{
COLOR: #000000;
FONT-SIZE: 80%;
FONT-WEIGHT: bold;
MARGIN-BOTTOM: 3px;
MARGIN-LEFT: 10px;
MARGIN-TOP: 20px;
PADDING-LEFT: 0px
}
H3
{
COLOR: #000000;
FONT-SIZE: 80%;
FONT-WEIGHT: bold;
MARGIN-BOTTOM: -5px;
MARGIN-LEFT: 10px;
MARGIN-TOP: 20px
}
H4
{
COLOR: #000000;
FONT-SIZE: 70%;
FONT-WEIGHT: bold;
MARGIN-BOTTOM: 0px;
MARGIN-TOP: 15px;
PADDING-BOTTOM: 0px
}
UL
{
COLOR: #000000;
FONT-SIZE: 70%;
LIST-STYLE: square;
MARGIN-BOTTOM: 0pt;
MARGIN-TOP: 0pt
}
OL
{
COLOR: #000000;
FONT-SIZE: 70%;
LIST-STYLE: square;
MARGIN-BOTTOM: 0pt;
MARGIN-TOP: 0pt
}
LI
{
LIST-STYLE: square;
MARGIN-LEFT: 0px
}
.expandable
{
CURSOR: hand
}
.expanded
{
color: black
}
.collapsed
{
DISPLAY: none
}
.foot
{
BACKGROUND-COLOR: #ffffff;
BORDER-BOTTOM: #cecf9c 1px solid;
BORDER-TOP: #cecf9c 2px solid
}
.settings
{
MARGIN-LEFT: 25PX;
}
.help
{
TEXT-ALIGN: right;
margin-right: 10px;
}
<?xml version="1.0" encoding="utf-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl='urn:schemas-microsoft-com:xslt'>
<xsl:key name="ProjectKey" match="Event" use="@Project" />
<xsl:template match="Events" mode="createProjects">
<projects>
<xsl:for-each select="Event">
<!--xsl:sort select="@Project" order="descending"/-->
<xsl:if test="(1=position()) or (preceding-sibling::*[1]/@Project != @Project)">
<xsl:variable name="ProjectName" select="@Project"/>
<project>
<xsl:attribute name="name">
<xsl:value-of select="@Project"/>
</xsl:attribute>
<xsl:if test="@Project=''">
<xsl:attribute name="solution">
<xsl:value-of select="@Solution"/>
</xsl:attribute>
</xsl:if>
<xsl:for-each select="key('ProjectKey', $ProjectName)">
<!--xsl:sort select="@Source" /-->
<xsl:if test="(1=position()) or (preceding-sibling::*[1]/@Source != @Source)">
<source>
<xsl:attribute name="name">
<xsl:value-of select="@Source"/>
</xsl:attribute>
<xsl:variable name="Source">
<xsl:value-of select="@Source"/>
</xsl:variable>
<xsl:for-each select="key('ProjectKey', $ProjectName)[ @Source = $Source ]">
<event>
<xsl:attribute name="error-level">
<xsl:value-of select="@ErrorLevel"/>
</xsl:attribute>
<xsl:attribute name="description">
<xsl:value-of select="@Description"/>
</xsl:attribute>
</event>
</xsl:for-each>
</source>
</xsl:if>
</xsl:for-each>
</project>
</xsl:if>
</xsl:for-each>
</projects>
</xsl:template>
<xsl:template match="projects">
<xsl:for-each select="project">
<xsl:sort select="@Name" order="ascending"/>
<h2>
<xsl:if test="@solution"><a _locID="Solution">Solution</a>: <xsl:value-of select="@solution"/></xsl:if>
<xsl:if test="not(@solution)"><a _locID="Project">Project</a>: <xsl:value-of select="@name"/>
<xsl:for-each select="source">
<xsl:variable name="Hyperlink" select="@name"/>
<xsl:for-each select="event[@error-level='4']">
&#32;<A class="note"><xsl:attribute name="HREF"><xsl:value-of select="$Hyperlink"/></xsl:attribute><xsl:value-of select="@description"/></A>
</xsl:for-each>
</xsl:for-each>
</xsl:if>
</h2>
<table cellpadding="2" cellspacing="0" width="98%" border="1" bordercolor="white" class="infotable">
<tr>
<td nowrap="1" class="header" _locID="Filename">Filename</td>
<td nowrap="1" class="header" _locID="Status">Status</td>
<td nowrap="1" class="header" _locID="Errors">Errors</td>
<td nowrap="1" class="header" _locID="Warnings">Warnings</td>
</tr>
<xsl:for-each select="source">
<xsl:sort select="@name" order="ascending"/>
<xsl:variable name="source-id" select="generate-id(.)"/>
<xsl:if test="count(event)!=count(event[@error-level='4'])">
<tr class="row">
<td class="content">
<A HREF="javascript:"><xsl:attribute name="onClick">javascript:document.images['<xsl:value-of select="$source-id"/>'].click()</xsl:attribute><IMG border="0" _locID="IMG.alt" _locAttrData="alt" alt="expand/collapse section" class="expandable" height="11" onclick="changepic()" src="_UpgradeReport_Files/UpgradeReport_Plus.gif" width="9" ><xsl:attribute name="name"><xsl:value-of select="$source-id"/></xsl:attribute><xsl:attribute name="child">src<xsl:value-of select="$source-id"/></xsl:attribute></IMG></A>&#32;<xsl:value-of select="@name"/>
</td>
<td class="content">
<xsl:if test="count(event[@error-level='3'])=1">
<xsl:for-each select="event[@error-level='3']">
<xsl:if test="@description='Converted'"><a _locID="Converted1">Converted</a></xsl:if>
<xsl:if test="@description!='Converted'"><xsl:value-of select="@description"/></xsl:if>
</xsl:for-each>
</xsl:if>
<xsl:if test="count(event[@error-level='3'])!=1 and count(event[@error-level='3' and @description='Converted'])!=0"><a _locID="Converted2">Converted</a>
</xsl:if>
</td>
<td class="content"><xsl:value-of select="count(event[@error-level='2'])"/></td>
<td class="content"><xsl:value-of select="count(event[@error-level='1'])"/></td>
</tr>
<tr class="collapsed" bgcolor="#ffffff">
<xsl:attribute name="id">src<xsl:value-of select="$source-id"/></xsl:attribute>
<td colspan="7">
<table width="97%" border="1" bordercolor="#dcdcdc" rules="cols" class="issuetable">
<tr>
<td colspan="7" class="issuetitle" _locID="ConversionIssues">Conversion Report - <xsl:value-of select="@name"/>:</td>
</tr>
<xsl:for-each select="event[@error-level!='3']">
<xsl:if test="@error-level!='4'">
<tr>
<td class="issuenone" style="border-bottom:solid 1 lightgray">
<xsl:value-of select="@description"/>
</td>
</tr>
</xsl:if>
</xsl:for-each>
</table>
</td>
</tr>
</xsl:if>
</xsl:for-each>
<tr valign="top">
<td class="foot">
<xsl:if test="count(source)!=1">
<xsl:value-of select="count(source)"/><a _locID="file1"> files</a>
</xsl:if>
<xsl:if test="count(source)=1">
<a _locID="file2">1 file</a>
</xsl:if>
</td>
<td class="foot">
<a _locID="Converted3">Converted</a>:&#32;<xsl:value-of select="count(source/event[@error-level='3' and @description='Converted'])"/><BR />
<a _locID="NotConverted">Not converted</a>:&#32;<xsl:value-of select="count(source) - count(source/event[@error-level='3' and @description='Converted'])"/>
</td>
<td class="foot"><xsl:value-of select="count(source/event[@error-level='2'])"/></td>
<td class="foot"><xsl:value-of select="count(source/event[@error-level='1'])"/></td>
</tr>
</table>
</xsl:for-each>
</xsl:template>
<xsl:template match="Property">
<xsl:if test="@Name!='Date' and @Name!='Time' and @Name!='LogNumber' and @Name!='Solution'">
<tr><td nowrap="1"><b><xsl:value-of select="@Name"/>: </b><xsl:value-of select="@Value"/></td></tr>
</xsl:if>
</xsl:template>
<xsl:template match="UpgradeLog">
<html>
<head>
<META HTTP-EQUIV="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="_UpgradeReport_Files\UpgradeReport.css" />
<title _locID="ConversionReport0">Conversion Report&#32;
<xsl:if test="Properties/Property[@Name='LogNumber']">
<xsl:value-of select="Properties/Property[@Name='LogNumber']/@Value"/>
</xsl:if>
</title>
<script language="javascript">
function outliner () {
oMe = window.event.srcElement
//get child element
var child = document.all[event.srcElement.getAttribute("child",false)];
//if child element exists, expand or collapse it.
if (null != child)
child.className = child.className == "collapsed" ? "expanded" : "collapsed";
}
function changepic() {
uMe = window.event.srcElement;
var check = uMe.src.toLowerCase();
if (check.lastIndexOf("upgradereport_plus.gif") != -1)
{
uMe.src = "_UpgradeReport_Files/UpgradeReport_Minus.gif"
}
else
{
uMe.src = "_UpgradeReport_Files/UpgradeReport_Plus.gif"
}
}
</script>
</head>
<body topmargin="0" leftmargin="0" rightmargin="0" onclick="outliner();">
<h1 _locID="ConversionReport">Conversion Report - <xsl:value-of select="Properties/Property[@Name='Solution']/@Value"/></h1>
<p><span class="note">
<b _locID="TimeOfConversion">Time of Conversion:</b>&#32;&#32;<xsl:value-of select="Properties/Property[@Name='Date']/@Value"/>&#32;&#32;<xsl:value-of select="Properties/Property[@Name='Time']/@Value"/><br/>
</span></p>
<xsl:variable name="SortedEvents">
<Events>
<xsl:for-each select="Event">
<xsl:sort select="@Project" order="ascending"/>
<xsl:sort select="@Source" order="ascending"/>
<xsl:sort select="@ErrorLevel" order="ascending"/>
<Event>
<xsl:attribute name="Project"><xsl:value-of select="@Project"/> </xsl:attribute>
<xsl:attribute name="Solution"><xsl:value-of select="/UpgradeLog/Properties/Property[@Name='Solution']/@Value"/> </xsl:attribute>
<xsl:attribute name="Source"><xsl:value-of select="@Source"/> </xsl:attribute>
<xsl:attribute name="ErrorLevel"><xsl:value-of select="@ErrorLevel"/> </xsl:attribute>
<xsl:attribute name="Description"><xsl:value-of select="@Description"/> </xsl:attribute>
</Event>
</xsl:for-each>
</Events>
</xsl:variable>
<xsl:variable name="Projects">
<xsl:apply-templates select="msxsl:node-set($SortedEvents)/*" mode="createProjects"/>
</xsl:variable>
<xsl:apply-templates select="msxsl:node-set($Projects)/*"/>
<p></p><p>
<table class="note">
<tr>
<td nowrap="1">
<b _locID="ConversionSettings">Conversion Settings</b>
</td>
</tr>
<xsl:apply-templates select="Properties"/>
</table></p>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
<?xml version="1.0"?>
<configuration>
<connectionStrings>
<add name="OraConnection" connectionString="user id=nova;Password=oRP0zI6K4GU=;server=10.12.12.21;direct=True;sid=smart02;port=1521;persist security info=True;Pooling=True;Unicode=True" providerName="Devart.Data.OracleClient"/>
</connectionStrings>
<appSettings>
<add key="PAS" value="10"/>
<add key="Destination" value="C:\Users\hanen\Documents\test\"/>
</appSettings>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
<?xml version="1.0"?>
<configuration>
<connectionStrings>
<add name="OraConnection" connectionString="user id=nova;Password=oRP0zI6K4GU=;server=10.12.12.21;direct=True;sid=smart02;port=1521;persist security info=True;Pooling=True;Unicode=True" providerName="Devart.Data.OracleClient"/>
</connectionStrings>
<appSettings>
<add key="PAS" value="10"/>
<add key="Destination" value="C:\Users\hanen\Documents\test\"/>
</appSettings>
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assemblyIdentity version="1.0.0.0" name="MyApplication.app"/>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
<security>
<requestedPrivileges xmlns="urn:schemas-microsoft-com:asm.v3">
<requestedExecutionLevel level="asInvoker" uiAccess="false"/>
</requestedPrivileges>
</security>
</trustInfo>
</assembly>
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<connectionStrings>
<add name="OraConnection" connectionString="user id=nova;Password=oRP0zI6K4GU=;server=10.12.12.21;direct=True;sid=smart06;port=1521;persist security info=True;Pooling=True;Unicode=True" providerName="Devart.Data.OracleClient" />
</connectionStrings>
<appSettings>
<add key="CLES" value="PWhT331waIEz2xjhffpR9T4rYyAa:s9uh56y0NSnG5wg_23sqMHSTWfEa" />
<add key="PAS" value="10"/>
<add key="STA_PRJ" value="PROJECT"/>
</appSettings>
</configuration>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.0", FrameworkDisplayName = ".NET Framework 4")]
503dc43f551899a0035ac26b8cf037f0d8c69841
C:\Users\DELL\Desktop\CallApiPalexpo\CallApiPalexpo\obj\Debug\ResolveAssemblyReference.cache
C:\Users\DELL\Desktop\CallApiPalexpo\CallApiPalexpo\bin\Debug\CallApiPalexpo.exe
C:\Users\DELL\Desktop\CallApiPalexpo\CallApiPalexpo\bin\Debug\CallApiPalexpo.pdb
C:\Users\DELL\Desktop\CallApiPalexpo\CallApiPalexpo\bin\Debug\Newtonsoft.Json.dll
C:\Users\DELL\Desktop\CallApiPalexpo\CallApiPalexpo\obj\Debug\CallApiPalexpo.exe
C:\Users\DELL\Desktop\CallApiPalexpo\CallApiPalexpo\obj\Debug\CallApiPalexpo.pdb
C:\Users\DELL\Desktop\CallApiPalexpo\CallApiPalexpo\bin\Debug\CallApiPalexpo.exe.config
C:\Users\Safa Bellalah\Downloads\CallApiPalexpo (4)\bin\Debug\CallApiPalexpo.exe.config
C:\Users\Safa Bellalah\Downloads\CallApiPalexpo (4)\obj\Debug\CallApiPalexpo.exe
C:\Users\Safa Bellalah\Downloads\CallApiPalexpo (4)\obj\Debug\CallApiPalexpo.pdb
C:\Users\Safa Bellalah\Downloads\CallApiPalexpo (4)\bin\Debug\CallApiPalexpo.exe
C:\Users\Safa Bellalah\Downloads\CallApiPalexpo (4)\bin\Debug\CallApiPalexpo.pdb
C:\Users\Safa Bellalah\Downloads\CallApiPalexpo (4)\bin\Debug\Devart.Data.dll
C:\Users\Safa Bellalah\Downloads\CallApiPalexpo (4)\bin\Debug\Devart.Data.Oracle.dll
C:\Users\Safa Bellalah\Downloads\CallApiPalexpo (4)\bin\Debug\Devart.Data.Oracle.Linq.dll
C:\Users\Safa Bellalah\Downloads\CallApiPalexpo (4)\bin\Debug\Devart.Data.xml
C:\Users\Safa Bellalah\Downloads\CallApiPalexpo (4)\bin\Debug\Devart.Data.Oracle.xml
C:\Users\Safa Bellalah\Downloads\CallApiPalexpo (4)\obj\Debug\CallApiPalexpo.csprojResolveAssemblyReference.cache
C:\Users\hanen\Documents\palexpo\CallApiPalexpo (4)\obj\Debug\CallApiPalexpo.csproj.AssemblyReference.cache
C:\Users\hanen\Documents\palexpo\CallApiPalexpo (4)\obj\Debug\CallApiPalexpo.csproj.CoreCompileInputs.cache
C:\Users\hanen\Documents\palexpo\CallApiPalexpo (4)\obj\Debug\CallApiPalexpo.exe
C:\Users\hanen\Documents\palexpo\CallApiPalexpo (4)\obj\Debug\CallApiPalexpo.pdb
C:\Users\hanen\Documents\palexpo\CallApiPalexpo (4)\bin\Debug\CallApiPalexpo.exe.config
C:\Users\hanen\Documents\palexpo\CallApiPalexpo (4)\obj\Debug\CallApiPalexpo.csprojResolveAssemblyReference.cache
C:\Users\hanen\Documents\palexpo\CallApiPalexpo (4)\bin\Debug\CallExportComptable.exe.config
C:\Users\hanen\Documents\palexpo\CallApiPalexpo (4)\bin\Debug\CallExportComptable.exe.config
C:\Users\hanen\Documents\palexpo\CallApiPalexpo (4)\bin\Debug\CallExportComptable.exe
C:\Users\hanen\Documents\palexpo\CallApiPalexpo (4)\bin\Debug\CallExportComptable.pdb
C:\Users\hanen\Documents\palexpo\CallApiPalexpo (4)\bin\Debug\Devart.Data.dll
C:\Users\hanen\Documents\palexpo\CallApiPalexpo (4)\bin\Debug\Devart.Data.Oracle.dll
C:\Users\hanen\Documents\palexpo\CallApiPalexpo (4)\bin\Debug\Devart.Data.Oracle.Linq.dll
C:\Users\hanen\Documents\palexpo\CallApiPalexpo (4)\bin\Debug\Devart.Data.xml
C:\Users\hanen\Documents\palexpo\CallApiPalexpo (4)\bin\Debug\Devart.Data.Oracle.xml
C:\Users\hanen\Documents\palexpo\CallApiPalexpo (4)\obj\Debug\CallExportComptable.csprojResolveAssemblyReference.cache
C:\Users\hanen\Documents\palexpo\CallApiPalexpo (4)\obj\Debug\CallExportComptable.exe
C:\Users\hanen\Documents\palexpo\CallApiPalexpo (4)\obj\Debug\CallExportComptable.pdb
C:\Users\hanen\Documents\fairmont\bin\Debug\CallExportComptable.exe.config
C:\Users\hanen\Documents\fairmont\obj\Debug\CallExportComptable.exe
C:\Users\hanen\Documents\fairmont\obj\Debug\CallExportComptable.pdb
C:\Users\hanen\Documents\fairmont\bin\Debug\CallExportComptable.exe
C:\Users\hanen\Documents\fairmont\bin\Debug\CallExportComptable.pdb
C:\Users\hanen\Documents\fairmont\bin\Debug\Devart.Data.dll
C:\Users\hanen\Documents\fairmont\bin\Debug\Devart.Data.Oracle.dll
C:\Users\hanen\Documents\fairmont\bin\Debug\Devart.Data.Oracle.Linq.dll
C:\Users\hanen\Documents\fairmont\bin\Debug\Devart.Data.xml
C:\Users\hanen\Documents\fairmont\bin\Debug\Devart.Data.Oracle.xml
C:\Users\hanen\Documents\fairmont\obj\Debug\CallExportComptable.csprojResolveAssemblyReference.cache
C:\Users\DELL\Desktop\CallApiPalexpo\CallApiPalexpo\bin\Release\CallApiPalexpo.exe.config
C:\Users\DELL\Desktop\CallApiPalexpo\CallApiPalexpo\bin\Release\CallApiPalexpo.exe
C:\Users\DELL\Desktop\CallApiPalexpo\CallApiPalexpo\bin\Release\CallApiPalexpo.pdb
C:\Users\DELL\Desktop\CallApiPalexpo\CallApiPalexpo\bin\Release\Newtonsoft.Json.dll
C:\Users\DELL\Desktop\CallApiPalexpo\CallApiPalexpo\obj\Release\ResolveAssemblyReference.cache
C:\Users\DELL\Desktop\CallApiPalexpo\CallApiPalexpo\obj\Release\CallApiPalexpo.exe
C:\Users\DELL\Desktop\CallApiPalexpo\CallApiPalexpo\obj\Release\CallApiPalexpo.pdb
C:\Users\DELL\Desktop\CallApiPalexpo\CallApiPalexpo\bin\Release\Devart.Data.dll
C:\Users\DELL\Desktop\CallApiPalexpo\CallApiPalexpo\bin\Release\Devart.Data.Oracle.dll
C:\Users\DELL\Desktop\CallApiPalexpo\CallApiPalexpo\bin\Release\Devart.Data.Oracle.Linq.dll
C:\Users\DELL\Desktop\CallApiPalexpo\CallApiPalexpo\bin\Release\Devart.Data.Oracle.xml
C:\Users\DELL\Desktop\CallApiPalexpo\CallApiPalexpo\bin\Release\Devart.Data.xml
-- Start of DDL Script for Procedure NOVA.PR_CREATE_EXPORT_IC_ALL
-- Generated 16-mars-2022 8:15:03 from NOVA@smart02
CREATE OR REPLACE
PROCEDURE pr_create_export_ic_all (
idu_p VARCHAR2,
prg_p VARCHAR2,
dat_p NUMBER,
hre_p NUMBER,
pas_p NUMBER
) is
begin
declare
v_per number;
v_ann number;
inbr number;
begin
v_per :=to_char(ADD_MONTHS(sysdate,-1),'MM');
v_ann :=to_char(ADD_MONTHS(sysdate,-1),'yyyy');
INSERT INTO slstp
(LSTP_IDU,LSTP_DAT,LSTP_HRE,LSTP_TYP,
LSTP_PAR,LSTP_CAT_NUM,LSTP_PRG,LSTP_TMP,
LSTP_FLTS,LSTP_TXT)
VALUES
(idu_p,dat_p,hre_p,'PAS',pas_p,NULL,'JCPT',0,0,NULL);
INSERT INTO slstp
(LSTP_IDU,LSTP_DAT,LSTP_HRE,LSTP_TYP,
LSTP_PAR,LSTP_CAT_NUM,LSTP_PRG,LSTP_TMP,
LSTP_FLTS,LSTP_TXT)
VALUES
(idu_p,dat_p,hre_p,'PER_DE',v_per,NULL,'JCPT',0,0,NULL);
INSERT INTO slstp
(LSTP_IDU,LSTP_DAT,LSTP_HRE,LSTP_TYP,
LSTP_PAR,LSTP_CAT_NUM,LSTP_PRG,LSTP_TMP,
LSTP_FLTS,LSTP_TXT)
VALUES
(idu_p,dat_p,hre_p,'DATE_REF',to_char(sysdate,'yyyyMMdd'),NULL,'JCPT',0,0,NULL);
INSERT INTO slstp
(LSTP_IDU,LSTP_DAT,LSTP_HRE,LSTP_TYP,
LSTP_PAR,LSTP_CAT_NUM,LSTP_PRG,LSTP_TMP,
LSTP_FLTS,LSTP_TXT)
VALUES
(idu_p,dat_p,hre_p,'DAT_REF',to_char(sysdate,'yyyyMMdd'),NULL,'JCPT',0,0,NULL);
INSERT INTO slstp
(LSTP_IDU,LSTP_DAT,LSTP_HRE,LSTP_TYP,
LSTP_PAR,LSTP_CAT_NUM,LSTP_PRG,LSTP_TMP,
LSTP_FLTS,LSTP_TXT)
VALUES
(idu_p,dat_p,hre_p,'ParamDe0',to_char(sysdate,'yyyyMMdd'),NULL,'JCPT',0,0,NULL);
INSERT INTO slstp
(LSTP_IDU,LSTP_DAT,LSTP_HRE,LSTP_TYP,
LSTP_PAR,LSTP_CAT_NUM,LSTP_PRG,LSTP_TMP,
LSTP_FLTS,LSTP_TXT)
VALUES
(idu_p,dat_p,hre_p,'ANN_DE',v_ann,NULL,'JCPT',0,0,NULL);
/* INSERT INTO slstp
(LSTP_IDU,LSTP_DAT,LSTP_HRE,LSTP_TYP,
LSTP_PAR,LSTP_CAT_NUM,LSTP_PRG,LSTP_TMP,
LSTP_FLTS,LSTP_TXT)
VALUES
(idu_p,dat_p,hre_p,'COMPTA_OK','0',NULL,'JCPT',0,0,NULL);
*/
INSERT INTO slstp
(LSTP_IDU,LSTP_DAT,LSTP_HRE,LSTP_TYP,
LSTP_PAR,LSTP_CAT_NUM,LSTP_PRG,LSTP_TMP,
LSTP_FLTS,LSTP_TXT)
VALUES
(idu_p,dat_p,hre_p,'SAUT_PAGE','0',NULL,'JCPT',0,0,NULL);
INSERT INTO slstp
(LSTP_IDU,LSTP_DAT,LSTP_HRE,LSTP_TYP,
LSTP_PAR,LSTP_CAT_NUM,LSTP_PRG,LSTP_TMP,
LSTP_FLTS,LSTP_TXT)
VALUES
(idu_p,dat_p,hre_p,'JUSTIF_RUB','1',NULL,'JCPT',0,0,NULL);
INSERT INTO slstp
(LSTP_IDU,LSTP_DAT,LSTP_HRE,LSTP_TYP,
LSTP_PAR,LSTP_CAT_NUM,LSTP_PRG,LSTP_TMP,
LSTP_FLTS,LSTP_TXT)
VALUES
(idu_p,dat_p,hre_p,'JUSTIF_CT','1',NULL,'JCPT',0,0,NULL);
INSERT INTO slstp
(LSTP_IDU,LSTP_DAT,LSTP_HRE,LSTP_TYP,
LSTP_PAR,LSTP_CAT_NUM,LSTP_PRG,LSTP_TMP,
LSTP_FLTS,LSTP_TXT)
VALUES
(idu_p,dat_p,hre_p,'DAT_VAL',NULL,NULL,'JCPT',0,0,to_char(sysdate,'dd.mm.yyyy'));
INSERT INTO slstp
(LSTP_IDU,LSTP_DAT,LSTP_HRE,LSTP_TYP,
LSTP_PAR,LSTP_CAT_NUM,LSTP_PRG,LSTP_TMP,
LSTP_FLTS,LSTP_TXT)
VALUES
(idu_p,dat_p,hre_p,'MON',NULL,NULL,'JCPT',0,0,NULL);
INSERT INTO slstp
(LSTP_IDU,LSTP_DAT,LSTP_HRE,LSTP_TYP,
LSTP_PAR,LSTP_CAT_NUM,LSTP_PRG,LSTP_TMP,
LSTP_FLTS,LSTP_TXT)
VALUES
(idu_p,dat_p,hre_p,'MAT_DE',1,NULL,'JCPT',0,0,NULL);
INSERT INTO slstp
(LSTP_IDU,LSTP_DAT,LSTP_HRE,LSTP_TYP,
LSTP_PAR,LSTP_CAT_NUM,LSTP_PRG,LSTP_TMP,
LSTP_FLTS,LSTP_TXT)
VALUES
(idu_p,dat_p,hre_p,'MAT_A',999999999,NULL,'JCPT',0,0,NULL);
INSERT INTO slstp
(LSTP_IDU,LSTP_DAT,LSTP_HRE,LSTP_TYP,
LSTP_PAR,LSTP_CAT_NUM,LSTP_PRG,LSTP_TMP,
LSTP_FLTS,LSTP_TXT)
VALUES
(idu_p,dat_p,hre_p,'TYP_PER','12',NULL,'JCPT',0,0,NULL);
INSERT INTO slstp
(LSTP_IDU,LSTP_DAT,LSTP_HRE,LSTP_TYP,
LSTP_PAR,LSTP_CAT_NUM,LSTP_PRG,LSTP_TMP,
LSTP_FLTS,LSTP_TXT)
VALUES
(idu_p,dat_p,hre_p,'SELECT','0',NULL,'JCPT',0,0,NULL);
INSERT INTO slstp
(LSTP_IDU,LSTP_DAT,LSTP_HRE,LSTP_TYP,
LSTP_PAR,LSTP_CAT_NUM,LSTP_PRG,LSTP_TMP,
LSTP_FLTS,LSTP_TXT)
VALUES
(idu_p,dat_p,hre_p,'LANG_DOC','F',NULL,'JCPT',0,0,NULL);
INSERT INTO slstp (LSTP_IDU,LSTP_DAT,LSTP_HRE,LSTP_TYP,LSTP_PAR,LSTP_CAT_NUM,LSTP_PRG,LSTP_TMP,LSTP_FLTS,LSTP_TXT,LSTP_LOC)
select idu_p,dat_p,hre_p,'SRED_LET',srub_let,srub_num,'JCPT',0,1,NULL,NULL from srub where srub_pas=pas_p and srub_let in ('B','E', 'G', 'I');
INSERT INTO scivs (sciv_idu,sciv_dat,sciv_hre,sciv_pas,sciv_mat, sciv_prg)
select distinct idu_p,dat_p,hre_p,SCIV_PAS,SCIV_MAT,'JCPT'
from sciv where
sciv_pas=pas_p and sciv_mil=1
;
PR_INSERT_PRINTJOBPARAM(pas_p, idu_p, prg_p,dat_p, hre_p, 'F');
pa_sb_compta.effacer( idu_p,0,0, prg_p);
pa_sb_compta.initialiseretpiloter(idu_p,'JCPT',dat_p,hre_p,pas_p);
pr_create_export_ic (idu_p,'JCPT',dat_p,hre_p,pas_p);
commit;
exception when others then null;
end ;
end;
/
-- End of DDL Script for Procedure NOVA.PR_CREATE_EXPORT_IC_ALL
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment