示例#1
0
 protected void GridView3_RowCommand(object sender, GridViewCommandEventArgs e)
 {
     if (e.CommandName == "Approve")
     {
         LeaveMst leaveMst = new LeaveMst();
         leaveMst.LID   = int.Parse(e.CommandArgument.ToString());
         leaveMst.Reply = "Approved";
         leaveMst.UpdateDataByKey();
         MultiView1.ActiveViewIndex = 2;
         Bindgridview("Approved");
         lblrej.Text = GridView3.Rows.Count.ToString();
     }
 }
示例#2
0
 protected void GridView2_RowCommand(object sender, GridViewCommandEventArgs e)
 {
     if (e.CommandName == "Reject")
     {
         LeaveMst leaveMst = new LeaveMst();
         leaveMst.LID   = int.Parse(e.CommandArgument.ToString());
         leaveMst.Reply = "Approved";
         leaveMst.UpdateDataByKey();
         //LeaveAdapter.LeaveMst_UPDATE_STATU(Convert.ToInt32(e.CommandArgument.ToString()), "Reject");
         //leaveMst.UpdateDataByKey();
         Bindgridview("Reject");
         lblapp.Text = GridView2.Rows.Count.ToString();
     }
 }
示例#3
0
        protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e)
        {
            if (e.CommandName == "Approve")
            {
                LeaveMst leaveMst = new LeaveMst();
                leaveMst.LID   = int.Parse(e.CommandArgument.ToString());
                leaveMst.Reply = "Approve";
                leaveMst.UpdateDataByKey();

                // LeaveAdapter.LeaveMst_UPDATE_STATU(Convert.ToInt32(e.CommandArgument.ToString()), "Approve");
                MultiView1.ActiveViewIndex = 0;
                Bindgridview("Approve");
                lblnew.Text = GridView1.Rows.Count.ToString();
            }
            else
            {
            }
        }