renaming Advantage final to report runner
This commit is contained in:
192
Report Runner/Advantage Final/Advantage Final.csproj
Normal file
192
Report Runner/Advantage Final/Advantage Final.csproj
Normal file
@@ -0,0 +1,192 @@
|
||||
<?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)' == '' ">x86</Platform>
|
||||
<ProductVersion>8.0.30703</ProductVersion>
|
||||
<SchemaVersion>2.0</SchemaVersion>
|
||||
<ProjectGuid>{1F135F26-23F8-4EA6-B000-9D22FBE1B273}</ProjectGuid>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>Report_Runner</RootNamespace>
|
||||
<AssemblyName>Report Runner</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
|
||||
<TargetFrameworkProfile>
|
||||
</TargetFrameworkProfile>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<IsWebBootstrapper>false</IsWebBootstrapper>
|
||||
<PublishUrl>C:\PUBLISH\YAY\</PublishUrl>
|
||||
<Install>true</Install>
|
||||
<InstallFrom>Disk</InstallFrom>
|
||||
<UpdateEnabled>false</UpdateEnabled>
|
||||
<UpdateMode>Foreground</UpdateMode>
|
||||
<UpdateInterval>7</UpdateInterval>
|
||||
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
|
||||
<UpdatePeriodically>false</UpdatePeriodically>
|
||||
<UpdateRequired>false</UpdateRequired>
|
||||
<MapFileExtensions>true</MapFileExtensions>
|
||||
<ApplicationRevision>1</ApplicationRevision>
|
||||
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
|
||||
<UseApplicationTrust>false</UseApplicationTrust>
|
||||
<PublishWizardCompleted>true</PublishWizardCompleted>
|
||||
<BootstrapperEnabled>true</BootstrapperEnabled>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
<DebugType>pdbonly</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<ManifestCertificateThumbprint>18D2C448A7AEF5D314C96D09E8F99FD321F93767</ManifestCertificateThumbprint>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<ManifestKeyFile>Advantage Final_TemporaryKey.pfx</ManifestKeyFile>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<GenerateManifests>true</GenerateManifests>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<SignManifests>false</SignManifests>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<ApplicationIcon>lazy.ico</ApplicationIcon>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Advantage.Data.Provider, Version=10.0.2.1, Culture=neutral, PublicKeyToken=e33137c86a38dc06, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>Service References\Advantage.Data.Provider.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Interop.Microsoft.Office.Core">
|
||||
<HintPath>..\Interop.Microsoft.Office.Core.dll</HintPath>
|
||||
<EmbedInteropTypes>True</EmbedInteropTypes>
|
||||
</Reference>
|
||||
<Reference Include="Microsoft.Office.Interop.Excel, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<EmbedInteropTypes>True</EmbedInteropTypes>
|
||||
<HintPath>..\Microsoft.Office.Interop.Excel.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Deployment" />
|
||||
<Reference Include="System.Drawing" />
|
||||
<Reference Include="System.Windows.Forms" />
|
||||
<Reference Include="System.Xml" />
|
||||
<Reference Include="Yaulw, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<SpecificVersion>False</SpecificVersion>
|
||||
<HintPath>Components\Yaulw.dll</HintPath>
|
||||
</Reference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="Class1.cs" />
|
||||
<Compile Include="Class2.cs" />
|
||||
<Compile Include="ConnectionString.cs" />
|
||||
<Compile Include="Form1.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Form1.Designer.cs">
|
||||
<DependentUpon>Form1.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Options.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Options.Designer.cs">
|
||||
<DependentUpon>Options.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="FilePaths.cs">
|
||||
<SubType>Form</SubType>
|
||||
</Compile>
|
||||
<Compile Include="FilePaths.Designer.cs">
|
||||
<DependentUpon>FilePaths.cs</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Program.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="ToDataTable.cs" />
|
||||
<EmbeddedResource Include="Form1.resx">
|
||||
<DependentUpon>Form1.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Options.resx">
|
||||
<DependentUpon>Options.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="FilePaths.resx">
|
||||
<DependentUpon>FilePaths.cs</DependentUpon>
|
||||
</EmbeddedResource>
|
||||
<EmbeddedResource Include="Properties\Resources.resx">
|
||||
<Generator>ResXFileCodeGenerator</Generator>
|
||||
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
|
||||
<SubType>Designer</SubType>
|
||||
</EmbeddedResource>
|
||||
<Compile Include="Properties\Resources.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Resources.resx</DependentUpon>
|
||||
<DesignTime>True</DesignTime>
|
||||
</Compile>
|
||||
<None Include="Advantage Final_TemporaryKey.pfx" />
|
||||
<None Include="app.config" />
|
||||
<None Include="Properties\Settings.settings">
|
||||
<Generator>SettingsSingleFileGenerator</Generator>
|
||||
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
|
||||
</None>
|
||||
<Compile Include="Properties\Settings.Designer.cs">
|
||||
<AutoGen>True</AutoGen>
|
||||
<DependentUpon>Settings.settings</DependentUpon>
|
||||
<DesignTimeSharedInput>True</DesignTimeSharedInput>
|
||||
</Compile>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<WCFMetadata Include="Service References\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<BootstrapperPackage Include=".NETFramework,Version=v4.0,Profile=Client">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>Microsoft .NET Framework 4 Client Profile %28x86 and x64%29</ProductName>
|
||||
<Install>true</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>.NET Framework 3.5 SP1</ProductName>
|
||||
<Install>false</Install>
|
||||
</BootstrapperPackage>
|
||||
<BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
|
||||
<Visible>False</Visible>
|
||||
<ProductName>Windows Installer 3.1</ProductName>
|
||||
<Install>true</Install>
|
||||
</BootstrapperPackage>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="Components\log4net.dll" />
|
||||
<None Include="Components\Yaulw.dll" />
|
||||
<Content Include="lazy.ico" />
|
||||
</ItemGroup>
|
||||
<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>
|
||||
31
Report Runner/Advantage Final/Class1.cs
Normal file
31
Report Runner/Advantage Final/Class1.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using Microsoft.Win32;
|
||||
|
||||
|
||||
namespace Advantage_Final
|
||||
{
|
||||
public class Class1
|
||||
{
|
||||
// public const RegistryKey BloodHarvest = Registry.CurrentUser.OpenSubKey("Software\\PanaceanTech\\ReportRunner", true);
|
||||
|
||||
static string _ReportName;
|
||||
public static string ReportName
|
||||
{
|
||||
get
|
||||
{
|
||||
return _ReportName;
|
||||
}
|
||||
|
||||
set
|
||||
{
|
||||
_ReportName = value;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
246
Report Runner/Advantage Final/Class2.cs
Normal file
246
Report Runner/Advantage Final/Class2.cs
Normal file
@@ -0,0 +1,246 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Excel = Microsoft.Office.Interop.Excel;
|
||||
using System.Data;
|
||||
using System.Data.OleDb;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Diagnostics;
|
||||
using Yaulw.Win32;
|
||||
|
||||
namespace Advantage_Final
|
||||
{
|
||||
public static class My_DataTable_Extensions
|
||||
{
|
||||
|
||||
// Export DataTable into an excel file with field names in the header line
|
||||
// - Save excel file without ever making it visible if filepath is given
|
||||
// - Don't save excel file, just make it visible if no filepath is given
|
||||
public static void ExportToExcel(this DataTable Tbl, string ExcelFilePath = null)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
if (Tbl == null || Tbl.Columns.Count == 0)
|
||||
throw new Exception("ExportToExcel: Null or empty input table!\n");
|
||||
|
||||
if (System.IO.File.Exists(ExcelFilePath))
|
||||
{
|
||||
Excel.Application excelEx = new Excel.Application();
|
||||
Excel.Workbook workbook = excelEx.Workbooks.Open(ExcelFilePath);
|
||||
|
||||
// single worksheet
|
||||
Excel._Worksheet workSheetEx = excelEx.ActiveSheet;
|
||||
Excel.Range range = workSheetEx.UsedRange;
|
||||
int colCount = range.Columns.Count;
|
||||
int rowCount = range.Rows.Count;
|
||||
int rowCount2 = range.Rows.Count;
|
||||
|
||||
for (int i = 0; i < Tbl.Rows.Count; i++)
|
||||
{
|
||||
// to do: format datetime values before printing
|
||||
for (int j = 0; j < Tbl.Columns.Count; j++)
|
||||
{
|
||||
workSheetEx.Cells[(i + rowCount + 1), (j + 1)] = Tbl.Rows[i][j];
|
||||
}
|
||||
}
|
||||
// column headings
|
||||
// for (int i = 0; i < Tbl.Columns.Count; i++)
|
||||
// {
|
||||
// workSheetEx.Cells[1, (i + 1)] = Tbl.Columns[i].ColumnName;
|
||||
// }
|
||||
|
||||
// rows
|
||||
//for (int i = 0; i < Tbl.Rows.Count; i++)
|
||||
// for (int i = 0; i < Tbl.Rows.Count; i++)
|
||||
// {
|
||||
// to do: format datetime values before printing
|
||||
// int e = 0;
|
||||
// int f = 0;
|
||||
// for (int j = 0; j < Tbl.Columns.Count; j++)
|
||||
// {
|
||||
|
||||
// workSheetEx.Cells[(i + 2), (j + 1)] = Tbl.Rows[i][j];
|
||||
// workSheetEx.Cells[(rowCount + 2), (j + 1)] = Tbl.Rows[e][f];
|
||||
// e++;
|
||||
// f++;
|
||||
|
||||
// }
|
||||
// }
|
||||
|
||||
try
|
||||
{
|
||||
excelEx.DisplayAlerts = false;
|
||||
workSheetEx.SaveAs(ExcelFilePath);
|
||||
excelEx.DisplayAlerts = true;
|
||||
|
||||
// Close the workbook *Auto-Save*
|
||||
workbook.Close(true, ExcelFilePath, false);
|
||||
|
||||
if (excelEx.Workbooks.Count == 0)
|
||||
{
|
||||
excelEx.Quit();
|
||||
Marshal.FinalReleaseComObject(excelEx);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw new Exception("ExportToExcel: Excel file could not be saved! Check filepath.\n"
|
||||
+ ex.Message);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (!System.IO.File.Exists(ExcelFilePath))
|
||||
{
|
||||
// load excel, and create a new workbook
|
||||
Excel.Application excelApp = new Excel.Application();
|
||||
Excel.Workbook workbook = excelApp.Workbooks.Add();
|
||||
|
||||
// single worksheet
|
||||
Excel._Worksheet workSheet = excelApp.ActiveSheet;
|
||||
|
||||
// column headings
|
||||
for (int i = 0; i < Tbl.Columns.Count; i++)
|
||||
{
|
||||
workSheet.Cells[1, (i + 1)] = Tbl.Columns[i].ColumnName;
|
||||
}
|
||||
|
||||
// rows
|
||||
for (int i = 0; i < Tbl.Rows.Count; i++)
|
||||
{
|
||||
// to do: format datetime values before printing
|
||||
for (int j = 0; j < Tbl.Columns.Count; j++)
|
||||
{
|
||||
workSheet.Cells[(i + 2), (j + 1)] = Tbl.Rows[i][j];
|
||||
}
|
||||
}
|
||||
|
||||
// check fielpath
|
||||
if (ExcelFilePath != null && ExcelFilePath != "")
|
||||
{
|
||||
try
|
||||
{
|
||||
// Close the workbook *Auto-Save*
|
||||
workbook.Close(true, ExcelFilePath, false);
|
||||
|
||||
if (excelApp.Workbooks.Count == 0)
|
||||
{
|
||||
excelApp.Quit();
|
||||
Marshal.FinalReleaseComObject(excelApp);
|
||||
}
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw new Exception("ExportToExcel: Excel file could not be saved! Check filepath.\n"
|
||||
+ ex.Message);
|
||||
}
|
||||
}
|
||||
else // no filepath is given
|
||||
{
|
||||
excelApp.Visible = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw new Exception("ExportToExcel: \n" + ex.Message);
|
||||
}
|
||||
|
||||
|
||||
// nicely added
|
||||
ReallyCLOSEExcel();
|
||||
}
|
||||
|
||||
public static bool ReallyCLOSEExcel()
|
||||
{
|
||||
try
|
||||
{
|
||||
var RunningExcelApplications = Yaulw.Win32.COM.GetRunningObjectsOfType<Microsoft.Office.Interop.Excel.Application>();
|
||||
foreach (Microsoft.Office.Interop.Excel.Application app in RunningExcelApplications)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (app.Workbooks.Count == 0)
|
||||
{
|
||||
int hWnd = app.Hwnd;
|
||||
app.Quit();
|
||||
Marshal.FinalReleaseComObject(app); // force clean-up, should clean up excel process
|
||||
|
||||
// force close by closing process
|
||||
Process p = Functions.GetProcessFromHandle((IntPtr) hWnd);
|
||||
p.Kill();
|
||||
}
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Marshal.FinalReleaseComObject(app); // force clean-up, should clean up excel process
|
||||
string s = e.Message;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
catch (Exception e) { string s = e.Message; }
|
||||
return false;
|
||||
}
|
||||
|
||||
public static void ExportToExcel2(this DataTable Tbl, string ExcelFilePath = null)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (Tbl == null || Tbl.Columns.Count == 0)
|
||||
throw new Exception("ExportToExcel: Null or empty input table!\n");
|
||||
|
||||
// load excel, and create a new workbook
|
||||
Excel.Application excelApp = new Excel.Application();
|
||||
excelApp.Workbooks.Add();
|
||||
|
||||
// single worksheet
|
||||
Excel._Worksheet workSheet = excelApp.ActiveSheet;
|
||||
|
||||
// column headings
|
||||
for (int i = 0; i < Tbl.Columns.Count; i++)
|
||||
{
|
||||
workSheet.Cells[1, (i + 1)] = Tbl.Columns[i].ColumnName;
|
||||
}
|
||||
|
||||
// rows
|
||||
for (int i = 0; i < Tbl.Rows.Count; i++)
|
||||
{
|
||||
// to do: format datetime values before printing
|
||||
for (int j = 0; j < Tbl.Columns.Count; j++)
|
||||
{
|
||||
workSheet.Cells[(i + 2), (j + 1)] = Tbl.Rows[i][j];
|
||||
}
|
||||
}
|
||||
|
||||
// check fielpath
|
||||
if (ExcelFilePath != null && ExcelFilePath != "")
|
||||
{
|
||||
try
|
||||
{
|
||||
workSheet.SaveAs(ExcelFilePath);
|
||||
excelApp.Quit();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
throw new Exception("ExportToExcel: Excel file could not be saved! Check filepath.\n"
|
||||
+ ex.Message);
|
||||
}
|
||||
}
|
||||
else // no filepath is given
|
||||
{
|
||||
excelApp.Visible = true;
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
throw new Exception("ExportToExcel: \n" + ex.Message);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
BIN
Report Runner/Advantage Final/Components/Yaulw.dll
Normal file
BIN
Report Runner/Advantage Final/Components/Yaulw.dll
Normal file
Binary file not shown.
BIN
Report Runner/Advantage Final/Components/log4net.dll
Normal file
BIN
Report Runner/Advantage Final/Components/log4net.dll
Normal file
Binary file not shown.
28
Report Runner/Advantage Final/ConnectionString.cs
Normal file
28
Report Runner/Advantage Final/ConnectionString.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace Advantage_Final
|
||||
{
|
||||
class ConnectionString
|
||||
{
|
||||
private string datapath = "Nothing";
|
||||
|
||||
public string Datapath
|
||||
{
|
||||
get
|
||||
{
|
||||
return datapath;
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
set
|
||||
{
|
||||
datapath = value;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
138
Report Runner/Advantage Final/FilePaths.Designer.cs
generated
Normal file
138
Report Runner/Advantage Final/FilePaths.Designer.cs
generated
Normal file
@@ -0,0 +1,138 @@
|
||||
namespace Advantage_Final
|
||||
{
|
||||
partial class FilePaths
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.lblReportPath = new System.Windows.Forms.Label();
|
||||
this.btnExit = new System.Windows.Forms.Button();
|
||||
this.lblReportOutput = new System.Windows.Forms.Label();
|
||||
this.reportFolder = new System.Windows.Forms.FolderBrowserDialog();
|
||||
this.btnRptPath = new System.Windows.Forms.Button();
|
||||
this.textBox1 = new System.Windows.Forms.TextBox();
|
||||
this.textReportOutput = new System.Windows.Forms.TextBox();
|
||||
this.btnOutPath = new System.Windows.Forms.Button();
|
||||
this.reportOutput = new System.Windows.Forms.FolderBrowserDialog();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// lblReportPath
|
||||
//
|
||||
this.lblReportPath.AutoSize = true;
|
||||
this.lblReportPath.Location = new System.Drawing.Point(12, 38);
|
||||
this.lblReportPath.Name = "lblReportPath";
|
||||
this.lblReportPath.Size = new System.Drawing.Size(64, 13);
|
||||
this.lblReportPath.TabIndex = 0;
|
||||
this.lblReportPath.Text = "Report Path";
|
||||
//
|
||||
// btnExit
|
||||
//
|
||||
this.btnExit.Location = new System.Drawing.Point(683, 383);
|
||||
this.btnExit.Name = "btnExit";
|
||||
this.btnExit.Size = new System.Drawing.Size(114, 30);
|
||||
this.btnExit.TabIndex = 1;
|
||||
this.btnExit.Text = "Exit";
|
||||
this.btnExit.UseVisualStyleBackColor = true;
|
||||
this.btnExit.Click += new System.EventHandler(this.btnExit_Click);
|
||||
//
|
||||
// lblReportOutput
|
||||
//
|
||||
this.lblReportOutput.AutoSize = true;
|
||||
this.lblReportOutput.Location = new System.Drawing.Point(12, 80);
|
||||
this.lblReportOutput.Name = "lblReportOutput";
|
||||
this.lblReportOutput.Size = new System.Drawing.Size(74, 13);
|
||||
this.lblReportOutput.TabIndex = 2;
|
||||
this.lblReportOutput.Text = "Report Output";
|
||||
//
|
||||
// btnRptPath
|
||||
//
|
||||
this.btnRptPath.Location = new System.Drawing.Point(749, 35);
|
||||
this.btnRptPath.Name = "btnRptPath";
|
||||
this.btnRptPath.Size = new System.Drawing.Size(27, 20);
|
||||
this.btnRptPath.TabIndex = 3;
|
||||
this.btnRptPath.Text = "...";
|
||||
this.btnRptPath.UseVisualStyleBackColor = true;
|
||||
this.btnRptPath.Click += new System.EventHandler(this.button1_Click);
|
||||
//
|
||||
// textBox1
|
||||
//
|
||||
this.textBox1.Location = new System.Drawing.Point(99, 36);
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.Size = new System.Drawing.Size(644, 20);
|
||||
this.textBox1.TabIndex = 4;
|
||||
this.textBox1.Leave += new System.EventHandler(this.textBox1_Leave);
|
||||
//
|
||||
// textReportOutput
|
||||
//
|
||||
this.textReportOutput.Location = new System.Drawing.Point(98, 77);
|
||||
this.textReportOutput.Name = "textReportOutput";
|
||||
this.textReportOutput.Size = new System.Drawing.Size(644, 20);
|
||||
this.textReportOutput.TabIndex = 5;
|
||||
this.textReportOutput.TextChanged += new System.EventHandler(this.textReportOutput_TextChanged);
|
||||
this.textReportOutput.Leave += new System.EventHandler(this.textReportOutput_Leave);
|
||||
//
|
||||
// btnOutPath
|
||||
//
|
||||
this.btnOutPath.Location = new System.Drawing.Point(747, 77);
|
||||
this.btnOutPath.Name = "btnOutPath";
|
||||
this.btnOutPath.Size = new System.Drawing.Size(29, 20);
|
||||
this.btnOutPath.TabIndex = 6;
|
||||
this.btnOutPath.Text = "...";
|
||||
this.btnOutPath.UseVisualStyleBackColor = true;
|
||||
this.btnOutPath.Click += new System.EventHandler(this.btnOutPath_Click);
|
||||
//
|
||||
// FilePaths
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(846, 434);
|
||||
this.Controls.Add(this.btnOutPath);
|
||||
this.Controls.Add(this.textReportOutput);
|
||||
this.Controls.Add(this.textBox1);
|
||||
this.Controls.Add(this.btnRptPath);
|
||||
this.Controls.Add(this.lblReportOutput);
|
||||
this.Controls.Add(this.btnExit);
|
||||
this.Controls.Add(this.lblReportPath);
|
||||
this.Name = "FilePaths";
|
||||
this.Text = "File Paths";
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Label lblReportPath;
|
||||
private System.Windows.Forms.Button btnExit;
|
||||
private System.Windows.Forms.Label lblReportOutput;
|
||||
private System.Windows.Forms.FolderBrowserDialog reportFolder;
|
||||
private System.Windows.Forms.Button btnRptPath;
|
||||
private System.Windows.Forms.TextBox textBox1;
|
||||
private System.Windows.Forms.TextBox textReportOutput;
|
||||
private System.Windows.Forms.Button btnOutPath;
|
||||
private System.Windows.Forms.FolderBrowserDialog reportOutput;
|
||||
}
|
||||
}
|
||||
106
Report Runner/Advantage Final/FilePaths.cs
Normal file
106
Report Runner/Advantage Final/FilePaths.cs
Normal file
@@ -0,0 +1,106 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
using System.IO;
|
||||
using Microsoft.Win32;
|
||||
|
||||
namespace Advantage_Final
|
||||
{
|
||||
public partial class FilePaths : Form
|
||||
{
|
||||
public FilePaths()
|
||||
{
|
||||
InitializeComponent();
|
||||
textReportOutput.Text = (string)Dicks.GetValue("ReportOutput", "");
|
||||
textBox1.Text = (string)Dicks.GetValue("ReportFolder", "");
|
||||
}
|
||||
|
||||
public RegistryKey Dicks = Microsoft.Win32.Registry.CurrentUser.OpenSubKey("Software\\PanaceanTech\\ReportRunner", true);
|
||||
|
||||
private void Form1_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
//
|
||||
// This event handler was created by double-clicking the window in the designer.
|
||||
// It runs on the program's startup routine.
|
||||
//
|
||||
DialogResult result = reportFolder.ShowDialog();
|
||||
if (result == DialogResult.OK)
|
||||
{
|
||||
Dicks.SetValue("ReportFolder", reportFolder.SelectedPath);
|
||||
textBox1.Text = (string)Dicks.GetValue("ReportFolder");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
private void btnExit_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.Hide();
|
||||
}
|
||||
|
||||
private void textBox1_Leave(object sender, EventArgs e)
|
||||
{
|
||||
if (System.IO.Directory.Exists(textBox1.Text))
|
||||
{
|
||||
Dicks.SetValue("ReportFolder", textBox1.Text.TrimEnd ('\\'));
|
||||
textBox1.Text = (string)Dicks.GetValue("ReportFolder");
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show("Enter a valid path. Quit trying to break shit");
|
||||
textBox1.Text = "";
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
private void btnOutPath_Click(object sender, EventArgs e)
|
||||
{
|
||||
DialogResult result = reportOutput.ShowDialog();
|
||||
if (result == DialogResult.OK)
|
||||
{
|
||||
Dicks.SetValue("ReportOutput", reportOutput.SelectedPath);
|
||||
textReportOutput.Text = (string)Dicks.GetValue("ReportOutput");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
private void textReportOutput_Leave(object sender, EventArgs e)
|
||||
{
|
||||
if (System.IO.Directory.Exists(textReportOutput.Text))
|
||||
{
|
||||
Dicks.SetValue("ReportOutput", textReportOutput.Text.TrimEnd('\\'));
|
||||
textReportOutput.Text = (string)Dicks.GetValue("ReportOutput");
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBox.Show("Enter a valid path. Quit trying to break shit");
|
||||
textBox1.Text = "";
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
private void textReportOutput_TextChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
126
Report Runner/Advantage Final/FilePaths.resx
Normal file
126
Report Runner/Advantage Final/FilePaths.resx
Normal file
@@ -0,0 +1,126 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="reportFolder.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>17, 17</value>
|
||||
</metadata>
|
||||
<metadata name="reportOutput.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>129, 17</value>
|
||||
</metadata>
|
||||
</root>
|
||||
251
Report Runner/Advantage Final/Form1.Designer.cs
generated
Normal file
251
Report Runner/Advantage Final/Form1.Designer.cs
generated
Normal file
@@ -0,0 +1,251 @@
|
||||
using Advantage.Data.Provider;
|
||||
|
||||
namespace Advantage_Final
|
||||
{
|
||||
partial class Form1
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
|
||||
this.menuStrip1 = new System.Windows.Forms.MenuStrip();
|
||||
this.settingsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.exitToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.exitToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.settingsToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.setPathsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.optionsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.button1 = new System.Windows.Forms.Button();
|
||||
this.button2 = new System.Windows.Forms.Button();
|
||||
this.btnReport = new System.Windows.Forms.Button();
|
||||
this.reportFileDialog1 = new System.Windows.Forms.OpenFileDialog();
|
||||
this.mPracticeList = new System.Windows.Forms.CheckedListBox();
|
||||
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
|
||||
this.btnClear = new System.Windows.Forms.Button();
|
||||
this.btnScript = new System.Windows.Forms.Button();
|
||||
this.button3 = new System.Windows.Forms.Button();
|
||||
this.button4 = new System.Windows.Forms.Button();
|
||||
this.menuStrip1.SuspendLayout();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// menuStrip1
|
||||
//
|
||||
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.settingsToolStripMenuItem,
|
||||
this.settingsToolStripMenuItem1});
|
||||
this.menuStrip1.Location = new System.Drawing.Point(0, 0);
|
||||
this.menuStrip1.Name = "menuStrip1";
|
||||
this.menuStrip1.Size = new System.Drawing.Size(738, 24);
|
||||
this.menuStrip1.TabIndex = 1;
|
||||
this.menuStrip1.Text = "menuStrip1";
|
||||
//
|
||||
// settingsToolStripMenuItem
|
||||
//
|
||||
this.settingsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.exitToolStripMenuItem,
|
||||
this.exitToolStripMenuItem1});
|
||||
this.settingsToolStripMenuItem.Name = "settingsToolStripMenuItem";
|
||||
this.settingsToolStripMenuItem.Size = new System.Drawing.Size(35, 20);
|
||||
this.settingsToolStripMenuItem.Text = "File";
|
||||
//
|
||||
// exitToolStripMenuItem
|
||||
//
|
||||
this.exitToolStripMenuItem.Name = "exitToolStripMenuItem";
|
||||
this.exitToolStripMenuItem.Size = new System.Drawing.Size(130, 22);
|
||||
this.exitToolStripMenuItem.Text = "Load Query";
|
||||
this.exitToolStripMenuItem.Click += new System.EventHandler(this.exitToolStripMenuItem_Click);
|
||||
//
|
||||
// exitToolStripMenuItem1
|
||||
//
|
||||
this.exitToolStripMenuItem1.Name = "exitToolStripMenuItem1";
|
||||
this.exitToolStripMenuItem1.Size = new System.Drawing.Size(130, 22);
|
||||
this.exitToolStripMenuItem1.Text = "Exit";
|
||||
this.exitToolStripMenuItem1.Click += new System.EventHandler(this.exitToolStripMenuItem1_Click);
|
||||
//
|
||||
// settingsToolStripMenuItem1
|
||||
//
|
||||
this.settingsToolStripMenuItem1.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.setPathsToolStripMenuItem,
|
||||
this.optionsToolStripMenuItem});
|
||||
this.settingsToolStripMenuItem1.Name = "settingsToolStripMenuItem1";
|
||||
this.settingsToolStripMenuItem1.Size = new System.Drawing.Size(58, 20);
|
||||
this.settingsToolStripMenuItem1.Text = "Settings";
|
||||
//
|
||||
// setPathsToolStripMenuItem
|
||||
//
|
||||
this.setPathsToolStripMenuItem.Name = "setPathsToolStripMenuItem";
|
||||
this.setPathsToolStripMenuItem.Size = new System.Drawing.Size(120, 22);
|
||||
this.setPathsToolStripMenuItem.Text = "Set Paths";
|
||||
this.setPathsToolStripMenuItem.Click += new System.EventHandler(this.setPathsToolStripMenuItem_Click);
|
||||
//
|
||||
// optionsToolStripMenuItem
|
||||
//
|
||||
this.optionsToolStripMenuItem.Name = "optionsToolStripMenuItem";
|
||||
this.optionsToolStripMenuItem.Size = new System.Drawing.Size(120, 22);
|
||||
this.optionsToolStripMenuItem.Text = "Options";
|
||||
this.optionsToolStripMenuItem.Click += new System.EventHandler(this.optionsToolStripMenuItem_Click);
|
||||
//
|
||||
// button1
|
||||
//
|
||||
this.button1.Location = new System.Drawing.Point(4, 35);
|
||||
this.button1.Name = "button1";
|
||||
this.button1.Size = new System.Drawing.Size(72, 31);
|
||||
this.button1.TabIndex = 2;
|
||||
this.button1.Text = "Select All";
|
||||
this.button1.UseVisualStyleBackColor = true;
|
||||
this.button1.Click += new System.EventHandler(this.button1_Click);
|
||||
//
|
||||
// button2
|
||||
//
|
||||
this.button2.Location = new System.Drawing.Point(198, 35);
|
||||
this.button2.Name = "button2";
|
||||
this.button2.Size = new System.Drawing.Size(89, 31);
|
||||
this.button2.TabIndex = 3;
|
||||
this.button2.Text = "Copy Reports";
|
||||
this.button2.UseVisualStyleBackColor = true;
|
||||
this.button2.Click += new System.EventHandler(this.button2_Click);
|
||||
//
|
||||
// btnReport
|
||||
//
|
||||
this.btnReport.Location = new System.Drawing.Point(293, 35);
|
||||
this.btnReport.Name = "btnReport";
|
||||
this.btnReport.Size = new System.Drawing.Size(89, 31);
|
||||
this.btnReport.TabIndex = 4;
|
||||
this.btnReport.Text = "Run Report";
|
||||
this.btnReport.UseVisualStyleBackColor = true;
|
||||
this.btnReport.Click += new System.EventHandler(this.button3_Click);
|
||||
//
|
||||
// reportFileDialog1
|
||||
//
|
||||
this.reportFileDialog1.Multiselect = true;
|
||||
this.reportFileDialog1.FileOk += new System.ComponentModel.CancelEventHandler(this.openFileDialog1_FileOk);
|
||||
//
|
||||
// mPracticeList
|
||||
//
|
||||
this.mPracticeList.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||
| System.Windows.Forms.AnchorStyles.Left)
|
||||
| System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.mPracticeList.BackColor = System.Drawing.SystemColors.MenuBar;
|
||||
this.mPracticeList.FormattingEnabled = true;
|
||||
this.mPracticeList.Location = new System.Drawing.Point(0, 76);
|
||||
this.mPracticeList.Name = "mPracticeList";
|
||||
this.mPracticeList.Size = new System.Drawing.Size(738, 544);
|
||||
this.mPracticeList.TabIndex = 5;
|
||||
this.mPracticeList.SelectedIndexChanged += new System.EventHandler(this.mPracticeList_SelectedIndexChanged_1);
|
||||
//
|
||||
// openFileDialog1
|
||||
//
|
||||
this.openFileDialog1.FileName = "openFileDialog1";
|
||||
this.openFileDialog1.FileOk += new System.ComponentModel.CancelEventHandler(this.openFileDialog1_FileOk_1);
|
||||
//
|
||||
// btnClear
|
||||
//
|
||||
this.btnClear.Location = new System.Drawing.Point(81, 35);
|
||||
this.btnClear.Name = "btnClear";
|
||||
this.btnClear.Size = new System.Drawing.Size(110, 31);
|
||||
this.btnClear.TabIndex = 6;
|
||||
this.btnClear.Text = "Remove Selected";
|
||||
this.btnClear.UseVisualStyleBackColor = true;
|
||||
this.btnClear.Click += new System.EventHandler(this.btnClear_Click);
|
||||
//
|
||||
// btnScript
|
||||
//
|
||||
this.btnScript.Location = new System.Drawing.Point(390, 36);
|
||||
this.btnScript.Name = "btnScript";
|
||||
this.btnScript.Size = new System.Drawing.Size(89, 30);
|
||||
this.btnScript.TabIndex = 7;
|
||||
this.btnScript.Text = "Run Script";
|
||||
this.btnScript.UseVisualStyleBackColor = true;
|
||||
this.btnScript.Click += new System.EventHandler(this.btnScript_Click);
|
||||
//
|
||||
// button3
|
||||
//
|
||||
this.button3.Location = new System.Drawing.Point(485, 36);
|
||||
this.button3.Name = "button3";
|
||||
this.button3.Size = new System.Drawing.Size(80, 30);
|
||||
this.button3.TabIndex = 8;
|
||||
this.button3.Text = "ClearforRM";
|
||||
this.button3.UseVisualStyleBackColor = true;
|
||||
this.button3.Click += new System.EventHandler(this.button3_Click_1);
|
||||
//
|
||||
// button4
|
||||
//
|
||||
this.button4.Location = new System.Drawing.Point(571, 36);
|
||||
this.button4.Name = "button4";
|
||||
this.button4.Size = new System.Drawing.Size(80, 30);
|
||||
this.button4.TabIndex = 9;
|
||||
this.button4.Text = "UpdateRM";
|
||||
this.button4.UseVisualStyleBackColor = true;
|
||||
this.button4.Click += new System.EventHandler(this.button4_Click);
|
||||
//
|
||||
// Form1
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.AutoScroll = true;
|
||||
this.ClientSize = new System.Drawing.Size(738, 619);
|
||||
this.Controls.Add(this.button4);
|
||||
this.Controls.Add(this.button3);
|
||||
this.Controls.Add(this.btnScript);
|
||||
this.Controls.Add(this.btnClear);
|
||||
this.Controls.Add(this.mPracticeList);
|
||||
this.Controls.Add(this.btnReport);
|
||||
this.Controls.Add(this.button2);
|
||||
this.Controls.Add(this.button1);
|
||||
this.Controls.Add(this.menuStrip1);
|
||||
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
||||
this.MainMenuStrip = this.menuStrip1;
|
||||
this.Name = "Form1";
|
||||
this.Text = "Report Runner";
|
||||
this.menuStrip1.ResumeLayout(false);
|
||||
this.menuStrip1.PerformLayout();
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.MenuStrip menuStrip1;
|
||||
private System.Windows.Forms.ToolStripMenuItem settingsToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem exitToolStripMenuItem1;
|
||||
private System.Windows.Forms.ToolStripMenuItem settingsToolStripMenuItem1;
|
||||
private System.Windows.Forms.ToolStripMenuItem setPathsToolStripMenuItem;
|
||||
private System.Windows.Forms.Button button1;
|
||||
private System.Windows.Forms.Button button2;
|
||||
private System.Windows.Forms.Button btnReport;
|
||||
private System.Windows.Forms.OpenFileDialog reportFileDialog1;
|
||||
private System.Windows.Forms.CheckedListBox mPracticeList;
|
||||
private System.Windows.Forms.OpenFileDialog openFileDialog1;
|
||||
private System.Windows.Forms.Button btnClear;
|
||||
private System.Windows.Forms.Button btnScript;
|
||||
private System.Windows.Forms.Button button3;
|
||||
private System.Windows.Forms.Button button4;
|
||||
private System.Windows.Forms.ToolStripMenuItem optionsToolStripMenuItem;
|
||||
}
|
||||
}
|
||||
|
||||
531
Report Runner/Advantage Final/Form1.cs
Normal file
531
Report Runner/Advantage Final/Form1.cs
Normal file
@@ -0,0 +1,531 @@
|
||||
using System;
|
||||
using System.Drawing;
|
||||
using System.Collections;
|
||||
using System.ComponentModel;
|
||||
using System.Windows.Forms;
|
||||
using System.Data;
|
||||
using Advantage.Data.Provider;
|
||||
using System.Data.Common;
|
||||
using System.Data.OleDb;
|
||||
using Microsoft.Win32;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Text.RegularExpressions;
|
||||
|
||||
|
||||
namespace Advantage_Final
|
||||
{
|
||||
|
||||
|
||||
public partial class Form1 : Form
|
||||
{
|
||||
public AdsConnection connection;
|
||||
public IDbCommand command;
|
||||
public AdsCommand paramCommand;
|
||||
public IDataReader dataReader;
|
||||
public RegistryKey Dicks = Microsoft.Win32.Registry.CurrentUser.OpenSubKey("Software\\PanaceanTech\\ReportRunner", true);
|
||||
public RegistryKey MedisoftRoot = Microsoft.Win32.Registry.CurrentUser.OpenSubKey("Software\\Medisoft", true);
|
||||
public RegistryKey RMRoot = Microsoft.Win32.Registry.CurrentUser.OpenSubKey("Software\\McKesson\\RevenueManagement_1914", true);
|
||||
public List<string> list = new List<string>();
|
||||
public string line;
|
||||
public string PracticeFolder;
|
||||
public string oldPath;
|
||||
|
||||
|
||||
public Form1()
|
||||
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
RegistryKey key = Microsoft.Win32.Registry.CurrentUser;
|
||||
string RootPath = ((string)MedisoftRoot.GetValue("Root Data Path"));
|
||||
key.CreateSubKey("Software\\PanaceanTech");
|
||||
RegistryKey PTech = key.OpenSubKey("Software\\PanaceanTech", true);
|
||||
PTech.CreateSubKey("ReportRunner");
|
||||
key.CreateSubKey("Software\\PanaceanTech");
|
||||
|
||||
connection = new AdsConnection();
|
||||
connection.ConnectionString = "Data Source=" + RootPath +
|
||||
";User ID=shareddatauser;Password=AndPassword" +
|
||||
";ServerType=REMOTE|LOCAL;TrimTrailingSpaces=True";
|
||||
|
||||
|
||||
AdsDataReader reader;
|
||||
AdsCommand cmd;
|
||||
cmd = connection.CreateCommand();
|
||||
cmd.CommandText = "SELECT [DataSet Name], [Data Path] FROM [MWDBLIST]";
|
||||
connection.Open();
|
||||
reader = cmd.ExecuteReader();
|
||||
|
||||
|
||||
while (reader.Read())
|
||||
{
|
||||
mPracticeList.Items.Add(reader.GetString(0) + " { " + reader.GetString(1));
|
||||
}
|
||||
|
||||
|
||||
connection.Close();
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
private void exitToolStripMenuItem1_Click(object sender, EventArgs e)
|
||||
{
|
||||
Application.Exit();
|
||||
}
|
||||
|
||||
private void exitToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void setPathsToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
FilePaths frmFilePaths = new FilePaths();
|
||||
frmFilePaths.ShowDialog();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void InitializeDataComponents()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The main entry point for the application.
|
||||
/// </summary>
|
||||
[STAThread]
|
||||
static void Main()
|
||||
{
|
||||
Application.Run(new Form1());
|
||||
|
||||
}
|
||||
|
||||
|
||||
private void button1_Click(object sender, EventArgs e)
|
||||
{
|
||||
for (int i = 0; i < mPracticeList.Items.Count; i++)
|
||||
|
||||
mPracticeList.SetItemChecked(i, true);
|
||||
}
|
||||
|
||||
private void button2_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
list.Clear();
|
||||
|
||||
foreach (string item in mPracticeList.CheckedItems)
|
||||
{
|
||||
string value = item;
|
||||
int i = item.IndexOf('{') + 1;
|
||||
string d = Path.Combine(value.Substring(i) + "\\ureports");
|
||||
list.Add(d);
|
||||
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
if ((string)Dicks.GetValue("ReportFolder") == null)
|
||||
{
|
||||
reportFileDialog1.InitialDirectory = @"C:\";
|
||||
}
|
||||
else
|
||||
{
|
||||
reportFileDialog1.InitialDirectory = ((string)Dicks.GetValue("ReportFolder"));
|
||||
}
|
||||
|
||||
DialogResult result = reportFileDialog1.ShowDialog();
|
||||
Class1.ReportName = System.IO.Path.GetFileNameWithoutExtension(reportFileDialog1.FileName);
|
||||
if (result == DialogResult.OK)
|
||||
{
|
||||
foreach (String file in reportFileDialog1.FileNames)
|
||||
{
|
||||
foreach (string item in list)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
string otherFile = Path.Combine(item, Path.GetFileName(file));
|
||||
File.Copy(file, otherFile, true);
|
||||
}
|
||||
catch (UnauthorizedAccessException )
|
||||
{
|
||||
MessageBox.Show("Fix your fucking permissions");
|
||||
}
|
||||
|
||||
catch (IOException)
|
||||
{
|
||||
MessageBox.Show("This shit doesn't exist" + item);
|
||||
}
|
||||
|
||||
catch (Exception)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void button3_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
list.Clear();
|
||||
|
||||
foreach (string item in mPracticeList.CheckedItems)
|
||||
{
|
||||
string value = item;
|
||||
int i = item.IndexOf('{') + 1;
|
||||
string d = Path.Combine(value.Substring(i) + "\\mwddf.add");
|
||||
list.Add(d);
|
||||
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
if ((string)Dicks.GetValue("ReportFolder") == null)
|
||||
{
|
||||
reportFileDialog1.InitialDirectory = @"C:\";
|
||||
}
|
||||
else
|
||||
{
|
||||
reportFileDialog1.InitialDirectory = ((string)Dicks.GetValue("ReportFolder"));
|
||||
}
|
||||
|
||||
DialogResult result = reportFileDialog1.ShowDialog();
|
||||
|
||||
if (result == DialogResult.OK)
|
||||
{
|
||||
|
||||
using (StreamReader sr = new StreamReader(reportFileDialog1.FileName))
|
||||
{
|
||||
|
||||
line = sr.ReadToEnd();
|
||||
|
||||
}
|
||||
|
||||
foreach (string item in list)
|
||||
{
|
||||
|
||||
{
|
||||
|
||||
try
|
||||
{
|
||||
|
||||
oldPath = item.Replace("\\mwddf.add", "");
|
||||
int i1 = oldPath.LastIndexOf('\\');
|
||||
string newPracticeName = oldPath.Substring(i1);
|
||||
AdsConnection conn = new AdsConnection();
|
||||
conn.ConnectionString = "Data Source=" + item +
|
||||
";User ID=user;Password=password;" +
|
||||
"ServerType=REMOTE|LOCAL;TrimTrailingSpaces=True";
|
||||
AdsDataAdapter da = new AdsDataAdapter(line, conn);
|
||||
DataSet ds = new DataSet();
|
||||
da.SelectCommand.CommandTimeout = 0;
|
||||
da.Fill(ds, "Dick");
|
||||
DataTable dt = ds.Tables[0];
|
||||
string filepath = (string)Dicks.GetValue("ReportOutput", "");
|
||||
da.Dispose();
|
||||
|
||||
|
||||
conn.Open();
|
||||
AdsDataReader reader;
|
||||
AdsCommand PracticeName = conn.CreateCommand();
|
||||
PracticeName.CommandText = "SELECT [Practice Name] FROM [MWPRA]";
|
||||
|
||||
|
||||
reader = PracticeName.ExecuteReader();
|
||||
|
||||
while (reader.Read())
|
||||
{
|
||||
|
||||
PracticeFolder = reader.GetString(0);
|
||||
|
||||
|
||||
|
||||
}
|
||||
dt.Columns.Add("Practice", typeof(string));
|
||||
foreach (DataRow dr in dt.Rows)
|
||||
{
|
||||
dr["Practice"] = PracticeFolder;
|
||||
}
|
||||
conn.Close();
|
||||
AdsConnection.FlushConnectionPool();
|
||||
|
||||
string ReportExportPath1 = (Path.Combine((string)Dicks.GetValue("ReportOutput", "")));
|
||||
//string ReportExportPath1 = (Path.Combine((string)Dicks.GetValue("ReportOutput", "") + newPracticeName));
|
||||
string ReportExportPath = ReportExportPath1.TrimEnd('\\');
|
||||
bool exists = System.IO.Directory.Exists(ReportExportPath);
|
||||
|
||||
if (!exists)
|
||||
System.IO.Directory.CreateDirectory(ReportExportPath);
|
||||
|
||||
// String rFilePath = (ReportExportPath + "\\" + Path.GetFileNameWithoutExtension(reportFileDialog1.FileName) + ".xlsx");
|
||||
String rFilePath = (ReportExportPath + "\\" + "Test" + ".xlsx");
|
||||
|
||||
dt.ExportToExcel(rFilePath);
|
||||
dt.Dispose();
|
||||
ds.Dispose();
|
||||
conn.Close();
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
|
||||
string LogPath = ((Path.Combine((string)Dicks.GetValue("ReportOutput", "") + "\\" + "log.txt")));
|
||||
bool fileExists = File.Exists(LogPath);
|
||||
using (StreamWriter sw = File.AppendText(LogPath))
|
||||
{
|
||||
sw.WriteLine("");
|
||||
sw.WriteLine(ex);
|
||||
sw.WriteLine("");
|
||||
sw.WriteLine(oldPath);
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
continue;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
MessageBox.Show("All Done");
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void mPracticeList_SelectedIndexChanged(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void openFileDialog1_FileOk(object sender, CancelEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void mPracticeList_SelectedIndexChanged_1(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void openFileDialog1_FileOk_1(object sender, CancelEventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private void btnClear_Click(object sender, EventArgs e)
|
||||
{
|
||||
foreach (int i in mPracticeList.CheckedIndices)
|
||||
{
|
||||
mPracticeList.SetItemCheckState(i,CheckState.Unchecked);
|
||||
}
|
||||
}
|
||||
|
||||
private void btnScript_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
list.Clear();
|
||||
|
||||
foreach (string item in mPracticeList.CheckedItems)
|
||||
{
|
||||
string value = item;
|
||||
int i = item.IndexOf('{') + 1;
|
||||
string d = Path.Combine(value.Substring(i) + "\\mwddf.add");
|
||||
|
||||
list.Add(d);
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
if ((string)Dicks.GetValue("ReportFolder") == null)
|
||||
{
|
||||
reportFileDialog1.InitialDirectory = @"C:\";
|
||||
}
|
||||
else
|
||||
{
|
||||
reportFileDialog1.InitialDirectory = ((string)Dicks.GetValue("ReportFolder"));
|
||||
}
|
||||
|
||||
DialogResult result = reportFileDialog1.ShowDialog();
|
||||
|
||||
if (result == DialogResult.OK)
|
||||
{
|
||||
using (StreamReader sr = new StreamReader(reportFileDialog1.FileName))
|
||||
{
|
||||
line = sr.ReadToEnd();
|
||||
|
||||
}
|
||||
|
||||
foreach (string item in list)
|
||||
{
|
||||
|
||||
{
|
||||
string connString = "Data Source=" + item +
|
||||
";User ID=user;Password=password;" +
|
||||
"ServerType=REMOTE|LOCAL;TrimTrailingSpaces=True";
|
||||
|
||||
AdsCommand justQuery = new AdsCommand();
|
||||
justQuery.Connection = new AdsConnection(connString);
|
||||
justQuery.CommandTimeout = 0;
|
||||
justQuery.CommandText = line;
|
||||
justQuery.Connection.Open();
|
||||
justQuery.ExecuteNonQuery();
|
||||
justQuery.Connection.Close();
|
||||
AdsConnection.FlushConnectionPool();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
MessageBox.Show("I's done");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void button3_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
string RMPath = ((string)RMRoot.GetValue("Root Data Path"));
|
||||
mPracticeList.Items.Clear();
|
||||
connection = new AdsConnection();
|
||||
connection.ConnectionString = "Data Source=" + RMPath + "\\CMDBLIST.ADD" +
|
||||
";User ID=user;Password=password" +
|
||||
";ServerType=REMOTE|LOCAL;TrimTrailingSpaces=True";
|
||||
AdsDataReader reader;
|
||||
AdsCommand cmd;
|
||||
cmd = connection.CreateCommand();
|
||||
cmd.CommandText = "SELECT [Name], [CMDataPath] FROM [Practice]";
|
||||
connection.Open();
|
||||
reader = cmd.ExecuteReader();
|
||||
|
||||
|
||||
while (reader.Read())
|
||||
{
|
||||
mPracticeList.Items.Add(reader.GetString(0) + " { " + reader.GetString(1));
|
||||
}
|
||||
|
||||
|
||||
connection.Close();
|
||||
|
||||
}
|
||||
|
||||
private void button4_Click(object sender, EventArgs e)
|
||||
{
|
||||
list.Clear();
|
||||
|
||||
foreach (string item in mPracticeList.CheckedItems)
|
||||
{
|
||||
string value = item;
|
||||
int i = item.IndexOf('{') + 1;
|
||||
string d = Path.Combine(value.Substring(i) + "\\cm4.add");
|
||||
|
||||
list.Add(d);
|
||||
}
|
||||
|
||||
{
|
||||
|
||||
if ((string)Dicks.GetValue("ReportFolder") == null)
|
||||
{
|
||||
reportFileDialog1.InitialDirectory = @"C:\";
|
||||
}
|
||||
else
|
||||
{
|
||||
reportFileDialog1.InitialDirectory = ((string)Dicks.GetValue("ReportFolder"));
|
||||
}
|
||||
|
||||
DialogResult result = reportFileDialog1.ShowDialog();
|
||||
|
||||
if (result == DialogResult.OK)
|
||||
{
|
||||
using (StreamReader sr = new StreamReader(reportFileDialog1.FileName))
|
||||
{
|
||||
line = sr.ReadToEnd();
|
||||
}
|
||||
|
||||
foreach (string item in list)
|
||||
{
|
||||
try
|
||||
{
|
||||
{
|
||||
string connString = "Data Source=" + item +
|
||||
";User ID=user;Password=password;" +
|
||||
"ServerType=REMOTE|LOCAL;TrimTrailingSpaces=True";
|
||||
|
||||
AdsCommand justQuery = new AdsCommand();
|
||||
justQuery.Connection = new AdsConnection(connString);
|
||||
justQuery.CommandTimeout = 0;
|
||||
justQuery.CommandText = line;
|
||||
justQuery.Connection.Open();
|
||||
justQuery.ExecuteNonQuery();
|
||||
justQuery.Connection.Close();
|
||||
AdsConnection.FlushConnectionPool();
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
string LogPath = ((Path.Combine((string)Dicks.GetValue("ReportOutput", "") + "\\" + "log.txt")));
|
||||
bool fileExists = File.Exists(LogPath);
|
||||
using (StreamWriter sw = File.AppendText(LogPath))
|
||||
{
|
||||
sw.WriteLine("");
|
||||
sw.WriteLine(ex);
|
||||
sw.WriteLine("");
|
||||
sw.WriteLine(oldPath);
|
||||
|
||||
}
|
||||
}
|
||||
MessageBox.Show("I's done");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private void optionsToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
2673
Report Runner/Advantage Final/Form1.resx
Normal file
2673
Report Runner/Advantage Final/Form1.resx
Normal file
File diff suppressed because it is too large
Load Diff
140
Report Runner/Advantage Final/Options.Designer.cs
generated
Normal file
140
Report Runner/Advantage Final/Options.Designer.cs
generated
Normal file
@@ -0,0 +1,140 @@
|
||||
namespace Report_Runner
|
||||
{
|
||||
partial class Options
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
this.checkSeparate = new System.Windows.Forms.CheckBox();
|
||||
this.label1 = new System.Windows.Forms.Label();
|
||||
this.checkedListBox1 = new System.Windows.Forms.CheckedListBox();
|
||||
this.checkBox1 = new System.Windows.Forms.CheckBox();
|
||||
this.label2 = new System.Windows.Forms.Label();
|
||||
this.label3 = new System.Windows.Forms.Label();
|
||||
this.checkedListBox2 = new System.Windows.Forms.CheckedListBox();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// checkSeparate
|
||||
//
|
||||
this.checkSeparate.AutoSize = true;
|
||||
this.checkSeparate.Location = new System.Drawing.Point(18, 23);
|
||||
this.checkSeparate.Name = "checkSeparate";
|
||||
this.checkSeparate.Size = new System.Drawing.Size(128, 17);
|
||||
this.checkSeparate.TabIndex = 0;
|
||||
this.checkSeparate.Text = "Separate Report Files";
|
||||
this.checkSeparate.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// label1
|
||||
//
|
||||
this.label1.AutoSize = true;
|
||||
this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
|
||||
this.label1.Location = new System.Drawing.Point(15, 64);
|
||||
this.label1.Name = "label1";
|
||||
this.label1.Size = new System.Drawing.Size(97, 24);
|
||||
this.label1.TabIndex = 2;
|
||||
this.label1.Text = "File Name";
|
||||
//
|
||||
// checkedListBox1
|
||||
//
|
||||
this.checkedListBox1.FormattingEnabled = true;
|
||||
this.checkedListBox1.Items.AddRange(new object[] {
|
||||
"Practice Name",
|
||||
"Report Name"});
|
||||
this.checkedListBox1.Location = new System.Drawing.Point(15, 91);
|
||||
this.checkedListBox1.Name = "checkedListBox1";
|
||||
this.checkedListBox1.Size = new System.Drawing.Size(97, 34);
|
||||
this.checkedListBox1.TabIndex = 3;
|
||||
//
|
||||
// checkBox1
|
||||
//
|
||||
this.checkBox1.AutoSize = true;
|
||||
this.checkBox1.Location = new System.Drawing.Point(166, 91);
|
||||
this.checkBox1.Name = "checkBox1";
|
||||
this.checkBox1.Size = new System.Drawing.Size(97, 17);
|
||||
this.checkBox1.TabIndex = 4;
|
||||
this.checkBox1.Text = "MonthDayYear";
|
||||
this.checkBox1.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// label2
|
||||
//
|
||||
this.label2.AutoSize = true;
|
||||
this.label2.Location = new System.Drawing.Point(133, 105);
|
||||
this.label2.Name = "label2";
|
||||
this.label2.Size = new System.Drawing.Size(13, 13);
|
||||
this.label2.TabIndex = 5;
|
||||
this.label2.Text = "+";
|
||||
//
|
||||
// label3
|
||||
//
|
||||
this.label3.AutoSize = true;
|
||||
this.label3.Location = new System.Drawing.Point(15, 139);
|
||||
this.label3.Name = "label3";
|
||||
this.label3.Size = new System.Drawing.Size(67, 13);
|
||||
this.label3.TabIndex = 6;
|
||||
this.label3.Text = "Folder Name";
|
||||
//
|
||||
// checkedListBox2
|
||||
//
|
||||
this.checkedListBox2.FormattingEnabled = true;
|
||||
this.checkedListBox2.Items.AddRange(new object[] {
|
||||
"Use Report Folder",
|
||||
"Practice Name",
|
||||
"Report Name"});
|
||||
this.checkedListBox2.Location = new System.Drawing.Point(15, 155);
|
||||
this.checkedListBox2.Name = "checkedListBox2";
|
||||
this.checkedListBox2.Size = new System.Drawing.Size(120, 49);
|
||||
this.checkedListBox2.TabIndex = 7;
|
||||
//
|
||||
// Form2
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(371, 261);
|
||||
this.Controls.Add(this.checkedListBox2);
|
||||
this.Controls.Add(this.label3);
|
||||
this.Controls.Add(this.label2);
|
||||
this.Controls.Add(this.checkBox1);
|
||||
this.Controls.Add(this.checkedListBox1);
|
||||
this.Controls.Add(this.label1);
|
||||
this.Controls.Add(this.checkSeparate);
|
||||
this.Name = "Form2";
|
||||
this.Text = "Options";
|
||||
this.ResumeLayout(false);
|
||||
this.PerformLayout();
|
||||
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.CheckBox checkSeparate;
|
||||
private System.Windows.Forms.Label label1;
|
||||
private System.Windows.Forms.CheckedListBox checkedListBox1;
|
||||
private System.Windows.Forms.CheckBox checkBox1;
|
||||
private System.Windows.Forms.Label label2;
|
||||
private System.Windows.Forms.Label label3;
|
||||
private System.Windows.Forms.CheckedListBox checkedListBox2;
|
||||
}
|
||||
}
|
||||
19
Report Runner/Advantage Final/Options.cs
Normal file
19
Report Runner/Advantage Final/Options.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace Report_Runner
|
||||
{
|
||||
public partial class Options : Form
|
||||
{
|
||||
public Options()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
||||
}
|
||||
120
Report Runner/Advantage Final/Options.resx
Normal file
120
Report Runner/Advantage Final/Options.resx
Normal file
@@ -0,0 +1,120 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" use="required" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
<xsd:attribute ref="xml:space" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
1
Report Runner/Advantage Final/Program.cs
Normal file
1
Report Runner/Advantage Final/Program.cs
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
36
Report Runner/Advantage Final/Properties/AssemblyInfo.cs
Normal file
36
Report Runner/Advantage Final/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,36 @@
|
||||
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("Report Runner")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("Panacean Technologies, LLC")]
|
||||
[assembly: AssemblyProduct("Report Runner")]
|
||||
[assembly: AssemblyCopyright("Copyright © Panacean Technologies, LLC")]
|
||||
[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("6526e25e-a4c7-43ab-be6a-055806846287")]
|
||||
|
||||
// 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.3.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.3.0.0")]
|
||||
63
Report Runner/Advantage Final/Properties/Resources.Designer.cs
generated
Normal file
63
Report Runner/Advantage Final/Properties/Resources.Designer.cs
generated
Normal file
@@ -0,0 +1,63 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.34209
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Report_Runner.Properties {
|
||||
using System;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// A strongly-typed resource class, for looking up localized strings, etc.
|
||||
/// </summary>
|
||||
// This class was auto-generated by the StronglyTypedResourceBuilder
|
||||
// class via a tool like ResGen or Visual Studio.
|
||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||
// with the /str option, or rebuild your VS project.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
internal class Resources {
|
||||
|
||||
private static global::System.Resources.ResourceManager resourceMan;
|
||||
|
||||
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||
|
||||
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||
internal Resources() {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the cached ResourceManager instance used by this class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Resources.ResourceManager ResourceManager {
|
||||
get {
|
||||
if (object.ReferenceEquals(resourceMan, null)) {
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Report_Runner.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Overrides the current thread's CurrentUICulture property for all
|
||||
/// resource lookups using this strongly typed resource class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture {
|
||||
get {
|
||||
return resourceCulture;
|
||||
}
|
||||
set {
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
117
Report Runner/Advantage Final/Properties/Resources.resx
Normal file
117
Report Runner/Advantage Final/Properties/Resources.resx
Normal file
@@ -0,0 +1,117 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<root>
|
||||
<!--
|
||||
Microsoft ResX Schema
|
||||
|
||||
Version 2.0
|
||||
|
||||
The primary goals of this format is to allow a simple XML format
|
||||
that is mostly human readable. The generation and parsing of the
|
||||
various data types are done through the TypeConverter classes
|
||||
associated with the data types.
|
||||
|
||||
Example:
|
||||
|
||||
... ado.net/XML headers & schema ...
|
||||
<resheader name="resmimetype">text/microsoft-resx</resheader>
|
||||
<resheader name="version">2.0</resheader>
|
||||
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
|
||||
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
|
||||
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
|
||||
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
|
||||
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
|
||||
<value>[base64 mime encoded serialized .NET Framework object]</value>
|
||||
</data>
|
||||
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
|
||||
<comment>This is a comment</comment>
|
||||
</data>
|
||||
|
||||
There are any number of "resheader" rows that contain simple
|
||||
name/value pairs.
|
||||
|
||||
Each data row contains a name, and value. The row also contains a
|
||||
type or mimetype. Type corresponds to a .NET class that support
|
||||
text/value conversion through the TypeConverter architecture.
|
||||
Classes that don't support this are serialized and stored with the
|
||||
mimetype set.
|
||||
|
||||
The mimetype is used for serialized objects, and tells the
|
||||
ResXResourceReader how to depersist the object. This is currently not
|
||||
extensible. For a given mimetype the value must be set accordingly:
|
||||
|
||||
Note - application/x-microsoft.net.object.binary.base64 is the format
|
||||
that the ResXResourceWriter will generate, however the reader can
|
||||
read any of the formats listed below.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.binary.base64
|
||||
value : The object must be serialized with
|
||||
: System.Serialization.Formatters.Binary.BinaryFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.soap.base64
|
||||
value : The object must be serialized with
|
||||
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
|
||||
: and then encoded with base64 encoding.
|
||||
|
||||
mimetype: application/x-microsoft.net.object.bytearray.base64
|
||||
value : The object must be serialized into a byte array
|
||||
: using a System.ComponentModel.TypeConverter
|
||||
: and then encoded with base64 encoding.
|
||||
-->
|
||||
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
|
||||
<xsd:element name="root" msdata:IsDataSet="true">
|
||||
<xsd:complexType>
|
||||
<xsd:choice maxOccurs="unbounded">
|
||||
<xsd:element name="metadata">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
<xsd:attribute name="type" type="xsd:string" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="assembly">
|
||||
<xsd:complexType>
|
||||
<xsd:attribute name="alias" type="xsd:string" />
|
||||
<xsd:attribute name="name" type="xsd:string" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="data">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
|
||||
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
|
||||
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
<xsd:element name="resheader">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="name" type="xsd:string" use="required" />
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:choice>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
<resheader name="resmimetype">
|
||||
<value>text/microsoft-resx</value>
|
||||
</resheader>
|
||||
<resheader name="version">
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
</root>
|
||||
26
Report Runner/Advantage Final/Properties/Settings.Designer.cs
generated
Normal file
26
Report Runner/Advantage Final/Properties/Settings.Designer.cs
generated
Normal file
@@ -0,0 +1,26 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.34209
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Report_Runner.Properties {
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
|
||||
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
|
||||
public static Settings Default {
|
||||
get {
|
||||
return defaultInstance;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
|
||||
<Profiles>
|
||||
<Profile Name="(Default)" />
|
||||
</Profiles>
|
||||
<Settings />
|
||||
</SettingsFile>
|
||||
34
Report Runner/Advantage Final/RegistryClass.cs
Normal file
34
Report Runner/Advantage Final/RegistryClass.cs
Normal file
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.IO;
|
||||
using Microsoft.Win32;
|
||||
|
||||
|
||||
|
||||
namespace Advantage_Final
|
||||
{
|
||||
class Registry
|
||||
{
|
||||
|
||||
const string userRoot = "HKEY_CURRENT_USER";
|
||||
const string subkey = "Software\\PanaceanTech\\Helpar5000";
|
||||
public const string keyName = userRoot + "\\" + subkey;
|
||||
private string ScriptPath = "";
|
||||
|
||||
public RegistryKey key
|
||||
{
|
||||
get
|
||||
{
|
||||
|
||||
}
|
||||
set
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
BIN
Report Runner/Advantage Final/Service References/ADSLOC32.dll
Normal file
BIN
Report Runner/Advantage Final/Service References/ADSLOC32.dll
Normal file
Binary file not shown.
BIN
Report Runner/Advantage Final/Service References/Ace32.dll
Normal file
BIN
Report Runner/Advantage Final/Service References/Ace32.dll
Normal file
Binary file not shown.
Binary file not shown.
39
Report Runner/Advantage Final/ToDataTable.cs
Normal file
39
Report Runner/Advantage Final/ToDataTable.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace Advantage_Final
|
||||
{
|
||||
class ToDataTable
|
||||
{
|
||||
private static DataTable ConvertToDatatable<T>(List<T> data)
|
||||
{
|
||||
PropertyDescriptorCollection props =
|
||||
TypeDescriptor.GetProperties(typeof(T));
|
||||
DataTable table = new DataTable();
|
||||
for (int i = 0; i < props.Count; i++)
|
||||
{
|
||||
PropertyDescriptor prop = props[i];
|
||||
if (prop.PropertyType.IsGenericType && prop.PropertyType.GetGenericTypeDefinition() == typeof(Nullable<>))
|
||||
table.Columns.Add(prop.Name, prop.PropertyType.GetGenericArguments()[0]);
|
||||
else
|
||||
table.Columns.Add(prop.Name, prop.PropertyType);
|
||||
}
|
||||
object[] values = new object[props.Count];
|
||||
foreach (T item in data)
|
||||
{
|
||||
for (int i = 0; i < values.Length; i++)
|
||||
{
|
||||
values[i] = props[i].GetValue(item);
|
||||
}
|
||||
table.Rows.Add(values);
|
||||
}
|
||||
return table;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
3
Report Runner/Advantage Final/app.config
Normal file
3
Report Runner/Advantage Final/app.config
Normal file
@@ -0,0 +1,3 @@
|
||||
<?xml version="1.0"?>
|
||||
<configuration>
|
||||
<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
|
||||
BIN
Report Runner/Advantage Final/lazy.ico
Normal file
BIN
Report Runner/Advantage Final/lazy.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 149 KiB |
Reference in New Issue
Block a user