protected void lbListClaimCancel_Click(object sender, EventArgs e) { if (cek_ga(Session["IDLogin"].ToString())) { //cr : 2015-01-30 ian try { var lb = (Control)sender; GridViewRow row = (GridViewRow)lb.NamingContainer; classSpd oSPD = new classSpd(); karyawan = oSPD.getKaryawan(Session["IDLogin"].ToString()); string noSPD = row.Cells[0].Text; string nrpApproval = karyawan.nrp; string emailApproval = karyawan.EMail; string action = "cancel"; string claimApprove = "ga"; ClaimApprovalUrl claimApprovalUrl = new ClaimApprovalUrl(); lblStat2.Text = claimApprovalUrl.ChangeStatus(noSPD, action, nrpApproval, claimApprove); //bool approvalMethod = claimApprovalUrl.ChangeStatus(noSPD, action, nrpApproval, claimApprove); //if (approvalMethod) //{ // lblStat2.Text = noSPD + " berhasil di" + action + " oleh " + nrpApproval + " " + emailApproval; //} //else //{ // lblStat2.Text = noSPD + " gagal di" + action + " oleh " + nrpApproval + " " + emailApproval; //} } catch (Exception ex) { Response.Write(ex.Message); } #region changed //string status = "29-SPD Cancel"; //cek_claim(sender, status); //historyApproval(sender, status); #endregion btnFind_Click(null, null); } }