public bool forceUpdataCmdStatus2FnishByVhID(string vh_id)
        {
            string result = string.Empty;

            string[] action_targets = new string[]
            {
                "Engineer",
                "ForceCmdFinish",
            };
            StringBuilder sb = new StringBuilder();

            sb.Append($"{nameof(vh_id)}={vh_id}").Append("&");
            byte[] byteArray = Encoding.UTF8.GetBytes(sb.ToString());
            result = webClientManager.PostInfoToServer(WebClientManager.OHxC_CONTROL_URI, action_targets, WebClientManager.HTTP_METHOD.POST, byteArray);
            return(result == "OK");
        }
Exemplo n.º 2
0
            public (bool isSuccess, string result) SendSegmentStatusUpdate(string seg_id, sc.ASEGMENT.DisableType type, sc.E_SEG_STATUS satus)
            {
                string result = string.Empty;

                string[] action_targets = new string[]
                {
                    "Segment",
                    "StatusUpdate",
                };
                StringBuilder sb = new StringBuilder();

                sb.Append($"{nameof(seg_id)}={seg_id}").Append("&");
                sb.Append($"{nameof(type)}={type.ToString()}").Append("&");
                sb.Append($"{nameof(satus)}={satus.ToString()}");
                byte[] byteArray = Encoding.UTF8.GetBytes(sb.ToString());
                result = webClientManager.PostInfoToServer(WebClientManager.OHxC_CONTROL_URI, action_targets, WebClientManager.HTTP_METHOD.POST, byteArray);
                return(result == "", result);
            }