Ejemplo n.º 1
0
    //-----------------------------------Setting Priority and Rescheduling--------------------------

    protected void FillSettings_PriorityData()
    {
        objAdmin = new Base_BLL_AdminSettings();
        DataSet ds_priority = objAdmin.Priority_Setting_GET();

        grd_Priority_Setting.DataSource = ds_priority;
        grd_Priority_Setting.DataBind();
    }
Ejemplo n.º 2
0
    protected void grd_Priority_Setting_Update(object sender, GridViewUpdateEventArgs e)
    {
        int         DayID = int.Parse(grd_Priority_Setting.DataKeys[e.RowIndex]["PriorityID"].ToString());
        GridViewRow row   = grd_Priority_Setting.Rows[e.RowIndex];

        string Priority_From      = ((TextBox)row.FindControl("txtStart_After")).Text;
        string Appointment_After  = ((TextBox)row.FindControl("txtAppoint_After")).Text;
        string Priority_To        = ((DropDownList)row.FindControl("cmbPriority_To")).SelectedValue;
        string Rescheduling_After = ((TextBox)row.FindControl("txtReschedule_After")).Text;
        string Cancel_After       = ((TextBox)row.FindControl("txtCancel_After")).Text;

        objAdmin                            = new Base_BLL_AdminSettings();
        objAdmin.Priority_ID                = DayID;
        objAdmin.Start_Priority_After       = Priority_From;
        objAdmin.Add_Priority_Appoint_After = Convert.ToInt32(Appointment_After);
        objAdmin.Priority_To                = Convert.ToInt32(Priority_To);
        objAdmin.Reschedule_After           = Convert.ToInt32(Rescheduling_After);
        objAdmin.Cancel_After               = Convert.ToInt32(Cancel_After);

        objAdmin.Priority_Setting_SAVE();

        grd_Priority_Setting.EditIndex = -1;
        FillSettings_PriorityData();
    }
Ejemplo n.º 3
0
 protected void grd_SessionSetting_RowEditing(object sender, GridViewEditEventArgs e)
 {
     objAdmin = new Base_BLL_AdminSettings();
     grd_SessionSetting.EditIndex = e.NewEditIndex;
     FillSetting_SessionData();
 }