예제 #1
0
 protected void btnDelete_Click(object sender, EventArgs e)
 {
     try
     {
         TheItemKitMgr.DeleteItemKit(this.ParentItemCode, this.ChildItemCode);
         ShowSuccessMessage("MasterData.Item.DeleteItem.Successfully", this.ChildItemCode);
         btnBack_Click(this, e);
     }
     catch (Castle.Facilities.NHibernateIntegration.DataException ex)
     {
         ShowErrorMessage("MasterData.Item.DeleteItem.Fail", this.ChildItemCode);
     }
 }
예제 #2
0
    protected void lbtnDelete_Click(object sender, EventArgs e)
    {
        string code = ((LinkButton)sender).CommandArgument;

        try
        {
            TheItemKitMgr.DeleteItemKit(ParentItemCode, code);
            ShowSuccessMessage("MasterData.Item.DeleteItem.Successfully", code);
            UpdateView();
        }
        catch (Castle.Facilities.NHibernateIntegration.DataException ex)
        {
            ShowErrorMessage("MasterData.Item.DeleteItem.Fail", code);
        }
    }