public static void saveError(IClientServices Services, Exception exception, string FormName) { UI.ShowError(exception.Message); RequestCollection _query = DataQuery.Create("FW", "ws_Error_Save", new { ID = "0", Error = Services.LastError + "(" + FormName + ")", LocalIP = LocalIPAddress(), sPName = "", spParameterQuery = "", exception.StackTrace, exception.Message, exception.Source }); DataSet _ds = Services.Execute(_query); if (_ds == null) { UI.ShowError(Services.LastError); } }
public static void saveError(IClientServices Services, string spName, string paramQuery) { RequestCollection _query = DataQuery.Create("FW", "ws_Error_Save", new { ID = "0", Error = Services.LastError, LocalIP = LocalIPAddress(), sPName = spName, spParameterQuery = paramQuery, StackTrade = "", StackMessage = "", StackSource = "" }); DataSet _ds = Services.Execute(_query); if (_ds == null) { UI.ShowError(Services.LastError); } }
public static string TableCellValue(IClientServices Services, string TableName, string ColumnNameShow, string ColumnNameExpression, string Expression) { string value = ""; RequestCollection _query = DataQuery.Create("QAHosGenericDB", "ws_GetFieldlValueOfTable", new { TableName = TableName, FieldNameShow = ColumnNameShow, FieldNameExpression = ColumnNameExpression, Expression = Expression }); DataSet _ds = Services.Execute(_query); if (_ds == null) { UI.ShowError(Services.LastError); } value = _ds.FirstValue(); return(value); }