protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e) { try { if (e.CommandName == "replace") { //Response.Write(e.CommandName); string staffid = e.CommandArgument.ToString(); replace(staffid); } if (e.CommandName == "profile") { string staffid = e.CommandArgument.ToString(); ModalPopupAdd.Show(); PopulatePageCntrls(staffid); // Response.Redirect("../ADMIN/Staff_ViewReport.aspx?StaffID=" + e.CommandArgument); } if (e.CommandName == "DeleteRow") { string staffid = e.CommandArgument.ToString(); DeleteItem(staffid); } } catch (Exception exc) { } }
protected void imdAdd_Click(object sender, EventArgs e) { SpaMaster MyMasterPage = (SpaMaster)Page.Master; DataTable dtAddNewPass = AdminDAL.Checkmenu(Session["RoleID"].ToString(), "93"); if (dtAddNewPass.Rows.Count > 0) { getPassTypeAdd("passtype"); if (Session["ManagementRole"].ToString().ToLower() == "superuser") { getLocationName(); } else { getLocationNameById(Session["LCID"].ToString()); } ModalPopupAdd.Show(); } else { MyMasterPage.ShowErrorMessage("You Don not Have Permission ..!"); } }
protected void ViewDetails(object sender, EventArgs e) { LinkButton lnkView = (sender as LinkButton); GridViewRow row = (lnkView.NamingContainer as GridViewRow); string id = lnkView.CommandArgument; ModalPopupAdd.Show(); PopulatePageCntrls(id); }
protected void imgUpdate_Click(object sender, EventArgs e) { if (ViewState["DDID"] != null) { ModalPopupAdd.Show(); PopulatePageCntrls(); Session["ctrl"] = printview; } }
protected void imdAdd_Click(object sender, EventArgs e) { SpaMaster MyMasterPage = (SpaMaster)Page.Master; DataTable dtAddNewPass = AdminDAL.Checkmenu(Session["RoleID"].ToString(), "89"); if (dtAddNewPass.Rows.Count > 0) { ModalPopupAdd.Show(); } else { MyMasterPage.ShowErrorMessage("You Do not Have Permission..!"); } }
protected void grdSchedule_RowCommand(object sender, GridViewCommandEventArgs e) { string staffid = e.CommandArgument.ToString(); string[] staffid1 = staffid.Split(' '); string mdate = staffid1[0].ToString(); string wdrid = staffid1[1].ToString(); string staffidentification = staffid1[2].ToString(); if (e.CommandName == "replace") { replace(mdate, staffidentification, ddlSite.SelectedValue.ToString(), wdrid); } if (e.CommandName == "DeleteRow") { Delete(mdate, staffidentification, ddlSite.SelectedValue.ToString(), wdrid); } if (e.CommandName == "profile") { ModalPopupAdd.Show(); PopulatePageCntrls(staffidentification); // Response.Redirect("../ADMIN/Staff_ViewReport.aspx?StaffID=" + staffidentification); } }
protected void imdAdd_Click(object sender, EventArgs e) { ModalPopupAdd.Show(); }
protected void imgAdd_Click(object sender, EventArgs e) { ModalPopupAdd.Show(); fillStaffName(); fillLeaveType(); }