protected void lnbDelete_Click(object sender, EventArgs e)
 {
     try
     {
         int[] id = WebFormHelper.GetRowIdForDeletion(gvwMaster);
         paymentTypeProvider.Delete(id);
         Refresh();
     }
     catch (Exception ex)
     {
         WebFormHelper.SetLabelTextWithCssClass(lblMessage, ex.Message, LabelStyleNames.ErrorMessage);
     }
 }
Beispiel #2
0
 protected void lnbDelete_Click(object sender, EventArgs e)
 {
     int[] id = WebFormHelper.GetRowIdForDeletion(gvwMaster);
     try
     {
         Array.ForEach(id, CustomerGradeService.DeleteGrade);
         Refresh();
     }
     catch (Exception ex)
     {
         WebFormHelper.SetLabelTextWithCssClass(lblMessage, ex.Message, LabelStyleNames.ErrorMessage);
     }
 }
 protected void lnbDelete_Click(object sender, EventArgs e)
 {
     try
     {
         int[] id = WebFormHelper.GetRowIdForDeletion(gvwMaster);
         CreditCardTypeService.Delete(id);
         Refresh();
     }
     catch (Exception ex)
     {
         WebFormHelper.SetLabelTextWithCssClass(lblMessage, ex.Message, LabelStyleNames.ErrorMessage);
         LogService.ErrorException(GetType().FullName, ex);
     }
 }
Beispiel #4
0
 protected void lnbDelete_Click(object sender, EventArgs e)
 {
     try
     {
         int[] id = WebFormHelper.GetRowIdForDeletion(gvwMaster);
         Array.ForEach(id, prospectID => ProspectService.DeleteProspect(prospectID));
         ReloadCurrentPage();
     }
     catch (Exception ex)
     {
         WebFormHelper.SetLabelTextWithCssClass(lblMessage, ex.Message, LabelStyleNames.ErrorMessage);
         LogService.ErrorException(GetType().FullName, ex);
     }
 }
 protected void lnbDelete_Click(object sender, EventArgs e)
 {
     try
     {
         int[] selectedID = WebFormHelper.GetRowIdForDeletion(gvwParent);
         personProvider.Delete(selectedID);
         gvwParent.DataBind();
         btnCancel_Click(sender, e);
     }
     catch (Exception ex)
     {
         WebFormHelper.SetLabelTextWithCssClass(lblStatus, ex.Message, LabelStyleNames.ErrorMessage);
     }
 }
 protected void lnbDelete_Click(object sender, EventArgs e)
 {
     try
     {
         int[] id = WebFormHelper.GetRowIdForDeletion(gvwMaster);
         Array.ForEach(id, prospectID => prospectProvider.DeleteProspect(prospectID));
         mvwForm.SetActiveView(viwRead);
         gvwMaster.DataBind();
     }
     catch (Exception ex)
     {
         WebFormHelper.SetLabelTextWithCssClass(lblMessage, ex.Message, LabelStyleNames.ErrorMessage);
     }
 }
 protected void lnbDelete_Click(object sender, EventArgs e)
 {
     try
     {
         int[] id = WebFormHelper.GetRowIdForDeletion(gvwMaster);
         Array.ForEach(id, q => ContractQuestionService.DeleteQuestion(q));
         Refresh();
     }
     catch (Exception ex)
     {
         mvwForm.ActiveViewIndex = 0;
         WebFormHelper.SetLabelTextWithCssClass(
             lblMessage,
             ex.Message,
             LabelStyleNames.ErrorMessage);
         LogService.ErrorException(GetType().FullName, ex);
     }
 }
Beispiel #8
0
 protected void lnbDelete_Click(object sender, EventArgs e)
 {
     try
     {
         int[] id = WebFormHelper.GetRowIdForDeletion(gvwMaster);
         if (!id.Contains(1))
         {
             billingTypeProvider.Delete(id);
         }
         else
         {
             WebFormHelper.SetLabelTextWithCssClass(lblMessage, "<b>Manual Payment</b> cannot be deleted", LabelStyleNames.ErrorMessage);
         }
         Refresh();
     }
     catch (Exception ex)
     {
         mvwForm.ActiveViewIndex = 0;
         WebFormHelper.SetLabelTextWithCssClass(lblMessage, ex.Message, LabelStyleNames.ErrorMessage);
     }
 }
 protected void lnbDelete_Click(object sender, EventArgs e)
 {
     int[] id = WebFormHelper.GetRowIdForDeletion(gvwMaster);
     itemTypeProvider.Delete(id);
     Refresh();
 }
Beispiel #10
0
 protected void lnbDelete_Click(object sender, EventArgs e)
 {
     int[] id = WebFormHelper.GetRowIdForDeletion(gvwMaster);
     salesTargetProvider.DeleteTarget(id);
 }
Beispiel #11
0
 protected void lnbDelete_Click(object sender, EventArgs e)
 {
     int[] id = WebFormHelper.GetRowIdForDeletion(gvwMaster);
     CustomerService.Delete(id);
 }
Beispiel #12
0
 protected void btnDelete_Click(object sender, EventArgs e)
 {
     int[] id = WebFormHelper.GetRowIdForDeletion(gvwData);
     classProvider.DeleteTimeSlot(id);
     gvwData.DataBind();
 }
Beispiel #13
0
 protected void lnbDelete_Click(object sender, EventArgs e)
 {
     int[] id = WebFormHelper.GetRowIdForDeletion(gvwMaster);
     DocumentTypeService.Delete(id);
     Refresh();
 }