<%@ Page Language="VB" %>
<%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
<%@ Import Namespace="System.Globalization"%>
<%@ Import Namespace="System.Collections.Generic" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
Dim ci As New CultureInfo("en-US")
Dim myList As New List(Of Project)()
myList.Add(New Project(100, "Field Anchoring", 112, "Integrate 2.0 Forms with 2.0 Layouts", 6, 150, 0, DateTime.Parse("06/24/2007", ci)))
myList.Add(New Project(100, "Field Anchoring", 113, "Implement AnchorLayout", 4, 150, 0, DateTime.Parse("06/25/2007", ci)))
myList.Add(New Project(100, "Field Anchoring", 114, "Add support for multiple types of anchors", 4, 150, 0, DateTime.Parse("06/27/2007", ci)))
myList.Add(New Project(100, "Field Anchoring", 115, "Testing and debugging", 8, 0, 0, DateTime.Parse("06/29/2007", ci)))
myList.Add(New Project(101, "Single-level Grouping", 101, "Add required rendering 'hooks' to GridView", 6, 100, 0, DateTime.Parse("07/01/2007", ci)))
myList.Add(New Project(101, "Single-level Grouping", 102, "Extend GridView and override rendering functions", 6, 100, 0, DateTime.Parse("07/03/2007", ci)))
myList.Add(New Project(101, "Single-level Grouping", 103, "Extend Store with grouping functionality", 4, 100, 0, DateTime.Parse("07/04/2007", ci)))
myList.Add(New Project(101, "Single-level Grouping", 121, "Default CSS Styling", 2, 100, 0, DateTime.Parse("07/05/2007", ci)))
myList.Add(New Project(101, "Grid: Single-level Grouping", 104, "Testing and debugging", 6, 100, 0, DateTime.Parse("07/06/2007", ci)))
myList.Add(New Project(102, "Grid: Summary Rows", 105, "Ext Grid plugin integration", 4, 125, 0, DateTime.Parse("07/01/2007", ci)))
myList.Add(New Project(102, "Grid: Summary Rows", 106, "Summary creation during rendering phase", 4, 125, 0, DateTime.Parse("07/02/2007", ci)))
myList.Add(New Project(102, "Grid: Summary Rows", 107, "Dynamic summary updates in editor grids", 6, 125, 0, DateTime.Parse("07/05/2007", ci)))
myList.Add(New Project(102, "Grid: Summary Rows", 108, "Remote summary integration", 4, 125, 0, DateTime.Parse("07/05/2007", ci)))
myList.Add(New Project(102, "Grid: Summary Rows", 109, "Summary renderers and calculators", 4, 125, 0, DateTime.Parse("07/06/2007", ci)))
myList.Add(New Project(102, "Grid: Summary Rows", 110, "Integrate summaries with GroupingView", 10, 125, 0, DateTime.Parse("07/11/2007", ci)))
myList.Add(New Project(102, "Grid: Summary Rows", 111, "Testing and debugging", 8, 125, 0, DateTime.Parse("07/15/2007", ci)))
Me.Store1.DataSource = myList
Me.Store1.DataBind()
End Sub
Public Class Project
Public Sub New(ByVal projectId As Integer, ByVal name As String, ByVal taskId As Integer, ByVal description As String, ByVal estimate As Integer, ByVal rate As Double, _
ByVal cost As Double, ByVal due As DateTime)
Me.ProjectID = projectId
Me.Name = name
Me.TaskID = taskId
Me.Description = description
Me.Estimate = estimate
Me.Rate = rate
Me.Due = due
End Sub
Private _ProjectID As Integer
Public Property ProjectID() As Integer
Get
Return _ProjectID
End Get
Set(ByVal value As Integer)
_ProjectID = value
End Set
End Property
Private _Name As String
Public Property Name() As String
Get
Return _Name
End Get
Set(ByVal value As String)
_Name = value
End Set
End Property
Private _TaskID As Integer
Public Property TaskID() As Integer
Get
Return _TaskID
End Get
Set(ByVal value As Integer)
_TaskID = value
End Set
End Property
Private _Description As String
Public Property Description() As String
Get
Return _Description
End Get
Set(ByVal value As String)
_Description = value
End Set
End Property
Private _Estimate As Integer
Public Property Estimate() As Integer
Get
Return _Estimate
End Get
Set(ByVal value As Integer)
_Estimate = value
End Set
End Property
Private _Rate As Double
Public Property Rate() As Double
Get
Return _Rate
End Get
Set(ByVal value As Double)
_Rate = value
End Set
End Property
Private _Cost As Double
Public Property Cost() As Double
Get
Return _Cost
End Get
Set(ByVal value As Double)
_Cost = value
End Set
End Property
Private _Due As DateTime
Public Property Due() As DateTime
Get
Return _Due
End Get
Set(ByVal value As DateTime)
_Due = value
End Set
End Property
End Class
</script>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<title>協力会社WBS一覧</title>
<!-- Comm CSS -->
<link href="../Resources/Css/PJCSS.css" rel="stylesheet" type="text/css" />
<!-- LIBS -->
<!-- ENDLIBS -->
<script type="text/javascript">
var template = '<span style="color:{0};">{1}</span>';
var change = function(value) {
return String.format(template, (value > 0) ? 'green' : 'red', value);
}
var pctChange = function(value) {
return String.format(template, (value > 0) ? 'green' : 'red', value + '%');
}
</script>
</head>
<body>
<div style="width:1080; height: 500px; ">
<form id="form1" runat="server">
<ext:ScriptManager ID="ScriptManager1" runat="server">
<Listeners>
<DocumentReady Handler="Ext.grid.GroupSummary.Calculations['totalCost'] = function(v, record, field){
return v + (record.data.Estimate * record.data.Rate);
}" />
</Listeners>
</ext:ScriptManager>
<div>
<div id="divTopNavMain" class="TopNavMain_PJCSS">
<asp:Label ID="lblTopNavLogo" runat="server" style="text-align:center;" Width="100%" Text="協力会社WBS一覧" CssClass="TopNavLogo_PJCSS"></asp:Label>
</div>
<div class="DivMain_PJCSS"->
<%-- option area--%>
<div>
<ext:Panel ID="Panel2" runat="server" Title="検索条件" Collapsible="True" Width="1050px" >
<Content>
<%-- top title area--%>
<table style=" border-collapse:collapse;" border ="1" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td style="width :47%">
<table style="width :100%">
<tr style="height:10px"></tr>
<tr>
<td style="width :3%"></td>
<td style="width :13%" class="fontText">1</td>
<td style="width :28%">
<ext:ComboBox runat="server" Cls="ExtCombW130_PJCSS" ID="ComboBox1000"
Editable="false"
EmptyText="Select a ...">
<Items>
<ext:ListItem Text="Alabama" Value="AL" />
<ext:ListItem Text="Alaska" Value="AK" />
</Items>
</ext:ComboBox>
</td>
<td style="width :28%">
<ext:ComboBox ID="ComboBox2" runat="server" Cls="ExtCombW130_PJCSS"
Editable="false"
EmptyText="Select a ...">
<Items>
<ext:ListItem Text="Alabama" Value="AL" />
<ext:ListItem Text="Alaska" Value="AK" />
</Items>
</ext:ComboBox>
</td>
<td style="width :28%">
<ext:ComboBox ID="ComboBox17" runat="server" Cls="ExtCombW130_PJCSS"
Editable="true"
EmptyText="Select a ...">
<Items>
<ext:ListItem Text="Alabama" Value="AL" />
<ext:ListItem Text="Alaska" Value="AK" />
</Items>
</ext:ComboBox>
</td>
</tr>
<tr>
<td style="width :3%"></td>
<td style="width :13%">
<ext:ComboBox ID="ComboBox7" runat="server" Cls="ExtCombW60_PJCSS"
Editable="false"
EmptyText="Select a ...">
<Items>
<ext:ListItem Text="Alabama" Value="AL" />
<ext:ListItem Text="Alaska" Value="AK" />
</Items>
</ext:ComboBox>
</td>
<td style="width :28%">
<ext:ComboBox ID="ComboBox3" runat="server" Cls="ExtCombW130_PJCSS"
Editable="false"
EmptyText="Select a ...">
<Items>
<ext:ListItem Text="Alabama" Value="AL" />
<ext:ListItem Text="Alaska" Value="AK" />
</Items>
</ext:ComboBox>
</td>
<td style="width :28%">
<ext:ComboBox ID="ComboBox4" runat="server" Cls="ExtCombW130_PJCSS"
Editable="false"
EmptyText="Select a ...">
<Items>
<ext:ListItem Text="Alabama" Value="AL" />
<ext:ListItem Text="Alaska" Value="AK" />
</Items>
</ext:ComboBox>
</td>
<td style="width :28%">
<ext:ComboBox ID="ComboBox18" runat="server" Cls="ExtCombW130_PJCSS"
Editable="true"
EmptyText="Select a ...">
<Items>
<ext:ListItem Text="Alabama" Value="AL" />
<ext:ListItem Text="Alaska" Value="AK" />
</Items>
</ext:ComboBox>
</td>
</tr>
<tr>
<td style="width :3%"></td>
<td style="width :13%">
<ext:ComboBox ID="ComboBox5" runat="server" Cls="ExtCombW60_PJCSS"
Editable="false"
EmptyText="Select a ...">
<Items>
<ext:ListItem Text="Alabama" Value="AL" />
<ext:ListItem Text="Alaska" Value="AK" />
</Items>
</ext:ComboBox>
</td>
<td style="width :28%">
<ext:ComboBox ID="ComboBox6" runat="server" Cls="ExtCombW130_PJCSS"
Editable="false"
EmptyText="Select a ...">
<Items>
<ext:ListItem Text="Alabama" Value="AL" />
<ext:ListItem Text="Alaska" Value="AK" />
</Items>
</ext:ComboBox>
</td>
<td style="width :28%">
<ext:ComboBox ID="ComboBox8" runat="server" Cls="ExtCombW130_PJCSS"
Editable="false"
EmptyText="Select a ...">
<Items>
<ext:ListItem Text="Alabama" Value="AL" />
<ext:ListItem Text="Alaska" Value="AK" />
</Items>
</ext:ComboBox>
</td>
<td style="width :28%">
<ext:ComboBox ID="ComboBox19" runat="server" Cls="ExtCombW130_PJCSS"
Editable="true"
EmptyText="Select a ...">
<Items>
<ext:ListItem Text="Alabama" Value="AL" />
<ext:ListItem Text="Alaska" Value="AK" />
</Items>
</ext:ComboBox>
</td>
</tr>
<tr style="height:10px">
</tr>
</table>
</td>
<td style="width :1%; border-color:White;" ></td>
<td style="width :5%;border-style:solid;border-width:1px;" >
<table>
<tr>
<td class="fontText" style="height: 20px;">
<ext:Radio ID="Radio1" runat="server" BoxLabel="And">
</ext:Radio>
<ext:Radio ID="Radio2" runat="server" BoxLabel=" Or ">
</ext:Radio>
</td>
</tr>
</table>
</td>
<%-- </td>
<td style="width :4%" ></td>--%>
<td style="width :47%">
<table style="width :100%">
<tr style="height:10px"></tr>
<tr>
<td style="width :3%"></td>
<td style="width :13%" class="fontText">2</td>
<td style="width :28%">
<ext:ComboBox ID="ComboBox9" runat="server" Cls="ExtCombW130_PJCSS"
Editable="false"
EmptyText="Select a ...">
<Items>
<ext:ListItem Text="Alabama" Value="AL" />
<ext:ListItem Text="Alaska" Value="AK" />
</Items>
</ext:ComboBox>
</td>
<td style="width :28%">
<ext:ComboBox ID="ComboBox10" runat="server" Cls="ExtCombW130_PJCSS"
Editable="false"
EmptyText="Select a ...">
<Items>
<ext:ListItem Text="Alabama" Value="AL" />
<ext:ListItem Text="Alaska" Value="AK" />
</Items>
</ext:ComboBox>
</td>
<td style="width :28%">
<ext:ComboBox ID="ComboBox11" runat="server" Cls="ExtCombW130_PJCSS"
Editable="true"
EmptyText="Select a ...">
<Items>
<ext:ListItem Text="Alabama" Value="AL" />
<ext:ListItem Text="Alaska" Value="AK" />
</Items>
</ext:ComboBox>
</td>
</tr>
<tr>
<td style="width :3%"></td>
<td style="width :13%">
<ext:ComboBox ID="ComboBox12" runat="server" Cls="ExtCombW60_PJCSS"
Editable="false"
EmptyText="Select a ...">
<Items>
<ext:ListItem Text="Alabama" Value="AL" />
<ext:ListItem Text="Alaska" Value="AK" />
</Items>
</ext:ComboBox>
</td>
<td style="width :28%">
<ext:ComboBox ID="ComboBox13" runat="server" Cls="ExtCombW130_PJCSS"
Editable="false"
EmptyText="Select a ...">
<Items>
<ext:ListItem Text="Alabama" Value="AL" />
<ext:ListItem Text="Alaska" Value="AK" />
</Items>
</ext:ComboBox>
</td>
<td style="width :28%">
<ext:ComboBox ID="ComboBox14" runat="server" Cls="ExtCombW130_PJCSS"
Editable="false"
EmptyText="Select a ...">
<Items>
<ext:ListItem Text="Alabama" Value="AL" />
<ext:ListItem Text="Alaska" Value="AK" />
</Items>
</ext:ComboBox>
</td>
<td style="width :28%">
<ext:ComboBox ID="ComboBox15" runat="server" Cls="ExtCombW130_PJCSS"
Editable="true"
EmptyText="Select a ...">
<Items>
<ext:ListItem Text="Alabama" Value="AL" />
<ext:ListItem Text="Alaska" Value="AK" />
</Items>
</ext:ComboBox>
</td>
</tr>
<tr>
<td style="width :3%"></td>
<td style="width :13%">
<ext:ComboBox ID="ComboBox16" runat="server" Cls="ExtCombW60_PJCSS"
Editable="false"
EmptyText="Select a ...">
<Items>
<ext:ListItem Text="Alabama" Value="AL" />
<ext:ListItem Text="Alaska" Value="AK" />
</Items>
</ext:ComboBox>
</td>
<td style="width :28%">
<ext:ComboBox ID="ComboBox20" runat="server" Cls="ExtCombW130_PJCSS"
Editable="false"
EmptyText="Select a ...">
<Items>
<ext:ListItem Text="Alabama" Value="AL" />
<ext:ListItem Text="Alaska" Value="AK" />
</Items>
</ext:ComboBox>
</td>
<td style="width :28%">
<ext:ComboBox ID="ComboBox21" runat="server" Cls="ExtCombW130_PJCSS"
Editable="false"
EmptyText="Select a ...">
<Items>
<ext:ListItem Text="Alabama" Value="AL" />
<ext:ListItem Text="Alaska" Value="AK" />
</Items>
</ext:ComboBox>
</td>
<td style="width :28%">
<ext:ComboBox ID="ComboBox22" runat="server" Cls="ExtCombW130_PJCSS"
Editable="true"
EmptyText="Select a ...">
<Items>
<ext:ListItem Text="Alabama" Value="AL" />
<ext:ListItem Text="Alaska" Value="AK" />
</Items>
</ext:ComboBox>
</td>
</tr>
<tr style="height:10px">
</tr>
</table>
</td>
</tr>
</table>
<%-- operational button area--%>
<table style="width:100%">
<tr style="height:5px"></tr>
<tr>
<td style=" width: 27%"></td>
<td style=" width: 8%;">
<ext:Button ID="Button4" runat="server" Text="検索" >
</ext:Button></td>
<td style=" width: 32%">
<ext:Button ID="Button5" runat="server" Text="リセット" >
</ext:Button></td>
</tr>
<tr style="height:5px"></tr>
</table>
<%-- detailed data area--%>
</Content>
</ext:Panel>
</div>
<div style="margin-top: 10px;"></div>
<%-- control data areaa--%>
<div>
<ext:TabPanel ID="TabPanel1" runat="server" ActiveTabIndex="1" Height="1px" Plain="True" Width="1050px" Border="False">
<Tabs>
<ext:Tab ID="Tab6" runat="server" Title="要件定義">
<Content>
</Content>
</ext:Tab>
<ext:Tab ID="Tab7" runat="server" Title="概要設計">
<Content>
</Content>
</ext:Tab>
<ext:Tab ID="Tab8" runat="server" Title="詳細設計">
<Content>
</Content>
</ext:Tab>
<ext:Tab ID="Tab9" runat="server" Title="製造">
<Content>
</Content>
</ext:Tab>
<ext:Tab ID="Tab10" runat="server" Title="単体テスト">
<Content>
</Content>
</ext:Tab>
<ext:Tab ID="Tab11" runat="server" Title="結合テスト">
<Content>
</Content>
</ext:Tab>
<ext:Tab ID="Tab12" runat="server" Title="総合テスト">
<Content>
</Content>
</ext:Tab>
</Tabs>
</ext:TabPanel>
</div>
<%-- detailed data area--%>
<div >
<ext:Store ID="Store1" runat="server" GroupField="Name">
<SortInfo Direction="ASC" Field="Due" />
<Reader>
<ext:JsonReader ReaderID="TaskID">
<Fields>
<ext:RecordField Name="ProjectID" />
<ext:RecordField Name="Name" />
<ext:RecordField Name="TaskID" />
<ext:RecordField Name="Description" />
<ext:RecordField Name="Estimate" />
<ext:RecordField Name="Rate" />
<ext:RecordField Name="Due" Type="Date" />
</Fields>
</ext:JsonReader>
</Reader>
</ext:Store>
<ext:GridPanel
ID="GridPanel1"
Frame ="true"
runat="server"
StoreID="Store1"
StripeRows="true"
Title="協力会社WBS一覧"
width="1050"
Height="400" AutoScroll="True" AutoWidth="True" AutoShow="True">
<ColumnModel ID="ColumnModel1" >
<Columns>
<ext:GroupingSummaryColumn ColumnID="Company" Header="サブシステム" Width="200" Sortable="True" DataIndex="Name" CustomSummaryType="" />
<ext:GroupingSummaryColumn DataIndex="ProjectID" Header="プログラムID" Sortable="True" Width="120" CustomSummaryType="">
</ext:GroupingSummaryColumn>
<ext:GroupingSummaryColumn Header="プログラム名" Sortable="True" DataIndex="Name" CustomSummaryType="">
</ext:GroupingSummaryColumn>
<ext:GroupingSummaryColumn Header="作業場所" Sortable="True" DataIndex="Rate" CustomSummaryType="" >
</ext:GroupingSummaryColumn>
<ext:GroupingSummaryColumn Header="製造状態" Width="40" Sortable="True" DataIndex="Rate" CustomSummaryType="">
</ext:GroupingSummaryColumn>
<ext:GroupingSummaryColumn Header="単テ状態" Width="40" Sortable="True" DataIndex="Rate" CustomSummaryType="">
</ext:GroupingSummaryColumn>
<ext:GroupingSummaryColumn Header="予定ライン数" Width="75" Sortable="True" DataIndex="Rate" CustomSummaryType="">
</ext:GroupingSummaryColumn>
<ext:GroupingSummaryColumn Header="実績ライン数" Width="75" Sortable="True" DataIndex="Rate" CustomSummaryType="">
</ext:GroupingSummaryColumn>
<ext:GroupingSummaryColumn Header="担当者" Sortable="True" DataIndex="Rate" CustomSummaryType="">
</ext:GroupingSummaryColumn>
<ext:GroupingSummaryColumn Header="担当者" Sortable="True" DataIndex="Rate" CustomSummaryType="">
</ext:GroupingSummaryColumn>
<ext:GroupingSummaryColumn Header="予定開始日" Width="75" Sortable="True" DataIndex="Due" CustomSummaryType="">
</ext:GroupingSummaryColumn>
<ext:GroupingSummaryColumn Header="実績開始日" Width="75" Sortable="True" DataIndex="Due" CustomSummaryType="">
</ext:GroupingSummaryColumn>
<ext:GroupingSummaryColumn Header="予定完了日" Width="75" Sortable="True" DataIndex="Due" CustomSummaryType="">
</ext:GroupingSummaryColumn>
<ext:GroupingSummaryColumn Header="実績完了日" Width="75" Sortable="True" DataIndex="Due" CustomSummaryType="">
</ext:GroupingSummaryColumn>
<ext:GroupingSummaryColumn Header="予定工数" Width="50" Sortable="True" DataIndex="Rate" CustomSummaryType="">
</ext:GroupingSummaryColumn>
<ext:GroupingSummaryColumn Header="実績工数" Width="50" Sortable="True" DataIndex="Rate" CustomSummaryType="">
</ext:GroupingSummaryColumn>
<ext:GroupingSummaryColumn Header="目前進捗" Width="50" Sortable="True" DataIndex="Rate" CustomSummaryType="">
</ext:GroupingSummaryColumn>
<ext:GroupingSummaryColumn Header="目前工数" Width="50" Sortable="True" DataIndex="Rate" CustomSummaryType="">
</ext:GroupingSummaryColumn>
</Columns>
</ColumnModel>
<View>
<ext:GroupingView
ID="GroupingView1"
runat="server"
ShowGroupName="False"
HideGroupedColumn="false"
>
<GetRowClass FormatHandler="False" Handler="" />
</ext:GroupingView>
</View>
<Plugins>
<ext:GroupingSummary ID="GroupingSummary1" runat="server" />
</Plugins>
<SelectionModel>
<ext:CheckboxSelectionModel ID="CheckboxSelectionModel1" runat="server" SelectedIndex="-1" SelectedRecordID="" />
</SelectionModel>
<LoadMask ShowMask="True" />
<BottomBar>
<ext:PagingToolBar ID="PagingToolBar1" runat="server" PageSize="10" StoreID="Store1" DisplayInfo="True" />
</BottomBar>
<Buttons>
<ext:Button runat="server" CommandArgument="" CommandName="" OnClientClick="" Text="導入">
</ext:Button>
<ext:Button runat="server" CommandArgument="" CommandName="" OnClientClick="" Text="CSV出力" ID="CSVout" ToolTipType="Title" Icon="ApplicationCascade" IconCls="icon-applicationcascade">
</ext:Button>
</Buttons>
</ext:GridPanel>
</div>
</div>
</div>
</form>
</div>
</body>
</html>