예제 #1
0
    protected void lbtnDelete_Click(object sender, EventArgs e)
    {
        string pickListNo = ((LinkButton)sender).CommandArgument;

        try
        {
            ThePickListMgr.DeletePickList(pickListNo, this.CurrentUser);
            ShowSuccessMessage("MasterData.PickList.DeletePickList.Successfully", pickListNo);
            UpdateView();
        }
        catch (BusinessErrorException ex)
        {
            ShowErrorMessage(ex);
        }
    }
예제 #2
0
 protected void btnDelete_Click(object sender, EventArgs e)
 {
     try
     {
         ThePickListMgr.DeletePickList(this.tbPickListNo.Text.Trim(), this.CurrentUser);
         ShowSuccessMessage("MasterData.PickList.DeletePickList.Successfully", this.tbPickListNo.Text.Trim());
         if (DeleteEvent != null)
         {
             DeleteEvent(sender, e);
         }
     }
     catch (BusinessErrorException ex)
     {
         ShowErrorMessage(ex);
     }
 }