protected void btn_CanclePass_Click(object sender, EventArgs e) { FNA_ClientPaymentInfoBLL bll; if ((int)ViewState["ID"] > 0) { bt_Save_Click(null, null); bll = new FNA_ClientPaymentInfoBLL((int)ViewState["ID"]); bll.CancleConfirm((int)Session["UserID"], DateTime.Now); Response.Redirect("ClientPaymentList.aspx?ClientID=" + bll.Model.Client.ToString()); } }
protected void btn_CanclePass_Click(object sender, EventArgs e) { FNA_ClientPaymentInfoBLL bll; if ((int)ViewState["ID"] > 0) { bt_Save_Click(null, null); bll = new FNA_ClientPaymentInfoBLL((int)ViewState["ID"]); bll.CancleConfirm((int)Session["UserID"], DateTime.Now); Response.Redirect("ClientPaymentList.aspx?ClientID=" + bll.Model.Client.ToString()); } }
protected void btn_CanclePass_Click(object sender, EventArgs e) { foreach (GridViewRow row in gv_List.Rows) { CheckBox cb_check = (CheckBox)row.FindControl("cb_Check"); if (cb_check.Checked) { int CurrentJobID = (int)gv_List.DataKeys[row.RowIndex]["FNA_ClientPaymentInfo_ID"]; FNA_ClientPaymentInfoBLL bll; if (CurrentJobID > 0) { bll = new FNA_ClientPaymentInfoBLL(CurrentJobID); if (bll.Model.ApproveFlag == 1) bll.CancleConfirm((int)Session["UserID"], DateTime.Now); } } } Response.Redirect("~/SubModule/FNA/ClientPayment/ClientPaymentList.aspx"); }
protected void btn_CanclePass_Click(object sender, EventArgs e) { foreach (GridViewRow row in gv_List.Rows) { CheckBox cb_check = (CheckBox)row.FindControl("cb_Check"); if (cb_check.Checked) { int CurrentJobID = (int)gv_List.DataKeys[row.RowIndex]["FNA_ClientPaymentInfo_ID"]; FNA_ClientPaymentInfoBLL bll; if (CurrentJobID > 0) { bll = new FNA_ClientPaymentInfoBLL(CurrentJobID); if (bll.Model.ApproveFlag == 1) { bll.CancleConfirm((int)Session["UserID"], DateTime.Now); } } } } Response.Redirect("~/SubModule/FNA/ClientPayment/ClientPaymentList.aspx"); }