Exemplo n.º 1
0
        public void GetFunctionOptionsTest()
        {
            FunctionBusiness     target   = new FunctionBusiness(); // TODO: Initialize to an appropriate value
            List <MA_FUNCTIONAL> expected = null;                   // TODO: Initialize to an appropriate value
            List <MA_FUNCTIONAL> actual;

            actual = target.GetFunctionOptions();
            Assert.AreEqual(expected, actual);
            Assert.Inconclusive("Verify the correctness of this test method.");
        }
Exemplo n.º 2
0
        public static object GetFunctionOptions(SessionInfo sessioninfo)
        {
            try
            {
                FunctionBusiness _functionBusiness = new FunctionBusiness();
                //Get data from database
                var functions = _functionBusiness.GetFunctionOptions().OrderBy(p => p.LABEL).Select(c => new { DisplayText = c.LABEL, Value = c.ID });

                //Return result to jTable
                return(new { Result = "OK", Options = functions });
            }
            catch (Exception ex)
            {
                return(new { Result = "ERROR", Message = ex.Message });
            }
        }