You can subscribe to this list here.
2004 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(5) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2005 |
Jan
(4) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(16) |
Jun
(41) |
Jul
(101) |
Aug
(71) |
Sep
|
Oct
|
Nov
|
Dec
|
From: <jon...@us...> - 2006-07-11 23:36:23
|
Revision: 102 Author: jon_r_johnson Date: 2006-07-11 16:36:19 -0700 (Tue, 11 Jul 2006) ViewCVS: http://svn.sourceforge.net/tcdb/?rev=102&view=rev Log Message: ----------- Updated TCDB_Overview.png Modified Paths: -------------- Schema/TCDB_Overview.png Modified: Schema/TCDB_Overview.png =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <m_h...@us...> - 2006-07-11 22:27:12
|
Revision: 101 Author: m_hildebrand Date: 2006-07-11 15:27:04 -0700 (Tue, 11 Jul 2006) ViewCVS: http://svn.sourceforge.net/tcdb/?rev=101&view=rev Log Message: ----------- Finished authentication stuff and started work on Assignments Modified Paths: -------------- Website/App_Code/TCDB_Common.cs Website/App_Code/TCDB_Users.cs Website/App_Code/dadDataSet.xsd Website/Global.asax Website/Includes/Assignments.ascx Website/Includes/AssignmentsTree.ascx Website/Includes/Authenticate.ascx Website/Includes/Header.ascx Website/TCDB.master Website/web.config Modified: Website/App_Code/TCDB_Common.cs =================================================================== --- Website/App_Code/TCDB_Common.cs 2006-07-11 21:36:18 UTC (rev 100) +++ Website/App_Code/TCDB_Common.cs 2006-07-11 22:27:04 UTC (rev 101) @@ -31,6 +31,10 @@ public static string USER_ANONYMOUSCELLPHONE = ""; public static bool USER_ANONYMOUSAUTOMATION = false; + public static string CODE_USER = "u"; + public static string CODE_AI = "ai"; + public static string CODE_WO = "wo"; + public static string USER_AI_NAME = "Assign permissions: "; public static string USER_AI_DESCRIPTION = "Please assign appropriate permissions for new user: "; Modified: Website/App_Code/TCDB_Users.cs =================================================================== --- Website/App_Code/TCDB_Users.cs 2006-07-11 21:36:18 UTC (rev 100) +++ Website/App_Code/TCDB_Users.cs 2006-07-11 22:27:04 UTC (rev 101) @@ -10,7 +10,6 @@ using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; - using System.Security; using System.Collections; using System.Collections.Generic; @@ -225,20 +224,6 @@ private List<TCDB_TestCase> p_testCasesEdited; */ - public List<TCDB_Assignment> ASSIGNMENTS - { - // TODO: This list needs to be able to reflect filters! - get - { - if (assignments == null) - { - assignments = TCDB_AssignmentDB.TCDB_GetAssignmentList(TCDB_Constant.ASSIGNMENT_TYPE_BOTH, - TCDB_Constant.ASSIGNMENT_FINISHEDANDUNFINISHED, ID, null); - } - return assignments; - } - } - public TCDB_User() { p_id = TCDB_Constant.USER_ANONYMOUSUSERID; Modified: Website/App_Code/dadDataSet.xsd =================================================================== --- Website/App_Code/dadDataSet.xsd 2006-07-11 21:36:18 UTC (rev 100) +++ Website/App_Code/dadDataSet.xsd 2006-07-11 22:27:04 UTC (rev 101) @@ -6,8 +6,6 @@ <Connections> <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="dadConnectionString" ConnectionStringObject="" IsAppSettingsProperty="True" Modifier="Assembly" Name="dadConnectionString (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.dadConnectionString.ConnectionString" Provider="System.Data.SqlClient"> </Connection> - <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="tcdbConnectionString" ConnectionStringObject="" IsAppSettingsProperty="True" Modifier="Assembly" Name="tcdbConnectionString (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.tcdbConnectionString.ConnectionString" Provider="System.Data.SqlClient"> - </Connection> </Connections> <Tables> <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="db_usersTableAdapter" GeneratorDataComponentClassName="db_usersTableAdapter" Name="db_users" UserDataComponentName="db_usersTableAdapter"> @@ -267,7 +265,7 @@ </TableAdapter> <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="db_notesTableAdapter" GeneratorDataComponentClassName="db_notesTableAdapter" Name="db_notes" UserDataComponentName="db_notesTableAdapter"> <MainSource> - <DbSource ConnectionRef="tcdbConnectionString (Web.config)" DbObjectName="tcdb.dbo.sel_notes" DbObjectType="StoredProcedure" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="False" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="False" UserGetMethodName="GetData" UserSourceName="Fill"> + <DbSource ConnectionRef="dadConnectionString (Web.config)" DbObjectName="tcdb.dbo.sel_notes" DbObjectType="StoredProcedure" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="False" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="False" UserGetMethodName="GetData" UserSourceName="Fill"> <SelectCommand> <DbCommand CommandType="StoredProcedure" ModifiedByUser="False"> <CommandText>dbo.sel_notes</CommandText> @@ -294,7 +292,7 @@ </TableAdapter> <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="db_assignmentsTableAdapter" GeneratorDataComponentClassName="db_assignmentsTableAdapter" Name="db_assignments" UserDataComponentName="db_assignmentsTableAdapter"> <MainSource> - <DbSource ConnectionRef="tcdbConnectionString (Web.config)" DbObjectName="tcdb.dbo.sel_assignments" DbObjectType="StoredProcedure" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="False" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="False" UserGetMethodName="GetData" UserSourceName="Fill"> + <DbSource ConnectionRef="dadConnectionString (Web.config)" DbObjectName="tcdb.dbo.sel_assignments" DbObjectType="StoredProcedure" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="False" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="False" UserGetMethodName="GetData" UserSourceName="Fill"> <SelectCommand> <DbCommand CommandType="StoredProcedure" ModifiedByUser="False"> <CommandText>dbo.sel_assignments</CommandText> @@ -331,7 +329,6 @@ <Mapping SourceColumn="WOPass" DataSetColumn="WOPass" /> <Mapping SourceColumn="WOFail" DataSetColumn="WOFail" /> <Mapping SourceColumn="WOError" DataSetColumn="WOError" /> - <Mapping SourceColumn="aName" DataSetColumn="aName" /> </Mappings> <Sources> </Sources> @@ -524,7 +521,6 @@ </xs:simpleType> </xs:element> <xs:element name="childID" msdata:ReadOnly="true" msprop:Generator_UserColumnName="childID" msprop:Generator_ColumnPropNameInRow="childID" msprop:Generator_ColumnVarNameInTable="columnchildID" msprop:Generator_ColumnPropNameInTable="childIDColumn" type="xs:int" minOccurs="0" /> - <xs:element name="childID" msdata:ReadOnly="true" msprop:Generator_UserColumnName="childID" msprop:Generator_ColumnPropNameInRow="childID" msprop:Generator_ColumnVarNameInTable="columnchildID" msprop:Generator_ColumnPropNameInTable="childIDColumn" type="xs:int" minOccurs="0" /> <xs:element name="creator" msdata:ReadOnly="true" msprop:Generator_UserColumnName="creator" msprop:Generator_ColumnPropNameInRow="creator" msprop:Generator_ColumnVarNameInTable="columncreator" msprop:Generator_ColumnPropNameInTable="creatorColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> @@ -532,13 +528,6 @@ </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="creator" msdata:ReadOnly="true" msprop:Generator_UserColumnName="creator" msprop:Generator_ColumnPropNameInRow="creator" msprop:Generator_ColumnVarNameInTable="columncreator" msprop:Generator_ColumnPropNameInTable="creatorColumn" minOccurs="0"> - <xs:simpleType> - <xs:restriction base="xs:string"> - <xs:maxLength value="49" /> - </xs:restriction> - </xs:simpleType> - </xs:element> <xs:element name="assigned" msdata:ReadOnly="true" msprop:Generator_UserColumnName="assigned" msprop:Generator_ColumnPropNameInRow="assigned" msprop:Generator_ColumnVarNameInTable="columnassigned" msprop:Generator_ColumnPropNameInTable="assignedColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> Modified: Website/Global.asax =================================================================== --- Website/Global.asax 2006-07-11 21:36:18 UTC (rev 100) +++ Website/Global.asax 2006-07-11 22:27:04 UTC (rev 101) @@ -1,4 +1,5 @@ <%@ Application Language="C#" %> +<%@ Import Namespace="TCDB_Common" %> <%@ Import Namespace="TCDB_Users" %> <script runat="server"> @@ -13,6 +14,7 @@ try { user = TCDB_UserDB.TCDB_GetUserInfo((int)(Session["userID"])); + if (user.ID != TCDB_Constant.USER_ANONYMOUSUSERID) user.ISAUTHENTICATED = true; } catch { Modified: Website/Includes/Assignments.ascx =================================================================== --- Website/Includes/Assignments.ascx 2006-07-11 21:36:18 UTC (rev 100) +++ Website/Includes/Assignments.ascx 2006-07-11 22:27:04 UTC (rev 101) @@ -1,11 +1,14 @@ <%@ Control Language="C#" AutoEventWireup="true" %> +<%@ Import Namespace="System.Collections.Generic" %> <%@ Import Namespace="System.Data" %> <%@ Import Namespace="System.Data.SqlClient" %> +<%@ Import Namespace="TCDB_Assignments" %> +<%@ Import Namespace="TCDB_Common" %> -<script runat=server> +<script runat="server"> //DateTime curToDate, curFromDueDate, curToDueDate, curFromDate, curToFinishedDate, curFromFinishedDate; String id = HttpContext.Current.Request.QueryString["id"]; - + protected void Page_Load(object sender, EventArgs e) { /* @@ -34,95 +37,102 @@ private void filter(GridViewRow gRow) { - if (gRow.RowType == DataControlRowType.DataRow) + if (gRow.RowType != DataControlRowType.DataRow) { - DataRowView data = (DataRowView)gRow.DataItem; - if (data != null) - { - GridView1.Visible = true; - gRow.Visible = true; + return; + } + + DataRowView data = (DataRowView)gRow.DataItem; + if (data == null) + { + return; + } + + AssignmentsGridView.Visible = true; + gRow.Visible = true; - // Set priority image - bool priority = Convert.ToBoolean(data["highPriority"].ToString()); - if (priority) - gRow.Cells[0].Text = "<img src=\"Images/exclamation.jpg\" style=\"width: 23px; height: 19px\" />"; - else - gRow.Cells[0].Text = "<img src=\"Images/no-exclamation.jpg\" style=\"width: 23px; height: 19px\" />"; + // Set priority image + bool priority = Convert.ToBoolean(data["highPriority"].ToString()); + if (priority) + gRow.Cells[0].Text = "<div class=\"normal_priority\" />"; + else + gRow.Cells[0].Text = "<div class=\"high_priority\" />"; - // Set Hyperlink URL - String id = data["childID"].ToString(); - String type = data["aType"].ToString(); - String name = data["aName"].ToString(); - if (type == TCDB_Common.TCDB_Constant.ASSIGNMENT_TYPE_ACTIONITEM) - gRow.Cells[1].Text = "<a href=\"ActionItem.aspx?id=" + id + "\">" + name + "</a>"; - else if (type == TCDB_Common.TCDB_Constant.ASSIGNMENT_TYPE_WORKORDER) - gRow.Cells[1].Text = "<a href=\"WorkOrder.aspx?id=" + id + "\">" + name + "</a>"; + // Set Hyperlink URL + String id = data["childID"].ToString(); + String type = data["aType"].ToString(); + String name = data["aName"].ToString(); + if (type == TCDB_Common.TCDB_Constant.ASSIGNMENT_TYPE_ACTIONITEM) + gRow.Cells[1].Text = "<a href=\"ActionItem.aspx?ai=" + id + "\">" + name + "</a>"; + else if (type == TCDB_Common.TCDB_Constant.ASSIGNMENT_TYPE_WORKORDER) + gRow.Cells[1].Text = "<a href=\"WorkOrder.aspx?wo=" + id + "\">" + name + "</a>"; - if (cboPriorityFilter.Checked) - { - switch (priority) - { - case true: - if (!cboHighPriority.Checked) - gRow.Visible = false; - break; - case false: - if (!cboLowPriority.Checked) - gRow.Visible = false; - break; - } - } - - String status = data["statusName"].ToString(); - if (gRow.Visible && cboStatusFilter.Checked) - { - if (!cboFilterNotStarted.Checked && status == "Not Started") + if (cboPriorityFilter.Checked) + { + switch (priority) + { + case true: + if (!cboHighPriority.Checked) gRow.Visible = false; - else if (!cboFilterStarted.Checked && status == "Started") + break; + case false: + if (!cboLowPriority.Checked) gRow.Visible = false; - else if (!cboShowCompleted.Checked && status == "Completed") - gRow.Visible = false; - else if (!cboFilterInactive.Checked && status == "Inactive") - gRow.Visible = false; - } - if (gRow.Visible && cboTypeFilter.Checked) - { - if (cboShowActionItems.Checked) - GridView1.Visible = true; - else - GridView1.Visible = false; - }/* - if (gRow.Visible && cboDateFilter.Checked) - { - DateTime dateAssigned = Convert.ToDateTime(data["dateAssigned"]); - DateTime to = toDate.DateValue; - DateTime from = fromDate.DateValue; + break; + } + } - if ((dateAssigned < from) || (dateAssigned > to)) - gRow.Visible = false; - } - if (gRow.Visible && cboDueFilter.Checked) - { - DateTime dateAssigned = Convert.ToDateTime(data["dateAssigned"]); - DateTime to = toDueDate.DateValue; - DateTime from = fromDueDate.DateValue; + String status = data["statusName"].ToString(); + if (gRow.Visible && cboStatusFilter.Checked) + { + if (!cboFilterNotStarted.Checked && status == "Not Started") + gRow.Visible = false; + else if (!cboFilterStarted.Checked && status == "Started") + gRow.Visible = false; + else if (!cboShowCompleted.Checked && status == "Completed") + gRow.Visible = false; + else if (!cboFilterInactive.Checked && status == "Inactive") + gRow.Visible = false; + } + + if (gRow.Visible && cboTypeFilter.Checked) + { + if (cboShowActionItems.Checked) + AssignmentsGridView.Visible = true; + else + AssignmentsGridView.Visible = false; + } + /* + if (gRow.Visible && cboDateFilter.Checked) + { + DateTime dateAssigned = Convert.ToDateTime(data["dateAssigned"]); + DateTime to = toDate.DateValue; + DateTime from = fromDate.DateValue; - if ((dateAssigned < from) || (dateAssigned > to)) - gRow.Visible = false; - } - if (gRow.Visible && cboFinishedFilter.Checked) - { - DateTime dateAssigned = Convert.ToDateTime(data["dateAssigned"]); - DateTime to = toFinishedDate.DateValue; - DateTime from = fromFinishedDate.DateValue; + if ((dateAssigned < from) || (dateAssigned > to)) + gRow.Visible = false; + } + if (gRow.Visible && cboDueFilter.Checked) + { + DateTime dateAssigned = Convert.ToDateTime(data["dateAssigned"]); + DateTime to = toDueDate.DateValue; + DateTime from = fromDueDate.DateValue; - if ((dateAssigned < from) || (dateAssigned > to)) - gRow.Visible = false; - }*/ - } + if ((dateAssigned < from) || (dateAssigned > to)) + gRow.Visible = false; } + if (gRow.Visible && cboFinishedFilter.Checked) + { + DateTime dateAssigned = Convert.ToDateTime(data["dateAssigned"]); + DateTime to = toFinishedDate.DateValue; + DateTime from = fromFinishedDate.DateValue; + + if ((dateAssigned < from) || (dateAssigned > to)) + gRow.Visible = false; + }*/ + } - protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) + protected void AssignmentsGridView_RowDataBound(object sender, GridViewRowEventArgs e) { filter(e.Row); } @@ -139,7 +149,7 @@ { cboFilterCompleted.Checked = false; } - GridView1.DataBind(); + AssignmentsGridView.DataBind(); } protected void cboStatusFilter_CheckedChanged(object sender, EventArgs e) { @@ -157,15 +167,15 @@ cboFilterStarted.Enabled = false; cboFilterInactive.Enabled = false; } - GridView1.DataBind(); + AssignmentsGridView.DataBind(); } protected void cboFilterStarted_CheckedChanged(object sender, EventArgs e) { - GridView1.DataBind(); + AssignmentsGridView.DataBind(); } protected void cboFilterNotStarted_CheckedChanged(object sender, EventArgs e) { - GridView1.DataBind(); + AssignmentsGridView.DataBind(); } protected void cboFilterCompleted_CheckedChanged(object sender, EventArgs e) { @@ -173,11 +183,11 @@ cboShowCompleted.Checked = true; else cboShowCompleted.Checked = false; - GridView1.DataBind(); + AssignmentsGridView.DataBind(); } protected void cboFilterInactive_CheckedChanged(object sender, EventArgs e) { - GridView1.DataBind(); + AssignmentsGridView.DataBind(); } protected void cboTypeFilter_CheckedChanged(object sender, EventArgs e) { @@ -191,22 +201,22 @@ cboShowActionItems.Enabled = false; cboShowWorkOrders.Enabled = false; } - GridView1.DataBind(); + AssignmentsGridView.DataBind(); } protected void cboShowActionItems_CheckedChanged(object sender, EventArgs e) { - GridView1.DataBind(); + AssignmentsGridView.DataBind(); } protected void cboShowWorkOrders_CheckedChanged(object sender, EventArgs e) { - GridView1.DataBind(); + AssignmentsGridView.DataBind(); }/* protected void fromDate_PreRender(object sender, EventArgs e) { if (curFromDate != fromDate.DateValue) { curFromDate = fromDate.DateValue; - GridView1.DataBind(); + AssignmentsGridView.DataBind(); } } protected void toDate_PreRender(object sender, EventArgs e) @@ -214,7 +224,7 @@ if (curToDate != toDate.DateValue) { curToDate = toDate.DateValue; - GridView1.DataBind(); + AssignmentsGridView.DataBind(); } } protected void cboDateFilter_CheckedChanged(object sender, EventArgs e) @@ -229,14 +239,14 @@ toDate.Enabled = false; fromDate.Enabled = false; } - GridView1.DataBind(); + AssignmentsGridView.DataBind(); } protected void fromDueDate_PreRender(object sender, EventArgs e) { if (curFromDueDate != fromDueDate.DateValue) { curFromDueDate = fromDueDate.DateValue; - GridView1.DataBind(); + AssignmentsGridView.DataBind(); } } protected void toDueDate_PreRender(object sender, EventArgs e) @@ -244,7 +254,7 @@ if (curToDueDate != toDueDate.DateValue) { curToDueDate = toDueDate.DateValue; - GridView1.DataBind(); + AssignmentsGridView.DataBind(); } } protected void fromFinishedDate_PreRender(object sender, EventArgs e) @@ -252,7 +262,7 @@ if (curFromFinishedDate != fromFinishedDate.DateValue) { curFromFinishedDate = fromFinishedDate.DateValue; - GridView1.DataBind(); + AssignmentsGridView.DataBind(); } } protected void toFinishedDate_PreRender(object sender, EventArgs e) @@ -260,7 +270,7 @@ if (curToFinishedDate != toFinishedDate.DateValue) { curToFinishedDate = toFinishedDate.DateValue; - GridView1.DataBind(); + AssignmentsGridView.DataBind(); } } protected void cboDueFilter_CheckedChanged(object sender, EventArgs e) @@ -275,7 +285,7 @@ toDueDate.Enabled = false; fromDueDate.Enabled = false; } - GridView1.DataBind(); + AssignmentsGridView.DataBind(); } protected void cboFinishedFilter_CheckedChanged(object sender, EventArgs e) { @@ -289,7 +299,7 @@ toFinishedDate.Enabled = false; fromFinishedDate.Enabled = false; } - GridView1.DataBind(); + AssignmentsGridView.DataBind(); } protected void fromDate_Init(object sender, EventArgs e) @@ -316,22 +326,24 @@ cboHighPriority.Enabled = false; cboLowPriority.Enabled = false; } - GridView1.DataBind(); + AssignmentsGridView.DataBind(); } protected void cboHighPriority_CheckedChanged(object sender, EventArgs e) { - GridView1.DataBind(); + AssignmentsGridView.DataBind(); } protected void cboLowPriority_CheckedChanged(object sender, EventArgs e) { - GridView1.DataBind(); + AssignmentsGridView.DataBind(); } + + </script> <table width="100%"> <tr> - <td align=center> + <td align="center"> <div id="MyAssignments"> <table width="100%" cellpadding="0" cellspacing="0" border="0"> <tr> @@ -339,7 +351,7 @@ <h2> My Assignments</h2> </td> - <td align="right" valign="bottom" style="padding-right: 20px;"> + <td align="right" valign="bottom" style="padding-right: 20px; width: 513px;"> <asp:CheckBox ID="cboShowCompleted" runat="server" Text="Show Completed" TextAlign="Left" AutoPostBack="true" OnCheckedChanged="cboShowCompleted_CheckedChanged" /></td> </tr> @@ -351,8 +363,17 @@ <div class="xboxcontent"> <div id="MyAssignmentsData"> <h3>My Assignments</h3> - <asp:GridView ID="GridView1" runat="server" GridLines="None" AllowPaging="True" AllowSorting="True" - AutoGenerateColumns="False" DataSourceID="AssignmentDataSource" RowStyle-CssClass="gridhover" OnRowDataBound="GridView1_RowDataBound" Width="100%" > + <asp:ObjectDataSource ID="AssignmentDataSource" runat="server" OldValuesParameterFormatString="original_{0}" + SelectMethod="GetData" TypeName="dadDataSetTableAdapters.db_assignmentsTableAdapter"> + <SelectParameters> + <asp:Parameter Name="aType" Type="String" /> + <asp:Parameter Name="finished" Type="Int32" /> + <asp:SessionParameter Name="assignedID" SessionField="id" Type="Int32" /> + <asp:Parameter Name="highPriority" Type="Boolean" /> + </SelectParameters> + </asp:ObjectDataSource> + <asp:GridView ID="AssignmentsGridView" runat="server" GridLines="None" AllowPaging="True" AllowSorting="True" + AutoGenerateColumns="False" RowStyle-CssClass="gridhover" DataSourceID="AssignmentDataSource" OnRowDataBound="AssignmentsGridView_RowDataBound" Width="100%" > <Columns> <asp:ImageField DataImageUrlField="highPriority" ShowHeader="False"> </asp:ImageField> @@ -384,15 +405,6 @@ </Columns> <RowStyle CssClass="gridhover" /> </asp:GridView> - <asp:ObjectDataSource ID="AssignmentDataSource" runat="server" OldValuesParameterFormatString="original_{0}" - SelectMethod="GetData" TypeName="dadDataSetTableAdapters.db_assignmentsTableAdapter"> - <SelectParameters> - <asp:Parameter Name="aType" Type="String" /> - <asp:Parameter Name="finished" Type="Int32" /> - <asp:SessionParameter Name="assignedID" SessionField="id" Type="Int32" /> - <asp:Parameter Name="highPriority" Type="Boolean" /> - </SelectParameters> - </asp:ObjectDataSource> </div> Modified: Website/Includes/AssignmentsTree.ascx =================================================================== --- Website/Includes/AssignmentsTree.ascx 2006-07-11 21:36:18 UTC (rev 100) +++ Website/Includes/AssignmentsTree.ascx 2006-07-11 22:27:04 UTC (rev 101) @@ -3,15 +3,12 @@ <%@ Import Namespace="System.Data" %> <%@ Import Namespace="System.Collections.Generic" %> <%@ Import Namespace="TCDB_Assignments" %> +<%@ Import Namespace="TCDB_Common" %> <%@ Import Namespace="TCDB_Users" %> <script runat="server">TCDB_User g_user = TCDB_UserDB.TCDB_GetUserInstance();</script> <script runat="server"> - protected void Page_Load(object sender, EventArgs e) - { - } - public void updateTree() { foreach (TreeNode node in AssignmentsTree.Nodes) @@ -24,9 +21,6 @@ protected void AssignmentsTree_TreeNodePopulate(object sender, TreeNodeEventArgs e) { - TreeView tv = (TreeView)sender; - DataSet ResultsDataSet = new DataSet(); - // Call the appropriate method to populate a node at a particular level. switch (e.Node.Depth) { @@ -56,13 +50,13 @@ if (a.ISACTIONITEM) { child.Value = a.ACTIONITEM.ID.ToString(); - child.NavigateUrl = "~/ActionItem.aspx?id="+child.Value; + child.NavigateUrl = "~/ActionItem.aspx?" + TCDB_Constant.CODE_AI + "=" + child.Value; } else { // TODO: Enable this! child.Value = a.WORKORDER.ID.ToString(); - child.NavigateUrl = "~/WorkOrder.aspx?id="+child.Value; + child.NavigateUrl = "~/WorkOrder.aspx?" + TCDB_Constant.CODE_WO + "=" + child.Value; } // Set the PopulateOnDemand property to true so that the child nodes can be @@ -87,26 +81,23 @@ { foreach (TCDB_User u in userList) { - if (u.USERNAME == "jjohnson") - { - // Create the new child node. - TreeNode child = new TreeNode(); - child.Text = u.FULLNAME; - child.Value = u.ID.ToString(); + // Create the new child node. + TreeNode child = new TreeNode(); + child.Text = u.FULLNAME; + child.Value = u.ID.ToString(); - // Set the PopulateOnDemand property to true so that the child nodes can be - // dynamically populated. - child.PopulateOnDemand = true; + // Set the PopulateOnDemand property to true so that the child nodes can be + // dynamically populated. + child.PopulateOnDemand = true; - // Set additional properties for the node. - child.SelectAction = TreeNodeSelectAction.Expand; - // TODO: Make sure that when the node is clicked on, it brings up a list of assignments - // for the specified user as the user would see them - child.NavigateUrl = "~/Assignments.aspx?id="+child.Value; + // Set additional properties for the node. + child.SelectAction = TreeNodeSelectAction.Expand; + // TODO: Make sure that when the node is clicked on, it brings up a list of assignments + // for the specified user as the user would see them + child.NavigateUrl = "~/Assignments.aspx?" + TCDB_Constant.CODE_USER + "=" + child.Value; - // Add the new child node to the ChildNodes collection of the parent node. - parent.ChildNodes.Add(child); - } + // Add the new child node to the ChildNodes collection of the parent node. + parent.ChildNodes.Add(child); } } } Modified: Website/Includes/Authenticate.ascx =================================================================== --- Website/Includes/Authenticate.ascx 2006-07-11 21:36:18 UTC (rev 100) +++ Website/Includes/Authenticate.ascx 2006-07-11 22:27:04 UTC (rev 101) @@ -80,7 +80,7 @@ } else { - int i = 1; + // TODO: Create this error message //ErrorLabel.Text = "Error logging in. Please try again."; } } @@ -111,6 +111,7 @@ // TODO: after implementing the commented out section, default admin = null TCDB_User admin = product.QALEAD; /* + // TODO: What happens if there is more than one user with this right? if (product.QALEAD.GetRights().HasRight(TCDB_Constant.RIGHTS_ASSIGNPERMISSION, product)) { admin = product.QALEAD; @@ -126,8 +127,9 @@ */ // Send an action item - TCDB_ActionItem ai = new TCDB_ActionItem(0, TCDB_Constant.USER_AI_NAME + newUser.FIRSTNAME, - TCDB_Constant.USER_AI_DESCRIPTION + newUser.FULLNAME, admin, newUser, 0); + + TCDB_ActionItem ai = new TCDB_ActionItem(0, TCDB_Constant.USER_AI_NAME + newUser.FIRSTNAME, + TCDB_Constant.USER_AI_DESCRIPTION + newUser.FULLNAME, newUser, admin, 0); if (!TCDB_ActionItemDB.TCDB_SaveActionItem(ai)) { // TODO: Populate the results control with text from the DB Modified: Website/Includes/Header.ascx =================================================================== --- Website/Includes/Header.ascx 2006-07-11 21:36:18 UTC (rev 100) +++ Website/Includes/Header.ascx 2006-07-11 22:27:04 UTC (rev 101) @@ -6,20 +6,10 @@ <%@ Import Namespace="TCDB_Users" %> <script runat="server">TCDB_User g_user = TCDB_UserDB.TCDB_GetUserInstance();</script> -<script runat="server"> - -</script> - <div id="Logo"></div> <% if (g_user.ID > TCDB_Constant.USER_ANONYMOUSUSERID) { - userID = (int)(Session["userID"]); - } - catch { } - if (userID > TCDB_Constant.USER_ANONYMOUSUSERID) - { - user = new TCDB_User((int)(Session["userID"])); %> <div id="MainMenu"> <div id="User"> Modified: Website/TCDB.master =================================================================== --- Website/TCDB.master 2006-07-11 21:36:18 UTC (rev 100) +++ Website/TCDB.master 2006-07-11 22:27:04 UTC (rev 101) @@ -17,7 +17,8 @@ <div id="HeaderContent"> <TCDB:Header runat="server" id="Header" /> </div> - <% if (g_user.ISAUTHENTICATED) + <% + if (g_user.ISAUTHENTICATED) { %> <div id="TreeContent"> <asp:ContentPlaceHolder ID="TreeContentPlaceHolder" runat="server"> Modified: Website/web.config =================================================================== --- Website/web.config 2006-07-11 21:36:18 UTC (rev 100) +++ Website/web.config 2006-07-11 22:27:04 UTC (rev 101) @@ -47,8 +47,6 @@ <connectionStrings> <add name="dadConnectionString" connectionString="Data Source=dad\sqlserver2005;Initial Catalog=tcdb;Persist Security Info=True;User ID=tcdb;Password=tcdbpw" providerName="System.Data.SqlClient" /> - <add name="tcdbConnectionString" connectionString="Data Source=dad\sqlserver2005;Initial Catalog=tcdb;Persist Security Info=True;User ID=sa;Password=Test123" - providerName="System.Data.SqlClient" /> </connectionStrings> <system.web> <authentication mode="Forms"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jon...@us...> - 2006-07-11 21:36:24
|
Revision: 100 Author: jon_r_johnson Date: 2006-07-11 14:36:18 -0700 (Tue, 11 Jul 2006) ViewCVS: http://svn.sourceforge.net/tcdb/?rev=100&view=rev Log Message: ----------- Updated stored procedure sel_users. Created table tcdb_history. Updated stored procedure ins_actionItem. Created stored procedure ins_history. Created stored procedure sel_history. Created stored procedure sel_version. Modified Paths: -------------- Schema/TCDBSQLServer2005.sql Modified: Schema/TCDBSQLServer2005.sql =================================================================== --- Schema/TCDBSQLServer2005.sql 2006-07-11 20:59:23 UTC (rev 99) +++ Schema/TCDBSQLServer2005.sql 2006-07-11 21:36:18 UTC (rev 100) @@ -75,47 +75,26 @@ |
From: <ro...@us...> - 2006-07-11 20:59:39
|
Revision: 99 Author: rouquin Date: 2006-07-11 13:59:23 -0700 (Tue, 11 Jul 2006) ViewCVS: http://svn.sourceforge.net/tcdb/?rev=99&view=rev Log Message: ----------- Added Product Admin page and a few little workflow buttons. Modified Paths: -------------- WebPrototype/Admin.aspx.cs WebPrototype/AdminMaster.master.cs WebPrototype/App_Data/ASPNETDB.MDF WebPrototype/App_Data/Database.mdf WebPrototype/App_Data/Database_log.LDF WebPrototype/App_Data/aspnetdb_log.ldf WebPrototype/testpassEdit.aspx WebPrototype/testpassEdit.aspx.cs WebPrototype/versionEdit.aspx WebPrototype/versionEdit.aspx.cs Added Paths: ----------- WebPrototype/ProductAdmin.aspx WebPrototype/ProductAdmin.aspx.cs Modified: WebPrototype/Admin.aspx.cs =================================================================== --- WebPrototype/Admin.aspx.cs 2006-07-11 19:44:06 UTC (rev 98) +++ WebPrototype/Admin.aspx.cs 2006-07-11 20:59:23 UTC (rev 99) @@ -8,6 +8,7 @@ using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; +using Microsoft.Web.UI; public partial class Admin : System.Web.UI.Page { @@ -15,5 +16,8 @@ { if (!User.Identity.IsAuthenticated || Profile.userID == "") Response.Redirect("Default.aspx"); + + UpdatePanel notes = (UpdatePanel)Master.FindControl("noteViewUpdatePanel"); + notes.Visible = false; } } Modified: WebPrototype/AdminMaster.master.cs =================================================================== --- WebPrototype/AdminMaster.master.cs 2006-07-11 19:44:06 UTC (rev 98) +++ WebPrototype/AdminMaster.master.cs 2006-07-11 20:59:23 UTC (rev 99) @@ -67,7 +67,7 @@ // Set additional properties for the node. newNode.SelectAction = TreeNodeSelectAction.Expand; - //newNode.NavigateUrl = "~/ProductEdit.aspx?id=" + newNode.Value; + newNode.NavigateUrl = "~/ProductAdmin.aspx?id=" + newNode.Value; // Add the new node to the ChildNodes collection of the parent node. e.Node.ChildNodes.Add(newNode); Modified: WebPrototype/App_Data/ASPNETDB.MDF =================================================================== (Binary files differ) Modified: WebPrototype/App_Data/Database.mdf =================================================================== (Binary files differ) Modified: WebPrototype/App_Data/Database_log.LDF =================================================================== (Binary files differ) Modified: WebPrototype/App_Data/aspnetdb_log.ldf =================================================================== (Binary files differ) Added: WebPrototype/ProductAdmin.aspx =================================================================== --- WebPrototype/ProductAdmin.aspx (rev 0) +++ WebPrototype/ProductAdmin.aspx 2006-07-11 20:59:23 UTC (rev 99) @@ -0,0 +1,16 @@ +<%@ Page Language="C#" MasterPageFile="~/AdminMaster.master" AutoEventWireup="true" + CodeFile="ProductAdmin.aspx.cs" Inherits="ProductAdmin" %> + +<%@ MasterType VirtualPath="~/AdminMaster.master" %> +<asp:Content ID="Content1" ContentPlaceHolderID="PageContent" runat="Server"> + <table width=700> + <tr> + <td align=center valign=middle> + <asp:LinkButton ID="newVersionBtn" runat="server" CommandName="newVersion" OnCommand="newVersion">New Version</asp:LinkButton> + <asp:LinkButton ID="newTagBtn" runat="server" CommandName="newTag" OnCommand="newTag">newTag</asp:LinkButton> + <asp:LinkButton ID="newStatusBtn" runat="server" CommandName="newStatus" OnCommand="newStatus">New Status</asp:LinkButton> + <asp:LinkButton ID="newLabBtn" runat="server" CommandName="newLab" OnCommand="newLab">New Lab</asp:LinkButton> + <asp:LinkButton ID="newUserRightBtn" runat="server" CommandName="newUserRight" OnCommand="newUserRight">newUserRight</asp:LinkButton></td> + </tr> + </table> +</asp:Content> Added: WebPrototype/ProductAdmin.aspx.cs =================================================================== --- WebPrototype/ProductAdmin.aspx.cs (rev 0) +++ WebPrototype/ProductAdmin.aspx.cs 2006-07-11 20:59:23 UTC (rev 99) @@ -0,0 +1,50 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; + +public partial class ProductAdmin : System.Web.UI.Page +{ + String id = HttpContext.Current.Request.QueryString["id"]; + + protected void Page_Load(object sender, EventArgs e) + { + if (id != null) + { + DummyDataSetTableAdapters.productTableAdapter adapter = new DummyDataSetTableAdapters.productTableAdapter(); + DummyDataSet.productDataTable product = adapter.GetAllProductData(); + + DummyDataSet.productRow row = product.FindByproductID(Convert.ToInt32(id)); + if (row != null) + Page.Title = row.name; + } + else + Response.Redirect("~/Admin.aspx"); + } + protected void newVersion(object sender, CommandEventArgs e) + { + Response.Redirect("~/versionEdit.aspx?mode=new&product=" + id); + } + protected void newTag(object sender, CommandEventArgs e) + { + Response.Redirect("~/tagEdit.aspx?mode=new&product=" + id); + } + protected void newStatus(object sender, CommandEventArgs e) + { + Response.Redirect("~/statusEdit.aspx?mode=new&product=" + id); + } + protected void newLab(object sender, CommandEventArgs e) + { + Response.Redirect("~/labEdit.aspx?mode=new&product=" + id); + } + protected void newUserRight(object sender, CommandEventArgs e) + { + Response.Redirect("~/userRightsEdit.aspx?mode=new&product=" + id); + } +} Modified: WebPrototype/testpassEdit.aspx =================================================================== --- WebPrototype/testpassEdit.aspx 2006-07-11 19:44:06 UTC (rev 98) +++ WebPrototype/testpassEdit.aspx 2006-07-11 20:59:23 UTC (rev 99) @@ -90,7 +90,7 @@ <td align=left style="width: 100px"> <strong>Version: </strong> <asp:DropDownList ID="versionList" runat="server" DataSourceID=VersionDataSource - DataTextField=number DataValueField=versionID SelectedValue='<%# Bind("versionID") %>' /> + DataTextField=number DataValueField=versionID SelectedValue='<%# Bind("versionID") %>' OnDataBound=versionList_DataBound /> </td> </tr> <tr> Modified: WebPrototype/testpassEdit.aspx.cs =================================================================== --- WebPrototype/testpassEdit.aspx.cs 2006-07-11 19:44:06 UTC (rev 98) +++ WebPrototype/testpassEdit.aspx.cs 2006-07-11 20:59:23 UTC (rev 99) @@ -15,6 +15,7 @@ { int id = Convert.ToInt32(HttpContext.Current.Request.QueryString["id"]); String mode = HttpContext.Current.Request.QueryString["mode"]; + String version = HttpContext.Current.Request.QueryString["version"]; protected void Page_Load(object sender, EventArgs e) { @@ -60,4 +61,12 @@ notes.Visible = true; } + protected void versionList_DataBound(object sender, EventArgs e) + { + if (FormView1.CurrentMode==FormViewMode.Insert && version != null) + { + DropDownList versionList = (DropDownList)sender; + versionList.SelectedValue = version; + } + } } Modified: WebPrototype/versionEdit.aspx =================================================================== --- WebPrototype/versionEdit.aspx 2006-07-11 19:44:06 UTC (rev 98) +++ WebPrototype/versionEdit.aspx 2006-07-11 20:59:23 UTC (rev 99) @@ -55,7 +55,12 @@ Text="Delete"></asp:LinkButton> </td> <td colspan=3> - </td> + + <asp:LinkButton ID="newTestPass" runat="server" CommandArgument='<%# Eval("versionID") %>' + OnCommand="newTestPass">New Test Pass</asp:LinkButton> + + <asp:LinkButton ID="newBuild" runat="server" CommandArgument='<%# Eval("versionID") %>' + OnCommand="newBuild" PostBackUrl="~/buildEdit.aspx?mode=new">New Build</asp:LinkButton></td> </tr> </table> </div> @@ -135,7 +140,7 @@ <td colspan=4 align=left style="height: 18px"> <strong>Product:</strong> <asp:DropDownList ID="productList" runat="server" DataSourceID="ProductDataSource" - DataTextField="name" DataValueField="productID" SelectedValue='<%# Bind("productID") %>'> + DataTextField="name" DataValueField="productID" SelectedValue='<%# Bind("productID") %>' OnDataBound=productList_DataBound> </asp:DropDownList><asp:ObjectDataSource ID="ProductDataSource" runat="server" OldValuesParameterFormatString="original_{0}" SelectMethod="GetAllProductData" TypeName="DummyDataSetTableAdapters.productTableAdapter"> </asp:ObjectDataSource> Modified: WebPrototype/versionEdit.aspx.cs =================================================================== --- WebPrototype/versionEdit.aspx.cs 2006-07-11 19:44:06 UTC (rev 98) +++ WebPrototype/versionEdit.aspx.cs 2006-07-11 20:59:23 UTC (rev 99) @@ -14,6 +14,7 @@ { String id = HttpContext.Current.Request.QueryString["id"]; String mode = HttpContext.Current.Request.QueryString["mode"]; + String product = HttpContext.Current.Request.QueryString["product"]; protected void Page_Load(object sender, EventArgs e) { @@ -68,4 +69,20 @@ active.Checked = Boolean.Parse(row["active"].ToString()); } } + protected void newTestPass(object sender, CommandEventArgs e) + { + Response.Redirect("~/TestPassEdit.aspx?mode=new&version=" + e.CommandArgument); + } + protected void newBuild(object sender, CommandEventArgs e) + { + Response.Redirect("~/BuildEdit.aspx?mode=new&version=" + e.CommandArgument); + } + protected void productList_DataBound(object sender, EventArgs e) + { + if (FormView1.CurrentMode==FormViewMode.Insert && product != null) + { + DropDownList productList = (DropDownList)sender; + productList.SelectedValue = product; + } + } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ro...@us...> - 2006-07-11 19:44:13
|
Revision: 98 Author: rouquin Date: 2006-07-11 12:44:06 -0700 (Tue, 11 Jul 2006) ViewCVS: http://svn.sourceforge.net/tcdb/?rev=98&view=rev Log Message: ----------- It's not beautiful, but the assignments chart is there. It needs some css work done on it. Also needs a datePicker control added for the date filters. Otherwise things seem to be working alright. Modified Paths: -------------- Website/App_Code/TCDB_Assignments.cs Website/App_Code/TCDB_Users.cs Website/App_Code/dadDataSet.xsd Website/App_Code/dadDataSet.xss Website/Assignments.aspx Website/Includes/Assignments.ascx Website/Includes/AssignmentsTree.ascx Website/Includes/Header.ascx Modified: Website/App_Code/TCDB_Assignments.cs =================================================================== --- Website/App_Code/TCDB_Assignments.cs 2006-07-11 19:32:56 UTC (rev 97) +++ Website/App_Code/TCDB_Assignments.cs 2006-07-11 19:44:06 UTC (rev 98) @@ -55,12 +55,12 @@ assignment.WOFAIL = TCDB_Help.TCDB_DB_IntParse(dr["WOFail"], 0); assignment.WOERROR = TCDB_Help.TCDB_DB_IntParse(dr["WOError"], 0); } - assignment.NAME = TCDB_Help.TCDB_DB_StringParse(dr["aName"], ""); + assignment.NAME = TCDB_Help.TCDB_DB_StringParse(dr["aName"], ""); assignment.CREATOR = TCDB_Help.TCDB_DB_StringParse(dr["creator"], ""); assignment.ASSIGNED = TCDB_Help.TCDB_DB_StringParse(dr["assigned"], ""); assignment.DATEASSIGNED = TCDB_Help.TCDB_DB_DateTimeParse(dr["dateAssigned"], TCDB_Constant.ASSIGNMENT_DEFAULTDATEASSIGNED); - assignment.DUEDATE = TCDB_Help.TCDB_DB_DateTimeParse(dr["dueDate"], TCDB_Constant.ASSIGNMENT_DEFAULTDUEDATE); + assignment.DATEDUE = TCDB_Help.TCDB_DB_DateTimeParse(dr["dateDue"], TCDB_Constant.ASSIGNMENT_DEFAULTDUEDATE); assignment.DATEFINISHED = TCDB_Help.TCDB_DB_DateTimeParse(dr["dateFinished"], TCDB_Constant.ASSIGNMENT_DEFAULTDATEFINISHED); assignment.HIGHPRIORITY = TCDB_Help.TCDB_DB_BoolParse(dr["highPriority"], TCDB_Constant.ASSIGNMENT_DEFAULTHIGHPRIORITY); assignment.STATUSNAME = TCDB_Help.TCDB_DB_StringParse(dr["statusName"], ""); @@ -142,7 +142,10 @@ return ai; * */ - return new TCDB_WorkOrder(); + TCDB_WorkOrder wo = new TCDB_WorkOrder(); + wo.ID = id; + + return wo; } } @@ -154,7 +157,7 @@ private string p_assigned; private DateTime p_dateAssigned; private DateTime p_dateFinished; - private DateTime p_dueDate; + private DateTime p_dateDue; private TCDB_WorkOrder p_workOrder; private TCDB_ActionItem p_actionItem; private bool p_highPriority; @@ -173,7 +176,7 @@ p_assigned = ""; p_dateAssigned = TCDB_Constant.ASSIGNMENT_DEFAULTDATEASSIGNED; p_dateFinished = TCDB_Constant.ASSIGNMENT_DEFAULTDATEFINISHED; - p_dueDate = TCDB_Constant.ASSIGNMENT_DEFAULTDUEDATE; + p_dateDue = TCDB_Constant.ASSIGNMENT_DEFAULTDUEDATE; p_workOrder = null; p_actionItem = null; p_highPriority = false; @@ -221,10 +224,10 @@ set { p_dateFinished = value; } } - public DateTime DUEDATE + public DateTime DATEDUE { - get { return p_dueDate; } - set { p_dueDate = value; } + get { return p_dateDue; } + set { p_dateDue = value; } } public TCDB_WorkOrder WORKORDER @@ -377,8 +380,45 @@ public class TCDB_WorkOrder { + private int p_id; + private string p_name; + private int p_creatorID; + public TCDB_WorkOrder() { + p_id = 0; + p_name = ""; + p_creatorID = 0; } + + public TCDB_WorkOrder(int id, string name, string description, int creatorID) + { + p_id = id; + p_name = name; + p_creatorID = creatorID; + } + + public int ID + { + get { return p_id; } + set { p_id = value; } + } + + public string NAME + { + get { return p_name; } + set { p_name = value; } + } + + public int CREATORID + { + get { return p_creatorID; } + set { p_creatorID = value; } + } + + public override string ToString() + { + return NAME; + } } } \ No newline at end of file Modified: Website/App_Code/TCDB_Users.cs =================================================================== --- Website/App_Code/TCDB_Users.cs 2006-07-11 19:32:56 UTC (rev 97) +++ Website/App_Code/TCDB_Users.cs 2006-07-11 19:44:06 UTC (rev 98) @@ -225,6 +225,20 @@ private List<TCDB_TestCase> p_testCasesEdited; */ + public List<TCDB_Assignment> ASSIGNMENTS + { + // TODO: This list needs to be able to reflect filters! + get + { + if (assignments == null) + { + assignments = TCDB_AssignmentDB.TCDB_GetAssignmentList(TCDB_Constant.ASSIGNMENT_TYPE_BOTH, + TCDB_Constant.ASSIGNMENT_FINISHEDANDUNFINISHED, ID, null); + } + return assignments; + } + } + public TCDB_User() { p_id = TCDB_Constant.USER_ANONYMOUSUSERID; @@ -423,4 +437,4 @@ get { return m_value; } } } -} \ No newline at end of file +} Modified: Website/App_Code/dadDataSet.xsd =================================================================== --- Website/App_Code/dadDataSet.xsd 2006-07-11 19:32:56 UTC (rev 97) +++ Website/App_Code/dadDataSet.xsd 2006-07-11 19:44:06 UTC (rev 98) @@ -317,6 +317,7 @@ <Mappings> <Mapping SourceColumn="aType" DataSetColumn="aType" /> <Mapping SourceColumn="childID" DataSetColumn="childID" /> + <Mapping SourceColumn="aName" DataSetColumn="aName" /> <Mapping SourceColumn="creator" DataSetColumn="creator" /> <Mapping SourceColumn="assigned" DataSetColumn="assigned" /> <Mapping SourceColumn="assignedID" DataSetColumn="assignedID" /> @@ -512,7 +513,7 @@ </xs:sequence> </xs:complexType> </xs:element> - <xs:element name="db_assignments" msprop:Generator_UserTableName="db_assignments" msprop:Generator_RowDeletedName="db_assignmentsRowDeleted" msprop:Generator_RowChangedName="db_assignmentsRowChanged" msprop:Generator_RowClassName="db_assignmentsRow" msprop:Generator_RowChangingName="db_assignmentsRowChanging" msprop:Generator_RowEvArgName="db_assignmentsRowChangeEvent" msprop:Generator_RowEvHandlerName="db_assignmentsRowChangeEventHandler" msprop:Generator_TableClassName="db_assignmentsDataTable" msprop:Generator_TableVarName="tabledb_assignments" msprop:Generator_RowDeletingName="db_assignmentsRowDeleting" msprop:Generator_TablePropName="db_assignments"> + <xs:element name="db_assignments" msprop:Generator_UserTableName="db_assignments" msprop:Generator_RowDeletedName="db_assignmentsRowDeleted" msprop:Generator_TableClassName="db_assignmentsDataTable" msprop:Generator_RowChangedName="db_assignmentsRowChanged" msprop:Generator_RowClassName="db_assignmentsRow" msprop:Generator_RowChangingName="db_assignmentsRowChanging" msprop:Generator_RowEvArgName="db_assignmentsRowChangeEvent" msprop:Generator_RowEvHandlerName="db_assignmentsRowChangeEventHandler" msprop:Generator_TablePropName="db_assignments" msprop:Generator_TableVarName="tabledb_assignments" msprop:Generator_RowDeletingName="db_assignmentsRowDeleting"> <xs:complexType> <xs:sequence> <xs:element name="aType" msdata:ReadOnly="true" msprop:Generator_UserColumnName="aType" msprop:Generator_ColumnPropNameInRow="aType" msprop:Generator_ColumnVarNameInTable="columnaType" msprop:Generator_ColumnPropNameInTable="aTypeColumn" minOccurs="0"> @@ -523,9 +524,17 @@ </xs:simpleType> </xs:element> <xs:element name="childID" msdata:ReadOnly="true" msprop:Generator_UserColumnName="childID" msprop:Generator_ColumnPropNameInRow="childID" msprop:Generator_ColumnVarNameInTable="columnchildID" msprop:Generator_ColumnPropNameInTable="childIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="childID" msdata:ReadOnly="true" msprop:Generator_UserColumnName="childID" msprop:Generator_ColumnPropNameInRow="childID" msprop:Generator_ColumnVarNameInTable="columnchildID" msprop:Generator_ColumnPropNameInTable="childIDColumn" type="xs:int" minOccurs="0" /> <xs:element name="creator" msdata:ReadOnly="true" msprop:Generator_UserColumnName="creator" msprop:Generator_ColumnPropNameInRow="creator" msprop:Generator_ColumnVarNameInTable="columncreator" msprop:Generator_ColumnPropNameInTable="creatorColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> + <xs:maxLength value="255" /> + </xs:restriction> + </xs:simpleType> + </xs:element> + <xs:element name="creator" msdata:ReadOnly="true" msprop:Generator_UserColumnName="creator" msprop:Generator_ColumnPropNameInRow="creator" msprop:Generator_ColumnVarNameInTable="columncreator" msprop:Generator_ColumnPropNameInTable="creatorColumn" minOccurs="0"> + <xs:simpleType> + <xs:restriction base="xs:string"> <xs:maxLength value="49" /> </xs:restriction> </xs:simpleType> @@ -595,4 +604,4 @@ <xs:field xpath="mstns:noteID" /> </xs:unique> </xs:element> -</xs:schema> \ No newline at end of file +</xs:schema> Modified: Website/App_Code/dadDataSet.xss =================================================================== --- Website/App_Code/dadDataSet.xss 2006-07-11 19:32:56 UTC (rev 97) +++ Website/App_Code/dadDataSet.xss 2006-07-11 19:44:06 UTC (rev 98) @@ -11,7 +11,7 @@ <Shape ID="DesignTable:db_actionItems" ZOrder="4" X="634" Y="68" Height="241" Width="232" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="194" /> <Shape ID="DesignTable:db_status" ZOrder="3" X="85" Y="307" Height="105" Width="272" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="58" /> <Shape ID="DesignTable:db_notes" ZOrder="2" X="380" Y="319" Height="139" Width="208" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="92" /> - <Shape ID="DesignTable:db_assignments" ZOrder="1" X="631" Y="318" Height="275" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="228" /> + <Shape ID="DesignTable:db_assignments" ZOrder="1" X="623" Y="324" Height="275" Width="300" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="228" /> </Shapes> <Connectors /> </DiagramLayout> \ No newline at end of file Modified: Website/Assignments.aspx =================================================================== --- Website/Assignments.aspx 2006-07-11 19:32:56 UTC (rev 97) +++ Website/Assignments.aspx 2006-07-11 19:44:06 UTC (rev 98) @@ -1,10 +1,12 @@ <%@ Page Language="C#" MasterPageFile="~/TCDB.master" AutoEventWireup="true" Title="Untitled Page" %> <%@ Register Src="~/Includes/AssignmentsTree.ascx" TagPrefix="assignment" TagName="Tree" %> +<%@ Register Src="~/Includes/Assignments.ascx" TagPrefix="assignment" TagName="Form" %> <asp:Content ID="TreeContent" ContentPlaceHolderID="TreeContentPlaceHolder" runat="Server"> <assignment:Tree runat="Server" id="Tree" /> </asp:Content> <asp:Content ID="MainContent" ContentPlaceHolderID="MainContentPlaceHolder" runat="Server"> + <assignment:Form ID="List" runat=server /> </asp:Content> <asp:Content ID="NotesContent" ContentPlaceHolderID="NotesContentPlaceHolder" runat="Server"> </asp:Content> Modified: Website/Includes/Assignments.ascx =================================================================== --- Website/Includes/Assignments.ascx 2006-07-11 19:32:56 UTC (rev 97) +++ Website/Includes/Assignments.ascx 2006-07-11 19:44:06 UTC (rev 98) @@ -1,3 +1,644 @@ <%@ Control Language="C#" AutoEventWireup="true" %> -<%@ Import Namespace="TCDB_Users" %> -<script runat="server">TCDB_User g_user = TCDB_UserDB.TCDB_GetUserInstance();</script> +<%@ Import Namespace="System.Data" %> +<%@ Import Namespace="System.Data.SqlClient" %> + +<script runat=server> + //DateTime curToDate, curFromDueDate, curToDueDate, curFromDate, curToFinishedDate, curFromFinishedDate; + String id = HttpContext.Current.Request.QueryString["id"]; + + protected void Page_Load(object sender, EventArgs e) + { + /* + if (!User.Identity.IsAuthenticated || Profile.userID == "") + Response.Redirect("default.aspx"); + + UpdatePanel notes = (UpdatePanel)Master.FindControl("noteViewUpdatePanel"); + notes.Visible = false; + */ + if (id == null) + { + /* + if (User.IsInRole("Admin")) + { + AssignmentDataSource.SelectMethod = "GetAllAssignmentNames"; + AssignmentDataSource.SelectParameters.Clear(); + } + else + id = Profile.userID; + */ + } + else + Session.Add("id", id); + + } + + private void filter(GridViewRow gRow) + { + if (gRow.RowType == DataControlRowType.DataRow) + { + DataRowView data = (DataRowView)gRow.DataItem; + if (data != null) + { + GridView1.Visible = true; + gRow.Visible = true; + + // Set priority image + bool priority = Convert.ToBoolean(data["highPriority"].ToString()); + if (priority) + gRow.Cells[0].Text = "<img src=\"Images/exclamation.jpg\" style=\"width: 23px; height: 19px\" />"; + else + gRow.Cells[0].Text = "<img src=\"Images/no-exclamation.jpg\" style=\"width: 23px; height: 19px\" />"; + + // Set Hyperlink URL + String id = data["childID"].ToString(); + String type = data["aType"].ToString(); + String name = data["aName"].ToString(); + if (type == TCDB_Common.TCDB_Constant.ASSIGNMENT_TYPE_ACTIONITEM) + gRow.Cells[1].Text = "<a href=\"ActionItem.aspx?id=" + id + "\">" + name + "</a>"; + else if (type == TCDB_Common.TCDB_Constant.ASSIGNMENT_TYPE_WORKORDER) + gRow.Cells[1].Text = "<a href=\"WorkOrder.aspx?id=" + id + "\">" + name + "</a>"; + + if (cboPriorityFilter.Checked) + { + switch (priority) + { + case true: + if (!cboHighPriority.Checked) + gRow.Visible = false; + break; + case false: + if (!cboLowPriority.Checked) + gRow.Visible = false; + break; + } + } + + String status = data["statusName"].ToString(); + if (gRow.Visible && cboStatusFilter.Checked) + { + if (!cboFilterNotStarted.Checked && status == "Not Started") + gRow.Visible = false; + else if (!cboFilterStarted.Checked && status == "Started") + gRow.Visible = false; + else if (!cboShowCompleted.Checked && status == "Completed") + gRow.Visible = false; + else if (!cboFilterInactive.Checked && status == "Inactive") + gRow.Visible = false; + } + if (gRow.Visible && cboTypeFilter.Checked) + { + if (cboShowActionItems.Checked) + GridView1.Visible = true; + else + GridView1.Visible = false; + }/* + if (gRow.Visible && cboDateFilter.Checked) + { + DateTime dateAssigned = Convert.ToDateTime(data["dateAssigned"]); + DateTime to = toDate.DateValue; + DateTime from = fromDate.DateValue; + + if ((dateAssigned < from) || (dateAssigned > to)) + gRow.Visible = false; + } + if (gRow.Visible && cboDueFilter.Checked) + { + DateTime dateAssigned = Convert.ToDateTime(data["dateAssigned"]); + DateTime to = toDueDate.DateValue; + DateTime from = fromDueDate.DateValue; + + if ((dateAssigned < from) || (dateAssigned > to)) + gRow.Visible = false; + } + if (gRow.Visible && cboFinishedFilter.Checked) + { + DateTime dateAssigned = Convert.ToDateTime(data["dateAssigned"]); + DateTime to = toFinishedDate.DateValue; + DateTime from = fromFinishedDate.DateValue; + + if ((dateAssigned < from) || (dateAssigned > to)) + gRow.Visible = false; + }*/ + } + } + } + protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) + { + filter(e.Row); + } + + protected void cboShowCompleted_CheckedChanged(object sender, EventArgs e) + { + if (cboShowCompleted.Checked) + { + cboStatusFilter.Checked = true; + cboFilterCompleted.Checked = true; + cboStatusFilter_CheckedChanged(cboStatusFilter, null); + } + else + { + cboFilterCompleted.Checked = false; + } + GridView1.DataBind(); + } + protected void cboStatusFilter_CheckedChanged(object sender, EventArgs e) + { + if (cboStatusFilter.Checked) + { + cboFilterCompleted.Enabled = true; + cboFilterNotStarted.Enabled = true; + cboFilterStarted.Enabled = true; + cboFilterInactive.Enabled = true; + } + else + { + cboFilterCompleted.Enabled = false; + cboFilterNotStarted.Enabled = false; + cboFilterStarted.Enabled = false; + cboFilterInactive.Enabled = false; + } + GridView1.DataBind(); + } + protected void cboFilterStarted_CheckedChanged(object sender, EventArgs e) + { + GridView1.DataBind(); + } + protected void cboFilterNotStarted_CheckedChanged(object sender, EventArgs e) + { + GridView1.DataBind(); + } + protected void cboFilterCompleted_CheckedChanged(object sender, EventArgs e) + { + if (cboFilterCompleted.Checked) + cboShowCompleted.Checked = true; + else + cboShowCompleted.Checked = false; + GridView1.DataBind(); + } + protected void cboFilterInactive_CheckedChanged(object sender, EventArgs e) + { + GridView1.DataBind(); + } + protected void cboTypeFilter_CheckedChanged(object sender, EventArgs e) + { + if (cboTypeFilter.Checked) + { + cboShowActionItems.Enabled = true; + cboShowWorkOrders.Enabled = true; + } + else + { + cboShowActionItems.Enabled = false; + cboShowWorkOrders.Enabled = false; + } + GridView1.DataBind(); + } + protected void cboShowActionItems_CheckedChanged(object sender, EventArgs e) + { + GridView1.DataBind(); + } + protected void cboShowWorkOrders_CheckedChanged(object sender, EventArgs e) + { + GridView1.DataBind(); + }/* + protected void fromDate_PreRender(object sender, EventArgs e) + { + if (curFromDate != fromDate.DateValue) + { + curFromDate = fromDate.DateValue; + GridView1.DataBind(); + } + } + protected void toDate_PreRender(object sender, EventArgs e) + { + if (curToDate != toDate.DateValue) + { + curToDate = toDate.DateValue; + GridView1.DataBind(); + } + } + protected void cboDateFilter_CheckedChanged(object sender, EventArgs e) + { + if (cboDateFilter.Checked) + { + toDate.Enabled = true; + fromDate.Enabled = true; + } + else + { + toDate.Enabled = false; + fromDate.Enabled = false; + } + GridView1.DataBind(); + } + protected void fromDueDate_PreRender(object sender, EventArgs e) + { + if (curFromDueDate != fromDueDate.DateValue) + { + curFromDueDate = fromDueDate.DateValue; + GridView1.DataBind(); + } + } + protected void toDueDate_PreRender(object sender, EventArgs e) + { + if (curToDueDate != toDueDate.DateValue) + { + curToDueDate = toDueDate.DateValue; + GridView1.DataBind(); + } + } + protected void fromFinishedDate_PreRender(object sender, EventArgs e) + { + if (curFromFinishedDate != fromFinishedDate.DateValue) + { + curFromFinishedDate = fromFinishedDate.DateValue; + GridView1.DataBind(); + } + } + protected void toFinishedDate_PreRender(object sender, EventArgs e) + { + if (curToFinishedDate != toFinishedDate.DateValue) + { + curToFinishedDate = toFinishedDate.DateValue; + GridView1.DataBind(); + } + } + protected void cboDueFilter_CheckedChanged(object sender, EventArgs e) + { + if (cboDueFilter.Checked) + { + toDueDate.Enabled = true; + fromDueDate.Enabled = true; + } + else + { + toDueDate.Enabled = false; + fromDueDate.Enabled = false; + } + GridView1.DataBind(); + } + protected void cboFinishedFilter_CheckedChanged(object sender, EventArgs e) + { + if (cboFinishedFilter.Checked) + { + toFinishedDate.Enabled = true; + fromFinishedDate.Enabled = true; + } + else + { + toFinishedDate.Enabled = false; + fromFinishedDate.Enabled = false; + } + GridView1.DataBind(); + } + + protected void fromDate_Init(object sender, EventArgs e) + { + DatePicker dp = (DatePicker)sender; + + dp.DateValue = new DateTime(2000, 1, 1); + } + protected void toDate_Init(object sender, EventArgs e) + { + DatePicker dp = (DatePicker)sender; + + dp.DateValue = new DateTime(3000, 12, 31); + }*/ + protected void cboPriorityFilter_CheckedChanged(object sender, EventArgs e) + { + if (cboPriorityFilter.Checked) + { + cboHighPriority.Enabled = true; + cboLowPriority.Enabled = true; + } + else + { + cboHighPriority.Enabled = false; + cboLowPriority.Enabled = false; + } + GridView1.DataBind(); + } + protected void cboHighPriority_CheckedChanged(object sender, EventArgs e) + { + GridView1.DataBind(); + } + protected void cboLowPriority_CheckedChanged(object sender, EventArgs e) + { + GridView1.DataBind(); + } + +</script> + +<table width="100%"> + <tr> + <td align=center> + <div id="MyAssignments"> + <table width="100%" cellpadding="0" cellspacing="0" border="0"> + <tr> + <td align="left" valign="bottom"> + <h2> + My Assignments</h2> + </td> + <td align="right" valign="bottom" style="padding-right: 20px;"> + <asp:CheckBox ID="cboShowCompleted" runat="server" Text="Show Completed" TextAlign="Left" + AutoPostBack="true" OnCheckedChanged="cboShowCompleted_CheckedChanged" /></td> + </tr> + <tr> + <td colspan="2" width="700px"> + <div class="xsnazzy"> + <b class="xtop"><b class="xb1"></b><b class="xb2"></b><b class="xb3"></b><b class="xb4"> + </b></b> + <div class="xboxcontent"> + <div id="MyAssignmentsData"> + <h3>My Assignments</h3> + <asp:GridView ID="GridView1" runat="server" GridLines="None" AllowPaging="True" AllowSorting="True" + AutoGenerateColumns="False" DataSourceID="AssignmentDataSource" RowStyle-CssClass="gridhover" OnRowDataBound="GridView1_RowDataBound" Width="100%" > + <Columns> + <asp:ImageField DataImageUrlField="highPriority" ShowHeader="False"> + </asp:ImageField> + <asp:HyperLinkField DataNavigateUrlFields="childID" DataNavigateUrlFormatString="default.aspx?id={0}" + DataTextField="aName" HeaderText="Assignment" SortExpression="Assignment"> + <ItemStyle HorizontalAlign="Left" /> + </asp:HyperLinkField> + <asp:BoundField DataField="assigned" HeaderText="Assignee" SortExpression="assignee"> + <ItemStyle HorizontalAlign="Center" /> + </asp:BoundField> + <asp:BoundField DataField="creator" HeaderText="Creator" ReadOnly="True" SortExpression="creator"> + <ItemStyle HorizontalAlign="Center" /> + </asp:BoundField> + <asp:BoundField DataField="dateAssigned" DataFormatString="{0:M-dd-yyyy}" HeaderText="dateAssigned" + HtmlEncode="False" ReadOnly="True" SortExpression="dateAssigned"> + <ItemStyle HorizontalAlign="Center" /> + </asp:BoundField> + <asp:BoundField DataField="dateDue" DataFormatString="{0:M-dd-yyyy}" HeaderText="dateDue" + HtmlEncode="False" ReadOnly="True" SortExpression="dateDue"> + <ItemStyle HorizontalAlign="Center" /> + </asp:BoundField> + <asp:BoundField DataField="dateFinished" DataFormatString="{0:M-dd-yyyy}" HeaderText="dateFinished" + HtmlEncode="False" ReadOnly="True" SortExpression="dateFinished"> + <ItemStyle HorizontalAlign="Center" /> + </asp:BoundField> + <asp:BoundField DataField="statusName" HeaderText="Status" ReadOnly="True" SortExpression="stateName"> + <ItemStyle HorizontalAlign="Center" /> + </asp:BoundField> + </Columns> + <RowStyle CssClass="gridhover" /> + </asp:GridView> + <asp:ObjectDataSource ID="AssignmentDataSource" runat="server" OldValuesParameterFormatString="original_{0}" + SelectMethod="GetData" TypeName="dadDataSetTableAdapters.db_assignmentsTableAdapter"> + <SelectParameters> + <asp:Parameter Name="aType" Type="String" /> + <asp:Parameter Name="finished" Type="Int32" /> + <asp:SessionParameter Name="assignedID" SessionField="id" Type="Int32" /> + <asp:Parameter Name="highPriority" Type="Boolean" /> + </SelectParameters> + </asp:ObjectDataSource> + + + </div> + </div> + <b class="xbottom"><b class="xb4"></b><b class="xb3"></b><b class="xb2"></b><b class="xb1"> + </b></b> + </div> + </td> + </tr> + </table> + </div> + <asp:LinkButton ID="newActionItem" runat="server" PostBackUrl="~/ActionItem.aspx?mode=new">New Action Item</asp:LinkButton> + + <asp:LinkButton ID="newWorkOrder" runat="server" PostBackUrl="~/WorkOrder.aspx?mode=new">New Work Order</asp:LinkButton></td> + </tr> + <tr> + <td> + <div id="Filters"> + <table cellpadding="0" cellspacing="0" border="0"> + <tr> + <td align="left" valign="bottom" colspan="3"> + <h3> + Filters</h3> + </td> + </tr> + <tr> + <td valign="top"> + <div class="xsnazzy"> + <b class="xtop"><b class="xb1"></b><b class="xb2"></b><b class="xb3"></b><b class="xb4"> + </b></b> + <div class="xboxcontent"> + <table width="100%" cellpadding="0" cellspacing="0" border="0"> + <tr> + <td align="left" valign="bottom" style="height: 20px"> + <h4> + Type:</h4> + </td> + <td align="right" valign="bottom" style="height: 20px"> + <asp:CheckBox ID="cboTypeFilter" runat="server" TextAlign="Left" Checked="True" AutoPostBack="True" + OnCheckedChanged="cboTypeFilter_CheckedChanged" /></td> + </tr> + <tr> + <td colspan="2" class="hr"> + <img alt="" src="images/spacer.gif" height="5" /><br /> + </td> + </tr> + </table> + <asp:CheckBox ID="cboShowActionItems" runat="server" Text="Action Items" Checked="true" + AutoPostBack="True" OnCheckedChanged="cboShowActionItems_CheckedChanged" /><br /> + <asp:CheckBox ID="cboShowWorkOrders" runat="server" Text="Work Orders" Checked="true" + AutoPostBack="True" OnCheckedChanged="cboShowWorkOrders_CheckedChanged" /> + </div> + <b class="xbottom"><b class="xb4"></b><b class="xb3"></b><b class="xb2"></b><b class="xb1"> + </b></b> + </div> + </td> + <td valign="top"> + <div class="xsnazzy"> + <b class="xtop"><b class="xb1"></b><b class="xb2"></b><b class="xb3"></b><b class="xb4"> + </b></b> + <div class="xboxcontent"> + <table width="100%" cellpadding="0" cellspacing="0" border="0"> + <tr> + <td align="left" valign="bottom" style="height: 20px"> + <h4> + Status:</h4> + </td> + <td align="right" valign="bottom" style="height: 20px"> + <asp:CheckBox ID="cboStatusFilter" runat="server" TextAlign="Left" OnCheckedChanged="cboStatusFilter_CheckedChanged" + Checked="True" AutoPostBack="True" /></td> + </tr> + <tr> + <td colspan="2" class="hr"> + <img alt="" src="images/spacer.gif" height="5" /><br /> + </td> + </tr> + </table> + <asp:CheckBox ID="cboFilterStarted" runat="server" Text="Started" Checked="True" + OnCheckedChanged="cboFilterStarted_CheckedChanged" AutoPostBack="True" /><br /> + <asp:CheckBox ID="cboFilterNotStarted" runat="server" Text="Not Started" Checked="true" + OnCheckedChanged="cboFilterNotStarted_CheckedChanged" AutoPostBack="True" /><br /> + <asp:CheckBox ID="cboFilterCompleted" runat="server" Text="Completed" Checked="false" + OnCheckedChanged="cboFilterCompleted_CheckedChanged" AutoPostBack="True" /><br /> + <asp:CheckBox ID="cboFilterInactive" runat="server" Text="Inactive" Checked="true" + OnCheckedChanged="cboFilterInactive_CheckedChanged" AutoPostBack="True" /></div> + <b class="xbottom"><b class="xb4"></b><b class="xb3"></b><b class="xb2"></b><b class="xb1"> + </b></b> + </div> + </td> + <td valign="top"> + <div class="xsnazzy"> + <b class="xtop"><b class="xb1"></b><b class="xb2"></b><b class="xb3"></b><b class="xb4"> + </b></b> + <div class="xboxcontent"> + <table width="100%" cellpadding="0" cellspacing="0" border="0"> + <tr> + <td align="left" valign="bottom" style="height: 20px"> + <h4> + Priority:</h4> + </td> + <td align="right" valign="bottom" style="height: 20px"> + <asp:CheckBox ID="cboPriorityFilter" runat="server" TextAlign="Left" OnCheckedChanged="cboPriorityFilter_CheckedChanged" + Checked="True" AutoPostBack="True" /></td> + </tr> + <tr> + <td colspan="2" class="hr"> + <img alt="" src="images/spacer.gif" height="5" /><br /> + </td> + </tr> + </table> + <asp:CheckBox ID="cboHighPriority" runat="server" Text="High" Checked="True" + OnCheckedChanged="cboHighPriority_CheckedChanged" AutoPostBack="True" /><br /> + <asp:CheckBox ID="cboLowPriority" runat="server" Text="Low" Checked="true" + OnCheckedChanged="cboLowPriority_CheckedChanged" AutoPostBack="True" /></div> + <b class="xbottom"><b class="xb4"></b><b class="xb3"></b><b class="xb2"></b><b class="xb1"> + </b></b> + </div> + </td> + </tr> + <tr> + <td valign="top"> + <div class="xsnazzy"> + <b class="xtop"><b class="xb1"></b><b class="xb2"></b><b class="xb3"></b><b class="xb4"> + </b></b> + <div class="xboxcontent"> + <table width="100%" cellpadding="0" cellspacing="0" border="0"> + <tr> + <td align="left" valign="bottom"> + <h4> + Assigned Date:</h4> + </td> + <td align="right" valign="bottom"> + <asp:CheckBox ID="cboDateFilter" runat="server" TextAlign="Left" AutoPostBack="True" + /></td> + </tr> + <tr> + <td colspan="2" class="hr"> + <img alt="" src="images/spacer.gif" height="5" /><br /> + </td> + </tr> + <tr> + <td> + <strong>From:</strong></td> + <td> + + </td> + </tr> + <tr> + <td style="height: 16px"> + <strong>To:</strong></td> + <td style="height: 16px"> + + </td> + </tr> + </table> + </div> + <b class="xbottom"><b class="xb4"></b><b class="xb3"></b><b class="xb2"></b><b class="xb1"> + </b></b> + </div> + </td> + <td valign="top"> + <div class="xsnazzy"> + <b class="xtop"><b class="xb1"></b><b class="xb2"></b><b class="xb3"></b><b class="xb4"> + </b></b> + <div class="xboxcontent"> + <table width="100%" cellpadding="0" cellspacing="0" border="0"> + <tr> + <td align="left" valign="bottom"> + <h4> + Date Due:</h4> + </td> + <td align="right" valign="bottom"> + <asp:CheckBox ID="cboDueFilter" runat="server" TextAlign="Left" AutoPostBack="True" + /></td> + </tr> + <tr> + <td colspan="2" class="hr"> + <img alt="" src="images/spacer.gif" height="5" /><br /> + </td> + </tr> + <tr> + <td> + <strong>From:</strong></td> + <td> + + </td> + </tr> + <tr> + <td style="height: 16px"> + <strong>To:</strong></td> + <td style="height: 16px"> + + </td> + </tr> + </table> + </div> + <b class="xbottom"><b class="xb4"></b><b class="xb3"></b><b class="xb2"></b><b class="xb1"> + </b></b> + </div> + </td> + <td valign="top"> + <div class="xsnazzy"> + <b class="xtop"><b class="xb1"></b><b class="xb2"></b><b class="xb3"></b><b class="xb4"> + </b></b> + <div class="xboxcontent"> + <table width="100%" cellpadding="0" cellspacing="0" border="0"> + <tr> + <td align="left" valign="bottom"> + <h4> + Finished Date:</h4> + </td> + <td align="right" valign="bottom"> + <asp:CheckBox ID="cboFinishedFilter" runat="server" TextAlign="Left" AutoPostBack="True" + /></td> + </tr> + <tr> + <td colspan="2" class="hr"> + </td> + </tr> + <tr> + <td> + <strong>From:</strong></td> + <td> + + </td> + </tr> + <tr> + <td style="height: 16px"> + <strong>To:</strong></td> + <td style="height: 16px"> + + </td> + </tr> + </table> + </div> + <b class="xbottom"><b class="xb4"></b><b class="xb3"></b><b class="xb2"></b><b class="xb1"> + </b></b> + </div> + </td> + </tr> + <tr> + <td style="height: 22px"> + <asp:Button ID="Update" runat="server" Text="Refresh" /></td> + </tr> + </table> + </div> + </td> + </tr> + </table> Modified: Website/Includes/AssignmentsTree.ascx =================================================================== --- Website/Includes/AssignmentsTree.ascx 2006-07-11 19:32:56 UTC (rev 97) +++ Website/Includes/AssignmentsTree.ascx 2006-07-11 19:44:06 UTC (rev 98) @@ -24,6 +24,9 @@ protected void AssignmentsTree_TreeNodePopulate(object sender, TreeNodeEventArgs e) { + TreeView tv = (TreeView)sender; + DataSet ResultsDataSet = new DataSet(); + // Call the appropriate method to populate a node at a particular level. switch (e.Node.Depth) { @@ -53,13 +56,13 @@ if (a.ISACTIONITEM) { child.Value = a.ACTIONITEM.ID.ToString(); - child.NavigateUrl = "~/ActionItems.aspx"; + child.NavigateUrl = "~/ActionItem.aspx?id="+child.Value; } else { // TODO: Enable this! - // child.Value = a.WORKORDER.ID.ToString(); - child.NavigateUrl = "~/WorkOrders.aspx"; + child.Value = a.WORKORDER.ID.ToString(); + child.NavigateUrl = "~/WorkOrder.aspx?id="+child.Value; } // Set the PopulateOnDemand property to true so that the child nodes can be @@ -84,23 +87,26 @@ { foreach (TCDB_User u in userList) { - // Create the new child node. - TreeNode child = new TreeNode(); - child.Text = u.FULLNAME; - child.Value = u.ID.ToString(); - - // Set the PopulateOnDemand property to true so that the child nodes can be - // dynamically populated. - child.PopulateOnDemand = true; + if (u.USERNAME == "jjohnson") + { + // Create the new child node. + TreeNode child = new TreeNode(); + child.Text = u.FULLNAME; + child.Value = u.ID.ToString(); - // Set additional properties for the node. - child.SelectAction = TreeNodeSelectAction.Expand; - // TODO: Make sure that when the node is clicked on, it brings up a list of assignments - // for the specified user as the user would see them - child.NavigateUrl = "~/Assignments.aspx"; + // Set the PopulateOnDemand property to true so that the child nodes can be + // dynamically populated. + child.PopulateOnDemand = true; - // Add the new child node to the ChildNodes collection of the parent node. - parent.ChildNodes.Add(child); + // Set additional properties for the node. + child.SelectAction = TreeNodeSelectAction.Expand; + // TODO: Make sure that when the node is clicked on, it brings up a list of assignments + // for the specified user as the user would see them + child.NavigateUrl = "~/Assignments.aspx?id="+child.Value; + + // Add the new child node to the ChildNodes collection of the parent node. + parent.ChildNodes.Add(child); + } } } } Modified: Website/Includes/Header.ascx =================================================================== --- Website/Includes/Header.ascx 2006-07-11 19:32:56 UTC (rev 97) +++ Website/Includes/Header.ascx 2006-07-11 19:44:06 UTC (rev 98) @@ -14,6 +14,12 @@ <% if (g_user.ID > TCDB_Constant.USER_ANONYMOUSUSERID) { + userID = (int)(Session["userID"]); + } + catch { } + if (userID > TCDB_Constant.USER_ANONYMOUSUSERID) + { + user = new TCDB_User((int)(Session["userID"])); %> <div id="MainMenu"> <div id="User"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <m_h...@us...> - 2006-07-11 19:33:19
|
Revision: 97 Author: m_hildebrand Date: 2006-07-11 12:32:56 -0700 (Tue, 11 Jul 2006) ViewCVS: http://svn.sourceforge.net/tcdb/?rev=97&view=rev Log Message: ----------- Assigned global object g_user as the currently logged in user Modified Paths: -------------- Website/App_Code/TCDB_Assignments.cs Website/App_Code/TCDB_Common.cs Website/App_Code/TCDB_Products.cs Website/App_Code/TCDB_Users.cs Website/App_Code/dadDataSet.xsd Website/Includes/ActionItems.ascx Website/Includes/AdministrationTree.ascx Website/Includes/Assignments.ascx Website/Includes/AssignmentsTree.ascx Website/Includes/Authenticate.ascx Website/Includes/Builds.ascx Website/Includes/Execution.ascx Website/Includes/FeatureTree.ascx Website/Includes/Features.ascx Website/Includes/Footer.ascx Website/Includes/Header.ascx Website/Includes/Header_CurrentInfo.ascx Website/Includes/Header_Menu.ascx Website/Includes/Header_User.ascx Website/Includes/Notes.ascx Website/Includes/Objectives.ascx Website/Includes/Platforms.ascx Website/Includes/Products.ascx Website/Includes/Reports.ascx Website/Includes/SqlDatabase.ascx Website/Includes/Tags.ascx Website/Includes/TestCases.ascx Website/Includes/Users.ascx Website/Includes/Versions.ascx Website/Includes/WorkOrders.ascx Website/Plugins/VAS_Execution.ascx Website/TCDB.master Website/WorkOrder.aspx Added Paths: ----------- Website/App_Code/TCDB_Logs.cs Website/Global.asax Modified: Website/App_Code/TCDB_Assignments.cs =================================================================== --- Website/App_Code/TCDB_Assignments.cs 2006-07-11 17:05:34 UTC (rev 96) +++ Website/App_Code/TCDB_Assignments.cs 2006-07-11 19:32:56 UTC (rev 97) @@ -56,6 +56,7 @@ assignment.WOERROR = TCDB_Help.TCDB_DB_IntParse(dr["WOError"], 0); } + assignment.NAME = TCDB_Help.TCDB_DB_StringParse(dr["aName"], ""); assignment.CREATOR = TCDB_Help.TCDB_DB_StringParse(dr["creator"], ""); assignment.ASSIGNED = TCDB_Help.TCDB_DB_StringParse(dr["assigned"], ""); assignment.DATEASSIGNED = TCDB_Help.TCDB_DB_DateTimeParse(dr["dateAssigned"], TCDB_Constant.ASSIGNMENT_DEFAULTDATEASSIGNED); @@ -86,15 +87,35 @@ DataTableReader dr = ds.db_users.CreateDataReader(); if (dr.HasRows && dr.Read()) { - ai.ID = TCDB_Help.TCDB_DB_IntParse(dr["actionItemID"], TCDB_Constant.ACTIONITEM_DEFAULTID); - ai.NAME = TCDB_Help.TCDB_DB_StringParse(dr["name"], TCDB_Constant.ACTIONITEM_DEFAULTNAME); - ai.DESCRIPTION = TCDB_Help.TCDB_DB_StringParse(dr["description"], TCDB_Constant.ACTIONITEM_DEFAULTDESCRIPTION); - ai.CREATORID = TCDB_Help.TCDB_DB_IntParse(dr["creatorID"], TCDB_Constant.ACTIONITEM_DEFAULTCREATORID); - ai.PERCENTCOMPLETE = TCDB_Help.TCDB_DB_IntParse(dr["percentComplete"], TCDB_Constant.ACTIONITEM_DEFAULTPERCENTCOMPLETE); + ai.ID = TCDB_Help.TCDB_DB_IntParse(dr["actionItemID"], 0); + ai.NAME = TCDB_Help.TCDB_DB_StringParse(dr["name"], ""); + ai.DESCRIPTION = TCDB_Help.TCDB_DB_StringParse(dr["description"], ""); + ai.CREATOR = new TCDB_User(TCDB_Help.TCDB_DB_IntParse(dr["creatorID"], TCDB_Constant.USER_ANONYMOUSUSERID)); + ai.ASSIGNED = new TCDB_User(TCDB_Help.TCDB_DB_IntParse(dr["assignedID"], TCDB_Constant.USER_ANONYMOUSUSERID)); + ai.PERCENTCOMPLETE = TCDB_Help.TCDB_DB_IntParse(dr["percentComplete"], 0); } return ai; } + + public static bool TCDB_SaveActionItem(TCDB_ActionItem ai) + { + dadDataSet ds = new dadDataSet(); + dadDataSetTableAdapters.db_actionItemsTableAdapter ta = new dadDataSetTableAdapters.db_actionItemsTableAdapter(); + try + { + ta.Insert(ai.NAME, ai.DESCRIPTION, ai.CREATOR.ID, ai.ASSIGNED.ID, DateTime.Now, null, TCDB_Constant.ASSIGNMENT_PRIORITY_HIGH); + } + catch + { + return false; + } + + if (ds.db_users.HasErrors) + return false; + + return true; + } } public class TCDB_WorkOrderDB : Page @@ -288,7 +309,8 @@ private int p_id; private string p_name; private string p_description; - private int p_creatorID; + private TCDB_User p_creator; + private TCDB_User p_assigned; private int p_percentComplete; public TCDB_ActionItem() @@ -296,16 +318,18 @@ p_id = 0; p_name = ""; p_description = ""; - p_creatorID = 0; + p_creator = new TCDB_User(); + p_assigned = new TCDB_User(); p_percentComplete = 0; } - public TCDB_ActionItem(int id, string name, string description, int creatorID, int percentComplete) + public TCDB_ActionItem(int id, string name, string description, TCDB_User creator, TCDB_User assigned, int percentComplete) { p_id = id; p_name = name; p_description = description; - p_creatorID = creatorID; + p_creator = creator; + p_assigned = assigned; p_percentComplete = percentComplete; } @@ -327,12 +351,18 @@ set { p_description = value; } } - public int CREATORID + public TCDB_User CREATOR { - get { return p_creatorID; } - set { p_creatorID = value; } + get { return p_creator; } + set { p_creator = value; } } + public TCDB_User ASSIGNED + { + get { return p_assigned; } + set { p_assigned = value; } + } + public int PERCENTCOMPLETE { get { return p_percentComplete; } Modified: Website/App_Code/TCDB_Common.cs =================================================================== --- Website/App_Code/TCDB_Common.cs 2006-07-11 17:05:34 UTC (rev 96) +++ Website/App_Code/TCDB_Common.cs 2006-07-11 19:32:56 UTC (rev 97) @@ -31,6 +31,9 @@ public static string USER_ANONYMOUSCELLPHONE = ""; public static bool USER_ANONYMOUSAUTOMATION = false; + public static string USER_AI_NAME = "Assign permissions: "; + public static string USER_AI_DESCRIPTION = "Please assign appropriate permissions for new user: "; + public static int ACTIONITEM_DEFAULTID = 0; public static string ACTIONITEM_DEFAULTNAME = ""; public static string ACTIONITEM_DEFAULTDESCRIPTION = ""; Added: Website/App_Code/TCDB_Logs.cs =================================================================== --- Website/App_Code/TCDB_Logs.cs (rev 0) +++ Website/App_Code/TCDB_Logs.cs 2006-07-11 19:32:56 UTC (rev 97) @@ -0,0 +1,39 @@ +using System; +using System.Data; +using System.Configuration; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; + +namespace TCDB_Logs +{ + public class TCDB_Log + { + public TCDB_Log() + { + } + + public void Info() + { + } + + public void Debug() + { + } + + public void Error() + { + } + + public void Fatal() + { + } + + public void Warn() + { + } + } +} \ No newline at end of file Modified: Website/App_Code/TCDB_Products.cs =================================================================== --- Website/App_Code/TCDB_Products.cs 2006-07-11 17:05:34 UTC (rev 96) +++ Website/App_Code/TCDB_Products.cs 2006-07-11 19:32:56 UTC (rev 97) @@ -27,7 +27,7 @@ TCDB_Product product = new TCDB_Product(); - DataTableReader dr = ds.CreateDataReader(); + DataTableReader dr = ds.db_products.CreateDataReader(); if (dr.HasRows && dr.Read()) { int id = TCDB_Help.TCDB_DB_IntParse(dr["productID"], TCDB_Constant.PRODUCT_DEFAULTID); Modified: Website/App_Code/TCDB_Users.cs =================================================================== --- Website/App_Code/TCDB_Users.cs 2006-07-11 17:05:34 UTC (rev 96) +++ Website/App_Code/TCDB_Users.cs 2006-07-11 19:32:56 UTC (rev 97) @@ -10,6 +10,7 @@ using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; + using System.Security; using System.Collections; using System.Collections.Generic; @@ -17,6 +18,7 @@ using TCDB_Assignments; using TCDB_Common; using AD_Auth; +using System.Web.SessionState; @@ -71,6 +73,21 @@ return user; } + public static TCDB_User TCDB_GetUserInstance() + { + TCDB_User user; + try + { + user = (TCDB_User)(HttpContext.Current.Items["user"]); + } + catch + { + user = new TCDB_User(); + } + + return user; + } + public static TCDB_User TCDB_GetUserInfo(string strUserName) { // TODO: Check against the DB for user information @@ -186,58 +203,43 @@ /// </summary> public class TCDB_User { - private int userid; - private string username; - private string email; - private string officePhone; - private string homePhone; - private string cellPhone; - private string firstName; - private string lastName; - private bool automation; - private bool isAuthenticated; - private List<TCDB_Right> rights; - private List<TCDB_Config> config; - private List<TCDB_Assignment> assignments; + private int p_id; + private string p_username; + private string p_email; + private string p_officePhone; + private string p_homePhone; + private string p_cellPhone; + private string p_firstName; + private string p_lastName; + private bool p_automation; + private bool p_isAuthenticated; + private List<TCDB_Right> p_rights; + private List<TCDB_Config> p_config; + private List<TCDB_Assignment> p_assignments; /* TODO: Implement these as the time is right - private List<TCDB_Feature> features; - private List<TCDB_Assignment> assignmentsCreated; - private List<TCDB_Objective> objectives; - private List<TCDB_WorkOrderTemplate> savedWorkOrders; - private List<TCDB_TestCase> testCasesCreated; - private List<TCDB_TestCase> testCasesEdited; + private List<TCDB_Feature> p_features; + private List<TCDB_Assignment> p_assignmentsCreated; + private List<TCDB_Objective> p_objectives; + private List<TCDB_WorkOrderTemplate> p_savedWorkOrders; + private List<TCDB_TestCase> p_testCasesCreated; + private List<TCDB_TestCase> p_testCasesEdited; */ - public List<TCDB_Assignment> ASSIGNMENTS - { - // TODO: This list needs to be able to reflect filters! - get - { - List<TCDB_Assignment> assignments = new List<TCDB_Assignment>(); - if (assignments == null) - { - assignments = TCDB_AssignmentDB.TCDB_GetAssignmentList(TCDB_Constant.ASSIGNMENT_TYPE_BOTH, - TCDB_Constant.ASSIGNMENT_FINISHEDANDUNFINISHED, ID, null); - } - return assignments; - } - } - public TCDB_User() { - userid = TCDB_Constant.USER_ANONYMOUSUSERID; - username = TCDB_Constant.USER_ANONYMOUSUSERNAME; - email = ""; - officePhone = ""; - homePhone = ""; - cellPhone = ""; - firstName = TCDB_Constant.USER_ANONYMOUSFIRSTNAME; - lastName = TCDB_Constant.USER_ANONYMOUSLASTNAME; - automation = false; - isAuthenticated = false; - rights = null; - config = null; - assignments = null; + p_id = TCDB_Constant.USER_ANONYMOUSUSERID; + p_username = TCDB_Constant.USER_ANONYMOUSUSERNAME; + p_email = ""; + p_officePhone = ""; + p_homePhone = ""; + p_cellPhone = ""; + p_firstName = TCDB_Constant.USER_ANONYMOUSFIRSTNAME; + p_lastName = TCDB_Constant.USER_ANONYMOUSLASTNAME; + p_automation = false; + p_isAuthenticated = false; + p_rights = null; + p_config = null; + p_assignments = null; } public TCDB_User(string username) @@ -252,67 +254,67 @@ private void TCDB_BuildUser(TCDB_User user) { - userid = user.ID; - username = user.USERNAME; - email = user.EMAIL; - officePhone = user.OFFICEPHONE; - homePhone = user.HOMEPHONE; - cellPhone = user.CELLPHONE; - firstName = user.FIRSTNAME; - lastName = user.LASTNAME; - automation = user.AUTOMATION; - isAuthenticated = user.ISAUTHENTICATED; - rights = user.rights; - config = user.config; - assignments = null; + p_id = user.ID; + p_username = user.USERNAME; + p_email = user.EMAIL; + p_officePhone = user.OFFICEPHONE; + p_homePhone = user.HOMEPHONE; + p_cellPhone = user.CELLPHONE; + p_firstName = user.FIRSTNAME; + p_lastName = user.LASTNAME; + p_automation = user.AUTOMATION; + p_isAuthenticated = user.ISAUTHENTICATED; + p_rights = user.GetRights(false); + p_config = user.GetConfig(false); + p_assignments = user.GetAssignments(false); } public int ID { - get { return userid; } - set { userid = value; } + get { return p_id; } + set { p_id = value; } } public string USERNAME { - get { return username; } - set { username = value; } + get { return p_username; } + set { p_username = value; } } public string EMAIL { - get { return email; } - set { email = value; } + get { return p_email; } + set { p_email = value; } } public string OFFICEPHONE { - get { return officePhone; } - set { officePhone = value; } + get { return p_officePhone; } + set { p_officePhone = value; } } public string HOMEPHONE { - get { return homePhone; } - set { homePhone = value; } + get { return p_homePhone; } + set { p_homePhone = value; } } public string CELLPHONE { - get { return cellPhone; } - set { cellPhone = value; } + get { return p_cellPhone; } + set { p_cellPhone = value; } } public string FIRSTNAME { - get { return firstName; } - set { firstName = value; } + get { return p_firstName; } + set { p_firstName = value; } } public string LASTNAME { - get { return lastName; } - set { lastName = value; } + get { return p_lastName; } + set { p_lastName = value; } } public string FULLNAME @@ -322,14 +324,14 @@ public bool AUTOMATION { - get { return automation; } - set { automation = value; } + get { return p_automation; } + set { p_automation = value; } } public bool ISAUTHENTICATED { - get { return isAuthenticated; } - set { isAuthenticated = value; } + get { return p_isAuthenticated; } + set { p_isAuthenticated = value; } } public override string ToString() @@ -337,19 +339,31 @@ return FULLNAME; } - public List<TCDB_Right> GetRights() + public List<TCDB_Right> GetRights(bool reload) { // TODO: If rights == null // load the rights from the db - return rights; + return p_rights; } - public List<TCDB_Config> GetConfig() + public List<TCDB_Config> GetConfig(bool reload) { // TODO: If config == null // load the config from the db - return config; + return p_config; } + + public List<TCDB_Assignment> GetAssignments(bool reload) + { + // TODO: This list needs to be able to reflect filters! + p_assignments = new List<TCDB_Assignment>(); + if (p_assignments == null || reload) + { + p_assignments = TCDB_AssignmentDB.TCDB_GetAssignmentList(TCDB_Constant.ASSIGNMENT_TYPE_BOTH, + TCDB_Constant.ASSIGNMENT_FINISHEDANDUNFINISHED, ID, null); + } + return p_assignments; + } } public class TCDB_Right Modified: Website/App_Code/dadDataSet.xsd =================================================================== --- Website/App_Code/dadDataSet.xsd 2006-07-11 17:05:34 UTC (rev 96) +++ Website/App_Code/dadDataSet.xsd 2006-07-11 19:32:56 UTC (rev 97) @@ -39,7 +39,7 @@ </DbCommand> </InsertCommand> <SelectCommand> - <DbCommand CommandType="StoredProcedure" ModifiedByUser="True"> + <DbCommand CommandType="StoredProcedure" ModifiedByUser="False"> <CommandText>dbo.sel_users</CommandText> <Parameters> <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="False" SourceVersion="Current"> @@ -330,6 +330,7 @@ <Mapping SourceColumn="WOPass" DataSetColumn="WOPass" /> <Mapping SourceColumn="WOFail" DataSetColumn="WOFail" /> <Mapping SourceColumn="WOError" DataSetColumn="WOError" /> + <Mapping SourceColumn="aName" DataSetColumn="aName" /> </Mappings> <Sources> </Sources> @@ -346,146 +347,146 @@ <xs:element name="db_users" msprop:Generator_UserTableName="db_users" msprop:Generator_RowDeletedName="db_usersRowDeleted" msprop:Generator_RowChangedName="db_usersRowChanged" msprop:Generator_RowClassName="db_usersRow" msprop:Generator_RowChangingName="db_usersRowChanging" msprop:Generator_RowEvArgName="db_usersRowChangeEvent" msprop:Generator_RowEvHandlerName="db_usersRowChangeEventHandler" msprop:Generator_TableClassName="db_usersDataTable" msprop:Generator_TableVarName="tabledb_users" msprop:Generator_RowDeletingName="db_usersRowDeleting" msprop:Generator_TablePropName="db_users"> <xs:complexType> <xs:sequence> - <xs:element name="userID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="userID" msprop:Generator_ColumnVarNameInTable="columnuserID" msprop:Generator_ColumnPropNameInRow="userID" msprop:Generator_ColumnPropNameInTable="userIDColumn" type="xs:int" /> - <xs:element name="username" msprop:Generator_UserColumnName="username" msprop:Generator_ColumnVarNameInTable="columnusername" msprop:Generator_ColumnPropNameInRow="username" msprop:Generator_ColumnPropNameInTable="usernameColumn"> + <xs:element name="userID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="userID" msprop:Generator_ColumnPropNameInRow="userID" msprop:Generator_ColumnVarNameInTable="columnuserID" msprop:Generator_ColumnPropNameInTable="userIDColumn" type="xs:int" /> + <xs:element name="username" msprop:Generator_UserColumnName="username" msprop:Generator_ColumnPropNameInRow="username" msprop:Generator_ColumnVarNameInTable="columnusername" msprop:Generator_ColumnPropNameInTable="usernameColumn"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="email" msprop:Generator_UserColumnName="email" msprop:Generator_ColumnVarNameInTable="columnemail" msprop:Generator_ColumnPropNameInRow="email" msprop:Generator_ColumnPropNameInTable="emailColumn"> + <xs:element name="email" msprop:Generator_UserColumnName="email" msprop:Generator_ColumnPropNameInRow="email" msprop:Generator_ColumnVarNameInTable="columnemail" msprop:Generator_ColumnPropNameInTable="emailColumn"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="officePhone" msprop:Generator_UserColumnName="officePhone" msprop:Generator_ColumnVarNameInTable="columnofficePhone" msprop:Generator_ColumnPropNameInRow="officePhone" msprop:Generator_ColumnPropNameInTable="officePhoneColumn" minOccurs="0"> + <xs:element name="officePhone" msprop:Generator_UserColumnName="officePhone" msprop:Generator_ColumnPropNameInRow="officePhone" msprop:Generator_ColumnVarNameInTable="columnofficePhone" msprop:Generator_ColumnPropNameInTable="officePhoneColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="14" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="homePhone" msprop:Generator_UserColumnName="homePhone" msprop:Generator_ColumnVarNameInTable="columnhomePhone" msprop:Generator_ColumnPropNameInRow="homePhone" msprop:Generator_ColumnPropNameInTable="homePhoneColumn" minOccurs="0"> + <xs:element name="homePhone" msprop:Generator_UserColumnName="homePhone" msprop:Generator_ColumnPropNameInRow="homePhone" msprop:Generator_ColumnVarNameInTable="columnhomePhone" msprop:Generator_ColumnPropNameInTable="homePhoneColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="14" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="cellPhone" msprop:Generator_UserColumnName="cellPhone" msprop:Generator_ColumnVarNameInTable="columncellPhone" msprop:Generator_ColumnPropNameInRow="cellPhone" msprop:Generator_ColumnPropNameInTable="cellPhoneColumn" minOccurs="0"> + <xs:element name="cellPhone" msprop:Generator_UserColumnName="cellPhone" msprop:Generator_ColumnPropNameInRow="cellPhone" msprop:Generator_ColumnVarNameInTable="columncellPhone" msprop:Generator_ColumnPropNameInTable="cellPhoneColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="14" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="firstName" msprop:Generator_UserColumnName="firstName" msprop:Generator_ColumnVarNameInTable="columnfirstName" msprop:Generator_ColumnPropNameInRow="firstName" msprop:Generator_ColumnPropNameInTable="firstNameColumn"> + <xs:element name="firstName" msprop:Generator_UserColumnName="firstName" msprop:Generator_ColumnPropNameInRow="firstName" msprop:Generator_ColumnVarNameInTable="columnfirstName" msprop:Generator_ColumnPropNameInTable="firstNameColumn"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="24" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="lastName" msprop:Generator_UserColumnName="lastName" msprop:Generator_ColumnVarNameInTable="columnlastName" msprop:Generator_ColumnPropNameInRow="lastName" msprop:Generator_ColumnPropNameInTable="lastNameColumn"> + <xs:element name="lastName" msprop:Generator_UserColumnName="lastName" msprop:Generator_ColumnPropNameInRow="lastName" msprop:Generator_ColumnVarNameInTable="columnlastName" msprop:Generator_ColumnPropNameInTable="lastNameColumn"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="24" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="fullName" msdata:ReadOnly="true" msprop:Generator_UserColumnName="fullName" msprop:Generator_ColumnVarNameInTable="columnfullName" msprop:Generator_ColumnPropNameInRow="fullName" msprop:Generator_ColumnPropNameInTable="fullNameColumn" minOccurs="0"> + <xs:element name="fullName" msdata:ReadOnly="true" msprop:Generator_UserColumnName="fullName" msprop:Generator_ColumnPropNameInRow="fullName" msprop:Generator_ColumnVarNameInTable="columnfullName" msprop:Generator_ColumnPropNameInTable="fullNameColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="49" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="automation" msprop:Generator_UserColumnName="automation" msprop:Generator_ColumnVarNameInTable="columnautomation" msprop:Generator_ColumnPropNameInRow="automation" msprop:Generator_ColumnPropNameInTable="automationColumn" type="xs:boolean" /> + <xs:element name="automation" msprop:Generator_UserColumnName="automation" msprop:Generator_ColumnPropNameInRow="automation" msprop:Generator_ColumnVarNameInTable="columnautomation" msprop:Generator_ColumnPropNameInTable="automationColumn" type="xs:boolean" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="db_products" msprop:Generator_UserTableName="db_products" msprop:Generator_RowDeletedName="db_productsRowDeleted" msprop:Generator_RowChangedName="db_productsRowChanged" msprop:Generator_RowClassName="db_productsRow" msprop:Generator_RowChangingName="db_productsRowChanging" msprop:Generator_RowEvArgName="db_productsRowChangeEvent" msprop:Generator_RowEvHandlerName="db_productsRowChangeEventHandler" msprop:Generator_TableClassName="db_productsDataTable" msprop:Generator_TableVarName="tabledb_products" msprop:Generator_RowDeletingName="db_productsRowDeleting" msprop:Generator_TablePropName="db_products"> <xs:complexType> <xs:sequence> - <xs:element name="productID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="productID" msprop:Generator_ColumnVarNameInTable="columnproductID" msprop:Generator_ColumnPropNameInRow="productID" msprop:Generator_ColumnPropNameInTable="productIDColumn" type="xs:int" /> - <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnPropNameInTable="nameColumn" minOccurs="0"> + <xs:element name="productID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="productID" msprop:Generator_ColumnPropNameInRow="productID" msprop:Generator_ColumnVarNameInTable="columnproductID" msprop:Generator_ColumnPropNameInTable="productIDColumn" type="xs:int" /> + <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInTable="nameColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="255" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> + <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="2147483647" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="devManager" msprop:Generator_UserColumnName="devManager" msprop:Generator_ColumnVarNameInTable="columndevManager" msprop:Generator_ColumnPropNameInRow="devManager" msprop:Generator_ColumnPropNameInTable="devManagerColumn" type="xs:int" minOccurs="0" /> - <xs:element name="qaManager" msprop:Generator_UserColumnName="qaManager" msprop:Generator_ColumnVarNameInTable="columnqaManager" msprop:Generator_ColumnPropNameInRow="qaManager" msprop:Generator_ColumnPropNameInTable="qaManagerColumn" type="xs:int" minOccurs="0" /> - <xs:element name="devLead" msprop:Generator_UserColumnName="devLead" msprop:Generator_ColumnVarNameInTable="columndevLead" msprop:Generator_ColumnPropNameInRow="devLead" msprop:Generator_ColumnPropNameInTable="devLeadColumn" type="xs:int" minOccurs="0" /> - <xs:element name="qaLead" msprop:Generator_UserColumnName="qaLead" msprop:Generator_ColumnVarNameInTable="columnqaLead" msprop:Generator_ColumnPropNameInRow="qaLead" msprop:Generator_ColumnPropNameInTable="qaLeadColumn" type="xs:int" minOccurs="0" /> - <xs:element name="pm" msprop:Generator_UserColumnName="pm" msprop:Generator_ColumnVarNameInTable="columnpm" msprop:Generator_ColumnPropNameInRow="pm" msprop:Generator_ColumnPropNameInTable="pmColumn" type="xs:int" minOccurs="0" /> - <xs:element name="codeName" msprop:Generator_UserColumnName="codeName" msprop:Generator_ColumnVarNameInTable="columncodeName" msprop:Generator_ColumnPropNameInRow="codeName" msprop:Generator_ColumnPropNameInTable="codeNameColumn" minOccurs="0"> + <xs:element name="devManager" msprop:Generator_UserColumnName="devManager" msprop:Generator_ColumnPropNameInRow="devManager" msprop:Generator_ColumnVarNameInTable="columndevManager" msprop:Generator_ColumnPropNameInTable="devManagerColumn" type="xs:int" minOccurs="0" /> + <xs:element name="qaManager" msprop:Generator_UserColumnName="qaManager" msprop:Generator_ColumnPropNameInRow="qaManager" msprop:Generator_ColumnVarNameInTable="columnqaManager" msprop:Generator_ColumnPropNameInTable="qaManagerColumn" type="xs:int" minOccurs="0" /> + <xs:element name="devLead" msprop:Generator_UserColumnName="devLead" msprop:Generator_ColumnPropNameInRow="devLead" msprop:Generator_ColumnVarNameInTable="columndevLead" msprop:Generator_ColumnPropNameInTable="devLeadColumn" type="xs:int" minOccurs="0" /> + <xs:element name="qaLead" msprop:Generator_UserColumnName="qaLead" msprop:Generator_ColumnPropNameInRow="qaLead" msprop:Generator_ColumnVarNameInTable="columnqaLead" msprop:Generator_ColumnPropNameInTable="qaLeadColumn" type="xs:int" minOccurs="0" /> + <xs:element name="pm" msprop:Generator_UserColumnName="pm" msprop:Generator_ColumnPropNameInRow="pm" msprop:Generator_ColumnVarNameInTable="columnpm" msprop:Generator_ColumnPropNameInTable="pmColumn" type="xs:int" minOccurs="0" /> + <xs:element name="codeName" msprop:Generator_UserColumnName="codeName" msprop:Generator_ColumnPropNameInRow="codeName" msprop:Generator_ColumnVarNameInTable="columncodeName" msprop:Generator_ColumnPropNameInTable="codeNameColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="10" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="active" msprop:Generator_UserColumnName="active" msprop:Generator_ColumnVarNameInTable="columnactive" msprop:Generator_ColumnPropNameInRow="active" msprop:Generator_ColumnPropNameInTable="activeColumn" type="xs:boolean" /> + <xs:element name="active" msprop:Generator_UserColumnName="active" msprop:Generator_ColumnPropNameInRow="active" msprop:Generator_ColumnVarNameInTable="columnactive" msprop:Generator_ColumnPropNameInTable="activeColumn" type="xs:boolean" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="db_actionItems" msprop:Generator_UserTableName="db_actionItems" msprop:Generator_RowDeletedName="db_actionItemsRowDeleted" msprop:Generator_RowChangedName="db_actionItemsRowChanged" msprop:Generator_RowClassName="db_actionItemsRow" msprop:Generator_RowChangingName="db_actionItemsRowChanging" msprop:Generator_RowEvArgName="db_actionItemsRowChangeEvent" msprop:Generator_RowEvHandlerName="db_actionItemsRowChangeEventHandler" msprop:Generator_TableClassName="db_actionItemsDataTable" msprop:Generator_TableVarName="tabledb_actionItems" msprop:Generator_RowDeletingName="db_actionItemsRowDeleting" msprop:Generator_TablePropName="db_actionItems"> <xs:complexType> <xs:sequence> - <xs:element name="actionItemID" msprop:Generator_UserColumnName="actionItemID" msprop:Generator_ColumnPropNameInRow="actionItemID" msprop:Generator_ColumnVarNameInTable="columnactionItemID" msprop:Generator_ColumnPropNameInTable="actionItemIDColumn" type="xs:int" /> - <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInTable="nameColumn" minOccurs="0"> + <xs:element name="actionItemID" msprop:Generator_UserColumnName="actionItemID" msprop:Generator_ColumnVarNameInTable="columnactionItemID" msprop:Generator_ColumnPropNameInRow="actionItemID" msprop:Generator_ColumnPropNameInTable="actionItemIDColumn" type="xs:int" /> + <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnPropNameInTable="nameColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="255" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> + <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="2147483647" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="dateAssigned" msprop:Generator_UserColumnName="dateAssigned" msprop:Generator_ColumnPropNameInRow="dateAssigned" msprop:Generator_ColumnVarNameInTable="columndateAssigned" msprop:Generator_ColumnPropNameInTable="dateAssignedColumn" type="xs:dateTime" minOccurs="0" /> - <xs:element name="dateDue" msprop:Generator_UserColumnName="dateDue" msprop:Generator_ColumnPropNameInRow="dateDue" msprop:Generator_ColumnVarNameInTable="columndateDue" msprop:Generator_ColumnPropNameInTable="dateDueColumn" type="xs:dateTime" minOccurs="0" /> - <xs:element name="percentComplete" msprop:Generator_UserColumnName="percentComplete" msprop:Generator_ColumnPropNameInRow="percentComplete" msprop:Generator_ColumnVarNameInTable="columnpercentComplete" msprop:Generator_ColumnPropNameInTable="percentCompleteColumn" type="xs:int" minOccurs="0" /> - <xs:element name="statusName" msprop:Generator_UserColumnName="statusName" msprop:Generator_ColumnPropNameInRow="statusName" msprop:Generator_ColumnVarNameInTable="columnstatusName" msprop:Generator_ColumnPropNameInTable="statusNameColumn" minOccurs="0"> + <xs:element name="dateAssigned" msprop:Generator_UserColumnName="dateAssigned" msprop:Generator_ColumnVarNameInTable="columndateAssigned" msprop:Generator_ColumnPropNameInRow="dateAssigned" msprop:Generator_ColumnPropNameInTable="dateAssignedColumn" type="xs:dateTime" minOccurs="0" /> + <xs:element name="dateDue" msprop:Generator_UserColumnName="dateDue" msprop:Generator_ColumnVarNameInTable="columndateDue" msprop:Generator_ColumnPropNameInRow="dateDue" msprop:Generator_ColumnPropNameInTable="dateDueColumn" type="xs:dateTime" minOccurs="0" /> + <xs:element name="percentComplete" msprop:Generator_UserColumnName="percentComplete" msprop:Generator_ColumnVarNameInTable="columnpercentComplete" msprop:Generator_ColumnPropNameInRow="percentComplete" msprop:Generator_ColumnPropNameInTable="percentCompleteColumn" type="xs:int" minOccurs="0" /> + <xs:element name="statusName" msprop:Generator_UserColumnName="statusName" msprop:Generator_ColumnVarNameInTable="columnstatusName" msprop:Generator_ColumnPropNameInRow="statusName" msprop:Generator_ColumnPropNameInTable="statusNameColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="createdBy" msdata:ReadOnly="true" msprop:Generator_UserColumnName="createdBy" msprop:Generator_ColumnPropNameInRow="createdBy" msprop:Generator_ColumnVarNameInTable="columncreatedBy" msprop:Generator_ColumnPropNameInTable="createdByColumn" minOccurs="0"> + <xs:element name="createdBy" msdata:ReadOnly="true" msprop:Generator_UserColumnName="createdBy" msprop:Generator_ColumnVarNameInTable="columncreatedBy" msprop:Generator_ColumnPropNameInRow="createdBy" msprop:Generator_ColumnPropNameInTable="createdByColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="49" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="highPriority" msprop:Generator_UserColumnName="highPriority" msprop:Generator_ColumnPropNameInRow="highPriority" msprop:Generator_ColumnVarNameInTable="columnhighPriority" msprop:Generator_ColumnPropNameInTable="highPriorityColumn" type="xs:boolean" minOccurs="0" /> - <xs:element name="createdById" msprop:Generator_UserColumnName="createdById" msprop:Generator_ColumnPropNameInRow="createdById" msprop:Generator_ColumnVarNameInTable="columncreatedById" msprop:Generator_ColumnPropNameInTable="createdByIdColumn" type="xs:int" /> + <xs:element name="highPriority" msprop:Generator_UserColumnName="highPriority" msprop:Generator_ColumnVarNameInTable="columnhighPriority" msprop:Generator_ColumnPropNameInRow="highPriority" msprop:Generator_ColumnPropNameInTable="highPriorityColumn" type="xs:boolean" minOccurs="0" /> + <xs:element name="createdById" msprop:Generator_UserColumnName="createdById" msprop:Generator_ColumnVarNameInTable="columncreatedById" msprop:Generator_ColumnPropNameInRow="createdById" msprop:Generator_ColumnPropNameInTable="createdByIdColumn" type="xs:int" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="db_status" msprop:Generator_UserTableName="db_status" msprop:Generator_RowDeletedName="db_statusRowDeleted" msprop:Generator_RowChangedName="db_statusRowChanged" msprop:Generator_RowClassName="db_statusRow" msprop:Generator_RowChangingName="db_statusRowChanging" msprop:Generator_RowEvArgName="db_statusRowChangeEvent" msprop:Generator_RowEvHandlerName="db_statusRowChangeEventHandler" msprop:Generator_TableClassName="db_statusDataTable" msprop:Generator_TableVarName="tabledb_status" msprop:Generator_RowDeletingName="db_statusRowDeleting" msprop:Generator_TablePropName="db_status"> <xs:complexType> <xs:sequence> - <xs:element name="statusID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="statusID" msprop:Generator_ColumnVarNameInTable="columnstatusID" msprop:Generator_ColumnPropNameInRow="statusID" msprop:Generator_ColumnPropNameInTable="statusIDColumn" type="xs:int" /> - <xs:element name="Description" msprop:Generator_UserColumnName="Description" msprop:Generator_ColumnVarNameInTable="columnDescription" msprop:Generator_ColumnPropNameInRow="Description" msprop:Generator_ColumnPropNameInTable="DescriptionColumn" minOccurs="0"> + <xs:element name="statusID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="statusID" msprop:Generator_ColumnPropNameInRow="statusID" msprop:Generator_ColumnVarNameInTable="columnstatusID" msprop:Generator_ColumnPropNameInTable="statusIDColumn" type="xs:int" /> + <xs:element name="Description" msprop:Generator_UserColumnName="Description" msprop:Generator_ColumnPropNameInRow="Description" msprop:Generator_ColumnVarNameInTable="columnDescription" msprop:Generator_ColumnPropNameInTable="DescriptionColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="2147483647" /> @@ -498,67 +499,74 @@ <xs:element name="db_notes" msprop:Generator_UserTableName="db_notes" msprop:Generator_RowDeletedName="db_notesRowDeleted" msprop:Generator_RowChangedName="db_notesRowChanged" msprop:Generator_RowClassName="db_notesRow" msprop:Generator_RowChangingName="db_notesRowChanging" msprop:Generator_RowEvArgName="db_notesRowChangeEvent" msprop:Generator_RowEvHandlerName="db_notesRowChangeEventHandler" msprop:Generator_TableClassName="db_notesDataTable" msprop:Generator_TableVarName="tabledb_notes" msprop:Generator_RowDeletingName="db_notesRowDeleting" msprop:Generator_TablePropName="db_notes"> <xs:complexType> <xs:sequence> - <xs:element name="noteID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="noteID" msprop:Generator_ColumnVarNameInTable="columnnoteID" msprop:Generator_ColumnPropNameInRow="noteID" msprop:Generator_ColumnPropNameInTable="noteIDColumn" type="xs:int" /> - <xs:element name="dateCreated" msprop:Generator_UserColumnName="dateCreated" msprop:Generator_ColumnVarNameInTable="columndateCreated" msprop:Generator_ColumnPropNameInRow="dateCreated" msprop:Generator_ColumnPropNameInTable="dateCreatedColumn" type="xs:dateTime" minOccurs="0" /> - <xs:element name="noteField" msprop:Generator_UserColumnName="noteField" msprop:Generator_ColumnVarNameInTable="columnnoteField" msprop:Generator_ColumnPropNameInRow="noteField" msprop:Generator_ColumnPropNameInTable="noteFieldColumn" minOccurs="0"> + <xs:element name="noteID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="noteID" msprop:Generator_ColumnPropNameInRow="noteID" msprop:Generator_ColumnVarNameInTable="columnnoteID" msprop:Generator_ColumnPropNameInTable="noteIDColumn" type="xs:int" /> + <xs:element name="dateCreated" msprop:Generator_UserColumnName="dateCreated" msprop:Generator_ColumnPropNameInRow="dateCreated" msprop:Generator_ColumnVarNameInTable="columndateCreated" msprop:Generator_ColumnPropNameInTable="dateCreatedColumn" type="xs:dateTime" minOccurs="0" /> + <xs:element name="noteField" msprop:Generator_UserColumnName="noteField" msprop:Generator_ColumnPropNameInRow="noteField" msprop:Generator_ColumnVarNameInTable="columnnoteField" msprop:Generator_ColumnPropNameInTable="noteFieldColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="2147483647" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="noteAuthor" msprop:Generator_UserColumnName="noteAuthor" msprop:Generator_ColumnVarNameInTable="columnnoteAuthor" msprop:Generator_ColumnPropNameInRow="noteAuthor" msprop:Generator_ColumnPropNameInTable="noteAuthorColumn" type="xs:int" minOccurs="0" /> + <xs:element name="noteAuthor" msprop:Generator_UserColumnName="noteAuthor" msprop:Generator_ColumnPropNameInRow="noteAuthor" msprop:Generator_ColumnVarNameInTable="columnnoteAuthor" msprop:Generator_ColumnPropNameInTable="noteAuthorColumn" type="xs:int" minOccurs="0" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="db_assignments" msprop:Generator_UserTableName="db_assignments" msprop:Generator_RowDeletedName="db_assignmentsRowDeleted" msprop:Generator_RowChangedName="db_assignmentsRowChanged" msprop:Generator_RowClassName="db_assignmentsRow" msprop:Generator_RowChangingName="db_assignmentsRowChanging" msprop:Generator_RowEvArgName="db_assignmentsRowChangeEvent" msprop:Generator_RowEvHandlerName="db_assignmentsRowChangeEventHandler" msprop:Generator_TableClassName="db_assignmentsDataTable" msprop:Generator_TableVarName="tabledb_assignments" msprop:Generator_RowDeletingName="db_assignmentsRowDeleting" msprop:Generator_TablePropName="db_assignments"> <xs:complexType> <xs:sequence> - <xs:element name="aType" msdata:ReadOnly="true" msprop:Generator_UserColumnName="aType" msprop:Generator_ColumnVarNameInTable="columnaType" msprop:Generator_ColumnPropNameInRow="aType" msprop:Generator_ColumnPropNameInTable="aTypeColumn" minOccurs="0"> + <xs:element name="aType" msdata:ReadOnly="true" msprop:Generator_UserColumnName="aType" msprop:Generator_ColumnPropNameInRow="aType" msprop:Generator_ColumnVarNameInTable="columnaType" msprop:Generator_ColumnPropNameInTable="aTypeColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="2" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="childID" msdata:ReadOnly="true" msprop:Generator_UserColumnName="childID" msprop:Generator_ColumnVarNameInTable="columnchildID" msprop:Generator_ColumnPropNameInRow="childID" msprop:Generator_ColumnPropNameInTable="childIDColumn" type="xs:int" minOccurs="0" /> - <xs:element name="creator" msdata:ReadOnly="true" msprop:Generator_UserColumnName="creator" msprop:Generator_ColumnVarNameInTable="columncreator" msprop:Generator_ColumnPropNameInRow="creator" msprop:Generator_ColumnPropNameInTable="creatorColumn" minOccurs="0"> + <xs:element name="childID" msdata:ReadOnly="true" msprop:Generator_UserColumnName="childID" msprop:Generator_ColumnPropNameInRow="childID" msprop:Generator_ColumnVarNameInTable="columnchildID" msprop:Generator_ColumnPropNameInTable="childIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="creator" msdata:ReadOnly="true" msprop:Generator_UserColumnName="creator" msprop:Generator_ColumnPropNameInRow="creator" msprop:Generator_ColumnVarNameInTable="columncreator" msprop:Generator_ColumnPropNameInTable="creatorColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="49" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="assigned" msdata:ReadOnly="true" msprop:Generator_UserColumnName="assigned" msprop:Generator_ColumnVarNameInTable="columnassigned" msprop:Generator_ColumnPropNameInRow="assigned" msprop:Generator_ColumnPropNameInTable="assignedColumn" minOccurs="0"> + <xs:element name="assigned" msdata:ReadOnly="true" msprop:Generator_UserColumnName="assigned" msprop:Generator_ColumnPropNameInRow="assigned" msprop:Generator_ColumnVarNameInTable="columnassigned" msprop:Generator_ColumnPropNameInTable="assignedColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="49" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="assignedID" msprop:Generator_UserColumnName="assignedID" msprop:Generator_ColumnVarNameInTable="columnassignedID" msprop:Generator_ColumnPropNameInRow="assignedID" msprop:Generator_ColumnPropNameInTable="assignedIDColumn" type="xs:int" minOccurs="0" /> - <xs:element name="dateAssigned" msprop:Generator_UserColumnName="dateAssigned" msprop:Generator_ColumnVarNameInTable="columndateAssigned" msprop:Generator_ColumnPropNameInRow="dateAssigned" msprop:Generator_ColumnPropNameInTable="dateAssignedColumn" type="xs:dateTime" minOccurs="0" /> - <xs:element name="dateDue" msprop:Generator_UserColumnName="dateDue" msprop:Generator_ColumnVarNameInTable="columndateDue" msprop:Generator_ColumnPropNameInRow="dateDue" msprop:Generator_ColumnPropNameInTable="dateDueColumn" type="xs:dateTime" minOccurs="0" /> - <xs:element name="dateFinished" msprop:Generator_UserColumnName="dateFinished" msprop:Generator_ColumnVarNameInTable="columndateFinished" msprop:Generator_ColumnPropNameInRow="dateFinished" msprop:Generator_ColumnPropNameInTable="dateFinishedColumn" type="xs:dateTime" minOccurs="0" /> - <xs:element name="highPriority" msprop:Generator_UserColumnName="highPriority" msprop:Generator_ColumnVarNameInTable="columnhighPriority" msprop:Generator_ColumnPropNameInRow="highPriority" msprop:Generator_ColumnPropNameInTable="highPriorityColumn" type="xs:boolean" minOccurs="0" /> - <xs:element name="statusName" msprop:Generator_UserColumnName="statusName" msprop:Generator_ColumnVarNameInTable="columnstatusName" msprop:Generator_ColumnPropNameInRow="statusName" msprop:Generator_ColumnPropNameInTable="statusNameColumn" minOccurs="0"> + <xs:element name="assignedID" msprop:Generator_UserColumnName="assignedID" msprop:Generator_ColumnPropNameInRow="assignedID" msprop:Generator_ColumnVarNameInTable="columnassignedID" msprop:Generator_ColumnPropNameInTable="assignedIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="dateAssigned" msprop:Generator_UserColumnName="dateAssigned" msprop:Generator_ColumnPropNameInRow="dateAssigned" msprop:Generator_ColumnVarNameInTable="columndateAssigned" msprop:Generator_ColumnPropNameInTable="dateAssignedColumn" type="xs:dateTime" minOccurs="0" /> + <xs:element name="dateDue" msprop:Generator_UserColumnName="dateDue" msprop:Generator_ColumnPropNameInRow="dateDue" msprop:Generator_ColumnVarNameInTable="columndateDue" msprop:Generator_ColumnPropNameInTable="dateDueColumn" type="xs:dateTime" minOccurs="0" /> + <xs:element name="dateFinished" msprop:Generator_UserColumnName="dateFinished" msprop:Generator_ColumnPropNameInRow="dateFinished" msprop:Generator_ColumnVarNameInTable="columndateFinished" msprop:Generator_ColumnPropNameInTable="dateFinishedColumn" type="xs:dateTime" minOccurs="0" /> + <xs:element name="highPriority" msprop:Generator_UserColumnName="highPriority" msprop:Generator_ColumnPropNameInRow="highPriority" msprop:Generator_ColumnVarNameInTable="columnhighPriority" msprop:Generator_ColumnPropNameInTable="highPriorityColumn" type="xs:boolean" minOccurs="0" /> + <xs:element name="statusName" msprop:Generator_UserColumnName="statusName" msprop:Generator_ColumnPropNameInRow="statusName" msprop:Generator_ColumnVarNameInTable="columnstatusName" msprop:Generator_ColumnPropNameInTable="statusNameColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="WOTotalTest" msprop:Generator_UserColumnName="WOTotalTest" msprop:Generator_ColumnVarNameInTable="columnWOTotalTest" msprop:Generator_ColumnPropNameInRow="WOTotalTest" msprop:Generator_ColumnPropNameInTable="WOTotalTestColumn" type="xs:int" minOccurs="0" /> - <xs:element name="WOPassRate" msdata:ReadOnly="true" msprop:Generator_UserColumnName="WOPassRate" msprop:Generator_ColumnVarNameInTable="columnWOPassRate" msprop:Generator_ColumnPropNameInRow="WOPassRate" msprop:Generator_ColumnPropNameInTable="WOPassRateColumn" minOccurs="0"> + <xs:element name="WOTotalTest" msprop:Generator_UserColumnName="WOTotalTest" msprop:Generator_ColumnPropNameInRow="WOTotalTest" msprop:Generator_ColumnVarNameInTable="columnWOTotalTest" msprop:Generator_ColumnPropNameInTable="WOTotalTestColumn" type="xs:int" minOccurs="0" /> + <xs:element name="WOPassRate" msdata:ReadOnly="true" msprop:Generator_UserColumnName="WOPassRate" msprop:Generator_ColumnPropNameInRow="WOPassRate" msprop:Generator_ColumnVarNameInTable="columnWOPassRate" msprop:Generator_ColumnPropNameInTable="WOPassRateColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="31" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="WOPass" msprop:Generator_UserColumnName="WOPass" msprop:Generator_ColumnVarNameInTable="columnWOPass" msprop:Generator_ColumnPropNameInRow="WOPass" msprop:Generator_ColumnPropNameInTable="WOPassColumn" type="xs:int" minOccurs="0" /> - <xs:element name="WOFail" msprop:Generator_UserColumnName="WOFail" msprop:Generator_ColumnVarNameInTable="columnWOFail" msprop:Generator_ColumnPropNameInRow="WOFail" msprop:Generator_ColumnPropNameInTable="WOFailColumn" type="xs:int" minOccurs="0" /> - <xs:element name="WOError" msprop:Generator_UserColumnName="WOError" msprop:Generator_ColumnVarNameInTable="columnWOError" msprop:Generator_ColumnPropNameInRow="WOError" msprop:Generator_ColumnPropNameInTable="WOErrorColumn" type="xs:int" minOccurs="0" /> + <xs:element name="WOPass" msprop:Generator_UserColumnName="WOPass" msprop:Generator_ColumnPropNameInRow="WOPass" msprop:Generator_ColumnVarNameInTable="columnWOPass" msprop:Generator_ColumnPropNameInTable="WOPassColumn" type="xs:int" minOccurs="0" /> + <xs:element name="WOFail" msprop:Generator_UserColumnName="WOFail" msprop:Generator_ColumnPropNameInRow="WOFail" msprop:Generator_ColumnVarNameInTable="columnWOFail" msprop:Generator_ColumnPropNameInTable="WOFailColumn" type="xs:int" minOccurs="0" /> + <xs:element name="WOError" msprop:Generator_UserColumnName="WOError" msprop:Generator_ColumnPropNameInRow="WOError" msprop:Generator_ColumnVarNameInTable="columnWOError" msprop:Generator_ColumnPropNameInTable="WOErrorColumn" type="xs:int" minOccurs="0" /> + <xs:element name="aName" msdata:ReadOnly="true" msprop:Generator_UserColumnName="aName" msprop:Generator_ColumnPropNameInRow="aName" msprop:Generator_ColumnVarNameInTable="columnaName" msprop:Generator_ColumnPropNameInTable="aNameColumn" minOccurs="0"> + <xs:simpleType> + <xs:restriction base="xs:string"> + <xs:maxLength value="255" /> + </xs:restriction> + </xs:simpleType> + </xs:element> </xs:sequence> </xs:complexType> </xs:element> Added: Website/Global.asax =================================================================== --- Website/Global.asax (rev 0) +++ Website/Global.asax 2006-07-11 19:32:56 UTC (rev 97) @@ -0,0 +1,26 @@ +<%@ Application Language="C#" %> +<%@ Import Namespace="TCDB_Users" %> + +<script runat="server"> + + void Application_PreRequestHandlerExecute(object sender, EventArgs e) + { + TCDB_User user; + + // Fires when a security module establishes the identity of the user + if (!Context.Items.Contains("user")) + { + try + { + user = TCDB_UserDB.TCDB_GetUserInfo((int)(Session["userID"])); + } + catch + { + user = new TCDB_User(); + } + + Context.Items.Add("user", user); + } + + } +</script> Modified: Website/Includes/ActionItems.ascx =================================================================== --- Website/Includes/ActionItems.ascx 2006-07-11 17:05:34 UTC (rev 96) +++ Website/Includes/ActionItems.ascx 2006-07-11 19:32:56 UTC (rev 97) @@ -1 +1,3 @@ <%@ Control Language="C#" AutoEventWireup="true" %> +<%@ Import Namespace="TCDB_Users" %> +<script runat="server">TCDB_User g_user = TCDB_UserDB.TCDB_GetUserInstance();</script> Modified: Website/Includes/AdministrationTree.ascx =================================================================== --- Website/Includes/AdministrationTree.ascx 2006-07-11 17:05:34 UTC (rev 96) +++ Website/Includes/AdministrationTree.ascx 2006-07-11 19:32:56 UTC (rev 97) @@ -1,4 +1,6 @@ <%@ Control Language="C#" ClassName="AdministrationTree" %> +<%@ Import Namespace="TCDB_Users" %> +<script runat="server">TCDB_User g_user = TCDB_UserDB.TCDB_GetUserInstance();</script> <script runat="server"> Modified: Website/Includes/Assignments.ascx =================================================================== --- Website/Includes/Assignments.ascx 2006-07-11 17:05:34 UTC (rev 96) +++ Website/Includes/Assignments.ascx 2006-07-11 19:32:56 UTC (rev 97) @@ -1 +1,3 @@ <%@ Control Language="C#" AutoEventWireup="true" %> +<%@ Import Namespace="TCDB_Users" %> +<script runat="server">TCDB_User g_user = TCDB_UserDB.TCDB_GetUserInstance();</script> Modified: Website/Includes/AssignmentsTree.ascx =================================================================== --- Website/Includes/AssignmentsTree.ascx 2006-07-11 17:05:34 UTC (rev 96) +++ Website/Includes/AssignmentsTree.ascx 2006-07-11 19:32:56 UTC (rev 97) @@ -4,8 +4,8 @@ <%@ Import Namespace="System.Collections.Generic" %> <%@ Import Namespace="TCDB_Assignments" %> <%@ Import Namespace="TCDB_Users" %> +<script runat="server">TCDB_User g_user = TCDB_UserDB.TCDB_GetUserInstance();</script> - <script runat="server"> protected void Page_Load(object sender, EventArgs e) @@ -24,11 +24,6 @@ protected void AssignmentsTree_TreeNodePopulate(object sender, TreeNodeEventArgs e) { - TreeView tv = (TreeView)sender; - DataSet ResultsDataSet = new DataSet(); - SqlDataAdapter DBAdapter; - String query; - // Call the appropriate method to populate a node at a particular level. switch (e.Node.Depth) { @@ -46,7 +41,7 @@ priv... [truncated message content] |
From: <ro...@us...> - 2006-07-11 17:05:50
|
Revision: 96 Author: rouquin Date: 2006-07-11 10:05:34 -0700 (Tue, 11 Jul 2006) ViewCVS: http://svn.sourceforge.net/tcdb/?rev=96&view=rev Log Message: ----------- Add testpassEdit and tried to get TreeView to remember state, but its harder than it looks. Looks like many people online have come across this problem. Does anyone know of a better TreeView out there? I think it might be easier on the new website as well. Modified Paths: -------------- WebPrototype/ActionItemEdit.aspx WebPrototype/AdminMaster.master WebPrototype/AdminMaster.master.cs WebPrototype/App_Code/DummyDataSet.xsd WebPrototype/App_Code/DummyDataSet.xss WebPrototype/App_Data/ASPNETDB.MDF WebPrototype/App_Data/Database.mdf WebPrototype/App_Data/Database_log.LDF WebPrototype/App_Data/aspnetdb_log.ldf WebPrototype/AssignmentMaster.master WebPrototype/AssignmentMaster.master.cs WebPrototype/Assignments.aspx WebPrototype/testpassEdit.aspx WebPrototype/testpassEdit.aspx.cs Modified: WebPrototype/ActionItemEdit.aspx =================================================================== --- WebPrototype/ActionItemEdit.aspx 2006-07-11 16:37:47 UTC (rev 95) +++ WebPrototype/ActionItemEdit.aspx 2006-07-11 17:05:34 UTC (rev 96) @@ -1,6 +1,6 @@ <%@ Page Language="C#" MasterPageFile="~/AssignmentMaster.master" AutoEventWireup="true" ValidateRequest="false" CodeFile="ActionItemEdit.aspx.cs" Inherits="ActionItemEdit" - Title="Action Item" %> + Title="Action Item" EnableViewState="true" %> <%@ MasterType VirtualPath="~/AssignmentMaster.master" %> <%@ Register Assembly="EclipseWebSolutions.CustomControls" Namespace="EclipseWebSolutions.CustomControls" Modified: WebPrototype/AdminMaster.master =================================================================== --- WebPrototype/AdminMaster.master 2006-07-11 16:37:47 UTC (rev 95) +++ WebPrototype/AdminMaster.master 2006-07-11 17:05:34 UTC (rev 96) @@ -78,7 +78,7 @@ OnTreeNodePopulate=TreeView1_TreeNodePopulate ExpandDepth=FullyExpand> <Nodes> <asp:TreeNode Text="Products" Value="Users" PopulateOnDemand="True" SelectAction=Expand - NavigateUrl="~/TestManagement.aspx" /> + NavigateUrl="~/Admin.aspx" /> </Nodes> <SelectedNodeStyle CssClass="selectednode" /> </asp:TreeView> Modified: WebPrototype/AdminMaster.master.cs =================================================================== --- WebPrototype/AdminMaster.master.cs 2006-07-11 16:37:47 UTC (rev 95) +++ WebPrototype/AdminMaster.master.cs 2006-07-11 17:05:34 UTC (rev 96) @@ -321,6 +321,35 @@ e.Node.ChildNodes.Add(newNode); } } + } else if (e.Node.Value == "testpass") + { + // Populate TestPass + query = "SELECT * FROM testPass where versionID=" + e.Node.Parent.Value; + DBAdapter = new SqlDataAdapter(query, DBConnection); + DBAdapter.Fill(ResultsDataSet); + + if (ResultsDataSet.Tables.Count > 0) + { + foreach (DataRow row in ResultsDataSet.Tables[0].Rows) + { + // Create the new node. + newNode = new TreeNode(); + newNode.Text = "<font color=blue>" + row["name"] + "</font>"; + newNode.Value = row["testPassID"].ToString(); + + // Set the PopulateOnDemand property to true so that the child nodes can be + // dynamically populated. + newNode.PopulateOnDemand = true; + + // Set additional properties for the node. + newNode.SelectAction = TreeNodeSelectAction.Expand; + newNode.NavigateUrl = "~/TestPassEdit.aspx?id=" + newNode.Value; + + // Add the new node to the ChildNodes collection of the parent node. + e.Node.ChildNodes.Add(newNode); + } + } + } break; } Modified: WebPrototype/App_Code/DummyDataSet.xsd =================================================================== --- WebPrototype/App_Code/DummyDataSet.xsd 2006-07-11 16:37:47 UTC (rev 95) +++ WebPrototype/App_Code/DummyDataSet.xsd 2006-07-11 17:05:34 UTC (rev 96) @@ -1032,7 +1032,7 @@ <Mapping SourceColumn="platformName" DataSetColumn="platformName" /> </Mappings> <Sources> - <DbSource ConnectionRef="DummyDatabaseConnectionString (Web.config)" DbObjectName="dbo.platform" DbObjectType="Table" GenerateMethods="Get" GenerateShortCommands="True" GeneratorGetMethodName="GetPlatformByTestCase" GeneratorSourceName="FillBy" GetMethodModifier="Public" GetMethodName="GetPlatformByTestCase" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetPlatformByTestCase" UserSourceName="FillBy"> + <DbSource ConnectionRef="DummyDatabaseConnectionString (Web.config)" DbObjectName="dbo.platform" DbObjectType="Table" GenerateMethods="Get" GenerateShortCommands="True" GeneratorGetMethodName="GetPlatformByTestCase" GeneratorSourceName="FillBy" GetMethodModifier="Public" GetMethodName="GetPlatformByTestCase" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetPlatformByTestCase" UserSourceName="GetPlatformByTestCase1"> <SelectCommand> <DbCommand CommandType="Text" ModifiedByUser="True"> <CommandText>SELECT platform.architectureID, platform.osID, platform.platformID, os.friendlyName + ' (' + architecture.name + ')' AS platformName FROM platform INNER JOIN testCasePlatform AS ptc ON ptc.platformID = platform.platformID LEFT OUTER JOIN os ON os.osID = platform.osID LEFT OUTER JOIN architecture ON architecture.architectureID = platform.architectureID WHERE (ptc.testCaseID = @testCaseID)</CommandText> @@ -1135,7 +1135,7 @@ <Mapping SourceColumn="codeName" DataSetColumn="codeName" /> </Mappings> <Sources> - <DbSource ConnectionRef="DummyDatabaseConnectionString (Web.config)" DbObjectName="dbo.os" DbObjectType="Table" GenerateMethods="Get" GenerateShortCommands="True" GeneratorGetMethodName="GetOSByTestCase" GetMethodModifier="Public" GetMethodName="GetOSByTestCase" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetOSByTestCase" UserSourceName="FillBy"> + <DbSource ConnectionRef="DummyDatabaseConnectionString (Web.config)" DbObjectName="dbo.os" DbObjectType="Table" GenerateMethods="Get" GenerateShortCommands="True" GeneratorGetMethodName="GetOSByTestCase" GetMethodModifier="Public" GetMethodName="GetOSByTestCase" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetOSByTestCase" UserSourceName="GetOSByTestCase1"> <SelectCommand> <DbCommand CommandType="Text" ModifiedByUser="True"> <CommandText>SELECT os.osID, os.friendlyName, os.codeName @@ -1330,6 +1330,59 @@ <Mapping SourceColumn="versionID" DataSetColumn="versionID" /> </Mappings> <Sources> + <DbSource ConnectionRef="DummyDatabaseConnectionString (Web.config)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="True" GeneratorSourceName="DeleteTestPassByID" Modifier="Public" Name="DeleteTestPassByID" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetDataBy1" UserSourceName="DeleteTestPassByID"> + <DeleteCommand> + <DbCommand CommandType="Text" ModifiedByUser="True"> + <CommandText>DELETE FROM testPass WHERE testPassID=@original_testPassID</CommandText> + <Parameters> + <Parameter AllowDbNull="False" AutogeneratedName="original_testPassID" ColumnName="testPassID" DataSourceName="[C:\DOCUMENTS AND SETTINGS\MICHAELT\DESKTOP\TCDB\WEBPROTOTYPE\APP_DATA\DATABASE.MDF].dbo.testPass" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@original_testPassID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="testPassID" SourceColumnNullMapping="False" SourceVersion="Original"> + </Parameter> + </Parameters> + </DbCommand> + </DeleteCommand> + </DbSource> + <DbSource ConnectionRef="DummyDatabaseConnectionString (Web.config)" DbObjectType="Unknown" GenerateMethods="Get" GenerateShortCommands="True" GeneratorGetMethodName="GetTestPassByID" GetMethodModifier="Public" GetMethodName="GetTestPassByID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetTestPassByID" UserSourceName="FillBy"> + <SelectCommand> + <DbCommand CommandType="Text" ModifiedByUser="True"> + <CommandText>SELECT testPass.testPassID, testpass.name, testPass.versionID, version.number AS versionName +FROM testPass LEFT OUTER JOIN version ON version.versionID=testPass.versionID +WHERE testPassID=@testPassID</CommandText> + <Parameters> + <Parameter AllowDbNull="False" AutogeneratedName="testPassID" ColumnName="testPassID" DataSourceName="[C:\DOCUMENTS AND SETTINGS\MICHAELT\DESKTOP\TCDB\WEBPROTOTYPE\APP_DATA\DATABASE.MDF].dbo.testPass" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@testPassID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="testPassID" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + </Parameters> + </DbCommand> + </SelectCommand> + </DbSource> + <DbSource ConnectionRef="DummyDatabaseConnectionString (Web.config)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="True" GeneratorSourceName="InsertTestPass" Modifier="Public" Name="InsertTestPass" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetDataBy2" UserSourceName="InsertTestPass"> + <InsertCommand> + <DbCommand CommandType="Text" ModifiedByUser="True"> + <CommandText>INSERT INTO testPass (name,versionID) VALUES (@name,@versionID)</CommandText> + <Parameters> + <Parameter AllowDbNull="False" AutogeneratedName="name" ColumnName="name" DataSourceName="[C:\DOCUMENTS AND SETTINGS\MICHAELT\DESKTOP\TCDB\WEBPROTOTYPE\APP_DATA\DATABASE.MDF].dbo.testPass" DataTypeServer="varchar(255)" DbType="AnsiString" Direction="Input" ParameterName="@name" Precision="0" ProviderType="VarChar" Scale="0" Size="255" SourceColumn="name" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="False" AutogeneratedName="versionID" ColumnName="versionID" DataSourceName="[C:\DOCUMENTS AND SETTINGS\MICHAELT\DESKTOP\TCDB\WEBPROTOTYPE\APP_DATA\DATABASE.MDF].dbo.testPass" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@versionID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="versionID" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + </Parameters> + </DbCommand> + </InsertCommand> + </DbSource> + <DbSource ConnectionRef="DummyDatabaseConnectionString (Web.config)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="True" GeneratorGetMethodName="GetDataBy" GeneratorSourceName="UpdateTestPassByID" Modifier="Public" Name="UpdateTestPassByID" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetDataBy" UserSourceName="UpdateTestPassByID"> + <UpdateCommand> + <DbCommand CommandType="Text" ModifiedByUser="True"> + <CommandText>UPDATE testPass SET name=@name, versionID=@versionID +WHERE testPassID=@original_testPassID</CommandText> + <Parameters> + <Parameter AllowDbNull="False" AutogeneratedName="name" ColumnName="name" DataSourceName="[C:\DOCUMENTS AND SETTINGS\MICHAELT\DESKTOP\TCDB\WEBPROTOTYPE\APP_DATA\DATABASE.MDF].dbo.testPass" DataTypeServer="varchar(255)" DbType="AnsiString" Direction="Input" ParameterName="@name" Precision="0" ProviderType="VarChar" Scale="0" Size="255" SourceColumn="name" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="False" AutogeneratedName="versionID" ColumnName="versionID" DataSourceName="[C:\DOCUMENTS AND SETTINGS\MICHAELT\DESKTOP\TCDB\WEBPROTOTYPE\APP_DATA\DATABASE.MDF].dbo.testPass" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@versionID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="versionID" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="False" AutogeneratedName="original_testPassID" ColumnName="testPassID" DataSourceName="[C:\DOCUMENTS AND SETTINGS\MICHAELT\DESKTOP\TCDB\WEBPROTOTYPE\APP_DATA\DATABASE.MDF].dbo.testPass" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@original_testPassID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="testPassID" SourceColumnNullMapping="False" SourceVersion="Original"> + </Parameter> + </Parameters> + </DbCommand> + </UpdateCommand> + </DbSource> </Sources> </TableAdapter> </Tables> @@ -1344,102 +1397,102 @@ <xs:element name="Objective" msprop:Generator_UserTableName="Objective" msprop:Generator_RowDeletedName="ObjectiveRowDeleted" msprop:Generator_RowChangedName="ObjectiveRowChanged" msprop:Generator_RowClassName="ObjectiveRow" msprop:Generator_RowChangingName="ObjectiveRowChanging" msprop:Generator_RowEvArgName="ObjectiveRowChangeEvent" msprop:Generator_RowEvHandlerName="ObjectiveRowChangeEventHandler" msprop:Generator_TableClassName="ObjectiveDataTable" msprop:Generator_TableVarName="tableObjective" msprop:Generator_RowDeletingName="ObjectiveRowDeleting" msprop:Generator_TablePropName="Objective"> <xs:complexType> <xs:sequence> - <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnPropNameInTable="nameColumn" minOccurs="0"> + <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInTable="nameColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="255" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> + <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="2147483647" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="objectiveID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="objectiveID" msprop:Generator_ColumnVarNameInTable="columnobjectiveID" msprop:Generator_ColumnPropNameInRow="objectiveID" msprop:Generator_ColumnPropNameInTable="objectiveIDColumn" type="xs:int" /> - <xs:element name="featureID" msprop:Generator_UserColumnName="featureID" msprop:Generator_ColumnVarNameInTable="columnfeatureID" msprop:Generator_ColumnPropNameInRow="featureID" msprop:Generator_ColumnPropNameInTable="featureIDColumn" type="xs:int" /> - <xs:element name="userID" msprop:Generator_UserColumnName="userID" msprop:Generator_ColumnVarNameInTable="columnuserID" msprop:Generator_ColumnPropNameInRow="userID" msprop:Generator_ColumnPropNameInTable="userIDColumn" type="xs:int" minOccurs="0" /> - <xs:element name="dateCreated" msprop:Generator_UserColumnName="dateCreated" msprop:Generator_ColumnVarNameInTable="columndateCreated" msprop:Generator_ColumnPropNameInRow="dateCreated" msprop:Generator_ColumnPropNameInTable="dateCreatedColumn" type="xs:dateTime" minOccurs="0" /> - <xs:element name="statusID" msprop:Generator_UserColumnName="statusID" msprop:Generator_ColumnVarNameInTable="columnstatusID" msprop:Generator_ColumnPropNameInRow="statusID" msprop:Generator_ColumnPropNameInTable="statusIDColumn" type="xs:int" default="0" minOccurs="0" /> + <xs:element name="objectiveID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="objectiveID" msprop:Generator_ColumnPropNameInRow="objectiveID" msprop:Generator_ColumnVarNameInTable="columnobjectiveID" msprop:Generator_ColumnPropNameInTable="objectiveIDColumn" type="xs:int" /> + <xs:element name="featureID" msprop:Generator_UserColumnName="featureID" msprop:Generator_ColumnPropNameInRow="featureID" msprop:Generator_ColumnVarNameInTable="columnfeatureID" msprop:Generator_ColumnPropNameInTable="featureIDColumn" type="xs:int" /> + <xs:element name="userID" msprop:Generator_UserColumnName="userID" msprop:Generator_ColumnPropNameInRow="userID" msprop:Generator_ColumnVarNameInTable="columnuserID" msprop:Generator_ColumnPropNameInTable="userIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="dateCreated" msprop:Generator_UserColumnName="dateCreated" msprop:Generator_ColumnPropNameInRow="dateCreated" msprop:Generator_ColumnVarNameInTable="columndateCreated" msprop:Generator_ColumnPropNameInTable="dateCreatedColumn" type="xs:dateTime" minOccurs="0" /> + <xs:element name="statusID" msprop:Generator_UserColumnName="statusID" msprop:Generator_ColumnPropNameInRow="statusID" msprop:Generator_ColumnVarNameInTable="columnstatusID" msprop:Generator_ColumnPropNameInTable="statusIDColumn" type="xs:int" default="0" minOccurs="0" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="TestCase" msprop:Generator_UserTableName="TestCase" msprop:Generator_RowDeletedName="TestCaseRowDeleted" msprop:Generator_RowChangedName="TestCaseRowChanged" msprop:Generator_RowClassName="TestCaseRow" msprop:Generator_RowChangingName="TestCaseRowChanging" msprop:Generator_RowEvArgName="TestCaseRowChangeEvent" msprop:Generator_RowEvHandlerName="TestCaseRowChangeEventHandler" msprop:Generator_TableClassName="TestCaseDataTable" msprop:Generator_TableVarName="tableTestCase" msprop:Generator_RowDeletingName="TestCaseRowDeleting" msprop:Generator_TablePropName="TestCase"> <xs:complexType> <xs:sequence> - <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnPropNameInTable="nameColumn" minOccurs="0"> + <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInTable="nameColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="255" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="steps" msprop:Generator_UserColumnName="steps" msprop:Generator_ColumnVarNameInTable="columnsteps" msprop:Generator_ColumnPropNameInRow="steps" msprop:Generator_ColumnPropNameInTable="stepsColumn" minOccurs="0"> + <xs:element name="steps" msprop:Generator_UserColumnName="steps" msprop:Generator_ColumnPropNameInRow="steps" msprop:Generator_ColumnVarNameInTable="columnsteps" msprop:Generator_ColumnPropNameInTable="stepsColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="2147483647" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="number" msprop:Generator_UserColumnName="number" msprop:Generator_ColumnVarNameInTable="columnnumber" msprop:Generator_ColumnPropNameInRow="number" msprop:Generator_ColumnPropNameInTable="numberColumn" type="xs:int" minOccurs="0" /> - <xs:element name="dateCreated" msprop:Generator_UserColumnName="dateCreated" msprop:Generator_ColumnVarNameInTable="columndateCreated" msprop:Generator_ColumnPropNameInRow="dateCreated" msprop:Generator_ColumnPropNameInTable="dateCreatedColumn" type="xs:dateTime" minOccurs="0" /> - <xs:element name="dateEdited" msprop:Generator_UserColumnName="dateEdited" msprop:Generator_ColumnVarNameInTable="columndateEdited" msprop:Generator_ColumnPropNameInRow="dateEdited" msprop:Generator_ColumnPropNameInTable="dateEditedColumn" type="xs:dateTime" minOccurs="0" /> - <xs:element name="objectiveID" msprop:Generator_UserColumnName="objectiveID" msprop:Generator_ColumnVarNameInTable="columnobjectiveID" msprop:Generator_ColumnPropNameInRow="objectiveID" msprop:Generator_ColumnPropNameInTable="objectiveIDColumn" type="xs:int" minOccurs="0" /> - <xs:element name="statusID" msprop:Generator_UserColumnName="statusID" msprop:Generator_ColumnVarNameInTable="columnstatusID" msprop:Generator_ColumnPropNameInRow="statusID" msprop:Generator_ColumnPropNameInTable="statusIDColumn" type="xs:int" minOccurs="0" /> - <xs:element name="testcaseID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="testcaseID" msprop:Generator_ColumnPropNameInRow="testcaseID" msprop:Generator_ColumnVarNameInTable="columntestcaseID" msprop:Generator_ColumnPropNameInTable="testcaseIDColumn" type="xs:int" /> - <xs:element name="creatorID" msprop:Generator_UserColumnName="creatorID" msprop:Generator_ColumnPropNameInRow="creatorID" msprop:Generator_ColumnVarNameInTable="columncreatorID" msprop:Generator_ColumnPropNameInTable="creatorIDColumn" type="xs:int" minOccurs="0" /> - <xs:element name="lastEditID" msprop:Generator_UserColumnName="lastEditID" msprop:Generator_ColumnPropNameInRow="lastEditID" msprop:Generator_ColumnVarNameInTable="columnlastEditID" msprop:Generator_ColumnPropNameInTable="lastEditIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="number" msprop:Generator_UserColumnName="number" msprop:Generator_ColumnPropNameInRow="number" msprop:Generator_ColumnVarNameInTable="columnnumber" msprop:Generator_ColumnPropNameInTable="numberColumn" type="xs:int" minOccurs="0" /> + <xs:element name="dateCreated" msprop:Generator_UserColumnName="dateCreated" msprop:Generator_ColumnPropNameInRow="dateCreated" msprop:Generator_ColumnVarNameInTable="columndateCreated" msprop:Generator_ColumnPropNameInTable="dateCreatedColumn" type="xs:dateTime" minOccurs="0" /> + <xs:element name="dateEdited" msprop:Generator_UserColumnName="dateEdited" msprop:Generator_ColumnPropNameInRow="dateEdited" msprop:Generator_ColumnVarNameInTable="columndateEdited" msprop:Generator_ColumnPropNameInTable="dateEditedColumn" type="xs:dateTime" minOccurs="0" /> + <xs:element name="objectiveID" msprop:Generator_UserColumnName="objectiveID" msprop:Generator_ColumnPropNameInRow="objectiveID" msprop:Generator_ColumnVarNameInTable="columnobjectiveID" msprop:Generator_ColumnPropNameInTable="objectiveIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="statusID" msprop:Generator_UserColumnName="statusID" msprop:Generator_ColumnPropNameInRow="statusID" msprop:Generator_ColumnVarNameInTable="columnstatusID" msprop:Generator_ColumnPropNameInTable="statusIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="testcaseID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="testcaseID" msprop:Generator_ColumnVarNameInTable="columntestcaseID" msprop:Generator_ColumnPropNameInRow="testcaseID" msprop:Generator_ColumnPropNameInTable="testcaseIDColumn" type="xs:int" /> + <xs:element name="creatorID" msprop:Generator_UserColumnName="creatorID" msprop:Generator_ColumnVarNameInTable="columncreatorID" msprop:Generator_ColumnPropNameInRow="creatorID" msprop:Generator_ColumnPropNameInTable="creatorIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="lastEditID" msprop:Generator_UserColumnName="lastEditID" msprop:Generator_ColumnVarNameInTable="columnlastEditID" msprop:Generator_ColumnPropNameInRow="lastEditID" msprop:Generator_ColumnPropNameInTable="lastEditIDColumn" type="xs:int" minOccurs="0" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Tags" msprop:Generator_UserTableName="Tags" msprop:Generator_RowDeletedName="TagsRowDeleted" msprop:Generator_RowChangedName="TagsRowChanged" msprop:Generator_RowClassName="TagsRow" msprop:Generator_RowChangingName="TagsRowChanging" msprop:Generator_RowEvArgName="TagsRowChangeEvent" msprop:Generator_RowEvHandlerName="TagsRowChangeEventHandler" msprop:Generator_TableClassName="TagsDataTable" msprop:Generator_TableVarName="tableTags" msprop:Generator_RowDeletingName="TagsRowDeleting" msprop:Generator_TablePropName="Tags"> <xs:complexType> <xs:sequence> - <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnPropNameInTable="nameColumn"> + <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInTable="nameColumn"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> + <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="255" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="tagID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="tagID" msprop:Generator_ColumnPropNameInRow="tagID" msprop:Generator_ColumnVarNameInTable="columntagID" msprop:Generator_ColumnPropNameInTable="tagIDColumn" type="xs:int" /> - <xs:element name="productID" msprop:Generator_UserColumnName="productID" msprop:Generator_ColumnPropNameInRow="productID" msprop:Generator_ColumnVarNameInTable="columnproductID" msprop:Generator_ColumnPropNameInTable="productIDColumn" type="xs:int" /> + <xs:element name="tagID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="tagID" msprop:Generator_ColumnVarNameInTable="columntagID" msprop:Generator_ColumnPropNameInRow="tagID" msprop:Generator_ColumnPropNameInTable="tagIDColumn" type="xs:int" /> + <xs:element name="productID" msprop:Generator_UserColumnName="productID" msprop:Generator_ColumnVarNameInTable="columnproductID" msprop:Generator_ColumnPropNameInRow="productID" msprop:Generator_ColumnPropNameInTable="productIDColumn" type="xs:int" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="product" msprop:Generator_UserTableName="product" msprop:Generator_RowDeletedName="productRowDeleted" msprop:Generator_RowChangedName="productRowChanged" msprop:Generator_RowClassName="productRow" msprop:Generator_RowChangingName="productRowChanging" msprop:Generator_RowEvArgName="productRowChangeEvent" msprop:Generator_RowEvHandlerName="productRowChangeEventHandler" msprop:Generator_TableClassName="productDataTable" msprop:Generator_TableVarName="tableproduct" msprop:Generator_RowDeletingName="productRowDeleting" msprop:Generator_TablePropName="product"> <xs:complexType> <xs:sequence> - <xs:element name="productID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="productID" msprop:Generator_ColumnVarNameInTable="columnproductID" msprop:Generator_ColumnPropNameInRow="productID" msprop:Generator_ColumnPropNameInTable="productIDColumn" type="xs:int" /> - <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnPropNameInTable="nameColumn" minOccurs="0"> + <xs:element name="productID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="productID" msprop:Generator_ColumnPropNameInRow="productID" msprop:Generator_ColumnVarNameInTable="columnproductID" msprop:Generator_ColumnPropNameInTable="productIDColumn" type="xs:int" /> + <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInTable="nameColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="255" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> + <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="2147483647" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="devManager" msprop:Generator_UserColumnName="devManager" msprop:Generator_ColumnVarNameInTable="columndevManager" msprop:Generator_ColumnPropNameInRow="devManager" msprop:Generator_ColumnPropNameInTable="devManagerColumn" type="xs:int" minOccurs="0" /> - <xs:element name="qaManager" msprop:Generator_UserColumnName="qaManager" msprop:Generator_ColumnVarNameInTable="columnqaManager" msprop:Generator_ColumnPropNameInRow="qaManager" msprop:Generator_ColumnPropNameInTable="qaManagerColumn" type="xs:int" minOccurs="0" /> - <xs:element name="devLead" msprop:Generator_UserColumnName="devLead" msprop:Generator_ColumnVarNameInTable="columndevLead" msprop:Generator_ColumnPropNameInRow="devLead" msprop:Generator_ColumnPropNameInTable="devLeadColumn" type="xs:int" minOccurs="0" /> - <xs:element name="qaLead" msprop:Generator_UserColumnName="qaLead" msprop:Generator_ColumnVarNameInTable="columnqaLead" msprop:Generator_ColumnPropNameInRow="qaLead" msprop:Generator_ColumnPropNameInTable="qaLeadColumn" type="xs:int" minOccurs="0" /> - <xs:element name="pm" msprop:Generator_UserColumnName="pm" msprop:Generator_ColumnVarNameInTable="columnpm" msprop:Generator_ColumnPropNameInRow="pm" msprop:Generator_ColumnPropNameInTable="pmColumn" type="xs:int" minOccurs="0" /> - <xs:element name="codeName" msprop:Generator_UserColumnName="codeName" msprop:Generator_ColumnVarNameInTable="columncodeName" msprop:Generator_ColumnPropNameInRow="codeName" msprop:Generator_ColumnPropNameInTable="codeNameColumn" minOccurs="0"> + <xs:element name="devManager" msprop:Generator_UserColumnName="devManager" msprop:Generator_ColumnPropNameInRow="devManager" msprop:Generator_ColumnVarNameInTable="columndevManager" msprop:Generator_ColumnPropNameInTable="devManagerColumn" type="xs:int" minOccurs="0" /> + <xs:element name="qaManager" msprop:Generator_UserColumnName="qaManager" msprop:Generator_ColumnPropNameInRow="qaManager" msprop:Generator_ColumnVarNameInTable="columnqaManager" msprop:Generator_ColumnPropNameInTable="qaManagerColumn" type="xs:int" minOccurs="0" /> + <xs:element name="devLead" msprop:Generator_UserColumnName="devLead" msprop:Generator_ColumnPropNameInRow="devLead" msprop:Generator_ColumnVarNameInTable="columndevLead" msprop:Generator_ColumnPropNameInTable="devLeadColumn" type="xs:int" minOccurs="0" /> + <xs:element name="qaLead" msprop:Generator_UserColumnName="qaLead" msprop:Generator_ColumnPropNameInRow="qaLead" msprop:Generator_ColumnVarNameInTable="columnqaLead" msprop:Generator_ColumnPropNameInTable="qaLeadColumn" type="xs:int" minOccurs="0" /> + <xs:element name="pm" msprop:Generator_UserColumnName="pm" msprop:Generator_ColumnPropNameInRow="pm" msprop:Generator_ColumnVarNameInTable="columnpm" msprop:Generator_ColumnPropNameInTable="pmColumn" type="xs:int" minOccurs="0" /> + <xs:element name="codeName" msprop:Generator_UserColumnName="codeName" msprop:Generator_ColumnPropNameInRow="codeName" msprop:Generator_ColumnVarNameInTable="columncodeName" msprop:Generator_ColumnPropNameInTable="codeNameColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="10" /> @@ -1452,51 +1505,51 @@ <xs:element name="Users" msprop:Generator_UserTableName="Users" msprop:Generator_RowDeletedName="UsersRowDeleted" msprop:Generator_RowChangedName="UsersRowChanged" msprop:Generator_RowClassName="UsersRow" msprop:Generator_RowChangingName="UsersRowChanging" msprop:Generator_RowEvArgName="UsersRowChangeEvent" msprop:Generator_RowEvHandlerName="UsersRowChangeEventHandler" msprop:Generator_TableClassName="UsersDataTable" msprop:Generator_TableVarName="tableUsers" msprop:Generator_RowDeletingName="UsersRowDeleting" msprop:Generator_TablePropName="Users"> <xs:complexType> <xs:sequence> - <xs:element name="email" msprop:Generator_UserColumnName="email" msprop:Generator_ColumnPropNameInRow="email" msprop:Generator_ColumnVarNameInTable="columnemail" msprop:Generator_ColumnPropNameInTable="emailColumn" minOccurs="0"> + <xs:element name="email" msprop:Generator_UserColumnName="email" msprop:Generator_ColumnVarNameInTable="columnemail" msprop:Generator_ColumnPropNameInRow="email" msprop:Generator_ColumnPropNameInTable="emailColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="officePhone" msprop:Generator_UserColumnName="officePhone" msprop:Generator_ColumnPropNameInRow="officePhone" msprop:Generator_ColumnVarNameInTable="columnofficePhone" msprop:Generator_ColumnPropNameInTable="officePhoneColumn" minOccurs="0"> + <xs:element name="officePhone" msprop:Generator_UserColumnName="officePhone" msprop:Generator_ColumnVarNameInTable="columnofficePhone" msprop:Generator_ColumnPropNameInRow="officePhone" msprop:Generator_ColumnPropNameInTable="officePhoneColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="15" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="homePhone" msprop:Generator_UserColumnName="homePhone" msprop:Generator_ColumnPropNameInRow="homePhone" msprop:Generator_ColumnVarNameInTable="columnhomePhone" msprop:Generator_ColumnPropNameInTable="homePhoneColumn" minOccurs="0"> + <xs:element name="homePhone" msprop:Generator_UserColumnName="homePhone" msprop:Generator_ColumnVarNameInTable="columnhomePhone" msprop:Generator_ColumnPropNameInRow="homePhone" msprop:Generator_ColumnPropNameInTable="homePhoneColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="15" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="cellPhone" msprop:Generator_UserColumnName="cellPhone" msprop:Generator_ColumnPropNameInRow="cellPhone" msprop:Generator_ColumnVarNameInTable="columncellPhone" msprop:Generator_ColumnPropNameInTable="cellPhoneColumn" minOccurs="0"> + <xs:element name="cellPhone" msprop:Generator_UserColumnName="cellPhone" msprop:Generator_ColumnVarNameInTable="columncellPhone" msprop:Generator_ColumnPropNameInRow="cellPhone" msprop:Generator_ColumnPropNameInTable="cellPhoneColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="15" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="firstName" msprop:Generator_UserColumnName="firstName" msprop:Generator_ColumnPropNameInRow="firstName" msprop:Generator_ColumnVarNameInTable="columnfirstName" msprop:Generator_ColumnPropNameInTable="firstNameColumn" minOccurs="0"> + <xs:element name="firstName" msprop:Generator_UserColumnName="firstName" msprop:Generator_ColumnVarNameInTable="columnfirstName" msprop:Generator_ColumnPropNameInRow="firstName" msprop:Generator_ColumnPropNameInTable="firstNameColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="lastName" msprop:Generator_UserColumnName="lastName" msprop:Generator_ColumnPropNameInRow="lastName" msprop:Generator_ColumnVarNameInTable="columnlastName" msprop:Generator_ColumnPropNameInTable="lastNameColumn" minOccurs="0"> + <xs:element name="lastName" msprop:Generator_UserColumnName="lastName" msprop:Generator_ColumnVarNameInTable="columnlastName" msprop:Generator_ColumnPropNameInRow="lastName" msprop:Generator_ColumnPropNameInTable="lastNameColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="automation" msprop:Generator_UserColumnName="automation" msprop:Generator_ColumnPropNameInRow="automation" msprop:Generator_ColumnVarNameInTable="columnautomation" msprop:Generator_ColumnPropNameInTable="automationColumn" type="xs:boolean" minOccurs="0" /> - <xs:element name="userID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="userID" msprop:Generator_ColumnVarNameInTable="columnuserID" msprop:Generator_ColumnPropNameInRow="userID" msprop:Generator_ColumnPropNameInTable="userIDColumn" type="xs:int" /> - <xs:element name="username" msprop:Generator_UserColumnName="username" msprop:Generator_ColumnVarNameInTable="columnusername" msprop:Generator_ColumnPropNameInRow="username" msprop:Generator_ColumnPropNameInTable="usernameColumn" minOccurs="0"> + <xs:element name="automation" msprop:Generator_UserColumnName="automation" msprop:Generator_ColumnVarNameInTable="columnautomation" msprop:Generator_ColumnPropNameInRow="automation" msprop:Generator_ColumnPropNameInTable="automationColumn" type="xs:boolean" minOccurs="0" /> + <xs:element name="userID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="userID" msprop:Generator_ColumnPropNameInRow="userID" msprop:Generator_ColumnVarNameInTable="columnuserID" msprop:Generator_ColumnPropNameInTable="userIDColumn" type="xs:int" /> + <xs:element name="username" msprop:Generator_UserColumnName="username" msprop:Generator_ColumnPropNameInRow="username" msprop:Generator_ColumnVarNameInTable="columnusername" msprop:Generator_ColumnPropNameInTable="usernameColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> @@ -1509,22 +1562,22 @@ <xs:element name="Status" msprop:Generator_UserTableName="Status" msprop:Generator_RowDeletedName="StatusRowDeleted" msprop:Generator_RowChangedName="StatusRowChanged" msprop:Generator_RowClassName="StatusRow" msprop:Generator_RowChangingName="StatusRowChanging" msprop:Generator_RowEvArgName="StatusRowChangeEvent" msprop:Generator_RowEvHandlerName="StatusRowChangeEventHandler" msprop:Generator_TableClassName="StatusDataTable" msprop:Generator_TableVarName="tableStatus" msprop:Generator_RowDeletingName="StatusRowDeleting" msprop:Generator_TablePropName="Status"> <xs:complexType> <xs:sequence> - <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> + <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="255" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="statusID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="statusID" msprop:Generator_ColumnVarNameInTable="columnstatusID" msprop:Generator_ColumnPropNameInRow="statusID" msprop:Generator_ColumnPropNameInTable="statusIDColumn" type="xs:int" /> - <xs:element name="statusGroup" msprop:Generator_UserColumnName="statusGroup" msprop:Generator_ColumnVarNameInTable="columnstatusGroup" msprop:Generator_ColumnPropNameInRow="statusGroup" msprop:Generator_ColumnPropNameInTable="statusGroupColumn"> + <xs:element name="statusID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="statusID" msprop:Generator_ColumnPropNameInRow="statusID" msprop:Generator_ColumnVarNameInTable="columnstatusID" msprop:Generator_ColumnPropNameInTable="statusIDColumn" type="xs:int" /> + <xs:element name="statusGroup" msprop:Generator_UserColumnName="statusGroup" msprop:Generator_ColumnPropNameInRow="statusGroup" msprop:Generator_ColumnVarNameInTable="columnstatusGroup" msprop:Generator_ColumnPropNameInTable="statusGroupColumn"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="statusName" msprop:Generator_UserColumnName="statusName" msprop:Generator_ColumnVarNameInTable="columnstatusName" msprop:Generator_ColumnPropNameInRow="statusName" msprop:Generator_ColumnPropNameInTable="statusNameColumn"> + <xs:element name="statusName" msprop:Generator_UserColumnName="statusName" msprop:Generator_ColumnPropNameInRow="statusName" msprop:Generator_ColumnVarNameInTable="columnstatusName" msprop:Generator_ColumnPropNameInTable="statusNameColumn"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> @@ -1537,118 +1590,118 @@ <xs:element name="testCaseTags" msprop:Generator_UserTableName="testCaseTags" msprop:Generator_RowDeletedName="testCaseTagsRowDeleted" msprop:Generator_RowChangedName="testCaseTagsRowChanged" msprop:Generator_RowClassName="testCaseTagsRow" msprop:Generator_RowChangingName="testCaseTagsRowChanging" msprop:Generator_RowEvArgName="testCaseTagsRowChangeEvent" msprop:Generator_RowEvHandlerName="testCaseTagsRowChangeEventHandler" msprop:Generator_TableClassName="testCaseTagsDataTable" msprop:Generator_TableVarName="tabletestCaseTags" msprop:Generator_RowDeletingName="testCaseTagsRowDeleting" msprop:Generator_TablePropName="testCaseTags"> <xs:complexType> <xs:sequence> - <xs:element name="testCaseTagsID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="testCaseTagsID" msprop:Generator_ColumnPropNameInRow="testCaseTagsID" msprop:Generator_ColumnVarNameInTable="columntestCaseTagsID" msprop:Generator_ColumnPropNameInTable="testCaseTagsIDColumn" type="xs:int" /> - <xs:element name="testCaseID" msprop:Generator_UserColumnName="testCaseID" msprop:Generator_ColumnPropNameInRow="testCaseID" msprop:Generator_ColumnVarNameInTable="columntestCaseID" msprop:Generator_ColumnPropNameInTable="testCaseIDColumn" type="xs:int" /> - <xs:element name="tagID" msprop:Generator_UserColumnName="tagID" msprop:Generator_ColumnPropNameInRow="tagID" msprop:Generator_ColumnVarNameInTable="columntagID" msprop:Generator_ColumnPropNameInTable="tagIDColumn" type="xs:int" /> + <xs:element name="testCaseTagsID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="testCaseTagsID" msprop:Generator_ColumnVarNameInTable="columntestCaseTagsID" msprop:Generator_ColumnPropNameInRow="testCaseTagsID" msprop:Generator_ColumnPropNameInTable="testCaseTagsIDColumn" type="xs:int" /> + <xs:element name="testCaseID" msprop:Generator_UserColumnName="testCaseID" msprop:Generator_ColumnVarNameInTable="columntestCaseID" msprop:Generator_ColumnPropNameInRow="testCaseID" msprop:Generator_ColumnPropNameInTable="testCaseIDColumn" type="xs:int" /> + <xs:element name="tagID" msprop:Generator_UserColumnName="tagID" msprop:Generator_ColumnVarNameInTable="columntagID" msprop:Generator_ColumnPropNameInRow="tagID" msprop:Generator_ColumnPropNameInTable="tagIDColumn" type="xs:int" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="version" msprop:Generator_UserTableName="version" msprop:Generator_RowDeletedName="versionRowDeleted" msprop:Generator_RowChangedName="versionRowChanged" msprop:Generator_RowClassName="versionRow" msprop:Generator_RowChangingName="versionRowChanging" msprop:Generator_RowEvArgName="versionRowChangeEvent" msprop:Generator_RowEvHandlerName="versionRowChangeEventHandler" msprop:Generator_TableClassName="versionDataTable" msprop:Generator_TableVarName="tableversion" msprop:Generator_RowDeletingName="versionRowDeleting" msprop:Generator_TablePropName="version"> <xs:complexType> <xs:sequence> - <xs:element name="versionID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="versionID" msprop:Generator_ColumnPropNameInRow="versionID" msprop:Generator_ColumnVarNameInTable="columnversionID" msprop:Generator_ColumnPropNameInTable="versionIDColumn" type="xs:int" /> - <xs:element name="productID" msprop:Generator_UserColumnName="productID" msprop:Generator_ColumnPropNameInRow="productID" msprop:Generator_ColumnVarNameInTable="columnproductID" msprop:Generator_ColumnPropNameInTable="productIDColumn" type="xs:int" /> - <xs:element name="number" msprop:Generator_UserColumnName="number" msprop:Generator_ColumnPropNameInRow="number" msprop:Generator_ColumnVarNameInTable="columnnumber" msprop:Generator_ColumnPropNameInTable="numberColumn"> + <xs:element name="versionID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="versionID" msprop:Generator_ColumnVarNameInTable="columnversionID" msprop:Generator_ColumnPropNameInRow="versionID" msprop:Generator_ColumnPropNameInTable="versionIDColumn" type="xs:int" /> + <xs:element name="productID" msprop:Generator_UserColumnName="productID" msprop:Generator_ColumnVarNameInTable="columnproductID" msprop:Generator_ColumnPropNameInRow="productID" msprop:Generator_ColumnPropNameInTable="productIDColumn" type="xs:int" /> + <xs:element name="number" msprop:Generator_UserColumnName="number" msprop:Generator_ColumnVarNameInTable="columnnumber" msprop:Generator_ColumnPropNameInRow="number" msprop:Generator_ColumnPropNameInTable="numberColumn"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="dateCreated" msprop:Generator_UserColumnName="dateCreated" msprop:Generator_ColumnPropNameInRow="dateCreated" msprop:Generator_ColumnVarNameInTable="columndateCreated" msprop:Generator_ColumnPropNameInTable="dateCreatedColumn" type="xs:dateTime" /> - <xs:element name="active" msprop:Generator_UserColumnName="active" msprop:Generator_ColumnPropNameInRow="active" msprop:Generator_ColumnVarNameInTable="columnactive" msprop:Generator_ColumnPropNameInTable="activeColumn" type="xs:boolean" /> + <xs:element name="dateCreated" msprop:Generator_UserColumnName="dateCreated" msprop:Generator_ColumnVarNameInTable="columndateCreated" msprop:Generator_ColumnPropNameInRow="dateCreated" msprop:Generator_ColumnPropNameInTable="dateCreatedColumn" type="xs:dateTime" /> + <xs:element name="active" msprop:Generator_UserColumnName="active" msprop:Generator_ColumnVarNameInTable="columnactive" msprop:Generator_ColumnPropNameInRow="active" msprop:Generator_ColumnPropNameInTable="activeColumn" type="xs:boolean" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="versionTestCase" msprop:Generator_UserTableName="versionTestCase" msprop:Generator_RowDeletedName="versionTestCaseRowDeleted" msprop:Generator_RowChangedName="versionTestCaseRowChanged" msprop:Generator_RowClassName="versionTestCaseRow" msprop:Generator_RowChangingName="versionTestCaseRowChanging" msprop:Generator_RowEvArgName="versionTestCaseRowChangeEvent" msprop:Generator_RowEvHandlerName="versionTestCaseRowChangeEventHandler" msprop:Generator_TableClassName="versionTestCaseDataTable" msprop:Generator_TableVarName="tableversionTestCase" msprop:Generator_RowDeletingName="versionTestCaseRowDeleting" msprop:Generator_TablePropName="versionTestCase"> <xs:complexType> <xs:sequence> - <xs:element name="versionTestCaseID" msprop:Generator_UserColumnName="versionTestCaseID" msprop:Generator_ColumnPropNameInRow="versionTestCaseID" msprop:Generator_ColumnVarNameInTable="columnversionTestCaseID" msprop:Generator_ColumnPropNameInTable="versionTestCaseIDColumn" type="xs:int" /> - <xs:element name="testCaseID" msprop:Generator_UserColumnName="testCaseID" msprop:Generator_ColumnPropNameInRow="testCaseID" msprop:Generator_ColumnVarNameInTable="columntestCaseID" msprop:Generator_ColumnPropNameInTable="testCaseIDColumn" type="xs:int" minOccurs="0" /> - <xs:element name="versionID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="versionID" msprop:Generator_ColumnPropNameInRow="versionID" msprop:Generator_ColumnVarNameInTable="columnversionID" msprop:Generator_ColumnPropNameInTable="versionIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="versionTestCaseID" msprop:Generator_UserColumnName="versionTestCaseID" msprop:Generator_ColumnVarNameInTable="columnversionTestCaseID" msprop:Generator_ColumnPropNameInRow="versionTestCaseID" msprop:Generator_ColumnPropNameInTable="versionTestCaseIDColumn" type="xs:int" /> + <xs:element name="testCaseID" msprop:Generator_UserColumnName="testCaseID" msprop:Generator_ColumnVarNameInTable="columntestCaseID" msprop:Generator_ColumnPropNameInRow="testCaseID" msprop:Generator_ColumnPropNameInTable="testCaseIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="versionID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="versionID" msprop:Generator_ColumnVarNameInTable="columnversionID" msprop:Generator_ColumnPropNameInRow="versionID" msprop:Generator_ColumnPropNameInTable="versionIDColumn" type="xs:int" minOccurs="0" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="featureVersion" msprop:Generator_UserTableName="featureVersion" msprop:Generator_RowDeletedName="featureVersionRowDeleted" msprop:Generator_RowChangedName="featureVersionRowChanged" msprop:Generator_RowClassName="featureVersionRow" msprop:Generator_RowChangingName="featureVersionRowChanging" msprop:Generator_RowEvArgName="featureVersionRowChangeEvent" msprop:Generator_RowEvHandlerName="featureVersionRowChangeEventHandler" msprop:Generator_TableClassName="featureVersionDataTable" msprop:Generator_TableVarName="tablefeatureVersion" msprop:Generator_RowDeletingName="featureVersionRowDeleting" msprop:Generator_TablePropName="featureVersion"> <xs:complexType> <xs:sequence> - <xs:element name="featureVersionID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="featureVersionID" msprop:Generator_ColumnPropNameInRow="featureVersionID" msprop:Generator_ColumnVarNameInTable="columnfeatureVersionID" msprop:Generator_ColumnPropNameInTable="featureVersionIDColumn" type="xs:int" /> - <xs:element name="featureID" msprop:Generator_UserColumnName="featureID" msprop:Generator_ColumnPropNameInRow="featureID" msprop:Generator_ColumnVarNameInTable="columnfeatureID" msprop:Generator_ColumnPropNameInTable="featureIDColumn" type="xs:int" minOccurs="0" /> - <xs:element name="versionID" msprop:Generator_UserColumnName="versionID" msprop:Generator_ColumnPropNameInRow="versionID" msprop:Generator_ColumnVarNameInTable="columnversionID" msprop:Generator_ColumnPropNameInTable="versionIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="featureVersionID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="featureVersionID" msprop:Generator_ColumnVarNameInTable="columnfeatureVersionID" msprop:Generator_ColumnPropNameInRow="featureVersionID" msprop:Generator_ColumnPropNameInTable="featureVersionIDColumn" type="xs:int" /> + <xs:element name="featureID" msprop:Generator_UserColumnName="featureID" msprop:Generator_ColumnVarNameInTable="columnfeatureID" msprop:Generator_ColumnPropNameInRow="featureID" msprop:Generator_ColumnPropNameInTable="featureIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="versionID" msprop:Generator_UserColumnName="versionID" msprop:Generator_ColumnVarNameInTable="columnversionID" msprop:Generator_ColumnPropNameInRow="versionID" msprop:Generator_ColumnPropNameInTable="versionIDColumn" type="xs:int" minOccurs="0" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Assignments" msprop:Generator_UserTableName="Assignments" msprop:Generator_RowDeletedName="AssignmentsRowDeleted" msprop:Generator_RowChangedName="AssignmentsRowChanged" msprop:Generator_RowClassName="AssignmentsRow" msprop:Generator_RowChangingName="AssignmentsRowChanging" msprop:Generator_RowEvArgName="AssignmentsRowChangeEvent" msprop:Generator_RowEvHandlerName="AssignmentsRowChangeEventHandler" msprop:Generator_TableClassName="AssignmentsDataTable" msprop:Generator_TableVarName="tableAssignments" msprop:Generator_RowDeletingName="AssignmentsRowDeleting" msprop:Generator_TablePropName="Assignments"> <xs:complexType> <xs:sequence> - <xs:element name="assignmentID" msdata:ReadOnly="true" msprop:Generator_UserColumnName="assignmentID" msprop:Generator_ColumnVarNameInTable="columnassignmentID" msprop:Generator_ColumnPropNameInRow="assignmentID" msprop:Generator_ColumnPropNameInTable="assignmentIDColumn" type="xs:int" /> - <xs:element name="dateAssigned" msdata:ReadOnly="true" msprop:Generator_UserColumnName="dateAssigned" msprop:Generator_ColumnVarNameInTable="columndateAssigned" msprop:Generator_ColumnPropNameInRow="dateAssigned" msprop:Generator_ColumnPropNameInTable="dateAssignedColumn" type="xs:dateTime" minOccurs="0" /> - <xs:element name="dateFinished" msdata:ReadOnly="true" msprop:Generator_UserColumnName="dateFinished" msprop:Generator_ColumnVarNameInTable="columndateFinished" msprop:Generator_ColumnPropNameInRow="dateFinished" msprop:Generator_ColumnPropNameInTable="dateFinishedColumn" type="xs:dateTime" minOccurs="0" /> - <xs:element name="dateDue" msdata:ReadOnly="true" msprop:Generator_UserColumnName="dateDue" msprop:Generator_ColumnVarNameInTable="columndateDue" msprop:Generator_ColumnPropNameInRow="dateDue" msprop:Generator_ColumnPropNameInTable="dateDueColumn" type="xs:dateTime" minOccurs="0" /> - <xs:element name="workOrderID" msdata:ReadOnly="true" msprop:Generator_UserColumnName="workOrderID" msprop:Generator_ColumnVarNameInTable="columnworkO... [truncated message content] |
From: <jon...@us...> - 2006-07-11 16:37:52
|
Revision: 95 Author: jon_r_johnson Date: 2006-07-11 09:37:47 -0700 (Tue, 11 Jul 2006) ViewCVS: http://svn.sourceforge.net/tcdb/?rev=95&view=rev Log Message: ----------- Updated stored procedure sel_states. Updated view_assignments. Updated table tcdb_workOrderTestCase - removed Identity column. Updated table tcdb_platformVersion - removed Identity column. Created stored procedure sel_assignments. Updated stored procedure sel_notes. Updated stored procedure sel_users. Modified Paths: -------------- Schema/TCDBSQLServer2005.sql Modified: Schema/TCDBSQLServer2005.sql =================================================================== --- Schema/TCDBSQLServer2005.sql 2006-07-11 15:16:23 UTC (rev 94) +++ Schema/TCDBSQLServer2005.sql 2006-07-11 16:37:47 UTC (rev 95) @@ -208,13 +208,87 @@ |
From: <m_h...@us...> - 2006-07-11 16:11:36
|
Revision: 94 Author: m_hildebrand Date: 2006-07-11 08:16:23 -0700 (Tue, 11 Jul 2006) ViewCVS: http://svn.sourceforge.net/tcdb/?rev=94&view=rev Log Message: ----------- Placed quotes around values of k/v pairs Modified Paths: -------------- Website/Assignments.aspx Website/Includes/Header.ascx Website/TCDB.master Modified: Website/Assignments.aspx =================================================================== --- Website/Assignments.aspx 2006-07-11 14:15:24 UTC (rev 93) +++ Website/Assignments.aspx 2006-07-11 15:16:23 UTC (rev 94) @@ -2,7 +2,7 @@ <%@ Register Src="~/Includes/AssignmentsTree.ascx" TagPrefix="assignment" TagName="Tree" %> <asp:Content ID="TreeContent" ContentPlaceHolderID="TreeContentPlaceHolder" runat="Server"> - <assignment:Tree runat="Server" id=Tree /> + <assignment:Tree runat="Server" id="Tree" /> </asp:Content> <asp:Content ID="MainContent" ContentPlaceHolderID="MainContentPlaceHolder" runat="Server"> </asp:Content> Modified: Website/Includes/Header.ascx =================================================================== --- Website/Includes/Header.ascx 2006-07-11 14:15:24 UTC (rev 93) +++ Website/Includes/Header.ascx 2006-07-11 15:16:23 UTC (rev 94) @@ -26,13 +26,13 @@ %> <div id="MainMenu"> <div id="User"> - <TCDB:User runat="server" id=User /> + <TCDB:User runat="server" id="User" /> </div> <div id="CurrentInfo"> - <TCDB:CurrentInfo runat="server" id=CurrentInfo /> + <TCDB:CurrentInfo runat="server" id="CurrentInfo" /> </div> <div id="Menu"> - <TCDB:Menu runat="server" id=Menu /> + <TCDB:Menu runat="server" id="Menu" /> </div> </div> <% } Modified: Website/TCDB.master =================================================================== --- Website/TCDB.master 2006-07-11 14:15:24 UTC (rev 93) +++ Website/TCDB.master 2006-07-11 15:16:23 UTC (rev 94) @@ -12,7 +12,7 @@ <div id="NonFooter"> <form id="Form1" runat="server"> <div id="HeaderContent"> - <TCDB:Header runat="server" id=Header /> + <TCDB:Header runat="server" id="Header" /> </div> <% if (Request.IsAuthenticated) { %> @@ -32,13 +32,13 @@ else {%> <div id="Login"> - <TCDB:Authenticate runat="server" id=Authenticate /> + <TCDB:Authenticate runat="server" id="Authenticate" /> </div> <% } %> </form> </div> <div id="FooterContent"> - <TCDB:Footer runat="server" id=Footer /> + <TCDB:Footer runat="server" id="Footer" /> </div> </body> </html> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ro...@us...> - 2006-07-11 14:15:33
|
Revision: 93 Author: rouquin Date: 2006-07-11 07:15:24 -0700 (Tue, 11 Jul 2006) ViewCVS: http://svn.sourceforge.net/tcdb/?rev=93&view=rev Log Message: ----------- Gave id's to controls so that the design view would like them. Modified Paths: -------------- Website/App_Code/dadDataSet.xsd Website/Assignments.aspx Website/Includes/Header.ascx Website/TCDB.master Modified: Website/App_Code/dadDataSet.xsd =================================================================== --- Website/App_Code/dadDataSet.xsd 2006-07-11 00:16:13 UTC (rev 92) +++ Website/App_Code/dadDataSet.xsd 2006-07-11 14:15:24 UTC (rev 93) @@ -39,7 +39,7 @@ </DbCommand> </InsertCommand> <SelectCommand> - <DbCommand CommandType="StoredProcedure" ModifiedByUser="False"> + <DbCommand CommandType="StoredProcedure" ModifiedByUser="True"> <CommandText>dbo.sel_users</CommandText> <Parameters> <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="False" SourceVersion="Current"> @@ -346,146 +346,146 @@ <xs:element name="db_users" msprop:Generator_UserTableName="db_users" msprop:Generator_RowDeletedName="db_usersRowDeleted" msprop:Generator_RowChangedName="db_usersRowChanged" msprop:Generator_RowClassName="db_usersRow" msprop:Generator_RowChangingName="db_usersRowChanging" msprop:Generator_RowEvArgName="db_usersRowChangeEvent" msprop:Generator_RowEvHandlerName="db_usersRowChangeEventHandler" msprop:Generator_TableClassName="db_usersDataTable" msprop:Generator_TableVarName="tabledb_users" msprop:Generator_RowDeletingName="db_usersRowDeleting" msprop:Generator_TablePropName="db_users"> <xs:complexType> <xs:sequence> - <xs:element name="userID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="userID" msprop:Generator_ColumnPropNameInRow="userID" msprop:Generator_ColumnVarNameInTable="columnuserID" msprop:Generator_ColumnPropNameInTable="userIDColumn" type="xs:int" /> - <xs:element name="username" msprop:Generator_UserColumnName="username" msprop:Generator_ColumnPropNameInRow="username" msprop:Generator_ColumnVarNameInTable="columnusername" msprop:Generator_ColumnPropNameInTable="usernameColumn"> + <xs:element name="userID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="userID" msprop:Generator_ColumnVarNameInTable="columnuserID" msprop:Generator_ColumnPropNameInRow="userID" msprop:Generator_ColumnPropNameInTable="userIDColumn" type="xs:int" /> + <xs:element name="username" msprop:Generator_UserColumnName="username" msprop:Generator_ColumnVarNameInTable="columnusername" msprop:Generator_ColumnPropNameInRow="username" msprop:Generator_ColumnPropNameInTable="usernameColumn"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="email" msprop:Generator_UserColumnName="email" msprop:Generator_ColumnPropNameInRow="email" msprop:Generator_ColumnVarNameInTable="columnemail" msprop:Generator_ColumnPropNameInTable="emailColumn"> + <xs:element name="email" msprop:Generator_UserColumnName="email" msprop:Generator_ColumnVarNameInTable="columnemail" msprop:Generator_ColumnPropNameInRow="email" msprop:Generator_ColumnPropNameInTable="emailColumn"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="officePhone" msprop:Generator_UserColumnName="officePhone" msprop:Generator_ColumnPropNameInRow="officePhone" msprop:Generator_ColumnVarNameInTable="columnofficePhone" msprop:Generator_ColumnPropNameInTable="officePhoneColumn" minOccurs="0"> + <xs:element name="officePhone" msprop:Generator_UserColumnName="officePhone" msprop:Generator_ColumnVarNameInTable="columnofficePhone" msprop:Generator_ColumnPropNameInRow="officePhone" msprop:Generator_ColumnPropNameInTable="officePhoneColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="14" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="homePhone" msprop:Generator_UserColumnName="homePhone" msprop:Generator_ColumnPropNameInRow="homePhone" msprop:Generator_ColumnVarNameInTable="columnhomePhone" msprop:Generator_ColumnPropNameInTable="homePhoneColumn" minOccurs="0"> + <xs:element name="homePhone" msprop:Generator_UserColumnName="homePhone" msprop:Generator_ColumnVarNameInTable="columnhomePhone" msprop:Generator_ColumnPropNameInRow="homePhone" msprop:Generator_ColumnPropNameInTable="homePhoneColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="14" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="cellPhone" msprop:Generator_UserColumnName="cellPhone" msprop:Generator_ColumnPropNameInRow="cellPhone" msprop:Generator_ColumnVarNameInTable="columncellPhone" msprop:Generator_ColumnPropNameInTable="cellPhoneColumn" minOccurs="0"> + <xs:element name="cellPhone" msprop:Generator_UserColumnName="cellPhone" msprop:Generator_ColumnVarNameInTable="columncellPhone" msprop:Generator_ColumnPropNameInRow="cellPhone" msprop:Generator_ColumnPropNameInTable="cellPhoneColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="14" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="firstName" msprop:Generator_UserColumnName="firstName" msprop:Generator_ColumnPropNameInRow="firstName" msprop:Generator_ColumnVarNameInTable="columnfirstName" msprop:Generator_ColumnPropNameInTable="firstNameColumn"> + <xs:element name="firstName" msprop:Generator_UserColumnName="firstName" msprop:Generator_ColumnVarNameInTable="columnfirstName" msprop:Generator_ColumnPropNameInRow="firstName" msprop:Generator_ColumnPropNameInTable="firstNameColumn"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="24" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="lastName" msprop:Generator_UserColumnName="lastName" msprop:Generator_ColumnPropNameInRow="lastName" msprop:Generator_ColumnVarNameInTable="columnlastName" msprop:Generator_ColumnPropNameInTable="lastNameColumn"> + <xs:element name="lastName" msprop:Generator_UserColumnName="lastName" msprop:Generator_ColumnVarNameInTable="columnlastName" msprop:Generator_ColumnPropNameInRow="lastName" msprop:Generator_ColumnPropNameInTable="lastNameColumn"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="24" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="fullName" msdata:ReadOnly="true" msprop:Generator_UserColumnName="fullName" msprop:Generator_ColumnPropNameInRow="fullName" msprop:Generator_ColumnVarNameInTable="columnfullName" msprop:Generator_ColumnPropNameInTable="fullNameColumn" minOccurs="0"> + <xs:element name="fullName" msdata:ReadOnly="true" msprop:Generator_UserColumnName="fullName" msprop:Generator_ColumnVarNameInTable="columnfullName" msprop:Generator_ColumnPropNameInRow="fullName" msprop:Generator_ColumnPropNameInTable="fullNameColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="49" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="automation" msprop:Generator_UserColumnName="automation" msprop:Generator_ColumnPropNameInRow="automation" msprop:Generator_ColumnVarNameInTable="columnautomation" msprop:Generator_ColumnPropNameInTable="automationColumn" type="xs:boolean" /> + <xs:element name="automation" msprop:Generator_UserColumnName="automation" msprop:Generator_ColumnVarNameInTable="columnautomation" msprop:Generator_ColumnPropNameInRow="automation" msprop:Generator_ColumnPropNameInTable="automationColumn" type="xs:boolean" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="db_products" msprop:Generator_UserTableName="db_products" msprop:Generator_RowDeletedName="db_productsRowDeleted" msprop:Generator_RowChangedName="db_productsRowChanged" msprop:Generator_RowClassName="db_productsRow" msprop:Generator_RowChangingName="db_productsRowChanging" msprop:Generator_RowEvArgName="db_productsRowChangeEvent" msprop:Generator_RowEvHandlerName="db_productsRowChangeEventHandler" msprop:Generator_TableClassName="db_productsDataTable" msprop:Generator_TableVarName="tabledb_products" msprop:Generator_RowDeletingName="db_productsRowDeleting" msprop:Generator_TablePropName="db_products"> <xs:complexType> <xs:sequence> - <xs:element name="productID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="productID" msprop:Generator_ColumnPropNameInRow="productID" msprop:Generator_ColumnVarNameInTable="columnproductID" msprop:Generator_ColumnPropNameInTable="productIDColumn" type="xs:int" /> - <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInTable="nameColumn" minOccurs="0"> + <xs:element name="productID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="productID" msprop:Generator_ColumnVarNameInTable="columnproductID" msprop:Generator_ColumnPropNameInRow="productID" msprop:Generator_ColumnPropNameInTable="productIDColumn" type="xs:int" /> + <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnPropNameInTable="nameColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="255" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> + <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="2147483647" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="devManager" msprop:Generator_UserColumnName="devManager" msprop:Generator_ColumnPropNameInRow="devManager" msprop:Generator_ColumnVarNameInTable="columndevManager" msprop:Generator_ColumnPropNameInTable="devManagerColumn" type="xs:int" minOccurs="0" /> - <xs:element name="qaManager" msprop:Generator_UserColumnName="qaManager" msprop:Generator_ColumnPropNameInRow="qaManager" msprop:Generator_ColumnVarNameInTable="columnqaManager" msprop:Generator_ColumnPropNameInTable="qaManagerColumn" type="xs:int" minOccurs="0" /> - <xs:element name="devLead" msprop:Generator_UserColumnName="devLead" msprop:Generator_ColumnPropNameInRow="devLead" msprop:Generator_ColumnVarNameInTable="columndevLead" msprop:Generator_ColumnPropNameInTable="devLeadColumn" type="xs:int" minOccurs="0" /> - <xs:element name="qaLead" msprop:Generator_UserColumnName="qaLead" msprop:Generator_ColumnPropNameInRow="qaLead" msprop:Generator_ColumnVarNameInTable="columnqaLead" msprop:Generator_ColumnPropNameInTable="qaLeadColumn" type="xs:int" minOccurs="0" /> - <xs:element name="pm" msprop:Generator_UserColumnName="pm" msprop:Generator_ColumnPropNameInRow="pm" msprop:Generator_ColumnVarNameInTable="columnpm" msprop:Generator_ColumnPropNameInTable="pmColumn" type="xs:int" minOccurs="0" /> - <xs:element name="codeName" msprop:Generator_UserColumnName="codeName" msprop:Generator_ColumnPropNameInRow="codeName" msprop:Generator_ColumnVarNameInTable="columncodeName" msprop:Generator_ColumnPropNameInTable="codeNameColumn" minOccurs="0"> + <xs:element name="devManager" msprop:Generator_UserColumnName="devManager" msprop:Generator_ColumnVarNameInTable="columndevManager" msprop:Generator_ColumnPropNameInRow="devManager" msprop:Generator_ColumnPropNameInTable="devManagerColumn" type="xs:int" minOccurs="0" /> + <xs:element name="qaManager" msprop:Generator_UserColumnName="qaManager" msprop:Generator_ColumnVarNameInTable="columnqaManager" msprop:Generator_ColumnPropNameInRow="qaManager" msprop:Generator_ColumnPropNameInTable="qaManagerColumn" type="xs:int" minOccurs="0" /> + <xs:element name="devLead" msprop:Generator_UserColumnName="devLead" msprop:Generator_ColumnVarNameInTable="columndevLead" msprop:Generator_ColumnPropNameInRow="devLead" msprop:Generator_ColumnPropNameInTable="devLeadColumn" type="xs:int" minOccurs="0" /> + <xs:element name="qaLead" msprop:Generator_UserColumnName="qaLead" msprop:Generator_ColumnVarNameInTable="columnqaLead" msprop:Generator_ColumnPropNameInRow="qaLead" msprop:Generator_ColumnPropNameInTable="qaLeadColumn" type="xs:int" minOccurs="0" /> + <xs:element name="pm" msprop:Generator_UserColumnName="pm" msprop:Generator_ColumnVarNameInTable="columnpm" msprop:Generator_ColumnPropNameInRow="pm" msprop:Generator_ColumnPropNameInTable="pmColumn" type="xs:int" minOccurs="0" /> + <xs:element name="codeName" msprop:Generator_UserColumnName="codeName" msprop:Generator_ColumnVarNameInTable="columncodeName" msprop:Generator_ColumnPropNameInRow="codeName" msprop:Generator_ColumnPropNameInTable="codeNameColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="10" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="active" msprop:Generator_UserColumnName="active" msprop:Generator_ColumnPropNameInRow="active" msprop:Generator_ColumnVarNameInTable="columnactive" msprop:Generator_ColumnPropNameInTable="activeColumn" type="xs:boolean" /> + <xs:element name="active" msprop:Generator_UserColumnName="active" msprop:Generator_ColumnVarNameInTable="columnactive" msprop:Generator_ColumnPropNameInRow="active" msprop:Generator_ColumnPropNameInTable="activeColumn" type="xs:boolean" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="db_actionItems" msprop:Generator_UserTableName="db_actionItems" msprop:Generator_RowDeletedName="db_actionItemsRowDeleted" msprop:Generator_RowChangedName="db_actionItemsRowChanged" msprop:Generator_RowClassName="db_actionItemsRow" msprop:Generator_RowChangingName="db_actionItemsRowChanging" msprop:Generator_RowEvArgName="db_actionItemsRowChangeEvent" msprop:Generator_RowEvHandlerName="db_actionItemsRowChangeEventHandler" msprop:Generator_TableClassName="db_actionItemsDataTable" msprop:Generator_TableVarName="tabledb_actionItems" msprop:Generator_RowDeletingName="db_actionItemsRowDeleting" msprop:Generator_TablePropName="db_actionItems"> <xs:complexType> <xs:sequence> - <xs:element name="actionItemID" msprop:Generator_UserColumnName="actionItemID" msprop:Generator_ColumnVarNameInTable="columnactionItemID" msprop:Generator_ColumnPropNameInRow="actionItemID" msprop:Generator_ColumnPropNameInTable="actionItemIDColumn" type="xs:int" /> - <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnPropNameInTable="nameColumn" minOccurs="0"> + <xs:element name="actionItemID" msprop:Generator_UserColumnName="actionItemID" msprop:Generator_ColumnPropNameInRow="actionItemID" msprop:Generator_ColumnVarNameInTable="columnactionItemID" msprop:Generator_ColumnPropNameInTable="actionItemIDColumn" type="xs:int" /> + <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInTable="nameColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="255" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> + <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="2147483647" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="dateAssigned" msprop:Generator_UserColumnName="dateAssigned" msprop:Generator_ColumnVarNameInTable="columndateAssigned" msprop:Generator_ColumnPropNameInRow="dateAssigned" msprop:Generator_ColumnPropNameInTable="dateAssignedColumn" type="xs:dateTime" minOccurs="0" /> - <xs:element name="dateDue" msprop:Generator_UserColumnName="dateDue" msprop:Generator_ColumnVarNameInTable="columndateDue" msprop:Generator_ColumnPropNameInRow="dateDue" msprop:Generator_ColumnPropNameInTable="dateDueColumn" type="xs:dateTime" minOccurs="0" /> - <xs:element name="percentComplete" msprop:Generator_UserColumnName="percentComplete" msprop:Generator_ColumnVarNameInTable="columnpercentComplete" msprop:Generator_ColumnPropNameInRow="percentComplete" msprop:Generator_ColumnPropNameInTable="percentCompleteColumn" type="xs:int" minOccurs="0" /> - <xs:element name="statusName" msprop:Generator_UserColumnName="statusName" msprop:Generator_ColumnVarNameInTable="columnstatusName" msprop:Generator_ColumnPropNameInRow="statusName" msprop:Generator_ColumnPropNameInTable="statusNameColumn" minOccurs="0"> + <xs:element name="dateAssigned" msprop:Generator_UserColumnName="dateAssigned" msprop:Generator_ColumnPropNameInRow="dateAssigned" msprop:Generator_ColumnVarNameInTable="columndateAssigned" msprop:Generator_ColumnPropNameInTable="dateAssignedColumn" type="xs:dateTime" minOccurs="0" /> + <xs:element name="dateDue" msprop:Generator_UserColumnName="dateDue" msprop:Generator_ColumnPropNameInRow="dateDue" msprop:Generator_ColumnVarNameInTable="columndateDue" msprop:Generator_ColumnPropNameInTable="dateDueColumn" type="xs:dateTime" minOccurs="0" /> + <xs:element name="percentComplete" msprop:Generator_UserColumnName="percentComplete" msprop:Generator_ColumnPropNameInRow="percentComplete" msprop:Generator_ColumnVarNameInTable="columnpercentComplete" msprop:Generator_ColumnPropNameInTable="percentCompleteColumn" type="xs:int" minOccurs="0" /> + <xs:element name="statusName" msprop:Generator_UserColumnName="statusName" msprop:Generator_ColumnPropNameInRow="statusName" msprop:Generator_ColumnVarNameInTable="columnstatusName" msprop:Generator_ColumnPropNameInTable="statusNameColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="createdBy" msdata:ReadOnly="true" msprop:Generator_UserColumnName="createdBy" msprop:Generator_ColumnVarNameInTable="columncreatedBy" msprop:Generator_ColumnPropNameInRow="createdBy" msprop:Generator_ColumnPropNameInTable="createdByColumn" minOccurs="0"> + <xs:element name="createdBy" msdata:ReadOnly="true" msprop:Generator_UserColumnName="createdBy" msprop:Generator_ColumnPropNameInRow="createdBy" msprop:Generator_ColumnVarNameInTable="columncreatedBy" msprop:Generator_ColumnPropNameInTable="createdByColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="49" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="highPriority" msprop:Generator_UserColumnName="highPriority" msprop:Generator_ColumnVarNameInTable="columnhighPriority" msprop:Generator_ColumnPropNameInRow="highPriority" msprop:Generator_ColumnPropNameInTable="highPriorityColumn" type="xs:boolean" minOccurs="0" /> - <xs:element name="createdById" msprop:Generator_UserColumnName="createdById" msprop:Generator_ColumnVarNameInTable="columncreatedById" msprop:Generator_ColumnPropNameInRow="createdById" msprop:Generator_ColumnPropNameInTable="createdByIdColumn" type="xs:int" /> + <xs:element name="highPriority" msprop:Generator_UserColumnName="highPriority" msprop:Generator_ColumnPropNameInRow="highPriority" msprop:Generator_ColumnVarNameInTable="columnhighPriority" msprop:Generator_ColumnPropNameInTable="highPriorityColumn" type="xs:boolean" minOccurs="0" /> + <xs:element name="createdById" msprop:Generator_UserColumnName="createdById" msprop:Generator_ColumnPropNameInRow="createdById" msprop:Generator_ColumnVarNameInTable="columncreatedById" msprop:Generator_ColumnPropNameInTable="createdByIdColumn" type="xs:int" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="db_status" msprop:Generator_UserTableName="db_status" msprop:Generator_RowDeletedName="db_statusRowDeleted" msprop:Generator_RowChangedName="db_statusRowChanged" msprop:Generator_RowClassName="db_statusRow" msprop:Generator_RowChangingName="db_statusRowChanging" msprop:Generator_RowEvArgName="db_statusRowChangeEvent" msprop:Generator_RowEvHandlerName="db_statusRowChangeEventHandler" msprop:Generator_TableClassName="db_statusDataTable" msprop:Generator_TableVarName="tabledb_status" msprop:Generator_RowDeletingName="db_statusRowDeleting" msprop:Generator_TablePropName="db_status"> <xs:complexType> <xs:sequence> - <xs:element name="statusID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="statusID" msprop:Generator_ColumnPropNameInRow="statusID" msprop:Generator_ColumnVarNameInTable="columnstatusID" msprop:Generator_ColumnPropNameInTable="statusIDColumn" type="xs:int" /> - <xs:element name="Description" msprop:Generator_UserColumnName="Description" msprop:Generator_ColumnPropNameInRow="Description" msprop:Generator_ColumnVarNameInTable="columnDescription" msprop:Generator_ColumnPropNameInTable="DescriptionColumn" minOccurs="0"> + <xs:element name="statusID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="statusID" msprop:Generator_ColumnVarNameInTable="columnstatusID" msprop:Generator_ColumnPropNameInRow="statusID" msprop:Generator_ColumnPropNameInTable="statusIDColumn" type="xs:int" /> + <xs:element name="Description" msprop:Generator_UserColumnName="Description" msprop:Generator_ColumnVarNameInTable="columnDescription" msprop:Generator_ColumnPropNameInRow="Description" msprop:Generator_ColumnPropNameInTable="DescriptionColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="2147483647" /> @@ -495,70 +495,70 @@ </xs:sequence> </xs:complexType> </xs:element> - <xs:element name="db_notes" msprop:Generator_UserTableName="db_notes" msprop:Generator_RowDeletedName="db_notesRowDeleted" msprop:Generator_TableClassName="db_notesDataTable" msprop:Generator_RowChangedName="db_notesRowChanged" msprop:Generator_RowClassName="db_notesRow" msprop:Generator_RowChangingName="db_notesRowChanging" msprop:Generator_RowEvArgName="db_notesRowChangeEvent" msprop:Generator_RowEvHandlerName="db_notesRowChangeEventHandler" msprop:Generator_TablePropName="db_notes" msprop:Generator_TableVarName="tabledb_notes" msprop:Generator_RowDeletingName="db_notesRowDeleting"> + <xs:element name="db_notes" msprop:Generator_UserTableName="db_notes" msprop:Generator_RowDeletedName="db_notesRowDeleted" msprop:Generator_RowChangedName="db_notesRowChanged" msprop:Generator_RowClassName="db_notesRow" msprop:Generator_RowChangingName="db_notesRowChanging" msprop:Generator_RowEvArgName="db_notesRowChangeEvent" msprop:Generator_RowEvHandlerName="db_notesRowChangeEventHandler" msprop:Generator_TableClassName="db_notesDataTable" msprop:Generator_TableVarName="tabledb_notes" msprop:Generator_RowDeletingName="db_notesRowDeleting" msprop:Generator_TablePropName="db_notes"> <xs:complexType> <xs:sequence> - <xs:element name="noteID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="noteID" msprop:Generator_ColumnPropNameInRow="noteID" msprop:Generator_ColumnVarNameInTable="columnnoteID" msprop:Generator_ColumnPropNameInTable="noteIDColumn" type="xs:int" /> - <xs:element name="dateCreated" msprop:Generator_UserColumnName="dateCreated" msprop:Generator_ColumnPropNameInRow="dateCreated" msprop:Generator_ColumnVarNameInTable="columndateCreated" msprop:Generator_ColumnPropNameInTable="dateCreatedColumn" type="xs:dateTime" minOccurs="0" /> - <xs:element name="noteField" msprop:Generator_UserColumnName="noteField" msprop:Generator_ColumnPropNameInRow="noteField" msprop:Generator_ColumnVarNameInTable="columnnoteField" msprop:Generator_ColumnPropNameInTable="noteFieldColumn" minOccurs="0"> + <xs:element name="noteID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="noteID" msprop:Generator_ColumnVarNameInTable="columnnoteID" msprop:Generator_ColumnPropNameInRow="noteID" msprop:Generator_ColumnPropNameInTable="noteIDColumn" type="xs:int" /> + <xs:element name="dateCreated" msprop:Generator_UserColumnName="dateCreated" msprop:Generator_ColumnVarNameInTable="columndateCreated" msprop:Generator_ColumnPropNameInRow="dateCreated" msprop:Generator_ColumnPropNameInTable="dateCreatedColumn" type="xs:dateTime" minOccurs="0" /> + <xs:element name="noteField" msprop:Generator_UserColumnName="noteField" msprop:Generator_ColumnVarNameInTable="columnnoteField" msprop:Generator_ColumnPropNameInRow="noteField" msprop:Generator_ColumnPropNameInTable="noteFieldColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="2147483647" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="noteAuthor" msprop:Generator_UserColumnName="noteAuthor" msprop:Generator_ColumnPropNameInRow="noteAuthor" msprop:Generator_ColumnVarNameInTable="columnnoteAuthor" msprop:Generator_ColumnPropNameInTable="noteAuthorColumn" type="xs:int" minOccurs="0" /> + <xs:element name="noteAuthor" msprop:Generator_UserColumnName="noteAuthor" msprop:Generator_ColumnVarNameInTable="columnnoteAuthor" msprop:Generator_ColumnPropNameInRow="noteAuthor" msprop:Generator_ColumnPropNameInTable="noteAuthorColumn" type="xs:int" minOccurs="0" /> </xs:sequence> </xs:complexType> </xs:element> - <xs:element name="db_assignments" msprop:Generator_UserTableName="db_assignments" msprop:Generator_RowDeletedName="db_assignmentsRowDeleted" msprop:Generator_TableClassName="db_assignmentsDataTable" msprop:Generator_RowChangedName="db_assignmentsRowChanged" msprop:Generator_RowClassName="db_assignmentsRow" msprop:Generator_RowChangingName="db_assignmentsRowChanging" msprop:Generator_RowEvArgName="db_assignmentsRowChangeEvent" msprop:Generator_RowEvHandlerName="db_assignmentsRowChangeEventHandler" msprop:Generator_TablePropName="db_assignments" msprop:Generator_TableVarName="tabledb_assignments" msprop:Generator_RowDeletingName="db_assignmentsRowDeleting"> + <xs:element name="db_assignments" msprop:Generator_UserTableName="db_assignments" msprop:Generator_RowDeletedName="db_assignmentsRowDeleted" msprop:Generator_RowChangedName="db_assignmentsRowChanged" msprop:Generator_RowClassName="db_assignmentsRow" msprop:Generator_RowChangingName="db_assignmentsRowChanging" msprop:Generator_RowEvArgName="db_assignmentsRowChangeEvent" msprop:Generator_RowEvHandlerName="db_assignmentsRowChangeEventHandler" msprop:Generator_TableClassName="db_assignmentsDataTable" msprop:Generator_TableVarName="tabledb_assignments" msprop:Generator_RowDeletingName="db_assignmentsRowDeleting" msprop:Generator_TablePropName="db_assignments"> <xs:complexType> <xs:sequence> - <xs:element name="aType" msdata:ReadOnly="true" msprop:Generator_UserColumnName="aType" msprop:Generator_ColumnPropNameInRow="aType" msprop:Generator_ColumnVarNameInTable="columnaType" msprop:Generator_ColumnPropNameInTable="aTypeColumn" minOccurs="0"> + <xs:element name="aType" msdata:ReadOnly="true" msprop:Generator_UserColumnName="aType" msprop:Generator_ColumnVarNameInTable="columnaType" msprop:Generator_ColumnPropNameInRow="aType" msprop:Generator_ColumnPropNameInTable="aTypeColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="2" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="childID" msdata:ReadOnly="true" msprop:Generator_UserColumnName="childID" msprop:Generator_ColumnPropNameInRow="childID" msprop:Generator_ColumnVarNameInTable="columnchildID" msprop:Generator_ColumnPropNameInTable="childIDColumn" type="xs:int" minOccurs="0" /> - <xs:element name="creator" msdata:ReadOnly="true" msprop:Generator_UserColumnName="creator" msprop:Generator_ColumnPropNameInRow="creator" msprop:Generator_ColumnVarNameInTable="columncreator" msprop:Generator_ColumnPropNameInTable="creatorColumn" minOccurs="0"> + <xs:element name="childID" msdata:ReadOnly="true" msprop:Generator_UserColumnName="childID" msprop:Generator_ColumnVarNameInTable="columnchildID" msprop:Generator_ColumnPropNameInRow="childID" msprop:Generator_ColumnPropNameInTable="childIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="creator" msdata:ReadOnly="true" msprop:Generator_UserColumnName="creator" msprop:Generator_ColumnVarNameInTable="columncreator" msprop:Generator_ColumnPropNameInRow="creator" msprop:Generator_ColumnPropNameInTable="creatorColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="49" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="assigned" msdata:ReadOnly="true" msprop:Generator_UserColumnName="assigned" msprop:Generator_ColumnPropNameInRow="assigned" msprop:Generator_ColumnVarNameInTable="columnassigned" msprop:Generator_ColumnPropNameInTable="assignedColumn" minOccurs="0"> + <xs:element name="assigned" msdata:ReadOnly="true" msprop:Generator_UserColumnName="assigned" msprop:Generator_ColumnVarNameInTable="columnassigned" msprop:Generator_ColumnPropNameInRow="assigned" msprop:Generator_ColumnPropNameInTable="assignedColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="49" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="assignedID" msprop:Generator_UserColumnName="assignedID" msprop:Generator_ColumnPropNameInRow="assignedID" msprop:Generator_ColumnVarNameInTable="columnassignedID" msprop:Generator_ColumnPropNameInTable="assignedIDColumn" type="xs:int" minOccurs="0" /> - <xs:element name="dateAssigned" msprop:Generator_UserColumnName="dateAssigned" msprop:Generator_ColumnPropNameInRow="dateAssigned" msprop:Generator_ColumnVarNameInTable="columndateAssigned" msprop:Generator_ColumnPropNameInTable="dateAssignedColumn" type="xs:dateTime" minOccurs="0" /> - <xs:element name="dateDue" msprop:Generator_UserColumnName="dateDue" msprop:Generator_ColumnPropNameInRow="dateDue" msprop:Generator_ColumnVarNameInTable="columndateDue" msprop:Generator_ColumnPropNameInTable="dateDueColumn" type="xs:dateTime" minOccurs="0" /> - <xs:element name="dateFinished" msprop:Generator_UserColumnName="dateFinished" msprop:Generator_ColumnPropNameInRow="dateFinished" msprop:Generator_ColumnVarNameInTable="columndateFinished" msprop:Generator_ColumnPropNameInTable="dateFinishedColumn" type="xs:dateTime" minOccurs="0" /> - <xs:element name="highPriority" msprop:Generator_UserColumnName="highPriority" msprop:Generator_ColumnPropNameInRow="highPriority" msprop:Generator_ColumnVarNameInTable="columnhighPriority" msprop:Generator_ColumnPropNameInTable="highPriorityColumn" type="xs:boolean" minOccurs="0" /> - <xs:element name="statusName" msprop:Generator_UserColumnName="statusName" msprop:Generator_ColumnPropNameInRow="statusName" msprop:Generator_ColumnVarNameInTable="columnstatusName" msprop:Generator_ColumnPropNameInTable="statusNameColumn" minOccurs="0"> + <xs:element name="assignedID" msprop:Generator_UserColumnName="assignedID" msprop:Generator_ColumnVarNameInTable="columnassignedID" msprop:Generator_ColumnPropNameInRow="assignedID" msprop:Generator_ColumnPropNameInTable="assignedIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="dateAssigned" msprop:Generator_UserColumnName="dateAssigned" msprop:Generator_ColumnVarNameInTable="columndateAssigned" msprop:Generator_ColumnPropNameInRow="dateAssigned" msprop:Generator_ColumnPropNameInTable="dateAssignedColumn" type="xs:dateTime" minOccurs="0" /> + <xs:element name="dateDue" msprop:Generator_UserColumnName="dateDue" msprop:Generator_ColumnVarNameInTable="columndateDue" msprop:Generator_ColumnPropNameInRow="dateDue" msprop:Generator_ColumnPropNameInTable="dateDueColumn" type="xs:dateTime" minOccurs="0" /> + <xs:element name="dateFinished" msprop:Generator_UserColumnName="dateFinished" msprop:Generator_ColumnVarNameInTable="columndateFinished" msprop:Generator_ColumnPropNameInRow="dateFinished" msprop:Generator_ColumnPropNameInTable="dateFinishedColumn" type="xs:dateTime" minOccurs="0" /> + <xs:element name="highPriority" msprop:Generator_UserColumnName="highPriority" msprop:Generator_ColumnVarNameInTable="columnhighPriority" msprop:Generator_ColumnPropNameInRow="highPriority" msprop:Generator_ColumnPropNameInTable="highPriorityColumn" type="xs:boolean" minOccurs="0" /> + <xs:element name="statusName" msprop:Generator_UserColumnName="statusName" msprop:Generator_ColumnVarNameInTable="columnstatusName" msprop:Generator_ColumnPropNameInRow="statusName" msprop:Generator_ColumnPropNameInTable="statusNameColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="WOTotalTest" msprop:Generator_UserColumnName="WOTotalTest" msprop:Generator_ColumnPropNameInRow="WOTotalTest" msprop:Generator_ColumnVarNameInTable="columnWOTotalTest" msprop:Generator_ColumnPropNameInTable="WOTotalTestColumn" type="xs:int" minOccurs="0" /> - <xs:element name="WOPassRate" msdata:ReadOnly="true" msprop:Generator_UserColumnName="WOPassRate" msprop:Generator_ColumnPropNameInRow="WOPassRate" msprop:Generator_ColumnVarNameInTable="columnWOPassRate" msprop:Generator_ColumnPropNameInTable="WOPassRateColumn" minOccurs="0"> + <xs:element name="WOTotalTest" msprop:Generator_UserColumnName="WOTotalTest" msprop:Generator_ColumnVarNameInTable="columnWOTotalTest" msprop:Generator_ColumnPropNameInRow="WOTotalTest" msprop:Generator_ColumnPropNameInTable="WOTotalTestColumn" type="xs:int" minOccurs="0" /> + <xs:element name="WOPassRate" msdata:ReadOnly="true" msprop:Generator_UserColumnName="WOPassRate" msprop:Generator_ColumnVarNameInTable="columnWOPassRate" msprop:Generator_ColumnPropNameInRow="WOPassRate" msprop:Generator_ColumnPropNameInTable="WOPassRateColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="31" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="WOPass" msprop:Generator_UserColumnName="WOPass" msprop:Generator_ColumnPropNameInRow="WOPass" msprop:Generator_ColumnVarNameInTable="columnWOPass" msprop:Generator_ColumnPropNameInTable="WOPassColumn" type="xs:int" minOccurs="0" /> - <xs:element name="WOFail" msprop:Generator_UserColumnName="WOFail" msprop:Generator_ColumnPropNameInRow="WOFail" msprop:Generator_ColumnVarNameInTable="columnWOFail" msprop:Generator_ColumnPropNameInTable="WOFailColumn" type="xs:int" minOccurs="0" /> - <xs:element name="WOError" msprop:Generator_UserColumnName="WOError" msprop:Generator_ColumnPropNameInRow="WOError" msprop:Generator_ColumnVarNameInTable="columnWOError" msprop:Generator_ColumnPropNameInTable="WOErrorColumn" type="xs:int" minOccurs="0" /> + <xs:element name="WOPass" msprop:Generator_UserColumnName="WOPass" msprop:Generator_ColumnVarNameInTable="columnWOPass" msprop:Generator_ColumnPropNameInRow="WOPass" msprop:Generator_ColumnPropNameInTable="WOPassColumn" type="xs:int" minOccurs="0" /> + <xs:element name="WOFail" msprop:Generator_UserColumnName="WOFail" msprop:Generator_ColumnVarNameInTable="columnWOFail" msprop:Generator_ColumnPropNameInRow="WOFail" msprop:Generator_ColumnPropNameInTable="WOFailColumn" type="xs:int" minOccurs="0" /> + <xs:element name="WOError" msprop:Generator_UserColumnName="WOError" msprop:Generator_ColumnVarNameInTable="columnWOError" msprop:Generator_ColumnPropNameInRow="WOError" msprop:Generator_ColumnPropNameInTable="WOErrorColumn" type="xs:int" minOccurs="0" /> </xs:sequence> </xs:complexType> </xs:element> Modified: Website/Assignments.aspx =================================================================== --- Website/Assignments.aspx 2006-07-11 00:16:13 UTC (rev 92) +++ Website/Assignments.aspx 2006-07-11 14:15:24 UTC (rev 93) @@ -2,7 +2,7 @@ <%@ Register Src="~/Includes/AssignmentsTree.ascx" TagPrefix="assignment" TagName="Tree" %> <asp:Content ID="TreeContent" ContentPlaceHolderID="TreeContentPlaceHolder" runat="Server"> - <assignment:Tree runat="Server" /> + <assignment:Tree runat="Server" id=Tree /> </asp:Content> <asp:Content ID="MainContent" ContentPlaceHolderID="MainContentPlaceHolder" runat="Server"> </asp:Content> Modified: Website/Includes/Header.ascx =================================================================== --- Website/Includes/Header.ascx 2006-07-11 00:16:13 UTC (rev 92) +++ Website/Includes/Header.ascx 2006-07-11 14:15:24 UTC (rev 93) @@ -26,13 +26,13 @@ %> <div id="MainMenu"> <div id="User"> - <TCDB:User runat="server" /> + <TCDB:User runat="server" id=User /> </div> <div id="CurrentInfo"> - <TCDB:CurrentInfo runat="server" /> + <TCDB:CurrentInfo runat="server" id=CurrentInfo /> </div> <div id="Menu"> - <TCDB:Menu runat="server" /> + <TCDB:Menu runat="server" id=Menu /> </div> </div> <% } Modified: Website/TCDB.master =================================================================== --- Website/TCDB.master 2006-07-11 00:16:13 UTC (rev 92) +++ Website/TCDB.master 2006-07-11 14:15:24 UTC (rev 93) @@ -12,7 +12,7 @@ <div id="NonFooter"> <form id="Form1" runat="server"> <div id="HeaderContent"> - <TCDB:Header runat="server" /> + <TCDB:Header runat="server" id=Header /> </div> <% if (Request.IsAuthenticated) { %> @@ -32,13 +32,13 @@ else {%> <div id="Login"> - <TCDB:Authenticate runat="server" /> + <TCDB:Authenticate runat="server" id=Authenticate /> </div> <% } %> </form> </div> <div id="FooterContent"> - <TCDB:Footer runat="server" /> + <TCDB:Footer runat="server" id=Footer /> </div> </body> </html> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <m_h...@us...> - 2006-07-11 00:16:26
|
Revision: 92 Author: m_hildebrand Date: 2006-07-10 17:16:13 -0700 (Mon, 10 Jul 2006) ViewCVS: http://svn.sourceforge.net/tcdb/?rev=92&view=rev Log Message: ----------- Cleaned up AssignmentsTree and worked on some backend code. Started work on notes. Modified Paths: -------------- Website/App_Code/AD_Authentication.cs Website/App_Code/TCDB_Products.cs Website/App_Code/TCDB_Users.cs Website/App_Code/dadDataSet.xsd Website/App_Code/dadDataSet.xss Website/Assignments.aspx Website/Includes/AssignmentsTree.ascx Website/Includes/Authenticate.ascx Website/Includes/Header.ascx Website/Includes/Header_User.ascx Website/TCDB.master Website/web.config Added Paths: ----------- Website/App_Code/TCDB_Assignments.cs Website/App_Code/TCDB_Common.cs Website/App_Code/TCDB_Notes.cs Website/App_Code/TCDB_Statuses.cs Removed Paths: ------------- Website/App_Code/TCDB_Constants.cs Modified: Website/App_Code/AD_Authentication.cs =================================================================== --- Website/App_Code/AD_Authentication.cs 2006-07-10 19:09:08 UTC (rev 91) +++ Website/App_Code/AD_Authentication.cs 2006-07-11 00:16:13 UTC (rev 92) @@ -9,6 +9,7 @@ using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using TCDB_Users; +using TCDB_Common; namespace AD_Auth { @@ -63,7 +64,7 @@ ds.SearchScope = SearchScope.Subtree; ds.Filter = "(&(objectClass=user)(sAMAccountName=" + UserName[1] + "))"; - user.USERID = TCDB_Constants.TCDB_Constant.USER_NEWUSER; + user.ID = TCDB_Constant.USER_NEWUSER; user.AUTOMATION = false; user.ISAUTHENTICATED = true; user.USERNAME = UserName[1]; Added: Website/App_Code/TCDB_Assignments.cs =================================================================== --- Website/App_Code/TCDB_Assignments.cs (rev 0) +++ Website/App_Code/TCDB_Assignments.cs 2006-07-11 00:16:13 UTC (rev 92) @@ -0,0 +1,354 @@ +using System; +using System.Data; +using System.Collections.Generic; +using System.Configuration; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using TCDB_Statuses; +using TCDB_Common; +using TCDB_Users; + +namespace TCDB_Assignments +{ + /// <summary> + /// Summary description for TCDB_Assignments + /// </summary> + public class TCDB_AssignmentDB : Page + { + public static List<TCDB_Assignment> TCDB_GetAssignmentList(string aType, int finished, int assignedID, string highPriority) + { + dadDataSet ds = new dadDataSet(); + dadDataSetTableAdapters.db_assignmentsTableAdapter ta = new dadDataSetTableAdapters.db_assignmentsTableAdapter(); + // TODO: figure out the high priority stuff! + ta.GetData(aType, finished, assignedID, null); + ta.Fill(ds.db_assignments, aType, finished, assignedID, null); + + List<TCDB_Assignment> assignmentList = new List<TCDB_Assignment>(); + + DataTableReader dr = ds.db_assignments.CreateDataReader(); + if (dr.HasRows) + { + while (dr.Read()) + { + TCDB_Assignment assignment = new TCDB_Assignment(); + + string type = TCDB_Help.TCDB_DB_StringParse(dr["aType"], TCDB_Constant.ASSIGNMENT_DEFAULTTYPE); + if (type == TCDB_Constant.ASSIGNMENT_TYPE_ACTIONITEM) + { + assignment.ACTIONITEM = TCDB_ActionItemDB.TCDB_GetActionItem(TCDB_Help.TCDB_DB_IntParse(dr["childID"], TCDB_Constant.ACTIONITEM_DEFAULTID)); + assignment.WOTOTALTEST = 0; + assignment.WOPASSRATE = 0; + assignment.WOPASS = 0; + assignment.WOFAIL = 0; + assignment.WOERROR = 0; + } + else if (type == TCDB_Constant.ASSIGNMENT_TYPE_WORKORDER) + { + assignment.WORKORDER = TCDB_WorkOrderDB.TCDB_GetWorkOrder(TCDB_Help.TCDB_DB_IntParse(dr["childID"], TCDB_Constant.WORKORDER_DEFAULTID)); + assignment.WOTOTALTEST = TCDB_Help.TCDB_DB_IntParse(dr["WOTotalTest"], 0); + assignment.WOPASSRATE = TCDB_Help.TCDB_DB_IntParse(dr["WOPassRate"], 0); + assignment.WOPASS = TCDB_Help.TCDB_DB_IntParse(dr["WOPass"], 0); + assignment.WOFAIL = TCDB_Help.TCDB_DB_IntParse(dr["WOFail"], 0); + assignment.WOERROR = TCDB_Help.TCDB_DB_IntParse(dr["WOError"], 0); + } + + assignment.CREATOR = TCDB_Help.TCDB_DB_StringParse(dr["creator"], ""); + assignment.ASSIGNED = TCDB_Help.TCDB_DB_StringParse(dr["assigned"], ""); + assignment.DATEASSIGNED = TCDB_Help.TCDB_DB_DateTimeParse(dr["dateAssigned"], TCDB_Constant.ASSIGNMENT_DEFAULTDATEASSIGNED); + assignment.DUEDATE = TCDB_Help.TCDB_DB_DateTimeParse(dr["dueDate"], TCDB_Constant.ASSIGNMENT_DEFAULTDUEDATE); + assignment.DATEFINISHED = TCDB_Help.TCDB_DB_DateTimeParse(dr["dateFinished"], TCDB_Constant.ASSIGNMENT_DEFAULTDATEFINISHED); + assignment.HIGHPRIORITY = TCDB_Help.TCDB_DB_BoolParse(dr["highPriority"], TCDB_Constant.ASSIGNMENT_DEFAULTHIGHPRIORITY); + assignment.STATUSNAME = TCDB_Help.TCDB_DB_StringParse(dr["statusName"], ""); + + assignmentList.Add(assignment); + } + } + + return assignmentList; + } + } + + public class TCDB_ActionItemDB : Page + { + public static TCDB_ActionItem TCDB_GetActionItem(int id) + { + dadDataSet ds = new dadDataSet(); + dadDataSetTableAdapters.db_actionItemsTableAdapter ta = new dadDataSetTableAdapters.db_actionItemsTableAdapter(); + ta.GetData(id); + ta.Fill(ds.db_actionItems, id); + + TCDB_ActionItem ai = new TCDB_ActionItem(); + + DataTableReader dr = ds.db_users.CreateDataReader(); + if (dr.HasRows && dr.Read()) + { + ai.ID = TCDB_Help.TCDB_DB_IntParse(dr["actionItemID"], TCDB_Constant.ACTIONITEM_DEFAULTID); + ai.NAME = TCDB_Help.TCDB_DB_StringParse(dr["name"], TCDB_Constant.ACTIONITEM_DEFAULTNAME); + ai.DESCRIPTION = TCDB_Help.TCDB_DB_StringParse(dr["description"], TCDB_Constant.ACTIONITEM_DEFAULTDESCRIPTION); + ai.CREATORID = TCDB_Help.TCDB_DB_IntParse(dr["creatorID"], TCDB_Constant.ACTIONITEM_DEFAULTCREATORID); + ai.PERCENTCOMPLETE = TCDB_Help.TCDB_DB_IntParse(dr["percentComplete"], TCDB_Constant.ACTIONITEM_DEFAULTPERCENTCOMPLETE); + } + + return ai; + } + } + + public class TCDB_WorkOrderDB : Page + { + public static TCDB_WorkOrder TCDB_GetWorkOrder(int id) + { + /* + dadDataSet ds = new dadDataSet(); + dadDataSetTableAdapters.db_actionItemsTableAdapter ta = new dadDataSetTableAdapters.db_actionItemsTableAdapter(); + ta.GetData(id); + ta.Fill(ds.db_actionItems, id); + + TCDB_ActionItem ai = new TCDB_ActionItem(); + + DataTableReader dr = ds.db_users.CreateDataReader(); + if (dr.HasRows && dr.Read()) + { + ai.ID = TCDB_Help.TCDB_DB_IntParse(dr["actionItemID"], TCDB_Constant.ACTIONITEM_DEFAULTID); + ai.NAME = TCDB_Help.TCDB_DB_StringParse(dr["name"], TCDB_Constant.ACTIONITEM_DEFAULTNAME); + ai.DESCRIPTION = TCDB_Help.TCDB_DB_StringParse(dr["description"], TCDB_Constant.ACTIONITEM_DEFAULTDESCRIPTION); + ai.CREATORID = TCDB_Help.TCDB_DB_IntParse(dr["creatorID"], TCDB_Constant.ACTIONITEM_DEFAULTCREATORID); + ai.PERCENTCOMPLETE = TCDB_Help.TCDB_DB_IntParse(dr["percentComplete"], TCDB_Constant.ACTIONITEM_DEFAULTPERCENTCOMPLETE); + } + + return ai; + * */ + return new TCDB_WorkOrder(); + } + } + + public class TCDB_Assignment + { + private int p_id; + private string p_name; + private string p_creator; + private string p_assigned; + private DateTime p_dateAssigned; + private DateTime p_dateFinished; + private DateTime p_dueDate; + private TCDB_WorkOrder p_workOrder; + private TCDB_ActionItem p_actionItem; + private bool p_highPriority; + private string p_statusName; + private int p_woTotalTest; + private int p_woPassRate; + private int p_woPass; + private int p_woFail; + private int p_woError; + + public TCDB_Assignment() + { + p_id = 0; + p_name = ""; + p_creator = ""; + p_assigned = ""; + p_dateAssigned = TCDB_Constant.ASSIGNMENT_DEFAULTDATEASSIGNED; + p_dateFinished = TCDB_Constant.ASSIGNMENT_DEFAULTDATEFINISHED; + p_dueDate = TCDB_Constant.ASSIGNMENT_DEFAULTDUEDATE; + p_workOrder = null; + p_actionItem = null; + p_highPriority = false; + p_statusName = ""; + p_woTotalTest = 0; + p_woPassRate = 0; + p_woPass = 0; + p_woFail = 0; + p_woError = 0; + } + + public int ID + { + get { return p_id; } + set { p_id = value; } + } + + public string NAME + { + get { return p_name; } + set { p_name = value; } + } + + public string CREATOR + { + get { return p_creator; } + set { p_creator = value; } + } + + public string ASSIGNED + { + get { return p_assigned; } + set { p_assigned = value; } + } + + public DateTime DATEASSIGNED + { + get { return p_dateAssigned; } + set { p_dateAssigned = value; } + } + + public DateTime DATEFINISHED + { + get { return p_dateFinished; } + set { p_dateFinished = value; } + } + + public DateTime DUEDATE + { + get { return p_dueDate; } + set { p_dueDate = value; } + } + + public TCDB_WorkOrder WORKORDER + { + get { return p_workOrder; } + set { p_workOrder = value; } + } + + public TCDB_ActionItem ACTIONITEM + { + get { return p_actionItem; } + set { p_actionItem = value; } + } + + public bool HIGHPRIORITY + { + get { return p_highPriority; } + set { p_highPriority = value; } + } + + public string STATUSNAME + { + get { return p_statusName; } + set { p_statusName = value; } + } + + public bool ISWORKORDER + { + get { + if (p_workOrder == null) + return false; + else + return true; + } + } + + public bool ISACTIONITEM + { + get + { + if (p_actionItem == null) + return false; + else + return true; + } + } + + public int WOTOTALTEST + { + get { return p_woTotalTest; } + set { p_woTotalTest = value; } + } + + public int WOPASSRATE + { + get { return p_woPassRate; } + set { p_woPassRate = value; } + } + + public int WOPASS + { + get { return p_woPass; } + set { p_woPass = value; } + } + + public int WOFAIL + { + get { return p_woFail; } + set { p_woFail = value; } + } + + public int WOERROR + { + get { return p_woError; } + set { p_woError = value; } + } + + } + + public class TCDB_ActionItem + { + private int p_id; + private string p_name; + private string p_description; + private int p_creatorID; + private int p_percentComplete; + + public TCDB_ActionItem() + { + p_id = 0; + p_name = ""; + p_description = ""; + p_creatorID = 0; + p_percentComplete = 0; + } + + public TCDB_ActionItem(int id, string name, string description, int creatorID, int percentComplete) + { + p_id = id; + p_name = name; + p_description = description; + p_creatorID = creatorID; + p_percentComplete = percentComplete; + } + + public int ID + { + get { return p_id; } + set { p_id = value; } + } + + public string NAME + { + get { return p_name; } + set { p_name = value; } + } + + public string DESCRIPTION + { + get { return p_description; } + set { p_description = value; } + } + + public int CREATORID + { + get { return p_creatorID; } + set { p_creatorID = value; } + } + + public int PERCENTCOMPLETE + { + get { return p_percentComplete; } + set { p_percentComplete = value; } + } + + public override string ToString() + { + return NAME; + } + } + + public class TCDB_WorkOrder + { + public TCDB_WorkOrder() + { + } + } +} \ No newline at end of file Copied: Website/App_Code/TCDB_Common.cs (from rev 89, Website/App_Code/TCDB_Constants.cs) =================================================================== --- Website/App_Code/TCDB_Common.cs (rev 0) +++ Website/App_Code/TCDB_Common.cs 2006-07-11 00:16:13 UTC (rev 92) @@ -0,0 +1,142 @@ +using System; +using System.Data; +using System.Configuration; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using TCDB_Users; + +namespace TCDB_Common +{ + /// <summary> + /// Summary description for TCDB_Constant + /// </summary> + public static class TCDB_Constant + { + // TODO: Load the values from the DB where appropriate + public static int USER_FAILEDLOGIN = -2; + public static int USER_NOTREGISTERED = -1; + public static int USER_NEWUSER = -1; + + public static int USER_ANONYMOUSUSERID = 0; + public static string USER_ANONYMOUSUSERNAME = "Guest"; + public static string USER_ANONYMOUSFIRSTNAME = "Guest"; + public static string USER_ANONYMOUSLASTNAME = "User"; + public static string USER_ANONYMOUSEMAIL = ""; + public static string USER_ANONYMOUSOFFICEPHONE = ""; + public static string USER_ANONYMOUSHOMEPHONE = ""; + public static string USER_ANONYMOUSCELLPHONE = ""; + public static bool USER_ANONYMOUSAUTOMATION = false; + + public static int ACTIONITEM_DEFAULTID = 0; + public static string ACTIONITEM_DEFAULTNAME = ""; + public static string ACTIONITEM_DEFAULTDESCRIPTION = ""; + public static int ACTIONITEM_DEFAULTCREATORID = USER_ANONYMOUSUSERID; + public static int ACTIONITEM_DEFAULTPERCENTCOMPLETE = 0; + + public static int PRODUCT_DEFAULTID = 0; + public static string PRODUCT_DEFAULTNAME = ""; + public static string PRODUCT_DEFAULTDESCRIPTION = ""; + public static string PRODUCT_DEFAULTCODENAME = ""; + public static int PRODUCT_DEFAULTDEVMANAGERID = USER_ANONYMOUSUSERID; + public static int PRODUCT_DEFAULTQAMANAGERID = USER_ANONYMOUSUSERID; + public static int PRODUCT_DEFAULTDEVLEADID = USER_ANONYMOUSUSERID; + public static int PRODUCT_DEFAULTQALEADID = USER_ANONYMOUSUSERID; + public static int PRODUCT_DEFAULTPMID = USER_ANONYMOUSUSERID; + public static bool PRODUCT_DEFAULTACTIVE = false; + + public static int STATUS_DEFAULTID = 0; + public static string STATUS_DEFAULTGROUP = ""; + public static string STATUS_DEFAULTNAME = ""; + public static string STATUS_DEFAULTDESCRIPTION = ""; + + public static int NOTE_DEFAULTID = 0; + public static DateTime NOTE_DEFAULTDATE = new DateTime(1, 1, 1); + public static string NOTE_DEFAULTNOTEFIELD = ""; + public static int NOTE_DEFAULTAUTHOR = USER_ANONYMOUSUSERID; + + public static string ASSIGNMENT_TYPE_WORKORDER = "WO"; + public static string ASSIGNMENT_TYPE_ACTIONITEM = "AI"; + public static string ASSIGNMENT_TYPE_BOTH = null; + public static string ASSIGNMENT_DEFAULTTYPE = ""; + // TODO: figure this one out + //public static bool ASSIGNMENT_PRIORITY_ALL = null; + public static bool ASSIGNMENT_PRIORITY_HIGH = true; + public static bool ASSIGNMENT_PRIORITY_NORMAL = false; + public static int ASSIGNMENT_FINISHEDANDUNFINISHED = 0; + public static int ASSIGNMENT_FINISHED = 1; + public static int ASSIGNMENT_UNFINISHED = 2; + + public static int ASSIGNMENT_DEFAULTCREATOR = USER_ANONYMOUSUSERID; + public static int ASSIGNMENT_DEFAULTASSIGNEDID = USER_ANONYMOUSUSERID; + public static DateTime ASSIGNMENT_DEFAULTDATEASSIGNED = NOTE_DEFAULTDATE; + public static DateTime ASSIGNMENT_DEFAULTDUEDATE = NOTE_DEFAULTDATE; + public static DateTime ASSIGNMENT_DEFAULTDATEFINISHED = NOTE_DEFAULTDATE; + public static bool ASSIGNMENT_DEFAULTHIGHPRIORITY = false; + + public static int WORKORDER_DEFAULTID = 0; + } + + public static class TCDB_Help + { + + public static int TCDB_DB_IntParse(object value, int defaultValue) + { + int result = defaultValue; + try + { + result = int.Parse(value.ToString()); + } + catch + { + result = defaultValue; + } + return result; + } + + public static string TCDB_DB_StringParse(object value, string defaultValue) + { + string result = defaultValue; + try + { + result = value.ToString(); + } + catch + { + result = defaultValue; + } + return result; + } + + public static bool TCDB_DB_BoolParse(object value, bool defaultValue) + { + bool result = defaultValue; + try + { + result = (bool)value; + } + catch + { + result = defaultValue; + } + return result; + } + + public static DateTime TCDB_DB_DateTimeParse(object value, DateTime defaultValue) + { + DateTime result = defaultValue; + try + { + result = new DateTime(long.Parse(value.ToString())); + } + catch + { + result = defaultValue; + } + return result; + } + } +} \ No newline at end of file Deleted: Website/App_Code/TCDB_Constants.cs =================================================================== --- Website/App_Code/TCDB_Constants.cs 2006-07-10 19:09:08 UTC (rev 91) +++ Website/App_Code/TCDB_Constants.cs 2006-07-11 00:16:13 UTC (rev 92) @@ -1,29 +0,0 @@ -using System; -using System.Data; -using System.Configuration; -using System.Web; -using System.Web.Security; -using System.Web.UI; -using System.Web.UI.WebControls; -using System.Web.UI.WebControls.WebParts; -using System.Web.UI.HtmlControls; - -namespace TCDB_Constants -{ - /// <summary> - /// Summary description for TCDB_Constant - /// </summary> - public static class TCDB_Constant - { - // TODO: Load the strings from the DB where appropriate - public static int USER_FAILEDLOGIN = -2; - public static int USER_NOTREGISTERED = -1; - public static int USER_NEWUSER = -1; - public static int USER_ANONYMOUSUSERID = 0; - public static string USER_ANONYMOUSUSERNAME = "Guest"; - public static string USER_ANONYMOUSFIRSTNAME = "Guest"; - public static string USER_ANONYMOUSLASTNAME = "User"; - - public static string ACTION_NEWUSER = "nu"; - } -} \ No newline at end of file Added: Website/App_Code/TCDB_Notes.cs =================================================================== --- Website/App_Code/TCDB_Notes.cs (rev 0) +++ Website/App_Code/TCDB_Notes.cs 2006-07-11 00:16:13 UTC (rev 92) @@ -0,0 +1,97 @@ +using System; +using System.Data; +using System.Configuration; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using TCDB_Users; +using TCDB_Common; + +namespace TCDB_Notes +{ + /// <summary> + /// Summary description for TCDB_Notes + /// </summary> + public class TCDB_NoteDB : Page + { + public static TCDB_Note TCDB_GetNote(int id) + { + dadDataSet ds = new dadDataSet(); + dadDataSetTableAdapters.db_notesTableAdapter ta = new dadDataSetTableAdapters.db_notesTableAdapter(); + ta.GetData(null, id); + ta.Fill(ds.db_notes, null, id); + + TCDB_Note note = null; + + DataTableReader dr = ds.CreateDataReader(); + if (dr.HasRows && dr.Read()) + { + int noteid = TCDB_Help.TCDB_DB_IntParse(dr["noteID"], TCDB_Constant.NOTE_DEFAULTID); + DateTime dateCreated = TCDB_Help.TCDB_DB_DateTimeParse(dr["dateCreated"], TCDB_Constant.NOTE_DEFAULTDATE); + string noteField = TCDB_Help.TCDB_DB_StringParse(dr["noteField"], TCDB_Constant.NOTE_DEFAULTNOTEFIELD); + int noteAuthor = TCDB_Help.TCDB_DB_IntParse(dr["noteAuthor"], TCDB_Constant.NOTE_DEFAULTAUTHOR); + + note = new TCDB_Note(noteid, dateCreated, noteField, noteAuthor); + } + + return note; + } + + } + + public class TCDB_Note + { + private int p_id; + private DateTime p_dateCreated; + private string p_noteField; + private TCDB_User p_noteAuthor; + + public TCDB_Note(int id, DateTime dateCreated, string noteField, TCDB_User noteAuthor) + { + p_id = id; + p_dateCreated = dateCreated; + p_noteField = noteField; + p_noteAuthor = noteAuthor; + } + + public TCDB_Note(int id, DateTime dateCreated, string noteField, int noteAuthor) + { + p_id = id; + p_dateCreated = dateCreated; + p_noteField = noteField; + p_noteAuthor = TCDB_UserDB.TCDB_GetUserInfo(noteAuthor); + } + + public TCDB_Note() + { + p_id = TCDB_Constant.NOTE_DEFAULTID; + p_dateCreated = TCDB_Constant.NOTE_DEFAULTDATE; + p_noteField = TCDB_Constant.NOTE_DEFAULTNOTEFIELD; + p_noteAuthor = TCDB_UserDB.TCDB_GetUserInfo(TCDB_Constant.NOTE_DEFAULTAUTHOR); + } + + public int ID + { + get { return p_id; } + } + + public DateTime DATECREATED + { + get { return p_dateCreated; } + } + + public string NOTEFIELD + { + get { return p_noteField; } + set { p_noteField = value; } + } + + public TCDB_User NOTEAUTHOR + { + get { return p_noteAuthor; } + } + } +} \ No newline at end of file Modified: Website/App_Code/TCDB_Products.cs =================================================================== --- Website/App_Code/TCDB_Products.cs 2006-07-10 19:09:08 UTC (rev 91) +++ Website/App_Code/TCDB_Products.cs 2006-07-11 00:16:13 UTC (rev 92) @@ -9,6 +9,7 @@ using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using TCDB_Users; +using TCDB_Common; namespace TCDB_Products { @@ -29,16 +30,18 @@ DataTableReader dr = ds.CreateDataReader(); if (dr.HasRows && dr.Read()) { - product.PRODUCTID = int.Parse(dr["productID"].ToString()); - product.NAME = dr["name"].ToString(); - product.DESCRIPTION = dr["description"].ToString(); - product.CODENAME = dr["codeName"].ToString(); - product.DEVMANAGER = TCDB_UserDB.TCDB_GetUserInfo(int.Parse(dr["devManager"].ToString())); - product.QAMANAGER = TCDB_UserDB.TCDB_GetUserInfo(int.Parse(dr["qaManager"].ToString())); - product.DEVLEAD = TCDB_UserDB.TCDB_GetUserInfo(int.Parse(dr["devLead"].ToString())); - product.QALEAD = TCDB_UserDB.TCDB_GetUserInfo(int.Parse(dr["qaLead"].ToString())); - product.PM = TCDB_UserDB.TCDB_GetUserInfo(int.Parse(dr["pm"].ToString())); - product.ACTIVE = (bool)(dr["active"]); + int id = TCDB_Help.TCDB_DB_IntParse(dr["productID"], TCDB_Constant.PRODUCT_DEFAULTID); + string name = TCDB_Help.TCDB_DB_StringParse(dr["name"], TCDB_Constant.PRODUCT_DEFAULTNAME); + string description = TCDB_Help.TCDB_DB_StringParse(dr["description"], TCDB_Constant.PRODUCT_DEFAULTDESCRIPTION); + string codeName = TCDB_Help.TCDB_DB_StringParse(dr["codeName"], TCDB_Constant.PRODUCT_DEFAULTCODENAME); + TCDB_User devManager = TCDB_UserDB.TCDB_GetUserInfo(TCDB_Help.TCDB_DB_IntParse(dr["devManager"], TCDB_Constant.PRODUCT_DEFAULTDEVMANAGERID)); + TCDB_User qaManager = TCDB_UserDB.TCDB_GetUserInfo(TCDB_Help.TCDB_DB_IntParse(dr["qaManager"], TCDB_Constant.PRODUCT_DEFAULTQAMANAGERID)); + TCDB_User devLead = TCDB_UserDB.TCDB_GetUserInfo(TCDB_Help.TCDB_DB_IntParse(dr["devLead"], TCDB_Constant.PRODUCT_DEFAULTDEVLEADID)); + TCDB_User qaLead = TCDB_UserDB.TCDB_GetUserInfo(TCDB_Help.TCDB_DB_IntParse(dr["qaLead"], TCDB_Constant.PRODUCT_DEFAULTQALEADID)); + TCDB_User pm = TCDB_UserDB.TCDB_GetUserInfo(TCDB_Help.TCDB_DB_IntParse(dr["pm"], TCDB_Constant.PRODUCT_DEFAULTPMID)); + bool active = TCDB_Help.TCDB_DB_BoolParse(dr["active"], TCDB_Constant.PRODUCT_DEFAULTACTIVE); + + product = new TCDB_Product(id, name, description, codeName, devManager, qaManager, devLead, qaLead, pm, active); } return product; @@ -53,22 +56,35 @@ List<TCDB_Product> productList = new List<TCDB_Product>(); - DataTableReader dr = ds.CreateDataReader(); + DataTableReader dr = ds.db_products.CreateDataReader(); if (dr.HasRows) { + int id = TCDB_Constant.PRODUCT_DEFAULTID; + string name = TCDB_Constant.PRODUCT_DEFAULTNAME; + string description = TCDB_Constant.PRODUCT_DEFAULTDESCRIPTION; + string codeName = TCDB_Constant.PRODUCT_DEFAULTCODENAME; + TCDB_User devManager = TCDB_UserDB.TCDB_GetUserInfo(TCDB_Constant.PRODUCT_DEFAULTDEVMANAGERID); + TCDB_User qaManager = TCDB_UserDB.TCDB_GetUserInfo(TCDB_Constant.PRODUCT_DEFAULTQAMANAGERID); + TCDB_User devLead = TCDB_UserDB.TCDB_GetUserInfo(TCDB_Constant.PRODUCT_DEFAULTDEVLEADID); + TCDB_User qaLead = TCDB_UserDB.TCDB_GetUserInfo(TCDB_Constant.PRODUCT_DEFAULTQALEADID); + TCDB_User pm = TCDB_UserDB.TCDB_GetUserInfo(TCDB_Constant.PRODUCT_DEFAULTPMID); + bool active = TCDB_Constant.PRODUCT_DEFAULTACTIVE; + while (dr.Read()) { TCDB_Product product = new TCDB_Product(); - product.PRODUCTID = int.Parse(dr["productID"].ToString()); - product.NAME = dr["name"].ToString(); - product.DESCRIPTION = dr["description"].ToString(); - product.CODENAME = dr["codeName"].ToString(); - product.DEVMANAGER = TCDB_UserDB.TCDB_GetUserInfo(int.Parse(dr["devManager"].ToString())); - product.QAMANAGER = TCDB_UserDB.TCDB_GetUserInfo(int.Parse(dr["qaManager"].ToString())); - product.DEVLEAD = TCDB_UserDB.TCDB_GetUserInfo(int.Parse(dr["devLead"].ToString())); - product.QALEAD = TCDB_UserDB.TCDB_GetUserInfo(int.Parse(dr["qaLead"].ToString())); - product.PM = TCDB_UserDB.TCDB_GetUserInfo(int.Parse(dr["pm"].ToString())); - product.ACTIVE = (bool)(dr["active"]); + id = TCDB_Help.TCDB_DB_IntParse(dr["productID"], TCDB_Constant.PRODUCT_DEFAULTID); + name = TCDB_Help.TCDB_DB_StringParse(dr["name"], TCDB_Constant.PRODUCT_DEFAULTNAME); + description = TCDB_Help.TCDB_DB_StringParse(dr["description"], TCDB_Constant.PRODUCT_DEFAULTDESCRIPTION); + codeName = TCDB_Help.TCDB_DB_StringParse(dr["codeName"], TCDB_Constant.PRODUCT_DEFAULTCODENAME); + devManager = TCDB_UserDB.TCDB_GetUserInfo(TCDB_Help.TCDB_DB_IntParse(dr["devManager"], TCDB_Constant.PRODUCT_DEFAULTDEVMANAGERID)); + qaManager = TCDB_UserDB.TCDB_GetUserInfo(TCDB_Help.TCDB_DB_IntParse(dr["qaManager"], TCDB_Constant.PRODUCT_DEFAULTQAMANAGERID)); + devLead = TCDB_UserDB.TCDB_GetUserInfo(TCDB_Help.TCDB_DB_IntParse(dr["devLead"], TCDB_Constant.PRODUCT_DEFAULTDEVLEADID)); + qaLead = TCDB_UserDB.TCDB_GetUserInfo(TCDB_Help.TCDB_DB_IntParse(dr["qaLead"], TCDB_Constant.PRODUCT_DEFAULTQALEADID)); + pm = TCDB_UserDB.TCDB_GetUserInfo(TCDB_Help.TCDB_DB_IntParse(dr["pm"], TCDB_Constant.PRODUCT_DEFAULTPMID)); + active = TCDB_Help.TCDB_DB_BoolParse(dr["active"], TCDB_Constant.PRODUCT_DEFAULTACTIVE); + + product = new TCDB_Product(id, name, description, codeName, devManager, qaManager, devLead, qaLead, pm, active); productList.Add(product); } } @@ -79,95 +95,111 @@ public class TCDB_Product { - private int productid; - private string name; - private string description; - private string codeName; - private TCDB_User devManager; - private TCDB_User qaManager; - private TCDB_User devLead; - private TCDB_User qaLead; - private TCDB_User pm; - private bool active; + private int p_productid; + private string p_name; + private string p_description; + private string p_codeName; + private TCDB_User p_devManager; + private TCDB_User p_qaManager; + private TCDB_User p_devLead; + private TCDB_User p_qaLead; + private TCDB_User p_pm; + private bool p_active; // TODO: Implement these as the time is right //private List<TCDB_Tag> tags; public TCDB_Product() { - productid = 0; - name = null; - description = null; - codeName = null; - devManager = null; - qaManager = null; - devLead = null; - qaLead = null; - pm = null; - active = false; + p_productid = 0; + p_name = null; + p_description = null; + p_codeName = null; + p_devManager = null; + p_qaManager = null; + p_devLead = null; + p_qaLead = null; + p_pm = null; + p_active = false; } - - public TCDB_Product(int id) + + public TCDB_Product(int id, string name, string description, string codeName, TCDB_User devManager, + TCDB_User qaManager, TCDB_User devLead, TCDB_User qaLead, TCDB_User pm, bool active) { + p_productid = id; + p_name = name; + p_description = description; + p_codeName = codeName; + p_devManager = devManager; + p_qaManager = qaManager; + p_devLead = devLead; + p_qaLead = qaLead; + p_pm = pm; + p_active = active; } - public int PRODUCTID + public int ID { - get { return productid; } - set { productid = value; } + get { return p_productid; } + set { p_productid = value; } } public string NAME { - get { return name; } - set { name = value; } + get { return p_name; } + set { p_name = value; } } public string DESCRIPTION { - get { return description; } - set { description = value; } + get { return p_description; } + set { p_description = value; } } public string CODENAME { - get { return codeName; } - set { codeName = value; } + get { return p_codeName; } + set { p_codeName = value; } } public TCDB_User DEVMANAGER { - get { return devManager; } - set { devManager = value; } + get { return p_devManager; } + set { p_devManager = value; } } public TCDB_User QAMANAGER { - get { return qaManager; } - set { qaManager = value; } + get { return p_qaManager; } + set { p_qaManager = value; } } public TCDB_User DEVLEAD { - get { return devLead; } - set { devLead = value; } + get { return p_devLead; } + set { p_devLead = value; } } public TCDB_User QALEAD { - get { return qaLead; } - set { qaLead = value; } + get { return p_qaLead; } + set { p_qaLead = value; } } public TCDB_User PM { - get { return pm; } - set { pm = value; } + get { return p_pm; } + set { p_pm = value; } } public bool ACTIVE { - get { return active; } - set { active = value; } + get { return p_active; } + set { p_active = value; } } + + public override string ToString() + { + return NAME; + } } } \ No newline at end of file Added: Website/App_Code/TCDB_Statuses.cs =================================================================== --- Website/App_Code/TCDB_Statuses.cs (rev 0) +++ Website/App_Code/TCDB_Statuses.cs 2006-07-11 00:16:13 UTC (rev 92) @@ -0,0 +1,92 @@ +using System; +using System.Data; +using System.Configuration; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using TCDB_Common; + +namespace TCDB_Statuses +{ + public class TCDB_StatusDB : Page + { + public static TCDB_Status GetStatus(string statusGroup, string statusName, int id) + { + // TODO: Load a status type from the DB + // TODO: Check against the DB for user information + dadDataSet ds = new dadDataSet(); + dadDataSetTableAdapters.db_statusTableAdapter ta = new dadDataSetTableAdapters.db_statusTableAdapter(); + ta.GetData(statusGroup, statusName, id); + ta.Fill(ds.db_status, statusGroup, statusName, id); + + TCDB_Status status = new TCDB_Status(); + + DataTableReader dr = ds.db_status.CreateDataReader(); + if (dr.HasRows && dr.Read()) + { + status.ID = TCDB_Help.TCDB_DB_IntParse(dr["statusID"], TCDB_Constant.STATUS_DEFAULTID); + status.GROUP = TCDB_Help.TCDB_DB_StringParse(dr["statusGroup"], TCDB_Constant.STATUS_DEFAULTGROUP); + status.NAME = TCDB_Help.TCDB_DB_StringParse(dr["statusName"], TCDB_Constant.STATUS_DEFAULTNAME); + status.DESCRIPTION = TCDB_Help.TCDB_DB_StringParse(dr["description"], TCDB_Constant.STATUS_DEFAULTDESCRIPTION); + } + + return status; + } + } + + public class TCDB_Status + { + private int p_id; + private string p_group; + private string p_name; + private string p_description; + + public TCDB_Status() + { + p_id = 0; + p_group = null; + p_name = null; + p_description = null; + } + + public TCDB_Status(int id, string group, string name, string description) + { + p_id = id; + p_group = group; + p_name = name; + p_description = description; + } + + public int ID + { + get { return p_id; } + set { p_id = value; } + } + + public string GROUP + { + get { return p_group; } + set { p_group = value; } + } + + public string NAME + { + get { return p_name; } + set { p_name = value; } + } + + public string DESCRIPTION + { + get { return p_description; } + set { p_description = value; } + } + + public override string ToString() + { + return NAME; + } + } +} \ No newline at end of file Modified: Website/App_Code/TCDB_Users.cs =================================================================== --- Website/App_Code/TCDB_Users.cs 2006-07-10 19:09:08 UTC (rev 91) +++ Website/App_Code/TCDB_Users.cs 2006-07-11 00:16:13 UTC (rev 92) @@ -11,13 +11,15 @@ using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Security; -using TCDB_Constants; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; +using TCDB_Assignments; +using TCDB_Common; using AD_Auth; + namespace TCDB_Users { /// <summary> @@ -58,7 +60,7 @@ // Determine if the user exists in the DB or not. If not, we need to get // the basic info TCDB_User user = TCDB_GetUserInfo(cleanUserName); - if (user.USERID > 1) + if (user.ID > 1) { user.ISAUTHENTICATED = true; return user; @@ -82,15 +84,15 @@ DataTableReader dr = ds.CreateDataReader(); if (dr.HasRows && dr.Read()) { - user.USERID = int.Parse(dr["userID"].ToString()); - user.USERNAME = dr["username"].ToString(); - user.FIRSTNAME = dr["firstName"].ToString(); - user.LASTNAME = dr["lastName"].ToString(); - user.EMAIL = dr["email"].ToString(); - user.OFFICEPHONE = dr["officePhone"].ToString(); - user.HOMEPHONE = dr["homePhone"].ToString(); - user.CELLPHONE = dr["cellPhone"].ToString(); - user.AUTOMATION = (bool)(dr["automation"]); + user.ID = TCDB_Help.TCDB_DB_IntParse(dr["userID"], TCDB_Constant.USER_ANONYMOUSUSERID); + user.USERNAME = TCDB_Help.TCDB_DB_StringParse(dr["username"], TCDB_Constant.USER_ANONYMOUSUSERNAME); + user.FIRSTNAME = TCDB_Help.TCDB_DB_StringParse(dr["firstName"], TCDB_Constant.USER_ANONYMOUSFIRSTNAME); + user.LASTNAME = TCDB_Help.TCDB_DB_StringParse(dr["lastName"], TCDB_Constant.USER_ANONYMOUSLASTNAME); + user.EMAIL = TCDB_Help.TCDB_DB_StringParse(dr["email"], TCDB_Constant.USER_ANONYMOUSEMAIL); + user.OFFICEPHONE = TCDB_Help.TCDB_DB_StringParse(dr["officePhone"], TCDB_Constant.USER_ANONYMOUSOFFICEPHONE); + user.HOMEPHONE = TCDB_Help.TCDB_DB_StringParse(dr["homePhone"], TCDB_Constant.USER_ANONYMOUSHOMEPHONE); + user.CELLPHONE = TCDB_Help.TCDB_DB_StringParse(dr["cellPhone"], TCDB_Constant.USER_ANONYMOUSCELLPHONE); + user.AUTOMATION = TCDB_Help.TCDB_DB_BoolParse(dr["automation"], TCDB_Constant.USER_ANONYMOUSAUTOMATION); } return user; @@ -106,22 +108,75 @@ TCDB_User user = new TCDB_User(); - DataTableReader dr = ds.CreateDataReader(); + DataTableReader dr = ds.db_users.CreateDataReader(); if (dr.HasRows && dr.Read()) { - user.USERID = int.Parse(dr["userID"].ToString()); - user.USERNAME = dr["username"].ToString(); - user.FIRSTNAME = dr["firstName"].ToString(); - user.LASTNAME = dr["lastName"].ToString(); - user.EMAIL = dr["email"].ToString(); - user.OFFICEPHONE = dr["officePhone"].ToString(); - user.HOMEPHONE = dr["homePhone"].ToString(); - user.CELLPHONE = dr["cellPhone"].ToString(); - user.AUTOMATION = (bool)(dr["automation"]); + user.ID = TCDB_Help.TCDB_DB_IntParse(dr["userID"], TCDB_Constant.USER_ANONYMOUSUSERID); + user.USERNAME = TCDB_Help.TCDB_DB_StringParse(dr["username"], TCDB_Constant.USER_ANONYMOUSUSERNAME); + user.FIRSTNAME = TCDB_Help.TCDB_DB_StringParse(dr["firstName"], TCDB_Constant.USER_ANONYMOUSFIRSTNAME); + user.LASTNAME = TCDB_Help.TCDB_DB_StringParse(dr["lastName"], TCDB_Constant.USER_ANONYMOUSLASTNAME); + user.EMAIL = TCDB_Help.TCDB_DB_StringParse(dr["email"], TCDB_Constant.USER_ANONYMOUSEMAIL); + user.OFFICEPHONE = TCDB_Help.TCDB_DB_StringParse(dr["officePhone"], TCDB_Constant.USER_ANONYMOUSOFFICEPHONE); + user.HOMEPHONE = TCDB_Help.TCDB_DB_StringParse(dr["homePhone"], TCDB_Constant.USER_ANONYMOUSHOMEPHONE); + user.CELLPHONE = TCDB_Help.TCDB_DB_StringParse(dr["cellPhone"], TCDB_Constant.USER_ANONYMOUSCELLPHONE); + user.AUTOMATION = TCDB_Help.TCDB_DB_BoolParse(dr["automation"], TCDB_Constant.USER_ANONYMOUSAUTOMATION); } return user; } + + public static List<TCDB_User> TCDB_GetUserList() + { + // TODO: Check against the DB for user information + dadDataSet ds = new dadDataSet(); + dadDataSetTableAdapters.db_usersTableAdapter ta = new dadDataSetTableAdapters.db_usersTableAdapter(); + ta.GetData(null, null); + ta.Fill(ds.db_users, null, null); + + List<TCDB_User> userList = new List<TCDB_User>(); + + DataTableReader dr = ds.db_users.CreateDataReader(); + if (dr.HasRows) + { + while (dr.Read()) + { + TCDB_User user = new TCDB_User(); + + user.ID = TCDB_Help.TCDB_DB_IntParse(dr["userID"], TCDB_Constant.USER_ANONYMOUSUSERID); + user.USERNAME = TCDB_Help.TCDB_DB_StringParse(dr["username"], TCDB_Constant.USER_ANONYMOUSUSERNAME); + user.FIRSTNAME = TCDB_Help.TCDB_DB_StringParse(dr["firstName"], TCDB_Constant.USER_ANONYMOUSFIRSTNAME); + user.LASTNAME = TCDB_Help.TCDB_DB_StringParse(dr["lastName"], TCDB_Constant.USER_ANONYMOUSLASTNAME); + user.EMAIL = TCDB_Help.TCDB_DB_StringParse(dr["email"], TCDB_Constant.USER_ANONYMOUSEMAIL); + user.OFFICEPHONE = TCDB_Help.TCDB_DB_StringParse(dr["officePhone"], TCDB_Constant.USER_ANONYMOUSOFFICEPHONE); + user.HOMEPHONE = TCDB_Help.TCDB_DB_StringParse(dr["homePhone"], TCDB_Constant.USER_ANONYMOUSHOMEPHONE); + user.CELLPHONE = TCDB_Help.TCDB_DB_StringParse(dr["cellPhone"], TCDB_Constant.USER_ANONYMOUSCELLPHONE); + user.AUTOMATION = TCDB_Help.TCDB_DB_BoolParse(dr["automation"], TCDB_Constant.USER_ANONYMOUSAUTOMATION); + + userList.Add(user); + } + } + + return userList; + } + + public static bool TCDB_SaveUser(TCDB_User user) + { + dadDataSet ds = new dadDataSet(); + dadDataSetTableAdapters.db_usersTableAdapter ta = new dadDataSetTableAdapters.db_usersTableAdapter(); + try + { + ta.Insert(user.USERNAME, user.FIRSTNAME, user.LASTNAME, user.EMAIL, user.OFFICEPHONE, user.HOMEPHONE, user.CELLPHONE, user.AUTOMATION); + } + catch + { + return false; + } + + if (ds.db_users.HasErrors) + return false; + + return true; + } } @@ -143,20 +198,31 @@ private bool isAuthenticated; private List<TCDB_Right> rights; private List<TCDB_Config> config; + private List<TCDB_Assignment> assignments; /* TODO: Implement these as the time is right private List<TCDB_Feature> features; private List<TCDB_Assignment> assignmentsCreated; - private List<TCDB_Assignment> assignments; private List<TCDB_Objective> objectives; private List<TCDB_WorkOrderTemplate> savedWorkOrders; private List<TCDB_TestCase> testCasesCreated; private List<TCDB_TestCase> testCasesEdited; */ - /// <summary> - /// Default constructor, returns an anonymous user - /// TODO: Make this information come from the database rather than being hard coded here - /// </summary> + public List<TCDB_Assignment> ASSIGNMENTS + { + // TODO: This list needs to be able to reflect filters! + get + { + List<TCDB_Assignment> assignments = new List<TCDB_Assignment>(); + if (assignments == null) + { + assignments = TCDB_AssignmentDB.TCDB_GetAssignmentList(TCDB_Constant.ASSIGNMENT_TYPE_BOTH, + TCDB_Constant.ASSIGNMENT_FINISHEDANDUNFINISHED, ID, null); + } + return assignments; + } + } + public TCDB_User() { userid = TCDB_Constant.USER_ANONYMOUSUSERID; @@ -171,28 +237,38 @@ isAuthenticated = false; rights = null; config = null; + assignments = null; } - /// <summary> - /// Load a specific user based on username - /// </summary> - /// <param name="username"></param> public TCDB_User(string username) { - // TODO: Write this function + TCDB_BuildUser(TCDB_UserDB.TCDB_GetUserInfo(username)); } - /// <summary> - /// Load a specific user based on id - /// </summary> - /// <param name="id"></param> public TCDB_User(int id) { - // TODO: Write this function + TCDB_BuildUser(TCDB_UserDB.TCDB_GetUserInfo(id)); } - public int USERID + private void TCDB_BuildUser(TCDB_User user) { + userid = user.ID; + username = user.USERNAME; + email = user.EMAIL; + officePhone = user.OFFICEPHONE; + homePhone = user.HOMEPHONE; + cellPhone = user.CELLPHONE; + firstName = user.FIRSTNAME; + lastName = user.LASTNAME; + automation = user.AUTOMATION; + isAuthenticated = user.ISAUTHENTICATED; + rights = user.rights; + config = user.config; + assignments = null; + } + + public int ID + { get { return userid; } set { userid = value; } } Modified: Website/App_Code/dadDataSet.xsd =================================================================== --- Website/App_Code/dadDataSet.xsd 2006-07-10 19:09:08 UTC (rev 91) +++ Website/App_Code/dadDataSet.xsd 2006-07-11 00:16:13 UTC (rev 92) @@ -2,10 +2,12 @@ <xs:schema id="dadDataSet" targetNamespace="http://tempuri.org/dadDataSet.xsd" xmlns:mstns="http://tempuri.org/dadDataSet.xsd" xmlns="http://tempuri.org/dadDataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified"> <xs:annotation> <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource"> - <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" GeneratorFunctionsComponentClassName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" UserFunctionsComponentName="QueriesTableAdapter" xmlns="urn:schemas-microsoft-com:xml-msdatasource"> + <DataSource DefaultConnectionIndex="1" FunctionsComponentName="QueriesTableAdapter" GeneratorFunctionsComponentClassName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" UserFunctionsComponentName="QueriesTableAdapter" xmlns="urn:schemas-microsoft-com:xml-msdatasource"> <Connections> <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="dadConnectionString" ConnectionStringObject="" IsAppSettingsProperty="True" Modifier="Assembly" Name="dadConnectionString (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.dadConnectionString.ConnectionString" Provider="System.Data.SqlClient"> </Connection> + <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="tcdbConnectionString" ConnectionStringObject="" IsAppSettingsProperty="True" Modifier="Assembly" Name="tcdbConnectionString (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.tcdbConnectionString.ConnectionString" Provider="System.Data.SqlClient"> + </Connection> </Connections> <Tables> <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="db_usersTableAdapter" GeneratorDataComponentClassName="db_usersTableAdapter" Name="db_users" UserDataComponentName="db_usersTableAdapter"> @@ -182,6 +184,156 @@ <Sources> </Sources> </TableAdapter> + <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="db_actionItemsTableAdapter" GeneratorDataComponentClassName="db_actionItemsTableAdapter" Name="db_actionItems" UserDataComponentName="db_actionItemsTableAdapter"> + <MainSource> + <DbSource ConnectionRef="dadConnectionString (Web.config)" DbObjectName="tcdb.dbo.sel_actionItems" DbObjectType="StoredProcedure" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="True" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="False" UserGetMethodName="GetData" UserSourceName="Fill"> + <InsertCommand> + <DbCommand CommandType="StoredProcedure" ModifiedByUser="False"> + <CommandText>dbo.ins_actionItem</CommandText> + <Parameters> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@name" Precision="0" ProviderType="VarChar" Scale="0" Size="255" SourceColumn="name" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@description" Precision="0" ProviderType="Text" Scale="0" Size="2147483647" SourceColumn="description" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@creatorID" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumn="" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@assignedID" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumn="" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="DateTime" Direction="Input" ParameterName="@dateDue" Precision="23" ProviderType="DateTime" Scale="3" Size="8" SourceColumn="dateDue" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@testPassID" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumn="" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@highPriority" Precision="1" ProviderType="Bit" Scale="0" Size="1" SourceColumn="highPriority" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + </Parameters> + </DbCommand> + </InsertCommand> + <SelectCommand> + <DbCommand CommandType="StoredProcedure" ModifiedByUser="False"> + <CommandText>dbo.sel_actionItems</CommandText> + <Parameters> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@actionItemID" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + </Parameters> + </DbCommand> + </SelectCommand> + </DbSource> + </MainSource> + <Mappings> + <Mapping SourceColumn="actionItemID" DataSetColumn="actionItemID" /> + <Mapping SourceColumn="name" DataSetColumn="name" /> + <Mapping SourceColumn="description" DataSetColumn="description" /> + <Mapping SourceColumn="dateAssigned" DataSetColumn="dateAssigned" /> + <Mapping SourceColumn="dateDue" DataSetColumn="dateDue" /> + <Mapping SourceColumn="percentComplete" DataSetColumn="percentComplete" /> + <Mapping SourceColumn="statusName" DataSetColumn="statusName" /> + <Mapping SourceColumn="createdBy" DataSetColumn="createdBy" /> + <Mapping SourceColumn="highPriority" DataSetColumn="highPriority" /> + <Mapping SourceColumn="createdById" DataSetColumn="createdById" /> + </Mappings> + <Sources> + </Sources> + </TableAdapter> + <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="db_statusTableAdapter" GeneratorDataComponentClassName="db_statusTableAdapter" Name="db_status" UserDataComponentName="db_statusTableAdapter"> + <MainSource> + <DbSource ConnectionRef="dadConnectionString (Web.config)" DbObjectName="tcdb.dbo.sel_status" DbObjectType="StoredProcedure" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="True" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetData" UserSourceName="Fill"> + <SelectCommand> + <DbCommand CommandType="StoredProcedure" ModifiedByUser="False"> + <CommandText>dbo.sel_status</CommandText> + <Parameters> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@statusGroup" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@statusName" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@statusID" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + </Parameters> + </DbCommand> + </SelectCommand> + </DbSource> + </MainSource> + <Mappings> + <Mapping SourceColumn="statusID" DataSetColumn="statusID" /> + <Mapping SourceColumn="Description" DataSetColumn="Description" /> + </Mappings> + <Sources> + </Sources> + </TableAdapter> + <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="db_notesTableAdapter" GeneratorDataComponentClassName="db_notesTableAdapter" Name="db_notes" UserDataComponentName="db_notesTableAdapter"> + <MainSource> + <DbSource ConnectionRef="tcdbConnectionString (Web.config)" DbObjectName="tcdb.dbo.sel_notes" DbObjectType="StoredProcedure" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="False" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="False" UserGetMethodName="GetData" UserSourceName="Fill"> + <SelectCommand> + <DbCommand CommandType="StoredProcedure" ModifiedByUser="False"> + <CommandText>dbo.sel_notes</CommandText> + <Parameters> + <Parameter AllowDbNull="True" AutogeneratedName="" Data... [truncated message content] |
From: <ro...@us...> - 2006-07-10 19:09:15
|
Revision: 91 Author: rouquin Date: 2006-07-10 12:09:08 -0700 (Mon, 10 Jul 2006) ViewCVS: http://svn.sourceforge.net/tcdb/?rev=91&view=rev Log Message: ----------- Started porting AssignmentsTree.ascx to Website. Not fully working yet. Still waiting for stored procedures, but testing it with manual queries for now. Modified Paths: -------------- Website/Assignments.aspx Website/Includes/AssignmentsTree.ascx Website/Includes/Header.ascx Website/Includes/Header_Menu.ascx Website/TCDB.master Modified: Website/Assignments.aspx =================================================================== --- Website/Assignments.aspx 2006-07-10 17:12:54 UTC (rev 90) +++ Website/Assignments.aspx 2006-07-10 19:09:08 UTC (rev 91) @@ -1,8 +1,10 @@ <%@ Page Language="C#" MasterPageFile="~/TCDB.master" AutoEventWireup="true" Title="Untitled Page" %> -<asp:Content ID="TreeContent" ContentPlaceHolderID="TreeContentPlaceHolder" Runat="Server"> + +<%@ Register Src="~/Includes/AssignmentsTree.ascx" TagPrefix="assignment" TagName="Tree" %> +<asp:Content ID="TreeContent" ContentPlaceHolderID="TreeContentPlaceHolder" runat="Server"> + <assignment:Tree ID=tree runat=server /> </asp:Content> -<asp:Content ID="MainContent" ContentPlaceHolderID="MainContentPlaceHolder" Runat="Server"> +<asp:Content ID="MainContent" ContentPlaceHolderID="MainContentPlaceHolder" runat="Server"> </asp:Content> -<asp:Content ID="NotesContent" ContentPlaceHolderID="NotesContentPlaceHolder" Runat="Server"> +<asp:Content ID="NotesContent" ContentPlaceHolderID="NotesContentPlaceHolder" runat="Server"> </asp:Content> - Modified: Website/Includes/AssignmentsTree.ascx =================================================================== --- Website/Includes/AssignmentsTree.ascx 2006-07-10 17:12:54 UTC (rev 90) +++ Website/Includes/AssignmentsTree.ascx 2006-07-10 19:09:08 UTC (rev 91) @@ -1 +1,133 @@ <%@ Control Language="C#" AutoEventWireup="true" %> +<%@ Import Namespace=System.Data.SqlClient %> +<%@ Import Namespace=System.Data %> + +<script runat=server > + + private SqlConnection _DBConnection = new SqlConnection("Data Source=DAD\\SQLSERVER2005;Initial Catalog=tcdb;Persist Security Info=True;User ID=tcdb;Password=tcdbpw"); + + protected void Page_Load(object sender, EventArgs e) + { + DBConnection.Open(); + + } + public SqlConnection DBConnection { + get { return _DBConnection; } + } + public void updateTree() + { + foreach (TreeNode node in TreeView1.Nodes) + { + node.ChildNodes.Clear(); + TreeView1_TreeNodePopulate(TreeView1, new TreeNodeEventArgs(node)); + } + TreeView1.ExpandAll(); + } + protected void TreeView1_TreeNodePopulate(object sender, TreeNodeEventArgs e) + { + TreeView tv = (TreeView)sender; + DataSet ResultsDataSet = new DataSet(); + SqlDataAdapter DBAdapter; + String query; + + // Call the appropriate method to populate a node at a particular level. + switch (e.Node.Depth) + { + case 0: + // Populate the first-level nodes. + DBAdapter = new SqlDataAdapter("SELECT userID,firstName,lastName FROM tcdb_user", DBConnection); + DBAdapter.Fill(ResultsDataSet); + + if (ResultsDataSet.Tables.Count > 0) + { + foreach (DataRow row in ResultsDataSet.Tables[0].Rows) + { + // Create the new node. + TreeNode newNode = new TreeNode(); + newNode.Text = row["firstName"] + " " + row["lastName"]; + newNode.Value = row["userID"].ToString(); + + // Set the PopulateOnDemand property to true so that the child nodes can be + // dynamically populated. + newNode.PopulateOnDemand = true; + + // Set additional properties for the node. + newNode.SelectAction = TreeNodeSelectAction.Expand; + newNode.NavigateUrl = "~/Assignments.aspx?id=" + row["userID"]; + + // Add the new node to the ChildNodes collection of the parent node. + e.Node.ChildNodes.Add(newNode); + } + } + break; + case 1: + // Populate the second-level nodes. + query = "SELECT ai.actionItemID, ai.name FROM tcdb_actionItem ai" + + "INNER JOIN tcdb_assignment a ON ai.actionItemID = a.actionItemID " + + "WHERE (NOT a.statusID=12) AND (a.assignedID = " + e.Node.Value + ") ORDER BY a.highPriority DESC"; + DBAdapter = new SqlDataAdapter(query, DBConnection); + DBAdapter.Fill(ResultsDataSet); + + if (ResultsDataSet.Tables.Count > 0) + { + foreach (DataRow row in ResultsDataSet.Tables[0].Rows) + { + // Create the new node. + TreeNode newNode = new TreeNode(); + newNode.Text = row["name"].ToString(); + newNode.Value = row["actionItemID"].ToString(); + + // Set the PopulateOnDemand property to true so that the child nodes can be + // dynamically populated. + newNode.PopulateOnDemand = true; + + // Set additional properties for the node. + newNode.SelectAction = TreeNodeSelectAction.Expand; + newNode.NavigateUrl = "~/ActionItemEdit.aspx?id=" + newNode.Value; + + // Add the new node to the ChildNodes collection of the parent node. + e.Node.ChildNodes.Add(newNode); + } + } + ResultsDataSet.Clear(); + query = "SELECT wo.WorkOrderID, wo.name FROM tcdb_workOrder wo" + + "INNER JOIN tcdb_assignment a ON wo.WorkOrderID = a.workOrderID " + + "WHERE (NOT a.statusID=16) AND (a.assignedID = " + e.Node.Value + ")"; + DBAdapter = new SqlDataAdapter(query, DBConnection); + DBAdapter.Fill(ResultsDataSet); + + if (ResultsDataSet.Tables.Count > 0) + { + foreach (DataRow row in ResultsDataSet.Tables[0].Rows) + { + // Create the new node. + TreeNode newNode = new TreeNode(); + newNode.Text = row["name"].ToString(); + newNode.Value = row["workOrderID"].ToString(); + + // Set the PopulateOnDemand property to true so that the child nodes can be + // dynamically populated. + newNode.PopulateOnDemand = true; + + // Set additional properties for the node. + newNode.SelectAction = TreeNodeSelectAction.Expand; + newNode.NavigateUrl = "~/WorkOrderEdit.aspx?id=" + newNode.Value; + + // Add the new node to the ChildNodes collection of the parent node. + e.Node.ChildNodes.Add(newNode); + } + } + break; + + } + } +</script> + +<asp:TreeView ID=TreeView1 runat="server" SelectedNodeStyle-CssClass="selectednode" + OnTreeNodePopulate=TreeView1_TreeNodePopulate> + <Nodes> + <asp:TreeNode Text="User Assignments" Value="Users" PopulateOnDemand="True" SelectAction=Expand + NavigateUrl="~/Assignments.aspx" /> + </Nodes> + <SelectedNodeStyle CssClass="selectednode" /> +</asp:TreeView> Modified: Website/Includes/Header.ascx =================================================================== --- Website/Includes/Header.ascx 2006-07-10 17:12:54 UTC (rev 90) +++ Website/Includes/Header.ascx 2006-07-10 19:09:08 UTC (rev 91) @@ -1,5 +1,5 @@ <%@ Control Language="C#" AutoEventWireup="true" %> -<%@ Register TagPrefix="TCDB" TagName="User" src="~/Includes/Header_User.ascx" %> +<%@ Register TagPrefix="TCDB" TagName="User" src="~/Includes/Header_User.ascx" %> <%@ Register TagPrefix="TCDB" TagName="CurrentInfo" src="~/Includes/Header_CurrentInfo.ascx" %> <%@ Register TagPrefix="TCDB" TagName="Menu" src="~/Includes/Header_Menu.ascx" %> <%@ Import Namespace="TCDB_Users" %> @@ -12,13 +12,13 @@ <% if (Request.IsAuthenticated) { %> <div id="MainMenu"> <div id="User"> - <TCDB:User runat="server" /> + <TCDB:User id=user runat="server" /> </div> <div id="CurrentInfo"> - <TCDB:CurrentInfo runat="server" /> + <TCDB:CurrentInfo id=currentInfo runat="server" /> </div> <div id="Menu"> - <TCDB:Menu runat="server" /> + <TCDB:Menu ID=menu runat="server" /> </div> </div> <% } %> Modified: Website/Includes/Header_Menu.ascx =================================================================== --- Website/Includes/Header_Menu.ascx 2006-07-10 17:12:54 UTC (rev 90) +++ Website/Includes/Header_Menu.ascx 2006-07-10 19:09:08 UTC (rev 91) @@ -1,2 +1,2 @@ <%@ Control Language="C#" AutoEventWireup="true" %> -Assignments | Execute | Management \ No newline at end of file +<a href="Assignments.aspx">Assignments</a> | Execute | Management \ No newline at end of file Modified: Website/TCDB.master =================================================================== --- Website/TCDB.master 2006-07-10 17:12:54 UTC (rev 90) +++ Website/TCDB.master 2006-07-10 19:09:08 UTC (rev 91) @@ -12,7 +12,7 @@ <div id="NonFooter"> <form id="Form1" runat="server"> <div id="HeaderContent"> - <TCDB:Header runat="server" /> + <TCDB:Header id=header runat="server" /> </div> <% if (Request.IsAuthenticated) { %> @@ -32,13 +32,13 @@ else {%> <div id="Login"> - <TCDB:Authenticate runat="server" /> + <TCDB:Authenticate id=authenticate runat="server" /> </div> <% } %> </form> </div> <div id="FooterContent"> - <TCDB:Footer runat="server" /> + <TCDB:Footer id=footer runat="server" /> </div> </body> </html> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ro...@us...> - 2006-07-10 17:13:11
|
Revision: 90 Author: rouquin Date: 2006-07-10 10:12:54 -0700 (Mon, 10 Jul 2006) ViewCVS: http://svn.sourceforge.net/tcdb/?rev=90&view=rev Log Message: ----------- Updated TestCaseEdit to update testCasePlatforms. Also updated workOrderEdit to use platforms (also filters test cases by platform/testPass) Modified Paths: -------------- WebPrototype/App_Code/DummyDataSet.xsd WebPrototype/App_Code/DummyDataSet.xss WebPrototype/App_Data/ASPNETDB.MDF WebPrototype/App_Data/Database.mdf WebPrototype/App_Data/Database_log.LDF WebPrototype/App_Data/aspnetdb_log.ldf WebPrototype/TestCaseEdit.aspx WebPrototype/TestCaseEdit.aspx.cs WebPrototype/WorkOrderEdit.aspx WebPrototype/WorkOrderEdit.aspx.cs Added Paths: ----------- WebPrototype/platformEdit.aspx WebPrototype/platformEdit.aspx.cs Modified: WebPrototype/App_Code/DummyDataSet.xsd =================================================================== --- WebPrototype/App_Code/DummyDataSet.xsd 2006-07-07 23:33:22 UTC (rev 89) +++ WebPrototype/App_Code/DummyDataSet.xsd 2006-07-10 17:12:54 UTC (rev 90) @@ -923,7 +923,7 @@ <CommandText>SELECT WorkOrder.workOrderID, WorkOrder.name, WorkOrder.testPassID, testPass.name AS testPassName, Assignments.assignmentID, u1.firstName + ' ' + u1.lastName AS createdBy, Assignments.creatorID, u2.firstName + ' ' + u2.lastName AS assignedTo, Assignments.assignedID, Assignments.dateAssigned, Assignments.dateFinished, Assignments.dateDue, Assignments.statusID, Assignments.highPriorityID, - os.friendlyName AS osName, platform.osID, architecture.name AS archName, platform.architectureID + os.friendlyName + ' (' + architecture.name + ')' AS platformName, WorkOrder.platformID FROM WorkOrder INNER JOIN Assignments ON WorkOrder.workOrderID = Assignments.workOrderID LEFT OUTER JOIN platform ON platform.platformID = WorkOrder.platformID LEFT OUTER JOIN @@ -943,12 +943,14 @@ <DbSource ConnectionRef="DummyDatabaseConnectionString (Web.config)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="True" GeneratorSourceName="InsertWorkOrder" Modifier="Public" Name="InsertWorkOrder" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetDataBy1" UserSourceName="InsertWorkOrder"> <InsertCommand> <DbCommand CommandType="Text" ModifiedByUser="True"> - <CommandText>INSERT INTO WorkOrder (Name,testpassID) VALUES (@name,@testPassID)</CommandText> + <CommandText>INSERT INTO WorkOrder (Name,testpassID,platformID) VALUES (@name,@testPassID,@platformID)</CommandText> <Parameters> <Parameter AllowDbNull="True" AutogeneratedName="name" ColumnName="name" DataSourceName="[C:\DOCUMENTS AND SETTINGS\MICHAELT\DESKTOP\TCDB\WEBPROTOTYPE\APP_DATA\DATABASE.MDF].dbo.WorkOrder" DataTypeServer="varchar(255)" DbType="AnsiString" Direction="Input" ParameterName="@name" Precision="0" ProviderType="VarChar" Scale="0" Size="255" SourceColumn="name" SourceColumnNullMapping="False" SourceVersion="Current"> </Parameter> <Parameter AllowDbNull="True" AutogeneratedName="testPassID" ColumnName="testPassID" DataSourceName="[C:\DOCUMENTS AND SETTINGS\MICHAELT\DESKTOP\TCDB\WEBPROTOTYPE\APP_DATA\DATABASE.MDF].dbo.WorkOrder" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@testPassID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="testPassID" SourceColumnNullMapping="False" SourceVersion="Current"> </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="platformID" ColumnName="platformID" DataSourceName="[C:\DOCUMENTS AND SETTINGS\MICHAELT\DESKTOP\TCDB\WEBPROTOTYPE\APP_DATA\DATABASE.MDF].dbo.WorkOrder" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@platformID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="platformID" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> </Parameters> </DbCommand> </InsertCommand> @@ -956,13 +958,15 @@ <DbSource ConnectionRef="DummyDatabaseConnectionString (Web.config)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="True" GeneratorGetMethodName="GetDataBy1" GeneratorSourceName="UpdateByID" Modifier="Public" Name="UpdateByID" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetDataBy2" UserSourceName="UpdateByID"> <UpdateCommand> <DbCommand CommandType="Text" ModifiedByUser="True"> - <CommandText>UPDATE WorkOrder SET name=@name, testPassID=@testPassID + <CommandText>UPDATE WorkOrder SET name=@name, testPassID=@testPassID, platformID=@platformID WHERE workOrderID=@original_workOrderID</CommandText> <Parameters> <Parameter AllowDbNull="True" AutogeneratedName="name" ColumnName="name" DataSourceName="[C:\DOCUMENTS AND SETTINGS\MICHAELT\DESKTOP\TCDB\WEBPROTOTYPE\APP_DATA\DATABASE.MDF].dbo.WorkOrder" DataTypeServer="varchar(255)" DbType="AnsiString" Direction="Input" ParameterName="@name" Precision="0" ProviderType="VarChar" Scale="0" Size="255" SourceColumn="name" SourceColumnNullMapping="False" SourceVersion="Current"> </Parameter> <Parameter AllowDbNull="True" AutogeneratedName="testPassID" ColumnName="testPassID" DataSourceName="[C:\DOCUMENTS AND SETTINGS\MICHAELT\DESKTOP\TCDB\WEBPROTOTYPE\APP_DATA\DATABASE.MDF].dbo.WorkOrder" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@testPassID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="testPassID" SourceColumnNullMapping="False" SourceVersion="Current"> </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="platformID" ColumnName="platformID" DataSourceName="[C:\DOCUMENTS AND SETTINGS\MICHAELT\DESKTOP\TCDB\WEBPROTOTYPE\APP_DATA\DATABASE.MDF].dbo.WorkOrder" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@platformID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="platformID" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> <Parameter AllowDbNull="False" AutogeneratedName="original_workOrderID" ColumnName="workOrderID" DataSourceName="[C:\DOCUMENTS AND SETTINGS\MICHAELT\DESKTOP\TCDB\WEBPROTOTYPE\APP_DATA\DATABASE.MDF].dbo.WorkOrder" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@original_workOrderID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="workOrderID" SourceColumnNullMapping="False" SourceVersion="Original"> </Parameter> </Parameters> @@ -1011,7 +1015,10 @@ <DbSource ConnectionRef="DummyDatabaseConnectionString (Web.config)" DbObjectName="dbo.platform" DbObjectType="Table" GenerateMethods="Get" GenerateShortCommands="False" GeneratorGetMethodName="GetAllPlatformData" GetMethodModifier="Public" GetMethodName="GetAllPlatformData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="False" UserGetMethodName="GetAllPlatformData" UserSourceName="GetAllPlatformData"> <SelectCommand> <DbCommand CommandType="Text" ModifiedByUser="True"> - <CommandText>SELECT * FROM platform</CommandText> + <CommandText>SELECT platform.platformID, platform.architectureID, platform.osID, os.friendlyName + ' (' + architecture.name + ')' AS platformName +FROM platform LEFT OUTER JOIN + os ON os.osID = platform.osID LEFT OUTER JOIN + architecture ON architecture.architectureID = platform.architectureID</CommandText> <Parameters> </Parameters> </DbCommand> @@ -1022,8 +1029,20 @@ <Mapping SourceColumn="platformID" DataSetColumn="platformID" /> <Mapping SourceColumn="architectureID" DataSetColumn="architectureID" /> <Mapping SourceColumn="osID" DataSetColumn="osID" /> + <Mapping SourceColumn="platformName" DataSetColumn="platformName" /> </Mappings> <Sources> + <DbSource ConnectionRef="DummyDatabaseConnectionString (Web.config)" DbObjectName="dbo.platform" DbObjectType="Table" GenerateMethods="Get" GenerateShortCommands="True" GeneratorGetMethodName="GetPlatformByTestCase" GeneratorSourceName="FillBy" GetMethodModifier="Public" GetMethodName="GetPlatformByTestCase" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetPlatformByTestCase" UserSourceName="FillBy"> + <SelectCommand> + <DbCommand CommandType="Text" ModifiedByUser="True"> + <CommandText>SELECT platform.architectureID, platform.osID, platform.platformID, os.friendlyName + ' (' + architecture.name + ')' AS platformName FROM platform INNER JOIN testCasePlatform AS ptc ON ptc.platformID = platform.platformID LEFT OUTER JOIN os ON os.osID = platform.osID LEFT OUTER JOIN architecture ON architecture.architectureID = platform.architectureID WHERE (ptc.testCaseID = @testCaseID)</CommandText> + <Parameters> + <Parameter AllowDbNull="False" AutogeneratedName="testCaseID" ColumnName="testCaseID" DataSourceName="[C:\DOCUMENTS AND SETTINGS\MICHAELT\DESKTOP\TCDB\WEBPROTOTYPE\APP_DATA\DATABASE.MDF].dbo.testCasePlatform" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@testCaseID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="testCaseID" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + </Parameters> + </DbCommand> + </SelectCommand> + </DbSource> <DbSource ConnectionRef="DummyDatabaseConnectionString (Web.config)" DbObjectType="Unknown" GenerateMethods="Get" GenerateShortCommands="True" GeneratorGetMethodName="GetPlatformNameDataByID" GeneratorSourceName="FillBy" GetMethodModifier="Public" GetMethodName="GetPlatformNameDataByID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetPlatformNameDataByID" UserSourceName="GetPlatformNameDataByID1"> <SelectCommand> <DbCommand CommandType="Text" ModifiedByUser="True"> @@ -1080,6 +1099,22 @@ <Mapping SourceColumn="name" DataSetColumn="name" /> </Mappings> <Sources> + <DbSource ConnectionRef="DummyDatabaseConnectionString (Web.config)" DbObjectName="dbo.architecture" DbObjectType="Table" FillMethodModifier="Public" FillMethodName="FillBy" GenerateMethods="Both" GenerateShortCommands="True" GeneratorGetMethodName="GetArchByTestCase" GeneratorSourceName="FillBy" GetMethodModifier="Public" GetMethodName="GetArchByTestCase" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetArchByTestCase" UserSourceName="FillBy"> + <SelectCommand> + <DbCommand CommandType="Text" ModifiedByUser="True"> + <CommandText>SELECT architecture.architectureID, architecture.name +FROM architecture INNER JOIN + platform ON architecture.architectureID = platform.architectureID INNER JOIN + testCasePlatform ON testCasePlatform.platformID = platform.platformID INNER JOIN + TestCase ON testCasePlatform.testCaseID = TestCase.testcaseID +WHERE (TestCase.testcaseID = @testcaseID)</CommandText> + <Parameters> + <Parameter AllowDbNull="False" AutogeneratedName="testcaseID" ColumnName="testcaseID" DataSourceName="[C:\DOCUMENTS AND SETTINGS\MICHAELT\DESKTOP\TCDB\WEBPROTOTYPE\APP_DATA\DATABASE.MDF].dbo.TestCase" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@testcaseID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="testcaseID" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + </Parameters> + </DbCommand> + </SelectCommand> + </DbSource> </Sources> </TableAdapter> <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="osTableAdapter" GeneratorDataComponentClassName="osTableAdapter" Name="os" UserDataComponentName="osTableAdapter"> @@ -1100,6 +1135,22 @@ <Mapping SourceColumn="codeName" DataSetColumn="codeName" /> </Mappings> <Sources> + <DbSource ConnectionRef="DummyDatabaseConnectionString (Web.config)" DbObjectName="dbo.os" DbObjectType="Table" GenerateMethods="Get" GenerateShortCommands="True" GeneratorGetMethodName="GetOSByTestCase" GetMethodModifier="Public" GetMethodName="GetOSByTestCase" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetOSByTestCase" UserSourceName="FillBy"> + <SelectCommand> + <DbCommand CommandType="Text" ModifiedByUser="True"> + <CommandText>SELECT os.osID, os.friendlyName, os.codeName +FROM os INNER JOIN + platform ON os.osID = platform.osID INNER JOIN + testCasePlatform ON testCasePlatform.platformID = platform.platformID INNER JOIN + TestCase ON testCasePlatform.testCaseID = TestCase.testcaseID +WHERE (TestCase.testcaseID = @testcaseID)</CommandText> + <Parameters> + <Parameter AllowDbNull="False" AutogeneratedName="testcaseID" ColumnName="testcaseID" DataSourceName="[C:\DOCUMENTS AND SETTINGS\MICHAELT\DESKTOP\TCDB\WEBPROTOTYPE\APP_DATA\DATABASE.MDF].dbo.TestCase" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@testcaseID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="testcaseID" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + </Parameters> + </DbCommand> + </SelectCommand> + </DbSource> </Sources> </TableAdapter> <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="FeatureTableAdapter" GeneratorDataComponentClassName="FeatureTableAdapter" Name="Feature" UserDataComponentName="FeatureTableAdapter"> @@ -1293,102 +1344,102 @@ <xs:element name="Objective" msprop:Generator_UserTableName="Objective" msprop:Generator_RowDeletedName="ObjectiveRowDeleted" msprop:Generator_RowChangedName="ObjectiveRowChanged" msprop:Generator_RowClassName="ObjectiveRow" msprop:Generator_RowChangingName="ObjectiveRowChanging" msprop:Generator_RowEvArgName="ObjectiveRowChangeEvent" msprop:Generator_RowEvHandlerName="ObjectiveRowChangeEventHandler" msprop:Generator_TableClassName="ObjectiveDataTable" msprop:Generator_TableVarName="tableObjective" msprop:Generator_RowDeletingName="ObjectiveRowDeleting" msprop:Generator_TablePropName="Objective"> <xs:complexType> <xs:sequence> - <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInTable="nameColumn" minOccurs="0"> + <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnPropNameInTable="nameColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="255" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> + <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="2147483647" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="objectiveID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="objectiveID" msprop:Generator_ColumnPropNameInRow="objectiveID" msprop:Generator_ColumnVarNameInTable="columnobjectiveID" msprop:Generator_ColumnPropNameInTable="objectiveIDColumn" type="xs:int" /> - <xs:element name="featureID" msprop:Generator_UserColumnName="featureID" msprop:Generator_ColumnPropNameInRow="featureID" msprop:Generator_ColumnVarNameInTable="columnfeatureID" msprop:Generator_ColumnPropNameInTable="featureIDColumn" type="xs:int" /> - <xs:element name="userID" msprop:Generator_UserColumnName="userID" msprop:Generator_ColumnPropNameInRow="userID" msprop:Generator_ColumnVarNameInTable="columnuserID" msprop:Generator_ColumnPropNameInTable="userIDColumn" type="xs:int" minOccurs="0" /> - <xs:element name="dateCreated" msprop:Generator_UserColumnName="dateCreated" msprop:Generator_ColumnPropNameInRow="dateCreated" msprop:Generator_ColumnVarNameInTable="columndateCreated" msprop:Generator_ColumnPropNameInTable="dateCreatedColumn" type="xs:dateTime" minOccurs="0" /> - <xs:element name="statusID" msprop:Generator_UserColumnName="statusID" msprop:Generator_ColumnPropNameInRow="statusID" msprop:Generator_ColumnVarNameInTable="columnstatusID" msprop:Generator_ColumnPropNameInTable="statusIDColumn" type="xs:int" default="0" minOccurs="0" /> + <xs:element name="objectiveID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="objectiveID" msprop:Generator_ColumnVarNameInTable="columnobjectiveID" msprop:Generator_ColumnPropNameInRow="objectiveID" msprop:Generator_ColumnPropNameInTable="objectiveIDColumn" type="xs:int" /> + <xs:element name="featureID" msprop:Generator_UserColumnName="featureID" msprop:Generator_ColumnVarNameInTable="columnfeatureID" msprop:Generator_ColumnPropNameInRow="featureID" msprop:Generator_ColumnPropNameInTable="featureIDColumn" type="xs:int" /> + <xs:element name="userID" msprop:Generator_UserColumnName="userID" msprop:Generator_ColumnVarNameInTable="columnuserID" msprop:Generator_ColumnPropNameInRow="userID" msprop:Generator_ColumnPropNameInTable="userIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="dateCreated" msprop:Generator_UserColumnName="dateCreated" msprop:Generator_ColumnVarNameInTable="columndateCreated" msprop:Generator_ColumnPropNameInRow="dateCreated" msprop:Generator_ColumnPropNameInTable="dateCreatedColumn" type="xs:dateTime" minOccurs="0" /> + <xs:element name="statusID" msprop:Generator_UserColumnName="statusID" msprop:Generator_ColumnVarNameInTable="columnstatusID" msprop:Generator_ColumnPropNameInRow="statusID" msprop:Generator_ColumnPropNameInTable="statusIDColumn" type="xs:int" default="0" minOccurs="0" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="TestCase" msprop:Generator_UserTableName="TestCase" msprop:Generator_RowDeletedName="TestCaseRowDeleted" msprop:Generator_RowChangedName="TestCaseRowChanged" msprop:Generator_RowClassName="TestCaseRow" msprop:Generator_RowChangingName="TestCaseRowChanging" msprop:Generator_RowEvArgName="TestCaseRowChangeEvent" msprop:Generator_RowEvHandlerName="TestCaseRowChangeEventHandler" msprop:Generator_TableClassName="TestCaseDataTable" msprop:Generator_TableVarName="tableTestCase" msprop:Generator_RowDeletingName="TestCaseRowDeleting" msprop:Generator_TablePropName="TestCase"> <xs:complexType> <xs:sequence> - <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInTable="nameColumn" minOccurs="0"> + <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnPropNameInTable="nameColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="255" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="steps" msprop:Generator_UserColumnName="steps" msprop:Generator_ColumnPropNameInRow="steps" msprop:Generator_ColumnVarNameInTable="columnsteps" msprop:Generator_ColumnPropNameInTable="stepsColumn" minOccurs="0"> + <xs:element name="steps" msprop:Generator_UserColumnName="steps" msprop:Generator_ColumnVarNameInTable="columnsteps" msprop:Generator_ColumnPropNameInRow="steps" msprop:Generator_ColumnPropNameInTable="stepsColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="2147483647" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="number" msprop:Generator_UserColumnName="number" msprop:Generator_ColumnPropNameInRow="number" msprop:Generator_ColumnVarNameInTable="columnnumber" msprop:Generator_ColumnPropNameInTable="numberColumn" type="xs:int" minOccurs="0" /> - <xs:element name="dateCreated" msprop:Generator_UserColumnName="dateCreated" msprop:Generator_ColumnPropNameInRow="dateCreated" msprop:Generator_ColumnVarNameInTable="columndateCreated" msprop:Generator_ColumnPropNameInTable="dateCreatedColumn" type="xs:dateTime" minOccurs="0" /> - <xs:element name="dateEdited" msprop:Generator_UserColumnName="dateEdited" msprop:Generator_ColumnPropNameInRow="dateEdited" msprop:Generator_ColumnVarNameInTable="columndateEdited" msprop:Generator_ColumnPropNameInTable="dateEditedColumn" type="xs:dateTime" minOccurs="0" /> - <xs:element name="objectiveID" msprop:Generator_UserColumnName="objectiveID" msprop:Generator_ColumnPropNameInRow="objectiveID" msprop:Generator_ColumnVarNameInTable="columnobjectiveID" msprop:Generator_ColumnPropNameInTable="objectiveIDColumn" type="xs:int" minOccurs="0" /> - <xs:element name="statusID" msprop:Generator_UserColumnName="statusID" msprop:Generator_ColumnPropNameInRow="statusID" msprop:Generator_ColumnVarNameInTable="columnstatusID" msprop:Generator_ColumnPropNameInTable="statusIDColumn" type="xs:int" minOccurs="0" /> - <xs:element name="testcaseID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="testcaseID" msprop:Generator_ColumnVarNameInTable="columntestcaseID" msprop:Generator_ColumnPropNameInRow="testcaseID" msprop:Generator_ColumnPropNameInTable="testcaseIDColumn" type="xs:int" /> - <xs:element name="creatorID" msprop:Generator_UserColumnName="creatorID" msprop:Generator_ColumnVarNameInTable="columncreatorID" msprop:Generator_ColumnPropNameInRow="creatorID" msprop:Generator_ColumnPropNameInTable="creatorIDColumn" type="xs:int" minOccurs="0" /> - <xs:element name="lastEditID" msprop:Generator_UserColumnName="lastEditID" msprop:Generator_ColumnVarNameInTable="columnlastEditID" msprop:Generator_ColumnPropNameInRow="lastEditID" msprop:Generator_ColumnPropNameInTable="lastEditIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="number" msprop:Generator_UserColumnName="number" msprop:Generator_ColumnVarNameInTable="columnnumber" msprop:Generator_ColumnPropNameInRow="number" msprop:Generator_ColumnPropNameInTable="numberColumn" type="xs:int" minOccurs="0" /> + <xs:element name="dateCreated" msprop:Generator_UserColumnName="dateCreated" msprop:Generator_ColumnVarNameInTable="columndateCreated" msprop:Generator_ColumnPropNameInRow="dateCreated" msprop:Generator_ColumnPropNameInTable="dateCreatedColumn" type="xs:dateTime" minOccurs="0" /> + <xs:element name="dateEdited" msprop:Generator_UserColumnName="dateEdited" msprop:Generator_ColumnVarNameInTable="columndateEdited" msprop:Generator_ColumnPropNameInRow="dateEdited" msprop:Generator_ColumnPropNameInTable="dateEditedColumn" type="xs:dateTime" minOccurs="0" /> + <xs:element name="objectiveID" msprop:Generator_UserColumnName="objectiveID" msprop:Generator_ColumnVarNameInTable="columnobjectiveID" msprop:Generator_ColumnPropNameInRow="objectiveID" msprop:Generator_ColumnPropNameInTable="objectiveIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="statusID" msprop:Generator_UserColumnName="statusID" msprop:Generator_ColumnVarNameInTable="columnstatusID" msprop:Generator_ColumnPropNameInRow="statusID" msprop:Generator_ColumnPropNameInTable="statusIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="testcaseID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="testcaseID" msprop:Generator_ColumnPropNameInRow="testcaseID" msprop:Generator_ColumnVarNameInTable="columntestcaseID" msprop:Generator_ColumnPropNameInTable="testcaseIDColumn" type="xs:int" /> + <xs:element name="creatorID" msprop:Generator_UserColumnName="creatorID" msprop:Generator_ColumnPropNameInRow="creatorID" msprop:Generator_ColumnVarNameInTable="columncreatorID" msprop:Generator_ColumnPropNameInTable="creatorIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="lastEditID" msprop:Generator_UserColumnName="lastEditID" msprop:Generator_ColumnPropNameInRow="lastEditID" msprop:Generator_ColumnVarNameInTable="columnlastEditID" msprop:Generator_ColumnPropNameInTable="lastEditIDColumn" type="xs:int" minOccurs="0" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Tags" msprop:Generator_UserTableName="Tags" msprop:Generator_RowDeletedName="TagsRowDeleted" msprop:Generator_RowChangedName="TagsRowChanged" msprop:Generator_RowClassName="TagsRow" msprop:Generator_RowChangingName="TagsRowChanging" msprop:Generator_RowEvArgName="TagsRowChangeEvent" msprop:Generator_RowEvHandlerName="TagsRowChangeEventHandler" msprop:Generator_TableClassName="TagsDataTable" msprop:Generator_TableVarName="tableTags" msprop:Generator_RowDeletingName="TagsRowDeleting" msprop:Generator_TablePropName="Tags"> <xs:complexType> <xs:sequence> - <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInTable="nameColumn"> + <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnPropNameInTable="nameColumn"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> + <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="255" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="tagID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="tagID" msprop:Generator_ColumnVarNameInTable="columntagID" msprop:Generator_ColumnPropNameInRow="tagID" msprop:Generator_ColumnPropNameInTable="tagIDColumn" type="xs:int" /> - <xs:element name="productID" msprop:Generator_UserColumnName="productID" msprop:Generator_ColumnVarNameInTable="columnproductID" msprop:Generator_ColumnPropNameInRow="productID" msprop:Generator_ColumnPropNameInTable="productIDColumn" type="xs:int" /> + <xs:element name="tagID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="tagID" msprop:Generator_ColumnPropNameInRow="tagID" msprop:Generator_ColumnVarNameInTable="columntagID" msprop:Generator_ColumnPropNameInTable="tagIDColumn" type="xs:int" /> + <xs:element name="productID" msprop:Generator_UserColumnName="productID" msprop:Generator_ColumnPropNameInRow="productID" msprop:Generator_ColumnVarNameInTable="columnproductID" msprop:Generator_ColumnPropNameInTable="productIDColumn" type="xs:int" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="product" msprop:Generator_UserTableName="product" msprop:Generator_RowDeletedName="productRowDeleted" msprop:Generator_RowChangedName="productRowChanged" msprop:Generator_RowClassName="productRow" msprop:Generator_RowChangingName="productRowChanging" msprop:Generator_RowEvArgName="productRowChangeEvent" msprop:Generator_RowEvHandlerName="productRowChangeEventHandler" msprop:Generator_TableClassName="productDataTable" msprop:Generator_TableVarName="tableproduct" msprop:Generator_RowDeletingName="productRowDeleting" msprop:Generator_TablePropName="product"> <xs:complexType> <xs:sequence> - <xs:element name="productID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="productID" msprop:Generator_ColumnPropNameInRow="productID" msprop:Generator_ColumnVarNameInTable="columnproductID" msprop:Generator_ColumnPropNameInTable="productIDColumn" type="xs:int" /> - <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInTable="nameColumn" minOccurs="0"> + <xs:element name="productID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="productID" msprop:Generator_ColumnVarNameInTable="columnproductID" msprop:Generator_ColumnPropNameInRow="productID" msprop:Generator_ColumnPropNameInTable="productIDColumn" type="xs:int" /> + <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnPropNameInTable="nameColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="255" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> + <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="2147483647" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="devManager" msprop:Generator_UserColumnName="devManager" msprop:Generator_ColumnPropNameInRow="devManager" msprop:Generator_ColumnVarNameInTable="columndevManager" msprop:Generator_ColumnPropNameInTable="devManagerColumn" type="xs:int" minOccurs="0" /> - <xs:element name="qaManager" msprop:Generator_UserColumnName="qaManager" msprop:Generator_ColumnPropNameInRow="qaManager" msprop:Generator_ColumnVarNameInTable="columnqaManager" msprop:Generator_ColumnPropNameInTable="qaManagerColumn" type="xs:int" minOccurs="0" /> - <xs:element name="devLead" msprop:Generator_UserColumnName="devLead" msprop:Generator_ColumnPropNameInRow="devLead" msprop:Generator_ColumnVarNameInTable="columndevLead" msprop:Generator_ColumnPropNameInTable="devLeadColumn" type="xs:int" minOccurs="0" /> - <xs:element name="qaLead" msprop:Generator_UserColumnName="qaLead" msprop:Generator_ColumnPropNameInRow="qaLead" msprop:Generator_ColumnVarNameInTable="columnqaLead" msprop:Generator_ColumnPropNameInTable="qaLeadColumn" type="xs:int" minOccurs="0" /> - <xs:element name="pm" msprop:Generator_UserColumnName="pm" msprop:Generator_ColumnPropNameInRow="pm" msprop:Generator_ColumnVarNameInTable="columnpm" msprop:Generator_ColumnPropNameInTable="pmColumn" type="xs:int" minOccurs="0" /> - <xs:element name="codeName" msprop:Generator_UserColumnName="codeName" msprop:Generator_ColumnPropNameInRow="codeName" msprop:Generator_ColumnVarNameInTable="columncodeName" msprop:Generator_ColumnPropNameInTable="codeNameColumn" minOccurs="0"> + <xs:element name="devManager" msprop:Generator_UserColumnName="devManager" msprop:Generator_ColumnVarNameInTable="columndevManager" msprop:Generator_ColumnPropNameInRow="devManager" msprop:Generator_ColumnPropNameInTable="devManagerColumn" type="xs:int" minOccurs="0" /> + <xs:element name="qaManager" msprop:Generator_UserColumnName="qaManager" msprop:Generator_ColumnVarNameInTable="columnqaManager" msprop:Generator_ColumnPropNameInRow="qaManager" msprop:Generator_ColumnPropNameInTable="qaManagerColumn" type="xs:int" minOccurs="0" /> + <xs:element name="devLead" msprop:Generator_UserColumnName="devLead" msprop:Generator_ColumnVarNameInTable="columndevLead" msprop:Generator_ColumnPropNameInRow="devLead" msprop:Generator_ColumnPropNameInTable="devLeadColumn" type="xs:int" minOccurs="0" /> + <xs:element name="qaLead" msprop:Generator_UserColumnName="qaLead" msprop:Generator_ColumnVarNameInTable="columnqaLead" msprop:Generator_ColumnPropNameInRow="qaLead" msprop:Generator_ColumnPropNameInTable="qaLeadColumn" type="xs:int" minOccurs="0" /> + <xs:element name="pm" msprop:Generator_UserColumnName="pm" msprop:Generator_ColumnVarNameInTable="columnpm" msprop:Generator_ColumnPropNameInRow="pm" msprop:Generator_ColumnPropNameInTable="pmColumn" type="xs:int" minOccurs="0" /> + <xs:element name="codeName" msprop:Generator_UserColumnName="codeName" msprop:Generator_ColumnVarNameInTable="columncodeName" msprop:Generator_ColumnPropNameInRow="codeName" msprop:Generator_ColumnPropNameInTable="codeNameColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="10" /> @@ -1401,51 +1452,51 @@ <xs:element name="Users" msprop:Generator_UserTableName="Users" msprop:Generator_RowDeletedName="UsersRowDeleted" msprop:Generator_RowChangedName="UsersRowChanged" msprop:Generator_RowClassName="UsersRow" msprop:Generator_RowChangingName="UsersRowChanging" msprop:Generator_RowEvArgName="UsersRowChangeEvent" msprop:Generator_RowEvHandlerName="UsersRowChangeEventHandler" msprop:Generator_TableClassName="UsersDataTable" msprop:Generator_TableVarName="tableUsers" msprop:Generator_RowDeletingName="UsersRowDeleting" msprop:Generator_TablePropName="Users"> <xs:complexType> <xs:sequence> - <xs:element name="email" msprop:Generator_UserColumnName="email" msprop:Generator_ColumnVarNameInTable="columnemail" msprop:Generator_ColumnPropNameInRow="email" msprop:Generator_ColumnPropNameInTable="emailColumn" minOccurs="0"> + <xs:element name="email" msprop:Generator_UserColumnName="email" msprop:Generator_ColumnPropNameInRow="email" msprop:Generator_ColumnVarNameInTable="columnemail" msprop:Generator_ColumnPropNameInTable="emailColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="officePhone" msprop:Generator_UserColumnName="officePhone" msprop:Generator_ColumnVarNameInTable="columnofficePhone" msprop:Generator_ColumnPropNameInRow="officePhone" msprop:Generator_ColumnPropNameInTable="officePhoneColumn" minOccurs="0"> + <xs:element name="officePhone" msprop:Generator_UserColumnName="officePhone" msprop:Generator_ColumnPropNameInRow="officePhone" msprop:Generator_ColumnVarNameInTable="columnofficePhone" msprop:Generator_ColumnPropNameInTable="officePhoneColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="15" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="homePhone" msprop:Generator_UserColumnName="homePhone" msprop:Generator_ColumnVarNameInTable="columnhomePhone" msprop:Generator_ColumnPropNameInRow="homePhone" msprop:Generator_ColumnPropNameInTable="homePhoneColumn" minOccurs="0"> + <xs:element name="homePhone" msprop:Generator_UserColumnName="homePhone" msprop:Generator_ColumnPropNameInRow="homePhone" msprop:Generator_ColumnVarNameInTable="columnhomePhone" msprop:Generator_ColumnPropNameInTable="homePhoneColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="15" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="cellPhone" msprop:Generator_UserColumnName="cellPhone" msprop:Generator_ColumnVarNameInTable="columncellPhone" msprop:Generator_ColumnPropNameInRow="cellPhone" msprop:Generator_ColumnPropNameInTable="cellPhoneColumn" minOccurs="0"> + <xs:element name="cellPhone" msprop:Generator_UserColumnName="cellPhone" msprop:Generator_ColumnPropNameInRow="cellPhone" msprop:Generator_ColumnVarNameInTable="columncellPhone" msprop:Generator_ColumnPropNameInTable="cellPhoneColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="15" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="firstName" msprop:Generator_UserColumnName="firstName" msprop:Generator_ColumnVarNameInTable="columnfirstName" msprop:Generator_ColumnPropNameInRow="firstName" msprop:Generator_ColumnPropNameInTable="firstNameColumn" minOccurs="0"> + <xs:element name="firstName" msprop:Generator_UserColumnName="firstName" msprop:Generator_ColumnPropNameInRow="firstName" msprop:Generator_ColumnVarNameInTable="columnfirstName" msprop:Generator_ColumnPropNameInTable="firstNameColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="lastName" msprop:Generator_UserColumnName="lastName" msprop:Generator_ColumnVarNameInTable="columnlastName" msprop:Generator_ColumnPropNameInRow="lastName" msprop:Generator_ColumnPropNameInTable="lastNameColumn" minOccurs="0"> + <xs:element name="lastName" msprop:Generator_UserColumnName="lastName" msprop:Generator_ColumnPropNameInRow="lastName" msprop:Generator_ColumnVarNameInTable="columnlastName" msprop:Generator_ColumnPropNameInTable="lastNameColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="automation" msprop:Generator_UserColumnName="automation" msprop:Generator_ColumnVarNameInTable="columnautomation" msprop:Generator_ColumnPropNameInRow="automation" msprop:Generator_ColumnPropNameInTable="automationColumn" type="xs:boolean" minOccurs="0" /> - <xs:element name="userID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="userID" msprop:Generator_ColumnPropNameInRow="userID" msprop:Generator_ColumnVarNameInTable="columnuserID" msprop:Generator_ColumnPropNameInTable="userIDColumn" type="xs:int" /> - <xs:element name="username" msprop:Generator_UserColumnName="username" msprop:Generator_ColumnPropNameInRow="username" msprop:Generator_ColumnVarNameInTable="columnusername" msprop:Generator_ColumnPropNameInTable="usernameColumn" minOccurs="0"> + <xs:element name="automation" msprop:Generator_UserColumnName="automation" msprop:Generator_ColumnPropNameInRow="automation" msprop:Generator_ColumnVarNameInTable="columnautomation" msprop:Generator_ColumnPropNameInTable="automationColumn" type="xs:boolean" minOccurs="0" /> + <xs:element name="userID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="userID" msprop:Generator_ColumnVarNameInTable="columnuserID" msprop:Generator_ColumnPropNameInRow="userID" msprop:Generator_ColumnPropNameInTable="userIDColumn" type="xs:int" /> + <xs:element name="username" msprop:Generator_UserColumnName="username" msprop:Generator_ColumnVarNameInTable="columnusername" msprop:Generator_ColumnPropNameInRow="username" msprop:Generator_ColumnPropNameInTable="usernameColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> @@ -1458,22 +1509,22 @@ <xs:element name="Status" msprop:Generator_UserTableName="Status" msprop:Generator_RowDeletedName="StatusRowDeleted" msprop:Generator_RowChangedName="StatusRowChanged" msprop:Generator_RowClassName="StatusRow" msprop:Generator_RowChangingName="StatusRowChanging" msprop:Generator_RowEvArgName="StatusRowChangeEvent" msprop:Generator_RowEvHandlerName="StatusRowChangeEventHandler" msprop:Generator_TableClassName="StatusDataTable" msprop:Generator_TableVarName="tableStatus" msprop:Generator_RowDeletingName="StatusRowDeleting" msprop:Generator_TablePropName="Status"> <xs:complexType> <xs:sequence> - <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> + <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="255" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="statusID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="statusID" msprop:Generator_ColumnPropNameInRow="statusID" msprop:Generator_ColumnVarNameInTable="columnstatusID" msprop:Generator_ColumnPropNameInTable="statusIDColumn" type="xs:int" /> - <xs:element name="statusGroup" msprop:Generator_UserColumnName="statusGroup" msprop:Generator_ColumnPropNameInRow="statusGroup" msprop:Generator_ColumnVarNameInTable="columnstatusGroup" msprop:Generator_ColumnPropNameInTable="statusGroupColumn"> + <xs:element name="statusID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="statusID" msprop:Generator_ColumnVarNameInTable="columnstatusID" msprop:Generator_ColumnPropNameInRow="statusID" msprop:Generator_ColumnPropNameInTable="statusIDColumn" type="xs:int" /> + <xs:element name="statusGroup" msprop:Generator_UserColumnName="statusGroup" msprop:Generator_ColumnVarNameInTable="columnstatusGroup" msprop:Generator_ColumnPropNameInRow="statusGroup" msprop:Generator_ColumnPropNameInTable="statusGroupColumn"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="statusName" msprop:Generator_UserColumnName="statusName" msprop:Generator_ColumnPropNameInRow="statusName" msprop:Generator_ColumnVarNameInTable="columnstatusName" msprop:Generator_ColumnPropNameInTable="statusNameColumn"> + <xs:element name="statusName" msprop:Generator_UserColumnName="statusName" msprop:Generator_ColumnVarNameInTable="columnstatusName" msprop:Generator_ColumnPropNameInRow="statusName" msprop:Generator_ColumnPropNameInTable="statusNameColumn"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> @@ -1486,133 +1537,140 @@ <xs:element name="testCaseTags" msprop:Generator_UserTableName="testCaseTags" msprop:Generator_RowDeletedName="testCaseTagsRowDeleted" msprop:Generator_RowChangedName="testCaseTagsRowChanged" msprop:Generator_RowClassName="testCaseTagsRow" msprop:Generator_RowChangingName="testCaseTagsRowChanging" msprop:Generator_RowEvArgName="testCaseTagsRowChangeEvent" msprop:Generator_RowEvHandlerName="testCaseTagsRowChangeEventHandler" msprop:Generator_TableClassName="testCaseTagsDataTable" msprop:Generator_TableVarName="tabletestCaseTags" msprop:Generator_RowDeletingName="testCaseTagsRowDeleting" msprop:Generator_TablePropName="testCaseTags"> <xs:complexType> <xs:sequence> - <xs:element name="testCaseTagsID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="testCaseTagsID" msprop:Generator_ColumnVarNameInTable="columntestCaseTagsID" msprop:Generator_ColumnPropNameInRow="testCaseTagsID" msprop:Generator_ColumnPropNameInTable="testCaseTagsIDColumn" type="xs:int" /> - <xs:element name="testCaseID" msprop:Generator_UserColumnName="testCaseID" msprop:Generator_ColumnVarNameInTable="columntestCaseID" msprop:Generator_ColumnPropNameInRow="testCaseID" msprop:Generator_ColumnPropNameInTable="testCaseIDColumn" type="xs:int" /> - <xs:element name="tagID" msprop:Generator_UserColumnName="tagID" msprop:Generator_ColumnVarNameInTable="columntagID" msprop:Generator_ColumnPropNameInRow="tagID" msprop:Generator_ColumnPropNameInTable="tagIDColumn" type="xs:int" /> + <xs:element name="testCaseTagsID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="testCaseTagsID" msprop:Generator_ColumnPropNameInRow="testCaseTagsID" msprop:Generator_ColumnVarNameInTable="columntestCaseTagsID" msprop:Generator_ColumnPropNameInTable="testCaseTagsIDColumn" type="xs:int" /> + <xs:element name="testCaseID" msprop:Generator_UserColumnName="testCaseID" msprop:Generator_ColumnPropNameInRow="testCaseID" msprop:Generator_ColumnVarNameInTable="columntestCaseID" msprop:Generator_ColumnPropNameInTable="testCaseIDColumn" type="xs:int" /> + <xs:element name="tagID" msprop:Generator_UserColumnName="tagID" msprop:Generator_ColumnPropNameInRow="tagID" msprop:Generator_ColumnVarNameInTable="columntagID" msprop:Generator_ColumnPropNameInTable="tagIDColumn" type="xs:int" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="version" msprop:Generator_UserTableName="version" msprop:Generator_RowDeletedName="versionRowDeleted" msprop:Generator_RowChangedName="versionRowChanged" msprop:Generator_RowClassName="versionRow" msprop:Generator_RowChangingName="versionRowChanging" msprop:Generator_RowEvArgName="versionRowChangeEvent" msprop:Generator_RowEvHandlerName="versionRowChangeEventHandler" msprop:Generator_TableClassName="versionDataTable" msprop:Generator_TableVarName="tableversion" msprop:Generator_RowDeletingName="versionRowDeleting" msprop:Generator_TablePropName="version"> <xs:complexType> <xs:sequence> - <xs:element name="versionID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="versionID" msprop:Generator_ColumnVarNameInTable="columnversionID" msprop:Generator_ColumnPropNameInRow="versionID" msprop:Generator_ColumnPropNameInTable="versionIDColumn" type="xs:int" /> - <xs:element name="productID" msprop:Generator_UserColumnName="productID" msprop:Generator_ColumnVarNameInTable="columnproductID" msprop:Generator_ColumnPropNameInRow="productID" msprop:Generator_ColumnPropNameInTable="productIDColumn" type="xs:int" /> - <xs:element name="number" msprop:Generator_UserColumnName="number" msprop:Generator_ColumnVarNameInTable="columnnumber" msprop:Generator_ColumnPropNameInRow="number" msprop:Generator_ColumnPropNameInTable="numberColumn"> + <xs:element name="versionID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="versionID" msprop:Generator_ColumnPropNameInRow="versionID" msprop:Generator_ColumnVarNameInTable="columnversionID" msprop:Generator_ColumnPropNameInTable="versionIDColumn" type="xs:int" /> + <xs:element name="productID" msprop:Generator_UserColumnName="productID" msprop:Generator_ColumnPropNameInRow="productID" msprop:Generator_ColumnVarNameInTable="columnproductID" msprop:Generator_ColumnPropNameInTable="productIDColumn" type="xs:int" /> + <xs:element name="number" msprop:Generator_UserColumnName="number" msprop:Generator_ColumnPropNameInRow="number" msprop:Generator_ColumnVarNameInTable="columnnumber" msprop:Generator_ColumnPropNameInTable="numberColumn"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="dateCreated" msprop:Generator_UserColumnName="dateCreated" msprop:Generator_ColumnVarNameInTable="columndateCreated" msprop:Generator_ColumnPropNameInRow="dateCreated" msprop:Generator_ColumnPropNameInTable="dateCreatedColumn" type="xs:dateTime" /> - <xs:element name="active" msprop:Generator_UserColumnName="active" msprop:Generator_ColumnVarNameInTable="columnactive" msprop:Generator_ColumnPropNameInRow="active" msprop:Generator_ColumnPropNameInTable="activeColumn" type="xs:boolean" /> + <xs:element name="dateCreated" msprop:Generator_UserColumnName="dateCreated" msprop:Generator_ColumnPropNameInRow="dateCreated" msprop:Generator_ColumnVarNameInTable="columndateCreated" msprop:Generator_ColumnPropNameInTable="dateCreatedColumn" type="xs:dateTime" /> + <xs:element name="active" msprop:Generator_UserColumnName="active" msprop:Generator_ColumnPropNameInRow="active" msprop:Generator_ColumnVarNameInTable="columnactive" msprop:Generator_ColumnPropNameInTable="activeColumn" type="xs:boolean" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="versionTestCase" msprop:Generator_UserTableName="versionTestCase" msprop:Generator_RowDeletedName="versionTestCaseRowDeleted" msprop:Generator_RowChangedName="versionTestCaseRowChanged" msprop:Generator_RowClassName="versionTestCaseRow" msprop:Generator_RowChangingName="versionTestCaseRowChanging" msprop:Generator_RowEvArgName="versionTestCaseRowChangeEvent" msprop:Generator_RowEvHandlerName="versionTestCaseRowChangeEventHandler" msprop:Generator_TableClassName="versionTestCaseDataTable" msprop:Generator_TableVarName="tableversionTestCase" msprop:Generator_RowDeletingName="versionTestCaseRowDeleting" msprop:Generator_TablePropName="versionTestCase"> <xs:complexType> <xs:sequence> - <xs:element name="versionTestCaseID" msprop:Generator_UserColumnName="versionTestCaseID" msprop:Generator_ColumnVarNameInTable="columnversionTestCaseID" msprop:Generator_ColumnPropNameInRow="versionTestCaseID" msprop:Generator_ColumnPropNameInTable="versionTestCaseIDColumn" type="xs:int" /> - <xs:element name="testCaseID" msprop:Generator_UserColumnName="testCaseID" msprop:Generator_ColumnVarNameInTable="columntestCaseID" msprop:Generator_ColumnPropNameInRow="testCaseID" msprop:Generator_ColumnPropNameInTable="testCaseIDColumn" type="xs:int" minOccurs="0" /> - <xs:element name="versionID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="versionID" msprop:Generator_ColumnVarNameInTable="columnversionID" msprop:Generator_ColumnPropNameInRow="versionID" msprop:Generator_ColumnPropNameInTable="versionIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="versionTestCaseID" msprop:Generator_UserColumnName="versionTestCaseID" msprop:Generator_ColumnPropNameInRow="versionTestCaseID" msprop:Generator_ColumnVarNameInTable="columnversionTestCaseID" msprop:Generator_ColumnPropNameInTable="versionTestCaseIDColumn" type="xs:int" /> + <xs:element name="testCaseID" msprop:Generator_UserColumnName="testCaseID" msprop:Generator_ColumnPropNameInRow="testCaseID" msprop:Generator_ColumnVarNameInTable="columntestCaseID" msprop:Generator_ColumnPropNameInTable="testCaseIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="versionID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="versionID" msprop:Generator_ColumnPropNameInRow="versionID" msprop:Generator_ColumnVarNameInTable="columnversionID" msprop:Generator_ColumnPropNameInTable="versionIDColumn" type="xs:int" minOccurs="0" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="featureVersion" msprop:Generator_UserTableName="featureVersion" msprop:Generator_RowDeletedName="featureVersionRowDeleted" msprop:Generator_RowChangedName="featureVersionRowChanged" msprop:Generator_RowClassName="featureVersionRow" msprop:Generator_RowChangingName="featureVersionRowChanging" msprop:Generator_RowEvArgName="featureVersionRowChangeEvent" msprop:Generator_RowEvHandlerName="featureVersionRowChangeEventHandler" msprop:Generator_TableClassName="featureVersionDataTable" msprop:Generator_TableVarName="tablefeatureVersion" msprop:Generator_RowDeletingName="featureVersionRowDeleting" msprop:Generator_TablePropName="featureVersion"> <xs:complexType> <xs:sequence> - <xs:element name="featureVersionID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="featureVersionID" msprop:Generator_ColumnVarNameInTable="columnfeatureVersionID" msprop:Generator_ColumnPropNameInRow="featureVersionID" msprop:Generator_ColumnPropNameInTable="featureVersionIDColumn" type="xs:int" /> - <xs:element name="featureID" msprop:Generator_UserColumnName="featureID" msprop:Generator_ColumnVarNameInTable="columnfeatureID" msprop:Generator_ColumnPropNameInRow="featureID" msprop:Generator_ColumnPropNameInTable="featureIDColumn" type="xs:int" minOccurs="0" /> - <xs:element name="versionID" msprop:Generator_UserColumnName="versionID" msprop:Generator_ColumnVarNameInTable="columnversionID" msprop:Generator_ColumnPropNameInRow="versionID" msprop:Generator_ColumnPropNameInTable="versionIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="featureVersionID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="featureVersionID" msprop:Generator_ColumnPropNameInRow="featureVersionID" msprop:Generator_ColumnVarNameInTable="columnfeatureVersionID" msprop:Generator_ColumnPropNameInTable="featureVersionIDColumn" type="xs:int" /> + <xs:element name="featureID" msprop:Generator_UserColumnName="featureID" msprop:Generator_ColumnPropNameInRow="featureID" msprop:Generator_ColumnVarNameInTable="columnfeatureID" msprop:Generator_ColumnPropNameInTable="featureIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="versionID" msprop:Generator_UserColumnName="versionID" msprop:Generator_ColumnPropNameInRow="versionID" msprop:Generator_ColumnVarNameInTable="columnversionID" msprop:Generator_ColumnPropNameInTable="versionIDColumn" type="xs:int" minOccurs="0" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Assignments" msprop:Generator_UserTableName="Assignments" msprop:Generator_RowDeletedName="AssignmentsRowDeleted" msprop:Generator_RowChangedName="AssignmentsRowChanged" msprop:Generator_RowClassName="AssignmentsRow" msprop:Generator_RowChangingName="AssignmentsRowChanging" msprop:Generator_RowEvArgName="AssignmentsRowChangeEvent" msprop:Generator_RowEvHandlerName="AssignmentsRowChangeEventHandler" msprop:Generator_TableClassName="AssignmentsDataTable" msprop:Generator_TableVarName="tableAssignments" msprop:Generator_RowDeletingName="AssignmentsRowDeleting" msprop:Generator_TablePropName="Assignments"> <xs:complexType> <xs:sequence> - <xs:element name="assignmentID" msdata:ReadOnly="true" msprop:Generator_UserColumnName="assignmentID" msprop:Generator_ColumnPropNameInRow="assignmentID" msprop:Generator_ColumnVarNameInTable="columnassignmentID" msprop:Generator_ColumnPropNameInTable="assignmentIDColumn" type="xs:int" /> - <xs:element name="dateAssigned" msdata:ReadOnly="true" msprop:Generator_UserColumnName="dateAssigned" msprop:Generator_ColumnPropNameInRow="dateAssigned" msprop:Generator_ColumnVarNameInTable="columndateAssigned" msprop:Generator_ColumnPropNameInTable="dateAssignedColumn" type="xs:dateTime" minOccurs="0" /> - <xs:element name="dateFinished" msdata:ReadOnly="true" msprop:Generator_UserColumnName="dateFinished" msprop:Generator_ColumnPropNameInRow="dateFinished" msprop:Generator_C... [truncated message content] |
From: <m_h...@us...> - 2006-07-07 23:33:32
|
Revision: 89 Author: m_hildebrand Date: 2006-07-07 16:33:22 -0700 (Fri, 07 Jul 2006) ViewCVS: http://svn.sourceforge.net/tcdb/?rev=89&view=rev Log Message: ----------- Got hooked up to AD and the DB Modified Paths: -------------- Website/App_Code/AD_Authentication.cs Website/App_Code/TCDB_Constants.cs Website/App_Code/TCDB_Users.cs Website/App_Themes/Python/python.css Website/Includes/Header.ascx Website/Includes/Header_User.ascx Website/TCDB.master Added Paths: ----------- Website/App_Code/TCDB_Products.cs Website/App_Code/dadDataSet.xsd Website/App_Code/dadDataSet.xss Website/Includes/Authenticate.ascx Modified: Website/App_Code/AD_Authentication.cs =================================================================== --- Website/App_Code/AD_Authentication.cs 2006-07-07 22:50:32 UTC (rev 88) +++ Website/App_Code/AD_Authentication.cs 2006-07-07 23:33:22 UTC (rev 89) @@ -17,10 +17,15 @@ /// </summary> public static class AD_Authentication { - public static bool AD_Authenticate(string strDomain, string strUserName, string strPassword) + public static bool AD_Authenticate(string strUserName, string strPassword) { bool result = false; - DirectoryEntry de = new DirectoryEntry("LDAP://" + strDomain, strUserName, strPassword); + string[] UserName = strUserName.Split("\\".ToCharArray()); + + // If we don't have a domain and a username, we need to fail + if (UserName.Length < 2) + return false; + DirectoryEntry de = new DirectoryEntry("LDAP://" + UserName[0], UserName[1], strPassword); DirectorySearcher ds = new DirectorySearcher(de); ds.SearchScope = SearchScope.OneLevel; try @@ -36,19 +41,32 @@ return result; } - public static TCDB_User AD_GetUserInfo(string strDomain, string strUserName, string strPassword) + public static string AD_CleanUserName(string strUserName) { - DirectoryEntry de = new DirectoryEntry("LDAP://" + strDomain, strUserName, strPassword); + string[] UserName = strUserName.Split("\\".ToCharArray()); + if (UserName.Length < 2) + return strUserName; + return UserName[1]; + } + + public static TCDB_User AD_GetUserInfo(string strUserName, string strPassword) + { + string[] UserName = strUserName.Split("\\".ToCharArray()); + TCDB_User user = new TCDB_User(); + + // If we don't have a domain and a username, we need to fail + if (UserName.Length < 2) + return user; + + DirectoryEntry de = new DirectoryEntry("LDAP://" + UserName[0], UserName[1], strPassword); DirectorySearcher ds = new DirectorySearcher(de); ds.SearchScope = SearchScope.Subtree; - ds.Filter = "(&(objectClass=user)(sAMAccountName=" + strUserName + "))"; - TCDB_User user = new TCDB_User(); + ds.Filter = "(&(objectClass=user)(sAMAccountName=" + UserName[1] + "))"; user.USERID = TCDB_Constants.TCDB_Constant.USER_NEWUSER; user.AUTOMATION = false; user.ISAUTHENTICATED = true; - user.USERNAME = strUserName; - string myText = ""; + user.USERNAME = UserName[1]; try { SearchResult sr = ds.FindOne(); @@ -61,6 +79,7 @@ user.EMAIL = rpc["mail"][0].ToString(); user.HOMEPHONE = rpc["homePhone"][0].ToString(); user.OFFICEPHONE = rpc["telephoneNumber"][0].ToString(); + user.CELLPHONE = rpc["mobile"][0].ToString(); } } catch Modified: Website/App_Code/TCDB_Constants.cs =================================================================== --- Website/App_Code/TCDB_Constants.cs 2006-07-07 22:50:32 UTC (rev 88) +++ Website/App_Code/TCDB_Constants.cs 2006-07-07 23:33:22 UTC (rev 89) @@ -15,8 +15,15 @@ /// </summary> public static class TCDB_Constant { + // TODO: Load the strings from the DB where appropriate public static int USER_FAILEDLOGIN = -2; public static int USER_NOTREGISTERED = -1; public static int USER_NEWUSER = -1; + public static int USER_ANONYMOUSUSERID = 0; + public static string USER_ANONYMOUSUSERNAME = "Guest"; + public static string USER_ANONYMOUSFIRSTNAME = "Guest"; + public static string USER_ANONYMOUSLASTNAME = "User"; + + public static string ACTION_NEWUSER = "nu"; } } \ No newline at end of file Added: Website/App_Code/TCDB_Products.cs =================================================================== --- Website/App_Code/TCDB_Products.cs (rev 0) +++ Website/App_Code/TCDB_Products.cs 2006-07-07 23:33:22 UTC (rev 89) @@ -0,0 +1,173 @@ +using System; +using System.Data; +using System.Configuration; +using System.Collections.Generic; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using TCDB_Users; + +namespace TCDB_Products +{ + /// <summary> + /// Summary description for TCDB_Products + /// </summary> + public class TCDB_ProductDB : Page + { + public static TCDB_Product TCDB_GetProduct(bool isActive, int productID) + { + dadDataSet ds = new dadDataSet(); + dadDataSetTableAdapters.db_productsTableAdapter ta = new dadDataSetTableAdapters.db_productsTableAdapter(); + ta.GetData(isActive, productID); + ta.Fill(ds.db_products, isActive, productID); + + TCDB_Product product = new TCDB_Product(); + + DataTableReader dr = ds.CreateDataReader(); + if (dr.HasRows && dr.Read()) + { + product.PRODUCTID = int.Parse(dr["productID"].ToString()); + product.NAME = dr["name"].ToString(); + product.DESCRIPTION = dr["description"].ToString(); + product.CODENAME = dr["codeName"].ToString(); + product.DEVMANAGER = TCDB_UserDB.TCDB_GetUserInfo(int.Parse(dr["devManager"].ToString())); + product.QAMANAGER = TCDB_UserDB.TCDB_GetUserInfo(int.Parse(dr["qaManager"].ToString())); + product.DEVLEAD = TCDB_UserDB.TCDB_GetUserInfo(int.Parse(dr["devLead"].ToString())); + product.QALEAD = TCDB_UserDB.TCDB_GetUserInfo(int.Parse(dr["qaLead"].ToString())); + product.PM = TCDB_UserDB.TCDB_GetUserInfo(int.Parse(dr["pm"].ToString())); + product.ACTIVE = (bool)(dr["active"]); + } + + return product; + } + + public static List<TCDB_Product> TCDB_GetProductList(bool isActive) + { + dadDataSet ds = new dadDataSet(); + dadDataSetTableAdapters.db_productsTableAdapter ta = new dadDataSetTableAdapters.db_productsTableAdapter(); + ta.GetData(isActive, null); + ta.Fill(ds.db_products, isActive, null); + + List<TCDB_Product> productList = new List<TCDB_Product>(); + + DataTableReader dr = ds.CreateDataReader(); + if (dr.HasRows) + { + while (dr.Read()) { + TCDB_Product product = new TCDB_Product(); + product.PRODUCTID = int.Parse(dr["productID"].ToString()); + product.NAME = dr["name"].ToString(); + product.DESCRIPTION = dr["description"].ToString(); + product.CODENAME = dr["codeName"].ToString(); + product.DEVMANAGER = TCDB_UserDB.TCDB_GetUserInfo(int.Parse(dr["devManager"].ToString())); + product.QAMANAGER = TCDB_UserDB.TCDB_GetUserInfo(int.Parse(dr["qaManager"].ToString())); + product.DEVLEAD = TCDB_UserDB.TCDB_GetUserInfo(int.Parse(dr["devLead"].ToString())); + product.QALEAD = TCDB_UserDB.TCDB_GetUserInfo(int.Parse(dr["qaLead"].ToString())); + product.PM = TCDB_UserDB.TCDB_GetUserInfo(int.Parse(dr["pm"].ToString())); + product.ACTIVE = (bool)(dr["active"]); + + productList.Add(product); + } + } + + return productList; + } + } + + public class TCDB_Product + { + private int productid; + private string name; + private string description; + private string codeName; + private TCDB_User devManager; + private TCDB_User qaManager; + private TCDB_User devLead; + private TCDB_User qaLead; + private TCDB_User pm; + private bool active; + // TODO: Implement these as the time is right + //private List<TCDB_Tag> tags; + + public TCDB_Product() + { + productid = 0; + name = null; + description = null; + codeName = null; + devManager = null; + qaManager = null; + devLead = null; + qaLead = null; + pm = null; + active = false; + } + + public TCDB_Product(int id) + { + } + + public int PRODUCTID + { + get { return productid; } + set { productid = value; } + } + + public string NAME + { + get { return name; } + set { name = value; } + } + + public string DESCRIPTION + { + get { return description; } + set { description = value; } + } + + public string CODENAME + { + get { return codeName; } + set { codeName = value; } + } + + public TCDB_User DEVMANAGER + { + get { return devManager; } + set { devManager = value; } + } + + public TCDB_User QAMANAGER + { + get { return qaManager; } + set { qaManager = value; } + } + + public TCDB_User DEVLEAD + { + get { return devLead; } + set { devLead = value; } + } + + public TCDB_User QALEAD + { + get { return qaLead; } + set { qaLead = value; } + } + + public TCDB_User PM + { + get { return pm; } + set { pm = value; } + } + + public bool ACTIVE + { + get { return active; } + set { active = value; } + } + } +} \ No newline at end of file Modified: Website/App_Code/TCDB_Users.cs =================================================================== --- Website/App_Code/TCDB_Users.cs 2006-07-07 22:50:32 UTC (rev 88) +++ Website/App_Code/TCDB_Users.cs 2006-07-07 23:33:22 UTC (rev 89) @@ -2,8 +2,10 @@ using System.Data; using System.Data.SqlClient; using System.Configuration; +using System.Diagnostics; using System.Web; using System.Web.Security; +using System.Web.Configuration; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.WebControls.WebParts; @@ -12,6 +14,7 @@ using TCDB_Constants; using System.Collections; using System.Collections.Generic; +using System.Collections.Specialized; using AD_Auth; @@ -37,21 +40,24 @@ /// <value> /// An <c>int</c> representing the user's ID or DefaultValue if the process fails /// </value> - public static TCDB_User TCDB_AuthenticateUser(string strDomain, string strUserName, string strPassword) + public static TCDB_User TCDB_AuthenticateUser(string strUserName, string strPassword) { // TODO: Add logic here to determine and use the appropriate // authentication method based on configuration data // Using AD authentication - if (!AD_Authentication.AD_Authenticate(strDomain, strUserName, strPassword)) + if (!AD_Authentication.AD_Authenticate(strUserName, strPassword)) { // We can't authenticate, so return the guest user return new TCDB_User(); } + // Using AD authentication + string cleanUserName = AD_Authentication.AD_CleanUserName(strUserName); + // Determine if the user exists in the DB or not. If not, we need to get // the basic info - TCDB_User user = TCDB_GetUserInfo(strUserName); + TCDB_User user = TCDB_GetUserInfo(cleanUserName); if (user.USERID > 1) { user.ISAUTHENTICATED = true; @@ -59,18 +65,62 @@ } // Using AD authentication - user = AD_Authentication.AD_GetUserInfo(strDomain, strUserName, strPassword); + user = AD_Authentication.AD_GetUserInfo(strUserName, strPassword); + return user; + } + public static TCDB_User TCDB_GetUserInfo(string strUserName) + { + // TODO: Check against the DB for user information + dadDataSet ds = new dadDataSet(); + dadDataSetTableAdapters.db_usersTableAdapter ta = new dadDataSetTableAdapters.db_usersTableAdapter(); + ta.GetData(strUserName, null); + ta.Fill(ds.db_users, strUserName, null); + TCDB_User user = new TCDB_User(); + DataTableReader dr = ds.CreateDataReader(); + if (dr.HasRows && dr.Read()) + { + user.USERID = int.Parse(dr["userID"].ToString()); + user.USERNAME = dr["username"].ToString(); + user.FIRSTNAME = dr["firstName"].ToString(); + user.LASTNAME = dr["lastName"].ToString(); + user.EMAIL = dr["email"].ToString(); + user.OFFICEPHONE = dr["officePhone"].ToString(); + user.HOMEPHONE = dr["homePhone"].ToString(); + user.CELLPHONE = dr["cellPhone"].ToString(); + user.AUTOMATION = (bool)(dr["automation"]); + } return user; } - public static TCDB_User TCDB_GetUserInfo(string strUserName) + public static TCDB_User TCDB_GetUserInfo(int id) { // TODO: Check against the DB for user information - return new TCDB_User(); + dadDataSet ds = new dadDataSet(); + dadDataSetTableAdapters.db_usersTableAdapter ta = new dadDataSetTableAdapters.db_usersTableAdapter(); + ta.GetData(null, id); + ta.Fill(ds.db_users, null, id); + + TCDB_User user = new TCDB_User(); + + DataTableReader dr = ds.CreateDataReader(); + if (dr.HasRows && dr.Read()) + { + user.USERID = int.Parse(dr["userID"].ToString()); + user.USERNAME = dr["username"].ToString(); + user.FIRSTNAME = dr["firstName"].ToString(); + user.LASTNAME = dr["lastName"].ToString(); + user.EMAIL = dr["email"].ToString(); + user.OFFICEPHONE = dr["officePhone"].ToString(); + user.HOMEPHONE = dr["homePhone"].ToString(); + user.CELLPHONE = dr["cellPhone"].ToString(); + user.AUTOMATION = (bool)(dr["automation"]); + } + + return user; } @@ -86,17 +136,19 @@ private string email; private string officePhone; private string homePhone; + private string cellPhone; private string firstName; private string lastName; private bool automation; private bool isAuthenticated; + private List<TCDB_Right> rights; + private List<TCDB_Config> config; /* TODO: Implement these as the time is right private List<TCDB_Feature> features; private List<TCDB_Assignment> assignmentsCreated; private List<TCDB_Assignment> assignments; private List<TCDB_Objective> objectives; private List<TCDB_WorkOrderTemplate> savedWorkOrders; - private TCDB_RightsCollection rights; private List<TCDB_TestCase> testCasesCreated; private List<TCDB_TestCase> testCasesEdited; */ @@ -107,15 +159,18 @@ /// </summary> public TCDB_User() { - userid = 0; - username = "Guest"; + userid = TCDB_Constant.USER_ANONYMOUSUSERID; + username = TCDB_Constant.USER_ANONYMOUSUSERNAME; email = ""; officePhone = ""; homePhone = ""; - firstName = "Guest"; - lastName = "User"; + cellPhone = ""; + firstName = TCDB_Constant.USER_ANONYMOUSFIRSTNAME; + lastName = TCDB_Constant.USER_ANONYMOUSLASTNAME; automation = false; isAuthenticated = false; + rights = null; + config = null; } /// <summary> @@ -166,6 +221,12 @@ set { homePhone = value; } } + public string CELLPHONE + { + get { return cellPhone; } + set { cellPhone = value; } + } + public string FIRSTNAME { get { return firstName; } @@ -194,88 +255,82 @@ get { return isAuthenticated; } set { isAuthenticated = value; } } - } - public class TCDB_RightsCollection : CollectionBase - { - private List<TCDB_Right> rights; - - public int Count + public override string ToString() { - get { return rights.Count; } + return FULLNAME; } - public void Clear() + public List<TCDB_Right> GetRights() { - rights = new List<TCDB_Right>(); + // TODO: If rights == null + // load the rights from the db + return rights; } - public bool Equals(Object o) + public List<TCDB_Config> GetConfig() { - // TODO: Finish this - return false; + // TODO: If config == null + // load the config from the db + return config; } + } - public IEnumerator GetEnumerator() - { - // TODO: Finish this - return null; - } + public class TCDB_Right + { + private int m_id; + private string m_name; + private string m_description; - public int GetHashCode() + public TCDB_Right(int id, string name, string description) { - // TODO: Finish this - return 0; + m_id = id; + m_name = name; + m_description = description; } - public Type GetType() + public int ID { - // TODO: Finish this - return null; + get { return m_id; } } - public void RemoveAt(int index) + public string NAME { - // TODO: Implement the function - if (index < 0 || index >= rights.Count) - throw new ArgumentOutOfRangeException(index.ToString(), "Index out of range."); + get { return m_name; } } - public string ToString() + public string DESCRIPTION { - return "System.Object"; + get { return m_description; } } -/* - protected ArrayList InnerList - { - // TODO: Finish this - get { return new ArrayList(); } - } + } - protected IList List + public class TCDB_Config + { + private int m_uid; + private string m_key; + private string m_value; + + public TCDB_Config(int uid, string key, string value) { - get { return rights; } + m_uid = uid; + m_key = key; + m_value = value; } - ~TCDB_RightsCollection() + public int UID { - rights = null; + get { return m_uid; } } - protected TCDB_RightsCollection MemberwiseClone() + public string KEY { - // TODO: Finish this - return this; + get { return m_key; } } -*/ - - } - - public class TCDB_Right - { - public TCDB_Right() + public string VALUE { + get { return m_value; } } } } \ No newline at end of file Added: Website/App_Code/dadDataSet.xsd =================================================================== --- Website/App_Code/dadDataSet.xsd (rev 0) +++ Website/App_Code/dadDataSet.xsd 2006-07-07 23:33:22 UTC (rev 89) @@ -0,0 +1,305 @@ +<?xml version="1.0" encoding="utf-8"?> +<xs:schema id="dadDataSet" targetNamespace="http://tempuri.org/dadDataSet.xsd" xmlns:mstns="http://tempuri.org/dadDataSet.xsd" xmlns="http://tempuri.org/dadDataSet.xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:msprop="urn:schemas-microsoft-com:xml-msprop" attributeFormDefault="qualified" elementFormDefault="qualified"> + <xs:annotation> + <xs:appinfo source="urn:schemas-microsoft-com:xml-msdatasource"> + <DataSource DefaultConnectionIndex="0" FunctionsComponentName="QueriesTableAdapter" GeneratorFunctionsComponentClassName="QueriesTableAdapter" Modifier="AutoLayout, AnsiClass, Class, Public" SchemaSerializationMode="IncludeSchema" UserFunctionsComponentName="QueriesTableAdapter" xmlns="urn:schemas-microsoft-com:xml-msdatasource"> + <Connections> + <Connection AppSettingsObjectName="Web.config" AppSettingsPropertyName="dadConnectionString" ConnectionStringObject="" IsAppSettingsProperty="True" Modifier="Assembly" Name="dadConnectionString (Web.config)" ParameterPrefix="@" PropertyReference="AppConfig.System.Configuration.ConfigurationManager.0.ConnectionStrings.dadConnectionString.ConnectionString" Provider="System.Data.SqlClient"> + </Connection> + </Connections> + <Tables> + <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="db_usersTableAdapter" GeneratorDataComponentClassName="db_usersTableAdapter" Name="db_users" UserDataComponentName="db_usersTableAdapter"> + <MainSource> + <DbSource ConnectionRef="dadConnectionString (Web.config)" DbObjectName="tcdb.dbo.sel_users" DbObjectType="StoredProcedure" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="True" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="False" UserGetMethodName="GetData" UserSourceName="Fill"> + <InsertCommand> + <DbCommand CommandType="StoredProcedure" ModifiedByUser="False"> + <CommandText>dbo.ins_user</CommandText> + <Parameters> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@username" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="username" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@firstName" Precision="0" ProviderType="VarChar" Scale="0" Size="24" SourceColumn="firstName" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@lastName" Precision="0" ProviderType="VarChar" Scale="0" Size="24" SourceColumn="lastName" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@email" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="email" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@officePhone" Precision="0" ProviderType="VarChar" Scale="0" Size="14" SourceColumn="officePhone" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@homePhone" Precision="0" ProviderType="VarChar" Scale="0" Size="14" SourceColumn="homePhone" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@cellPhone" Precision="0" ProviderType="VarChar" Scale="0" Size="14" SourceColumn="cellPhone" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@automation" Precision="1" ProviderType="Bit" Scale="0" Size="1" SourceColumn="automation" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + </Parameters> + </DbCommand> + </InsertCommand> + <SelectCommand> + <DbCommand CommandType="StoredProcedure" ModifiedByUser="False"> + <CommandText>dbo.sel_users</CommandText> + <Parameters> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@username" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@userID" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + </Parameters> + </DbCommand> + </SelectCommand> + <UpdateCommand> + <DbCommand CommandType="StoredProcedure" ModifiedByUser="False"> + <CommandText>dbo.upd_users</CommandText> + <Parameters> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@userID" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumn="userID" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@username" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="username" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@email" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="email" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@officePhone" Precision="0" ProviderType="VarChar" Scale="0" Size="14" SourceColumn="officePhone" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@homePhone" Precision="0" ProviderType="VarChar" Scale="0" Size="14" SourceColumn="homePhone" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@cellPhone" Precision="0" ProviderType="VarChar" Scale="0" Size="14" SourceColumn="cellPhone" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@firstName" Precision="0" ProviderType="VarChar" Scale="0" Size="24" SourceColumn="firstName" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@lastName" Precision="0" ProviderType="VarChar" Scale="0" Size="24" SourceColumn="lastName" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@automation" Precision="1" ProviderType="Bit" Scale="0" Size="1" SourceColumn="automation" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + </Parameters> + </DbCommand> + </UpdateCommand> + </DbSource> + </MainSource> + <Mappings> + <Mapping SourceColumn="userID" DataSetColumn="userID" /> + <Mapping SourceColumn="username" DataSetColumn="username" /> + <Mapping SourceColumn="email" DataSetColumn="email" /> + <Mapping SourceColumn="officePhone" DataSetColumn="officePhone" /> + <Mapping SourceColumn="homePhone" DataSetColumn="homePhone" /> + <Mapping SourceColumn="cellPhone" DataSetColumn="cellPhone" /> + <Mapping SourceColumn="firstName" DataSetColumn="firstName" /> + <Mapping SourceColumn="lastName" DataSetColumn="lastName" /> + <Mapping SourceColumn="fullName" DataSetColumn="fullName" /> + <Mapping SourceColumn="automation" DataSetColumn="automation" /> + </Mappings> + <Sources> + </Sources> + </TableAdapter> + <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="db_productsTableAdapter" GeneratorDataComponentClassName="db_productsTableAdapter" Name="db_products" UserDataComponentName="db_productsTableAdapter"> + <MainSource> + <DbSource ConnectionRef="dadConnectionString (Web.config)" DbObjectName="tcdb.dbo.sel_products" DbObjectType="StoredProcedure" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="True" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="False" UserGetMethodName="GetData" UserSourceName="Fill"> + <InsertCommand> + <DbCommand CommandType="StoredProcedure" ModifiedByUser="False"> + <CommandText>dbo.ins_product</CommandText> + <Parameters> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@name" Precision="0" ProviderType="VarChar" Scale="0" Size="255" SourceColumn="name" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@description" Precision="0" ProviderType="Text" Scale="0" Size="2147483647" SourceColumn="description" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@devManager" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumn="devManager" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@qaManager" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumn="qaManager" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@devLead" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumn="devLead" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@qaLead" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumn="qaLead" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@pm" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumn="pm" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@codeName" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="codeName" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@active" Precision="1" ProviderType="Bit" Scale="0" Size="1" SourceColumn="active" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + </Parameters> + </DbCommand> + </InsertCommand> + <SelectCommand> + <DbCommand CommandType="StoredProcedure" ModifiedByUser="False"> + <CommandText>dbo.sel_products</CommandText> + <Parameters> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@active" Precision="1" ProviderType="Bit" Scale="0" Size="1" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@productID" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + </Parameters> + </DbCommand> + </SelectCommand> + <UpdateCommand> + <DbCommand CommandType="StoredProcedure" ModifiedByUser="False"> + <CommandText>dbo.upd_product</CommandText> + <Parameters> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="ReturnValue" ParameterName="@RETURN_VALUE" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@productID" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumn="productID" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@name" Precision="0" ProviderType="VarChar" Scale="0" Size="255" SourceColumn="name" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@description" Precision="0" ProviderType="Text" Scale="0" Size="2147483647" SourceColumn="description" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@devManager" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumn="devManager" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@qaManager" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumn="qaManager" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@devLead" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumn="devLead" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@qaLead" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumn="qaLead" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Int32" Direction="Input" ParameterName="@pm" Precision="10" ProviderType="Int" Scale="0" Size="4" SourceColumn="pm" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="AnsiString" Direction="Input" ParameterName="@codeName" Precision="0" ProviderType="VarChar" Scale="0" Size="10" SourceColumn="codeName" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="" DataSourceName="" DbType="Boolean" Direction="Input" ParameterName="@active" Precision="1" ProviderType="Bit" Scale="0" Size="1" SourceColumn="active" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + </Parameters> + </DbCommand> + </UpdateCommand> + </DbSource> + </MainSource> + <Mappings> + <Mapping SourceColumn="productID" DataSetColumn="productID" /> + <Mapping SourceColumn="name" DataSetColumn="name" /> + <Mapping SourceColumn="description" DataSetColumn="description" /> + <Mapping SourceColumn="devManager" DataSetColumn="devManager" /> + <Mapping SourceColumn="qaManager" DataSetColumn="qaManager" /> + <Mapping SourceColumn="devLead" DataSetColumn="devLead" /> + <Mapping SourceColumn="qaLead" DataSetColumn="qaLead" /> + <Mapping SourceColumn="pm" DataSetColumn="pm" /> + <Mapping SourceColumn="codeName" DataSetColumn="codeName" /> + <Mapping SourceColumn="active" DataSetColumn="active" /> + </Mappings> + <Sources> + </Sources> + </TableAdapter> + </Tables> + <Sources> + </Sources> + </DataSource> + </xs:appinfo> + </xs:annotation> + <xs:element name="dadDataSet" msdata:IsDataSet="true" msdata:UseCurrentLocale="true" msprop:Generator_UserDSName="dadDataSet" msprop:Generator_DataSetName="dadDataSet"> + <xs:complexType> + <xs:choice minOccurs="0" maxOccurs="unbounded"> + <xs:element name="db_users" msprop:Generator_UserTableName="db_users" msprop:Generator_RowDeletedName="db_usersRowDeleted" msprop:Generator_TableClassName="db_usersDataTable" msprop:Generator_RowChangedName="db_usersRowChanged" msprop:Generator_RowClassName="db_usersRow" msprop:Generator_RowChangingName="db_usersRowChanging" msprop:Generator_RowEvArgName="db_usersRowChangeEvent" msprop:Generator_RowEvHandlerName="db_usersRowChangeEventHandler" msprop:Generator_TablePropName="db_users" msprop:Generator_TableVarName="tabledb_users" msprop:Generator_RowDeletingName="db_usersRowDeleting"> + <xs:complexType> + <xs:sequence> + <xs:element name="userID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="userID" msprop:Generator_ColumnPropNameInRow="userID" msprop:Generator_ColumnVarNameInTable="columnuserID" msprop:Generator_ColumnPropNameInTable="userIDColumn" type="xs:int" /> + <xs:element name="username" msprop:Generator_UserColumnName="username" msprop:Generator_ColumnPropNameInRow="username" msprop:Generator_ColumnVarNameInTable="columnusername" msprop:Generator_ColumnPropNameInTable="usernameColumn"> + <xs:simpleType> + <xs:restriction base="xs:string"> + <xs:maxLength value="50" /> + </xs:restriction> + </xs:simpleType> + </xs:element> + <xs:element name="email" msprop:Generator_UserColumnName="email" msprop:Generator_ColumnPropNameInRow="email" msprop:Generator_ColumnVarNameInTable="columnemail" msprop:Generator_ColumnPropNameInTable="emailColumn"> + <xs:simpleType> + <xs:restriction base="xs:string"> + <xs:maxLength value="50" /> + </xs:restriction> + </xs:simpleType> + </xs:element> + <xs:element name="officePhone" msprop:Generator_UserColumnName="officePhone" msprop:Generator_ColumnPropNameInRow="officePhone" msprop:Generator_ColumnVarNameInTable="columnofficePhone" msprop:Generator_ColumnPropNameInTable="officePhoneColumn" minOccurs="0"> + <xs:simpleType> + <xs:restriction base="xs:string"> + <xs:maxLength value="14" /> + </xs:restriction> + </xs:simpleType> + </xs:element> + <xs:element name="homePhone" msprop:Generator_UserColumnName="homePhone" msprop:Generator_ColumnPropNameInRow="homePhone" msprop:Generator_ColumnVarNameInTable="columnhomePhone" msprop:Generator_ColumnPropNameInTable="homePhoneColumn" minOccurs="0"> + <xs:simpleType> + <xs:restriction base="xs:string"> + <xs:maxLength value="14" /> + </xs:restriction> + </xs:simpleType> + </xs:element> + <xs:element name="cellPhone" msprop:Generator_UserColumnName="cellPhone" msprop:Generator_ColumnPropNameInRow="cellPhone" msprop:Generator_ColumnVarNameInTable="columncellPhone" msprop:Generator_ColumnPropNameInTable="cellPhoneColumn" minOccurs="0"> + <xs:simpleType> + <xs:restriction base="xs:string"> + <xs:maxLength value="14" /> + </xs:restriction> + </xs:simpleType> + </xs:element> + <xs:element name="firstName" msprop:Generator_UserColumnName="firstName" msprop:Generator_ColumnPropNameInRow="firstName" msprop:Generator_ColumnVarNameInTable="columnfirstName" msprop:Generator_ColumnPropNameInTable="firstNameColumn"> + <xs:simpleType> + <xs:restriction base="xs:string"> + <xs:maxLength value="24" /> + </xs:restriction> + </xs:simpleType> + </xs:element> + <xs:element name="lastName" msprop:Generator_UserColumnName="lastName" msprop:Generator_ColumnPropNameInRow="lastName" msprop:Generator_ColumnVarNameInTable="columnlastName" msprop:Generator_ColumnPropNameInTable="lastNameColumn"> + <xs:simpleType> + <xs:restriction base="xs:string"> + <xs:maxLength value="24" /> + </xs:restriction> + </xs:simpleType> + </xs:element> + <xs:element name="fullName" msdata:ReadOnly="true" msprop:Generator_UserColumnName="fullName" msprop:Generator_ColumnPropNameInRow="fullName" msprop:Generator_ColumnVarNameInTable="columnfullName" msprop:Generator_ColumnPropNameInTable="fullNameColumn" minOccurs="0"> + <xs:simpleType> + <xs:restriction base="xs:string"> + <xs:maxLength value="49" /> + </xs:restriction> + </xs:simpleType> + </xs:element> + <xs:element name="automation" msprop:Generator_UserColumnName="automation" msprop:Generator_ColumnPropNameInRow="automation" msprop:Generator_ColumnVarNameInTable="columnautomation" msprop:Generator_ColumnPropNameInTable="automationColumn" type="xs:boolean" /> + </xs:sequence> + </xs:complexType> + </xs:element> + <xs:element name="db_products" msprop:Generator_UserTableName="db_products" msprop:Generator_RowDeletedName="db_productsRowDeleted" msprop:Generator_TableClassName="db_productsDataTable" msprop:Generator_RowChangedName="db_productsRowChanged" msprop:Generator_RowClassName="db_productsRow" msprop:Generator_RowChangingName="db_productsRowChanging" msprop:Generator_RowEvArgName="db_productsRowChangeEvent" msprop:Generator_RowEvHandlerName="db_productsRowChangeEventHandler" msprop:Generator_TablePropName="db_products" msprop:Generator_TableVarName="tabledb_products" msprop:Generator_RowDeletingName="db_productsRowDeleting"> + <xs:complexType> + <xs:sequence> + <xs:element name="productID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="productID" msprop:Generator_ColumnPropNameInRow="productID" msprop:Generator_ColumnVarNameInTable="columnproductID" msprop:Generator_ColumnPropNameInTable="productIDColumn" type="xs:int" /> + <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInTable="nameColumn" minOccurs="0"> + <xs:simpleType> + <xs:restriction base="xs:string"> + <xs:maxLength value="255" /> + </xs:restriction> + </xs:simpleType> + </xs:element> + <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> + <xs:simpleType> + <xs:restriction base="xs:string"> + <xs:maxLength value="2147483647" /> + </xs:restriction> + </xs:simpleType> + </xs:element> + <xs:element name="devManager" msprop:Generator_UserColumnName="devManager" msprop:Generator_ColumnPropNameInRow="devManager" msprop:Generator_ColumnVarNameInTable="columndevManager" msprop:Generator_ColumnPropNameInTable="devManagerColumn" type="xs:int" minOccurs="0" /> + <xs:element name="qaManager" msprop:Generator_UserColumnName="qaManager" msprop:Generator_ColumnPropNameInRow="qaManager" msprop:Generator_ColumnVarNameInTable="columnqaManager" msprop:Generator_ColumnPropNameInTable="qaManagerColumn" type="xs:int" minOccurs="0" /> + <xs:element name="devLead" msprop:Generator_UserColumnName="devLead" msprop:Generator_ColumnPropNameInRow="devLead" msprop:Generator_ColumnVarNameInTable="columndevLead" msprop:Generator_ColumnPropNameInTable="devLeadColumn" type="xs:int" minOccurs="0" /> + <xs:element name="qaLead" msprop:Generator_UserColumnName="qaLead" msprop:Generator_ColumnPropNameInRow="qaLead" msprop:Generator_ColumnVarNameInTable="columnqaLead" msprop:Generator_ColumnPropNameInTable="qaLeadColumn" type="xs:int" minOccurs="0" /> + <xs:element name="pm" msprop:Generator_UserColumnName="pm" msprop:Generator_ColumnPropNameInRow="pm" msprop:Generator_ColumnVarNameInTable="columnpm" msprop:Generator_ColumnPropNameInTable="pmColumn" type="xs:int" minOccurs="0" /> + <xs:element name="codeName" msprop:Generator_UserColumnName="codeName" msprop:Generator_ColumnPropNameInRow="codeName" msprop:Generator_ColumnVarNameInTable="columncodeName" msprop:Generator_ColumnPropNameInTable="codeNameColumn" minOccurs="0"> + <xs:simpleType> + <xs:restriction base="xs:string"> + <xs:maxLength value="10" /> + </xs:restriction> + </xs:simpleType> + </xs:element> + <xs:element name="active" msprop:Generator_UserColumnName="active" msprop:Generator_ColumnPropNameInRow="active" msprop:Generator_ColumnVarNameInTable="columnactive" msprop:Generator_ColumnPropNameInTable="activeColumn" type="xs:boolean" /> + </xs:sequence> + </xs:complexType> + </xs:element> + </xs:choice> + </xs:complexType> + <xs:unique name="Constraint1" msdata:PrimaryKey="true"> + <xs:selector xpath=".//mstns:db_users" /> + <xs:field xpath="mstns:email" /> + <xs:field xpath="mstns:firstName" /> + <xs:field xpath="mstns:lastName" /> + </xs:unique> + <xs:unique name="db_products_Constraint1" msdata:ConstraintName="Constraint1" msdata:PrimaryKey="true"> + <xs:selector xpath=".//mstns:db_products" /> + <xs:field xpath="mstns:productID" /> + </xs:unique> + </xs:element> +</xs:schema> \ No newline at end of file Added: Website/App_Code/dadDataSet.xss =================================================================== --- Website/App_Code/dadDataSet.xss (rev 0) +++ Website/App_Code/dadDataSet.xss 2006-07-07 23:33:22 UTC (rev 89) @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="utf-8"?> +<!--<autogenerated> + This code was generated by a tool to store the dataset designer's layout information. + Changes to this file may cause incorrect behavior and will be lost if + the code is regenerated. +</autogenerated>--> +<DiagramLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" ex:showrelationlabel="False" ViewPortX="0" ViewPortY="0" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout"> + <Shapes> + <Shape ID="DesignTable:db_users" ZOrder="2" X="87" Y="57" Height="241" Width="201" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="194" /> + <Shape ID="DesignTable:db_products" ZOrder="1" X="381" Y="68" Height="241" Width="213" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="194" /> + </Shapes> + <Connectors /> +</DiagramLayout> \ No newline at end of file Modified: Website/App_Themes/Python/python.css =================================================================== --- Website/App_Themes/Python/python.css 2006-07-07 22:50:32 UTC (rev 88) +++ Website/App_Themes/Python/python.css 2006-07-07 23:33:22 UTC (rev 89) @@ -67,42 +67,27 @@ { padding-right: 30px; } +/********** END Header Content **********/ +/********** BEGIN Login Content **********/ /* Define the login information */ -#User table +#Login table { - display: inline; - margin-top: 15px; - position: relative; - top: 8px; + margin: 20px; } -#User table td -{ - display: inline; -} - -/* Define the username and password box sizes */ -#User #UserNameControl, #User #PasswordControl -{ - display: inline; -} - #UserNameControl input, #PasswordControl input { - width: 80px; + width: 100px; } -#User #RememberMeControl +#RememberMeControl { - display: inline; position: relative; top: 2px; left: -4px; } -/********** END Header Content **********/ - /********** BEGIN Footer Content **********/ #FooterContent A { Added: Website/Includes/Authenticate.ascx =================================================================== --- Website/Includes/Authenticate.ascx (rev 0) +++ Website/Includes/Authenticate.ascx 2006-07-07 23:33:22 UTC (rev 89) @@ -0,0 +1,163 @@ +<%@ Control Language="C#" ClassName="Authenticate" %> +<%@ Import Namespace="TCDB_Users" %> +<%@ Import Namespace="TCDB_Constants" %> +<%@ Import Namespace="TCDB_Products" %> +<%@ Import Namespace="System.Collections.Generic" %> +<%@ Import Namespace="System.Data" %> + +<script runat="server"> + + void Page_Load(Object sender, EventArgs e) + { + LoginUser.Visible = true; + CreateUser.Visible = false; + Results.Visible = false; + } + + protected void Login_Authenticate(object sender, EventArgs e) + { + + TCDB_User myUser = new TCDB_User(); + myUser = TCDB_UserDB.TCDB_AuthenticateUser(LoginUser.UserName, LoginUser.Password); + + if (myUser.USERID > TCDB_Constant.USER_ANONYMOUSUSERID) + { + // We have a valid user who is already in the DB + FormsAuthentication.SetAuthCookie(LoginUser.UserName, LoginUser.RememberMeSet); + Response.Redirect(FormsAuthentication.GetRedirectUrl(LoginUser.UserName, LoginUser.RememberMeSet)); + } + else if (myUser.USERID < TCDB_Constant.USER_ANONYMOUSUSERID) + { + // We have a valid user who needs to be added to the DB + + // Populate the new user control + cuUserName.Text = myUser.USERNAME; + cuFirstName.Text = myUser.FIRSTNAME; + cuLastName.Text = myUser.LASTNAME; + cuEmail.Text = myUser.EMAIL; + cuOfficePhone.Text = myUser.OFFICEPHONE; + cuHomePhone.Text = myUser.HOMEPHONE; + cuCellPhone.Text = myUser.CELLPHONE; + + // Populate the product with a list of products + // Create a table to store data for the DropDownListControl + DataTable dt = new DataTable(); + + // Define the columns used + dt.Columns.Add(new DataColumn("id", typeof(int))); + dt.Columns.Add(new DataColumn("name", typeof(string))); + + List<TCDB_Product> productList = TCDB_ProductDB.TCDB_GetProductList(true); + foreach (TCDB_Product product in productList) + { + DataRow dr = dt.NewRow(); + dr["id"] = product.PRODUCTID; + dr["name"] = product.NAME; + dt.Rows.Add(dr); + } + + // Create a DataView from dt to act as the ds for the control + cuProduct.DataSource = new DataView(dt); + + cuProduct.DataValueField = "id"; + cuProduct.DataTextField = "name"; + + // Bind the data to the control + cuProduct.DataBind(); + + // Hide the login control and show the new user control + LoginUser.Visible = false; + CreateUser.Visible = true; + Results.Visible = false; + } + } + + protected void Create_User(object sender, EventArgs e) + { + // TODO: make the call to the TCDB_UserDB.CreateUser or whatever to save the userinfo to the DB + + // TODO: Lookup the admin/lead for the selected product and send an action item to give permissions + + // TODO: Populate the results control with text from the DB + Results.Text = "Your user has been created. Please check with your product admin for access."; + + // Hide and show the appropriate controls + LoginUser.Visible = false; + CreateUser.Visible = false; + Results.Visible = true; + } +</script> + + +<asp:Login ID="LoginUser" OnAuthenticate="Login_Authenticate" runat="server"> + <LayoutTemplate> + Please login<br /> + <asp:Label ID="lblMessage" runat="server" Text="" /> + <div id="UserNameControl">Username: <asp:TextBox ID="UserName" runat="server" /></div><asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName" Text="*" /> + <div id="PasswordControl">Password: <asp:TextBox ID="Password" runat="server" TextMode="password" /></div><asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password" Text="*" /> + <div id="RememberMeControl">Remember Me: <asp:CheckBox ID="RememberMe" runat="server" /></div> + <asp:LinkButton ID="LoginControl" CommandName="Login" Text="Login" runat="server" /> + </LayoutTemplate> +</asp:Login> + +<asp:Wizard ID="CreateUser" runat="server" DisplaySideBar="false" FinishCompleteButtonType="Link" FinishCompleteButtonText="Create User" OnFinishButtonClick="Create_User"> + <WizardSteps> + <asp:WizardStep ID="CreateUserStep1" runat="server" StepType="auto"> + <div id="Title">Please Verify Your Details</div> + <div id="UserName"><asp:Label ID="UserNameText" runat="server" AssociatedControlID="cuUserName">User Name:</asp:Label></div> + <div id="UserNameControl"> + <asp:TextBox ID="cuUserName" runat="server" ReadOnly="true"></asp:TextBox> + <as... [truncated message content] |
From: <jon...@us...> - 2006-07-07 22:50:38
|
Revision: 88 Author: jon_r_johnson Date: 2006-07-07 15:50:32 -0700 (Fri, 07 Jul 2006) ViewCVS: http://svn.sourceforge.net/tcdb/?rev=88&view=rev Log Message: ----------- Added active field to tables tcdb_product, and tcdb_rights. Updated stored procedure ins_user. Updated stored procedure ins_product. Added stored procedure sel_products. Added stored procedure upd_users. Added tables tcdb_role, tcdb_roleRight, tcdb_userRoleRight. Removed table tcdb_userRights. Modified Paths: -------------- Schema/TCDBSQLServer2005.sql Modified: Schema/TCDBSQLServer2005.sql =================================================================== --- Schema/TCDBSQLServer2005.sql 2006-07-07 22:46:58 UTC (rev 87) +++ Schema/TCDBSQLServer2005.sql 2006-07-07 22:50:32 UTC (rev 88) @@ -5,6 +5,44 @@ |
From: <sla...@us...> - 2006-07-07 22:47:05
|
Revision: 87 Author: slambson Date: 2006-07-07 15:46:58 -0700 (Fri, 07 Jul 2006) ViewCVS: http://svn.sourceforge.net/tcdb/?rev=87&view=rev Log Message: ----------- Modified Paths: -------------- Design/Schema/DB Schema.bmp Design/Schema/DB Schema.doc Modified: Design/Schema/DB Schema.bmp =================================================================== (Binary files differ) Modified: Design/Schema/DB Schema.doc =================================================================== (Binary files differ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <ro...@us...> - 2006-07-07 21:18:15
|
Revision: 86 Author: rouquin Date: 2006-07-07 14:17:59 -0700 (Fri, 07 Jul 2006) ViewCVS: http://svn.sourceforge.net/tcdb/?rev=86&view=rev Log Message: ----------- Updated WorkOrderEdit for testPass and filtering by platform/testpass - a couple bugs still. Modified Paths: -------------- WebPrototype/App_Code/DummyDataSet.xsd WebPrototype/App_Code/DummyDataSet.xss WebPrototype/App_Data/ASPNETDB.MDF WebPrototype/App_Data/Database.mdf WebPrototype/App_Data/Database_log.LDF WebPrototype/App_Data/aspnetdb_log.ldf WebPrototype/Assignments.aspx WebPrototype/Assignments.aspx.cs WebPrototype/WorkOrderEdit.aspx WebPrototype/WorkOrderEdit.aspx.cs Modified: WebPrototype/App_Code/DummyDataSet.xsd =================================================================== --- WebPrototype/App_Code/DummyDataSet.xsd 2006-07-07 19:57:59 UTC (rev 85) +++ WebPrototype/App_Code/DummyDataSet.xsd 2006-07-07 21:17:59 UTC (rev 86) @@ -943,10 +943,12 @@ <DbSource ConnectionRef="DummyDatabaseConnectionString (Web.config)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="True" GeneratorSourceName="InsertWorkOrder" Modifier="Public" Name="InsertWorkOrder" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetDataBy1" UserSourceName="InsertWorkOrder"> <InsertCommand> <DbCommand CommandType="Text" ModifiedByUser="True"> - <CommandText>INSERT INTO WorkOrder (Name) VALUES (@name)</CommandText> + <CommandText>INSERT INTO WorkOrder (Name,testpassID) VALUES (@name,@testPassID)</CommandText> <Parameters> <Parameter AllowDbNull="True" AutogeneratedName="name" ColumnName="name" DataSourceName="[C:\DOCUMENTS AND SETTINGS\MICHAELT\DESKTOP\TCDB\WEBPROTOTYPE\APP_DATA\DATABASE.MDF].dbo.WorkOrder" DataTypeServer="varchar(255)" DbType="AnsiString" Direction="Input" ParameterName="@name" Precision="0" ProviderType="VarChar" Scale="0" Size="255" SourceColumn="name" SourceColumnNullMapping="False" SourceVersion="Current"> </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="testPassID" ColumnName="testPassID" DataSourceName="[C:\DOCUMENTS AND SETTINGS\MICHAELT\DESKTOP\TCDB\WEBPROTOTYPE\APP_DATA\DATABASE.MDF].dbo.WorkOrder" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@testPassID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="testPassID" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> </Parameters> </DbCommand> </InsertCommand> @@ -954,11 +956,13 @@ <DbSource ConnectionRef="DummyDatabaseConnectionString (Web.config)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="True" GeneratorGetMethodName="GetDataBy1" GeneratorSourceName="UpdateByID" Modifier="Public" Name="UpdateByID" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetDataBy2" UserSourceName="UpdateByID"> <UpdateCommand> <DbCommand CommandType="Text" ModifiedByUser="True"> - <CommandText>UPDATE WorkOrder SET name=@name + <CommandText>UPDATE WorkOrder SET name=@name, testPassID=@testPassID WHERE workOrderID=@original_workOrderID</CommandText> <Parameters> <Parameter AllowDbNull="True" AutogeneratedName="name" ColumnName="name" DataSourceName="[C:\DOCUMENTS AND SETTINGS\MICHAELT\DESKTOP\TCDB\WEBPROTOTYPE\APP_DATA\DATABASE.MDF].dbo.WorkOrder" DataTypeServer="varchar(255)" DbType="AnsiString" Direction="Input" ParameterName="@name" Precision="0" ProviderType="VarChar" Scale="0" Size="255" SourceColumn="name" SourceColumnNullMapping="False" SourceVersion="Current"> </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="testPassID" ColumnName="testPassID" DataSourceName="[C:\DOCUMENTS AND SETTINGS\MICHAELT\DESKTOP\TCDB\WEBPROTOTYPE\APP_DATA\DATABASE.MDF].dbo.WorkOrder" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@testPassID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="testPassID" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> <Parameter AllowDbNull="False" AutogeneratedName="original_workOrderID" ColumnName="workOrderID" DataSourceName="[C:\DOCUMENTS AND SETTINGS\MICHAELT\DESKTOP\TCDB\WEBPROTOTYPE\APP_DATA\DATABASE.MDF].dbo.WorkOrder" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@original_workOrderID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="workOrderID" SourceColumnNullMapping="False" SourceVersion="Original"> </Parameter> </Parameters> @@ -1258,7 +1262,7 @@ </TableAdapter> <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="testPassTableAdapter" GeneratorDataComponentClassName="testPassTableAdapter" Name="testPass" UserDataComponentName="testPassTableAdapter"> <MainSource> - <DbSource ConnectionRef="DummyDatabaseConnectionString (Web.config)" DbObjectName="dbo.testPass" DbObjectType="Table" GenerateMethods="Get" GenerateShortCommands="False" GeneratorGetMethodName="GetAllTestPassData" GetMethodModifier="Public" GetMethodName="GetAllTestPassData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="False" UserGetMethodName="GetAllTestPassData" UserSourceName="Fill"> + <DbSource ConnectionRef="DummyDatabaseConnectionString (Web.config)" DbObjectName="dbo.testPass" DbObjectType="Table" GenerateMethods="Get" GenerateShortCommands="False" GeneratorGetMethodName="GetAllTestPassData" GetMethodModifier="Public" GetMethodName="GetAllTestPassData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="False" UserGetMethodName="GetAllTestPassData" UserSourceName="GetAllTestPassData"> <SelectCommand> <DbCommand CommandType="Text" ModifiedByUser="True"> <CommandText>SELECT testPassID, name, versionID @@ -1289,102 +1293,102 @@ <xs:element name="Objective" msprop:Generator_UserTableName="Objective" msprop:Generator_RowDeletedName="ObjectiveRowDeleted" msprop:Generator_RowChangedName="ObjectiveRowChanged" msprop:Generator_RowClassName="ObjectiveRow" msprop:Generator_RowChangingName="ObjectiveRowChanging" msprop:Generator_RowEvArgName="ObjectiveRowChangeEvent" msprop:Generator_RowEvHandlerName="ObjectiveRowChangeEventHandler" msprop:Generator_TableClassName="ObjectiveDataTable" msprop:Generator_TableVarName="tableObjective" msprop:Generator_RowDeletingName="ObjectiveRowDeleting" msprop:Generator_TablePropName="Objective"> <xs:complexType> <xs:sequence> - <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnPropNameInTable="nameColumn" minOccurs="0"> + <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInTable="nameColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="255" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> + <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="2147483647" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="objectiveID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="objectiveID" msprop:Generator_ColumnVarNameInTable="columnobjectiveID" msprop:Generator_ColumnPropNameInRow="objectiveID" msprop:Generator_ColumnPropNameInTable="objectiveIDColumn" type="xs:int" /> - <xs:element name="featureID" msprop:Generator_UserColumnName="featureID" msprop:Generator_ColumnVarNameInTable="columnfeatureID" msprop:Generator_ColumnPropNameInRow="featureID" msprop:Generator_ColumnPropNameInTable="featureIDColumn" type="xs:int" /> - <xs:element name="userID" msprop:Generator_UserColumnName="userID" msprop:Generator_ColumnVarNameInTable="columnuserID" msprop:Generator_ColumnPropNameInRow="userID" msprop:Generator_ColumnPropNameInTable="userIDColumn" type="xs:int" minOccurs="0" /> - <xs:element name="dateCreated" msprop:Generator_UserColumnName="dateCreated" msprop:Generator_ColumnVarNameInTable="columndateCreated" msprop:Generator_ColumnPropNameInRow="dateCreated" msprop:Generator_ColumnPropNameInTable="dateCreatedColumn" type="xs:dateTime" minOccurs="0" /> - <xs:element name="statusID" msprop:Generator_UserColumnName="statusID" msprop:Generator_ColumnVarNameInTable="columnstatusID" msprop:Generator_ColumnPropNameInRow="statusID" msprop:Generator_ColumnPropNameInTable="statusIDColumn" type="xs:int" default="0" minOccurs="0" /> + <xs:element name="objectiveID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="objectiveID" msprop:Generator_ColumnPropNameInRow="objectiveID" msprop:Generator_ColumnVarNameInTable="columnobjectiveID" msprop:Generator_ColumnPropNameInTable="objectiveIDColumn" type="xs:int" /> + <xs:element name="featureID" msprop:Generator_UserColumnName="featureID" msprop:Generator_ColumnPropNameInRow="featureID" msprop:Generator_ColumnVarNameInTable="columnfeatureID" msprop:Generator_ColumnPropNameInTable="featureIDColumn" type="xs:int" /> + <xs:element name="userID" msprop:Generator_UserColumnName="userID" msprop:Generator_ColumnPropNameInRow="userID" msprop:Generator_ColumnVarNameInTable="columnuserID" msprop:Generator_ColumnPropNameInTable="userIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="dateCreated" msprop:Generator_UserColumnName="dateCreated" msprop:Generator_ColumnPropNameInRow="dateCreated" msprop:Generator_ColumnVarNameInTable="columndateCreated" msprop:Generator_ColumnPropNameInTable="dateCreatedColumn" type="xs:dateTime" minOccurs="0" /> + <xs:element name="statusID" msprop:Generator_UserColumnName="statusID" msprop:Generator_ColumnPropNameInRow="statusID" msprop:Generator_ColumnVarNameInTable="columnstatusID" msprop:Generator_ColumnPropNameInTable="statusIDColumn" type="xs:int" default="0" minOccurs="0" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="TestCase" msprop:Generator_UserTableName="TestCase" msprop:Generator_RowDeletedName="TestCaseRowDeleted" msprop:Generator_RowChangedName="TestCaseRowChanged" msprop:Generator_RowClassName="TestCaseRow" msprop:Generator_RowChangingName="TestCaseRowChanging" msprop:Generator_RowEvArgName="TestCaseRowChangeEvent" msprop:Generator_RowEvHandlerName="TestCaseRowChangeEventHandler" msprop:Generator_TableClassName="TestCaseDataTable" msprop:Generator_TableVarName="tableTestCase" msprop:Generator_RowDeletingName="TestCaseRowDeleting" msprop:Generator_TablePropName="TestCase"> <xs:complexType> <xs:sequence> - <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnPropNameInTable="nameColumn" minOccurs="0"> + <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInTable="nameColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="255" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="steps" msprop:Generator_UserColumnName="steps" msprop:Generator_ColumnVarNameInTable="columnsteps" msprop:Generator_ColumnPropNameInRow="steps" msprop:Generator_ColumnPropNameInTable="stepsColumn" minOccurs="0"> + <xs:element name="steps" msprop:Generator_UserColumnName="steps" msprop:Generator_ColumnPropNameInRow="steps" msprop:Generator_ColumnVarNameInTable="columnsteps" msprop:Generator_ColumnPropNameInTable="stepsColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="2147483647" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="number" msprop:Generator_UserColumnName="number" msprop:Generator_ColumnVarNameInTable="columnnumber" msprop:Generator_ColumnPropNameInRow="number" msprop:Generator_ColumnPropNameInTable="numberColumn" type="xs:int" minOccurs="0" /> - <xs:element name="dateCreated" msprop:Generator_UserColumnName="dateCreated" msprop:Generator_ColumnVarNameInTable="columndateCreated" msprop:Generator_ColumnPropNameInRow="dateCreated" msprop:Generator_ColumnPropNameInTable="dateCreatedColumn" type="xs:dateTime" minOccurs="0" /> - <xs:element name="dateEdited" msprop:Generator_UserColumnName="dateEdited" msprop:Generator_ColumnVarNameInTable="columndateEdited" msprop:Generator_ColumnPropNameInRow="dateEdited" msprop:Generator_ColumnPropNameInTable="dateEditedColumn" type="xs:dateTime" minOccurs="0" /> - <xs:element name="objectiveID" msprop:Generator_UserColumnName="objectiveID" msprop:Generator_ColumnVarNameInTable="columnobjectiveID" msprop:Generator_ColumnPropNameInRow="objectiveID" msprop:Generator_ColumnPropNameInTable="objectiveIDColumn" type="xs:int" minOccurs="0" /> - <xs:element name="statusID" msprop:Generator_UserColumnName="statusID" msprop:Generator_ColumnVarNameInTable="columnstatusID" msprop:Generator_ColumnPropNameInRow="statusID" msprop:Generator_ColumnPropNameInTable="statusIDColumn" type="xs:int" minOccurs="0" /> - <xs:element name="testcaseID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="testcaseID" msprop:Generator_ColumnPropNameInRow="testcaseID" msprop:Generator_ColumnVarNameInTable="columntestcaseID" msprop:Generator_ColumnPropNameInTable="testcaseIDColumn" type="xs:int" /> - <xs:element name="creatorID" msprop:Generator_UserColumnName="creatorID" msprop:Generator_ColumnPropNameInRow="creatorID" msprop:Generator_ColumnVarNameInTable="columncreatorID" msprop:Generator_ColumnPropNameInTable="creatorIDColumn" type="xs:int" minOccurs="0" /> - <xs:element name="lastEditID" msprop:Generator_UserColumnName="lastEditID" msprop:Generator_ColumnPropNameInRow="lastEditID" msprop:Generator_ColumnVarNameInTable="columnlastEditID" msprop:Generator_ColumnPropNameInTable="lastEditIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="number" msprop:Generator_UserColumnName="number" msprop:Generator_ColumnPropNameInRow="number" msprop:Generator_ColumnVarNameInTable="columnnumber" msprop:Generator_ColumnPropNameInTable="numberColumn" type="xs:int" minOccurs="0" /> + <xs:element name="dateCreated" msprop:Generator_UserColumnName="dateCreated" msprop:Generator_ColumnPropNameInRow="dateCreated" msprop:Generator_ColumnVarNameInTable="columndateCreated" msprop:Generator_ColumnPropNameInTable="dateCreatedColumn" type="xs:dateTime" minOccurs="0" /> + <xs:element name="dateEdited" msprop:Generator_UserColumnName="dateEdited" msprop:Generator_ColumnPropNameInRow="dateEdited" msprop:Generator_ColumnVarNameInTable="columndateEdited" msprop:Generator_ColumnPropNameInTable="dateEditedColumn" type="xs:dateTime" minOccurs="0" /> + <xs:element name="objectiveID" msprop:Generator_UserColumnName="objectiveID" msprop:Generator_ColumnPropNameInRow="objectiveID" msprop:Generator_ColumnVarNameInTable="columnobjectiveID" msprop:Generator_ColumnPropNameInTable="objectiveIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="statusID" msprop:Generator_UserColumnName="statusID" msprop:Generator_ColumnPropNameInRow="statusID" msprop:Generator_ColumnVarNameInTable="columnstatusID" msprop:Generator_ColumnPropNameInTable="statusIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="testcaseID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="testcaseID" msprop:Generator_ColumnVarNameInTable="columntestcaseID" msprop:Generator_ColumnPropNameInRow="testcaseID" msprop:Generator_ColumnPropNameInTable="testcaseIDColumn" type="xs:int" /> + <xs:element name="creatorID" msprop:Generator_UserColumnName="creatorID" msprop:Generator_ColumnVarNameInTable="columncreatorID" msprop:Generator_ColumnPropNameInRow="creatorID" msprop:Generator_ColumnPropNameInTable="creatorIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="lastEditID" msprop:Generator_UserColumnName="lastEditID" msprop:Generator_ColumnVarNameInTable="columnlastEditID" msprop:Generator_ColumnPropNameInRow="lastEditID" msprop:Generator_ColumnPropNameInTable="lastEditIDColumn" type="xs:int" minOccurs="0" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Tags" msprop:Generator_UserTableName="Tags" msprop:Generator_RowDeletedName="TagsRowDeleted" msprop:Generator_RowChangedName="TagsRowChanged" msprop:Generator_RowClassName="TagsRow" msprop:Generator_RowChangingName="TagsRowChanging" msprop:Generator_RowEvArgName="TagsRowChangeEvent" msprop:Generator_RowEvHandlerName="TagsRowChangeEventHandler" msprop:Generator_TableClassName="TagsDataTable" msprop:Generator_TableVarName="tableTags" msprop:Generator_RowDeletingName="TagsRowDeleting" msprop:Generator_TablePropName="Tags"> <xs:complexType> <xs:sequence> - <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnPropNameInTable="nameColumn"> + <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInTable="nameColumn"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> + <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="255" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="tagID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="tagID" msprop:Generator_ColumnPropNameInRow="tagID" msprop:Generator_ColumnVarNameInTable="columntagID" msprop:Generator_ColumnPropNameInTable="tagIDColumn" type="xs:int" /> - <xs:element name="productID" msprop:Generator_UserColumnName="productID" msprop:Generator_ColumnPropNameInRow="productID" msprop:Generator_ColumnVarNameInTable="columnproductID" msprop:Generator_ColumnPropNameInTable="productIDColumn" type="xs:int" /> + <xs:element name="tagID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="tagID" msprop:Generator_ColumnVarNameInTable="columntagID" msprop:Generator_ColumnPropNameInRow="tagID" msprop:Generator_ColumnPropNameInTable="tagIDColumn" type="xs:int" /> + <xs:element name="productID" msprop:Generator_UserColumnName="productID" msprop:Generator_ColumnVarNameInTable="columnproductID" msprop:Generator_ColumnPropNameInRow="productID" msprop:Generator_ColumnPropNameInTable="productIDColumn" type="xs:int" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="product" msprop:Generator_UserTableName="product" msprop:Generator_RowDeletedName="productRowDeleted" msprop:Generator_RowChangedName="productRowChanged" msprop:Generator_RowClassName="productRow" msprop:Generator_RowChangingName="productRowChanging" msprop:Generator_RowEvArgName="productRowChangeEvent" msprop:Generator_RowEvHandlerName="productRowChangeEventHandler" msprop:Generator_TableClassName="productDataTable" msprop:Generator_TableVarName="tableproduct" msprop:Generator_RowDeletingName="productRowDeleting" msprop:Generator_TablePropName="product"> <xs:complexType> <xs:sequence> - <xs:element name="productID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="productID" msprop:Generator_ColumnVarNameInTable="columnproductID" msprop:Generator_ColumnPropNameInRow="productID" msprop:Generator_ColumnPropNameInTable="productIDColumn" type="xs:int" /> - <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnPropNameInTable="nameColumn" minOccurs="0"> + <xs:element name="productID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="productID" msprop:Generator_ColumnPropNameInRow="productID" msprop:Generator_ColumnVarNameInTable="columnproductID" msprop:Generator_ColumnPropNameInTable="productIDColumn" type="xs:int" /> + <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInTable="nameColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="255" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> + <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="2147483647" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="devManager" msprop:Generator_UserColumnName="devManager" msprop:Generator_ColumnVarNameInTable="columndevManager" msprop:Generator_ColumnPropNameInRow="devManager" msprop:Generator_ColumnPropNameInTable="devManagerColumn" type="xs:int" minOccurs="0" /> - <xs:element name="qaManager" msprop:Generator_UserColumnName="qaManager" msprop:Generator_ColumnVarNameInTable="columnqaManager" msprop:Generator_ColumnPropNameInRow="qaManager" msprop:Generator_ColumnPropNameInTable="qaManagerColumn" type="xs:int" minOccurs="0" /> - <xs:element name="devLead" msprop:Generator_UserColumnName="devLead" msprop:Generator_ColumnVarNameInTable="columndevLead" msprop:Generator_ColumnPropNameInRow="devLead" msprop:Generator_ColumnPropNameInTable="devLeadColumn" type="xs:int" minOccurs="0" /> - <xs:element name="qaLead" msprop:Generator_UserColumnName="qaLead" msprop:Generator_ColumnVarNameInTable="columnqaLead" msprop:Generator_ColumnPropNameInRow="qaLead" msprop:Generator_ColumnPropNameInTable="qaLeadColumn" type="xs:int" minOccurs="0" /> - <xs:element name="pm" msprop:Generator_UserColumnName="pm" msprop:Generator_ColumnVarNameInTable="columnpm" msprop:Generator_ColumnPropNameInRow="pm" msprop:Generator_ColumnPropNameInTable="pmColumn" type="xs:int" minOccurs="0" /> - <xs:element name="codeName" msprop:Generator_UserColumnName="codeName" msprop:Generator_ColumnVarNameInTable="columncodeName" msprop:Generator_ColumnPropNameInRow="codeName" msprop:Generator_ColumnPropNameInTable="codeNameColumn" minOccurs="0"> + <xs:element name="devManager" msprop:Generator_UserColumnName="devManager" msprop:Generator_ColumnPropNameInRow="devManager" msprop:Generator_ColumnVarNameInTable="columndevManager" msprop:Generator_ColumnPropNameInTable="devManagerColumn" type="xs:int" minOccurs="0" /> + <xs:element name="qaManager" msprop:Generator_UserColumnName="qaManager" msprop:Generator_ColumnPropNameInRow="qaManager" msprop:Generator_ColumnVarNameInTable="columnqaManager" msprop:Generator_ColumnPropNameInTable="qaManagerColumn" type="xs:int" minOccurs="0" /> + <xs:element name="devLead" msprop:Generator_UserColumnName="devLead" msprop:Generator_ColumnPropNameInRow="devLead" msprop:Generator_ColumnVarNameInTable="columndevLead" msprop:Generator_ColumnPropNameInTable="devLeadColumn" type="xs:int" minOccurs="0" /> + <xs:element name="qaLead" msprop:Generator_UserColumnName="qaLead" msprop:Generator_ColumnPropNameInRow="qaLead" msprop:Generator_ColumnVarNameInTable="columnqaLead" msprop:Generator_ColumnPropNameInTable="qaLeadColumn" type="xs:int" minOccurs="0" /> + <xs:element name="pm" msprop:Generator_UserColumnName="pm" msprop:Generator_ColumnPropNameInRow="pm" msprop:Generator_ColumnVarNameInTable="columnpm" msprop:Generator_ColumnPropNameInTable="pmColumn" type="xs:int" minOccurs="0" /> + <xs:element name="codeName" msprop:Generator_UserColumnName="codeName" msprop:Generator_ColumnPropNameInRow="codeName" msprop:Generator_ColumnVarNameInTable="columncodeName" msprop:Generator_ColumnPropNameInTable="codeNameColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="10" /> @@ -1397,51 +1401,51 @@ <xs:element name="Users" msprop:Generator_UserTableName="Users" msprop:Generator_RowDeletedName="UsersRowDeleted" msprop:Generator_RowChangedName="UsersRowChanged" msprop:Generator_RowClassName="UsersRow" msprop:Generator_RowChangingName="UsersRowChanging" msprop:Generator_RowEvArgName="UsersRowChangeEvent" msprop:Generator_RowEvHandlerName="UsersRowChangeEventHandler" msprop:Generator_TableClassName="UsersDataTable" msprop:Generator_TableVarName="tableUsers" msprop:Generator_RowDeletingName="UsersRowDeleting" msprop:Generator_TablePropName="Users"> <xs:complexType> <xs:sequence> - <xs:element name="email" msprop:Generator_UserColumnName="email" msprop:Generator_ColumnPropNameInRow="email" msprop:Generator_ColumnVarNameInTable="columnemail" msprop:Generator_ColumnPropNameInTable="emailColumn" minOccurs="0"> + <xs:element name="email" msprop:Generator_UserColumnName="email" msprop:Generator_ColumnVarNameInTable="columnemail" msprop:Generator_ColumnPropNameInRow="email" msprop:Generator_ColumnPropNameInTable="emailColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="officePhone" msprop:Generator_UserColumnName="officePhone" msprop:Generator_ColumnPropNameInRow="officePhone" msprop:Generator_ColumnVarNameInTable="columnofficePhone" msprop:Generator_ColumnPropNameInTable="officePhoneColumn" minOccurs="0"> + <xs:element name="officePhone" msprop:Generator_UserColumnName="officePhone" msprop:Generator_ColumnVarNameInTable="columnofficePhone" msprop:Generator_ColumnPropNameInRow="officePhone" msprop:Generator_ColumnPropNameInTable="officePhoneColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="15" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="homePhone" msprop:Generator_UserColumnName="homePhone" msprop:Generator_ColumnPropNameInRow="homePhone" msprop:Generator_ColumnVarNameInTable="columnhomePhone" msprop:Generator_ColumnPropNameInTable="homePhoneColumn" minOccurs="0"> + <xs:element name="homePhone" msprop:Generator_UserColumnName="homePhone" msprop:Generator_ColumnVarNameInTable="columnhomePhone" msprop:Generator_ColumnPropNameInRow="homePhone" msprop:Generator_ColumnPropNameInTable="homePhoneColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="15" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="cellPhone" msprop:Generator_UserColumnName="cellPhone" msprop:Generator_ColumnPropNameInRow="cellPhone" msprop:Generator_ColumnVarNameInTable="columncellPhone" msprop:Generator_ColumnPropNameInTable="cellPhoneColumn" minOccurs="0"> + <xs:element name="cellPhone" msprop:Generator_UserColumnName="cellPhone" msprop:Generator_ColumnVarNameInTable="columncellPhone" msprop:Generator_ColumnPropNameInRow="cellPhone" msprop:Generator_ColumnPropNameInTable="cellPhoneColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="15" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="firstName" msprop:Generator_UserColumnName="firstName" msprop:Generator_ColumnPropNameInRow="firstName" msprop:Generator_ColumnVarNameInTable="columnfirstName" msprop:Generator_ColumnPropNameInTable="firstNameColumn" minOccurs="0"> + <xs:element name="firstName" msprop:Generator_UserColumnName="firstName" msprop:Generator_ColumnVarNameInTable="columnfirstName" msprop:Generator_ColumnPropNameInRow="firstName" msprop:Generator_ColumnPropNameInTable="firstNameColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="lastName" msprop:Generator_UserColumnName="lastName" msprop:Generator_ColumnPropNameInRow="lastName" msprop:Generator_ColumnVarNameInTable="columnlastName" msprop:Generator_ColumnPropNameInTable="lastNameColumn" minOccurs="0"> + <xs:element name="lastName" msprop:Generator_UserColumnName="lastName" msprop:Generator_ColumnVarNameInTable="columnlastName" msprop:Generator_ColumnPropNameInRow="lastName" msprop:Generator_ColumnPropNameInTable="lastNameColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="automation" msprop:Generator_UserColumnName="automation" msprop:Generator_ColumnPropNameInRow="automation" msprop:Generator_ColumnVarNameInTable="columnautomation" msprop:Generator_ColumnPropNameInTable="automationColumn" type="xs:boolean" minOccurs="0" /> - <xs:element name="userID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="userID" msprop:Generator_ColumnVarNameInTable="columnuserID" msprop:Generator_ColumnPropNameInRow="userID" msprop:Generator_ColumnPropNameInTable="userIDColumn" type="xs:int" /> - <xs:element name="username" msprop:Generator_UserColumnName="username" msprop:Generator_ColumnVarNameInTable="columnusername" msprop:Generator_ColumnPropNameInRow="username" msprop:Generator_ColumnPropNameInTable="usernameColumn" minOccurs="0"> + <xs:element name="automation" msprop:Generator_UserColumnName="automation" msprop:Generator_ColumnVarNameInTable="columnautomation" msprop:Generator_ColumnPropNameInRow="automation" msprop:Generator_ColumnPropNameInTable="automationColumn" type="xs:boolean" minOccurs="0" /> + <xs:element name="userID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="userID" msprop:Generator_ColumnPropNameInRow="userID" msprop:Generator_ColumnVarNameInTable="columnuserID" msprop:Generator_ColumnPropNameInTable="userIDColumn" type="xs:int" /> + <xs:element name="username" msprop:Generator_UserColumnName="username" msprop:Generator_ColumnPropNameInRow="username" msprop:Generator_ColumnVarNameInTable="columnusername" msprop:Generator_ColumnPropNameInTable="usernameColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> @@ -1454,22 +1458,22 @@ <xs:element name="Status" msprop:Generator_UserTableName="Status" msprop:Generator_RowDeletedName="StatusRowDeleted" msprop:Generator_RowChangedName="StatusRowChanged" msprop:Generator_RowClassName="StatusRow" msprop:Generator_RowChangingName="StatusRowChanging" msprop:Generator_RowEvArgName="StatusRowChangeEvent" msprop:Generator_RowEvHandlerName="StatusRowChangeEventHandler" msprop:Generator_TableClassName="StatusDataTable" msprop:Generator_TableVarName="tableStatus" msprop:Generator_RowDeletingName="StatusRowDeleting" msprop:Generator_TablePropName="Status"> <xs:complexType> <xs:sequence> - <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> + <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="255" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="statusID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="statusID" msprop:Generator_ColumnVarNameInTable="columnstatusID" msprop:Generator_ColumnPropNameInRow="statusID" msprop:Generator_ColumnPropNameInTable="statusIDColumn" type="xs:int" /> - <xs:element name="statusGroup" msprop:Generator_UserColumnName="statusGroup" msprop:Generator_ColumnVarNameInTable="columnstatusGroup" msprop:Generator_ColumnPropNameInRow="statusGroup" msprop:Generator_ColumnPropNameInTable="statusGroupColumn"> + <xs:element name="statusID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="statusID" msprop:Generator_ColumnPropNameInRow="statusID" msprop:Generator_ColumnVarNameInTable="columnstatusID" msprop:Generator_ColumnPropNameInTable="statusIDColumn" type="xs:int" /> + <xs:element name="statusGroup" msprop:Generator_UserColumnName="statusGroup" msprop:Generator_ColumnPropNameInRow="statusGroup" msprop:Generator_ColumnVarNameInTable="columnstatusGroup" msprop:Generator_ColumnPropNameInTable="statusGroupColumn"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="statusName" msprop:Generator_UserColumnName="statusName" msprop:Generator_ColumnVarNameInTable="columnstatusName" msprop:Generator_ColumnPropNameInRow="statusName" msprop:Generator_ColumnPropNameInTable="statusNameColumn"> + <xs:element name="statusName" msprop:Generator_UserColumnName="statusName" msprop:Generator_ColumnPropNameInRow="statusName" msprop:Generator_ColumnVarNameInTable="columnstatusName" msprop:Generator_ColumnPropNameInTable="statusNameColumn"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> @@ -1482,133 +1486,133 @@ <xs:element name="testCaseTags" msprop:Generator_UserTableName="testCaseTags" msprop:Generator_RowDeletedName="testCaseTagsRowDeleted" msprop:Generator_RowChangedName="testCaseTagsRowChanged" msprop:Generator_RowClassName="testCaseTagsRow" msprop:Generator_RowChangingName="testCaseTagsRowChanging" msprop:Generator_RowEvArgName="testCaseTagsRowChangeEvent" msprop:Generator_RowEvHandlerName="testCaseTagsRowChangeEventHandler" msprop:Generator_TableClassName="testCaseTagsDataTable" msprop:Generator_TableVarName="tabletestCaseTags" msprop:Generator_RowDeletingName="testCaseTagsRowDeleting" msprop:Generator_TablePropName="testCaseTags"> <xs:complexType> <xs:sequence> - <xs:element name="testCaseTagsID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="testCaseTagsID" msprop:Generator_ColumnPropNameInRow="testCaseTagsID" msprop:Generator_ColumnVarNameInTable="columntestCaseTagsID" msprop:Generator_ColumnPropNameInTable="testCaseTagsIDColumn" type="xs:int" /> - <xs:element name="testCaseID" msprop:Generator_UserColumnName="testCaseID" msprop:Generator_ColumnPropNameInRow="testCaseID" msprop:Generator_ColumnVarNameInTable="columntestCaseID" msprop:Generator_ColumnPropNameInTable="testCaseIDColumn" type="xs:int" /> - <xs:element name="tagID" msprop:Generator_UserColumnName="tagID" msprop:Generator_ColumnPropNameInRow="tagID" msprop:Generator_ColumnVarNameInTable="columntagID" msprop:Generator_ColumnPropNameInTable="tagIDColumn" type="xs:int" /> + <xs:element name="testCaseTagsID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="testCaseTagsID" msprop:Generator_ColumnVarNameInTable="columntestCaseTagsID" msprop:Generator_ColumnPropNameInRow="testCaseTagsID" msprop:Generator_ColumnPropNameInTable="testCaseTagsIDColumn" type="xs:int" /> + <xs:element name="testCaseID" msprop:Generator_UserColumnName="testCaseID" msprop:Generator_ColumnVarNameInTable="columntestCaseID" msprop:Generator_ColumnPropNameInRow="testCaseID" msprop:Generator_ColumnPropNameInTable="testCaseIDColumn" type="xs:int" /> + <xs:element name="tagID" msprop:Generator_UserColumnName="tagID" msprop:Generator_ColumnVarNameInTable="columntagID" msprop:Generator_ColumnPropNameInRow="tagID" msprop:Generator_ColumnPropNameInTable="tagIDColumn" type="xs:int" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="version" msprop:Generator_UserTableName="version" msprop:Generator_RowDeletedName="versionRowDeleted" msprop:Generator_RowChangedName="versionRowChanged" msprop:Generator_RowClassName="versionRow" msprop:Generator_RowChangingName="versionRowChanging" msprop:Generator_RowEvArgName="versionRowChangeEvent" msprop:Generator_RowEvHandlerName="versionRowChangeEventHandler" msprop:Generator_TableClassName="versionDataTable" msprop:Generator_TableVarName="tableversion" msprop:Generator_RowDeletingName="versionRowDeleting" msprop:Generator_TablePropName="version"> <xs:complexType> <xs:sequence> - <xs:element name="versionID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="versionID" msprop:Generator_ColumnPropNameInRow="versionID" msprop:Generator_ColumnVarNameInTable="columnversionID" msprop:Generator_ColumnPropNameInTable="versionIDColumn" type="xs:int" /> - <xs:element name="productID" msprop:Generator_UserColumnName="productID" msprop:Generator_ColumnPropNameInRow="productID" msprop:Generator_ColumnVarNameInTable="columnproductID" msprop:Generator_ColumnPropNameInTable="productIDColumn" type="xs:int" /> - <xs:element name="number" msprop:Generator_UserColumnName="number" msprop:Generator_ColumnPropNameInRow="number" msprop:Generator_ColumnVarNameInTable="columnnumber" msprop:Generator_ColumnPropNameInTable="numberColumn"> + <xs:element name="versionID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="versionID" msprop:Generator_ColumnVarNameInTable="columnversionID" msprop:Generator_ColumnPropNameInRow="versionID" msprop:Generator_ColumnPropNameInTable="versionIDColumn" type="xs:int" /> + <xs:element name="productID" msprop:Generator_UserColumnName="productID" msprop:Generator_ColumnVarNameInTable="columnproductID" msprop:Generator_ColumnPropNameInRow="productID" msprop:Generator_ColumnPropNameInTable="productIDColumn" type="xs:int" /> + <xs:element name="number" msprop:Generator_UserColumnName="number" msprop:Generator_ColumnVarNameInTable="columnnumber" msprop:Generator_ColumnPropNameInRow="number" msprop:Generator_ColumnPropNameInTable="numberColumn"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="dateCreated" msprop:Generator_UserColumnName="dateCreated" msprop:Generator_ColumnPropNameInRow="dateCreated" msprop:Generator_ColumnVarNameInTable="columndateCreated" msprop:Generator_ColumnPropNameInTable="dateCreatedColumn" type="xs:dateTime" /> - <xs:element name="active" msprop:Generator_UserColumnName="active" msprop:Generator_ColumnPropNameInRow="active" msprop:Generator_ColumnVarNameInTable="columnactive" msprop:Generator_ColumnPropNameInTable="activeColumn" type="xs:boolean" /> + <xs:element name="dateCreated" msprop:Generator_UserColumnName="dateCreated" msprop:Generator_ColumnVarNameInTable="columndateCreated" msprop:Generator_ColumnPropNameInRow="dateCreated" msprop:Generator_ColumnPropNameInTable="dateCreatedColumn" type="xs:dateTime" /> + <xs:element name="active" msprop:Generator_UserColumnName="active" msprop:Generator_ColumnVarNameInTable="columnactive" msprop:Generator_ColumnPropNameInRow="active" msprop:Generator_ColumnPropNameInTable="activeColumn" type="xs:boolean" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="versionTestCase" msprop:Generator_UserTableName="versionTestCase" msprop:Generator_RowDeletedName="versionTestCaseRowDeleted" msprop:Generator_RowChangedName="versionTestCaseRowChanged" msprop:Generator_RowClassName="versionTestCaseRow" msprop:Generator_RowChangingName="versionTestCaseRowChanging" msprop:Generator_RowEvArgName="versionTestCaseRowChangeEvent" msprop:Generator_RowEvHandlerName="versionTestCaseRowChangeEventHandler" msprop:Generator_TableClassName="versionTestCaseDataTable" msprop:Generator_TableVarName="tableversionTestCase" msprop:Generator_RowDeletingName="versionTestCaseRowDeleting" msprop:Generator_TablePropName="versionTestCase"> <xs:complexType> <xs:sequence> - <xs:element name="versionTestCaseID" msprop:Generator_UserColumnName="versionTestCaseID" msprop:Generator_ColumnPropNameInRow="versionTestCaseID" msprop:Generator_ColumnVarNameInTable="columnversionTestCaseID" msprop:Generator_ColumnPropNameInTable="versionTestCaseIDColumn" type="xs:int" /> - <xs:element name="testCaseID" msprop:Generator_UserColumnName="testCaseID" msprop:Generator_ColumnPropNameInRow="testCaseID" msprop:Generator_ColumnVarNameInTable="columntestCaseID" msprop:Generator_ColumnPropNameInTable="testCaseIDColumn" type="xs:int" minOccurs="0" /> - <xs:element name="versionID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="versionID" msprop:Generator_ColumnPropNameInRow="versionID" msprop:Generator_ColumnVarNameInTable="columnversionID" msprop:Generator_ColumnPropNameInTable="versionIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="versionTestCaseID" msprop:Generator_UserColumnName="versionTestCaseID" msprop:Generator_ColumnVarNameInTable="columnversionTestCaseID" msprop:Generator_ColumnPropNameInRow="versionTestCaseID" msprop:Generator_ColumnPropNameInTable="versionTestCaseIDColumn" type="xs:int" /> + <xs:element name="testCaseID" msprop:Generator_UserColumnName="testCaseID" msprop:Generator_ColumnVarNameInTable="columntestCaseID" msprop:Generator_ColumnPropNameInRow="testCaseID" msprop:Generator_ColumnPropNameInTable="testCaseIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="versionID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="versionID" msprop:Generator_ColumnVarNameInTable="columnversionID" msprop:Generator_ColumnPropNameInRow="versionID" msprop:Generator_ColumnPropNameInTable="versionIDColumn" type="xs:int" minOccurs="0" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="featureVersion" msprop:Generator_UserTableName="featureVersion" msprop:Generator_RowDeletedName="featureVersionRowDeleted" msprop:Generator_RowChangedName="featureVersionRowChanged" msprop:Generator_RowClassName="featureVersionRow" msprop:Generator_RowChangingName="featureVersionRowChanging" msprop:Generator_RowEvArgName="featureVersionRowChangeEvent" msprop:Generator_RowEvHandlerName="featureVersionRowChangeEventHandler" msprop:Generator_TableClassName="featureVersionDataTable" msprop:Generator_TableVarName="tablefeatureVersion" msprop:Generator_RowDeletingName="featureVersionRowDeleting" msprop:Generator_TablePropName="featureVersion"> <xs:complexType> <xs:sequence> - <xs:element name="featureVersionID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="featureVersionID" msprop:Generator_ColumnPropNameInRow="featureVersionID" msprop:Generator_ColumnVarNameInTable="columnfeatureVersionID" msprop:Generator_ColumnPropNameInTable="featureVersionIDColumn" type="xs:int" /> - <xs:element name="featureID" msprop:Generator_UserColumnName="featureID" msprop:Generator_ColumnPropNameInRow="featureID" msprop:Generator_ColumnVarNameInTable="columnfeatureID" msprop:Generator_ColumnPropNameInTable="featureIDColumn" type="xs:int" minOccurs="0" /> - <xs:element name="versionID" msprop:Generator_UserColumnName="versionID" msprop:Generator_ColumnPropNameInRow="versionID" msprop:Generator_ColumnVarNameInTable="columnversionID" msprop:Generator_ColumnPropNameInTable="versionIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="featureVersionID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="featureVersionID" msprop:Generator_ColumnVarNameInTable="columnfeatureVersionID" msprop:Generator_ColumnPropNameInRow="featureVersionID" msprop:Generator_ColumnPropNameInTable="featureVersionIDColumn" type="xs:int" /> + <xs:element name="featureID" msprop:Generator_UserColumnName="featureID" msprop:Generator_ColumnVarNameInTable="columnfeatureID" msprop:Generator_ColumnPropNameInRow="featureID" msprop:Generator_ColumnPropNameInTable="featureIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="versionID" msprop:Generator_UserColumnName="versionID" msprop:Generator_ColumnVarNameInTable="columnversionID" msprop:Generator_ColumnPropNameInRow="versionID" msprop:Generator_ColumnPropNameInTable="versionIDColumn" type="xs:int" minOccurs="0" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Assignments" msprop:Generator_UserTableName="Assignments" msprop:Generator_RowDeletedName="AssignmentsRowDeleted" msprop:Generator_RowChangedName="AssignmentsRowChanged" msprop:Generator_RowClassName="AssignmentsRow" msprop:Generator_RowChangingName="AssignmentsRowChanging" msprop:Generator_RowEvArgName="AssignmentsRowChangeEvent" msprop:Generator_RowEvHandlerName="AssignmentsRowChangeEventHandler" msprop:Generator_TableClassName="AssignmentsDataTable" msprop:Generator_TableVarName="tableAssignments" msprop:Generator_RowDeletingName="AssignmentsRowDeleting" msprop:Generator_TablePropName="Assignments"> <xs:complexType> <xs:sequence> - <xs:element name="assignmentID" msdata:ReadOnly="true" msprop:Generator_UserColumnName="assignmentID" msprop:Generator_ColumnVarNameInTable="columnassignmentID" msprop:Generator_ColumnPropNameInRow="assignmentID" msprop:Generator_ColumnPropNameInTable="assignmentIDColumn" type="xs:int" /> - <xs:element name="dateAssigned" msdata:ReadOnly="true" msprop:Generator_UserColumnName="dateAssigned" msprop:Generator_ColumnVarNameInTable="columndateAssigned" msprop:Generator_ColumnPropNameInRow="dateAssigned" msprop:Generator_ColumnPropNameInTable="dateAssignedColumn" type="xs:dateTime" minOccurs="0" /> - <xs:element name="dateFinished" msdata:ReadOnly="true" msprop:Generator_UserColumnName="dateFinished" msprop:Generator_ColumnVarNameInTable="columndateFinished" msprop:Generator_ColumnPropNameInRow="dateFinished" msprop:Generator_ColumnPropNameInTable="dateFinishedColumn" type="xs:dateTime" minOccurs="0" /> - <xs:element name="dateDue" msdata:ReadOnly="true" msprop:Generator_UserColumnName="dateDue" msprop:Generator_ColumnVarNameInTable="columndateDue" msprop:Generator_ColumnPropNameInRow="dateDue" msprop:Generator_ColumnPropNameInTable="dateDueColumn" type="xs:dateTime" minOccurs="0" /> - <xs:element name="workOrderID" msdata:ReadOnly="true" msprop:Generator_UserColumnName="workOrderID" msprop:Generator_ColumnVarNameInTable="columnworkOrderID" msprop:Generator_ColumnPropNameInRow="workOrderID" msprop:Generator_ColumnPropNameInTable="workOrderIDColumn" type="xs:int" minOccurs="0" /> - <xs:element name="actionItemID" msdata:ReadOnly="true" msprop:Generator_UserColumnName="actionItemID" msprop:Generator_ColumnVarNameInTable="columnactionItemID" msprop:Generator_ColumnPropNameInRow="actionItemID" msprop:Generator_ColumnPropNameInTable="actionItemIDColumn" type="xs:int" minOccurs="0" /> - <xs:element name="highPriorityID" msdata:ReadOnly="true" msprop:Generator_UserColumnName="highPriorityID" msprop:Generator_ColumnVarNameInTable="columnhighPriorityID" msprop:Generator_ColumnPropNameInRow="highPriorityID" msprop:Generator_ColumnPropNameInTable="highPriorityIDColumn" type="xs:boolean" minOccurs="0" /> - <xs:element name="creatorID" msprop:Generator_UserColumnName="creatorID" msprop:Generator_ColumnVarNameInTable="columncreatorID" msprop:Generator_ColumnPropNameInRow="creatorID" msprop:Generator_ColumnPropNameInTable="creatorIDColumn" type="xs:int" minOccurs="0" /> - <xs:element name="statusID" msdata:Caption="assignmentStatusID" msprop:Generator_UserColumnName="statusID" msprop:Generator_ColumnVarNameInTable="columnstatusID" msprop:Generator_ColumnPropNameInRow="statusID" msprop:Generator_ColumnPropNameInTable="statusIDColumn" type="xs:int" minOccurs="0" /> - <xs:element name="assignedID" msprop:Generator_UserColumnName="assignedID" msprop:Generator_ColumnVarNameInTable="columnassignedID" msprop:Generator_ColumnPropNameInRow="assignedID" msprop:Generator_ColumnPropNameInTable="assignedIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="assignmentID" msdata:ReadOnly="true" msprop:Generator_UserColumnName="assignmentID" msprop:Generator_ColumnPropNameInRow="assignmentID" msprop:Generator_ColumnVarNameInTable="columnassignmentID" msprop:Generator_ColumnPropNameInTable="assignmentIDColumn" type="xs:int" /> + <xs:element name="dateAssigned" msdata:ReadOnly="true" msprop:Generator_UserColumnName="dateAssigned" msprop:Generator_ColumnPropNameInRow="dateAssigned" msprop:Generator_ColumnVarNameInTable="columndateAssigned" msprop:Generator_ColumnPropNameInTable="dateAssignedColumn" type="xs:dateTime" minOccurs="0" /> + <xs:element name="dateFinished" msdata:ReadOnly="true" msprop:Generator_UserColumnName="dateFinished" msprop:Generator_ColumnPropNameInRow="dateFinished" msprop:Generator_ColumnVarNameInTable="columndateFinished" msprop:Generator_ColumnPropNameInTable="dateFinishedColumn" type="xs:dateTime" minOccurs="0" /> + <xs:element name="dateDue" msdata:ReadOnly="true" msprop:Generator_UserColumnName="dateDue" msprop:Generator_ColumnPropNameInRow="dateDue" msprop:Generator_ColumnVarNameInTable="columndateDue" msprop:Generator_ColumnPropNameInTable="dateDueColumn" type="xs:dateTime" minOccurs="0" /> + <xs:element name="workOrderID" msdata:ReadOnly="true" msprop:Generator_UserColumnName="workOrderID" msprop:Generator_ColumnPropNameInRow="workOrderID" msprop:Generator_ColumnVarNameInTable="columnworkOrderID" msprop:Generator_ColumnPropNameInTable="workOrderIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="actionItemID" msdata:ReadOnly="true" msprop:Generator_UserColumnName="actionItemID" msprop:Generator_ColumnPropNameInRow="actionItemID" msprop:Generator_ColumnVarNameInTable="columnactionItemID" msprop:Generator_ColumnPropNameInTable="actionItemIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="highPriorityID" msdata:ReadOnly="true" msprop:Generator_UserColumnName="highPriorityID" msprop:Generator_ColumnPropNameInRow="highPriorityID" msprop:Generator_ColumnVarNameInTable="columnhighPriorityID" msprop:Generator_ColumnPropNameInTable="highPriorityIDColumn" type="xs:boolean" minOccurs="0" /> + <xs:element name="creatorID" msprop:Generator_UserColumnName="creatorID" msprop:Generator_ColumnPropNameInRow="creatorID" msprop:Generator_ColumnVarNameInTable="columncreatorID" msprop:Generator_ColumnPropNameInTable="creatorIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="statusID" msdata:Caption="assignmentStatusID" msprop:Generator_UserColumnName="statusID" msprop:Generator_ColumnPropNameInRow="statusID" msprop:Generator_ColumnVarNameInTable="columnstatusID" msprop:Generator_ColumnPropNameInTable="statusIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="assignedID" msprop:Generator_UserColumnName="assignedID" msprop:Generator_ColumnPropNameInRow="assignedID" msprop:Generator_ColumnVarNameInTable="columnassignedID" msprop:Generator_ColumnPropNameInTable="assignedIDColumn" type="xs:int" minOccurs="0" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="ActionItem" msprop:Generator_UserTableName="ActionItem" msprop:Generator_RowDeletedName="ActionItemRowDeleted" msprop:Generator_RowChangedName="ActionItemRowChanged" msprop:Generator_RowClassName="ActionItemRow" msprop:Generator_RowChangingName="ActionItemRowChanging" msprop:Generator_RowEvArgName="ActionItemRowChangeEvent" msprop:Generator_RowEvHandlerName="ActionItemRowChangeEventHandler" msprop:Generator_TableClassName="ActionItemDataTable" msprop:Generator_TableVarName="tableActionItem" msprop:Generator_RowDeletingName="ActionItemRowDeleting" msprop:Generator_TablePropName="ActionItem"> <xs:complexType> <xs:sequence> - <xs:element name="actionItemID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="actionItemID" msprop:Generator_ColumnVarNameInTable="columnactionItemID" msprop:Generator_ColumnPropNameInRow="actionItemID" msprop:Generator_ColumnPropNameInTable="actionItemIDColumn" type="xs:int" /> - <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnPropNameInTable="nameColumn"> + <xs:element name="actionItemID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="actionItemID" msprop:Generator_ColumnPropNameInRow="actionItemID" msprop:Generator_ColumnVarNameInTable="columnactionItemID" msprop:Generator_ColumnPropNameInTable="actionItemIDColumn" type="xs:int" /> + <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInTable="nameColumn"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="255" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> + <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="2147483647" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="percentComplete" msprop:Generator_UserColumnName="percentComplete" msprop:Generator_ColumnVarNameInTable="columnpercentComplete" msprop:Generator_ColumnPropNameInRow="percentComplete" msprop:Generator_ColumnPropNameInTable="percentCompleteColumn" type="xs:int" /> - <xs:element name="testPassID" msprop:Generator_UserColumnName="testPassID" msprop:Generator_ColumnPropNameInRow="testPassID" msprop:Generator_ColumnVarNameInTable="columntestPassID" msprop:Generator_ColumnPropNameInTable="testPassIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="percentComplete" msprop:Generator_UserColumnName="percentComplete" msprop:Generator_ColumnPropNameInRow="... [truncated message content] |
From: <ro...@us...> - 2006-07-07 19:58:18
|
Revision: 85 Author: rouquin Date: 2006-07-07 12:57:59 -0700 (Fri, 07 Jul 2006) ViewCVS: http://svn.sourceforge.net/tcdb/?rev=85&view=rev Log Message: ----------- Added Test Pass to Action Item and upgraded Atlas to fix one of their bugs which was bugging me. Modified Paths: -------------- WebPrototype/ActionItemEdit.aspx WebPrototype/ActionItemEdit.aspx.cs WebPrototype/App_Code/DummyDataSet.xsd WebPrototype/App_Code/DummyDataSet.xss WebPrototype/App_Data/ASPNETDB.MDF WebPrototype/App_Data/Database.mdf WebPrototype/App_Data/Database_log.LDF WebPrototype/App_Data/aspnetdb_log.ldf WebPrototype/Bin/Microsoft.Web.Atlas.dll Modified: WebPrototype/ActionItemEdit.aspx =================================================================== --- WebPrototype/ActionItemEdit.aspx 2006-07-07 18:12:39 UTC (rev 84) +++ WebPrototype/ActionItemEdit.aspx 2006-07-07 19:57:59 UTC (rev 85) @@ -53,11 +53,13 @@ <div class="xboxcontent"> <table width="700"> <tr> - <td colspan=2 width="60%"> + <td colspan=2 width="60%" align=left> <asp:ImageButton ID="priorityImg" runat="server" Enabled="False" Height="19px" ImageUrl="~/Images/no-exclamation.jpg" OnClick="priorityImg_Click" Width="20px" /> <asp:Label ID="nameLabel" runat="server" Text='<%# Eval("name") %>' Style="font-size: large; - color: black; font-family: Arial;"></asp:Label></td> + color: black; font-family: Arial;"></asp:Label><br /> + <strong>Test Pass:</strong> + <asp:Label ID="testPassLbl" runat="server" Text='<%# Eval("testPassName") %>'></asp:Label></td> <td align=right colspan=2 width="40%"> <strong>Assigned: </strong><asp:Label ID="dateAssignedLbl" runat="server" Text='<%# Eval("dateAssigned") %>'></asp:Label><br /> @@ -66,8 +68,7 @@ </tr> <tr> <td colspan="4" class="hr"> - <img alt="" src="images/spacer.gif" height="5" /><br /> - </td> + <img alt="" src="images/spacer.gif" height="5" /></td> </tr> <tr> <td colspan=4 valign=top> @@ -77,8 +78,7 @@ </tr> <tr> <td colspan="4" class="hr"> - <img alt="" src="images/spacer.gif" height="5" /><br /> - </td> + <img alt="" src="images/spacer.gif" height="5" /></td> </tr> <tr> <td colspan=2 width="55%"> @@ -106,12 +106,17 @@ <div class="xboxcontent"> <table width=700> <tr> - <td colspan="2" width="55%"> + <td colspan="2" width="55%" align=left valign=top> <strong> <asp:ImageButton ID="priorityImg" runat="server" Height="19px" ImageUrl="~/Images/no-exclamation.jpg" OnClick="priorityImg_Click" Width="20px" /> Name: </strong><asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("name") %>' Width="70%" /> - </td> + <br /> + <strong>Test Pass:</strong> + <asp:DropDownList ID="DropDownList1" runat="server" AppendDataBoundItems="True" DataSourceID="TestPassDataSource" + DataTextField="name" DataValueField="testPassID" SelectedValue='<%# Bind("testPassID") %>'> + <asp:ListItem Selected="True" Value="-1"><none></asp:ListItem> + </asp:DropDownList></td> <td align=right colspan=2 width="45%"> <strong>Assigned: <asp:Label ID="dateAssignedLbl" runat="server" Font-Bold="False" Text='<%# Eval("dateAssigned") %>'></asp:Label></strong><br /> @@ -173,11 +178,17 @@ <div class="xboxcontent"> <table width=700> <tr> - <td colspan="2" width="55%"> + <td colspan="2" width="55%" align=left valign=top> <strong> <asp:ImageButton ID="priorityImg" runat="server" Height="19px" ImageUrl="~/Images/no-exclamation.jpg" OnClick="priorityImg_Click" Width="20px" /> Name:</strong> <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("name") %>' Width="70%" /> + <br /> + <strong>Test Pass:</strong> + <asp:DropDownList ID="DropDownList1" runat="server" AppendDataBoundItems="True" DataSourceID="TestPassDataSource" + DataTextField="name" DataValueField="testPassID" SelectedValue='<%# Bind("testPassID") %>'> + <asp:ListItem Selected="True" Value="-1"><none></asp:ListItem> + </asp:DropDownList> <td align=right colspan=2 width="45%"> <strong>Assigned: </strong> <asp:Label ID="dateAssignedLbl" runat="server" Text="Label"></asp:Label><br /> @@ -236,11 +247,16 @@ <UpdateParameters> <asp:Parameter Name="name" Type="String" /> <asp:Parameter Name="description" Type="String" /> + <asp:Parameter Name="testPassID" Type="Int32" /> <asp:Parameter Name="original_actionItemID" Type="Int32" /> </UpdateParameters> <InsertParameters> <asp:Parameter Name="name" Type="String" /> <asp:Parameter Name="description" Type="String" /> + <asp:Parameter Name="testPassID" Type="Int32" /> </InsertParameters> </asp:ObjectDataSource> + <asp:ObjectDataSource ID="TestPassDataSource" runat="server" OldValuesParameterFormatString="original_{0}" + SelectMethod="GetAllTestPassData" TypeName="DummyDataSetTableAdapters.testPassTableAdapter"> + </asp:ObjectDataSource> </asp:Content> Modified: WebPrototype/ActionItemEdit.aspx.cs =================================================================== --- WebPrototype/ActionItemEdit.aspx.cs 2006-07-07 18:12:39 UTC (rev 84) +++ WebPrototype/ActionItemEdit.aspx.cs 2006-07-07 19:57:59 UTC (rev 85) @@ -29,7 +29,8 @@ FormView1.ChangeMode(FormViewMode.Insert); ImageButton priorityImg = (ImageButton)FormView1.FindControl("priorityImg"); - if (priorityImg != null && priorityImg.ImageUrl == "~/Images/exclamation.jpg") priority = true; + if (priorityImg != null && priorityImg.ImageUrl == "Images/exclamation.jpg") + priority = true; ObjectDataSource notes = (ObjectDataSource)Master.FindControl("NoteDataSource"); notes.SelectParameters["tableName"].DefaultValue = "ActionItem"; @@ -182,12 +183,12 @@ { if (priority) { - priorityImg.ImageUrl = "~/Images/no-exclamation.jpg"; + priorityImg.ImageUrl = "Images/no-exclamation.jpg"; priority = false; } else { - priorityImg.ImageUrl = "~/Images/exclamation.jpg"; + priorityImg.ImageUrl = "Images/exclamation.jpg"; priority = true; } } Modified: WebPrototype/App_Code/DummyDataSet.xsd =================================================================== --- WebPrototype/App_Code/DummyDataSet.xsd 2006-07-07 18:12:39 UTC (rev 84) +++ WebPrototype/App_Code/DummyDataSet.xsd 2006-07-07 19:57:59 UTC (rev 85) @@ -814,6 +814,7 @@ <Mapping SourceColumn="name" DataSetColumn="name" /> <Mapping SourceColumn="description" DataSetColumn="description" /> <Mapping SourceColumn="percentComplete" DataSetColumn="percentComplete" /> + <Mapping SourceColumn="testPassID" DataSetColumn="testPassID" /> </Mappings> <Sources> <DbSource ConnectionRef="DummyDatabaseConnectionString (Web.config)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="True" GeneratorSourceName="DeleteByID" Modifier="Public" Name="DeleteByID" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetDataBy" UserSourceName="DeleteByID"> @@ -833,11 +834,12 @@ <DbCommand CommandType="Text" ModifiedByUser="True"> <CommandText>SELECT ActionItem.actionItemID, ActionItem.name, ActionItem.description, ActionItem.percentComplete, Assignments.dateAssigned, Assignments.dateFinished, Assignments.dateDue, Assignments.statusID, Assignments.highPriorityID, u1.firstName + ' ' + u1.lastName AS createdBy, Assignments.creatorID, - u2.firstName + ' ' + u2.lastName AS assignedTo, Assignments.assignedID + u2.firstName + ' ' + u2.lastName AS assignedTo, Assignments.assignedID, ActionItem.testPassID, testPass.name AS testPassName FROM Assignments INNER JOIN ActionItem ON ActionItem.actionItemID = Assignments.actionItemID LEFT OUTER JOIN Users AS u1 ON u1.userID = Assignments.creatorID LEFT OUTER JOIN - Users AS u2 ON u2.userID = Assignments.assignedID + Users AS u2 ON u2.userID = Assignments.assignedID LEFT OUTER JOIN + testPass ON testPass.testPassID=ActionItem.testPassID WHERE (ActionItem.actionItemID = @actionItemID)</CommandText> <Parameters> <Parameter AllowDbNull="False" AutogeneratedName="actionItemID" ColumnName="actionItemID" DataSourceName="[C:\DOCUMENTS AND SETTINGS\MICHAELT\DESKTOP\TCDB\WEBPROTOTYPE\APP_DATA\DATABASE.MDF].dbo.ActionItem" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@actionItemID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="actionItemID" SourceColumnNullMapping="False" SourceVersion="Current"> @@ -850,13 +852,15 @@ <InsertCommand> <DbCommand CommandType="Text" ModifiedByUser="True"> <CommandText>INSERT INTO ActionItem - (name, description) -VALUES (@name,@description)</CommandText> + (name, description,testPassID) +VALUES (@name,@description,@testPassID)</CommandText> <Parameters> - <Parameter AllowDbNull="True" AutogeneratedName="name" ColumnName="name" DataSourceName="[C:\DOCUMENTS AND SETTINGS\MICHAELT\DESKTOP\TCDB\WEBPROTOTYPE\APP_DATA\DATABASE.MDF].dbo.ActionItem" DataTypeServer="varchar(255)" DbType="AnsiString" Direction="Input" ParameterName="@name" Precision="0" ProviderType="VarChar" Scale="0" Size="255" SourceColumn="name" SourceColumnNullMapping="False" SourceVersion="Current"> + <Parameter AllowDbNull="False" AutogeneratedName="name" ColumnName="name" DataSourceName="[C:\DOCUMENTS AND SETTINGS\MICHAELT\DESKTOP\TCDB\WEBPROTOTYPE\APP_DATA\DATABASE.MDF].dbo.ActionItem" DataTypeServer="varchar(255)" DbType="AnsiString" Direction="Input" ParameterName="@name" Precision="0" ProviderType="VarChar" Scale="0" Size="255" SourceColumn="name" SourceColumnNullMapping="False" SourceVersion="Current"> </Parameter> <Parameter AllowDbNull="True" AutogeneratedName="description" ColumnName="description" DataSourceName="[C:\DOCUMENTS AND SETTINGS\MICHAELT\DESKTOP\TCDB\WEBPROTOTYPE\APP_DATA\DATABASE.MDF].dbo.ActionItem" DataTypeServer="text" DbType="AnsiString" Direction="Input" ParameterName="@description" Precision="0" ProviderType="Text" Scale="0" Size="2147483647" SourceColumn="description" SourceColumnNullMapping="False" SourceVersion="Current"> </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="testPassID" ColumnName="testPassID" DataSourceName="[C:\DOCUMENTS AND SETTINGS\MICHAELT\DESKTOP\TCDB\WEBPROTOTYPE\APP_DATA\DATABASE.MDF].dbo.ActionItem" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@testPassID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="testPassID" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> </Parameters> </DbCommand> </InsertCommand> @@ -865,13 +869,15 @@ <UpdateCommand> <DbCommand CommandType="Text" ModifiedByUser="True"> <CommandText>UPDATE ActionItem -SET name = @name, description = @description +SET name = @name, description = @description, testPassID = @testPassID WHERE (actionItemID = @original_actionItemID)</CommandText> <Parameters> - <Parameter AllowDbNull="True" AutogeneratedName="name" ColumnName="name" DataSourceName="[C:\DOCUMENTS AND SETTINGS\MICHAELT\DESKTOP\TCDB\WEBPROTOTYPE\APP_DATA\DATABASE.MDF].dbo.ActionItem" DataTypeServer="varchar(255)" DbType="AnsiString" Direction="Input" ParameterName="@name" Precision="0" ProviderType="VarChar" Scale="0" Size="255" SourceColumn="name" SourceColumnNullMapping="False" SourceVersion="Current"> + <Parameter AllowDbNull="False" AutogeneratedName="name" ColumnName="name" DataSourceName="[C:\DOCUMENTS AND SETTINGS\MICHAELT\DESKTOP\TCDB\WEBPROTOTYPE\APP_DATA\DATABASE.MDF].dbo.ActionItem" DataTypeServer="varchar(255)" DbType="AnsiString" Direction="Input" ParameterName="@name" Precision="0" ProviderType="VarChar" Scale="0" Size="255" SourceColumn="name" SourceColumnNullMapping="False" SourceVersion="Current"> </Parameter> <Parameter AllowDbNull="True" AutogeneratedName="description" ColumnName="description" DataSourceName="[C:\DOCUMENTS AND SETTINGS\MICHAELT\DESKTOP\TCDB\WEBPROTOTYPE\APP_DATA\DATABASE.MDF].dbo.ActionItem" DataTypeServer="text" DbType="AnsiString" Direction="Input" ParameterName="@description" Precision="0" ProviderType="Text" Scale="0" Size="2147483647" SourceColumn="description" SourceColumnNullMapping="False" SourceVersion="Current"> </Parameter> + <Parameter AllowDbNull="True" AutogeneratedName="testPassID" ColumnName="testPassID" DataSourceName="[C:\DOCUMENTS AND SETTINGS\MICHAELT\DESKTOP\TCDB\WEBPROTOTYPE\APP_DATA\DATABASE.MDF].dbo.ActionItem" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@testPassID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="testPassID" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> <Parameter AllowDbNull="False" AutogeneratedName="original_actionItemID" ColumnName="actionItemID" DataSourceName="[C:\DOCUMENTS AND SETTINGS\MICHAELT\DESKTOP\TCDB\WEBPROTOTYPE\APP_DATA\DATABASE.MDF].dbo.ActionItem" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@original_actionItemID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="actionItemID" SourceColumnNullMapping="False" SourceVersion="Original"> </Parameter> </Parameters> @@ -914,17 +920,18 @@ <DbSource ConnectionRef="DummyDatabaseConnectionString (Web.config)" DbObjectType="Unknown" GenerateMethods="Get" GenerateShortCommands="True" GeneratorGetMethodName="GetAssignmentDataByID" GetMethodModifier="Public" GetMethodName="GetAssignmentDataByID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetAssignmentDataByID" UserSourceName="GetAssignmentDataByID1"> <SelectCommand> <DbCommand CommandType="Text" ModifiedByUser="True"> - <CommandText>SELECT WorkOrder.workOrderID, WorkOrder.name, WorkOrder.testPassID, Assignments.assignmentID, u1.firstName + ' ' + u1.lastName AS createdBy, - Assignments.creatorID, u2.firstName + ' ' + u2.lastName AS assignedTo, Assignments.assignedID, Assignments.dateAssigned, - Assignments.dateFinished, Assignments.dateDue, Assignments.statusID, Assignments.highPriorityID, os.friendlyName AS osName, platform.osID, - architecture.name AS archName, platform.architectureID + <CommandText>SELECT WorkOrder.workOrderID, WorkOrder.name, WorkOrder.testPassID, testPass.name AS testPassName, Assignments.assignmentID, + u1.firstName + ' ' + u1.lastName AS createdBy, Assignments.creatorID, u2.firstName + ' ' + u2.lastName AS assignedTo, Assignments.assignedID, + Assignments.dateAssigned, Assignments.dateFinished, Assignments.dateDue, Assignments.statusID, Assignments.highPriorityID, + os.friendlyName AS osName, platform.osID, architecture.name AS archName, platform.architectureID FROM WorkOrder INNER JOIN Assignments ON WorkOrder.workOrderID = Assignments.workOrderID LEFT OUTER JOIN platform ON platform.platformID = WorkOrder.platformID LEFT OUTER JOIN Users AS u1 ON u1.userID = Assignments.creatorID LEFT OUTER JOIN Users AS u2 ON u2.userID = Assignments.assignedID LEFT OUTER JOIN os ON os.osID = platform.osID LEFT OUTER JOIN - architecture ON architecture.architectureID = platform.architectureID + architecture ON architecture.architectureID = platform.architectureID LEFT OUTER JOIN + testPass ON testPass.testPassID = WorkOrder.testPassID WHERE (WorkOrder.workOrderID = @workOrderID)</CommandText> <Parameters> <Parameter AllowDbNull="False" AutogeneratedName="workOrderID" ColumnName="workOrderID" DataSourceName="[C:\DOCUMENTS AND SETTINGS\MICHAELT\DESKTOP\TCDB\WEBPROTOTYPE\APP_DATA\DATABASE.MDF].dbo.WorkOrder" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@workOrderID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="workOrderID" SourceColumnNullMapping="False" SourceVersion="Current"> @@ -1185,7 +1192,7 @@ </TableAdapter> <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="notesTableAdapter" GeneratorDataComponentClassName="notesTableAdapter" Name="notes" UserDataComponentName="notesTableAdapter"> <MainSource> - <DbSource ConnectionRef="DummyDatabaseConnectionString (Web.config)" DbObjectName="dbo.notes" DbObjectType="Table" GenerateMethods="Get" GenerateShortCommands="False" GeneratorGetMethodName="GetAllNotes" GetMethodModifier="Public" GetMethodName="GetAllNotes" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="False" UserGetMethodName="GetAllNotes" UserSourceName="Fill"> + <DbSource ConnectionRef="DummyDatabaseConnectionString (Web.config)" DbObjectName="dbo.notes" DbObjectType="Table" GenerateMethods="Get" GenerateShortCommands="False" GeneratorGetMethodName="GetAllNotes" GetMethodModifier="Public" GetMethodName="GetAllNotes" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="False" UserGetMethodName="GetAllNotes" UserSourceName="GetAllNotes"> <SelectCommand> <DbCommand CommandType="Text" ModifiedByUser="True"> <CommandText>SELECT * FROM notes</CommandText> @@ -1215,7 +1222,7 @@ </DbCommand> </DeleteCommand> </DbSource> - <DbSource ConnectionRef="DummyDatabaseConnectionString (Web.config)" DbObjectName="dbo.notes" DbObjectType="Table" GenerateMethods="Get" GenerateShortCommands="True" GeneratorGetMethodName="GetNotesByTable" GetMethodModifier="Public" GetMethodName="GetNotesByTable" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetNotesByTable" UserSourceName="FillBy"> + <DbSource ConnectionRef="DummyDatabaseConnectionString (Web.config)" DbObjectName="dbo.notes" DbObjectType="Table" GenerateMethods="Get" GenerateShortCommands="True" GeneratorGetMethodName="GetNotesByTable" GetMethodModifier="Public" GetMethodName="GetNotesByTable" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetNotesByTable" UserSourceName="GetNotesByTable1"> <SelectCommand> <DbCommand CommandType="Text" ModifiedByUser="True"> <CommandText>SELECT notes.dateCreated, notes.noteAuthor, Users.firstName + ' ' + Users.lastName AS noteAuthorName, notes.noteField, notes.noteID, notes.tableID, @@ -1249,6 +1256,27 @@ </DbSource> </Sources> </TableAdapter> + <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="testPassTableAdapter" GeneratorDataComponentClassName="testPassTableAdapter" Name="testPass" UserDataComponentName="testPassTableAdapter"> + <MainSource> + <DbSource ConnectionRef="DummyDatabaseConnectionString (Web.config)" DbObjectName="dbo.testPass" DbObjectType="Table" GenerateMethods="Get" GenerateShortCommands="False" GeneratorGetMethodName="GetAllTestPassData" GetMethodModifier="Public" GetMethodName="GetAllTestPassData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="False" UserGetMethodName="GetAllTestPassData" UserSourceName="Fill"> + <SelectCommand> + <DbCommand CommandType="Text" ModifiedByUser="True"> + <CommandText>SELECT testPassID, name, versionID +FROM testPass</CommandText> + <Parameters> + </Parameters> + </DbCommand> + </SelectCommand> + </DbSource> + </MainSource> + <Mappings> + <Mapping SourceColumn="testPassID" DataSetColumn="testPassID" /> + <Mapping SourceColumn="name" DataSetColumn="name" /> + <Mapping SourceColumn="versionID" DataSetColumn="versionID" /> + </Mappings> + <Sources> + </Sources> + </TableAdapter> </Tables> <Sources> </Sources> @@ -1261,102 +1289,102 @@ <xs:element name="Objective" msprop:Generator_UserTableName="Objective" msprop:Generator_RowDeletedName="ObjectiveRowDeleted" msprop:Generator_RowChangedName="ObjectiveRowChanged" msprop:Generator_RowClassName="ObjectiveRow" msprop:Generator_RowChangingName="ObjectiveRowChanging" msprop:Generator_RowEvArgName="ObjectiveRowChangeEvent" msprop:Generator_RowEvHandlerName="ObjectiveRowChangeEventHandler" msprop:Generator_TableClassName="ObjectiveDataTable" msprop:Generator_TableVarName="tableObjective" msprop:Generator_RowDeletingName="ObjectiveRowDeleting" msprop:Generator_TablePropName="Objective"> <xs:complexType> <xs:sequence> - <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInTable="nameColumn" minOccurs="0"> + <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnPropNameInTable="nameColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="255" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> + <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="2147483647" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="objectiveID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="objectiveID" msprop:Generator_ColumnPropNameInRow="objectiveID" msprop:Generator_ColumnVarNameInTable="columnobjectiveID" msprop:Generator_ColumnPropNameInTable="objectiveIDColumn" type="xs:int" /> - <xs:element name="featureID" msprop:Generator_UserColumnName="featureID" msprop:Generator_ColumnPropNameInRow="featureID" msprop:Generator_ColumnVarNameInTable="columnfeatureID" msprop:Generator_ColumnPropNameInTable="featureIDColumn" type="xs:int" /> - <xs:element name="userID" msprop:Generator_UserColumnName="userID" msprop:Generator_ColumnPropNameInRow="userID" msprop:Generator_ColumnVarNameInTable="columnuserID" msprop:Generator_ColumnPropNameInTable="userIDColumn" type="xs:int" minOccurs="0" /> - <xs:element name="dateCreated" msprop:Generator_UserColumnName="dateCreated" msprop:Generator_ColumnPropNameInRow="dateCreated" msprop:Generator_ColumnVarNameInTable="columndateCreated" msprop:Generator_ColumnPropNameInTable="dateCreatedColumn" type="xs:dateTime" minOccurs="0" /> - <xs:element name="statusID" msprop:Generator_UserColumnName="statusID" msprop:Generator_ColumnPropNameInRow="statusID" msprop:Generator_ColumnVarNameInTable="columnstatusID" msprop:Generator_ColumnPropNameInTable="statusIDColumn" type="xs:int" default="0" minOccurs="0" /> + <xs:element name="objectiveID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="objectiveID" msprop:Generator_ColumnVarNameInTable="columnobjectiveID" msprop:Generator_ColumnPropNameInRow="objectiveID" msprop:Generator_ColumnPropNameInTable="objectiveIDColumn" type="xs:int" /> + <xs:element name="featureID" msprop:Generator_UserColumnName="featureID" msprop:Generator_ColumnVarNameInTable="columnfeatureID" msprop:Generator_ColumnPropNameInRow="featureID" msprop:Generator_ColumnPropNameInTable="featureIDColumn" type="xs:int" /> + <xs:element name="userID" msprop:Generator_UserColumnName="userID" msprop:Generator_ColumnVarNameInTable="columnuserID" msprop:Generator_ColumnPropNameInRow="userID" msprop:Generator_ColumnPropNameInTable="userIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="dateCreated" msprop:Generator_UserColumnName="dateCreated" msprop:Generator_ColumnVarNameInTable="columndateCreated" msprop:Generator_ColumnPropNameInRow="dateCreated" msprop:Generator_ColumnPropNameInTable="dateCreatedColumn" type="xs:dateTime" minOccurs="0" /> + <xs:element name="statusID" msprop:Generator_UserColumnName="statusID" msprop:Generator_ColumnVarNameInTable="columnstatusID" msprop:Generator_ColumnPropNameInRow="statusID" msprop:Generator_ColumnPropNameInTable="statusIDColumn" type="xs:int" default="0" minOccurs="0" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="TestCase" msprop:Generator_UserTableName="TestCase" msprop:Generator_RowDeletedName="TestCaseRowDeleted" msprop:Generator_RowChangedName="TestCaseRowChanged" msprop:Generator_RowClassName="TestCaseRow" msprop:Generator_RowChangingName="TestCaseRowChanging" msprop:Generator_RowEvArgName="TestCaseRowChangeEvent" msprop:Generator_RowEvHandlerName="TestCaseRowChangeEventHandler" msprop:Generator_TableClassName="TestCaseDataTable" msprop:Generator_TableVarName="tableTestCase" msprop:Generator_RowDeletingName="TestCaseRowDeleting" msprop:Generator_TablePropName="TestCase"> <xs:complexType> <xs:sequence> - <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInTable="nameColumn" minOccurs="0"> + <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnPropNameInTable="nameColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="255" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="steps" msprop:Generator_UserColumnName="steps" msprop:Generator_ColumnPropNameInRow="steps" msprop:Generator_ColumnVarNameInTable="columnsteps" msprop:Generator_ColumnPropNameInTable="stepsColumn" minOccurs="0"> + <xs:element name="steps" msprop:Generator_UserColumnName="steps" msprop:Generator_ColumnVarNameInTable="columnsteps" msprop:Generator_ColumnPropNameInRow="steps" msprop:Generator_ColumnPropNameInTable="stepsColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="2147483647" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="number" msprop:Generator_UserColumnName="number" msprop:Generator_ColumnPropNameInRow="number" msprop:Generator_ColumnVarNameInTable="columnnumber" msprop:Generator_ColumnPropNameInTable="numberColumn" type="xs:int" minOccurs="0" /> - <xs:element name="dateCreated" msprop:Generator_UserColumnName="dateCreated" msprop:Generator_ColumnPropNameInRow="dateCreated" msprop:Generator_ColumnVarNameInTable="columndateCreated" msprop:Generator_ColumnPropNameInTable="dateCreatedColumn" type="xs:dateTime" minOccurs="0" /> - <xs:element name="dateEdited" msprop:Generator_UserColumnName="dateEdited" msprop:Generator_ColumnPropNameInRow="dateEdited" msprop:Generator_ColumnVarNameInTable="columndateEdited" msprop:Generator_ColumnPropNameInTable="dateEditedColumn" type="xs:dateTime" minOccurs="0" /> - <xs:element name="objectiveID" msprop:Generator_UserColumnName="objectiveID" msprop:Generator_ColumnPropNameInRow="objectiveID" msprop:Generator_ColumnVarNameInTable="columnobjectiveID" msprop:Generator_ColumnPropNameInTable="objectiveIDColumn" type="xs:int" minOccurs="0" /> - <xs:element name="statusID" msprop:Generator_UserColumnName="statusID" msprop:Generator_ColumnPropNameInRow="statusID" msprop:Generator_ColumnVarNameInTable="columnstatusID" msprop:Generator_ColumnPropNameInTable="statusIDColumn" type="xs:int" minOccurs="0" /> - <xs:element name="testcaseID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="testcaseID" msprop:Generator_ColumnVarNameInTable="columntestcaseID" msprop:Generator_ColumnPropNameInRow="testcaseID" msprop:Generator_ColumnPropNameInTable="testcaseIDColumn" type="xs:int" /> - <xs:element name="creatorID" msprop:Generator_UserColumnName="creatorID" msprop:Generator_ColumnVarNameInTable="columncreatorID" msprop:Generator_ColumnPropNameInRow="creatorID" msprop:Generator_ColumnPropNameInTable="creatorIDColumn" type="xs:int" minOccurs="0" /> - <xs:element name="lastEditID" msprop:Generator_UserColumnName="lastEditID" msprop:Generator_ColumnVarNameInTable="columnlastEditID" msprop:Generator_ColumnPropNameInRow="lastEditID" msprop:Generator_ColumnPropNameInTable="lastEditIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="number" msprop:Generator_UserColumnName="number" msprop:Generator_ColumnVarNameInTable="columnnumber" msprop:Generator_ColumnPropNameInRow="number" msprop:Generator_ColumnPropNameInTable="numberColumn" type="xs:int" minOccurs="0" /> + <xs:element name="dateCreated" msprop:Generator_UserColumnName="dateCreated" msprop:Generator_ColumnVarNameInTable="columndateCreated" msprop:Generator_ColumnPropNameInRow="dateCreated" msprop:Generator_ColumnPropNameInTable="dateCreatedColumn" type="xs:dateTime" minOccurs="0" /> + <xs:element name="dateEdited" msprop:Generator_UserColumnName="dateEdited" msprop:Generator_ColumnVarNameInTable="columndateEdited" msprop:Generator_ColumnPropNameInRow="dateEdited" msprop:Generator_ColumnPropNameInTable="dateEditedColumn" type="xs:dateTime" minOccurs="0" /> + <xs:element name="objectiveID" msprop:Generator_UserColumnName="objectiveID" msprop:Generator_ColumnVarNameInTable="columnobjectiveID" msprop:Generator_ColumnPropNameInRow="objectiveID" msprop:Generator_ColumnPropNameInTable="objectiveIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="statusID" msprop:Generator_UserColumnName="statusID" msprop:Generator_ColumnVarNameInTable="columnstatusID" msprop:Generator_ColumnPropNameInRow="statusID" msprop:Generator_ColumnPropNameInTable="statusIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="testcaseID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="testcaseID" msprop:Generator_ColumnPropNameInRow="testcaseID" msprop:Generator_ColumnVarNameInTable="columntestcaseID" msprop:Generator_ColumnPropNameInTable="testcaseIDColumn" type="xs:int" /> + <xs:element name="creatorID" msprop:Generator_UserColumnName="creatorID" msprop:Generator_ColumnPropNameInRow="creatorID" msprop:Generator_ColumnVarNameInTable="columncreatorID" msprop:Generator_ColumnPropNameInTable="creatorIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="lastEditID" msprop:Generator_UserColumnName="lastEditID" msprop:Generator_ColumnPropNameInRow="lastEditID" msprop:Generator_ColumnVarNameInTable="columnlastEditID" msprop:Generator_ColumnPropNameInTable="lastEditIDColumn" type="xs:int" minOccurs="0" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Tags" msprop:Generator_UserTableName="Tags" msprop:Generator_RowDeletedName="TagsRowDeleted" msprop:Generator_RowChangedName="TagsRowChanged" msprop:Generator_RowClassName="TagsRow" msprop:Generator_RowChangingName="TagsRowChanging" msprop:Generator_RowEvArgName="TagsRowChangeEvent" msprop:Generator_RowEvHandlerName="TagsRowChangeEventHandler" msprop:Generator_TableClassName="TagsDataTable" msprop:Generator_TableVarName="tableTags" msprop:Generator_RowDeletingName="TagsRowDeleting" msprop:Generator_TablePropName="Tags"> <xs:complexType> <xs:sequence> - <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInTable="nameColumn"> + <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnPropNameInTable="nameColumn"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> + <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="255" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="tagID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="tagID" msprop:Generator_ColumnVarNameInTable="columntagID" msprop:Generator_ColumnPropNameInRow="tagID" msprop:Generator_ColumnPropNameInTable="tagIDColumn" type="xs:int" /> - <xs:element name="productID" msprop:Generator_UserColumnName="productID" msprop:Generator_ColumnVarNameInTable="columnproductID" msprop:Generator_ColumnPropNameInRow="productID" msprop:Generator_ColumnPropNameInTable="productIDColumn" type="xs:int" /> + <xs:element name="tagID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="tagID" msprop:Generator_ColumnPropNameInRow="tagID" msprop:Generator_ColumnVarNameInTable="columntagID" msprop:Generator_ColumnPropNameInTable="tagIDColumn" type="xs:int" /> + <xs:element name="productID" msprop:Generator_UserColumnName="productID" msprop:Generator_ColumnPropNameInRow="productID" msprop:Generator_ColumnVarNameInTable="columnproductID" msprop:Generator_ColumnPropNameInTable="productIDColumn" type="xs:int" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="product" msprop:Generator_UserTableName="product" msprop:Generator_RowDeletedName="productRowDeleted" msprop:Generator_RowChangedName="productRowChanged" msprop:Generator_RowClassName="productRow" msprop:Generator_RowChangingName="productRowChanging" msprop:Generator_RowEvArgName="productRowChangeEvent" msprop:Generator_RowEvHandlerName="productRowChangeEventHandler" msprop:Generator_TableClassName="productDataTable" msprop:Generator_TableVarName="tableproduct" msprop:Generator_RowDeletingName="productRowDeleting" msprop:Generator_TablePropName="product"> <xs:complexType> <xs:sequence> - <xs:element name="productID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="productID" msprop:Generator_ColumnPropNameInRow="productID" msprop:Generator_ColumnVarNameInTable="columnproductID" msprop:Generator_ColumnPropNameInTable="productIDColumn" type="xs:int" /> - <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInTable="nameColumn" minOccurs="0"> + <xs:element name="productID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="productID" msprop:Generator_ColumnVarNameInTable="columnproductID" msprop:Generator_ColumnPropNameInRow="productID" msprop:Generator_ColumnPropNameInTable="productIDColumn" type="xs:int" /> + <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnPropNameInTable="nameColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="255" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> + <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="2147483647" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="devManager" msprop:Generator_UserColumnName="devManager" msprop:Generator_ColumnPropNameInRow="devManager" msprop:Generator_ColumnVarNameInTable="columndevManager" msprop:Generator_ColumnPropNameInTable="devManagerColumn" type="xs:int" minOccurs="0" /> - <xs:element name="qaManager" msprop:Generator_UserColumnName="qaManager" msprop:Generator_ColumnPropNameInRow="qaManager" msprop:Generator_ColumnVarNameInTable="columnqaManager" msprop:Generator_ColumnPropNameInTable="qaManagerColumn" type="xs:int" minOccurs="0" /> - <xs:element name="devLead" msprop:Generator_UserColumnName="devLead" msprop:Generator_ColumnPropNameInRow="devLead" msprop:Generator_ColumnVarNameInTable="columndevLead" msprop:Generator_ColumnPropNameInTable="devLeadColumn" type="xs:int" minOccurs="0" /> - <xs:element name="qaLead" msprop:Generator_UserColumnName="qaLead" msprop:Generator_ColumnPropNameInRow="qaLead" msprop:Generator_ColumnVarNameInTable="columnqaLead" msprop:Generator_ColumnPropNameInTable="qaLeadColumn" type="xs:int" minOccurs="0" /> - <xs:element name="pm" msprop:Generator_UserColumnName="pm" msprop:Generator_ColumnPropNameInRow="pm" msprop:Generator_ColumnVarNameInTable="columnpm" msprop:Generator_ColumnPropNameInTable="pmColumn" type="xs:int" minOccurs="0" /> - <xs:element name="codeName" msprop:Generator_UserColumnName="codeName" msprop:Generator_ColumnPropNameInRow="codeName" msprop:Generator_ColumnVarNameInTable="columncodeName" msprop:Generator_ColumnPropNameInTable="codeNameColumn" minOccurs="0"> + <xs:element name="devManager" msprop:Generator_UserColumnName="devManager" msprop:Generator_ColumnVarNameInTable="columndevManager" msprop:Generator_ColumnPropNameInRow="devManager" msprop:Generator_ColumnPropNameInTable="devManagerColumn" type="xs:int" minOccurs="0" /> + <xs:element name="qaManager" msprop:Generator_UserColumnName="qaManager" msprop:Generator_ColumnVarNameInTable="columnqaManager" msprop:Generator_ColumnPropNameInRow="qaManager" msprop:Generator_ColumnPropNameInTable="qaManagerColumn" type="xs:int" minOccurs="0" /> + <xs:element name="devLead" msprop:Generator_UserColumnName="devLead" msprop:Generator_ColumnVarNameInTable="columndevLead" msprop:Generator_ColumnPropNameInRow="devLead" msprop:Generator_ColumnPropNameInTable="devLeadColumn" type="xs:int" minOccurs="0" /> + <xs:element name="qaLead" msprop:Generator_UserColumnName="qaLead" msprop:Generator_ColumnVarNameInTable="columnqaLead" msprop:Generator_ColumnPropNameInRow="qaLead" msprop:Generator_ColumnPropNameInTable="qaLeadColumn" type="xs:int" minOccurs="0" /> + <xs:element name="pm" msprop:Generator_UserColumnName="pm" msprop:Generator_ColumnVarNameInTable="columnpm" msprop:Generator_ColumnPropNameInRow="pm" msprop:Generator_ColumnPropNameInTable="pmColumn" type="xs:int" minOccurs="0" /> + <xs:element name="codeName" msprop:Generator_UserColumnName="codeName" msprop:Generator_ColumnVarNameInTable="columncodeName" msprop:Generator_ColumnPropNameInRow="codeName" msprop:Generator_ColumnPropNameInTable="codeNameColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="10" /> @@ -1369,51 +1397,51 @@ <xs:element name="Users" msprop:Generator_UserTableName="Users" msprop:Generator_RowDeletedName="UsersRowDeleted" msprop:Generator_RowChangedName="UsersRowChanged" msprop:Generator_RowClassName="UsersRow" msprop:Generator_RowChangingName="UsersRowChanging" msprop:Generator_RowEvArgName="UsersRowChangeEvent" msprop:Generator_RowEvHandlerName="UsersRowChangeEventHandler" msprop:Generator_TableClassName="UsersDataTable" msprop:Generator_TableVarName="tableUsers" msprop:Generator_RowDeletingName="UsersRowDeleting" msprop:Generator_TablePropName="Users"> <xs:complexType> <xs:sequence> - <xs:element name="email" msprop:Generator_UserColumnName="email" msprop:Generator_ColumnVarNameInTable="columnemail" msprop:Generator_ColumnPropNameInRow="email" msprop:Generator_ColumnPropNameInTable="emailColumn" minOccurs="0"> + <xs:element name="email" msprop:Generator_UserColumnName="email" msprop:Generator_ColumnPropNameInRow="email" msprop:Generator_ColumnVarNameInTable="columnemail" msprop:Generator_ColumnPropNameInTable="emailColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="officePhone" msprop:Generator_UserColumnName="officePhone" msprop:Generator_ColumnVarNameInTable="columnofficePhone" msprop:Generator_ColumnPropNameInRow="officePhone" msprop:Generator_ColumnPropNameInTable="officePhoneColumn" minOccurs="0"> + <xs:element name="officePhone" msprop:Generator_UserColumnName="officePhone" msprop:Generator_ColumnPropNameInRow="officePhone" msprop:Generator_ColumnVarNameInTable="columnofficePhone" msprop:Generator_ColumnPropNameInTable="officePhoneColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="15" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="homePhone" msprop:Generator_UserColumnName="homePhone" msprop:Generator_ColumnVarNameInTable="columnhomePhone" msprop:Generator_ColumnPropNameInRow="homePhone" msprop:Generator_ColumnPropNameInTable="homePhoneColumn" minOccurs="0"> + <xs:element name="homePhone" msprop:Generator_UserColumnName="homePhone" msprop:Generator_ColumnPropNameInRow="homePhone" msprop:Generator_ColumnVarNameInTable="columnhomePhone" msprop:Generator_ColumnPropNameInTable="homePhoneColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="15" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="cellPhone" msprop:Generator_UserColumnName="cellPhone" msprop:Generator_ColumnVarNameInTable="columncellPhone" msprop:Generator_ColumnPropNameInRow="cellPhone" msprop:Generator_ColumnPropNameInTable="cellPhoneColumn" minOccurs="0"> + <xs:element name="cellPhone" msprop:Generator_UserColumnName="cellPhone" msprop:Generator_ColumnPropNameInRow="cellPhone" msprop:Generator_ColumnVarNameInTable="columncellPhone" msprop:Generator_ColumnPropNameInTable="cellPhoneColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="15" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="firstName" msprop:Generator_UserColumnName="firstName" msprop:Generator_ColumnVarNameInTable="columnfirstName" msprop:Generator_ColumnPropNameInRow="firstName" msprop:Generator_ColumnPropNameInTable="firstNameColumn" minOccurs="0"> + <xs:element name="firstName" msprop:Generator_UserColumnName="firstName" msprop:Generator_ColumnPropNameInRow="firstName" msprop:Generator_ColumnVarNameInTable="columnfirstName" msprop:Generator_ColumnPropNameInTable="firstNameColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="lastName" msprop:Generator_UserColumnName="lastName" msprop:Generator_ColumnVarNameInTable="columnlastName" msprop:Generator_ColumnPropNameInRow="lastName" msprop:Generator_ColumnPropNameInTable="lastNameColumn" minOccurs="0"> + <xs:element name="lastName" msprop:Generator_UserColumnName="lastName" msprop:Generator_ColumnPropNameInRow="lastName" msprop:Generator_ColumnVarNameInTable="columnlastName" msprop:Generator_ColumnPropNameInTable="lastNameColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="automation" msprop:Generator_UserColumnName="automation" msprop:Generator_ColumnVarNameInTable="columnautomation" msprop:Generator_ColumnPropNameInRow="automation" msprop:Generator_ColumnPropNameInTable="automationColumn" type="xs:boolean" minOccurs="0" /> - <xs:element name="userID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="userID" msprop:Generator_ColumnPropNameInRow="userID" msprop:Generator_ColumnVarNameInTable="columnuserID" msprop:Generator_ColumnPropNameInTable="userIDColumn" type="xs:int" /> - <xs:element name="username" msprop:Generator_UserColumnName="username" msprop:Generator_ColumnPropNameInRow="username" msprop:Generator_ColumnVarNameInTable="columnusername" msprop:Generator_ColumnPropNameInTable="usernameColumn" minOccurs="0"> + <xs:element name="automation" msprop:Generator_UserColumnName="automation" msprop:Generator_ColumnPropNameInRow="automation" msprop:Generator_ColumnVarNameInTable="columnautomation" msprop:Generator_ColumnPropNameInTable="automationColumn" type="xs:boolean" minOccurs="0" /> + <xs:element name="userID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="userID" msprop:Generator_ColumnVarNameInTable="columnuserID" msprop:Generator_ColumnPropNameInRow="userID" msprop:Generator_ColumnPropNameInTable="userIDColumn" type="xs:int" /> + <xs:element name="username" msprop:Generator_UserColumnName="username" msprop:Generator_ColumnVarNameInTable="columnusername" msprop:Generator_ColumnPropNameInRow="username" msprop:Generator_ColumnPropNameInTable="usernameColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> @@ -1426,22 +1454,22 @@ <xs:element name="Status" msprop:Generator_UserTableName="Status" msprop:Generator_RowDeletedName="StatusRowDeleted" msprop:Generator_RowChangedName="StatusRowChanged" msprop:Generator_RowClassName="StatusRow" msprop:Generator_RowChangingName="StatusRowChanging" msprop:Generator_RowEvArgName="StatusRowChangeEvent" msprop:Generator_RowEvHandlerName="StatusRowChangeEventHandler" msprop:Generator_TableClassName="StatusDataTable" msprop:Generator_TableVarName="tableStatus" msprop:Generator_RowDeletingName="StatusRowDeleting" msprop:Generator_TablePropName="Status"> <xs:complexType> <xs:sequence> - <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> + <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="255" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="statusID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="statusID" msprop:Generator_ColumnPropNameInRow="statusID" msprop:Generator_ColumnVarNameInTable="columnstatusID" msprop:Generator_ColumnPropNameInTable="statusIDColumn" type="xs:int" /> - <xs:element name="statusGroup" msprop:Generator_UserColumnName="statusGroup" msprop:Generator_ColumnPropNameInRow="statusGroup" msprop:Generator_ColumnVarNameInTable="columnstatusGroup" msprop:Generator_ColumnPropNameInTable="statusGroupColumn"> + <xs:element name="statusID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="statusID" msprop:Generator_ColumnVarNameInTable="columnstatusID" msprop:Generator_ColumnPropNameInRow="statusID" msprop:Generator_ColumnPropNameInTable="statusIDColumn" type="xs:int" /> + <xs:element name="statusGroup" msprop:Generator_UserColumnName="statusGroup" msprop:Generator_ColumnVarNameInTable="columnstatusGroup" msprop:Generator_ColumnPropNameInRow="statusGroup" msprop:Generator_ColumnPropNameInTable="statusGroupColumn"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="statusName" msprop:Generator_UserColumnName="statusName" msprop:Generator_ColumnPropNameInRow="statusName" msprop:Generator_ColumnVarNameInTable="columnstatusName" msprop:Generator_ColumnPropNameInTable="statusNameColumn"> + <xs:element name="statusName" msprop:Generator_UserColumnName="statusName" msprop:Generator_ColumnVarNameInTable="columnstatusName" msprop:Generator_ColumnPropNameInRow="statusName" msprop:Generator_ColumnPropNameInTable="statusNameColumn"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> @@ -1454,132 +1482,133 @@ <xs:element name="testCaseTags" msprop:Generator_UserTableName="testCaseTags" msprop:Generator_RowDeletedName="testCaseTagsRowDeleted" msprop:Generator_RowChangedName="testCaseTagsRowChanged" msprop:Generator_RowClassName="testCaseTagsRow" msprop:Generator_RowChangingName="testCaseTagsRowChanging" msprop:Generator_RowEvArgName="testCaseTagsRowChangeEvent" msprop:Generator_RowEvHandlerName="testCaseTagsRowChangeEventHandler" msprop:Generator_TableClassName="testCaseTagsDataTable" msprop:Generator_TableVarName="tabletestCaseTags" msprop:Generator_RowDeletingName="testCaseTagsRowDeleting" msprop:Generator_TablePropName="testCaseTags"> <xs:complexType> <xs:sequence> - <xs:element name="testCaseTagsID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="testCaseTagsID" msprop:Generator_ColumnVarNameInTable="columntestCaseTagsID" msprop:Generator_ColumnPropNameInRow="testCaseTagsID" msprop:Generator_ColumnPropNameInTable="testCaseTagsIDColumn" type="xs:int" /> - <xs:element name="testCaseID" msprop:Generator_UserColumnName="testCaseID" msprop:Generator_ColumnVarNameInTable="columntestCaseID" msprop:Generator_ColumnPropNameInRow="testCaseID" msprop:Generator_ColumnPropNameInTable="testCaseIDColumn" type="xs:int" /> - <xs:element name="tagID" msprop:Generator_UserColumnName="tagID" msprop:Generator_ColumnVarNameInTable="columntagID" msprop:Generator_ColumnPropNameInRow="tagID" msprop:Generator_ColumnPropNameInTable="tagIDColumn" type="xs:int" /> + <xs:element name="testCaseTagsID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="testCaseTagsID" msprop:Generator_ColumnPropNameInRow="testCaseTagsID" msprop:Generator_ColumnVarNameInTable="columntestCaseTagsID" msprop:Generator_ColumnPropNameInTable="testCaseTagsIDColumn" type="xs:int" /> + <xs:element name="testCaseID" msprop:Generator_UserColumnName="testCaseID" msprop:Generator_ColumnPropNameInRow="testCaseID" msprop:Generator_ColumnVarNameInTable="columntestCaseID" msprop:Generator_ColumnPropNameInTable="testCaseIDColumn" type="xs:int" /> + <xs:element name="tagID" msprop:Generator_UserColumnName="tagID" msprop:Generator_ColumnPropNameInRow="tagID" msprop:Generator_ColumnVarNameInTable="columntagID" msprop:Generator_ColumnPropNameInTable="tagIDColumn" type="xs:int" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="version" msprop:Generator_UserTableName="version" msprop:Generator_RowDeletedName="versionRowDeleted" msprop:Generator_RowChangedName="versionRowChanged" msprop:Generator_RowClassName="versionRow" msprop:Generator_RowChangingName="versionRowChanging" msprop:Generator_RowEvArgName="versionRowChangeEvent" msprop:Generator_RowEvHandlerName="versionRowChangeEventHandler" msprop:Generator_TableClassName="versionDataTable" msprop:Generator_TableVarName="tableversion" msprop:Generator_RowDeletingName="versionRowDeleting" msprop:Generator_TablePropName="version"> <xs:complexType> <xs:sequence> - <xs:element name="versionID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="versionID" msprop:Generator_ColumnVarNameInTable="columnversionID" msprop:Generator_ColumnPropNameInRow="versionID" msprop:Generator_ColumnPropNameInTable="versionIDColumn" type="xs:int" /> - <xs:element name="productID" msprop:Generator_UserColumnName="productID" msprop:Generator_ColumnVarNameInTable="columnproductID" msprop:Generator_ColumnPropNameInRow="productID" msprop:Generator_ColumnPropNameInTable="productIDColumn" type="xs:int" /> - <xs:element name="number" msprop:Generator_UserColumnName="number" msprop:Generator_ColumnVarNameInTable="columnnumber" msprop:Generator_ColumnPropNameInRow="number" msprop:Generator_ColumnPropNameInTable="numberColumn"> + <xs:element name="versionID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="versionID" msprop:Generator_ColumnPropNameInRow="versionID" msprop:Generator_ColumnVarNameInTable="columnversionID" msprop:Generator_ColumnPropNameInTable="versionIDColumn" type="xs:int" /> + <xs:element name="productID" msprop:Generator_UserColumnName="productID" msprop:Generator_ColumnPropNameInRow="productID" msprop:Generator_ColumnVarNameInTable="columnproductID" msprop:Generator_ColumnPropNameInTable="productIDColumn" type="xs:int" /> + <xs:element name="number" msprop:Generator_UserColumnName="... [truncated message content] |
From: <ro...@us...> - 2006-07-07 18:13:08
|
Revision: 84 Author: rouquin Date: 2006-07-07 11:12:39 -0700 (Fri, 07 Jul 2006) ViewCVS: http://svn.sourceforge.net/tcdb/?rev=84&view=rev Log Message: ----------- Added note functionality. Seems to be working well. Applied to all currently finished pages. Modified Paths: -------------- WebPrototype/ActionItemEdit.aspx WebPrototype/ActionItemEdit.aspx.cs WebPrototype/Admin.aspx.cs WebPrototype/AdminMaster.master WebPrototype/AdminMaster.master.cs WebPrototype/App_Code/DummyDataSet.xsd WebPrototype/App_Code/DummyDataSet.xss WebPrototype/App_Data/ASPNETDB.MDF WebPrototype/App_Data/Database.mdf WebPrototype/App_Data/Database_log.LDF WebPrototype/App_Data/aspnetdb_log.ldf WebPrototype/AssignmentMaster.master WebPrototype/AssignmentMaster.master.cs WebPrototype/Assignments.aspx WebPrototype/Assignments.aspx.cs WebPrototype/FeatureEdit.aspx WebPrototype/FeatureEdit.aspx.cs WebPrototype/ObjectiveEdit.aspx WebPrototype/ObjectiveEdit.aspx.cs WebPrototype/ProductEdit.aspx WebPrototype/ProductEdit.aspx.cs WebPrototype/TestCaseEdit.aspx WebPrototype/TestCaseEdit.aspx.cs WebPrototype/TestManagement.aspx.cs WebPrototype/TestMaster.master WebPrototype/TestMaster.master.cs WebPrototype/WorkOrderEdit.aspx WebPrototype/WorkOrderEdit.aspx.cs WebPrototype/buildEdit.aspx.cs WebPrototype/statusEdit.aspx.cs WebPrototype/userRightsEdit.aspx.cs WebPrototype/versionEdit.aspx.cs Added Paths: ----------- WebPrototype/testpassEdit.aspx WebPrototype/testpassEdit.aspx.cs Modified: WebPrototype/ActionItemEdit.aspx =================================================================== --- WebPrototype/ActionItemEdit.aspx 2006-07-07 00:04:33 UTC (rev 83) +++ WebPrototype/ActionItemEdit.aspx 2006-07-07 18:12:39 UTC (rev 84) @@ -10,7 +10,7 @@ <asp:Content ID="Content1" ContentPlaceHolderID="PageContent" runat="Server"> <asp:FormView ID="FormView1" runat="server" DataSourceID="ActionItemDataSource" DataKeyNames="actionItemID" CellPadding=4 ForeColor="#333333" OnItemUpdated=FormView1_ItemUpdated - OnItemInserted=FormView1_ItemInserted OnDataBound=FormView1_DataBound OnItemDeleted=FormView1_ItemDeleted> + OnItemInserted=FormView1_ItemInserted OnDataBound=FormView1_DataBound OnItemDeleted=FormView1_ItemDeleted OnItemCommand=FormView1_ItemCommand> <HeaderTemplate> <div id="ActionItem"> <table width=700> @@ -205,8 +205,7 @@ Text="Insert"> </asp:LinkButton> | <asp:LinkButton ID="InsertCancelButton" runat="server" CausesValidation="False" CommandName="Cancel" - Text="Cancel"> - </asp:LinkButton> + Text="Cancel"></asp:LinkButton> </td> <td align=right colspan=2 width="40%"> <strong>Created By: <asp:Label ID="createdByLbl" runat="server" Font-Bold="False" Modified: WebPrototype/ActionItemEdit.aspx.cs =================================================================== --- WebPrototype/ActionItemEdit.aspx.cs 2006-07-07 00:04:33 UTC (rev 83) +++ WebPrototype/ActionItemEdit.aspx.cs 2006-07-07 18:12:39 UTC (rev 84) @@ -13,20 +13,26 @@ public partial class ActionItemEdit : System.Web.UI.Page { - private String id = (String) HttpContext.Current.Request.QueryString["id"]; + String id = HttpContext.Current.Request.QueryString["id"]; + String mode = HttpContext.Current.Request.QueryString["mode"]; bool priority; protected void Page_Load(object sender, EventArgs e) { if (!User.Identity.IsAuthenticated || Profile.userID == "") Response.Redirect("default.aspx"); + if (id == null && mode == null) + Response.Redirect("Assignments.aspx"); + Session.Add("id", id); + + if (mode != null && mode == "new") + FormView1.ChangeMode(FormViewMode.Insert); ImageButton priorityImg = (ImageButton)FormView1.FindControl("priorityImg"); + if (priorityImg != null && priorityImg.ImageUrl == "~/Images/exclamation.jpg") priority = true; - if (id == null) - id = "0"; - Session.Add("id",id); - if (priorityImg != null && priorityImg.ImageUrl == "~/Images/exclamation.jpg") priority = true; + ObjectDataSource notes = (ObjectDataSource)Master.FindControl("NoteDataSource"); + notes.SelectParameters["tableName"].DefaultValue = "ActionItem"; } protected void RadioButtonList1_SelectedIndexChanged(object sender, EventArgs e) { @@ -186,4 +192,9 @@ } } } + protected void FormView1_ItemCommand(object sender, FormViewCommandEventArgs e) + { + if (e.CommandName == "Cancel" && FormView1.CurrentMode == FormViewMode.Insert) + Response.Redirect("Assignments.aspx?id=" + Profile.userID); + } } Modified: WebPrototype/Admin.aspx.cs =================================================================== --- WebPrototype/Admin.aspx.cs 2006-07-07 00:04:33 UTC (rev 83) +++ WebPrototype/Admin.aspx.cs 2006-07-07 18:12:39 UTC (rev 84) @@ -14,8 +14,6 @@ protected void Page_Load(object sender, EventArgs e) { if (!User.Identity.IsAuthenticated || Profile.userID == "") - { Response.Redirect("Default.aspx"); - } } } Modified: WebPrototype/AdminMaster.master =================================================================== --- WebPrototype/AdminMaster.master 2006-07-07 00:04:33 UTC (rev 83) +++ WebPrototype/AdminMaster.master 2006-07-07 18:12:39 UTC (rev 84) @@ -1,6 +1,7 @@ <%@ Master Language="C#" AutoEventWireup="true" CodeFile="AdminMaster.master.cs" Inherits="AdminMaster" %> <%@ Register Assembly="AtlasControlToolkit" Namespace="AtlasControlToolkit" TagPrefix="atlas" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> + <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <title>TCDB</title> @@ -96,59 +97,130 @@ <td align="right" valign="top"> <atlas:UpdatePanel ID=noteViewUpdatePanel runat="server" Mode=Conditional> <ContentTemplate> - <div style="padding-left: 10px; text-align: left;"> - <a href="#" style="padding-left: 10px; text-align: left;">New Note</a></div> - <table width="225" cellpadding="0" cellspacing="0" border="0" style="padding: 10px;"> - <tr> - <td> - <b class="notetop"><b class="noteb1"></b><b class="noteb2"></b><b class="noteb3"></b> - <b class="noteb4"></b></b> - <div class="noteboxcontent"> - <table width="100%" cellpadding="0" cellspacing="0" border="0"> + <asp:DataList ID="DataList1" runat="server" DataKeyField="noteID" DataSourceID="NoteDataSource" + ShowFooter="False" OnDeleteCommand=DataList1_DeleteCommand OnEditCommand="DataList1_EditCommand" + OnCancelCommand="DataList1_CancelCommand" OnUpdateCommand="DataList1_UpdateCommand"> + <ItemTemplate> + <b class="notetop"><b class="noteb1"></b><b class="noteb2"></b><b class="noteb3"></b> + <b class="noteb4"></b></b> + <div class="noteboxcontent"> + <table width="200" cellpadding="0" cellspacing="0" border="0"> + <tr> + <asp:Panel ID="Panel3" runat="server" CssClass="collapsePanelHeader"> + <td align="left" valign="bottom"> + <h4> + Reminder:</h4> + <asp:Label ID="dateCreatedLabel" runat="server" Text='<%# Eval("dateCreated","{0:d}") %>'></asp:Label> + <td align="right" valign="bottom"> + <asp:Image ID="Note2Arrow" runat=server ImageUrl="App_Themes/Python/Images/ArrowUp.gif" /> + <asp:LinkButton ID=Delete runat="server" CommandName="delete">x</asp:LinkButton> + </asp:Panel> + </tr> + </table> + <atlas:CollapsiblePanelExtender ID="CollapsiblePanelExtender2" runat="server"> + <atlas:CollapsiblePanelProperties Collapsed="True" SuppressPostBack="True" CollapseControlID="Note2Arrow" + ExpandControlID="Note2Arrow" ExpandedImage="App_Themes/Python/Images/ArrowUp.gif" + CollapsedImage="App_Themes/Python/Images/ArrowDown.gif" TargetControlID="Note2Content" + CollapsedSize="0" ImageControlID="Note2Arrow" /> + </atlas:CollapsiblePanelExtender> + <asp:Panel ID="Note2Content" runat="server" Height="0" Style="overflow: hidden; padding: 0px; + margin: 0px;"> + <table width="200" cellpadding="0" cellspacing="0" border="0"> <tr> - <asp:Panel ID="Panel3" runat="server" CssClass="collapsePanelHeader"> - <td align="left" valign="bottom"> - <h4> - Reminder:</h4> - 15 Apr 2006 </td> - <td align="right" valign="bottom"> - <img alt="Note2Arrow" src="App_Themes/Python/Images/ArrowUp.gif" id="Note2Arrow" /> - <a href="#" class="notedelete">x</a></td> - </asp:Panel> + <td class="hr"> + </td> </tr> + <tr> + <td> + <asp:Label ID="noteFieldLabel" runat="server" Text='<%# Eval("noteField") %>'></asp:Label><br /> + <asp:LinkButton ID=Edit runat="server" CommandName="edit"><i>Edit</i></asp:LinkButton> + </td> + </tr> + <tr> + <td class="hr"> + </td> + </tr> + <tr> + <td> + <strong>Author:</strong> + <asp:Label ID="noteAuthorLabel" runat="server" Text='<%# Eval("noteAuthorName") %>'></asp:Label> + </td> + </tr> </table> - <atlas:CollapsiblePanelExtender ID="CollapsiblePanelExtender2" runat="server"> - <atlas:CollapsiblePanelProperties Collapsed="true" SuppressPostBack="true" CollapseControlID="Note2Arrow" - ExpandControlID="Note2Arrow" ExpandedImage="App_Themes/Python/Images/ArrowUp.gif" - CollapsedImage="App_Themes/Python/Images/ArrowDown.gif" TargetControlID="Note2Content" - AutoCollapse="false" AutoExpand="false" CollapsedSize="0" ImageControlID="Note2Arrow" /> - </atlas:CollapsiblePanelExtender> - <asp:Panel ID="Note2Content" runat="server" Height="0" Style="overflow: hidden; padding: 0px; - margin: 0px;"> - <table width="100%" cellpadding="0" cellspacing="0" border="0"> - <tr> - <td class="hr"> - <img alt="" src="images/spacer.gif" height="5" /><br /> - </td> - </tr> - </table> - Integer lacus elit, consectetuer nec, rutrum at, pretium ac, risus. Sed semper massa - luctus mi. Donec placerat, diam vitae ultricies posuere, felis dui sollicitudin - nibh, eget blandit purus libero in elit. Aenean eget lectus eget ipsum rutrum scelerisque. - Nunc orci mauris, rhoncus ac, pellentesque sit amet, condimentum vel, nibh. Pellentesque - habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. - Suspendisse blandit. - </asp:Panel> - </div> - <b class="notebottom"><b class="noteb4"></b><b class="noteb3"></b><b class="noteb2"> - </b></b><b class="noteb1"></b></td> - </tr> - </table> + </asp:Panel> + </div> + <b class="notebottom"><b class="noteb4"></b><b class="noteb3"></b><b class="noteb2"> + </b></b><b class="noteb1"></b> + </ItemTemplate> + <EditItemTemplate> + <b class="notetop"><b class="noteb1"></b><b class="noteb2"></b><b class="noteb3"></b> + <b class="noteb4"></b></b> + <div class="noteboxcontent"> + <table width="200" cellpadding="0" cellspacing="0" border="0"> + <tr> + <asp:Panel ID="Panel3" runat="server" CssClass="collapsePanelHeader"> + <td align="left" valign="bottom"> + <h4> + Reminder:</h4> + <asp:Label ID="dateCreatedLabel" runat="server" Text='<%# Eval("dateCreated","{0:d}") %>'></asp:Label> + <td align="right" valign="bottom"> + <asp:Image ID="Note2Arrow" runat=server ImageUrl="App_Themes/Python/Images/ArrowUp.gif" /> + <asp:LinkButton ID=Delete runat="server" CommandName="delete">x</asp:LinkButton> + </asp:Panel> + </tr> + </table> + <asp:Panel ID="Note2Content" runat="server" Style="overflow: hidden; padding: 0px; + margin: 0px;"> + <table width="200" cellpadding="0" cellspacing="0" border="0"> + <tr> + <td class="hr"> + </td> + </tr> + <tr> + <td> + <asp:TextBox ID="noteFieldBox" runat="server" width=100% Height=100 Text='<%# Bind("noteField") %>' Rows=5 TextMode=MultiLine /> + </td> + </tr> + <tr> + <td class="hr"> + </td> + </tr> + <tr> + <td> + <asp:LinkButton ID=Update runat="server" CommandName="update" Text="Update"></asp:LinkButton> + <asp:LinkButton ID=Cancel runat="server" CommandName="cancel" Text="Cancel"></asp:LinkButton> + </td> + </tr> + </table> + </asp:Panel> + </div> + <b class="notebottom"><b class="noteb4"></b><b class="noteb3"></b><b class="noteb2"> + </b></b><b class="noteb1"></b> + </EditItemTemplate> + <HeaderTemplate> + <asp:LinkButton ID=newNote runat="server" CommandName="newNote" OnCommand=newNote>New Note</asp:LinkButton> + </HeaderTemplate> + </asp:DataList> </ContentTemplate> <Triggers> <atlas:ControlEventTrigger ControlID="PageContent" EventName="Load" /> </Triggers> </atlas:UpdatePanel> + <asp:ObjectDataSource ID="NoteDataSource" runat="server" OldValuesParameterFormatString="original_{0}" + SelectMethod="GetNotesByTable" TypeName="DummyDataSetTableAdapters.notesTableAdapter" + DeleteMethod=DeleteByID UpdateMethod=UpdateNoteByID> + <SelectParameters> + <asp:Parameter DefaultValue="Assignments" Name="tableName" Type="String" /> + <asp:SessionParameter DefaultValue="" Name="tableID" SessionField="id" Type="Int32" /> + </SelectParameters> + <DeleteParameters> + <asp:Parameter Name="original_noteID" Type="Int32" /> + </DeleteParameters> + <UpdateParameters> + <asp:Parameter Name="noteField" Type="String" /> + <asp:Parameter Name="original_noteID" Type="Int32" /> + </UpdateParameters> + </asp:ObjectDataSource> </td> </tr> </table> Modified: WebPrototype/AdminMaster.master.cs =================================================================== --- WebPrototype/AdminMaster.master.cs 2006-07-07 00:04:33 UTC (rev 83) +++ WebPrototype/AdminMaster.master.cs 2006-07-07 18:12:39 UTC (rev 84) @@ -9,6 +9,7 @@ using System.Web.UI.WebControls.WebParts; using System.Web.UI.HtmlControls; using System.Data.SqlClient; +using AtlasControlToolkit; public partial class AdminMaster : System.Web.UI.MasterPage { @@ -324,5 +325,55 @@ break; } } + protected void newNote(object sender, CommandEventArgs e) + { + String table = NoteDataSource.SelectParameters["tableName"].DefaultValue; + String row = Session["id"].ToString(); + SqlCommand cmd = new SqlCommand("INSERT INTO notes (tableName,tableID,noteField,dateCreated,noteAuthor) VALUES ('" + table + "'," + row + ",'','" + DateTime.Today + "'," + Profile.userID + ")", DBConnection); + cmd.ExecuteNonQuery(); + + // Edit note + DataList1.EditItemIndex = DataList1.Items.Count; + DataList1.DataBind(); + } + protected void DataList1_DeleteCommand(object source, DataListCommandEventArgs e) + { + NoteDataSource.DeleteParameters["original_noteID"].DefaultValue = DataList1.DataKeys[e.Item.ItemIndex].ToString(); + NoteDataSource.Delete(); + } + + protected void DataList1_EditCommand(object source, DataListCommandEventArgs e) + { + DataList1.EditItemIndex = e.Item.ItemIndex; + DataList1.DataBind(); + } + + protected void DataList1_CancelCommand(object source, DataListCommandEventArgs e) + { + DataList1.EditItemIndex = -1; + DataList1.DataBind(); + + // Delete note if empty + String noteField = ((TextBox)e.Item.FindControl("noteFieldBox")).Text; + if (noteField == "") + { + NoteDataSource.DeleteParameters["original_noteID"].DefaultValue = DataList1.DataKeys[e.Item.ItemIndex].ToString(); + NoteDataSource.Delete(); + DataList1.DataBind(); + } + } + + protected void DataList1_UpdateCommand(object source, DataListCommandEventArgs e) + { + String noteID = DataList1.DataKeys[e.Item.ItemIndex].ToString(); + String noteField = ((TextBox)e.Item.FindControl("noteFieldBox")).Text; + + NoteDataSource.UpdateParameters["original_noteID"].DefaultValue = noteID; + NoteDataSource.UpdateParameters["noteField"].DefaultValue = noteField; + NoteDataSource.Update(); + + DataList1.EditItemIndex = -1; + DataList1.DataBind(); + } } Modified: WebPrototype/App_Code/DummyDataSet.xsd =================================================================== --- WebPrototype/App_Code/DummyDataSet.xsd 2006-07-07 00:04:33 UTC (rev 83) +++ WebPrototype/App_Code/DummyDataSet.xsd 2006-07-07 18:12:39 UTC (rev 84) @@ -573,7 +573,7 @@ </DbCommand> </DeleteCommand> </DbSource> - <DbSource ConnectionRef="DummyDatabaseConnectionString (Web.config)" DbObjectType="Unknown" GenerateMethods="Get" GenerateShortCommands="True" GeneratorGetMethodName="GetVersionByID" GetMethodModifier="Public" GetMethodName="GetVersionByID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetVersionByID" UserSourceName="FillBy"> + <DbSource ConnectionRef="DummyDatabaseConnectionString (Web.config)" DbObjectType="Unknown" GenerateMethods="Get" GenerateShortCommands="True" GeneratorGetMethodName="GetVersionByID" GetMethodModifier="Public" GetMethodName="GetVersionByID" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetVersionByID" UserSourceName="GetVersionByID1"> <SelectCommand> <DbCommand CommandType="Text" ModifiedByUser="True"> <CommandText>SELECT version.versionID, version.productID, product.name AS productName, version.number, version.dateCreated, version.active @@ -614,7 +614,7 @@ </DbCommand> </SelectCommand> </DbSource> - <DbSource ConnectionRef="DummyDatabaseConnectionString (Web.config)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="True" GeneratorSourceName="InsertVersion" Modifier="Public" Name="InsertVersion" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetDataBy2" UserSourceName="InsertVersion"> + <DbSource ConnectionRef="DummyDatabaseConnectionString (Web.config)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="True" GeneratorSourceName="InsertVersion" Modifier="Public" Name="InsertVersion" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetDataBy1" UserSourceName="InsertVersion"> <InsertCommand> <DbCommand CommandType="Text" ModifiedByUser="True"> <CommandText>INSERT INTO version @@ -631,7 +631,7 @@ </DbCommand> </InsertCommand> </DbSource> - <DbSource ConnectionRef="DummyDatabaseConnectionString (Web.config)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="True" GeneratorGetMethodName="GetDataBy1" GeneratorSourceName="UpdateVersionByID" Modifier="Public" Name="UpdateVersionByID" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetDataBy1" UserSourceName="UpdateVersionByID"> + <DbSource ConnectionRef="DummyDatabaseConnectionString (Web.config)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="True" GeneratorGetMethodName="GetDataBy1" GeneratorSourceName="UpdateVersionByID" Modifier="Public" Name="UpdateVersionByID" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetDataBy2" UserSourceName="UpdateVersionByID"> <UpdateCommand> <DbCommand CommandType="Text" ModifiedByUser="True"> <CommandText>UPDATE version @@ -757,7 +757,8 @@ WorkOrder ON WorkOrder.workOrderID = Assignments.workOrderID LEFT OUTER JOIN Users AS u1 ON u1.userID = Assignments.creatorID LEFT OUTER JOIN Users AS u2 ON u2.userID = Assignments.assignedID LEFT OUTER JOIN - Status ON Status.statusID = Assignments.statusID</CommandText> + Status ON Status.statusID = Assignments.statusID +ORDER BY Assignments.highPriorityID DESC</CommandText> <Parameters> </Parameters> </DbCommand> @@ -784,7 +785,8 @@ Users AS u1 ON u1.userID = Assignments_1.creatorID LEFT OUTER JOIN Users AS u2 ON u2.userID = Assignments_1.assignedID LEFT OUTER JOIN Status AS Status_1 ON Status_1.statusID = Assignments_1.statusID -WHERE (Assignments_1.assignedID = @assignedID)</CommandText> +WHERE (Assignments_1.assignedID = @assignedID) +ORDER BY Assignments.highPriorityID DESC</CommandText> <Parameters> <Parameter AllowDbNull="True" AutogeneratedName="assignedID" ColumnName="" DataSourceName="" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@assignedID" Precision="0" Scale="0" Size="4" SourceColumn="" SourceColumnNullMapping="False" SourceVersion="Current"> </Parameter> @@ -1181,6 +1183,72 @@ </DbSource> </Sources> </TableAdapter> + <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="notesTableAdapter" GeneratorDataComponentClassName="notesTableAdapter" Name="notes" UserDataComponentName="notesTableAdapter"> + <MainSource> + <DbSource ConnectionRef="DummyDatabaseConnectionString (Web.config)" DbObjectName="dbo.notes" DbObjectType="Table" GenerateMethods="Get" GenerateShortCommands="False" GeneratorGetMethodName="GetAllNotes" GetMethodModifier="Public" GetMethodName="GetAllNotes" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="False" UserGetMethodName="GetAllNotes" UserSourceName="Fill"> + <SelectCommand> + <DbCommand CommandType="Text" ModifiedByUser="True"> + <CommandText>SELECT * FROM notes</CommandText> + <Parameters> + </Parameters> + </DbCommand> + </SelectCommand> + </DbSource> + </MainSource> + <Mappings> + <Mapping SourceColumn="noteID" DataSetColumn="noteID" /> + <Mapping SourceColumn="tableName" DataSetColumn="tableName" /> + <Mapping SourceColumn="tableID" DataSetColumn="tableID" /> + <Mapping SourceColumn="dateCreated" DataSetColumn="dateCreated" /> + <Mapping SourceColumn="noteField" DataSetColumn="noteField" /> + <Mapping SourceColumn="noteAuthor" DataSetColumn="noteAuthor" /> + </Mappings> + <Sources> + <DbSource ConnectionRef="DummyDatabaseConnectionString (Web.config)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="True" GeneratorSourceName="DeleteByID" Modifier="Public" Name="DeleteByID" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetDataBy" UserSourceName="DeleteByID"> + <DeleteCommand> + <DbCommand CommandType="Text" ModifiedByUser="True"> + <CommandText>DELETE FROM notes WHERE noteID=@original_noteID</CommandText> + <Parameters> + <Parameter AllowDbNull="False" AutogeneratedName="original_noteID" ColumnName="noteID" DataSourceName="[C:\DOCUMENTS AND SETTINGS\MICHAELT\DESKTOP\TCDB\WEBPROTOTYPE\APP_DATA\DATABASE.MDF].dbo.notes" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@original_noteID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="noteID" SourceColumnNullMapping="False" SourceVersion="Original"> + </Parameter> + </Parameters> + </DbCommand> + </DeleteCommand> + </DbSource> + <DbSource ConnectionRef="DummyDatabaseConnectionString (Web.config)" DbObjectName="dbo.notes" DbObjectType="Table" GenerateMethods="Get" GenerateShortCommands="True" GeneratorGetMethodName="GetNotesByTable" GetMethodModifier="Public" GetMethodName="GetNotesByTable" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetNotesByTable" UserSourceName="FillBy"> + <SelectCommand> + <DbCommand CommandType="Text" ModifiedByUser="True"> + <CommandText>SELECT notes.dateCreated, notes.noteAuthor, Users.firstName + ' ' + Users.lastName AS noteAuthorName, notes.noteField, notes.noteID, notes.tableID, + notes.tableName +FROM notes LEFT OUTER JOIN + Users ON Users.userID = notes.noteAuthor +WHERE (notes.tableName = @tableName) AND (notes.tableID = @tableID)</CommandText> + <Parameters> + <Parameter AllowDbNull="False" AutogeneratedName="tableName" ColumnName="tableName" DataSourceName="[C:\DOCUMENTS AND SETTINGS\MICHAELT\DESKTOP\TCDB\WEBPROTOTYPE\APP_DATA\DATABASE.MDF].dbo.notes" DataTypeServer="varchar(50)" DbType="AnsiString" Direction="Input" ParameterName="@tableName" Precision="0" ProviderType="VarChar" Scale="0" Size="50" SourceColumn="tableName" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="False" AutogeneratedName="tableID" ColumnName="tableID" DataSourceName="[C:\DOCUMENTS AND SETTINGS\MICHAELT\DESKTOP\TCDB\WEBPROTOTYPE\APP_DATA\DATABASE.MDF].dbo.notes" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@tableID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="tableID" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + </Parameters> + </DbCommand> + </SelectCommand> + </DbSource> + <DbSource ConnectionRef="DummyDatabaseConnectionString (Web.config)" DbObjectName="" DbObjectType="Unknown" GenerateShortCommands="True" GeneratorSourceName="UpdateNoteByID" Modifier="Public" Name="UpdateNoteByID" QueryType="NoData" ScalarCallRetval="System.Object, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="True" UserGetMethodName="GetDataBy1" UserSourceName="UpdateNoteByID"> + <UpdateCommand> + <DbCommand CommandType="Text" ModifiedByUser="True"> + <CommandText>UPDATE notes +SET noteField = @noteField +WHERE (noteID = @original_noteID)</CommandText> + <Parameters> + <Parameter AllowDbNull="False" AutogeneratedName="noteField" ColumnName="noteField" DataSourceName="[C:\DOCUMENTS AND SETTINGS\MICHAELT\DESKTOP\TCDB\WEBPROTOTYPE\APP_DATA\DATABASE.MDF].dbo.notes" DataTypeServer="text" DbType="AnsiString" Direction="Input" ParameterName="@noteField" Precision="0" ProviderType="Text" Scale="0" Size="2147483647" SourceColumn="noteField" SourceColumnNullMapping="False" SourceVersion="Current"> + </Parameter> + <Parameter AllowDbNull="False" AutogeneratedName="original_noteID" ColumnName="noteID" DataSourceName="[C:\DOCUMENTS AND SETTINGS\MICHAELT\DESKTOP\TCDB\WEBPROTOTYPE\APP_DATA\DATABASE.MDF].dbo.notes" DataTypeServer="int" DbType="Int32" Direction="Input" ParameterName="@original_noteID" Precision="0" ProviderType="Int" Scale="0" Size="4" SourceColumn="noteID" SourceColumnNullMapping="False" SourceVersion="Original"> + </Parameter> + </Parameters> + </DbCommand> + </UpdateCommand> + </DbSource> + </Sources> + </TableAdapter> </Tables> <Sources> </Sources> @@ -1193,102 +1261,102 @@ <xs:element name="Objective" msprop:Generator_UserTableName="Objective" msprop:Generator_RowDeletedName="ObjectiveRowDeleted" msprop:Generator_RowChangedName="ObjectiveRowChanged" msprop:Generator_RowClassName="ObjectiveRow" msprop:Generator_RowChangingName="ObjectiveRowChanging" msprop:Generator_RowEvArgName="ObjectiveRowChangeEvent" msprop:Generator_RowEvHandlerName="ObjectiveRowChangeEventHandler" msprop:Generator_TableClassName="ObjectiveDataTable" msprop:Generator_TableVarName="tableObjective" msprop:Generator_RowDeletingName="ObjectiveRowDeleting" msprop:Generator_TablePropName="Objective"> <xs:complexType> <xs:sequence> - <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnPropNameInTable="nameColumn" minOccurs="0"> + <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInTable="nameColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="255" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> + <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="2147483647" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="objectiveID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="objectiveID" msprop:Generator_ColumnVarNameInTable="columnobjectiveID" msprop:Generator_ColumnPropNameInRow="objectiveID" msprop:Generator_ColumnPropNameInTable="objectiveIDColumn" type="xs:int" /> - <xs:element name="featureID" msprop:Generator_UserColumnName="featureID" msprop:Generator_ColumnVarNameInTable="columnfeatureID" msprop:Generator_ColumnPropNameInRow="featureID" msprop:Generator_ColumnPropNameInTable="featureIDColumn" type="xs:int" /> - <xs:element name="userID" msprop:Generator_UserColumnName="userID" msprop:Generator_ColumnVarNameInTable="columnuserID" msprop:Generator_ColumnPropNameInRow="userID" msprop:Generator_ColumnPropNameInTable="userIDColumn" type="xs:int" minOccurs="0" /> - <xs:element name="dateCreated" msprop:Generator_UserColumnName="dateCreated" msprop:Generator_ColumnVarNameInTable="columndateCreated" msprop:Generator_ColumnPropNameInRow="dateCreated" msprop:Generator_ColumnPropNameInTable="dateCreatedColumn" type="xs:dateTime" minOccurs="0" /> - <xs:element name="statusID" msprop:Generator_UserColumnName="statusID" msprop:Generator_ColumnVarNameInTable="columnstatusID" msprop:Generator_ColumnPropNameInRow="statusID" msprop:Generator_ColumnPropNameInTable="statusIDColumn" type="xs:int" default="0" minOccurs="0" /> + <xs:element name="objectiveID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="objectiveID" msprop:Generator_ColumnPropNameInRow="objectiveID" msprop:Generator_ColumnVarNameInTable="columnobjectiveID" msprop:Generator_ColumnPropNameInTable="objectiveIDColumn" type="xs:int" /> + <xs:element name="featureID" msprop:Generator_UserColumnName="featureID" msprop:Generator_ColumnPropNameInRow="featureID" msprop:Generator_ColumnVarNameInTable="columnfeatureID" msprop:Generator_ColumnPropNameInTable="featureIDColumn" type="xs:int" /> + <xs:element name="userID" msprop:Generator_UserColumnName="userID" msprop:Generator_ColumnPropNameInRow="userID" msprop:Generator_ColumnVarNameInTable="columnuserID" msprop:Generator_ColumnPropNameInTable="userIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="dateCreated" msprop:Generator_UserColumnName="dateCreated" msprop:Generator_ColumnPropNameInRow="dateCreated" msprop:Generator_ColumnVarNameInTable="columndateCreated" msprop:Generator_ColumnPropNameInTable="dateCreatedColumn" type="xs:dateTime" minOccurs="0" /> + <xs:element name="statusID" msprop:Generator_UserColumnName="statusID" msprop:Generator_ColumnPropNameInRow="statusID" msprop:Generator_ColumnVarNameInTable="columnstatusID" msprop:Generator_ColumnPropNameInTable="statusIDColumn" type="xs:int" default="0" minOccurs="0" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="TestCase" msprop:Generator_UserTableName="TestCase" msprop:Generator_RowDeletedName="TestCaseRowDeleted" msprop:Generator_RowChangedName="TestCaseRowChanged" msprop:Generator_RowClassName="TestCaseRow" msprop:Generator_RowChangingName="TestCaseRowChanging" msprop:Generator_RowEvArgName="TestCaseRowChangeEvent" msprop:Generator_RowEvHandlerName="TestCaseRowChangeEventHandler" msprop:Generator_TableClassName="TestCaseDataTable" msprop:Generator_TableVarName="tableTestCase" msprop:Generator_RowDeletingName="TestCaseRowDeleting" msprop:Generator_TablePropName="TestCase"> <xs:complexType> <xs:sequence> - <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnPropNameInTable="nameColumn" minOccurs="0"> + <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInTable="nameColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="255" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="steps" msprop:Generator_UserColumnName="steps" msprop:Generator_ColumnVarNameInTable="columnsteps" msprop:Generator_ColumnPropNameInRow="steps" msprop:Generator_ColumnPropNameInTable="stepsColumn" minOccurs="0"> + <xs:element name="steps" msprop:Generator_UserColumnName="steps" msprop:Generator_ColumnPropNameInRow="steps" msprop:Generator_ColumnVarNameInTable="columnsteps" msprop:Generator_ColumnPropNameInTable="stepsColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="2147483647" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="number" msprop:Generator_UserColumnName="number" msprop:Generator_ColumnVarNameInTable="columnnumber" msprop:Generator_ColumnPropNameInRow="number" msprop:Generator_ColumnPropNameInTable="numberColumn" type="xs:int" minOccurs="0" /> - <xs:element name="dateCreated" msprop:Generator_UserColumnName="dateCreated" msprop:Generator_ColumnVarNameInTable="columndateCreated" msprop:Generator_ColumnPropNameInRow="dateCreated" msprop:Generator_ColumnPropNameInTable="dateCreatedColumn" type="xs:dateTime" minOccurs="0" /> - <xs:element name="dateEdited" msprop:Generator_UserColumnName="dateEdited" msprop:Generator_ColumnVarNameInTable="columndateEdited" msprop:Generator_ColumnPropNameInRow="dateEdited" msprop:Generator_ColumnPropNameInTable="dateEditedColumn" type="xs:dateTime" minOccurs="0" /> - <xs:element name="objectiveID" msprop:Generator_UserColumnName="objectiveID" msprop:Generator_ColumnVarNameInTable="columnobjectiveID" msprop:Generator_ColumnPropNameInRow="objectiveID" msprop:Generator_ColumnPropNameInTable="objectiveIDColumn" type="xs:int" minOccurs="0" /> - <xs:element name="statusID" msprop:Generator_UserColumnName="statusID" msprop:Generator_ColumnVarNameInTable="columnstatusID" msprop:Generator_ColumnPropNameInRow="statusID" msprop:Generator_ColumnPropNameInTable="statusIDColumn" type="xs:int" minOccurs="0" /> - <xs:element name="testcaseID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="testcaseID" msprop:Generator_ColumnPropNameInRow="testcaseID" msprop:Generator_ColumnVarNameInTable="columntestcaseID" msprop:Generator_ColumnPropNameInTable="testcaseIDColumn" type="xs:int" /> - <xs:element name="creatorID" msprop:Generator_UserColumnName="creatorID" msprop:Generator_ColumnPropNameInRow="creatorID" msprop:Generator_ColumnVarNameInTable="columncreatorID" msprop:Generator_ColumnPropNameInTable="creatorIDColumn" type="xs:int" minOccurs="0" /> - <xs:element name="lastEditID" msprop:Generator_UserColumnName="lastEditID" msprop:Generator_ColumnPropNameInRow="lastEditID" msprop:Generator_ColumnVarNameInTable="columnlastEditID" msprop:Generator_ColumnPropNameInTable="lastEditIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="number" msprop:Generator_UserColumnName="number" msprop:Generator_ColumnPropNameInRow="number" msprop:Generator_ColumnVarNameInTable="columnnumber" msprop:Generator_ColumnPropNameInTable="numberColumn" type="xs:int" minOccurs="0" /> + <xs:element name="dateCreated" msprop:Generator_UserColumnName="dateCreated" msprop:Generator_ColumnPropNameInRow="dateCreated" msprop:Generator_ColumnVarNameInTable="columndateCreated" msprop:Generator_ColumnPropNameInTable="dateCreatedColumn" type="xs:dateTime" minOccurs="0" /> + <xs:element name="dateEdited" msprop:Generator_UserColumnName="dateEdited" msprop:Generator_ColumnPropNameInRow="dateEdited" msprop:Generator_ColumnVarNameInTable="columndateEdited" msprop:Generator_ColumnPropNameInTable="dateEditedColumn" type="xs:dateTime" minOccurs="0" /> + <xs:element name="objectiveID" msprop:Generator_UserColumnName="objectiveID" msprop:Generator_ColumnPropNameInRow="objectiveID" msprop:Generator_ColumnVarNameInTable="columnobjectiveID" msprop:Generator_ColumnPropNameInTable="objectiveIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="statusID" msprop:Generator_UserColumnName="statusID" msprop:Generator_ColumnPropNameInRow="statusID" msprop:Generator_ColumnVarNameInTable="columnstatusID" msprop:Generator_ColumnPropNameInTable="statusIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="testcaseID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="testcaseID" msprop:Generator_ColumnVarNameInTable="columntestcaseID" msprop:Generator_ColumnPropNameInRow="testcaseID" msprop:Generator_ColumnPropNameInTable="testcaseIDColumn" type="xs:int" /> + <xs:element name="creatorID" msprop:Generator_UserColumnName="creatorID" msprop:Generator_ColumnVarNameInTable="columncreatorID" msprop:Generator_ColumnPropNameInRow="creatorID" msprop:Generator_ColumnPropNameInTable="creatorIDColumn" type="xs:int" minOccurs="0" /> + <xs:element name="lastEditID" msprop:Generator_UserColumnName="lastEditID" msprop:Generator_ColumnVarNameInTable="columnlastEditID" msprop:Generator_ColumnPropNameInRow="lastEditID" msprop:Generator_ColumnPropNameInTable="lastEditIDColumn" type="xs:int" minOccurs="0" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="Tags" msprop:Generator_UserTableName="Tags" msprop:Generator_RowDeletedName="TagsRowDeleted" msprop:Generator_RowChangedName="TagsRowChanged" msprop:Generator_RowClassName="TagsRow" msprop:Generator_RowChangingName="TagsRowChanging" msprop:Generator_RowEvArgName="TagsRowChangeEvent" msprop:Generator_RowEvHandlerName="TagsRowChangeEventHandler" msprop:Generator_TableClassName="TagsDataTable" msprop:Generator_TableVarName="tableTags" msprop:Generator_RowDeletingName="TagsRowDeleting" msprop:Generator_TablePropName="Tags"> <xs:complexType> <xs:sequence> - <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnPropNameInTable="nameColumn"> + <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInTable="nameColumn"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> + <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="255" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="tagID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="tagID" msprop:Generator_ColumnPropNameInRow="tagID" msprop:Generator_ColumnVarNameInTable="columntagID" msprop:Generator_ColumnPropNameInTable="tagIDColumn" type="xs:int" /> - <xs:element name="productID" msprop:Generator_UserColumnName="productID" msprop:Generator_ColumnPropNameInRow="productID" msprop:Generator_ColumnVarNameInTable="columnproductID" msprop:Generator_ColumnPropNameInTable="productIDColumn" type="xs:int" /> + <xs:element name="tagID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="tagID" msprop:Generator_ColumnVarNameInTable="columntagID" msprop:Generator_ColumnPropNameInRow="tagID" msprop:Generator_ColumnPropNameInTable="tagIDColumn" type="xs:int" /> + <xs:element name="productID" msprop:Generator_UserColumnName="productID" msprop:Generator_ColumnVarNameInTable="columnproductID" msprop:Generator_ColumnPropNameInRow="productID" msprop:Generator_ColumnPropNameInTable="productIDColumn" type="xs:int" /> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="product" msprop:Generator_UserTableName="product" msprop:Generator_RowDeletedName="productRowDeleted" msprop:Generator_RowChangedName="productRowChanged" msprop:Generator_RowClassName="productRow" msprop:Generator_RowChangingName="productRowChanging" msprop:Generator_RowEvArgName="productRowChangeEvent" msprop:Generator_RowEvHandlerName="productRowChangeEventHandler" msprop:Generator_TableClassName="productDataTable" msprop:Generator_TableVarName="tableproduct" msprop:Generator_RowDeletingName="productRowDeleting" msprop:Generator_TablePropName="product"> <xs:complexType> <xs:sequence> - <xs:element name="productID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="productID" msprop:Generator_ColumnVarNameInTable="columnproductID" msprop:Generator_ColumnPropNameInRow="productID" msprop:Generator_ColumnPropNameInTable="productIDColumn" type="xs:int" /> - <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnPropNameInTable="nameColumn" minOccurs="0"> + <xs:element name="productID" msdata:ReadOnly="true" msdata:AutoIncrement="true" msprop:Generator_UserColumnName="productID" msprop:Generator_ColumnPropNameInRow="productID" msprop:Generator_ColumnVarNameInTable="columnproductID" msprop:Generator_ColumnPropNameInTable="productIDColumn" type="xs:int" /> + <xs:element name="name" msprop:Generator_UserColumnName="name" msprop:Generator_ColumnPropNameInRow="name" msprop:Generator_ColumnVarNameInTable="columnname" msprop:Generator_ColumnPropNameInTable="nameColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="255" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> + <xs:element name="description" msprop:Generator_UserColumnName="description" msprop:Generator_ColumnPropNameInRow="description" msprop:Generator_ColumnVarNameInTable="columndescription" msprop:Generator_ColumnPropNameInTable="descriptionColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="2147483647" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="devManager" msprop:Generator_UserColumnName="devManager" msprop:Generator_ColumnVarNameInTable="columndevManager" msprop:Generator_ColumnPropNameInRow="devManager" msprop:Generator_ColumnPropNameInTable="devManagerColumn" type="xs:int" minOccurs="0" /> - <xs:element name="qaManager" msprop:Generator_UserColumnName="qaManager" msprop:Generator_ColumnVarNameInTable="columnqaManager" msprop:Generator_ColumnPropNameInRow="qaManager" msprop:Generator_ColumnPropNameInTable="qaManagerColumn" type="xs:int" minOccurs="0" /> - <xs:element name="devLead" msprop:Generator_UserColumnName="devLead" msprop:Generator_ColumnVarNameInTable="columndevLead" msprop:Generator_ColumnPropNameInRow="devLead" msprop:Generator_ColumnPropNameInTable="devLeadColumn" type="xs:int" minOccurs="0" /> - <xs:element name="qaLead" msprop:Generator_UserColumnName="qaLead" msprop:Generator_ColumnVarNameInTable="columnqaLead" msprop:Generator_ColumnPropNameInRow="qaLead" msprop:Generator_ColumnPropNameInTable="qaLeadColumn" type="xs:int" minOccurs="0" /> - <xs:element name="pm" msprop:Generator_UserColumnName="pm" msprop:Generator_ColumnVarNameInTable="columnpm" msprop:Generator_ColumnPropNameInRow="pm" msprop:Generator_ColumnPropNameInTable="pmColumn" type="xs:int" minOccurs="0" /> - <xs:element name="codeName" msprop:Generator_UserColumnName="codeName" msprop:Generator_ColumnVarNameInTable="columncodeName" msprop:Generator_ColumnPropNameInRow="codeName" msprop:Generator_ColumnPropNameInTable="codeNameColumn" minOccurs="0"> + <xs:element name="devManager" msprop:Generator_UserColumnName="devManager" msprop:Generator_ColumnPropNameInRow="devManager" msprop:Generator_ColumnVarNameInTable="columndevManager" msprop:Generator_ColumnPropNameInTable="devManagerColumn" type="xs:int" minOccurs="0" /> + <xs:element name="qaManager" msprop:Generator_UserColumnName="qaManager" msprop:Generator_ColumnPropNameInRow="qaManager" msprop:Generator_ColumnVarNameInTable="columnqaManager" msprop:Generator_ColumnPropNameInTable="qaManagerColumn" type="xs:int" minOccurs="0" /> + <xs:element name="devLead" msprop:Generator_UserColumnName="devLead" msprop:Generator_ColumnPropNameInRow="devLead" msprop:Generator_ColumnVarNameInTable="columndevLead" msprop:Generator_ColumnPropNameInTable="devLeadColumn" type="xs:int" minOccurs="0" /> + <xs:element name="qaLead" msprop:Generator_UserColumnName="qaLead" msprop:Generator_ColumnPropNameInRow="qaLead" msprop:Generator_ColumnVarNameInTable="columnqaLead" msprop:Generator_ColumnPropNameInTable="qaLeadColumn" type="xs:int" minOccurs="0" /> + <xs:element name="pm" msprop:Generator_UserColumnName="pm" msprop:Generator_ColumnPropNameInRow="pm" msprop:Generator_ColumnVarNameInTable="columnpm" msprop:Generator_ColumnPropNameInTable="pmColumn" type="xs:int" minOccurs="0" /> + <xs:element name="codeName" msprop:Generator_UserColumnName="codeName" msprop:Generator_ColumnPropNameInRow="codeName" msprop:Generator_ColumnVarNameInTable="columncodeName" msprop:Generator_ColumnPropNameInTable="codeNameColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="10" /> @@ -1301,51 +1369,51 @@ <xs:element name="Users" msprop:Generator_UserTableName="Users" msprop:Generator_RowDeletedName="UsersRowDeleted" msprop:Generator_RowChangedName="UsersRowChanged" msprop:Generator_RowClassName="UsersRow" msprop:Generator_RowChangingName="UsersRowChanging" msprop:Generator_RowEvArgName="UsersRowChangeEvent" msprop:Generator_RowEvHandlerName="UsersRowChangeEventHandler" msprop:Generator_TableClassName="UsersDataTable" msprop:Generator_TableVarName="tableUsers" msprop:Generator_RowDeletingName="UsersRowDeleting" msprop:Generator_TablePropName="Users"> <xs:complexType> <xs:sequence> - <xs:element name="email" msprop:Generator_UserColumnName="email" msprop:Generator_ColumnPropNameInRow="email" msprop:Generator_ColumnVarNameInTable="columnemail" msprop:Generator_ColumnPropNameInTable="emailColumn" minOccurs="0"> + <xs:element name="email" msprop:Generator_UserColumnName="email" msprop:Generator_ColumnVarNameInTable="columnemail" msprop:Generator_ColumnPropNameInRow="email" msprop:Generator_ColumnPropNameInTable="emailColumn" minOccurs="0"> <xs:simpleType> <xs:restriction base="xs:string"> <xs:maxLength value="50" /> </xs:restriction> </xs:simpleType> </xs:element> - <xs:element name="officePhone" msprop:Generator_UserColumnName="officePhone" msprop:Generator_ColumnPropNameInRow="officePhone" msprop:Generator_ColumnVarNameInTable="columnofficePhone" msprop:Generator_ColumnPropNameInTable="officePhoneColumn" minOccurs="0"> + <xs:element name="officePhone" msprop:Generator_UserColumnName="officePhone" msprop:Generator_ColumnVarNameInTable="columnofficePhone" msprop:Generator_ColumnPropName... [truncated message content] |
From: <jco...@us...> - 2006-07-07 00:04:36
|
Revision: 83 Author: jcorbett Date: 2006-07-06 17:04:33 -0700 (Thu, 06 Jul 2006) ViewCVS: http://svn.sourceforge.net/tcdb/?rev=83&view=rev Log Message: ----------- Stupid windows (visual studio) Removed Paths: ------------- Website/Web.config Deleted: Website/Web.config =================================================================== --- Website/Web.config 2006-07-07 00:03:50 UTC (rev 82) +++ Website/Web.config 2006-07-07 00:04:33 UTC (rev 83) @@ -1,131 +0,0 @@ -<?xml version="1.0"?> -<!-- - Note: As an alternative to hand editing this file you can use the - web admin tool to configure settings for your application. Use - the Website->Asp.Net Configuration option in Visual Studio. - A full list of settings and comments can be found in - machine.config.comments usually located in - \Windows\Microsoft.Net\Framework\v2.x\Config ---> -<configuration> - <!-- - The configSections define a section for ASP.NET Atlas. - --> - <configSections> - <sectionGroup name="microsoft.web" type="Microsoft.Web.Configuration.MicrosoftWebSectionGroup"> - <section name="converters" type="Microsoft.Web.Configuration.ConvertersSection" requirePermission="false"/> - <section name="webServices" type="Microsoft.Web.Configuration.WebServicesSection" requirePermission="false"/> - <section name="authenticationService" type="Microsoft.Web.Configuration.AuthenticationServiceSection" requirePermission="false"/> - <section name="profileService" type="Microsoft.Web.Configuration.ProfileServiceSection" requirePermission="false"/> - </sectionGroup> - </configSections> - <!-- - The microsoft.web section defines items required for the Atlas framework. - --> - <microsoft.web> - <converters> - <add type="Microsoft.Web.Script.Serialization.Converters.DataSetConverter"/> - <add type="Microsoft.Web.Script.Serialization.Converters.DataRowConverter"/> - <add type="Microsoft.Web.Script.Serialization.Converters.DataTableConverter"/> - </converters> - <webServices enableBrowserAccess="true"/> - <!-- - Uncomment this line to enable the authentication service. - <authenticationService enabled="true" /> - --> - <!-- Uncomment these lines to enable the profile service. To allow profile properties to be retrieved - and modified in Atlas applications, you need to add each property name to the setProperties and - getProperties attributes. If you intend for all properties to be available, you can use "*" - as a shorthand rather than enumerating each property --> - <!-- - <profileService enabled="true" - setProperties="propertyname1;propertyname2" - getProperties="propertyname1;propertyname2" /> - --> - </microsoft.web> - <appSettings/> - <connectionStrings/> - <system.web> - <pages theme="Python" styleSheetTheme="Python"> - <!-- TODO: Make sure the theme is being pulled dynamically --> - <controls> - <add namespace="Microsoft.Web.UI" assembly="Microsoft.Web.Atlas" tagPrefix="atlas"/> - <add namespace="Microsoft.Web.UI.Controls" assembly="Microsoft.Web.Atlas" tagPrefix="atlas"/> - </controls> - </pages> - <!-- - Set compilation debug="true" to insert debugging - symbols into the compiled page. Because this - affects performance, set this value to true only - during development. - --> - <compilation debug="true"> - <buildProviders> - <add extension=".asbx" type="Microsoft.Web.Services.BridgeBuildProvider"/> - </buildProviders> - </compilation> - <!-- - ASMX is mapped to a new handler so that proxy javascripts can also be served. - --> - <httpHandlers> - <remove verb="*" path="*.asmx"/> - <add verb="*" path="*.asmx" type="Microsoft.Web.Services.ScriptHandlerFactory" validate="false"/> - <!-- - The MultiRequestHandler enables multiple requests to be handled in one - roundtrip to the server. Its use requires Full Trust. - --> - <add verb="*" path="atlasbatchcall.axd" type="Microsoft.Web.Services.MultiRequestHandler" validate="false"/> - <add verb="*" path="atlasglob.axd" type="Microsoft.Web.Globalization.GlobalizationHandler" validate="false"/> - <!-- - The IFrameHandler enables a limited form of cross-domain calls to 'Atlas' web services. - This should only be enabled if you need this functionality and you're willing to expose - the data publicly on the Internet. - To use it, you will also need to add the attribute [WebOperation(true, ResponseFormatMode.Json, true)] - on the methods that you want to be called cross-domain. - This attribute is by default on any DataService's GetData method. - - <add verb="*" path="iframecall.axd" type="Microsoft.Web.Services.IFrameHandler" validate="false"/> - --> - <add verb="*" path="*.asbx" type="Microsoft.Web.Services.ScriptHandlerFactory" validate="false"/> - </httpHandlers> - <httpModules> - <add name="ScriptModule" type="Microsoft.Web.Services.ScriptModule"/> - <add name="BridgeModule" type="Microsoft.Web.Services.BridgeModule"/> - <add name="WebResourceCompression" type="Microsoft.Web.Services.WebResourceCompressionModule"/> - </httpModules> - <!-- - The <authentication> section enables configuration - of the security authentication mode used by - ASP.NET to identify an incoming user. - - <authentication mode="Windows"/> - --> - <!-- - The <customErrors> section enables configuration - of what to do if/when an unhandled error occurs - during the execution of a request. Specifically, - it enables developers to configure html error pages - to be displayed in place of a error stack trace. - - <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm"> - <error statusCode="403" redirect="NoAccess.htm"/> - <error statusCode="404" redirect="FileNotFound.htm"/> - </customErrors> - --> - </system.web> - <!-- Uncomment this if your site globally denies access to anonymous users. The - authentication service and profile service are located under the virtual - "ScriptServices" directory. Since you normally call the authentication web - service with an un-authenticated user, the following location tag can be used - to grant access to anonymous users. If you use anonymous profile support - you will also need to grant access to anonymous users. --> - <!-- - <location path="ScriptServices"> - <system.web> - <authorization> - <allow users="*" /> - </authorization> - </system.web> - </location> - --> -</configuration> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jon...@us...> - 2006-07-07 00:03:53
|
Revision: 82 Author: jon_r_johnson Date: 2006-07-06 17:03:50 -0700 (Thu, 06 Jul 2006) ViewCVS: http://svn.sourceforge.net/tcdb/?rev=82&view=rev Log Message: ----------- Added stored procedure sel_users Modified Paths: -------------- Schema/TCDBSQLServer2005.sql Modified: Schema/TCDBSQLServer2005.sql =================================================================== --- Schema/TCDBSQLServer2005.sql 2006-07-07 00:01:18 UTC (rev 81) +++ Schema/TCDBSQLServer2005.sql 2006-07-07 00:03:50 UTC (rev 82) @@ -1534,6 +1534,68 @@ |
From: <m_h...@us...> - 2006-07-07 00:01:28
|
Revision: 81 Author: m_hildebrand Date: 2006-07-06 17:01:18 -0700 (Thu, 06 Jul 2006) ViewCVS: http://svn.sourceforge.net/tcdb/?rev=81&view=rev Log Message: ----------- Got the authentication hooked up to AD Modified Paths: -------------- Design/Architecture/Namespace, Class, and Public Method Definitions.doc Website/App_Code/TCDB_Constants.cs Website/App_Code/TCDB_Users.cs Website/App_Themes/Python/python.css Website/Includes/Header_User.ascx Website/web.config Added Paths: ----------- Website/App_Code/AD_Authentication.cs Website/Includes/AdministrationTree.ascx Website/Includes/SqlDatabase.ascx Modified: Design/Architecture/Namespace, Class, and Public Method Definitions.doc =================================================================== (Binary files differ) Added: Website/App_Code/AD_Authentication.cs =================================================================== --- Website/App_Code/AD_Authentication.cs (rev 0) +++ Website/App_Code/AD_Authentication.cs 2006-07-07 00:01:18 UTC (rev 81) @@ -0,0 +1,79 @@ +using System; +using System.Data; +using System.DirectoryServices; +using System.Configuration; +using System.Web; +using System.Web.Security; +using System.Web.UI; +using System.Web.UI.WebControls; +using System.Web.UI.WebControls.WebParts; +using System.Web.UI.HtmlControls; +using TCDB_Users; + +namespace AD_Auth +{ + /// <summary> + /// Summary description for AD_Authentication + /// </summary> + public static class AD_Authentication + { + public static bool AD_Authenticate(string strDomain, string strUserName, string strPassword) + { + bool result = false; + DirectoryEntry de = new DirectoryEntry("LDAP://" + strDomain, strUserName, strPassword); + DirectorySearcher ds = new DirectorySearcher(de); + ds.SearchScope = SearchScope.OneLevel; + try + { + SearchResult sr = ds.FindOne(); + if (sr != null) result = true; + } + catch + { + result = false; + } + + return result; + } + + public static TCDB_User AD_GetUserInfo(string strDomain, string strUserName, string strPassword) + { + DirectoryEntry de = new DirectoryEntry("LDAP://" + strDomain, strUserName, strPassword); + DirectorySearcher ds = new DirectorySearcher(de); + ds.SearchScope = SearchScope.Subtree; + ds.Filter = "(&(objectClass=user)(sAMAccountName=" + strUserName + "))"; + TCDB_User user = new TCDB_User(); + + user.USERID = TCDB_Constants.TCDB_Constant.USER_NEWUSER; + user.AUTOMATION = false; + user.ISAUTHENTICATED = true; + user.USERNAME = strUserName; + string myText = ""; + try + { + SearchResult sr = ds.FindOne(); + if (sr != null) + { + ResultPropertyCollection rpc = sr.Properties; + + user.FIRSTNAME = rpc["givenName"][0].ToString(); + user.LASTNAME = rpc["sn"][0].ToString(); + user.EMAIL = rpc["mail"][0].ToString(); + user.HOMEPHONE = rpc["homePhone"][0].ToString(); + user.OFFICEPHONE = rpc["telephoneNumber"][0].ToString(); + } + } + catch + { + } + finally + { + ds.Dispose(); + de.Dispose(); + } + + return user; + } + + } +} \ No newline at end of file Modified: Website/App_Code/TCDB_Constants.cs =================================================================== --- Website/App_Code/TCDB_Constants.cs 2006-07-06 22:45:02 UTC (rev 80) +++ Website/App_Code/TCDB_Constants.cs 2006-07-07 00:01:18 UTC (rev 81) @@ -17,5 +17,6 @@ { public static int USER_FAILEDLOGIN = -2; public static int USER_NOTREGISTERED = -1; + public static int USER_NEWUSER = -1; } } \ No newline at end of file Modified: Website/App_Code/TCDB_Users.cs =================================================================== --- Website/App_Code/TCDB_Users.cs 2006-07-06 22:45:02 UTC (rev 80) +++ Website/App_Code/TCDB_Users.cs 2006-07-07 00:01:18 UTC (rev 81) @@ -1,6 +1,5 @@ using System; using System.Data; -using System.DirectoryServices; using System.Data.SqlClient; using System.Configuration; using System.Web; @@ -13,6 +12,7 @@ using TCDB_Constants; using System.Collections; using System.Collections.Generic; +using AD_Auth; namespace TCDB_Users @@ -37,34 +37,43 @@ /// <value> /// An <c>int</c> representing the user's ID or DefaultValue if the process fails /// </value> - public static int TCDB_AuthenticateUser(string strUserName, string strPassword) + public static TCDB_User TCDB_AuthenticateUser(string strDomain, string strUserName, string strPassword) { // TODO: Add logic here to determine and use the appropriate // authentication method based on configuration data - bool result = false; - DirectoryEntry de = new DirectoryEntry("LDAP://slam", strUserName, strPassword); - DirectorySearcher ds = new DirectorySearcher(de); - ds.SearchScope = SearchScope.OneLevel; - try + + // Using AD authentication + if (!AD_Authentication.AD_Authenticate(strDomain, strUserName, strPassword)) { - SearchResult sr = ds.FindOne(); - if (sr != null) result = true; + // We can't authenticate, so return the guest user + return new TCDB_User(); } - catch - { - result = false; - } - if (!result) + // Determine if the user exists in the DB or not. If not, we need to get + // the basic info + TCDB_User user = TCDB_GetUserInfo(strUserName); + if (user.USERID > 1) { - return TCDB_Constant.USER_FAILEDLOGIN; + user.ISAUTHENTICATED = true; + return user; } - // TODO: Look up the user ID from the DB now that we have a valid user - // and return the user object - return 0; + // Using AD authentication + user = AD_Authentication.AD_GetUserInfo(strDomain, strUserName, strPassword); + + + + return user; } + + public static TCDB_User TCDB_GetUserInfo(string strUserName) + { + // TODO: Check against the DB for user information + return new TCDB_User(); + } + + } /// <summary> @@ -183,6 +192,7 @@ public bool ISAUTHENTICATED { get { return isAuthenticated; } + set { isAuthenticated = value; } } } Modified: Website/App_Themes/Python/python.css =================================================================== --- Website/App_Themes/Python/python.css 2006-07-06 22:45:02 UTC (rev 80) +++ Website/App_Themes/Python/python.css 2006-07-07 00:01:18 UTC (rev 81) @@ -83,17 +83,17 @@ } /* Define the username and password box sizes */ -#User #UserName, #User #Password +#User #UserNameControl, #User #PasswordControl { display: inline; } -#UserName input, #Password input +#UserNameControl input, #PasswordControl input { width: 80px; } -#User #RememberMe +#User #RememberMeControl { display: inline; position: relative; Added: Website/Includes/AdministrationTree.ascx =================================================================== --- Website/Includes/AdministrationTree.ascx (rev 0) +++ Website/Includes/AdministrationTree.ascx 2006-07-07 00:01:18 UTC (rev 81) @@ -0,0 +1,5 @@ +<%@ Control Language="C#" ClassName="AdministrationTree" %> + +<script runat="server"> + +</script> Modified: Website/Includes/Header_User.ascx =================================================================== --- Website/Includes/Header_User.ascx 2006-07-06 22:45:02 UTC (rev 80) +++ Website/Includes/Header_User.ascx 2006-07-07 00:01:18 UTC (rev 81) @@ -2,30 +2,25 @@ <%@ Import Namespace="TCDB_Users" %> <script runat="server"> - - protected void Login_Click(object sender, EventArgs e) - {/* - if (TCDB_UserDB.TCDB_AuthenticateUser(UserNameControl.Text, PasswordControl.Text) > 0) - { - } - else - { - - }*/ + protected void Login_Authenticate(object sender, EventArgs e) + { + int temp = 1; + string [] user = ((System.Web.UI.WebControls.Login)sender).UserName.Split("\\".ToCharArray()); + TCDB_UserDB.TCDB_AuthenticateUser(user[0], user[1], ((System.Web.UI.WebControls.Login)sender).Password); } </script> -<asp:LoginView ID="LoginView1" runat="server"> +<asp:LoginView ID="LoginView" runat="server"> <AnonymousTemplate> -<asp:Login ID="Login1" runat="server"> +<asp:Login ID="Login1" OnAuthenticate="Login_Authenticate" runat="server"> <LayoutTemplate> <asp:Label ID="lblMessage" runat="server" Text="" /> - Username: <div id="UserName"><asp:TextBox ID="UserNameControl" runat="server" /></div> - <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserNameControl" Text="*" /> - Password: <div id="Password"><asp:TextBox ID="PasswordControl" runat="server" TextMode="password" /></div> - <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="PasswordControl" Text="*" /> - Remember Me: <div id="RememberMe"><asp:CheckBox ID="RememberMeControl" runat="server" /></div> - <asp:LinkButton ID="Login" CommandName="Login" Text="Login" runat="server" OnClick="Login_Click" /> + Username: <div id="UserNameControl"><asp:TextBox ID="UserName" runat="server" /></div> + <asp:RequiredFieldValidator ID="UserNameRequired" runat="server" ControlToValidate="UserName" Text="*" /> + Password: <div id="PasswordControl"><asp:TextBox ID="Password" runat="server" TextMode="password" /></div> + <asp:RequiredFieldValidator ID="PasswordRequired" runat="server" ControlToValidate="Password" Text="*" /> + Remember Me: <div id="RememberMeControl"><asp:CheckBox ID="RememberMe" runat="server" /></div> + <asp:LinkButton ID="LoginControl" CommandName="Login" Text="Login" runat="server" /> </LayoutTemplate> </asp:Login> </AnonymousTemplate> Added: Website/Includes/SqlDatabase.ascx =================================================================== --- Website/Includes/SqlDatabase.ascx (rev 0) +++ Website/Includes/SqlDatabase.ascx 2006-07-07 00:01:18 UTC (rev 81) @@ -0,0 +1,5 @@ +<%@ Control Language="C#" ClassName="SqlDatabase" %> + + + + Modified: Website/web.config =================================================================== --- Website/web.config 2006-07-06 22:45:02 UTC (rev 80) +++ Website/web.config 2006-07-07 00:01:18 UTC (rev 81) @@ -44,9 +44,15 @@ --> </microsoft.web> <appSettings/> - <connectionStrings/> + <connectionStrings> + <add name="dadConnectionString" connectionString="Data Source=dad\sqlserver2005;Initial Catalog=tcdb;Persist Security Info=True;User ID=tcdb;Password=tcdbpw" + providerName="System.Data.SqlClient" /> + </connectionStrings> <system.web> - <pages theme="Python" styleSheetTheme="Python"> + <authentication mode="Forms"> + <forms loginUrl="login.aspx" /> + </authentication> + <pages styleSheetTheme="Python"> <!-- TODO: Make sure the theme is being pulled dynamically --> <controls> <add namespace="Microsoft.Web.UI" assembly="Microsoft.Web.Atlas" tagPrefix="atlas"/> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jon...@us...> - 2006-07-06 22:45:07
|
Revision: 80 Author: jon_r_johnson Date: 2006-07-06 15:45:02 -0700 (Thu, 06 Jul 2006) ViewCVS: http://svn.sourceforge.net/tcdb/?rev=80&view=rev Log Message: ----------- Added Table tcdb_config. Modified Paths: -------------- Schema/TCDBSQLServer2005.sql Modified: Schema/TCDBSQLServer2005.sql =================================================================== --- Schema/TCDBSQLServer2005.sql 2006-07-06 21:06:22 UTC (rev 79) +++ Schema/TCDBSQLServer2005.sql 2006-07-06 22:45:02 UTC (rev 80) @@ -256,6 +256,24 @@ |
From: <jon...@us...> - 2006-07-06 21:06:27
|
Revision: 79 Author: jon_r_johnson Date: 2006-07-06 14:06:22 -0700 (Thu, 06 Jul 2006) ViewCVS: http://svn.sourceforge.net/tcdb/?rev=79&view=rev Log Message: ----------- Added column TestPassID to tcdb_actionItem. Updated stored procedure ins_actionItem. Modified Paths: -------------- Schema/TCDBSQLServer2005.sql Modified: Schema/TCDBSQLServer2005.sql =================================================================== --- Schema/TCDBSQLServer2005.sql 2006-07-06 21:01:40 UTC (rev 78) +++ Schema/TCDBSQLServer2005.sql 2006-07-06 21:06:22 UTC (rev 79) @@ -169,24 +169,6 @@ |
From: <ro...@us...> - 2006-07-06 21:01:51
|
Revision: 78 Author: rouquin Date: 2006-07-06 14:01:40 -0700 (Thu, 06 Jul 2006) ViewCVS: http://svn.sourceforge.net/tcdb/?rev=78&view=rev Log Message: ----------- A few small changes Modified Paths: -------------- WebPrototype/ActionItemEdit.aspx.cs WebPrototype/App_Data/ASPNETDB.MDF WebPrototype/App_Data/Database.mdf WebPrototype/App_Data/Database_log.LDF WebPrototype/App_Data/aspnetdb_log.ldf WebPrototype/WorkOrderEdit.aspx.cs Modified: WebPrototype/ActionItemEdit.aspx.cs =================================================================== --- WebPrototype/ActionItemEdit.aspx.cs 2006-07-06 19:57:06 UTC (rev 77) +++ WebPrototype/ActionItemEdit.aspx.cs 2006-07-06 21:01:40 UTC (rev 78) @@ -158,11 +158,13 @@ { Label createdBy = (Label)FormView1.FindControl("createdByLbl"); Label dateAssigned = (Label)FormView1.FindControl("dateAssignedLbl"); + DropDownList assignedTo = (DropDownList)FormView1.FindControl("assignedTo"); createdBy.Text = Profile.FirstName + " " + Profile.LastName; createdBy.Attributes.Add("id", Profile.userID); dateAssigned.Text = DateTime.Today.ToShortDateString(); dueDate.DateValue = DateTime.Today; + assignedTo.SelectedValue = Profile.userID; } } Modified: WebPrototype/App_Data/ASPNETDB.MDF =================================================================== (Binary files differ) Modified: WebPrototype/App_Data/Database.mdf =================================================================== (Binary files differ) Modified: WebPrototype/App_Data/Database_log.LDF =================================================================== (Binary files differ) Modified: WebPrototype/App_Data/aspnetdb_log.ldf =================================================================== (Binary files differ) Modified: WebPrototype/WorkOrderEdit.aspx.cs =================================================================== --- WebPrototype/WorkOrderEdit.aspx.cs 2006-07-06 19:57:06 UTC (rev 77) +++ WebPrototype/WorkOrderEdit.aspx.cs 2006-07-06 21:01:40 UTC (rev 78) @@ -14,17 +14,22 @@ public partial class WorkOrderEdit : System.Web.UI.Page { - private int id = System.Convert.ToInt32(HttpContext.Current.Request.QueryString["id"]); + private String id = HttpContext.Current.Request.QueryString["id"]; bool priority; private int[] storedIndices; protected void Page_Load(object sender, EventArgs e) { + if (!User.Identity.IsAuthenticated || Profile.userID == "") + Response.Redirect("default.aspx"); + if (id == null) + id = "0"; + ImageButton priorityImg = (ImageButton)FormView1.FindControl("priorityImg"); if (priorityImg.ImageUrl == "~/Images/exclamation.jpg") priority = true; - WorkOrderDataSource.SelectParameters["workOrderID"].DefaultValue = id.ToString(); - workOrderTestCaseDataSource.SelectParameters["workOrderID"].DefaultValue = id.ToString(); + WorkOrderDataSource.SelectParameters["workOrderID"].DefaultValue = id; + workOrderTestCaseDataSource.SelectParameters["workOrderID"].DefaultValue = id; } protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e) { @@ -124,7 +129,7 @@ SqlDataAdapter DBAdapter = new SqlDataAdapter("SELECT MAX(workOrderID) AS newID FROM WorkOrder",Master.DBConnection); DataSet data = new DataSet(); DBAdapter.Fill(data); - id = Convert.ToInt32(data.Tables[0].Rows[0]["newID"]); + id = data.Tables[0].Rows[0]["newID"].ToString(); // Get platformID DBAdapter = new SqlDataAdapter("SELECT platformID FROM platform WHERE osID="+osList.SelectedValue+" AND architectureID="+archList.SelectedValue, Master.DBConnection); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |