Control updates

This commit is contained in:
Rick Falkvinge
2017-01-02 19:58:50 +01:00
parent aa1f52e06d
commit e47f1e8a55
3 changed files with 14 additions and 5 deletions
+10 -1
View File
@@ -75,6 +75,7 @@ using System.Collections.Generic;
using System.Data;
using System.Data.Common;
using System.Linq;
using MySql.Data.Types;
using Swarmops.Basic.Types;
using Swarmops.Basic.Types.Financial;
using Swarmops.Basic.Types.Swarm;
@@ -148,7 +149,15 @@ namespace Swarmops.Database
int createdByPersonId = reader.GetInt32 (6);
int createdByPositionId = reader.GetInt32 (7);
bool active = reader.GetBoolean (8);
DateTime expiresDateTimeUtc = reader.GetDateTime (9);
DateTime expiresDateTimeUtc = new DateTime(9999, 12, 31);
try
{
expiresDateTimeUtc = reader.GetDateTime(9);
}
catch (MySqlConversionException)
{
// ignore exception if the MYSQL datetime is 0000-00-00
}
DateTime terminatedDateTimeUtc = reader.GetDateTime (10);
int terminatedByPersonId = reader.GetInt32 (11);
int terminatedByPositionId = reader.GetInt32 (12);
+3 -3
View File
@@ -1,4 +1,4 @@
<%@ Control Language="C#" AutoEventWireup="true" Inherits="Swarmops.Frontend.Controls.Swarm.TreePositions" Codebehind="TreePositions.ascx.cs" %>
<%@ Control Language="C#" AutoEventWireup="true" Inherits="Swarmops.Frontend.Controls.Swarm.TreePositions" CodeFile="TreePositions.ascx.cs" %>
<%@ Register TagPrefix="Swarmops5Workaround" TagName="ComboPeople" src="~/Controls/v5/Swarm/ComboPeople.ascx" %>
<%@ Register TagPrefix="Swarmops5" TagName="ModalDialog" src="~/Controls/v5/Base/ModalDialog.ascx" %>
@@ -194,8 +194,8 @@
<DialogCode>
<h2><asp:Label runat="server" ID="LabelModalHeader"/></h2>
<div class="entryFields">
<Swarmops5Workaround:ComboPeople ID="DropPerson" runat="server" />&#8203;<br/>
<asp:DropDownList ID="DropDuration" runat="server" />&#8203;<br/>
<Swarmops5Workaround:ComboPeople ID="DropPerson" runat="server" />
<Swarmops5:DropDown ID="DropDuration" runat="server" />
<input type="button" id="<%=this.ClientID %>_buttonAssign" class="buttonAccentColor" value="#Assign#" />
</div>
<div class="entryLabels">
+1 -1
View File
@@ -1,4 +1,4 @@
<%@ Page Title="" Language="C#" MasterPageFile="~/Master-v5.master" AutoEventWireup="true" Inherits="Swarmops.Frontend.Pages.v5.Swarm.LocalOrganization" Codebehind="LocalOrganization.aspx.cs" %>
<%@ Page Title="" Language="C#" MasterPageFile="~/Master-v5.master" AutoEventWireup="true" Inherits="Swarmops.Frontend.Pages.v5.Swarm.LocalOrganization" CodeFile="LocalOrganization.aspx.cs" %>
<%@ Register tagPrefix="Swarmops5" tagName="AjaxTextBox" src="~/Controls/v5/Base/AjaxTextBox.ascx" %>
<%@ Register tagPrefix="Swarmops5" tagName="TreePositions" src="~/Controls/v5/Swarm/TreePositions.ascx" %>