コード例 #1
0
 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)
     {
     }
 }
コード例 #2
0
        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 ..!");
            }
        }
コード例 #3
0
        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);
        }
コード例 #4
0
 protected void imgUpdate_Click(object sender, EventArgs e)
 {
     if (ViewState["DDID"] != null)
     {
         ModalPopupAdd.Show();
         PopulatePageCntrls();
         Session["ctrl"] = printview;
     }
 }
コード例 #5
0
        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..!");
            }
        }
コード例 #6
0
        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);
            }
        }
コード例 #7
0
 protected void imdAdd_Click(object sender, EventArgs e)
 {
     ModalPopupAdd.Show();
 }
コード例 #8
0
 protected void imgAdd_Click(object sender, EventArgs e)
 {
     ModalPopupAdd.Show();
     fillStaffName();
     fillLeaveType();
 }