Exemple #1
0
    protected void SaveAll_Click1(object sender, EventArgs e)
    {
        try
        {
            if (SaveAll.CommandArgument != "" && SaveAll.CommandArgument != null && SaveAll.CommandArgument != "0")
            {
                if (Admins.SelectedValue != "")
                {
                    var Ret = 0;
                    foreach (ListItem item in PermChecks.Items)
                    {
                        if (item.Selected)
                        {
                            Ret = Obj.NewPlansSections(Convert.ToInt32(SaveAll.CommandArgument), Convert.ToInt32(item.Value), Convert.ToInt32(Admins.SelectedValue));
                        }
                    }

                    if (Ret != 0)
                    {
                        SectionList2.DataSource = Obj.GetDataSetByID("GetPlansSection", Convert.ToInt32(SaveAll.CommandArgument));
                        SectionList2.DataBind();
                        Rett.Text      = "";
                        SucNew.Visible = true;
                        BindEmployeesData();
                    }
                }
            }
        }
        catch { }
    }
Exemple #2
0
 protected void DelAdms_Command(object sender, CommandEventArgs e)
 {
     SucNew.Visible = false;
     Obj.ExecuteProcedureID("DelPlansByAdmin", Convert.ToInt32(e.CommandArgument));
     SucNew.Visible          = true;
     SectionList2.DataSource = Obj.GetDataSetByID("GetPlansSection", Convert.ToInt32(SaveAll.CommandArgument));
     SectionList2.DataBind();
     BindEmployeesData();
     LablSites.Text = "A";
 }
Exemple #3
0
    protected void LinkButton1_Command(object sender, CommandEventArgs e)
    {
        string[] Vall = e.CommandArgument.ToString().Split(',');

        SucNew.Visible = false;
        Obj.DelPlansSections(Convert.ToInt32(Vall[0]), Convert.ToInt32(Vall[1]));
        SucNew.Visible          = true;
        SectionList2.DataSource = Obj.GetDataSetByID("GetPlansSection", Convert.ToInt32(SaveAll.CommandArgument));
        SectionList2.DataBind();
        BindEmployeesData();
        LablSites.Text = "A";
    }