<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="ViewSchedulefromCSV.aspx.vb" Inherits="FinIQWebApp.ViewSchedulefromCSV" MasterPageFile="~/FiniqAppMasterPage.Master" Title="Schedule" %>


<%--<%@ Register Src="../FinIQ_User_Controls/DateControl.ascx" TagName="DateControl" TagPrefix="uc1" %>

<%@ Register Src="~/UCP/DealDetailsControls/FinIQ_UCPViewSchedule.ascx" TagPrefix="uc1" TagName="UCPViewSchedule" %>--%>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
	<asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server">
	</asp:ScriptManagerProxy>

	<link href="../App_Themes/Style1.css" rel="stylesheet" type="text/css" />

	<%--<asp:Label ID="lblError" runat="server" CssClass="LBLERROR" Visible="true"></asp:Label>--%>
	<asp:UpdatePanel ID="UpdatePanel_ViewSchedule" runat="server" UpdateMode="always" ChildrenAsTriggers="true" EnableViewState="true">

		<ContentTemplate>
			<table>
				<tr>
					<td>
						<asp:TextBox ID="txtAddEditChk" runat="server" Visible="False"></asp:TextBox>
					</td>
				</tr>
				<tr>
					<td>
						<asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1"
							DisplayAfter="0">
							<ProgressTemplate>
								<div class="divLoading">
									<img alt="Loading" src="../App_Resources/loading.gif" /><span class="lbl">Loading...&nbsp;&nbsp;
									</span>
								</div>
							</ProgressTemplate>
						</asp:UpdateProgress>
					</td>
				</tr>
				<tr>
					<td>
						<asp:Label ID="lblerror" runat="server" CssClass="lblerror"></asp:Label>
						<asp:Label ID="lblMsg" runat="server" CssClass="lblinfo"></asp:Label>
					</td>
				</tr>
			</table>
			<asp:Panel ID="pnlViewSchedule" runat="server" Visible="true">
				<%-- <uc1:ucpviewschedule id="oUCPViewSchedule" runat="server" />--%>
				<table id="Table1" style="border: none">
					<tr>
						<td style="width: 70px;">
							<asp:Label ID="CSVLabel" runat="server" Text="ScheduleCSV" Class="lbl"></asp:Label>
						</td>

						<td style="border-left: 1px solid lightgrey;">
							<asp:TextBox ID="txtScheduleCSV" runat="server" AutoPostBack="false" CssClass="txt" Width="720px"></asp:TextBox>
						</td>
						<td>
							<asp:Button runat="server" Style="height: 30px; width: 120px;" ID="btnSchedule" Text="Load" CssClass="btn"></asp:Button>
						</td>
						<td>
							<asp:Label ID="timeRequired" runat="server" Class="lbl"></asp:Label>
						</td>
					</tr>
				</table>
				<table>
					<tr>
						<td colspan="3">
							<div runat="server" id="divGrid">
								<asp:GridView ID="Schedulegrid" CssClass="Grid GridWidth" runat="server" AllowSorting="false" ShowHeaderWhenEmpty="true" EmptyDataText="No Record Found" EnableViewState="true" HorizontalAlign="Center" CellPadding="10" AutoGenerateColumns="false">
									<RowStyle CssClass="GridItem" />
									<HeaderStyle CssClass="GridHeader" />
									<FooterStyle CssClass="GridFooter" />
									<Columns>
										<asp:TemplateField HeaderText="StartDate" Visible="false">

											<ItemStyle Wrap="False" HorizontalAlign="Left" CssClass="width_product"></ItemStyle>
											<ItemTemplate>
												<asp:Label ID="lblStartDate" runat="server" CssClass="lbl " Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.StartDate").ToString)%>'></asp:Label>
											</ItemTemplate>

										</asp:TemplateField>
										<asp:TemplateField HeaderText="Fixing Date">

											<ItemStyle Wrap="False" HorizontalAlign="Left" CssClass="width_product"></ItemStyle>
											<ItemTemplate>
												<asp:Label ID="lblFixingDate" runat="server" CssClass="lbl " Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.FixingDate").ToString)%>'></asp:Label>
											</ItemTemplate>

										</asp:TemplateField>
										<asp:TemplateField HeaderText="Settlement Date">

											<ItemStyle Wrap="False" HorizontalAlign="Left" CssClass="width_product"></ItemStyle>
											<ItemTemplate>
												<asp:Label ID="lblSettlementDate" runat="server" CssClass="lbl " Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.SettlementDate").ToString)%>'></asp:Label>
											</ItemTemplate>

										</asp:TemplateField>
										<asp:TemplateField HeaderText="EndDate" Visible="false">

											<ItemStyle Wrap="False" HorizontalAlign="Left" CssClass="width_product"></ItemStyle>
											<ItemTemplate>
												<asp:Label ID="lblEndDate" runat="server" CssClass="lbl " Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.EndDate").ToString)%>'></asp:Label>
											</ItemTemplate>

										</asp:TemplateField>
										<asp:TemplateField HeaderText="Business Days">

											<ItemStyle Wrap="False" HorizontalAlign="Center" CssClass="width_product"></ItemStyle>
											<ItemTemplate>
												<asp:Label ID="lblDays" runat="server" CssClass="lbl " Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Days").ToString)%>'></asp:Label>
											</ItemTemplate>

										</asp:TemplateField>
										<asp:TemplateField HeaderText="DCF">

											<ItemStyle Wrap="False" HorizontalAlign="Left" CssClass="width_product"></ItemStyle>
											<ItemTemplate>
												<asp:Label ID="lblDCF" runat="server" CssClass="lbl " Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.DCF").ToString)%>'></asp:Label>
											</ItemTemplate>

										</asp:TemplateField>
										<asp:TemplateField HeaderText="Stub">

											<ItemStyle Wrap="False" HorizontalAlign="Left" CssClass="width_product"></ItemStyle>
											<ItemTemplate>
												<asp:Label ID="lblStubPeriod" runat="server" CssClass="lbl " Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.StubPeriod").ToString)%>'></asp:Label>
											</ItemTemplate>

										</asp:TemplateField>
										<asp:TemplateField HeaderText="ID" Visible="false">

											<ItemStyle Wrap="False" HorizontalAlign="Left" CssClass="width_product"></ItemStyle>
											<ItemTemplate>
												<asp:Label ID="lblID" runat="server" CssClass="lbl " Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.ID").ToString)%>'></asp:Label>
											</ItemTemplate>

										</asp:TemplateField>
										<asp:TemplateField HeaderText="Strike" Visible="false">

											<ItemStyle Wrap="False" HorizontalAlign="Left" CssClass="width_product"></ItemStyle>
											<ItemTemplate>
												<asp:Label ID="lblStrike" runat="server" CssClass="lbl " Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Strike").ToString)%>'></asp:Label>
											</ItemTemplate>

										</asp:TemplateField>
										<asp:TemplateField HeaderText="LowerStrike" Visible="false">

											<ItemStyle Wrap="False" HorizontalAlign="Left" CssClass="width_product"></ItemStyle>
											<ItemTemplate>
												<asp:Label ID="lblLowerStrike" runat="server" CssClass="lbl " Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.LowerStrike").ToString)%>'></asp:Label>
											</ItemTemplate>

										</asp:TemplateField>
										<asp:TemplateField HeaderText="UpperStrike" Visible="false">

											<ItemStyle Wrap="False" HorizontalAlign="Left" CssClass="width_product"></ItemStyle>
											<ItemTemplate>
												<asp:Label ID="lblUpperStrike" runat="server" CssClass="lbl " Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.UpperStrike").ToString)%>'></asp:Label>
											</ItemTemplate>

										</asp:TemplateField>
										<asp:TemplateField HeaderText="Direction" Visible="false">

											<ItemStyle Wrap="False" HorizontalAlign="Left" CssClass="width_product"></ItemStyle>
											<ItemTemplate>
												<asp:Label ID="lblDirection" runat="server" CssClass="lbl " Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.Direction").ToString)%>'></asp:Label>
											</ItemTemplate>

										</asp:TemplateField>
										<asp:TemplateField HeaderText="CallPut" Visible="false">

											<ItemStyle Wrap="False" HorizontalAlign="Left" CssClass="width_product"></ItemStyle>
											<ItemTemplate>
												<asp:Label ID="lblCallPut" runat="server" CssClass="lbl " Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.CallPut").ToString)%>'></asp:Label>
											</ItemTemplate>

										</asp:TemplateField>
										<asp:TemplateField HeaderText="OptionType" Visible="false">

											<ItemStyle Wrap="False" HorizontalAlign="Left" CssClass="width_product"></ItemStyle>
											<ItemTemplate>
												<asp:Label ID="lblOptionType" runat="server" CssClass="lbl " Text='<%# Microsoft.Security.Application.Encoder.HtmlEncode(DataBinder.Eval(Container, "DataItem.OptionType").ToString)%>'></asp:Label>
											</ItemTemplate>

										</asp:TemplateField>
									</Columns>

									<%--<PagerStyle CssClass="GridPager" />--%>
								</asp:GridView>
							</div>
						</td>
					</tr>
				</table>

			</asp:Panel>
		</ContentTemplate>
	</asp:UpdatePanel>


</asp:Content>
