예제 #1
0
    protected void lbtnDelete_Click(object sender, EventArgs e)
    {
        int id = int.Parse(((LinkButton)sender).CommandArgument);
        OrderLocationTransaction orderLocationTrans = TheOrderLocationTransactionMgr.LoadOrderLocationTransaction(id);

        try
        {
            TheOrderMgr.DeleteOrderLocationTransaction(id, this.CurrentUser.Code);
            ShowSuccessMessage("MasterData.Order.LocTrans.Delete.Successfully");
            UpdateRoutingEvent(this.OrderNo, e);
            UpdateView();
        }
        catch (BusinessErrorException ex)
        {
            ShowErrorMessage(ex);
        }
    }