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);
     }
 }
Exemplo n.º 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);
     }
 }
Exemplo n.º 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);
     }
 }
Exemplo n.º 5
0
 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);
     }
 }
Exemplo n.º 6
0
 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);
     }
 }
Exemplo n.º 7
0
 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);
     }
 }
Exemplo n.º 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);
     }
 }
Exemplo n.º 9
0
 protected void lnbDelete_Click(object sender, EventArgs e)
 {
     int[] id = WebFormHelper.GetRowIdForDeletion(gvwMaster);
     itemTypeProvider.Delete(id);
     Refresh();
 }
Exemplo n.º 10
0
 protected void lnbDelete_Click(object sender, EventArgs e)
 {
     int[] id = WebFormHelper.GetRowIdForDeletion(gvwMaster);
     salesTargetProvider.DeleteTarget(id);
 }
Exemplo n.º 11
0
 protected void lnbDelete_Click(object sender, EventArgs e)
 {
     int[] id = WebFormHelper.GetRowIdForDeletion(gvwMaster);
     CustomerService.Delete(id);
 }
Exemplo n.º 12
0
 protected void btnDelete_Click(object sender, EventArgs e)
 {
     int[] id = WebFormHelper.GetRowIdForDeletion(gvwData);
     classProvider.DeleteTimeSlot(id);
     gvwData.DataBind();
 }
Exemplo n.º 13
0
 protected void lnbDelete_Click(object sender, EventArgs e)
 {
     int[] id = WebFormHelper.GetRowIdForDeletion(gvwMaster);
     DocumentTypeService.Delete(id);
     Refresh();
 }