private void DeleteItem(string argContractorId)
        {
            log4net.ILog logger = log4net.LogManager.GetLogger("File");
            try
            {
                if (!string.IsNullOrEmpty(argContractorId))
                {
                    AdminBLL ws = new AdminBLL();
                    DeleteContractorRequest _req = new DeleteContractorRequest();

                    _req.ContratorNo = argContractorId.ToString();

                    ws.DeleteContractor(_req);
                    HttpContext.Current.Items.Add(ContextKeys.CTX_COMPLETE, "DELETE");
                    Response.Redirect("~/SMSUsers/Reports/ContractorReport.aspx");
                }
            }
            //catch (System.Threading.ThreadAbortException)
            //{
            //}
            catch (Exception ex)
            {
                logger.Info(ex.Message);
            }
        }
예제 #2
0
 public void DeleteContractor(DeleteContractorRequest argObj)
 {
     try
     {
         AdminDAL ws = new AdminDAL();
         ws.DeleteContractorUser(argObj);
     }
     catch (Exception ex)
     {
     }
 }
예제 #3
0
        private void DeleteItem(string argEmbossId)
        {
            log4net.ILog logger = log4net.LogManager.GetLogger("File");
            try
            {
                if (!string.IsNullOrEmpty(argEmbossId))
                {
                    AdminBLL ws = new AdminBLL();
                    DeleteContractorRequest _req = new DeleteContractorRequest();

                    _req.ContratorNo = argEmbossId.ToString();

                    ws.DeleteContractor(_req);
                    HttpContext.Current.Items.Add(ContextKeys.CTX_COMPLETE, "DELETE");
                    Server.Transfer("../SMSAdmin/AlertUpdateComplete.aspx");
                }
            }
            catch (Exception ex)
            {
                logger.Info(ex.Message);
            }
        }