Ejemplo n.º 1
0
        public object Operation(object whereCl, string orderByCl, object operand2)
        {
            try
            {
                // service hívás
                var client = new WoLaService.WoLaServiceClient();
                client.ClientCredentials.UserName.UserName = "******";
                client.ClientCredentials.UserName.Password = "******";

                var retVal = client.GetWorkforceByWhereClauseAndSorting(whereCl.ToString(), orderByCl == "" ? null : orderByCl);

                Console.WriteLine(retVal[0].Name);

                return(retVal);
            }
            catch (Exception exc)
            {
                Console.WriteLine("EXCEPTION -> " + exc.Message);
                string ERROR = "ERROR";
                return(ERROR);
            }
        }
Ejemplo n.º 2
0
        public object Operation(object whereCl, string orderByCl, object operand2)
        {
            try
            {
                // service hívás
                var client = new WoLaService.WoLaServiceClient();
                client.ClientCredentials.UserName.UserName = "******";
                client.ClientCredentials.UserName.Password = "******";

                var retVal = client.GetWorkforceByWhereClauseAndSorting(whereCl.ToString(), orderByCl == "" ? null : orderByCl);

                Console.WriteLine(retVal[0].Name);

                return retVal;
            }
            catch (Exception exc)
            {
                Console.WriteLine("EXCEPTION -> " + exc.Message);
                string ERROR = "ERROR";
                return ERROR;
            }
        }
Ejemplo n.º 3
0
        private static object DocumentHandling(Stack <string> path, string docName)
        {
            try
            {
                var client = new WoLaService.WoLaServiceClient();

                client.ClientCredentials.UserName.UserName = "******";
                client.ClientCredentials.UserName.Password = "******";

                Stack <string> hStack = new Stack <string>();
                string[]       helper;
                while (path.Count != 0)
                {
                    helper = path.Pop().Split(':');
                    if (helper.Length == 2)
                    {
                        hStack.Push(helper[1]);
                    }
                    else
                    {
                        hStack.Push(helper[0]);
                    }
                }

                object returnValue = client.GetFieldValueByProccessInstace(Model.Container.Container.processInstance, hStack.Pop(), hStack.Pop(), hStack.Pop());

                return(returnValue);
            }
            catch (Exception exc)
            {
                Console.WriteLine("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
                Console.WriteLine("x " + exc.Message);
                Console.WriteLine("x A hivatkozott érték nem létezik");
                Console.WriteLine("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
                string ERROR = "ERROR";
                return(ERROR);
            }
        }
Ejemplo n.º 4
0
        private static object DocumentHandling(Stack<string> path, string docName)
        {
            try
            {
                var client = new WoLaService.WoLaServiceClient();

                client.ClientCredentials.UserName.UserName = "******";
                client.ClientCredentials.UserName.Password = "******";
                
                Stack<string> hStack = new Stack<string>();
                string[] helper;
                while (path.Count != 0)
                {
                    helper = path.Pop().Split(':');
                    if (helper.Length == 2)
                    {
                        hStack.Push(helper[1]);
                    }
                    else
                    {
                        hStack.Push(helper[0]);
                    }
                }

                object returnValue = client.GetFieldValueByProccessInstace(Model.Container.Container.processInstance, hStack.Pop(), hStack.Pop(), hStack.Pop());
                
                return returnValue;
            }
            catch (Exception exc)
            {
                Console.WriteLine("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
                Console.WriteLine("x " + exc.Message);
                Console.WriteLine("x A hivatkozott érték nem létezik");
                Console.WriteLine("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx");
                string ERROR = "ERROR";
                return ERROR;
            }
        }