Some work on payment targets
This commit is contained in:
@@ -63,6 +63,7 @@
|
||||
<Compile Include="Types\Financial\BasicFinancialAccountDocument.cs" />
|
||||
<Compile Include="Types\Financial\BasicHotBitcoinAddress.cs" />
|
||||
<Compile Include="Types\Financial\BasicHotBitcoinAddressUnspent.cs" />
|
||||
<Compile Include="Types\Financial\BasicPaymentTarget.cs" />
|
||||
<Compile Include="Types\Financial\BasicVatReport.cs" />
|
||||
<Compile Include="Types\Financial\BasicVatReportItem.cs" />
|
||||
<Compile Include="Types\Governance\BasicBallot.cs" />
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Swarmops.Common.Enums;
|
||||
using Swarmops.Common.Interfaces;
|
||||
|
||||
namespace Swarmops.Basic.Types.Financial
|
||||
{
|
||||
public class BasicPaymentTarget: IHasIdentity
|
||||
{
|
||||
public int PaymentTargetId { get; private set; }
|
||||
public DateTime CreatedDateTime { get; private set; }
|
||||
public int CreatedByPersonId { get; private set; }
|
||||
public int ForeignId { get; private set; }
|
||||
public ForeignObjectType ForeignType { get; private set; }
|
||||
public bool Active { get; protected set; }
|
||||
public bool Open { get; protected set; }
|
||||
public int CurrencyId { get; private set; }
|
||||
public string TargetType { get; private set; }
|
||||
public string Description { get; private set; }
|
||||
public Dictionary<PaymentTargetField, string> Fields { get; private set; }
|
||||
|
||||
|
||||
public int Identity { get { return PaymentTargetId; } }
|
||||
}
|
||||
}
|
||||
@@ -61,6 +61,7 @@
|
||||
<Compile Include="Enums\FinancialDependencyType.cs" />
|
||||
<Compile Include="Enums\FinancialForeignIdType.cs" />
|
||||
<Compile Include="Enums\FinancialValidationType.cs" />
|
||||
<Compile Include="Enums\ForeignObjectType.cs" />
|
||||
<Compile Include="Enums\GeographyLevel.cs" />
|
||||
<Compile Include="Enums\InvalidMembershipType.cs" />
|
||||
<Compile Include="Enums\LayoutDirection.cs" />
|
||||
@@ -70,6 +71,8 @@
|
||||
<Compile Include="Enums\OrganizationFinancialAccountType.cs" />
|
||||
<Compile Include="Enums\OutboundCommPriority.cs" />
|
||||
<Compile Include="Enums\PaymentCodeIssueType.cs" />
|
||||
<Compile Include="Enums\PaymentTargetField.cs" />
|
||||
<Compile Include="Enums\PaymentTargetType.cs" />
|
||||
<Compile Include="Enums\PermissionEnum.cs" />
|
||||
<Compile Include="Enums\PersonGender.cs" />
|
||||
<Compile Include="Enums\PersonOptionalDataKey.cs" />
|
||||
|
||||
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Swarmops.Common.Enums
|
||||
{
|
||||
public enum ForeignObjectType
|
||||
{
|
||||
Unknown = 0,
|
||||
Person,
|
||||
Client,
|
||||
Supplier
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Swarmops.Common.Enums
|
||||
{
|
||||
public enum PaymentTargetField
|
||||
{
|
||||
Unknown = 0,
|
||||
Iban,
|
||||
Bban,
|
||||
BicSwift,
|
||||
GiroNumber,
|
||||
GiroService,
|
||||
ClearingNumber,
|
||||
AccountNumber,
|
||||
BankAccountHolderName,
|
||||
BankName,
|
||||
CashAccount,
|
||||
CryptoAddress
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Swarmops.Common.Enums
|
||||
{
|
||||
public enum PaymentTargetType
|
||||
{
|
||||
Unknown = 0,
|
||||
BitcoinCashAccount,
|
||||
DomesticBankTransfer,
|
||||
DomesticBankGiro,
|
||||
InternationalBankTransfer
|
||||
}
|
||||
}
|
||||
@@ -1302,6 +1302,15 @@ namespace Resources.Pages {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Currency, Method.
|
||||
/// </summary>
|
||||
internal static string PayOutMoney_GridHeader_CurrencyMethod {
|
||||
get {
|
||||
return ResourceManager.GetString("PayOutMoney_GridHeader_CurrencyMethod", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Due Date.
|
||||
/// </summary>
|
||||
@@ -1320,6 +1329,15 @@ namespace Resources.Pages {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Pay.
|
||||
/// </summary>
|
||||
internal static string PayOutMoney_GridHeader_PayThis {
|
||||
get {
|
||||
return ResourceManager.GetString("PayOutMoney_GridHeader_PayThis", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Recipient.
|
||||
/// </summary>
|
||||
@@ -1374,6 +1392,15 @@ namespace Resources.Pages {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Confirm.
|
||||
/// </summary>
|
||||
internal static string PayOutMoney_ModalPay_Confirm {
|
||||
get {
|
||||
return ResourceManager.GetString("PayOutMoney_ModalPay_Confirm", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Show OCR for mobile apps.
|
||||
/// </summary>
|
||||
|
||||
@@ -731,4 +731,16 @@
|
||||
<value>Approval for Expense Claim #{0:N0} from {1} was RETRACTED. It will not be paid unless approved again.</value>
|
||||
<comment>When somebody undoes a previous attestation.</comment>
|
||||
</data>
|
||||
<data name="PayOutMoney_GridHeader_CurrencyMethod" xml:space="preserve">
|
||||
<value>Currency, Method</value>
|
||||
<comment>"Method" refers to the method of payout -- wire transfer, direct deposit, giro service, etc.</comment>
|
||||
</data>
|
||||
<data name="PayOutMoney_GridHeader_PayThis" xml:space="preserve">
|
||||
<value>Pay</value>
|
||||
<comment>Like the "Actions" column in other grids, but just with one option, "Pay this expense"</comment>
|
||||
</data>
|
||||
<data name="PayOutMoney_ModalPay_Confirm" xml:space="preserve">
|
||||
<value>Confirm</value>
|
||||
<comment>As in "Confirm The Listed Payment Has Been Made Manually" -- try to keep below 8-9 characters</comment>
|
||||
</data>
|
||||
</root>
|
||||
@@ -70,6 +70,10 @@
|
||||
$(".LocalIconApproval, .LocalIconUndo, .LocalIconDenial").css("cursor", "pointer");
|
||||
|
||||
$(".LocalIconApproval").click(function () {
|
||||
|
||||
<%=this.ModalConfirmPayment.ClientID%>_open();
|
||||
|
||||
/*
|
||||
var itemId = $(this).attr("baseid");
|
||||
var prototypeId = $(this).attr("protoid");
|
||||
$(this).hide();
|
||||
@@ -99,7 +103,7 @@
|
||||
|
||||
}
|
||||
}
|
||||
);
|
||||
);*/
|
||||
});
|
||||
|
||||
|
||||
@@ -137,6 +141,9 @@
|
||||
|
||||
|
||||
/*
|
||||
|
||||
OLD CODE BELOW FROM PREVIOUS TYPE OF ICON LOGIC, KEPT A WHILE FOR REFERENCE --
|
||||
|
||||
$(".LocalIconApproval").click(function() {
|
||||
if ($(this).attr("rel") != "loading") {
|
||||
|
||||
@@ -253,12 +260,10 @@
|
||||
<thead>
|
||||
<tr>
|
||||
<th data-options="field:'due',width:70"><asp:Label ID="LabelGridHeaderDue" runat="server" Text="XYZ Due"/></th>
|
||||
<th data-options="field:'recipient',width:100,sortable:true"><asp:Label ID="LabelGridHeaderRecipient" runat="server" Text="XYZ Beneficiary" /></th>
|
||||
<th data-options="field:'bank',width:80"><asp:Label ID="LabelGridHeaderBank" runat="server" Text="XYZ Bank" /></th>
|
||||
<th data-options="field:'account',width:90,sortable:true"><asp:Label ID="LabelGridHeaderAccount" runat="server" Text="XYZ Account" /></th>
|
||||
<th data-options="field:'reference',width:145,sortable:true,order:'asc'"><asp:Label ID="LabelGridHeaderReference" runat="server" Text="XYZ Reference" /></th>
|
||||
<th data-options="field:'amount',width:80,align:'right'"><asp:Label ID="LabelGridHeaderAmount" runat="server" Text="XYZ Amount" /></th>
|
||||
<th data-options="field:'action',width:68,align:'center'"><asp:Label ID="LabelGridHeaderPaid" runat="server" Text="XYZPaid" /></th>
|
||||
<th data-options="field:'recipient',width:160,sortable:true"><asp:Label ID="LabelGridHeaderRecipient" runat="server" Text="XYZ Beneficiary" /></th>
|
||||
<th data-options="field:'bank',width:160"><asp:Label ID="LabelGridHeaderCurrencyMethod" runat="server" Text="XYZ Bank" /></th>
|
||||
<th data-options="field:'amount',width:85,align:'right'"><asp:Label ID="LabelGridHeaderAmount" runat="server" Text="XYZ Amount" /></th>
|
||||
<th data-options="field:'action',width:68,align:'center'"><asp:Label ID="LabelGridHeaderPay" runat="server" Text="XYZPaid" /></th>
|
||||
</tr>
|
||||
</thead>
|
||||
</table>
|
||||
@@ -291,6 +296,13 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<Swarmops5:ModalDialog ID="ModalConfirmPayment" runat="server" >
|
||||
<DialogCode>
|
||||
<h2>Testing</h2>
|
||||
Foobar high chaparral
|
||||
</DialogCode>
|
||||
</Swarmops5:ModalDialog>
|
||||
|
||||
</asp:Content>
|
||||
|
||||
|
||||
@@ -38,13 +38,11 @@ namespace Swarmops.Frontend.Pages.Financial
|
||||
PageTitle = Resources.Pages.Financial.PayOutMoney_PageTitle;
|
||||
InfoBoxLiteral = Resources.Pages.Financial.PayOutMoney_Info;
|
||||
this.LabelPayOutMoneyHeader.Text = Resources.Pages.Financial.PayOutMoney_Header;
|
||||
this.LabelGridHeaderAccount.Text = Resources.Pages.Financial.PayOutMoney_GridHeader_BankAccount;
|
||||
this.LabelGridHeaderAmount.Text = Resources.Pages.Financial.PayOutMoney_GridHeader_Amount;
|
||||
this.LabelGridHeaderBank.Text = Resources.Pages.Financial.PayOutMoney_GridHeader_BankName;
|
||||
this.LabelGridHeaderDue.Text = Resources.Pages.Financial.PayOutMoney_GridHeader_DueDate;
|
||||
this.LabelGridHeaderPaid.Text = Resources.Pages.Financial.PayOutMoney_GridHeader_PaidOut;
|
||||
this.LabelGridHeaderPay.Text = Resources.Pages.Financial.PayOutMoney_GridHeader_PayThis;
|
||||
this.LabelGridHeaderRecipient.Text = Resources.Pages.Financial.PayOutMoney_GridHeader_Recipient;
|
||||
this.LabelGridHeaderReference.Text = Resources.Pages.Financial.PayOutMoney_GridHeader_Reference;
|
||||
this.LabelGridHeaderCurrencyMethod.Text = Resources.Pages.Financial.PayOutMoney_GridHeader_CurrencyMethod;
|
||||
|
||||
this.LabelPayOutMoneyOcrHeader.Text = Resources.Pages.Financial.PayoutMoney_Header_Ocr;
|
||||
this.LabelGridHeaderAccountOcr.Text = Resources.Pages.Financial.PayoutMoney_GridHeader_Account_Ocr;
|
||||
|
||||
+13
-22
@@ -40,31 +40,13 @@ namespace Swarmops.Frontend.Pages.Financial {
|
||||
protected global::System.Web.UI.WebControls.Label LabelGridHeaderRecipient;
|
||||
|
||||
/// <summary>
|
||||
/// LabelGridHeaderBank control.
|
||||
/// LabelGridHeaderCurrencyMethod control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label LabelGridHeaderBank;
|
||||
|
||||
/// <summary>
|
||||
/// LabelGridHeaderAccount control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label LabelGridHeaderAccount;
|
||||
|
||||
/// <summary>
|
||||
/// LabelGridHeaderReference control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label LabelGridHeaderReference;
|
||||
protected global::System.Web.UI.WebControls.Label LabelGridHeaderCurrencyMethod;
|
||||
|
||||
/// <summary>
|
||||
/// LabelGridHeaderAmount control.
|
||||
@@ -76,13 +58,13 @@ namespace Swarmops.Frontend.Pages.Financial {
|
||||
protected global::System.Web.UI.WebControls.Label LabelGridHeaderAmount;
|
||||
|
||||
/// <summary>
|
||||
/// LabelGridHeaderPaid control.
|
||||
/// LabelGridHeaderPay control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label LabelGridHeaderPaid;
|
||||
protected global::System.Web.UI.WebControls.Label LabelGridHeaderPay;
|
||||
|
||||
/// <summary>
|
||||
/// LabelPayOutMoneyOcrHeader control.
|
||||
@@ -155,5 +137,14 @@ namespace Swarmops.Frontend.Pages.Financial {
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label LabelOptionsShowOcr;
|
||||
|
||||
/// <summary>
|
||||
/// ModalConfirmPayment control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Swarmops.Frontend.Controls.Base.ModalDialog ModalConfirmPayment;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user