I have an aspx that uses a button to prompt a calendar to pop up. The onclick event of the button causes the display property of the calendar to be set to "block" from "none" in javascript and when the OnSelectionChanged of the calendar is activated a textbox
is loaded with the date in the code behind and the postback causes the display property on the calendar to be set back to "none". It sort of works but when the calendar pops up it appears to be "overlain" by the initial form...it is partially visible and
the date selection works but where the initial form has content it overlays the calendar. Can someone tell me what I'm doing wrong? Thanks in advance for any help.
It sort of works but when the calendar pops up it appears to be "overlain" by the initial form...
Hi,
Do you have any code when the form initialize ? If your issue is happened by the initial form, please share us some code which is related with calendar in your project. Thanks a lot.
Best Regards,
Please mark the replies as answers if they help or unmark if not.
Feedback to us
Sub calDate_SelectionChanged(ByVal sender As Object, ByVal e As EventArgs)
subenergizationdate.Text = calDate.SelectedDate.ToString("d")
End Sub
Codebehind on the load of the formview (nothing in this chunk of code manipulates properties)...
Protected Sub loadformview2(ByVal sender As Object, ByVal e As System.EventArgs) 'Handles FormView2.Load
'getting value of previous page
'Dim previous As String
'previous = ToString(Page.PreviousPage.)
If (Page.IsPostBack = False) Then
' to make import system.windows.forms work
Dim projectid As Label = FormView2.FindControl("projectid")
Dim projectname As Label = FormView2.FindControl("projectname")
Dim customerid As Label = FormView2.FindControl("customerid")
Dim customername As Label = FormView2.FindControl("customername")
Dim programid As Label = FormView2.FindControl("programid")
Dim projecttype As DropDownList = FindControl("projecttype")
Dim numberofsubconnections As TextBox = FindControl("numberofsubconnections")
Dim subenergizationdate As TextBox = FindControl("subenergizationdate")
Dim ifoperational As DropDownList = FindControl("ifoperational")
Dim department As DropDownList = FindControl("department")
'Dim projectid As WebControls.Label = FormView2.FindControl("projectid")
'Dim projectname As WebControls.Label = FormView2.FindControl("projectname")
'Dim customerid As WebControls.Label = FormView2.FindControl("customerid")
'Dim customername As WebControls.Label = FormView2.FindControl("customername")
'Dim programid As WebControls.Label = FormView2.FindControl("programid")
'Dim projecttype As WebControls.Label = FindControl("projecttype")
'Dim numberofsubconnections As WebControls.Label = FindControl("numberofsubconnections")
'Dim subenergizationdate As WebControls.Label = FindControl("subenergizationdate")
'Dim ifoperational As WebControls.Label = FindControl("ifoperational")
'Dim department As WebControls.Label = FindControl("department")
projecttype.Text = " "
Dim dv As System.Data.DataView = CType(SqlDataSource2.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim drv As System.Data.DataRowView = dv(0)
Dim progiddv As System.Data.DataView = CType(getprogramid.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim progiddrv As System.Data.DataRowView = progiddv(0)
Dim authorityleveldv As System.Data.DataView = CType(getuserauthoritylevel.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim authorityleveldrv As System.Data.DataRowView = authorityleveldv(0)
Dim materialcosthistoricaldv As System.Data.DataView = CType(getMaterialCosthistorical.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim materialcosthistoricaldrv As System.Data.DataRowView = materialcosthistoricaldv(0)
Dim materialcostcurrentdv As System.Data.DataView = CType(getMaterialCostcurrent.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim materialcostcurrentdrv As System.Data.DataRowView = materialcostcurrentdv(0)
Dim materialcostoverheaddv As System.Data.DataView = CType(getMaterialCostoverhead.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim materialcostoverheaddrv As System.Data.DataRowView = materialcostoverheaddv(0)
Dim personnelcosthistoricaldv As System.Data.DataView = CType(getpersonnelhistorical.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim personnelcosthistoricaldrv As System.Data.DataRowView = personnelcosthistoricaldv(0)
Dim personnelcostcurrentdv As System.Data.DataView = CType(getpersonnelcurrent.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim personnelcostcurrentdrv As System.Data.DataRowView = personnelcostcurrentdv(0)
Dim personnelcostextradv As System.Data.DataView = CType(getpersonnelextra.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim personnelcostextradrv As System.Data.DataRowView = personnelcostextradv(0)
Dim TFcosthistoricaldv As System.Data.DataView = CType(getTFhistorical.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim TFcosthistoricaldrv As System.Data.DataRowView = TFcosthistoricaldv(0)
Dim TFcostcurrentdv As System.Data.DataView = CType(getTFcurrent.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim TFcostcurrentdrv As System.Data.DataRowView = TFcostcurrentdv(0)
Dim expensescosthistoricaldv As System.Data.DataView = CType(getexpenseshistorical.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim expensescosthistoricaldrv As System.Data.DataRowView = expensescosthistoricaldv(0)
Dim expensescostcurrentdv As System.Data.DataView = CType(getexpensescurrent.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim expensescostcurrentdrv As System.Data.DataRowView = expensescostcurrentdv(0)
Dim expensescostextradv As System.Data.DataView = CType(getexpensesextra.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim expensescostextradrv As System.Data.DataRowView = expensescostextradv(0)
Dim externalcosthistoricaldv As System.Data.DataView = CType(getexternalhistorical.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim externalcosthistoricaldrv As System.Data.DataRowView = externalcosthistoricaldv(0)
Dim externalcostcurrentdv As System.Data.DataView = CType(getexternalcurrent.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim externalcostcurrentdrv As System.Data.DataRowView = externalcostcurrentdv(0)
Dim PSTcostdv As System.Data.DataView = CType(getpstactual.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim PSTcostdrv As System.Data.DataRowView = PSTcostdv(0)
Dim projectcostdv As System.Data.DataView = CType(getprojectactual.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim projectcostdrv As System.Data.DataRowView = projectcostdv(0)
Dim othercostdv As System.Data.DataView = CType(getotheractual.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim othercostdrv As System.Data.DataRowView = othercostdv(0)
Dim otadjcostdv As System.Data.DataView = CType(getotadjactual.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim otadjcostdrv As System.Data.DataRowView = otadjcostdv(0)
Dim fvnoidcostdv As System.Data.DataView = CType(getfvnoidactual.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim fvnoidcostdrv As System.Data.DataRowView = fvnoidcostdv(0)
Dim fvwithidcostdv As System.Data.DataView = CType(getfvwithidactual.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim fvwithidcostdrv As System.Data.DataRowView = fvwithidcostdv(0)
Dim baselinedv As System.Data.DataView = CType(getbaseline.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim baselinedrv As System.Data.DataRowView = baselinedv(0)
Dim depositdv As System.Data.DataView = CType(getdeposit.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim depositdrv As System.Data.DataRowView = depositdv(0)
'Dim countclosuredv As System.Data.DataView = CType(countlastclosure.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
'Dim countclosuredrv As System.Data.DataRowView = countclosuredv(0)
Dim closures As New Integer
Dim project As String
project = Session("selectedproject")
Dim conn As New SqlConnection(ConfigurationManager.ConnectionStrings("ProjectClosureConnectionString").ConnectionString)
Dim cmd As New SqlCommand("<a select statment>, conn)
Dim reader As SqlDataReader
Try
conn.Open()
reader = cmd.ExecuteReader()
reader.Read()
'If reader.HasRows = False Then
'If reader.HasRows Then
If reader("closures") > 0 Then
closures = 1
Else
closures = 0
End If
reader.Close()
conn.Close()
Catch
End Try
Dim lastclosuredv As System.Data.DataView = CType(getlastclosure.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim lastclosuredrv As System.Data.DataRowView = lastclosuredv(0)
' conflict with itextsharp import...uncomment single quote lines below to show
'Dim itm As New ListItem
'itm.Text = "No Closure Records"
''itm.Value = "-1"
''itm.Selected = True
'DropDownList1.Items.Insert(0, itm)
'DropDownList1.SelectedIndex = 0
ccdollars.Text = "0.00" 'need to get value - asked Dre and Brenda where it is in IFS
depositdollars.Text = depositdrv("depositdollars")
totaldeposit.Text = (Decimal.Parse(depositdollars.Text) + Decimal.Parse(ccdollars.Text)).ToString()
totalcustomerchargesnohst.Text = totalnohstcustomeractual.Text
totalhorizoncost.Text = totalhorizonactual.Text
Hi Chen Yu, When the form initializes the calendar is not visible - the user clicks on an image to the right of the textbox that will hold the calendar to make the calendar pop up. Or am I missing the intent of the question? Thanks, Roscoe
So, when you open this calendar from the image, did it have default value in the calendar ? I found the default value is 00:00:00.0000000, January 1, 0001. Is it related to your question?
This sounds like a CSS issue, not a .Net issue. Try tweaking the z-index (setting it to something like 900) when you set it to display = block to make it appear as the top-most element. You might also consider toggling a CSS class rather than individual
css style properties. ZIndex determines the stacking order of html elements, the higher the number, the closer to the top the stack the element will be, and the lower, the further to the back it will be.
You may also want to review the zIndex of your form elements that appear on top of your calendar to see if there are any zIndexes applied, as you will need to make your calendar's zIndex a higher number.
rpfinnimore
Member
185 Points
133 Posts
Popup calendar overlain by existing page content
Jan 17, 2013 04:34 PM|LINK
I have an aspx that uses a button to prompt a calendar to pop up. The onclick event of the button causes the display property of the calendar to be set to "block" from "none" in javascript and when the OnSelectionChanged of the calendar is activated a textbox is loaded with the date in the code behind and the postback causes the display property on the calendar to be set back to "none". It sort of works but when the calendar pops up it appears to be "overlain" by the initial form...it is partially visible and the date selection works but where the initial form has content it overlays the calendar. Can someone tell me what I'm doing wrong? Thanks in advance for any help.
The textbox and button look like...
<asp:TextBox ID="subenergizationdate" CssClass="ShowCell" runat="server" AutoPostBack="true"></asp:TextBox><img alt="linkimage.gif" src="linkimage.gif" onclick="popupCalendar()" /><br />
...the javascript looks like...
<script type="text/javascript">
function popupCalendar() {
var dateField = document.getElementById('dateField');
// toggle the div
if (dateField.style.display == 'none') {
dateField.style.display = 'block';
}
else {
dateField.style.display = 'none';
}
}
</script>
...and the code behind looks like...
Sub calDate_SelectionChanged(ByVal sender As Object, ByVal e As EventArgs)
subenergizationdate.Text = calDate.SelectedDate.ToString("d")
End Sub
dyyo
Participant
1076 Points
202 Posts
Re: Popup calendar overlain by existing page content
Jan 18, 2013 05:06 AM|LINK
You can try this, this is what i use:
The textbox, image, and calendar:
<td><asp:TextBox id="txtAdvertisedDate" Runat="server" ReadOnly="True" Width="150px" />
<img src="Company_Image/_calendar.gif" onclick="popupCalendarAdvertised()" /></td>
</tr>
<tr>
<td><div id="dateFieldAdvertised" style="display:none;">
<asp:Calendar id="calDateAdvertised"
OnSelectionChanged="calDateAdvertised_SelectionChanged"
Runat="server" BackColor="White" BorderColor="#999999" CellPadding="4" DayNameFormat="Shortest" Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" Height="180px" Width="200px" >
<SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
<SelectorStyle BackColor="#CCCCCC" />
<WeekendDayStyle BackColor="#FFFFCC" />
<TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
<OtherMonthDayStyle ForeColor="#808080" />
<NextPrevStyle VerticalAlign="Bottom" />
<DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" />
<TitleStyle BackColor="#999999" BorderColor="Black" Font-Bold="True" />
</asp:Calendar>
</div></td>
the javascript:
<script type="text/javascript">
function popupCalendarAdvertised()
{
var dateFieldAdvertised = document.getElementById('dateFieldAdvertised');
// toggle the div
if (dateFieldAdvertised.style.display == 'none')
dateFieldAdvertised.style.display = 'block';
else
dateFieldAdvertised.style.display = 'none';
}
</script>
The code behind:
protected void calDateAdvertised_SelectionChanged(object sender, EventArgs e)
{
txtAdvertisedDate.Text = calDateAdvertised.SelectedDate.ToString("dd MMM yyyy");
}
Dyyo - Microsoft Recommended ASP.NET Hosting
rpfinnimore
Member
185 Points
133 Posts
Re: Popup calendar overlain by existing page content
Jan 18, 2013 02:53 PM|LINK
Hi dyyo, Thanks for the reply but your solution is essentially identical to my own.
Chen Yu - MS...
All-Star
21598 Points
2493 Posts
Microsoft
Re: Popup calendar overlain by existing page content
Jan 23, 2013 08:44 AM|LINK
Hi,
Do you have any code when the form initialize ? If your issue is happened by the initial form, please share us some code which is related with calendar in your project. Thanks a lot.
Best Regards,
Feedback to us
Develop and promote your apps in Windows Store
rpfinnimore
Member
185 Points
133 Posts
Re: Popup calendar overlain by existing page content
Jan 24, 2013 03:07 PM|LINK
Hi Chen Yu thanks for the reply...code is as follows...
For the formview...
<div style="position: absolute; left:1px; top:25px; width:1660px; height:100px; background-color:#FAEEC9;">
<asp:FormView ID="FormView2" runat="server" DataSourceID="SqlDataSource2"
OnLoad="loadformview2">
For the calendar...
<div id="dateField" style="display:none; position: absolute; left:1000px; top:150px; visibility:visible;" >
<asp:Calendar id="calDate" Visible="true" BackColor="AliceBlue" ForeColor="Black"
OnSelectionChanged="calDate_SelectionChanged"
Runat="server" />
</div>
Codebehind on operation of the calendar...
Sub calDate_SelectionChanged(ByVal sender As Object, ByVal e As EventArgs)
subenergizationdate.Text = calDate.SelectedDate.ToString("d")
End Sub
Codebehind on the load of the formview (nothing in this chunk of code manipulates properties)...
Protected Sub loadformview2(ByVal sender As Object, ByVal e As System.EventArgs) 'Handles FormView2.Load
'getting value of previous page
'Dim previous As String
'previous = ToString(Page.PreviousPage.)
If (Page.IsPostBack = False) Then
' to make import system.windows.forms work
Dim projectid As Label = FormView2.FindControl("projectid")
Dim projectname As Label = FormView2.FindControl("projectname")
Dim customerid As Label = FormView2.FindControl("customerid")
Dim customername As Label = FormView2.FindControl("customername")
Dim programid As Label = FormView2.FindControl("programid")
Dim projecttype As DropDownList = FindControl("projecttype")
Dim numberofsubconnections As TextBox = FindControl("numberofsubconnections")
Dim subenergizationdate As TextBox = FindControl("subenergizationdate")
Dim ifoperational As DropDownList = FindControl("ifoperational")
Dim department As DropDownList = FindControl("department")
'Dim projectid As WebControls.Label = FormView2.FindControl("projectid")
'Dim projectname As WebControls.Label = FormView2.FindControl("projectname")
'Dim customerid As WebControls.Label = FormView2.FindControl("customerid")
'Dim customername As WebControls.Label = FormView2.FindControl("customername")
'Dim programid As WebControls.Label = FormView2.FindControl("programid")
'Dim projecttype As WebControls.Label = FindControl("projecttype")
'Dim numberofsubconnections As WebControls.Label = FindControl("numberofsubconnections")
'Dim subenergizationdate As WebControls.Label = FindControl("subenergizationdate")
'Dim ifoperational As WebControls.Label = FindControl("ifoperational")
'Dim department As WebControls.Label = FindControl("department")
projecttype.Text = " "
Dim dv As System.Data.DataView = CType(SqlDataSource2.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim drv As System.Data.DataRowView = dv(0)
Dim progiddv As System.Data.DataView = CType(getprogramid.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim progiddrv As System.Data.DataRowView = progiddv(0)
Dim authorityleveldv As System.Data.DataView = CType(getuserauthoritylevel.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim authorityleveldrv As System.Data.DataRowView = authorityleveldv(0)
Dim materialcosthistoricaldv As System.Data.DataView = CType(getMaterialCosthistorical.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim materialcosthistoricaldrv As System.Data.DataRowView = materialcosthistoricaldv(0)
Dim materialcostcurrentdv As System.Data.DataView = CType(getMaterialCostcurrent.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim materialcostcurrentdrv As System.Data.DataRowView = materialcostcurrentdv(0)
Dim materialcostoverheaddv As System.Data.DataView = CType(getMaterialCostoverhead.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim materialcostoverheaddrv As System.Data.DataRowView = materialcostoverheaddv(0)
Dim personnelcosthistoricaldv As System.Data.DataView = CType(getpersonnelhistorical.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim personnelcosthistoricaldrv As System.Data.DataRowView = personnelcosthistoricaldv(0)
Dim personnelcostcurrentdv As System.Data.DataView = CType(getpersonnelcurrent.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim personnelcostcurrentdrv As System.Data.DataRowView = personnelcostcurrentdv(0)
Dim personnelcostextradv As System.Data.DataView = CType(getpersonnelextra.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim personnelcostextradrv As System.Data.DataRowView = personnelcostextradv(0)
Dim TFcosthistoricaldv As System.Data.DataView = CType(getTFhistorical.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim TFcosthistoricaldrv As System.Data.DataRowView = TFcosthistoricaldv(0)
Dim TFcostcurrentdv As System.Data.DataView = CType(getTFcurrent.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim TFcostcurrentdrv As System.Data.DataRowView = TFcostcurrentdv(0)
Dim expensescosthistoricaldv As System.Data.DataView = CType(getexpenseshistorical.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim expensescosthistoricaldrv As System.Data.DataRowView = expensescosthistoricaldv(0)
Dim expensescostcurrentdv As System.Data.DataView = CType(getexpensescurrent.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim expensescostcurrentdrv As System.Data.DataRowView = expensescostcurrentdv(0)
Dim expensescostextradv As System.Data.DataView = CType(getexpensesextra.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim expensescostextradrv As System.Data.DataRowView = expensescostextradv(0)
Dim externalcosthistoricaldv As System.Data.DataView = CType(getexternalhistorical.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim externalcosthistoricaldrv As System.Data.DataRowView = externalcosthistoricaldv(0)
Dim externalcostcurrentdv As System.Data.DataView = CType(getexternalcurrent.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim externalcostcurrentdrv As System.Data.DataRowView = externalcostcurrentdv(0)
Dim PSTcostdv As System.Data.DataView = CType(getpstactual.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim PSTcostdrv As System.Data.DataRowView = PSTcostdv(0)
Dim projectcostdv As System.Data.DataView = CType(getprojectactual.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim projectcostdrv As System.Data.DataRowView = projectcostdv(0)
Dim othercostdv As System.Data.DataView = CType(getotheractual.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim othercostdrv As System.Data.DataRowView = othercostdv(0)
Dim otadjcostdv As System.Data.DataView = CType(getotadjactual.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim otadjcostdrv As System.Data.DataRowView = otadjcostdv(0)
Dim fvnoidcostdv As System.Data.DataView = CType(getfvnoidactual.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim fvnoidcostdrv As System.Data.DataRowView = fvnoidcostdv(0)
Dim fvwithidcostdv As System.Data.DataView = CType(getfvwithidactual.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim fvwithidcostdrv As System.Data.DataRowView = fvwithidcostdv(0)
Dim baselinedv As System.Data.DataView = CType(getbaseline.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim baselinedrv As System.Data.DataRowView = baselinedv(0)
Dim depositdv As System.Data.DataView = CType(getdeposit.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim depositdrv As System.Data.DataRowView = depositdv(0)
'Dim countclosuredv As System.Data.DataView = CType(countlastclosure.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
'Dim countclosuredrv As System.Data.DataRowView = countclosuredv(0)
Dim closures As New Integer
Dim project As String
project = Session("selectedproject")
Dim conn As New SqlConnection(ConfigurationManager.ConnectionStrings("ProjectClosureConnectionString").ConnectionString)
Dim cmd As New SqlCommand("<a select statment>, conn)
Dim reader As SqlDataReader
Try
conn.Open()
reader = cmd.ExecuteReader()
reader.Read()
'If reader.HasRows = False Then
'If reader.HasRows Then
If reader("closures") > 0 Then
closures = 1
Else
closures = 0
End If
reader.Close()
conn.Close()
Catch
End Try
'closures = 0
'closures = countclosuredrv("numberclosures")
projectid.Text = Session("selectedproject")
projectname.Text = Session("selectedprojectname")
customerid.Text = Session("selectedprojectcustomerid")
customername.Text = drv("customername").ToString
programid.Text = progiddrv("programid").ToString
signedonuserauthority.Text = authorityleveldrv("approvallevel").ToString
Session("userauthority") = signedonuserauthority.Text
'materialcost.Text = materialcostcurrentdrv("materialplannedcurrent") + materialcostcurrentdrv("materialactualcurrent")
If (closures > 0) Then
Dim lastclosuredv As System.Data.DataView = CType(getlastclosure.Select(DataSourceSelectArguments.Empty), System.Data.DataView)
Dim lastclosuredrv As System.Data.DataRowView = lastclosuredv(0)
Literal1.Text = "xExtending closure document submitted " + lastclosuredrv("saveddatetime") + " by..." + lastclosuredrv("saveduserid")
materialcustomerpercent.Text = lastclosuredrv("materialcustomerpercent")
materialcustomerestimate.Text = lastclosuredrv("materialce")
materialhorizonestimate.Text = lastclosuredrv("materialhe")
materialtotalestimate.Text = lastclosuredrv("materialte")
materialcustomeractual.Text = lastclosuredrv("materialca")
materialhorizonactual.Text = lastclosuredrv("materialha")
materialtotalactual.Text = lastclosuredrv("materialta")
personnelcustomerpercent.Text = lastclosuredrv("personnelcustomerpercent")
personnelcustomerestimate.Text = lastclosuredrv("personnelce")
personnelhorizonestimate.Text = lastclosuredrv("personnelhe")
personneltotalestimate.Text = lastclosuredrv("personnelte")
personnelcustomeractual.Text = lastclosuredrv("personnelca")
personnelhorizonactual.Text = lastclosuredrv("personnelha")
personneltotalactual.Text = lastclosuredrv("personnelta")
TFcustomerpercent.Text = lastclosuredrv("tfcustomerpercent")
TFcustomerestimate.Text = lastclosuredrv("tfce")
TFhorizonestimate.Text = lastclosuredrv("tfhe")
TFtotalestimate.Text = lastclosuredrv("tfte")
TFcustomeractual.Text = lastclosuredrv("tfca")
TFhorizonactual.Text = lastclosuredrv("tfha")
TFtotalactual.Text = lastclosuredrv("tfta")
expensescustomerpercent.Text = lastclosuredrv("expensescustomerpercent")
expensescustomerestimate.Text = lastclosuredrv("expensesce")
expenseshorizonestimate.Text = lastclosuredrv("expenseshe")
expensestotalestimate.Text = lastclosuredrv("expenseste")
expensescustomeractual.Text = lastclosuredrv("expensesca")
expenseshorizonactual.Text = lastclosuredrv("expensesha")
expensestotalactual.Text = lastclosuredrv("expensesta")
externalcustomerpercent.Text = lastclosuredrv("externalcustomerpercent")
externalcustomerestimate.Text = lastclosuredrv("externalce")
externalhorizonestimate.Text = lastclosuredrv("externalhe")
externaltotalestimate.Text = lastclosuredrv("externalte")
externalcustomeractual.Text = lastclosuredrv("externalca")
externalhorizonactual.Text = lastclosuredrv("externalha")
externaltotalactual.Text = lastclosuredrv("externalta")
PSTcustomerpercent.Text = lastclosuredrv("pstcustomerpercent")
PSTcustomerestimate.Text = lastclosuredrv("pstce")
PSThorizonestimate.Text = lastclosuredrv("psthe")
PSTtotalestimate.Text = lastclosuredrv("pstte")
PSTcustomeractual.Text = lastclosuredrv("pstca")
PSThorizonactual.Text = lastclosuredrv("pstha")
PSTtotalactual.Text = lastclosuredrv("pstta")
projectcustomerpercent.Text = lastclosuredrv("projectcustomerpercent")
projectcustomerestimate.Text = lastclosuredrv("projectce")
projecthorizonestimate.Text = lastclosuredrv("projecthe")
projecttotalestimate.Text = lastclosuredrv("projectte")
projectcustomeractual.Text = lastclosuredrv("projectca")
projecthorizonactual.Text = lastclosuredrv("projectha")
projecttotalactual.Text = lastclosuredrv("projectta")
othercustomerpercent.Text = lastclosuredrv("othercustomerpercent")
othercustomerestimate.Text = lastclosuredrv("otherce")
otherhorizonestimate.Text = lastclosuredrv("otherhe")
othertotalestimate.Text = lastclosuredrv("otherte")
othercustomeractual.Text = lastclosuredrv("otherca")
otherhorizonactual.Text = lastclosuredrv("otherha")
othertotalactual.Text = lastclosuredrv("otherta")
otadjcustomerpercent.Text = lastclosuredrv("otadjcustomerpercent")
otadjcustomerestimate.Text = lastclosuredrv("otadjce")
otadjhorizonestimate.Text = lastclosuredrv("otadjhe")
otadjtotalestimate.Text = lastclosuredrv("otadjte")
otadjcustomeractual.Text = lastclosuredrv("otadjca")
otadjhorizonactual.Text = lastclosuredrv("otadjha")
otadjtotalactual.Text = lastclosuredrv("otadjta")
fvnoidcustomerpercent.Text = lastclosuredrv("fvnoidcustomerpercent")
fvnoidcustomerestimate.Text = lastclosuredrv("fvnoidce")
fvnoidhorizonestimate.Text = lastclosuredrv("fvnoidhe")
fvnoidtotalestimate.Text = lastclosuredrv("fvnoidte")
fvnoidcustomeractual.Text = lastclosuredrv("fvnoidca")
fvnoidhorizonactual.Text = lastclosuredrv("fvnoidha")
fvnoidtotalactual.Text = lastclosuredrv("fvnoidta")
fvwithidcustomerpercent.Text = lastclosuredrv("fvwithidcustomerpercent")
fvwithidcustomerestimate.Text = lastclosuredrv("fvwithidce")
fvwithidhorizonestimate.Text = lastclosuredrv("fvwithidhe")
fvwithidtotalestimate.Text = lastclosuredrv("fvwithidte")
fvwithidcustomeractual.Text = lastclosuredrv("fvwithidca")
fvwithidhorizonactual.Text = lastclosuredrv("fvwithidha")
fvwithidtotalactual.Text = lastclosuredrv("fvwithidta")
STcustomerestimate.Text = lastclosuredrv("stce")
SThorizonestimate.Text = lastclosuredrv("sthe")
STtotalestimate.Text = lastclosuredrv("stte")
STcustomeractual.Text = lastclosuredrv("stca")
SThorizonactual.Text = lastclosuredrv("stha")
STtotalactual.Text = lastclosuredrv("stta")
addmetercustomerestimate.Text = lastclosuredrv("addmeterce")
addmeterhorizonestimate.Text = lastclosuredrv("addmeterhe")
addmetertotalestimate.Text = lastclosuredrv("addmeterte")
addmetercustomeractual.Text = lastclosuredrv("addmeterca")
addmeterhorizonactual.Text = lastclosuredrv("addmeterha")
addmetertotalactual.Text = lastclosuredrv("addmeterta")
permitcostscustomerestimate.Text = lastclosuredrv("permitcostsce")
permitcostshorizonestimate.Text = lastclosuredrv("permitcostshe")
permitcoststotalestimate.Text = lastclosuredrv("permitcostste")
permitcostscustomeractual.Text = lastclosuredrv("permitcostsca")
permitcostshorizonactual.Text = lastclosuredrv("permitcostsha")
permitcoststotalactual.Text = lastclosuredrv("permitcoststa")
restorationcustomerestimate.Text = lastclosuredrv("restorationce")
restorationhorizonestimate.Text = lastclosuredrv("restorationhe")
restorationtotalestimate.Text = lastclosuredrv("restorationte")
restorationcustomeractual.Text = lastclosuredrv("restorationca")
restorationhorizonactual.Text = lastclosuredrv("restorationha")
restorationtotalactual.Text = lastclosuredrv("restorationta")
closurecustomerestimate.Text = lastclosuredrv("closurece")
closurehorizonestimate.Text = lastclosuredrv("closurehe")
closuretotalestimate.Text = lastclosuredrv("closurete")
closurecustomeractual.Text = lastclosuredrv("closureca")
closurehorizonactual.Text = lastclosuredrv("closureha")
closuretotalactual.Text = lastclosuredrv("closureta")
contingencycustomerestimate.Text = lastclosuredrv("contingencyce")
contingencyhorizonestimate.Text = lastclosuredrv("contingencyhe")
contingencytotalestimate.Text = lastclosuredrv("contingencyte")
contingencycustomeractual.Text = lastclosuredrv("contingencyca")
contingencyhorizonactual.Text = lastclosuredrv("contingencyha")
contingencytotalactual.Text = lastclosuredrv("contingencyta")
totalnohstcustomerestimate.Text = lastclosuredrv("totalnohstce")
totalnohsthorizonestimate.Text = lastclosuredrv("totalnohsthe")
totalnohsttotalestimate.Text = lastclosuredrv("totalnohstte")
totalnohstcustomeractual.Text = lastclosuredrv("totalnohstca")
totalnohsthorizonactual.Text = lastclosuredrv("totalnohstha")
totalnohsttotalactual.Text = lastclosuredrv("totalnohstta")
hstcustomerestimate.Text = lastclosuredrv("hstce")
hsthorizonestimate.Text = lastclosuredrv("hsthe")
hsttotalestimate.Text = lastclosuredrv("hstte")
hstcustomeractual.Text = lastclosuredrv("hstca")
hsthorizonactual.Text = lastclosuredrv("hstha")
hsttotalactual.Text = lastclosuredrv("hstta")
totalcustomerestimate.Text = lastclosuredrv("totalce")
totalhorizonestimate.Text = lastclosuredrv("totalhe")
totaltotalestimate.Text = lastclosuredrv("totalte")
totalcustomeractual.Text = lastclosuredrv("totalca")
totalhorizonactual.Text = lastclosuredrv("totalha")
totaltotalactual.Text = lastclosuredrv("totalta")
contestableestimate.Text = lastclosuredrv("contestableestimate")
contestableactual.Text = lastclosuredrv("contestableactual")
'materialhorizonestimate.Text = materialcosthistoricaldrv("materialplannedhistorical") + materialcostcurrentdrv("materialplannedcurrent") + materialcostoverheaddrv("materialplannedoverhead")
materialtotalestimate.Text = materialcosthistoricaldrv("materialplannedhistorical") + materialcostcurrentdrv("materialplannedcurrent") + materialcostoverheaddrv("materialplannedoverhead")
'materialhorizonactual.Text = materialcosthistoricaldrv("materialactualhistorical") + materialcostcurrentdrv("materialactualcurrent") + materialcostoverheaddrv("materialactualoverhead")
materialtotalactual.Text = materialcosthistoricaldrv("materialactualhistorical") + materialcostcurrentdrv("materialactualcurrent") + materialcostoverheaddrv("materialactualoverhead")
'personnelhorizonestimate.Text = personnelcosthistoricaldrv("personnelplannedhistorical") + personnelcostcurrentdrv("personnelplannedcurrent")
personneltotalestimate.Text = personnelcosthistoricaldrv("personnelplannedhistorical") + personnelcostcurrentdrv("personnelplannedcurrent")
'personnelhorizonactual.Text = personnelcosthistoricaldrv("personnelactualhistorical") + personnelcostcurrentdrv("personnelactualcurrent") + personnelcostextradrv("personnelextra")
personneltotalactual.Text = personnelcosthistoricaldrv("personnelactualhistorical") + personnelcostcurrentdrv("personnelactualcurrent") + personnelcostextradrv("personnelextra")
'TFhorizonestimate.Text = TFcosthistoricaldrv("TFplannedhistorical") + TFcostcurrentdrv("TFplannedcurrent")
TFtotalestimate.Text = TFcosthistoricaldrv("TFplannedhistorical") + TFcostcurrentdrv("TFplannedcurrent")
'TFhorizonactual.Text = TFcosthistoricaldrv("TFactualhistorical") + TFcostcurrentdrv("TFactualcurrent")
TFtotalactual.Text = TFcosthistoricaldrv("TFactualhistorical") + TFcostcurrentdrv("TFactualcurrent")
'expenseshorizonestimate.Text = expensescosthistoricaldrv("expensesplannedhistorical") + expensescostcurrentdrv("expensesplannedcurrent")
expensestotalestimate.Text = expensescosthistoricaldrv("expensesplannedhistorical") + expensescostcurrentdrv("expensesplannedcurrent")
'expenseshorizonactual.Text = expensescosthistoricaldrv("expensesactualhistorical") + expensescostcurrentdrv("expensesactualcurrent") + expensescostextradrv("expensesextra")
expensestotalactual.Text = expensescosthistoricaldrv("expensesactualhistorical") + expensescostcurrentdrv("expensesactualcurrent") + expensescostextradrv("expensesextra")
'externalhorizonestimate.Text = externalcosthistoricaldrv("externalplannedhistorical") + externalcostcurrentdrv("externalplannedcurrent")
externaltotalestimate.Text = externalcosthistoricaldrv("externalplannedhistorical") + externalcostcurrentdrv("externalplannedcurrent")
'externalhorizonactual.Text = externalcosthistoricaldrv("externalactualhistorical") + externalcostcurrentdrv("externalactualcurrent")
externaltotalactual.Text = externalcosthistoricaldrv("externalactualhistorical") + externalcostcurrentdrv("externalactualcurrent")
'PSThorizonestimate.Text = 0.0
PSTtotalestimate.Text = 0.0
'PSThorizonactual.Text = PSTcostdrv("pstactual")
PSTtotalactual.Text = PSTcostdrv("pstactual")
'projecthorizonestimate.Text = 0.0
projecttotalestimate.Text = 0.0
'projecthorizonactual.Text = projectcostdrv("projectactual")
projecttotalactual.Text = projectcostdrv("projectactual")
'otherhorizonestimate.Text = 0.0
othertotalestimate.Text = 0.0
'otherhorizonactual.Text = othercostdrv("otheractual")
othertotalactual.Text = othercostdrv("otheractual")
'otadjhorizonestimate.Text = 0.0
otadjtotalestimate.Text = 0.0
'otadjhorizonactual.Text = otadjcostdrv("otadjactual")
otadjtotalactual.Text = otadjcostdrv("otadjactual")
'fvnoidhorizonestimate.Text = 0.0
fvnoidtotalestimate.Text = 0.0
'fvnoidhorizonactual.Text = fvnoidcostdrv("fvnoidactual")
fvnoidtotalactual.Text = fvnoidcostdrv("fvnoidactual")
'fvwithidhorizonestimate.Text = 0.0
fvwithidtotalestimate.Text = 0.0
'fvwithidhorizonactual.Text = fvwithidcostdrv("fvwithidactual")
fvwithidtotalactual.Text = fvwithidcostdrv("fvwithidactual")
'new fields here
ccdollars.Text = [String].Format("{0:0.00}", lastclosuredrv("ccdollars"))
closuretitle.Text = lastclosuredrv("closuretitle")
invoicerefunddescription.Text = lastclosuredrv("invoicerefunddescription")
projectnotes.Text = lastclosuredrv("projectnotes")
variancenotes.Text = lastclosuredrv("variancenotes")
depositdollars.Text = [String].Format("{0:0.00}", lastclosuredrv("depositdollars"))
depositformofpayment.Text = lastclosuredrv("depositformofpayment")
totaldeposit.Text = [String].Format("{0:0.00}", lastclosuredrv("totaldeposit"))
totalcustomerchargesnohst.Text = [String].Format("{0:0.00}", lastclosuredrv("totalcustomerchargesnohst"))
totalhorizoncost.Text = [String].Format("{0:0.00}", lastclosuredrv("totalhorizoncost"))
engtechname.Text = lastclosuredrv("engtechname")
If (lastclosuredrv("engtechdate") IsNot DBNull.Value) Then
engtechdate.Text = lastclosuredrv("engtechdate")
End If
managername.Text = lastclosuredrv("managername")
If (lastclosuredrv("managerdate") IsNot DBNull.Value) Then
managerdate.Text = lastclosuredrv("managerdate")
End If
financename.Text = lastclosuredrv("financename")
If (lastclosuredrv("financedate") IsNot DBNull.Value) Then
financedate.Text = lastclosuredrv("financedate")
End If
VAactual.Text = [String].Format("{0:0.00}", lastclosuredrv("VAactual"))
VAoriginalestimate.Text = [String].Format("{0:0.00}", lastclosuredrv("VAoriginalestimate"))
VAvarianceoriginalvsactual.Text = [String].Format("{0:0.00}", lastclosuredrv("VAvarianceoriginalvsactual"))
VAbaseline.Text = [String].Format("{0:0.00}", lastclosuredrv("VAbaseline"))
VAbaselinevsactual.Text = [String].Format("{0:0.00}", lastclosuredrv("VAbaselinevsactual"))
vaPOTreason1.Text = lastclosuredrv("vaPOTreason1")
vaPOTamount1.Text = [String].Format("{0:0.00}", lastclosuredrv("vaPOTamount1"))
vaPOTcomment1.Text = lastclosuredrv("vaPOTcomment1")
vaPOTreason2.Text = lastclosuredrv("vaPOTreason2")
vaPOTamount2.Text = lastclosuredrv("vaPOTamount2")
vaPOTcomment2.Text = lastclosuredrv("vaPOTcomment2")
vaPOTreason3.Text = lastclosuredrv("vaPOTreason3")
vaPOTamount3.Text = [String].Format("{0:0.00}", lastclosuredrv("vaPOTamount3"))
vaPOTcomment3.Text = lastclosuredrv("vaPOTcomment3")
vaPOTreason4.Text = lastclosuredrv("vaPOTreason4")
vaPOTamount4.Text = [String].Format("{0:0.00}", lastclosuredrv("vaPOTamount4"))
vaPOTcomment4.Text = lastclosuredrv("vaPOTcomment4")
vaPOTtotal.Text = [String].Format("{0:0.00}", lastclosuredrv("vaPOTtotal"))
vaPOTestimate.Text = [String].Format("{0:0.00}", lastclosuredrv("vaPOTestimate"))
vaPOTactual.Text = [String].Format("{0:0.00}", lastclosuredrv("vaPOTactual"))
vaPOTvariance.Text = [String].Format("{0:0.00}", lastclosuredrv("vaPOTvariance"))
vaPOTvariancepercent.Text = [String].Format("{0:0.00}", lastclosuredrv("vaPOTvariancepercent"))
vaMATreason1.Text = lastclosuredrv("vaMATreason1")
vaMATamount1.Text = [String].Format("{0:0.00}", lastclosuredrv("vaMATamount1"))
vaMATcomment1.Text = lastclosuredrv("vaMATcomment1")
vaMATreason2.Text = lastclosuredrv("vaMATreason2")
vaMATamount2.Text = [String].Format("{0:0.00}", lastclosuredrv("vaMATamount2"))
vaMATcomment2.Text = lastclosuredrv("vaMATcomment2")
vaMATreason3.Text = lastclosuredrv("vaMATreason3")
vaMATamount3.Text = [String].Format("{0:0.00}", lastclosuredrv("vaMATamount3"))
vaMATcomment3.Text = lastclosuredrv("vaMATcomment3")
vaMATreason4.Text = lastclosuredrv("vaMATreason4")
vaMATamount4.Text = [String].Format("{0:0.00}", lastclosuredrv("vaMATamount4"))
vaMATcomment4.Text = lastclosuredrv("vaMATcomment4")
vaMATtotal.Text = [String].Format("{0:0.00}", lastclosuredrv("vaMATtotal"))
vaMATestimate.Text = [String].Format("{0:0.00}", lastclosuredrv("vaMATestimate"))
vaMATactual.Text = [String].Format("{0:0.00}", lastclosuredrv("vaMATactual"))
vaMATvariance.Text = [String].Format("{0:0.00}", lastclosuredrv("vaMATvariance"))
vaMATvariancepercent.Text = [String].Format("{0:0.00}", lastclosuredrv("vaMATvariancepercent"))
vaTFreason1.Text = lastclosuredrv("vaTFreason1")
vaTFamount1.Text = [String].Format("{0:0.00}", lastclosuredrv("vaTFamount1"))
vaTFcomment1.Text = lastclosuredrv("vaTFcomment1")
vaTFreason2.Text = lastclosuredrv("vaTFreason2")
vaTFamount2.Text = lastclosuredrv("vaTFamount2")
vaTFcomment2.Text = lastclosuredrv("vaTFcomment2")
vaTFreason3.Text = lastclosuredrv("vaTFreason3")
vaTFamount3.Text = [String].Format("{0:0.00}", lastclosuredrv("vaTFamount3"))
vaTFcomment3.Text = lastclosuredrv("vaTFcomment3")
vaTFreason4.Text = lastclosuredrv("vaTFreason4")
vaTFamount4.Text = [String].Format("{0:0.00}", lastclosuredrv("vaTFamount4"))
vaTFcomment4.Text = lastclosuredrv("vaTFcomment4")
vaTFtotal.Text = [String].Format("{0:0.00}", lastclosuredrv("vaTFtotal"))
vaTFestimate.Text = [String].Format("{0:0.00}", lastclosuredrv("vaTFestimate"))
vaTFactual.Text = [String].Format("{0:0.00}", lastclosuredrv("vaTFactual"))
vaTFvariance.Text = [String].Format("{0:0.00}", lastclosuredrv("vaTFvariance"))
vaTFvariancepercent.Text = [String].Format("{0:0.00}", lastclosuredrv("vaTFvariancepercent"))
vaEEreason1.Text = lastclosuredrv("vaEEreason1")
vaEEamount1.Text = [String].Format("{0:0.00}", lastclosuredrv("vaEEamount1"))
vaEEcomment1.Text = lastclosuredrv("vaEEcomment1")
vaEEreason2.Text = lastclosuredrv("vaEEreason2")
vaEEamount2.Text = [String].Format("{0:0.00}", lastclosuredrv("vaEEamount2"))
vaEEcomment2.Text = lastclosuredrv("vaEEcomment2")
vaEEreason3.Text = lastclosuredrv("vaEEreason3")
vaEEamount3.Text = [String].Format("{0:0.00}", lastclosuredrv("vaEEamount3"))
vaEEcomment3.Text = lastclosuredrv("vaEEcomment3")
vaEEreason4.Text = lastclosuredrv("vaEEreason4")
vaEEamount4.Text = [String].Format("{0:0.00}", lastclosuredrv("vaEEamount4"))
vaEEcomment4.Text = lastclosuredrv("vaEEcomment4")
vaEEtotal.Text = [String].Format("{0:0.00}", lastclosuredrv("vaEEtotal"))
vaEEestimate.Text = [String].Format("{0:0.00}", lastclosuredrv("vaEEestimate"))
vaEEactual.Text = [String].Format("{0:0.00}", lastclosuredrv("vaEEactual"))
vaEEvariance.Text = [String].Format("{0:0.00}", lastclosuredrv("vaEEvariance"))
vaEEvariancepercent.Text = [String].Format("{0:0.00}", lastclosuredrv("vaEEvariancepercent"))
projecttype.Text = lastclosuredrv("projecttype")
numberofsubconnections.Text = lastclosuredrv("numberofsubconnections")
subenergizationdate.Text = lastclosuredrv("subenergizationdate")
ifoperational.Text = lastclosuredrv("ifoperational")
department.Text = lastclosuredrv("department")
checkworkorders()
checkpurchaseorders()
signedonuser.Text = Session("sessionuser")
recalccolumntotals()
loadclosuredates()
'not postback, closures > 0
showhideapprovals()
Else
'not postback, closures = 0
sendtosupervisorbutton.Visible = True
engtechname.Visible = True
engtechdate.Visible = True
sendtofinancebutton.Visible = False
managername.Visible = False
managerdate.Visible = False
returntotechbutton.Visible = False
closeforinvoicingbutton.Visible = False
financename.Visible = False
financedate.Visible = False
returntosupervisorbutton.Visible = False
Literal1.Text = "No Previous Closure History"
' conflict with itextsharp import...uncomment single quote lines below to show
'Dim itm As New ListItem
'itm.Text = "No Closure Records"
''itm.Value = "-1"
''itm.Selected = True
'DropDownList1.Items.Insert(0, itm)
'DropDownList1.SelectedIndex = 0
materialcustomerpercent.Text = 0.0
personnelcustomerpercent.Text = 0.0
TFcustomerpercent.Text = 0.0
expensescustomerpercent.Text = 0.0
externalcustomerpercent.Text = 0.0
PSTcustomerpercent.Text = 0.0
projectcustomerpercent.Text = 0.0
othercustomerpercent.Text = 0.0
otadjcustomerpercent.Text = 0.0
fvnoidcustomerpercent.Text = 0.0
fvwithidcustomerpercent.Text = 0.0
materialcustomerestimate.Text = 0.0
materialcustomeractual.Text = 0.0
personnelcustomerestimate.Text = 0.0
personnelcustomeractual.Text = 0.0
TFcustomerestimate.Text = 0.0
TFcustomeractual.Text = 0.0
expensescustomerestimate.Text = 0.0
expensescustomeractual.Text = 0.0
externalcustomerestimate.Text = 0.0
externalcustomeractual.Text = 0.0
PSTcustomerestimate.Text = 0.0
PSTcustomeractual.Text = 0.0
projectcustomerestimate.Text = 0.0
projectcustomeractual.Text = 0.0
othercustomerestimate.Text = 0.0
othercustomeractual.Text = 0.0
otadjcustomerestimate.Text = 0.0
otadjcustomeractual.Text = 0.0
fvnoidcustomerestimate.Text = 0.0
fvnoidcustomeractual.Text = 0.0
fvwithidcustomerestimate.Text = 0.0
fvwithidcustomeractual.Text = 0.0
materialhorizonestimate.Text = materialcosthistoricaldrv("materialplannedhistorical") + materialcostcurrentdrv("materialplannedcurrent") + materialcostoverheaddrv("materialplannedoverhead")
materialtotalestimate.Text = materialcosthistoricaldrv("materialplannedhistorical") + materialcostcurrentdrv("materialplannedcurrent") + materialcostoverheaddrv("materialplannedoverhead")
materialhorizonactual.Text = materialcosthistoricaldrv("materialactualhistorical") + materialcostcurrentdrv("materialactualcurrent") + materialcostoverheaddrv("materialactualoverhead")
materialtotalactual.Text = materialcosthistoricaldrv("materialactualhistorical") + materialcostcurrentdrv("materialactualcurrent") + materialcostoverheaddrv("materialactualoverhead")
personnelhorizonestimate.Text = personnelcosthistoricaldrv("personnelplannedhistorical") + personnelcostcurrentdrv("personnelplannedcurrent")
personneltotalestimate.Text = personnelcosthistoricaldrv("personnelplannedhistorical") + personnelcostcurrentdrv("personnelplannedcurrent")
personnelhorizonactual.Text = personnelcosthistoricaldrv("personnelactualhistorical") + personnelcostcurrentdrv("personnelactualcurrent") + personnelcostextradrv("personnelextra")
personneltotalactual.Text = personnelcosthistoricaldrv("personnelactualhistorical") + personnelcostcurrentdrv("personnelactualcurrent") + personnelcostextradrv("personnelextra")
TFhorizonestimate.Text = TFcosthistoricaldrv("TFplannedhistorical") + TFcostcurrentdrv("TFplannedcurrent")
TFtotalestimate.Text = TFcosthistoricaldrv("TFplannedhistorical") + TFcostcurrentdrv("TFplannedcurrent")
TFhorizonactual.Text = TFcosthistoricaldrv("TFactualhistorical") + TFcostcurrentdrv("TFactualcurrent")
TFtotalactual.Text = TFcosthistoricaldrv("TFactualhistorical") + TFcostcurrentdrv("TFactualcurrent")
expenseshorizonestimate.Text = expensescosthistoricaldrv("expensesplannedhistorical") + expensescostcurrentdrv("expensesplannedcurrent")
expensestotalestimate.Text = expensescosthistoricaldrv("expensesplannedhistorical") + expensescostcurrentdrv("expensesplannedcurrent")
expenseshorizonactual.Text = expensescosthistoricaldrv("expensesactualhistorical") + expensescostcurrentdrv("expensesactualcurrent") + expensescostextradrv("expensesextra")
expensestotalactual.Text = expensescosthistoricaldrv("expensesactualhistorical") + expensescostcurrentdrv("expensesactualcurrent") + expensescostextradrv("expensesextra")
externalhorizonestimate.Text = externalcosthistoricaldrv("externalplannedhistorical") + externalcostcurrentdrv("externalplannedcurrent")
externaltotalestimate.Text = externalcosthistoricaldrv("externalplannedhistorical") + externalcostcurrentdrv("externalplannedcurrent")
externalhorizonactual.Text = externalcosthistoricaldrv("externalactualhistorical") + externalcostcurrentdrv("externalactualcurrent")
externaltotalactual.Text = externalcosthistoricaldrv("externalactualhistorical") + externalcostcurrentdrv("externalactualcurrent")
PSThorizonestimate.Text = 0.0
PSTtotalestimate.Text = 0.0
PSThorizonactual.Text = PSTcostdrv("pstactual")
PSTtotalactual.Text = PSTcostdrv("pstactual")
projecthorizonestimate.Text = 0.0
projecttotalestimate.Text = 0.0
projecthorizonactual.Text = projectcostdrv("projectactual")
projecttotalactual.Text = projectcostdrv("projectactual")
otherhorizonestimate.Text = 0.0
othertotalestimate.Text = 0.0
otherhorizonactual.Text = othercostdrv("otheractual")
othertotalactual.Text = othercostdrv("otheractual")
otadjhorizonestimate.Text = 0.0
otadjtotalestimate.Text = 0.0
otadjhorizonactual.Text = otadjcostdrv("otadjactual")
otadjtotalactual.Text = otadjcostdrv("otadjactual")
fvnoidhorizonestimate.Text = 0.0
fvnoidtotalestimate.Text = 0.0
fvnoidhorizonactual.Text = fvnoidcostdrv("fvnoidactual")
fvnoidtotalactual.Text = fvnoidcostdrv("fvnoidactual")
fvwithidhorizonestimate.Text = 0.0
fvwithidtotalestimate.Text = 0.0
fvwithidhorizonactual.Text = fvwithidcostdrv("fvwithidactual")
fvwithidtotalactual.Text = fvwithidcostdrv("fvwithidactual")
STcustomerestimate.Text = (Decimal.Parse(materialcustomerestimate.Text) + Decimal.Parse(personnelcustomerestimate.Text) + Decimal.Parse(TFcustomerestimate.Text) + Decimal.Parse(expensescustomerestimate.Text) + Decimal.Parse(externalcustomerestimate.Text) + Decimal.Parse(PSTcustomerestimate.Text) + Decimal.Parse(projectcustomerestimate.Text) + Decimal.Parse(othercustomerestimate.Text) + Decimal.Parse(otadjcustomerestimate.Text) + Decimal.Parse(fvnoidcustomerestimate.Text) + Decimal.Parse(fvwithidcustomerestimate.Text)).ToString()
SThorizonestimate.Text = (Decimal.Parse(materialhorizonestimate.Text) + Decimal.Parse(personnelhorizonestimate.Text) + Decimal.Parse(TFhorizonestimate.Text) + Decimal.Parse(expenseshorizonestimate.Text) + Decimal.Parse(externalhorizonestimate.Text) + Decimal.Parse(PSThorizonestimate.Text) + Decimal.Parse(projecthorizonestimate.Text) + Decimal.Parse(otherhorizonestimate.Text) + Decimal.Parse(otadjhorizonestimate.Text) + Decimal.Parse(fvnoidhorizonestimate.Text) + Decimal.Parse(fvwithidhorizonestimate.Text)).ToString()
STtotalestimate.Text = (Decimal.Parse(materialtotalestimate.Text) + Decimal.Parse(personneltotalestimate.Text) + Decimal.Parse(TFtotalestimate.Text) + Decimal.Parse(expensestotalestimate.Text) + Decimal.Parse(externaltotalestimate.Text) + Decimal.Parse(PSTtotalestimate.Text) + Decimal.Parse(projecttotalestimate.Text) + Decimal.Parse(othertotalestimate.Text) + Decimal.Parse(otadjtotalestimate.Text) + Decimal.Parse(fvnoidtotalestimate.Text) + Decimal.Parse(fvwithidtotalestimate.Text)).ToString()
STcustomeractual.Text = (Decimal.Parse(materialcustomeractual.Text) + Decimal.Parse(personnelcustomeractual.Text) + Decimal.Parse(TFcustomeractual.Text) + Decimal.Parse(expensescustomeractual.Text) + Decimal.Parse(externalcustomeractual.Text) + Decimal.Parse(PSTcustomeractual.Text) + Decimal.Parse(projectcustomeractual.Text) + Decimal.Parse(othercustomeractual.Text) + Decimal.Parse(otadjcustomeractual.Text) + Decimal.Parse(fvnoidcustomeractual.Text) + Decimal.Parse(fvwithidcustomeractual.Text)).ToString()
SThorizonactual.Text = (Decimal.Parse(materialhorizonactual.Text) + Decimal.Parse(personnelhorizonactual.Text) + Decimal.Parse(TFhorizonactual.Text) + Decimal.Parse(expenseshorizonactual.Text) + Decimal.Parse(externalcustomeractual.Text) + Decimal.Parse(PSThorizonactual.Text) + Decimal.Parse(projecthorizonactual.Text) + Decimal.Parse(otherhorizonactual.Text) + Decimal.Parse(otadjhorizonactual.Text) + Decimal.Parse(fvnoidhorizonactual.Text) + Decimal.Parse(fvwithidhorizonactual.Text)).ToString()
STtotalactual.Text = (Decimal.Parse(materialtotalactual.Text) + Decimal.Parse(personneltotalactual.Text) + Decimal.Parse(TFtotalactual.Text) + Decimal.Parse(expensestotalactual.Text) + Decimal.Parse(externaltotalactual.Text) + Decimal.Parse(PSTtotalactual.Text) + Decimal.Parse(projecttotalactual.Text) + Decimal.Parse(othertotalactual.Text) + Decimal.Parse(otadjtotalactual.Text) + Decimal.Parse(fvnoidtotalactual.Text) + Decimal.Parse(fvwithidtotalactual.Text)).ToString()
addmetercustomerestimate.Text = 0.0
addmeterhorizonestimate.Text = 0.0
addmetertotalestimate.Text = 0.0
addmetercustomeractual.Text = 0.0
addmeterhorizonactual.Text = 0.0
addmetertotalactual.Text = 0.0
permitcostscustomerestimate.Text = 0.0
permitcostshorizonestimate.Text = 0.0
permitcoststotalestimate.Text = 0.0
permitcostscustomeractual.Text = 0.0
permitcostshorizonactual.Text = 0.0
permitcoststotalactual.Text = 0.0
restorationcustomerestimate.Text = 0.0
restorationhorizonestimate.Text = 0.0
restorationtotalestimate.Text = 0.0
restorationcustomeractual.Text = 0.0
restorationhorizonactual.Text = 0.0
restorationtotalactual.Text = 0.0
closurecustomerestimate.Text = 0.0
closurehorizonestimate.Text = 0.0
closuretotalestimate.Text = 0.0
closurecustomeractual.Text = 0.0
closurehorizonactual.Text = 0.0
closuretotalactual.Text = 0.0
contingencycustomerestimate.Text = 0.0
contingencyhorizonestimate.Text = 0.0
contingencytotalestimate.Text = 0.0
contingencycustomeractual.Text = 0.0
contingencyhorizonactual.Text = 0.0
contingencytotalactual.Text = 0.0
totalnohstcustomerestimate.Text = (Decimal.Parse(materialcustomerestimate.Text) + Decimal.Parse(personnelcustomerestimate.Text) + Decimal.Parse(TFcustomerestimate.Text) + Decimal.Parse(expensescustomerestimate.Text) + Decimal.Parse(externalcustomerestimate.Text) + Decimal.Parse(PSTcustomerestimate.Text) + Decimal.Parse(projectcustomerestimate.Text) + Decimal.Parse(othercustomerestimate.Text) + Decimal.Parse(otadjcustomerestimate.Text) + Decimal.Parse(fvnoidcustomerestimate.Text) + Decimal.Parse(fvwithidcustomerestimate.Text) + Decimal.Parse(addmetercustomerestimate.Text) + Decimal.Parse(permitcostscustomerestimate.Text) + Decimal.Parse(restorationcustomerestimate.Text) + Decimal.Parse(closurecustomerestimate.Text) + Decimal.Parse(contingencycustomerestimate.Text)).ToString()
totalnohsthorizonestimate.Text = (Decimal.Parse(materialhorizonestimate.Text) + Decimal.Parse(personnelhorizonestimate.Text) + Decimal.Parse(TFhorizonestimate.Text) + Decimal.Parse(expenseshorizonestimate.Text) + Decimal.Parse(externalhorizonestimate.Text) + Decimal.Parse(PSThorizonestimate.Text) + Decimal.Parse(projecthorizonestimate.Text) + Decimal.Parse(otherhorizonestimate.Text) + Decimal.Parse(otadjhorizonestimate.Text) + Decimal.Parse(fvnoidhorizonestimate.Text) + Decimal.Parse(fvwithidhorizonestimate.Text) + Decimal.Parse(addmeterhorizonestimate.Text) + Decimal.Parse(permitcostshorizonestimate.Text) + Decimal.Parse(restorationhorizonestimate.Text) + Decimal.Parse(closurehorizonestimate.Text) + Decimal.Parse(contingencyhorizonestimate.Text)).ToString()
totalnohsttotalestimate.Text = (Decimal.Parse(materialtotalestimate.Text) + Decimal.Parse(personneltotalestimate.Text) + Decimal.Parse(TFtotalestimate.Text) + Decimal.Parse(expensestotalestimate.Text) + Decimal.Parse(externaltotalestimate.Text) + Decimal.Parse(PSTtotalestimate.Text) + Decimal.Parse(projecttotalestimate.Text) + Decimal.Parse(othertotalestimate.Text) + Decimal.Parse(otadjtotalestimate.Text) + Decimal.Parse(fvnoidtotalestimate.Text) + Decimal.Parse(fvwithidtotalestimate.Text) + Decimal.Parse(addmetertotalestimate.Text) + Decimal.Parse(permitcoststotalestimate.Text) + Decimal.Parse(restorationtotalestimate.Text) + Decimal.Parse(closuretotalestimate.Text) + Decimal.Parse(contingencytotalestimate.Text)).ToString()
totalnohstcustomeractual.Text = (Decimal.Parse(materialcustomeractual.Text) + Decimal.Parse(personnelcustomeractual.Text) + Decimal.Parse(TFcustomeractual.Text) + Decimal.Parse(expensescustomeractual.Text) + Decimal.Parse(externalcustomeractual.Text) + Decimal.Parse(PSTcustomeractual.Text) + Decimal.Parse(projectcustomeractual.Text) + Decimal.Parse(othercustomeractual.Text) + Decimal.Parse(otadjcustomeractual.Text) + Decimal.Parse(fvnoidcustomeractual.Text) + Decimal.Parse(fvwithidcustomeractual.Text) + Decimal.Parse(addmetercustomeractual.Text) + Decimal.Parse(permitcostscustomeractual.Text) + Decimal.Parse(restorationcustomeractual.Text) + Decimal.Parse(closurecustomeractual.Text) + Decimal.Parse(contingencycustomeractual.Text)).ToString()
totalnohsthorizonactual.Text = (Decimal.Parse(materialhorizonactual.Text) + Decimal.Parse(personnelhorizonactual.Text) + Decimal.Parse(TFhorizonactual.Text) + Decimal.Parse(expenseshorizonactual.Text) + Decimal.Parse(externalhorizonactual.Text) + Decimal.Parse(PSThorizonactual.Text) + Decimal.Parse(projecthorizonactual.Text) + Decimal.Parse(otherhorizonactual.Text) + Decimal.Parse(otadjhorizonactual.Text) + Decimal.Parse(fvnoidhorizonactual.Text) + Decimal.Parse(fvwithidhorizonactual.Text) + Decimal.Parse(addmeterhorizonactual.Text) + Decimal.Parse(permitcostshorizonactual.Text) + Decimal.Parse(restorationhorizonactual.Text) + Decimal.Parse(closurehorizonactual.Text) + Decimal.Parse(contingencyhorizonactual.Text)).ToString()
totalnohsttotalactual.Text = (Decimal.Parse(materialtotalactual.Text) + Decimal.Parse(personneltotalactual.Text) + Decimal.Parse(TFtotalactual.Text) + Decimal.Parse(expensestotalactual.Text) + Decimal.Parse(externaltotalactual.Text) + Decimal.Parse(PSTtotalactual.Text) + Decimal.Parse(projecttotalactual.Text) + Decimal.Parse(othertotalactual.Text) + Decimal.Parse(otadjtotalactual.Text) + Decimal.Parse(fvnoidtotalactual.Text) + Decimal.Parse(fvwithidtotalactual.Text) + Decimal.Parse(addmetertotalactual.Text) + Decimal.Parse(permitcoststotalactual.Text) + Decimal.Parse(restorationtotalactual.Text) + Decimal.Parse(closuretotalactual.Text) + Decimal.Parse(contingencytotalactual.Text)).ToString()
hstcustomerestimate.Text = Math.Round((Decimal.Parse(totalnohstcustomerestimate.Text) * 0.13), 2).ToString()
hsthorizonestimate.Text = Math.Round((Decimal.Parse(totalnohsthorizonestimate.Text) * 0.13), 2).ToString()
hsttotalestimate.Text = Math.Round((Decimal.Parse(totalnohsttotalestimate.Text) * 0.13), 2).ToString()
hstcustomeractual.Text = Math.Round((Decimal.Parse(totalnohstcustomeractual.Text) * 0.13), 2).ToString()
hsthorizonactual.Text = Math.Round((Decimal.Parse(totalnohsthorizonactual.Text) * 0.13), 2).ToString()
hsttotalactual.Text = Math.Round((Decimal.Parse(totalnohsttotalactual.Text) * 0.13), 2).ToString()
totalcustomerestimate.Text = (Decimal.Parse(totalnohstcustomerestimate.Text) + Decimal.Parse(hstcustomerestimate.Text)).ToString()
totalhorizonestimate.Text = (Decimal.Parse(totalnohsthorizonestimate.Text) + Decimal.Parse(hsthorizonestimate.Text)).ToString()
totaltotalestimate.Text = (Decimal.Parse(totalnohsttotalestimate.Text) + Decimal.Parse(hsttotalestimate.Text)).ToString()
totalcustomeractual.Text = (Decimal.Parse(totalnohstcustomeractual.Text) + Decimal.Parse(hstcustomeractual.Text)).ToString()
totalhorizonactual.Text = (Decimal.Parse(totalnohsthorizonactual.Text) + Decimal.Parse(hsthorizonactual.Text)).ToString()
totaltotalactual.Text = (Decimal.Parse(totalnohsttotalactual.Text) + Decimal.Parse(hsttotalactual.Text)).ToString()
contestableestimate.Text = 0.0
contestableactual.Text = 0.0
vaPOTestimate.Text = personnelcosthistoricaldrv("personnelplannedhistorical") + personnelcostcurrentdrv("personnelplannedcurrent")
vaPOTactual.Text = personnelcosthistoricaldrv("personnelactualhistorical") + personnelcostcurrentdrv("personnelactualcurrent") + personnelcostextradrv("personnelextra")
vaPOTvariance.Text = (Decimal.Parse(vaPOTactual.Text) - Decimal.Parse(vaPOTestimate.Text)).ToString()
If (Decimal.Parse(vaPOTestimate.Text) <> 0) Then
vaPOTvariancepercent.Text = ((Decimal.Parse(vaPOTvariance.Text) / Decimal.Parse(vaPOTestimate.Text)) * 100).ToString("N2")
End If
vaMATestimate.Text = materialcosthistoricaldrv("materialplannedhistorical") + materialcostcurrentdrv("materialplannedcurrent")
vaMATactual.Text = materialcosthistoricaldrv("materialactualhistorical") + materialcostcurrentdrv("materialactualcurrent")
vaMATvariance.Text = (Decimal.Parse(vaMATactual.Text) - Decimal.Parse(vaMATestimate.Text)).ToString()
If (Decimal.Parse(vaMATestimate.Text) <> 0) Then
vaMATvariancepercent.Text = ((Decimal.Parse(vaMATvariance.Text) / Decimal.Parse(vaMATestimate.Text)) * 100).ToString("N2")
End If
vaTFestimate.Text = TFcosthistoricaldrv("TFplannedhistorical") + TFcostcurrentdrv("TFplannedcurrent")
vaTFactual.Text = TFcosthistoricaldrv("TFactualhistorical") + TFcostcurrentdrv("TFactualcurrent")
vaTFvariance.Text = (Decimal.Parse(vaTFactual.Text) - Decimal.Parse(vaTFestimate.Text)).ToString()
If (Decimal.Parse(vaTFestimate.Text) <> 0) Then
vaTFvariancepercent.Text = ((Decimal.Parse(vaTFvariance.Text) / Decimal.Parse(vaTFestimate.Text)) * 100).ToString("N2")
End If
vaEEestimate.Text = expensescosthistoricaldrv("expensesplannedhistorical") + expensescostcurrentdrv("expensesplannedcurrent") + externalcosthistoricaldrv("externalplannedhistorical") + externalcostcurrentdrv("externalplannedcurrent")
vaEEactual.Text = expensescosthistoricaldrv("expensesactualhistorical") + expensescostcurrentdrv("expensesactualcurrent") + expensescostextradrv("expensesextra") + externalcosthistoricaldrv("externalactualhistorical") + externalcostcurrentdrv("externalactualcurrent")
vaEEvariance.Text = (Decimal.Parse(vaEEactual.Text) - Decimal.Parse(vaEEestimate.Text)).ToString()
If (Decimal.Parse(vaEEestimate.Text) <> 0) Then
vaEEvariancepercent.Text = ((Decimal.Parse(vaEEvariance.Text) / Decimal.Parse(vaEEestimate.Text)) * 100).ToString("N2")
End If
VAactual.Text = (Decimal.Parse(vaPOTactual.Text) + Decimal.Parse(vaMATactual.Text) + Decimal.Parse(vaTFactual.Text) + Decimal.Parse(vaEEactual.Text)).ToString()
VAoriginalestimate.Text = (Decimal.Parse(vaPOTestimate.Text) + Decimal.Parse(vaMATestimate.Text) + Decimal.Parse(vaTFestimate.Text) + Decimal.Parse(vaEEestimate.Text)).ToString()
VAvarianceoriginalvsactual.Text = (Decimal.Parse(VAactual.Text) - Decimal.Parse(VAoriginalestimate.Text)).ToString()
VAbaseline.Text = baselinedrv("vabaseline")
VAbaselinevsactual.Text = (Decimal.Parse(VAactual.Text) - Decimal.Parse(VAbaseline.Text)).ToString()
ccdollars.Text = "0.00" 'need to get value - asked Dre and Brenda where it is in IFS
depositdollars.Text = depositdrv("depositdollars")
totaldeposit.Text = (Decimal.Parse(depositdollars.Text) + Decimal.Parse(ccdollars.Text)).ToString()
totalcustomerchargesnohst.Text = totalnohstcustomeractual.Text
totalhorizoncost.Text = totalhorizonactual.Text
'new fields here
vaPOTamount1.Text = 0.0
vaPOTamount2.Text = 0.0
vaPOTamount3.Text = 0.0
vaPOTamount4.Text = 0.0
vaPOTtotal.Text = 0.0
vaMATamount1.Text = 0.0
vaMATamount2.Text = 0.0
vaMATamount3.Text = 0.0
vaMATamount4.Text = 0.0
vaMATtotal.Text = 0.0
vaTFamount1.Text = 0.0
vaTFamount2.Text = 0.0
vaTFamount3.Text = 0.0
vaTFamount4.Text = 0.0
vaTFtotal.Text = 0.0
vaEEamount1.Text = 0.0
vaEEamount2.Text = 0.0
vaEEamount3.Text = 0.0
vaEEamount4.Text = 0.0
vaEEtotal.Text = 0.0
checkworkorders()
checkpurchaseorders()
showhideapprovals()
signedonuser.Text = Session("sessionuser")
End If
checklockproject()
If (addclosure.Visible = True) Then
lockproject()
End If
End If
End Sub
Thanks for any help, Roscoe
Chen Yu - MS...
All-Star
21598 Points
2493 Posts
Microsoft
Re: Popup calendar overlain by existing page content
Jan 25, 2013 08:52 AM|LINK
Hi,
which data will be shown in the calendar when the form initialize?
Best Regards,
Feedback to us
Develop and promote your apps in Windows Store
rpfinnimore
Member
185 Points
133 Posts
Re: Popup calendar overlain by existing page content
Jan 28, 2013 08:10 PM|LINK
Hi Chen Yu, When the form initializes the calendar is not visible - the user clicks on an image to the right of the textbox that will hold the calendar to make the calendar pop up. Or am I missing the intent of the question? Thanks, Roscoe
molly_c
Participant
1590 Points
401 Posts
Re: Popup calendar overlain by existing page content
Jan 30, 2013 05:28 AM|LINK
So, when you open this calendar from the image, did it have default value in the calendar ? I found the default value is 00:00:00.0000000, January 1, 0001. Is it related to your question?
http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.calendar.selecteddate.aspx
Molly
It's time to start living the life you are imagined.
rpfinnimore
Member
185 Points
133 Posts
Re: Popup calendar overlain by existing page content
Feb 06, 2013 04:33 PM|LINK
Hi Molly, Thanks for the reply but I don't think it's related
ninianne98
Contributor
3910 Points
650 Posts
Re: Popup calendar overlain by existing page content
Feb 24, 2013 07:53 PM|LINK
This sounds like a CSS issue, not a .Net issue. Try tweaking the z-index (setting it to something like 900) when you set it to display = block to make it appear as the top-most element. You might also consider toggling a CSS class rather than individual css style properties. ZIndex determines the stacking order of html elements, the higher the number, the closer to the top the stack the element will be, and the lower, the further to the back it will be.
You may also want to review the zIndex of your form elements that appear on top of your calendar to see if there are any zIndexes applied, as you will need to make your calendar's zIndex a higher number.
http://www.w3schools.com/cssref/pr_pos_z-index.asp
Mark as Answer if this response was helpful.