Ejemplo n.º 1
0
    protected void btnGetDeatils_Click(object sender, EventArgs e)
    {
        DALSchedule obj = new DALSchedule();
        DataSet     ds  = obj.GetAvailableSeatsDetails(Convert.ToInt32(txtSessionId.Text.Trim()), ViewState["action"].ToString());

        if (ds != null && ds.Tables.Count > 0)
        {
            lblCounter.Text = ds.Tables[0].Rows[0]["CounterName"].ToString();
            lblSource.Text  = ds.Tables[0].Rows[0]["Source"].ToString();
            lblDes.Text     = ds.Tables[0].Rows[0]["Destination"].ToString();
            lblMode.Text    = ds.Tables[0].Rows[0]["Mode"].ToString();
            lblDate.Text    = ds.Tables[0].Rows[0]["Schd_Date"].ToString();
            lblFare.Text    = ds.Tables[0].Rows[0]["Fare"].ToString();

            if (ds.Tables.Count > 1)
            {
                ddlSeats.Items.Clear();
                if (ds.Tables[1].Rows.Count > 0)
                {
                    for (int i = 0; i < ds.Tables[1].Rows.Count; i++)
                    {
                        ddlSeats.Items.Add(ds.Tables[1].Rows[i][0].ToString());
                    }
                }
            }
        }
    }
Ejemplo n.º 2
0
    protected void btnReleaseSession_Click(object sender, EventArgs e)
    {
        DALSchedule obj = new DALSchedule();
        DataTable   dt  = obj.BlockSeat(Convert.ToInt32(txtSessionId.Text.Trim()), "", 0, "E");

        if (dt != null && dt.Rows.Count > 0)
        {
            if (dt.Rows[0][0].ToString() == "succcess")
            {
                ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('Selected Session is enabled successfully. ')", true);
            }
            else
            {
                ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('Session is not enabled, please try again.')", true);
            }
        }
        txtSessionId.Text = "";
        lblCounter.Text   = "";
        lblSource.Text    = "";
        lblDes.Text       = "";
        lblMode.Text      = "";
        lblDate.Text      = "";
        lblFare.Text      = "";

        ddlSeats.Items.Clear();
        UpdatePanel1.Update();
    }
Ejemplo n.º 3
0
        public string AddCarRentalDetails(CarRentalEntity obj)
        {
            string      tranid      = "";
            DALSchedule objSchedule = new DALSchedule();

            tranid = objSchedule.AddCarRentalDeatails(obj);
            return(tranid);
        }
Ejemplo n.º 4
0
    protected void btnExport_Click(object sender, EventArgs e)
    {
        DALSchedule obj = new DALSchedule();
        DataTable   dt  = obj.GetSoldTicketsList("Shared");

        ExportTableData(dt);
        dt = null;
    }
Ejemplo n.º 5
0
    void fillgrid()
    {
        DALSchedule obj = new DALSchedule();
        DataTable   dt  = obj.GetSoldTicketsList("Shared");

        grdSoldTickets.DataSource = dt;
        grdSoldTickets.DataBind();
    }
Ejemplo n.º 6
0
    protected void BindRepeaterData()
    {
        DALSchedule objDAL = new DALSchedule();
        DataTable   dt     = objDAL.GetFranchiseeList("");

        RepSample.DataSource = dt;
        RepSample.DataBind();
        objDAL = null;
        dt     = null;
    }
Ejemplo n.º 7
0
 public int CreateSchedule(Scheduling obj)
 {
     try
     {
         DALSchedule objSch = new DALSchedule();
         objSch.CreateSchedule(obj);
         return(1);
     }
     catch (Exception)
     {
         throw;
     }
 }
Ejemplo n.º 8
0
 public int AddVehicle(Vehicle obj)
 {
     try
     {
         DALSchedule objSchedule = new DALSchedule();
         objSchedule.AddVehicle(obj);
         return(1);
     }
     catch (Exception)
     {
         throw;
     }
 }
Ejemplo n.º 9
0
 public string AddCashDetails(CashDetails obj)
 {
     try
     {
         DALSchedule objSchedule = new DALSchedule();
         string      tranid      = objSchedule.AddCashDeatails(obj).ToString();
         //return 1;
         return(tranid);
     }
     catch (Exception)
     {
         throw;
     }
 }
Ejemplo n.º 10
0
        public DataTable GetTicketInfo(string tranid, string mobno)
        {
            try
            {
                DALSchedule obj = new DALSchedule();

                DataTable dt = obj.GetTicketInfo(tranid, mobno);
                return(dt);
            }
            catch (Exception)
            {
                throw;
            }
        }
Ejemplo n.º 11
0
 public string AddEventBookingDetails(string name, string gender, int age, string email, string mob, string address, int stagboy, int staggirl, int couple, int child, decimal bookingAmt)
 {
     try
     {
         string      tranid      = "";
         DALSchedule objSchedule = new DALSchedule();
         tranid = objSchedule.AddEventBookingDetails(name, gender, age, email, mob, address, stagboy, staggirl, couple, child, bookingAmt, out tranid);
         return(tranid);
     }
     catch (Exception)
     {
         throw;
     }
 }
Ejemplo n.º 12
0
        public DataSet GetSchedule(string from, string to, string mode, string dt)
        {
            try
            {
                DALSchedule obj = new DALSchedule();

                DataSet ds = obj.GetSchedule(from, to, mode, dt);
                return(ds);
            }
            catch (Exception)
            {
                throw;
            }
        }
Ejemplo n.º 13
0
        public DataTable GetCarRentalScheduleDetails(int session_id)
        {
            try
            {
                DALSchedule obj = new DALSchedule();

                DataTable dt = obj.GetCarRentalScheduleDetails(session_id);
                return(dt);
            }
            catch (Exception)
            {
                throw;
            }
        }
Ejemplo n.º 14
0
        public DataSet GetScheduleInfo(int sessionid, string mode)
        {
            try
            {
                DALSchedule obj = new DALSchedule();

                DataSet ds = obj.GetScheduleInfo(sessionid, mode);
                return(ds);
            }
            catch (Exception)
            {
                throw;
            }
        }
Ejemplo n.º 15
0
        public DataSet GetTravellingInfo(string src, string des, int sid)
        {
            try
            {
                DALSchedule obj = new DALSchedule();

                DataSet ds = obj.GetTravellingInfo(src, des, sid);
                return(ds);
            }
            catch (Exception)
            {
                throw;
            }
        }
Ejemplo n.º 16
0
        //***********CarRentalDataAccessLib*********************************

        public DataTable GetCarRentalSchedule(string travel_type, string Source_city, string Destination_city, string travel_mode)
        {
            try
            {
                DALSchedule obj = new DALSchedule();

                DataTable dt = obj.GetCarRentalSchedule(travel_type, Source_city, Destination_city, travel_mode);
                return(dt);
            }
            catch (Exception)
            {
                throw;
            }
        }
Ejemplo n.º 17
0
        public DataTable GetLoginInfo(string username, string pwd)
        {
            try
            {
                DALSchedule obj = new DALSchedule();

                DataTable dt = obj.GetLoginInfo(username, pwd);
                return(dt);
            }
            catch (Exception)
            {
                throw;
            }
        }
Ejemplo n.º 18
0
        public DataSet GetBoardingPoints(int session_id)
        {
            try
            {
                DALSchedule obj = new DALSchedule();

                DataSet ds = obj.GetBoardingPoints(session_id);
                return(ds);
            }
            catch (Exception)
            {
                throw;
            }
        }
Ejemplo n.º 19
0
        public DataTable CancelTicket(TicketCancel obj)
        {
            try
            {
                DALSchedule objSch = new DALSchedule();

                DataTable dt = objSch.CancelTicket(obj);

                return(dt);
            }
            catch (Exception)
            {
                throw;
            }
        }
Ejemplo n.º 20
0
        public DataTable UpdateUserCashDetails(TPSLResponse obj)
        {
            try
            {
                DALSchedule objSch = new DALSchedule();

                DataTable dt = objSch.UpdateUserCashDetails(obj);

                return(dt);
            }
            catch (Exception)
            {
                throw;
            }
        }
Ejemplo n.º 21
0
        public DataTable PaymentUpdateBMETWallet(string tranid)
        {
            try
            {
                DALSchedule objSch = new DALSchedule();

                DataTable dt = objSch.PaymentUpdateBMETWallet(tranid);

                return(dt);
            }
            catch (Exception)
            {
                throw;
            }
        }
Ejemplo n.º 22
0
    protected void btnTimeChange_Click(object sender, EventArgs e)
    {
        DALSchedule obj = new DALSchedule();
        DataSet     ds  = obj.GetAvailableSeatsDetails(Convert.ToInt32(txtTime.Text.Trim()), "C");

        if (ds != null && ds.Tables.Count > 0)
        {
            if (ds.Tables[0].Rows[0][0].ToString() == "Success")
            {
                ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "alertMessage", "alert('Schedule display time is chnaged successfully. ')", true);
            }
        }

        txtTime.Text = "";
    }
Ejemplo n.º 23
0
        public DataTable GetFranchiseeDetails(string FranCode, int sessionid, string mode)
        {
            try
            {
                DALSchedule objSch = new DALSchedule();

                DataTable dt = objSch.GetFranchiseeDetails(FranCode, sessionid, mode);

                return(dt);
            }
            catch (Exception)
            {
                throw;
            }
        }
Ejemplo n.º 24
0
    protected void ddlFranCity_SelectedIndexChanged(object sender, EventArgs e)
    {
        DALSchedule objDAL = new DALSchedule();
        DataTable   dt     = null;

        if (ddlFranCity.SelectedItem.Text.ToString() == "-------Select--------")
        {
            dt = objDAL.GetFranchiseeList("");
        }
        else
        {
            dt = objDAL.GetFranchiseeList(ddlFranCity.SelectedItem.Text.ToString());
        }
        RepSample.DataSource = dt;
        RepSample.DataBind();
        objDAL = null;
        dt     = null;
    }
Ejemplo n.º 25
0
    public List <BLLSchedule> Selectschedulebyrollno(BLLSchedule objbll)
    {
        DALSchedule objdal = new DALSchedule();

        return(objdal.Selectschedulebyrollno(objbll));
    }
Ejemplo n.º 26
0
    public List <BLLSchedule> Selectschedulebyempcode(BLLSchedule objbll)
    {
        DALSchedule objdal = new DALSchedule();

        return(objdal.Selectschedulebyempcode(objbll));
    }
Ejemplo n.º 27
0
    public List <BLLSchedule> SelectSchedule()
    {
        DALSchedule objdal = new DALSchedule();

        return(objdal.SelectSchedule());
    }
Ejemplo n.º 28
0
    public int InsertSchedule(BLLSchedule objbll)
    {
        DALSchedule objdal = new DALSchedule();

        return(objdal.InsertSchedule(objbll));
    }