protected void btnZMARConfirmReturnApplication_Click(object sender, EventArgs e) { lblZMARConfirmReturnAppReasonError.Text = ""; if (txtZMARConfirmReturnAppReason.Text.Trim().Length > 10) { AP.ApplicationStatusUpdate("ARDOCPROCESS", "RETURNED", lblZMARConfirmReturnAppNumber.Text.Trim(), txtZMARConfirmReturnAppReason.Text.Trim()); this.FillGridArivu(); } else { lblZMARConfirmReturnAppReasonError.Text = "Enter valid reason to return application to DM"; ZMARConfirmReturnPopup.Show(); } }
protected void btnZMARReturn_Click(object sender, EventArgs e) { if (drpArivuSelectYear.SelectedValue == "1ST_INSTALMENT") { txtZMARConfirmReturnAppReason.Text = ""; lblZMARConfirmReturnAppReasonError.Text = ""; Button btn = (Button)sender; GridViewRow gvr = (GridViewRow)btn.NamingContainer; int rowindex = gvr.RowIndex; lblZMARConfirmReturnAppNumber.Text = gvZMARApproveProcess.DataKeys[rowindex].Values["ApplicationNumber"].ToString(); lblZMARConfirmReturnAppName.Text = gvZMARApproveProcess.DataKeys[rowindex].Values["ApplicantName"].ToString(); ZMARConfirmReturnPopup.Show(); } else { DisplayAlert("Only 1ST INSTALMENT application can be return", this); } }