Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
        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);
            }
        }
Esempio n. 3
0
        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);
        }