Exemple #1
0
        //
        // GET: /BlackQuery/
        /// <summary>
        /// 发送指令数据 暂时 比较简单 用着
        /// </summary>
        /// <param name="TripNumber"></param>
        /// <returns></returns>
        public JsonResult GetBlackData(string Cmd, string IP, string Port, string Office)
        {
            var      msg      = new RspMessageModel();
            PidParam pidParam = new PidParam();

            pidParam.ServerIP   = IP;
            pidParam.ServerPort = Port;
            pidParam.Office     = Office;
            pidParam.Cmd        = Cmd;
            CommunicateManager.Invoke <IPidService>(service =>
            {
                msg.Message = service.SendPid(pidParam);
                msg.Success = 1;
            }, (p =>
            {
                msg.Success = 0;
                msg.Message = p.Message;
            }));
            return(Json(new { msg }, JsonRequestBehavior.AllowGet));
        }
Exemple #2
0
 public static extern short LH_GetPidForVelMode(short control, short index, out PidParam pPid, bool resend);
Exemple #3
0
 public static extern short LH_SetPid(short control, short index, ref PidParam pPid, bool resend);