Browse files

removed unwanted files

  • Loading branch information...
1 parent e76697a commit b5a9c72f2a954900dccb74a4fba9fbbfa08f0602 @mikoop79 committed May 18, 2012
View
BIN .DS_Store
Binary file not shown.
View
BIN ABS/ABS.suo
Binary file not shown.
View
40 ABS/ABS/Admin/Admin.master.designer.cs
@@ -1,40 +0,0 @@
-//------------------------------------------------------------------------------
-// <auto-generated>
-// This code was generated by a tool.
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-// </auto-generated>
-//------------------------------------------------------------------------------
-
-
-
-public partial class Admin {
-
- /// <summary>
- /// Head1 control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.HtmlControls.HtmlHead Head1;
-
- /// <summary>
- /// TitleContent control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.ContentPlaceHolder TitleContent;
-
- /// <summary>
- /// MainContent control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.ContentPlaceHolder MainContent;
-}
View
13 ABS/ABS/Admin/Management.aspx.designer.cs
@@ -1,13 +0,0 @@
-//------------------------------------------------------------------------------
-// <auto-generated>
-// This code was generated by a tool.
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-// </auto-generated>
-//------------------------------------------------------------------------------
-
-
-
-public partial class Management {
-}
View
158 ABS/ABS/CheckAvailability.aspx
@@ -1,158 +0,0 @@
-<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.master" AutoEventWireup="true" CodeBehind="CheckAvailability.aspx.cs" Inherits="ABS.CheckAvailability" Theme="admin"%>
-<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
-
-<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
-</asp:Content>
-<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
-<body>
- <form id="form1" runat="server">
-
- <script type="text/javascript">
- function showalert()
- {
- alert("inside alert of show alert");
- }
- </script>
- <asp:ScriptManager ID="ScriptManager1" runat="server">
-
- </asp:ScriptManager>
- <table cellpadding="0" cellspacing="0" border="1">
- <tr>
- <td colspan="2">
- <asp:TextBox ID="calTxtBox" runat="server" OnTextChanged="calTxtBox_OnTextChanged"></asp:TextBox>
- <img id="calID" src="/images/calendar_icon.gif" alt="Please select date" />
- <cc1:CalendarExtender id="calTxtBox_CalendarExtender" runat="server" enabled="True" TargetControlID="calTxtBox" PopupButtonID="calID" >
- </cc1:CalendarExtender>
- <asp:Button ID="btnSearch" runat="server" Text="Search" OnClick="btnSearch_Click" />
-
- <asp:UpdatePanel ID="UpdatePanel1" runat="server">
- <ContentTemplate>
- <asp:GridView ID="grdAvailability" runat="server"
- DataSourceID="ObjectDataSource1" DataKeyNames="BookingID, Title,_7AMSlot,_8AMSlot,_9AMSlot,_10AMSlot,_11AMSlot,_12PMSlot,_1PMSlot,
- _2PMSlot,_3PMSlot,_4PMSlot,_5PMSlot,_6PMSlot,_7PMSlot,_8PMSlot" AutoGenerateColumns="False"
- AllowPaging="True" AllowSorting="True"
- onselectedindexchanged="grdAvailability_SelectedIndexChanged"
- onrowdatabound="grdAvailability_RowDataBound">
- <Columns>
- <asp:BoundField DataField="ID" HeaderText="ID" Visible="False" />
- <asp:BoundField DataField="Title" HeaderText="Title" />
- <asp:BoundField DataField="_7AMSlot" HeaderText="ID" Visible="False" />
- <asp:TemplateField HeaderText="7">
- <ItemTemplate>
- <asp:LinkButton ClientIDMode="Static" ID="grdLnkBtn7" Text="Book" runat="server" PostBackUrl="~/MakeAppointment.aspx"></asp:LinkButton>
- <asp:Label ClientIDMode="Static" ID="grdLbl7" Text="Booked" runat="server"></asp:Label>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:BoundField DataField="_8AMSlot" HeaderText="ID" Visible="False" />
- <asp:TemplateField HeaderText="8">
- <ItemTemplate>
- <asp:LinkButton ClientIDMode="Static" ID="grdLnkBtn8" Text="Book" runat="server" PostBackUrl="~/MakeAppointment.aspx"></asp:LinkButton>
- <asp:Label ClientIDMode="Static" ID="grdLbl8" Text="Booked" runat="server"></asp:Label>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:BoundField DataField="_9AMSlot" HeaderText="ID" Visible="False" />
- <asp:TemplateField HeaderText="9">
- <ItemTemplate>
- <asp:LinkButton ClientIDMode="Static" ID="grdLnkBtn9" Text="Book" runat="server" PostBackUrl="~/MakeAppointment.aspx"></asp:LinkButton>
- <asp:Label ClientIDMode="Static" ID="grdLbl9" Text="Booked" runat="server"></asp:Label>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:BoundField DataField="_10AMSlot" HeaderText="ID" Visible="False" />
- <asp:TemplateField HeaderText="10">
- <ItemTemplate>
- <asp:LinkButton ClientIDMode="Static" ID="grdLnkBtn10" Text="Book" runat="server" PostBackUrl="~/MakeAppointment.aspx"></asp:LinkButton>
- <asp:Label ClientIDMode="Static" ID="grdLbl10" Text="Booked" runat="server"></asp:Label>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:BoundField DataField="_11AMSlot" HeaderText="ID" Visible="False" />
- <asp:TemplateField HeaderText="11">
- <ItemTemplate>
- <asp:LinkButton ClientIDMode="Static" ID="grdLnkBtn11" Text="Book" runat="server" PostBackUrl="~/MakeAppointment.aspx"></asp:LinkButton>
- <asp:Label ClientIDMode="Static" ID="grdLbl11" Text="Booked" runat="server"></asp:Label>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:BoundField DataField="_12PMSlot" HeaderText="ID" Visible="False" />
- <asp:TemplateField HeaderText="12">
- <ItemTemplate>
- <asp:LinkButton ClientIDMode="Static" ID="grdLnkBtn12" Text="Book" runat="server" PostBackUrl="~/MakeAppointment.aspx"></asp:LinkButton>
- <asp:Label ClientIDMode="Static" ID="grdLbl12" Text="Booked" runat="server"></asp:Label>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:BoundField DataField="_1PMSlot" HeaderText="ID" Visible="False" />
- <asp:TemplateField HeaderText="13">
- <ItemTemplate>
- <asp:LinkButton ClientIDMode="Static" ID="grdLnkBtn13" Text="Book" runat="server" PostBackUrl="~/MakeAppointment.aspx"></asp:LinkButton>
- <asp:Label ClientIDMode="Static" ID="grdLbl13" Text="Booked" runat="server"></asp:Label>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:BoundField DataField="_2PMSlot" HeaderText="ID" Visible="False" />
- <asp:TemplateField HeaderText="14">
- <ItemTemplate>
- <asp:LinkButton ClientIDMode="Static" ID="grdLnkBtn14" Text="Book" runat="server" PostBackUrl="~/MakeAppointment.aspx"></asp:LinkButton>
- <asp:Label ClientIDMode="Static" ID="grdLbl14" Text="Booked" runat="server"></asp:Label>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:BoundField DataField="_3PMSlot" HeaderText="ID" Visible="False" />
- <asp:TemplateField HeaderText="15">
- <ItemTemplate>
- <asp:LinkButton ClientIDMode="Static" ID="grdLnkBtn15" Text="Book" runat="server" PostBackUrl="~/MakeAppointment.aspx"></asp:LinkButton>
- <asp:Label ClientIDMode="Static" ID="grdLbl15" Text="Booked" runat="server"></asp:Label>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:BoundField DataField="_4PMSlot" HeaderText="ID" Visible="False" />
- <asp:TemplateField HeaderText="16">
- <ItemTemplate>
- <asp:LinkButton ClientIDMode="Static" ID="grdLnkBtn16" Text="Book" runat="server" PostBackUrl="~/MakeAppointment.aspx"></asp:LinkButton>
- <asp:Label ClientIDMode="Static" ID="grdLbl16" Text="Booked" runat="server"></asp:Label>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:BoundField DataField="_5PMSlot" HeaderText="ID" Visible="False" />
- <asp:TemplateField HeaderText="17">
- <ItemTemplate>
- <asp:LinkButton ClientIDMode="Static" ID="grdLnkBtn17" Text="Book" runat="server" PostBackUrl="~/MakeAppointment.aspx"></asp:LinkButton>
- <asp:Label ClientIDMode="Static" ID="grdLbl17" Text="Booked" runat="server"></asp:Label>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:BoundField DataField="_6PMSlot" HeaderText="ID" Visible="False" />
- <asp:TemplateField HeaderText="18">
- <ItemTemplate>
- <asp:LinkButton ClientIDMode="Static" ID="grdLnkBtn18" Text="Book" runat="server" PostBackUrl="~/MakeAppointment.aspx"></asp:LinkButton>
- <asp:Label ClientIDMode="Static" ID="grdLbl18" Text="Booked" runat="server"></asp:Label>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:BoundField DataField="_7PMSlot" HeaderText="ID" Visible="False" />
- <asp:TemplateField HeaderText="19">
- <ItemTemplate>
- <asp:LinkButton ClientIDMode="Static" ID="grdLnkBtn19" Text="Book" runat="server" PostBackUrl="~/MakeAppointment.aspx"></asp:LinkButton>
- <asp:Label ClientIDMode="Static" ID="grdLbl19" Text="Booked" runat="server"></asp:Label>
- </ItemTemplate>
- </asp:TemplateField>
- <asp:BoundField DataField="_8PMSlot" HeaderText="ID" Visible="False" />
- <asp:TemplateField HeaderText="20">
- <ItemTemplate>
- <asp:LinkButton ClientIDMode="Static" ID="grdLnkBtn20" Text="Book" runat="server" PostBackUrl="~/MakeAppointment.aspx"></asp:LinkButton>
- <asp:Label ClientIDMode="Static" ID="grdLbl20" Text="Booked" runat="server"></asp:Label>
- </ItemTemplate>
- </asp:TemplateField>
- </Columns>
- </asp:GridView>
- <asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
- SelectMethod="getAvailability" TypeName="ABS.BusinessObjects.Booking">
- <SelectParameters>
- <asp:ControlParameter ControlID="calTxtBox" Name="dt" PropertyName="Text"
- Type="DateTime" />
- </SelectParameters>
- </asp:ObjectDataSource>
- <br />
- </ContentTemplate>
- <Triggers>
- <asp:AsyncPostBackTrigger ControlID="btnSearch" EventName="Click" />
- </Triggers>
- </asp:UpdatePanel>
-
- </td>
- </tr>
- </table>
- </form>
- </body>
-</asp:Content>
View
287 ABS/ABS/CheckAvailability.aspx.cs
@@ -1,287 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Web;
-using System.Web.UI;
-using System.Web.UI.WebControls;
-using ABS.BusinessObjects;
-using System.Data.SqlClient;
-using System.Data;
-
-namespace ABS
-{
- public partial class CheckAvailability : System.Web.UI.Page
- {
- private DateTime selDt;
- private List<SqlParameter> param;
- protected void Page_Load(object sender, EventArgs e)
- {
- //calDate.SelectedDate = DateTime.Now.Date;
- if (!Page.IsPostBack)
- {
- calTxtBox.Text = DateTime.Now.Date.AddDays(-2.00).ToString("yyyy-MM-dd");
- PopulateGrid();
- }
-
- }
-
- public void PopulateGrid()
- {
- //Booking objBooking = new Booking();
- //ObjectDataSource1.SelectMethod = "objBooking.getAvailability";
- ObjectDataSource1.DataBind();
- grdAvailability.DataBind();
- grdAvailability.Visible = true;
- }
-
- protected void btnSearch_Click(object sender, EventArgs e)
- {
- //PopulateGrid();
- }
-
- protected void calTxtBox_OnTextChanged(object sender, EventArgs e)
- {
- PopulateGrid();
- }
-
- //protected override void OnDataBinding(EventArgs e)
- //{
- // base.OnDataBinding(e);
-
- // if (ObjectDataSource1 != null)
- // {
- // ObjectDataSource1.DataBind();
- // }
- //}
-
- protected void ObjectDataSource1_Selecting(object sender, ObjectDataSourceSelectingEventArgs e)
- {
- //List<SqlParameter> param = new List<SqlParameter>();
- //SqlParameter selDt = new SqlParameter();
- //selDt.ParameterName = "@Dt";
- //selDt.SqlDbType = SqlDbType.DateTime;
- //selDt.Size = 20;
- //selDt.Direction = ParameterDirection.Input;
- //selDt.Value = calTxtBox.Text;
- //param.Add(selDt);
- e.InputParameters["dt"] = calTxtBox.Text;
- }
-
- protected void ObjectDataSource1_DataBinding(object sender, EventArgs e)
- {
-
- }
-
- protected void grdAvailability_SelectedIndexChanged(object sender, EventArgs e)
- {
-
- }
-
- protected void grdAvailability_RowDataBound(object sender, GridViewRowEventArgs e)
- {
- if (e.Row.RowType == DataControlRowType.DataRow)
- {
- Boolean b7AMSlotVal = Convert.ToBoolean(grdAvailability.DataKeys[e.Row.RowIndex].Values[2]);
- Boolean b8AMSlotVal = Convert.ToBoolean(grdAvailability.DataKeys[e.Row.RowIndex].Values[3]);
- Boolean b9AMSlotVal = Convert.ToBoolean(grdAvailability.DataKeys[e.Row.RowIndex].Values[4]);
- Boolean b10AMSlotVal = Convert.ToBoolean(grdAvailability.DataKeys[e.Row.RowIndex].Values[5]);
- Boolean b11AMSlotVal = Convert.ToBoolean(grdAvailability.DataKeys[e.Row.RowIndex].Values[6]);
- Boolean b12PMSlotVal = Convert.ToBoolean(grdAvailability.DataKeys[e.Row.RowIndex].Values[7]);
- Boolean b1PMSlotVal = Convert.ToBoolean(grdAvailability.DataKeys[e.Row.RowIndex].Values[8]);
- Boolean b2PMSlotVal = Convert.ToBoolean(grdAvailability.DataKeys[e.Row.RowIndex].Values[9]);
- Boolean b3PMSlotVal = Convert.ToBoolean(grdAvailability.DataKeys[e.Row.RowIndex].Values[10]);
- Boolean b4PMSlotVal = Convert.ToBoolean(grdAvailability.DataKeys[e.Row.RowIndex].Values[11]);
- Boolean b5PMSlotVal = Convert.ToBoolean(grdAvailability.DataKeys[e.Row.RowIndex].Values[12]);
- Boolean b6PMSlotVal = Convert.ToBoolean(grdAvailability.DataKeys[e.Row.RowIndex].Values[13]);
- Boolean b7PMSlotVal = Convert.ToBoolean(grdAvailability.DataKeys[e.Row.RowIndex].Values[14]);
- Boolean b8PMSlotVal = Convert.ToBoolean(grdAvailability.DataKeys[e.Row.RowIndex].Values[15]);
-
- LinkButton grdLnkBtn7 = e.Row.FindControl("grdLnkBtn7") as LinkButton;
- Label grdLbl7 = e.Row.FindControl("grdLbl7") as Label;
- if (b7AMSlotVal == true)
- {
- grdLnkBtn7.Visible = false;
- grdLbl7.Visible = true;
- }
- else
- {
- grdLnkBtn7.Visible = true;
- grdLbl7.Visible = false;
- }
-
- LinkButton grdLnkBtn8 = e.Row.FindControl("grdLnkBtn8") as LinkButton;
- Label grdLbl8 = e.Row.FindControl("grdLbl8") as Label;
- if (b8AMSlotVal == true)
- {
- grdLnkBtn8.Visible = false;
- grdLbl8.Visible = true;
- }
- else
- {
- grdLnkBtn8.Visible = true;
- grdLbl8.Visible = false;
- }
-
-
- LinkButton grdLnkBtn9 = e.Row.FindControl("grdLnkBtn9") as LinkButton;
- Label grdLbl9 = e.Row.FindControl("grdLbl9") as Label;
- if (b9AMSlotVal == true)
- {
- grdLnkBtn9.Visible = false;
- grdLbl9.Visible = true;
- }
- else
- {
- grdLnkBtn9.Visible = true;
- grdLbl9.Visible = false;
- }
-
- LinkButton grdLnkBtn10 = e.Row.FindControl("grdLnkBtn10") as LinkButton;
- Label grdLbl10 = e.Row.FindControl("grdLbl10") as Label;
- if (b10AMSlotVal == true)
- {
- grdLnkBtn10.Visible = false;
- grdLbl10.Visible = true;
- }
- else
- {
- grdLnkBtn10.Visible = true;
- grdLbl10.Visible = false;
- }
-
- LinkButton grdLnkBtn11 = e.Row.FindControl("grdLnkBtn11") as LinkButton;
- Label grdLbl11 = e.Row.FindControl("grdLbl11") as Label;
- if (b11AMSlotVal == true)
- {
- grdLnkBtn11.Visible = false;
- grdLbl11.Visible = true;
- }
- else
- {
- grdLnkBtn11.Visible = true;
- grdLbl11.Visible = false;
- }
-
- LinkButton grdLnkBtn12 = e.Row.FindControl("grdLnkBtn12") as LinkButton;
- Label grdLbl12 = e.Row.FindControl("grdLbl12") as Label;
- if (b12PMSlotVal == true)
- {
- grdLnkBtn12.Visible = false;
- grdLbl12.Visible = true;
- }
- else
- {
- grdLnkBtn12.Visible = true;
- grdLbl12.Visible = false;
- }
-
- LinkButton grdLnkBtn13 = e.Row.FindControl("grdLnkBtn13") as LinkButton;
- Label grdLbl13 = e.Row.FindControl("grdLbl13") as Label;
- if (b1PMSlotVal == true)
- {
- grdLnkBtn13.Visible = false;
- grdLbl13.Visible = true;
- }
- else
- {
- grdLnkBtn13.Visible = true;
- grdLbl13.Visible = false;
- }
-
- LinkButton grdLnkBtn14 = e.Row.FindControl("grdLnkBtn14") as LinkButton;
- Label grdLbl14 = e.Row.FindControl("grdLbl14") as Label;
- if (b2PMSlotVal == true)
- {
- grdLnkBtn14.Visible = false;
- grdLbl14.Visible = true;
- }
- else
- {
- grdLnkBtn14.Visible = true;
- grdLbl14.Visible = false;
- }
-
- LinkButton grdLnkBtn15 = e.Row.FindControl("grdLnkBtn15") as LinkButton;
- Label grdLbl15 = e.Row.FindControl("grdLbl15") as Label;
- if (b3PMSlotVal == true)
- {
- grdLnkBtn15.Visible = false;
- grdLbl15.Visible = true;
- }
- else
- {
- grdLnkBtn15.Visible = true;
- grdLbl15.Visible = false;
- }
-
- LinkButton grdLnkBtn16 = e.Row.FindControl("grdLnkBtn16") as LinkButton;
- Label grdLbl16 = e.Row.FindControl("grdLbl16") as Label;
- if (b4PMSlotVal == true)
- {
- grdLnkBtn16.Visible = false;
- grdLbl16.Visible = true;
- }
- else
- {
- grdLnkBtn16.Visible = true;
- grdLbl16.Visible = false;
- }
-
- LinkButton grdLnkBtn17 = e.Row.FindControl("grdLnkBtn17") as LinkButton;
- Label grdLbl17 = e.Row.FindControl("grdLbl17") as Label;
- if (b5PMSlotVal == true)
- {
- grdLnkBtn17.Visible = false;
- grdLbl17.Visible = true;
- }
- else
- {
- grdLnkBtn17.Visible = true;
- grdLbl17.Visible = false;
- }
-
- LinkButton grdLnkBtn18 = e.Row.FindControl("grdLnkBtn18") as LinkButton;
- Label grdLbl18 = e.Row.FindControl("grdLbl18") as Label;
- if (b6PMSlotVal == true)
- {
- grdLnkBtn18.Visible = false;
- grdLbl18.Visible = true;
- }
- else
- {
- grdLnkBtn18.Visible = true;
- grdLbl18.Visible = false;
- }
-
- LinkButton grdLnkBtn19 = e.Row.FindControl("grdLnkBtn19") as LinkButton;
- Label grdLbl19 = e.Row.FindControl("grdLbl19") as Label;
- if (b7PMSlotVal == true)
- {
- grdLnkBtn19.Visible = false;
- grdLbl19.Visible = true;
- }
- else
- {
- grdLnkBtn19.Visible = true;
- grdLbl19.Visible = false;
- }
-
- LinkButton grdLnkBtn20 = e.Row.FindControl("grdLnkBtn20") as LinkButton;
- Label grdLbl20 = e.Row.FindControl("grdLbl20") as Label;
- if (b8PMSlotVal == true)
- {
- grdLnkBtn20.Visible = false;
- grdLbl20.Visible = true;
- }
- else
- {
- grdLnkBtn20.Visible = true;
- grdLbl20.Visible = false;
- }
-
- }
- }
-
-
- }
-}
View
31 ABS/ABS/Home.aspx.designer.cs
@@ -1,31 +0,0 @@
-//------------------------------------------------------------------------------
-// <auto-generated>
-// This code was generated by a tool.
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-// </auto-generated>
-//------------------------------------------------------------------------------
-
-
-
-public partial class Home{
-
- /// <summary>
- /// form1 control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.HtmlControls.HtmlForm form1;
-
- /// <summary>
- /// Login1 control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.Login Login1;
-}
View
22 ABS/ABS/Logout.aspx.cs
@@ -1,22 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Web;
-using System.Web.UI;
-using System.Web.UI.WebControls;
-using System.Web.Security;
-
-namespace ABS
-{
- public partial class Logout : System.Web.UI.Page
- {
- protected void Page_Load(object sender, EventArgs e)
- {
-
- FormsAuthentication.SignOut();
-
- }
-
-
- }
-}
View
13 ABS/ABS/Logout.aspx.designer.cs
@@ -1,13 +0,0 @@
-//------------------------------------------------------------------------------
-// <auto-generated>
-// This code was generated by a tool.
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-// </auto-generated>
-//------------------------------------------------------------------------------
-
-
-
-public partial class Logout {
-}
View
22 ABS/ABS/MakeAppointment.aspx.designer.cs
@@ -1,22 +0,0 @@
-//------------------------------------------------------------------------------
-// <auto-generated>
-// This code was generated by a tool.
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-// </auto-generated>
-//------------------------------------------------------------------------------
-
-
-
-public partial class MakeAppointment{
-
- /// <summary>
- /// statusControl control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.UserControl statusControl;
-}
View
13 ABS/ABS/NavControl.ascx.designer.cs
@@ -1,13 +0,0 @@
-//------------------------------------------------------------------------------
-// <auto-generated>
-// This code was generated by a tool.
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-// </auto-generated>
-//------------------------------------------------------------------------------
-
-
-
-public partial class NavControl {
-}
View
31 ABS/ABS/Signup.aspx.designer.cs
@@ -1,31 +0,0 @@
-//------------------------------------------------------------------------------
-// <auto-generated>
-// This code was generated by a tool.
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-// </auto-generated>
-//------------------------------------------------------------------------------
-
-
-
-public partial class Signup{
-
- /// <summary>
- /// form1 control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.HtmlControls.HtmlForm form1;
-
- /// <summary>
- /// CreateUserWizard1 control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.CreateUserWizard CreateUserWizard1;
-}
View
76 ABS/ABS/User.Master.designer.cs
@@ -1,76 +0,0 @@
-//------------------------------------------------------------------------------
-// <auto-generated>
-// This code was generated by a tool.
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-// </auto-generated>
-//------------------------------------------------------------------------------
-
-
-
-public partial class User{
-
- /// <summary>
- /// Head1 control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.HtmlControls.HtmlHead Head1;
-
- /// <summary>
- /// LoginView1 control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.LoginView LoginView1;
-
- /// <summary>
- /// Navcontrol1 control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.UserControl Navcontrol1;
-
- /// <summary>
- /// LogggedInStatus control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.ContentPlaceHolder LogggedInStatus;
-
- /// <summary>
- /// Labelid control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.Label Labelid;
-
- /// <summary>
- /// TitleContent control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.ContentPlaceHolder TitleContent;
-
- /// <summary>
- /// MainContent control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.ContentPlaceHolder MainContent;
-}
View
31 ABS/ABS/statusControl.ascx.designer.cs
@@ -1,31 +0,0 @@
-//------------------------------------------------------------------------------
-// <auto-generated>
-// This code was generated by a tool.
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-// </auto-generated>
-//------------------------------------------------------------------------------
-
-
-
-public partial class statusControl {
-
- /// <summary>
- /// form1 control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.HtmlControls.HtmlForm form1;
-
- /// <summary>
- /// LoginView1 control.
- /// </summary>
- /// <remarks>
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- /// </remarks>
- protected global::System.Web.UI.WebControls.LoginView LoginView1;
-}
View
BIN old/__MACOSX/.DS_Store → ABS2/.DS_Store
Binary file not shown.
View
672 DB/ABS-DB.sql
@@ -1,672 +0,0 @@
-USE [ABS]
-GO
-/****** Object: Table [dbo].[Users] Script Date: 05/12/2012 17:45:38 ******/
-SET ANSI_NULLS ON
-GO
-SET QUOTED_IDENTIFIER ON
-GO
-CREATE TABLE [dbo].[Users](
- [ID] [int] NOT NULL,
- [UserName] [nvarchar](256) NULL,
- [FirstName] [nvarchar](100) NULL,
- [LastName] [nvarchar](100) NULL,
- [UserEmailAddress] [nvarchar](256) NULL,
- [Password] [nvarchar](50) NULL,
- [UserType] [tinyint] NULL
-) ON [PRIMARY]
-GO
-/****** Object: Table [dbo].[BookingObjectWorkingDay] Script Date: 05/12/2012 17:45:38 ******/
-SET ANSI_NULLS ON
-GO
-SET QUOTED_IDENTIFIER ON
-GO
-CREATE TABLE [dbo].[BookingObjectWorkingDay](
- [BookingObjectId] [int] NOT NULL,
- [WorkingDayId] [int] NOT NULL
-) ON [PRIMARY]
-GO
-/****** Object: Table [dbo].[Booking] Script Date: 05/12/2012 17:45:38 ******/
-SET ANSI_NULLS ON
-GO
-SET QUOTED_IDENTIFIER ON
-GO
-CREATE TABLE [dbo].[Booking](
- [ID] [int] NOT NULL,
- [Title] [nvarchar](100) NULL,
- [StartTime] [datetime] NULL,
- [EndTime] [datetime] NULL
-) ON [PRIMARY]
-GO
-/****** Object: Table [dbo].[Appointment] Script Date: 05/12/2012 17:45:38 ******/
-SET ANSI_NULLS ON
-GO
-SET QUOTED_IDENTIFIER ON
-GO
-CREATE TABLE [dbo].[Appointment](
- [ID] [int] NOT NULL,
- [UserID] [int] NULL,
- [StartDate] [datetime] NULL,
- [EndDate] [datetime] NULL,
- [Comments] [nvarchar](max) NULL,
- [BookingObjectId] [int] NULL
-) ON [PRIMARY]
-GO
-/****** Object: Table [dbo].[WorkingDay] Script Date: 05/12/2012 17:45:38 ******/
-SET ANSI_NULLS ON
-GO
-SET QUOTED_IDENTIFIER ON
-GO
-CREATE TABLE [dbo].[WorkingDay](
- [ID] [int] NOT NULL,
- [Description] [nvarchar](256) NULL
-) ON [PRIMARY]
-GO
-/****** Object: StoredProcedure [dbo].[usp_updt_users] Script Date: 05/12/2012 17:45:38 ******/
-SET ANSI_NULLS ON
-GO
-SET QUOTED_IDENTIFIER ON
-GO
-CREATE PROCEDURE [dbo].[usp_updt_users]
-(
-@ID int,
-@UserName nvarchar(256),
-@FirstName nvarchar(100),
-@LastName nvarchar(100),
-@UserEmailAddress nvarchar(256)
-)
-
-AS BEGIN
-
-DECLARE @error INT
-
-
-UPDATE Users
-SET FirstName=@FirstName,
-LastName=@LastName,
-UserEmailAddress=@UserEmailAddress
-WHERE ID = @ID
-AND UserName = @UserName
-
-select @error= @@error
-if @error<>0
-return @error
-end
-
-/*
-exec usp_updt_users 1,'shridhar','Shridharan','Iyeran','abc@domain.com'
-select * from users
-*/
-GO
-/****** Object: StoredProcedure [dbo].[usp_updt_password] Script Date: 05/12/2012 17:45:38 ******/
-SET ANSI_NULLS ON
-GO
-SET QUOTED_IDENTIFIER ON
-GO
-CREATE PROCEDURE [dbo].[usp_updt_password]
-(
-@ID int,
-@UserName nvarchar(256),
-@OldPassword nvarchar(50),
-@NewPassword nvarchar(50)
-)
-
-AS BEGIN
-
-DECLARE @error INT
-
-
-UPDATE Users
-SET Password=@NewPassword
-WHERE ID = @ID
-AND UserName = @UserName
-AND Password = @OldPassword
-
-select @error= @@error
-if @error<>0
-return @error
-end
-
-/*
-exec usp_updt_password 1,'shridhar','shridhari12','shridhar'
-select * from users
-
-*/
-GO
-/****** Object: StoredProcedure [dbo].[usp_ins_Users] Script Date: 05/12/2012 17:45:38 ******/
-SET ANSI_NULLS ON
-GO
-SET QUOTED_IDENTIFIER ON
-GO
-Create Procedure [dbo].[usp_ins_Users]
-(
-@FirstName nvarchar(100),
-@LastName nvarchar(100),
-@UserName nvarchar(256),
-@UserEmailAddress nvarchar(256),
-@Password nvarchar(50),
-@UserType tinyint
-)
-AS BEGIN
-
-Declare @error int
-
-INSERT INTO Users
-(
-UserName,
-FirstName,
-LastName,
-UserEmailAddress,
-Password,
-UserType
-)
-VALUES
-(
-@UserName,
-@FirstName,
-@LastName,
-@UserEmailAddress,
-@Password,
-@UserType
-)
-
-
- SELECT @error=@@error
- IF @error <>0
- select @error
- ELSE
- select @@IDENTITY
-End
-/*
-Test Procedure
-Exec usp_ins_Users 'draco','Draco','Chan','draco@gmail.com','draco',1
-
-*/
-GO
-/****** Object: StoredProcedure [dbo].[usp_ins_BookingObjectWorkingDay] Script Date: 05/12/2012 17:45:38 ******/
-SET ANSI_NULLS ON
-GO
-SET QUOTED_IDENTIFIER ON
-GO
-Create Procedure [dbo].[usp_ins_BookingObjectWorkingDay]
-(
-@BookingObjectId int,
-@WorkingDayId int
-)
-
-AS BEGIN
-
-Declare @error int
-
-INSERT INTO BookingObjectWorkingDay
-(
-BookingObjectId,
-WorkingDayId
-)
-VALUES
-(
-@BookingObjectId,
-@WorkingDayId
-)
-
-SELECT @error=@@error
-IF @error <>0
- select @error
-
-End
-/*
-Test Procedure
-Exec usp_ins_BookingObjectWorkingDay 'Conference Room 1 - East Wing','2012-05-12 10:00','2012-05-14 12:00'
-select * from Booking
-*/
-GO
-/****** Object: StoredProcedure [dbo].[usp_ins_Booking] Script Date: 05/12/2012 17:45:38 ******/
-SET ANSI_NULLS ON
-GO
-SET QUOTED_IDENTIFIER ON
-GO
-CREATE Procedure [dbo].[usp_ins_Booking]
-(
-@Title nvarchar(100),
-@StartTime datetime,
-@EndTime datetime
-)
-AS BEGIN
-
-Declare @error int
-
-INSERT INTO Booking
-(
-Title,
-StartTime,
-EndTime
-)
-VALUES
-(
-@Title,
-@StartTime,
-@EndTime
-)
-
-
- SELECT @error=@@error
- IF @error <>0
- select @error
- ELSE
- select @@IDENTITY
-
-End
-/*
-Test Procedure
-Exec usp_ins_Booking 'Conference Room 1 - East Wing','2012-05-12 10:00','2012-05-14 12:00'
-select * from Booking
-*/
-GO
-/****** Object: StoredProcedure [dbo].[usp_ins_Appointment] Script Date: 05/12/2012 17:45:38 ******/
-SET ANSI_NULLS ON
-GO
-SET QUOTED_IDENTIFIER ON
-GO
-Create Procedure [dbo].[usp_ins_Appointment]
-(
-@UserID int,
-@StartDate datetime,
-@EndDate datetime,
-@Comments nvarchar(MAX),
-@BookingObjectId int
-)
-
-AS BEGIN
-
-Declare @error int
-
-INSERT INTO Appointment
-(
-UserID,
-StartDate,
-EndDate,
-Comments,
-BookingObjectId
-)
-VALUES
-(
-@UserID,
-@StartDate,
-@EndDate,
-@Comments,
-@BookingObjectId
-)
-
-SELECT @error=@@error
-IF @error <>0
- select @error
-ELSE
- select @@IDENTITY
-
-End
-/*
-Test Procedure
-Exec usp_ins_Appointment 1,'2012-05-12 10:00','2012-05-14 12:00','Staff Lunch',1
-select * from Appointment
-*/
-GO
-/****** Object: StoredProcedure [dbo].[usp_get_conference_rooms] Script Date: 05/12/2012 17:45:38 ******/
-SET ANSI_NULLS ON
-GO
-SET QUOTED_IDENTIFIER ON
-GO
-CREATE PROCEDURE [dbo].[usp_get_conference_rooms]
-AS BEGIN
-
-DECLARE @error INT
-
-SELECT ID,Title,StartTime,EndTime
-FROM Booking
-
-SELECT @error = @@error
-IF @error <> 0
- RETURN @error
-END
-
-/*
-
-EXEC usp_get_conference_rooms
-
-*/
-GO
-/****** Object: StoredProcedure [dbo].[usp_get_booking_details_for_edit] Script Date: 05/12/2012 17:45:38 ******/
-SET ANSI_NULLS ON
-GO
-SET QUOTED_IDENTIFIER ON
-GO
-CREATE PROCEDURE [dbo].[usp_get_booking_details_for_edit]
-(@ID int
-)
-AS BEGIN
-
-DECLARE @error INT
-
-SELECT ID,Title,StartTime,EndTime
-FROM Booking
-WHERE ID = @ID
-
-SELECT BookingObjectId,WorkingDayId
-FROM BookingObjectWorkingDay
-WHERE BookingObjectId = @ID
-
-SELECT @error = @@error
-IF @error <> 0
- RETURN @error
-END
-
-
-/*
-
-EXEC usp_get_booking_details_for_edit
-
-*/
-GO
-/****** Object: StoredProcedure [dbo].[usp_get_booking_availability] Script Date: 05/12/2012 17:45:38 ******/
-SET ANSI_NULLS ON
-GO
-SET QUOTED_IDENTIFIER ON
-GO
-CREATE PROCEDURE [dbo].[usp_get_booking_availability]
-(@Dt datetime
-)
-AS BEGIN
-
-DECLARE @error INT,
- @pInputDate datetime,
- @fdow datetime,
- @edow datetime
-
-SELECT @pInputDate = CONVERT(VARCHAR(10), @Dt, 111)
-SELECT @pInputDate
-
-SELECT DATEPART(DW,@pInputDate)
-
-SELECT @fdow = DATEADD(DD, 1 - DATEPART(DW, @pInputDate),
- @pInputDate)
-SELECT @fdow
-
-SELECT @edow = DATEADD(DD, 13,@fdow)
-SELECT @edow
-
-SELECT b.ID,b.Title,b.StartTime,b.EndTime,bowd.WorkingDayId
-FROM Booking b,BookingObjectWorkingDay bowd
-WHERE b.ID = bowd.BookingObjectId
-
-
-SELECT @error = @@error
-IF @error <> 0
- RETURN @error
-END
-
-
-/*
-sp_helptext usp_get_booking_availability
-EXEC usp_get_booking_availability '2012-05-06'
-select datepart(weekday,getdate())
-select @@DATEFIRST
-
-*/
-GO
-/****** Object: StoredProcedure [dbo].[usp_del_BookingObjectWorkingDay] Script Date: 05/12/2012 17:45:38 ******/
-SET ANSI_NULLS ON
-GO
-SET QUOTED_IDENTIFIER ON
-GO
-Create Procedure [dbo].[usp_del_BookingObjectWorkingDay]
-(
-@BookingObjectId int,
-@WorkingDayId int
-)
-
-AS BEGIN
-
-Declare @error int
-
-DELETE FROM BookingObjectWorkingDay
-WHERE BookingObjectId = @BookingObjectId
-AND WorkingDayId = @WorkingDayId
-
-
-SELECT @error=@@error
-IF @error <>0
- select @error
-
-End
-/*
-Test Procedure
-Exec usp_del_BookingObjectWorkingDay
-select * from BookingObjectWorkingDay
-*/
-GO
-/****** Object: StoredProcedure [dbo].[usp_del_Booking] Script Date: 05/12/2012 17:45:38 ******/
-SET ANSI_NULLS ON
-GO
-SET QUOTED_IDENTIFIER ON
-GO
-CREATE Procedure [dbo].[usp_del_Booking]
-(
-@ID int,
-@Title nvarchar(100),
-@StartTime datetime,
-@EndTime datetime
-)
-AS BEGIN
-
-Declare @error int
-
-DELETE FROM Booking
-WHERE ID = @ID
-
-
-SELECT @error=@@error
-IF @error <>0
- select @error
-
-End
-/*
-Test Procedure
-Exec usp_del_Booking 1
-select * from Booking
-*/
-GO
-/****** Object: StoredProcedure [dbo].[usp_del_Appointment] Script Date: 05/12/2012 17:45:37 ******/
-SET ANSI_NULLS ON
-GO
-SET QUOTED_IDENTIFIER ON
-GO
-Create Procedure [dbo].[usp_del_Appointment]
-(
-@ID int
-)
-
-AS BEGIN
-
-Declare @error int
-
-DELETE FROM Appointment
-WHERE ID = @ID
-
-SELECT @error=@@error
-IF @error <>0
- select @error
-ELSE
- select @@IDENTITY
-
-End
-/*
-Test Procedure
-Exec usp_del_Appointment 1
-select * from Appointment
-*/
-GO
-/****** Object: StoredProcedure [dbo].[usp_check_for_duplicate_UserName] Script Date: 05/12/2012 17:45:37 ******/
-SET ANSI_NULLS ON
-GO
-SET QUOTED_IDENTIFIER ON
-GO
-Create Procedure [dbo].[usp_check_for_duplicate_UserName]
-(
-@UserName nvarchar(256)
-)
-
-AS BEGIN
-
-Declare @error int,
- @count int,
- @return_value int
-
-SET @count = (SELECT COUNT(*)
- FROM Users
- WHERE UserName = @UserName
- )
-
-IF @count > 0
- SELECT 'Username not available'
-ELSE
- SELECT 'Username is available'
-
-SELECT @error=@@error
-IF @error <>0
- select @error
-
-End
-/*
-Test Procedure
-Exec usp_check_for_duplicate_UserName 'shridhar'
-select * from users where username = 'shridhar'
-*/
-GO
-/****** Object: StoredProcedure [dbo].[usp_check_for_duplicate_conference_room] Script Date: 05/12/2012 17:45:37 ******/
-SET ANSI_NULLS ON
-GO
-SET QUOTED_IDENTIFIER ON
-GO
-Create Procedure [dbo].[usp_check_for_duplicate_conference_room]
-(
-@Title nvarchar(100)
-)
-
-AS BEGIN
-
-Declare @error int,
- @count int,
- @return_value int
-
-SET @count = (SELECT COUNT(*)
- FROM Booking
- WHERE Title = @Title
- )
-
-IF @count > 0
- SET @return_value = -1
-ELSE
- SET @return_value = 1
-
-SELECT @error=@@error
-IF @error <>0
- select @error
-ELSE
- select @return_value
-
-End
-/*
-Test Procedure
-Exec usp_check_for_duplicate_conference_room 'Conference Room 1 - East Wing'
-select * from booking
-select * from bookingobjectworkingday where bookingobjectid = 1
-*/
-GO
-/****** Object: StoredProcedure [dbo].[usp_check_for_duplicate_Booking] Script Date: 05/12/2012 17:45:37 ******/
-SET ANSI_NULLS ON
-GO
-SET QUOTED_IDENTIFIER ON
-GO
-CREATE Procedure [dbo].[usp_check_for_duplicate_Booking]
-(
-@Title nvarchar(100),
-@StartTime datetime,
-@EndTime datetime
-)
-
-AS BEGIN
-
-Declare @error int,
- @count int,
- @return_value int
-
-SET @count = (SELECT COUNT(*)
- FROM Booking b,BookingObjectWorkingDay bowd
- WHERE b.Title = @Title
- AND ((b.StartTime = @StartTime) AND (@StartTime <> '1900-01-01'))
- AND ((b.EndTime = @EndTime) AND (@EndTime <> '1900-01-01'))
- AND b.ID = bowd.BookingObjectId
- )
-
-IF @count > 0
- SET @return_value = -1
-ELSE
- SET @return_value = 1
-
-SELECT @error=@@error
-IF @error <>0
- select @error
-ELSE
- select @return_value
-
-End
-/*
-Test Procedure
-Exec usp_check_for_duplicate_Booking 'shridhar'
-select * from booking
-select * from bookingobjectworkingday where bookingobjectid = 1
-*/
-GO
-/****** Object: StoredProcedure [dbo].[usp_check_for_duplicate_Appointment] Script Date: 05/12/2012 17:45:37 ******/
-SET ANSI_NULLS ON
-GO
-SET QUOTED_IDENTIFIER ON
-GO
-Create Procedure [dbo].[usp_check_for_duplicate_Appointment]
-(
-@UserID int,
-@StartDate datetime,
-@EndDate datetime,
-@BookingObjectId int
-)
-
-AS BEGIN
-
-Declare @error int,
- @count int,
- @return_value int
-
-SET @count = (SELECT COUNT(*)
- FROM Appointment
- WHERE UserID = @UserID
- AND StartDate = @StartDate
- AND EndDate = @EndDate
- AND BookingObjectId = @BookingObjectId
- )
-
-IF @count > 0
- SET @return_value = -1
-ELSE
- SET @return_value = 1
-
-SELECT @error=@@error
-IF @error <>0
- select @error
-ELSE
- select @return_value
-
-End
-/*
-Test Procedure
-Exec usp_check_for_duplicate_Appointment 1,'2012-05-12 10:00','2012-05-14 12:00','Staff Lunch',1
-select * from Appointment
-*/
-GO
View
4 README.md
@@ -1,3 +1,5 @@
WDT-A2-ABS
==========
- Assignment 2
+ Assignment 2
+
+testing
1 WDT-A2-ABS
@@ -1 +0,0 @@
-Subproject commit 9b4bd4f5814a71f140ad6c4d6bbe163dc9df09b6
View
BIN old/.DS_Store
Binary file not shown.
View
BIN old/__MACOSX/ABS2/.DS_Store
Binary file not shown.

0 comments on commit b5a9c72

Please sign in to comment.