Ejemplo n.º 1
0
        private void DeleteWerpName(int lookupID)
        {
            try
            {
                bool result;
                werplookupCodeValueManagementVo          = new WERPlookupCodeValueManagementVo();
                werplookupCodeValueManagementVo.LookupID = lookupID;

                result = onlineOrderBackOfficeBo.DeleteWerpName(werplookupCodeValueManagementVo);
                if (result)
                {
                    BindWerpGrid(Convert.ToInt32(ddlCategory.SelectedValue));
                    ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscript", "alert('Internal Name Deleted Successfully.');", true);
                }
                else
                {
                    ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "pageloadscript", "alert('Maping Exist.You cant delete.');", true);
                }
            }

            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();
                FunctionInfo.Add("Method", "ManageLookups.ascx.cs:DeleteWerpName()");
                object[] objects = new object[1];
                objects[0]   = lookupID;
                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }
        }