protected void imgDelete_Click(object sender, EventArgs e)
 {
     if (ViewState["DDID"] != null)
     {
         ModalPopupDelete.Show();
     }
 }
Ejemplo n.º 2
0
 protected void deleteqrybtn_Click(object sender, EventArgs e)
 {
     try
     {
         ModalPopupDelete.Show();
     }
     catch (Exception ex)
     {
         TroyLiteExceptionManager.HandleException(ex);
     }
 }
Ejemplo n.º 3
0
        protected void imgDelete_Click(object sender, EventArgs e)
        {
            SpaMaster MyMasterPage = (SpaMaster)Page.Master;

            DataTable dtViewShift = AdminDAL.Checkmenu(Session["RoleID"].ToString(), "108");

            if (dtViewShift.Rows.Count > 0)
            {
                if (ViewState["SID"] != null)
                {
                    ModalPopupDelete.Show();
                }
            }
            else
            {
                MyMasterPage.ShowErrorMessage("You Do Not Have Permission..!");
            }
        }
 protected void Button1_Click(object sender, EventArgs e)
 {
     //dal.executesql("Delete from StaffLocationMap");
     //DataSet dsstaffid = dal.getdataset("select Staff_id,role from userinformation where role='SuperVisor' OR role='Security Officer'");
     //if (dsstaffid.Tables[0].Rows.Count > 0)
     //{
     //    for(int k = 0; k < dsstaffid.Tables[0].Rows.Count; k++)
     //    {
     //        string staffid = dsstaffid.Tables[0].Rows[k][0].ToString();
     //        DataSet dslocation = dal.getdataset("select location_id from location where current_status='Present'");
     //        if (dslocation.Tables[0].Rows.Count > 0)
     //        {
     //            for (int j = 0; j < dslocation.Tables[0].Rows.Count; j++)
     //            {
     //                string locid = dslocation.Tables[0].Rows[j][0].ToString();
     //                dal.executesql("Insert into StaffLocationMap(StaffID,LocationID)values('" +staffid +"','" + locid + "')");
     //            }
     //        }
     //    }
     //}
     //Response.Redirect("DeAssignSiteToUser.aspx");
     ModalPopupDelete.Show();
 }
Ejemplo n.º 5
0
        protected void imgDelete_Click(object sender, EventArgs e)
        {
            SpaMaster MyMasterPage = (SpaMaster)Page.Master;

            DataTable dtViewInventory = AdminDAL.Checkmenu(Session["RoleID"].ToString(), "63");

            if (dtViewInventory.Rows.Count > 0)
            {
                if (ViewState["Item_Id"] != null)
                {
                    ModalPopupDelete.Show();
                }
                //int flag = 0;
                //foreach (GridDataItem row in RadGridCatalog.MasterTableView.Items)
                //{
                //    CheckBox chk1 = (CheckBox)row.FindControl("CheckBox1");
                //    int index = row.ItemIndex;
                //    if (chk1.Checked == true)
                //    {
                //        flag = 1;
                //        break;
                //    }
                //}
                //if (flag == 1)
                //{
                //    ModalPopupDelete.Show();
                //}
                //else
                //{
                //    ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "AlertMessage", " alert('Please select  item in the check box.');", true);
                //}
            }
            else
            {
                MyMasterPage.ShowErrorMessage("You Do Not Have Permission..!");
            }
        }
Ejemplo n.º 6
0
 protected void imgDelete_Click(object sender, EventArgs e)
 {
     ModalPopupDelete.Show();
 }