public KeyValuePairItem Delete(string key1, string key2, string key3, string Action, string queryType, string type, DataBaseInfo dataBaseInfo) { KeyValuePairItem status; try { var queryArgument = new QueryArgument(dataBaseInfo) { filter1 = key1, filter2 = key2, filter3 = key3, Action = Action, QueryType = queryType, filterType = type }; ControlPanelReadHelper.QueryArgument = queryArgument; status = ControlPanelReadHelper.ConfirmAndDeleteBan(); } catch (Exception ex) { status = new KeyValuePairItem("2", "Could not complete your request!"); EventLogger.LogEvent(SysEventType.ERROR.ToString(), "Error", "Delete failed with exception", ex); throw; } return(status); }
public string GetNewMasterNumber(QueryArgument queryArgument) { try { ControlPanelReadHelper.QueryArgument = queryArgument; return(ControlPanelReadHelper.GetNewMasterNumber()); } catch (Exception ex) { EventLogger.LogEvent(SysEventType.ERROR.ToString(), "Error", "GetNewMasterNumber failed with exception", ex); throw; } }
public void Cancle(QueryArgument queryArgument) { try { ControlPanelReadHelper.QueryArgument = queryArgument; ControlPanelReadHelper.Cancel(); } catch (Exception ex) { EventLogger.LogEvent(SysEventType.ERROR.ToString(), "Error", "Cancle failed with exception", ex); throw; } }
public KeyValuePairItems GetData(QueryArgument queryArgument) { KeyValuePairItems keyValuePairItems; try { ControlPanelReadHelper.QueryArgument = queryArgument; keyValuePairItems = ControlPanelReadHelper.GetData(); } catch (Exception ex) { EventLogger.LogEvent(SysEventType.ERROR.ToString(), "Error", "GetData failed with exception", ex); throw; } return(keyValuePairItems); }
public UserProfiles GetUserProfiles(QueryArgument queryArgument) { UserProfiles userProfiles; try { ControlPanelReadHelper.QueryArgument = queryArgument; userProfiles = ControlPanelReadHelper.GetUserDetails(); } catch (Exception ex) { EventLogger.LogEvent(SysEventType.ERROR.ToString(), "Error", "GetUserProfiles failed with exception", ex); throw; } return(userProfiles); }
public Menus GetMenuAccessRights(QueryArgument queryArgument) { Menus menus; try { ControlPanelReadHelper.QueryArgument = queryArgument; menus = ControlPanelReadHelper.GetMenuAccessRights(); } catch (Exception ex) { EventLogger.LogEvent(SysEventType.ERROR.ToString(), "Error", "GetMenuAccessRights failed with exception", ex); throw; } return(menus); }
public WFComponentSubs GetReferences(QueryArgument queryArgument) { WFComponentSubs refrences; try { ControlPanelReadHelper.QueryArgument = queryArgument; refrences = ControlPanelReadHelper.GetReferences(); } catch (Exception ex) { EventLogger.LogEvent(SysEventType.ERROR.ToString(), "Error", "GetAccounts failed with exception", ex); throw; } return(refrences); }
public Countries GetCountry(QueryArgument queryArgument) { Countries countries; try { ControlPanelReadHelper.QueryArgument = queryArgument; countries = ControlPanelReadHelper.GetCountry(); } catch (Exception ex) { EventLogger.LogEvent(SysEventType.ERROR.ToString(), "Error", "GetCountry failed with exception", ex); throw; } return(countries); }
public Materials GetMaterials(QueryArgument queryArgument) { Materials materials; try { ControlPanelReadHelper.QueryArgument = queryArgument; materials = ControlPanelReadHelper.GetMaterials(); } catch (Exception ex) { EventLogger.LogEvent(SysEventType.ERROR.ToString(), "Error", "GetMaterials failed with exception", ex); throw; } return(materials); }
public Accounts GetAccounts(QueryArgument queryArgument) { Accounts accounts; try { ControlPanelReadHelper.QueryArgument = queryArgument; accounts = ControlPanelReadHelper.GetAccounts(); } catch (Exception ex) { EventLogger.LogEvent(SysEventType.ERROR.ToString(), "Error", "GetAccounts failed with exception", ex); throw; } return(accounts); }
public Units GetUOM(QueryArgument queryArgument) { Units units; try { ControlPanelReadHelper.QueryArgument = queryArgument; units = ControlPanelReadHelper.GetUOMDetails(); } catch (Exception ex) { EventLogger.LogEvent(SysEventType.ERROR.ToString(), "Error", "GetUOM failed with exception", ex); throw; } return(units); }
public Locations GetLocation(QueryArgument queryArgument) { Locations locations; try { ControlPanelReadHelper.QueryArgument = queryArgument; locations = ControlPanelReadHelper.GetLocationDetails(); } catch (Exception ex) { EventLogger.LogEvent(SysEventType.ERROR.ToString(), "Error", "GetLocation failed with exception", ex); throw; } return(locations); }
public DataViewSetupInfo GetStages(QueryArgument queryArgument) { DataViewSetupInfo stagesMasters; try { ControlPanelReadHelper.QueryArgument = queryArgument; stagesMasters = ControlPanelReadHelper.GetStages(); } catch (Exception ex) { EventLogger.LogEvent(SysEventType.ERROR.ToString(), "Error", "Get Stages failed with exception", ex); throw; } return(stagesMasters); }
public WFComponents GetTeams(QueryArgument queryArgument) { WFComponents wfcComponents; try { ControlPanelReadHelper.QueryArgument = queryArgument; wfcComponents = ControlPanelReadHelper.GetTeamMaster(); } catch (Exception ex) { EventLogger.LogEvent(SysEventType.ERROR.ToString(), "Error", "Get Team failed with exception", ex); throw; } return(wfcComponents); }
public Designations GetDesignations(QueryArgument queryArgument) { Designations designations; try { ControlPanelReadHelper.QueryArgument = queryArgument; designations = ControlPanelReadHelper.GetDesignations(); } catch (Exception ex) { EventLogger.LogEvent(SysEventType.ERROR.ToString(), "Error", "GetDesignation failed with exception", ex); throw; } return(designations); }