One more file fix; VAT report work
This commit is contained in:
Binary file not shown.
@@ -78,6 +78,9 @@
|
||||
<HintPath>..\packages\Markdig.0.10.3\lib\net40\Markdig.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
</Reference>
|
||||
<Reference Include="Mono.Posix">
|
||||
<HintPath>..\External Libraries\Mono.Posix.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="MySql.Data, Version=6.9.9.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\MySql.Data.6.9.9\lib\net45\MySql.Data.dll</HintPath>
|
||||
<Private>True</Private>
|
||||
|
||||
@@ -10,6 +10,7 @@ using Swarmops.Database;
|
||||
using Swarmops.Logic.Communications;
|
||||
using Swarmops.Logic.Financial;
|
||||
using Swarmops.Logic.Swarm;
|
||||
using Mono.Unix.Native;
|
||||
|
||||
namespace Swarmops.Logic.Support
|
||||
{
|
||||
@@ -161,9 +162,15 @@ namespace Swarmops.Logic.Support
|
||||
|
||||
public void Delete()
|
||||
{
|
||||
// Unlink, actually
|
||||
// If we're not in debug mode, set permissions to allow delete
|
||||
|
||||
SetForeignObject (new TemporaryIdentity (0));
|
||||
if (!Debugger.IsAttached)
|
||||
{
|
||||
Syscall.chmod(StorageRoot + ServerFileName,
|
||||
FilePermissions.S_IRUSR | FilePermissions.S_IWUSR | FilePermissions.S_IRGRP | FilePermissions.S_IROTH);
|
||||
}
|
||||
|
||||
SetForeignObject(new TemporaryIdentity (0));
|
||||
File.Delete (StorageRoot + ServerFileName);
|
||||
SwarmDb.GetDatabaseForWriting().SetDocumentDescription (Identity, "Deleted");
|
||||
}
|
||||
|
||||
@@ -252,7 +252,7 @@ namespace Swarmops.Frontend.Automation
|
||||
file.InputStream.Position = 0;
|
||||
file.SaveAs(StorageRoot + relativeFileName);
|
||||
|
||||
// Set file permissions to rwxr--r-- if live environment
|
||||
// Set file permissions to -r--r--r-- if live environment
|
||||
|
||||
if (!WeAreInDebugEnvironment)
|
||||
{
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/Master-v5.master" AutoEventWireup="true" CodeBehind="VatReports.aspx.cs" Inherits="Swarmops.Frontend.Pages.v5.Ledgers.VatReports" %>
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="PlaceHolderHead" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="PlaceHolderMain" runat="server">
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content3" ContentPlaceHolderID="PlaceHolderSide" runat="server">
|
||||
</asp:Content>
|
||||
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.UI;
|
||||
using System.Web.UI.WebControls;
|
||||
|
||||
namespace Swarmops.Frontend.Pages.v5.Ledgers
|
||||
{
|
||||
public partial class VatReports : System.Web.UI.Page
|
||||
{
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// This code was generated by a tool.
|
||||
//
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace Swarmops.Frontend.Pages.v5.Ledgers
|
||||
{
|
||||
|
||||
|
||||
public partial class VatReports
|
||||
{
|
||||
}
|
||||
}
|
||||
@@ -502,6 +502,13 @@
|
||||
<Compile Include="Pages\v5\Ledgers\UploadBankFiles.aspx.designer.cs">
|
||||
<DependentUpon>UploadBankFiles.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Pages\v5\Ledgers\VatReports.aspx.cs">
|
||||
<DependentUpon>VatReports.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
</Compile>
|
||||
<Compile Include="Pages\v5\Ledgers\VatReports.aspx.designer.cs">
|
||||
<DependentUpon>VatReports.aspx</DependentUpon>
|
||||
</Compile>
|
||||
<Compile Include="Pages\v5\Ledgers\ViewOutstandingAccounts.aspx.cs">
|
||||
<DependentUpon>ViewOutstandingAccounts.aspx</DependentUpon>
|
||||
<SubType>ASPXCodeBehind</SubType>
|
||||
@@ -1108,6 +1115,7 @@
|
||||
<Content Include="Pages\v5\Ledgers\TaxForms\Json-Payroll-TaxFormData.aspx" />
|
||||
<Content Include="Pages\v5\Ledgers\TaxForms\PayrollForms.aspx" />
|
||||
<Content Include="Pages\v5\Ledgers\UploadBankFiles.aspx" />
|
||||
<Content Include="Pages\v5\Ledgers\VatReports.aspx" />
|
||||
<Content Include="Pages\v5\Ledgers\ViewOutstandingAccounts.aspx" />
|
||||
<Content Include="Pages\v5\Public\Initialize.aspx" />
|
||||
<Content Include="Pages\v5\Public\Json-SignupVolunteerPositions.aspx" />
|
||||
|
||||
Reference in New Issue
Block a user