Exemplo n.º 1
0
        private void buttonGetObject_Click(object sender, EventArgs e)
        {
            StringBuilder filePath = new StringBuilder();
            //Boolean result = RemoteCall.GetObjectData("4CE089D6-9FB9-40AF-A27A-33948FC5FC3C", "02ck3KICwBQyvF", filePath, "front"); //02ck3KICw6x5Tb
            //Boolean result = RemoteCall.GetObjectData("E09E68C9-EEDA-4966-AA4D-DCCCE465074B", "BAT00161212000818000003-BAT001612120008", filePath, "");
            //Boolean result = RemoteCall.GetObjectData("E09E68C9-EEDA-4966-AA4D-DCCCE465074B", "BAT00161225000118000000-BAT001612250001", filePath, "");
            Boolean result = RemoteCall.GetObjectData("SheetPicture", "BAT00170309000125000000-BAT001703090001", filePath, "");

            //Boolean result = RemoteCall.GetObjectData("SheetPicture", "BAT00170309000118010001-BAT001703090001", filePath, "");

            //req.url = "/caxa/get_object_data?proc_id=4CE089D6-9FB9-40AF-A27A-33948FC5FC3C&object_id=02ck3KICw6x5Tb&flag=front";//E09E68C9-EEDA-4966-AA4D-DCCCE465074B&object_id=0Hck3KI5kEmJWh&flag=";
            if (result)
            {
                AppendLog(String.Format("Success: object file: {0}", filePath.ToString()));
                Process.Start(filePath.ToString());
            }
            else
            {
                this.listBoxLog.Items.Add(String.Format("Failed to get object"));
            }
        }