public void bindData(int clientID) { Series series1 = null; List <RuleExceptionStatisticsView> statistics = null; using (RuleExceptionManager repository = new RuleExceptionManager()) { statistics = repository.GetExceptionStatistics(clientID); } if (statistics != null && statistics.Count > 0) { series1 = Chart1.Series[0]; foreach (RuleExceptionStatisticsView stats in statistics) { System.Web.UI.DataVisualization.Charting.DataPoint dataPoint = new System.Web.UI.DataVisualization.Charting.DataPoint(); dataPoint.AxisLabel = stats.RuleName; dataPoint.YValues = new double[] { stats.ExceptionCount }; // do not show bar for empty values dataPoint.IsEmpty = stats.ExceptionCount.Equals(0); dataPoint.ToolTip = "Click to drill down"; series1.Points.Add(dataPoint); dataPoint.Url = string.Format("javascript:ruleExceptionDrilldown('{0}','{1}');", stats.RuleID, stats.RuleName); } } }
public int checkInsertable(int businessruleId, int clientId, int userId, int claimId) { RuleExceptionManager RuleExceptionManagerObj = new RuleExceptionManager(); RuleException RuleExceptionObj = new RuleException(); int insertState = 0; RuleExceptionObj = RuleExceptionManagerObj.GetRuleException(businessruleId, clientId, userId, claimId); try { bool active = Convert.ToBoolean(RuleExceptionObj.IsActive); if (active == false) { insertState = 1; } else { insertState = 2; } } catch (Exception e) { insertState = 0; } return(insertState); }
public bool ExceptionExists(int clientID, int businessRuleID, int objectID, int objectTypeID) { bool exists = false; using (RuleExceptionManager repository = new RuleExceptionManager()) { exists = repository.CheckForException(clientID, businessRuleID, objectID, objectTypeID); } return(exists); }
public void insertRuleException(int BusinessRuleId, int clientID, int userID, int claimId) { RuleExceptionManager RuleExceptionManagerObj = new RuleExceptionManager(); RuleException RuleExceptionObj = new RuleException(); RuleExceptionObj.BusinessRuleID = BusinessRuleId; RuleExceptionObj.ClientID = clientID; RuleExceptionObj.UserID = userID; RuleExceptionObj.ObjectID = claimId; RuleExceptionObj.ObjectTypeID = 1; RuleExceptionManagerObj.Save(RuleExceptionObj); }
public void AddException(RuleException ruleException) { using (RuleExceptionManager repository = new RuleExceptionManager()) { repository.Save(ruleException); } }
public void setAdjusterSupervisorList() { var adjusterCount = 0; var supervisorCount = 0; RuleExceptionManager RuleExceptionManagerObj = new RuleExceptionManager(); RuleException RuleExceptionObj = new RuleException(); List <RuleException> RuleExceptionArr = new List <RuleException>(); Globals gvGet = Globals.Instance(); int clientID = Convert.ToInt32(gvGet.getClientId()); RuleExceptionArr = RuleExceptionManagerObj.GetAllException(clientID); for (var i = 0; i < RuleExceptionArr.Count; i++) { int businessRuleId = Convert.ToInt32(RuleExceptionArr[i].BusinessRuleID); if (checkAdjusterSendMail(businessRuleId)) { adjusterCount = adjusterCount + 1; } if (checkSupervisorSendMail(businessRuleId)) { supervisorCount = supervisorCount + 1; } } int[] exceptionListAdjuster = new int[adjusterCount]; int[] formerExceptionListAdjuster = gvGet.getExceptionListAdjuster(); int[] exceptionListSupervisor = new int[supervisorCount]; int[] formerExceptionSupervisor = gvGet.getExceptionListSupervisor(); var j = 0; var k = 0; for (var i = 0; i < RuleExceptionArr.Count; i++) { int businessRuleId = Convert.ToInt32(RuleExceptionArr[i].BusinessRuleID); int userId = Convert.ToInt32(RuleExceptionArr[i].UserID); int claimId = Convert.ToInt32(RuleExceptionArr[i].ObjectID); if (checkAdjusterSendMail(businessRuleId)) { bool canAdd = true; for (var q = 0; q < formerExceptionListAdjuster.Length; q++) { if (RuleExceptionArr[i].RuleExceptionID == formerExceptionListAdjuster[q]) { canAdd = false; } } if (canAdd == true) { exceptionListAdjuster[j] = RuleExceptionArr[i].RuleExceptionID; } j = j + 1; } if (checkSupervisorSendMail(businessRuleId)) { bool canAdd = true; for (var q = 0; q < formerExceptionSupervisor.Length; q++) { if (RuleExceptionArr[i].RuleExceptionID == formerExceptionSupervisor[q]) { canAdd = false; } } if (canAdd == true) { exceptionListSupervisor[k] = RuleExceptionArr[i].RuleExceptionID; } k = k + 1; } } gvGet.setExceptionListAdjuster(exceptionListAdjuster); gvGet.setExceptionListSupervisor(exceptionListSupervisor); }
public void updateRuleException(int BusinessRuleId, int clientID, int userID, int claimId) { RuleExceptionManager RuleExceptionManagerObj = new RuleExceptionManager(); RuleExceptionManagerObj.update(BusinessRuleId, clientID, userID, claimId); }
public void formatExceptions(int clientID, int userID, int claimId) { RuleExceptionManager RuleExceptionManagerObj = new RuleExceptionManager(); RuleExceptionManagerObj.format(clientID, userID, claimId); }