Beispiel #1
0
 public Form1()
 {
     InitializeComponent();
     client = new Service1Client();
 }
Beispiel #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            ServiceReference1.Service1Client client = new ServiceReference1.Service1Client();

            RobotServices.RequestAMRActionArg[] AMRActionArgs = new RobotServices.RequestAMRActionArg[3];


            RobotServices.RequestAMRActionArg action1 = new RobotServices.RequestAMRActionArg();

            action1.ActionId   = "11111111";
            action1.ActionType = 1;

            RobotServices.ActionArg[] ActionArg1 = new  RobotServices.ActionArg[2];
            RobotServices.ActionArg   arg1       = new  RobotServices.ActionArg();
            arg1.ArgName = "amrDestination";

            arg1.ArgValue = "788,-380,90";
            ActionArg1[0] = arg1;

            RobotServices.ActionArg arg11 = new  RobotServices.ActionArg();

            arg11.ArgName = "amrSource";

            arg11.ArgValue = "0,0,0";
            ActionArg1[1]  = arg11;

            action1.ActionArgs = ActionArg1;

            AMRActionArgs[0] = action1;


            RobotServices.RequestAMRActionArg action3 = new  RobotServices.RequestAMRActionArg();

            action3.ActionId   = "3333333";
            action3.ActionType = 2;

            RobotServices.ActionArg[] ActionArg3 = new  RobotServices.ActionArg[1];
            RobotServices.ActionArg   arg3       = new  RobotServices.ActionArg();
            arg3.ArgName = "amrDestination";

            arg3.ArgValue      = "788,0,90";
            ActionArg3[0]      = arg3;
            action3.ActionArgs = ActionArg3;

            AMRActionArgs[1] = action3;



            RobotServices.RequestAMRActionArg action2 = new  RobotServices.RequestAMRActionArg();
            action2.ActionId   = "22222222";
            action2.ActionType = 3;
            RobotServices.ActionArg[] args2 = new  RobotServices.ActionArg[4];

            RobotServices.ActionArg arg2 = new  RobotServices.ActionArg();
            arg2.ArgName  = "amrDestination";
            arg2.ArgValue = "300,0,0";
            args2[0]      = arg2;

            RobotServices.ActionArg arg21 = new  RobotServices.ActionArg();
            arg21.ArgName  = "amrSource";
            arg21.ArgValue = "300,0,0";
            args2[1]       = arg21;

            RobotServices.ActionArg arg22 = new  RobotServices.ActionArg();
            arg22.ArgName  = "loadSource";
            arg22.ArgValue = "erack2";
            args2[2]       = arg22;

            RobotServices.ActionArg arg23 = new  RobotServices.ActionArg();
            arg23.ArgName  = "loadDestination";
            arg23.ArgValue = "robot2";
            args2[3]       = arg23;

            action2.ActionArgs = args2;

            AMRActionArgs[2] = action2;

            // RobotServices.RequestAMRActionArg action3 = new  RobotServices.RequestAMRActionArg();
            //action3.ActionId = "33333333";
            //arg[2] = action3;
            client.RequestAMRAction(AMRActionArgs);
        }
Beispiel #3
0
        private void button1_Click(object sender, EventArgs e)
        {
            ServiceReference1.Service1Client client  = new ServiceReference1.Service1Client();
            ServiceReference1.OrderDetailes  request = new ServiceReference1.OrderDetailes();

            #region picture
            ServiceReference1.Pictures p1 = new ServiceReference1.Pictures();
            p1.fileName = "p1";
            p1.fileBody = picture1;
            p1.fileSize = 30;
            p1.size     = 50.50F;
            p1.angle    = 10F;
            p1.left     = 50F;
            p1.top      = 50F;
            //ServiceReference1.Pictures p2 = new ServiceReference1.Pictures();
            //p2.fileName = "p2";
            //p2.fileBody = picture2;
            //p2.fileSize = 40;
            //p2.size = 50.50F;
            //p2.angle = 11F;
            //p2.left = 50F;
            //p2.top = 50F;
            //ServiceReference1.Pictures p3 = new ServiceReference1.Pictures();
            //p3.fileName = "p3";
            //p3.fileBody = picture3;
            //p3.fileSize = 50;
            //p3.size = 50.50F;
            //p3.angle = 0F;
            //p3.left = 50F;
            //p3.top = 50F;

            ServiceReference1.Pictures[] pictures = new ServiceReference1.Pictures[1];
            pictures[0] = p1;
            //pictures[1] = p2;
            //pictures[2] = p3;
            #endregion

            #region  text
            ServiceReference1.Text t1 = new ServiceReference1.Text();
            t1.fontFamily = "Arial";
            t1.fontSize   = 30;
            t1.fontColor  = "Red";
            t1.left       = 0;
            t1.top        = 0;
            t1.angle      = 0;
            t1.textBody   = "first";

            ServiceReference1.Text t2 = new ServiceReference1.Text();
            t2.fontFamily = "Arial";
            t2.fontSize   = 30;
            t2.fontColor  = "Green";
            t2.left       = 0;
            t2.top        = 0;
            t2.angle      = 0;
            t2.textBody   = "second";

            ServiceReference1.Text[] texts = new ServiceReference1.Text[2];
            texts[0] = t1;
            texts[1] = t2;
            #endregion

            #region client + order
            request.picturesList = pictures;
            request.textsList    = texts;
            request.clientID     = "*****@*****.**";
            request.phone        = "0123456798";
            request.address      = "here and now 7/8";
            request.fullName     = "nobody here";
            request.city         = "jer";
            request.zipCode      = 123;
            request.POB          = 555;

            request.amount         = 1;
            request.pattern        = 111;
            request.deliveryMethod = 1;
            #endregion

            //  System.Net.ServicePointManager.Expect100Continue = false;

            int newOrder = (int)client.GetOrder(request);
        }