示例#1
0
        protected void btnImgDeletePopUp_Click(object sender, ImageClickEventArgs e)
        {
            try
            {
                InventoryServiceClient lclsService = new InventoryServiceClient();

                lclsService.DeleteFacilityVendorAccount(Convert.ToInt64(hdnFVAccountID.Value), Convert.ToInt64(defaultPage.UserId), false);
                EventLogger log = new EventLogger(config);
                string      msg = Constant.FacilityVendorAccountDeleteMessage.Replace("ShowdelPopup('", "").Replace("<<FacilityDescription>>", HddFacilityVendor.Value.ToString()).Replace("');", "");
                log.LogInformation(msg);
                ScriptManager.RegisterStartupScript(this, this.GetType(), "alert", Constant.FacilityVendorAccountDeleteMessage.Replace("<<FacilityDescription>>", HddFacilityVendor.Value.ToString()), true);
                BindGrid();
            }
            catch (Exception ex)
            {
                EventLogger log = new EventLogger(config);
                log.LogException(ex);
                ScriptManager.RegisterStartupScript(this, this.GetType(), "alert", Constant.FacilityVendorAccountErrorMessage.Replace("<<FacilityDescription>>", ex.Message), true);
            }
        }