當前位置: 首頁>>代碼示例>>C#>>正文


C# Application.CmdParam類代碼示例

本文整理匯總了C#中ParamLibrary.Application.CmdParam的典型用法代碼示例。如果您正苦於以下問題:C# CmdParam類的具體用法?C# CmdParam怎麽用?C# CmdParam使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


CmdParam類屬於ParamLibrary.Application命名空間,在下文中一共展示了CmdParam類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: icar_SendCmdXML

 public long icar_SendCmdXML(CmdParam.ParamType ParamType, string SimNum, string CarId, string CarPw, string ProtocolName, CmdParam.CommMode CommMode, TxtMsg MsgContext, string sMsgType)
 {
     long num = (long)0;
     this.logMsg.FunctionName = "icar_SendTxtMsg";
     this.logMsg.Msg = string.Concat("發送:類型-", ParamType.ToString(), ",車輛-", SimNum);
     string str = string.Concat("消息類型-", MsgContext.MsgType.ToString(), string.Format(",{0}-", sMsgType), MsgContext.strMsg);
     LogMsg logMsg = this.logMsg;
     logMsg.Msg = string.Concat(logMsg.Msg, ",", str);
     this.log.WriteLog(this.logMsg);
     if (!this.isStartCommon())
     {
         num = (long)-1;
     }
     else
     {
         try
         {
             int newOrderId = DownData.CarCmdSend.GetNewOrderId();
             if (ProtocolName != "JTBGPS")
             {
                 num = DownData.CarCmdSend.icar_SendTxtMsg(this.WorkId, newOrderId, SimNum, MsgContext.MsgType, MsgContext.strMsg);
             }
             else
             {
                 MsgContext.TransformCode = CmdParam.TrafficProtocolCodeExchange((int)MsgContext.MsgType);
                 string str1 = "";
                 string xmlString = MsgContext.ToXmlString(this.CalOrderId(this.WorkId, newOrderId), SimNum, ProtocolName, (int)CommMode, "SimpleCmd", ref str1);
                 num = DownData.CarCmdSend.icar_SendCmdXML(this.WorkId, newOrderId, SimNum, ProtocolName, (int)MsgContext.MsgType, (int)CommMode, xmlString);
             }
             if (num == (long)0)
             {
                 ReadDataFromDB.execSaveGpsLogTable(this.WorkId, newOrderId, CarId, (int)MsgContext.MsgType, MsgContext.strMsg);
             }
             if (num != (long)0)
             {
                 AlarmMsg alarmMsg = new AlarmMsg()
                 {
                     ClassName = "GpsPicDownData",
                     FunctionName = "icar_SendTxtMsg"
                 };
                 object[] workId = new object[] { "workid-", this.WorkId, ",simNum-", SimNum, ",strMsg-", MsgContext.strMsg };
                 alarmMsg.AlarmText = string.Concat(workId);
                 alarmMsg.Code = num.ToString();
                 this.log.WriteAlarm(alarmMsg);
             }
         }
         catch (Exception exception1)
         {
             Exception exception = exception1;
             ErrorMsg errorMsg = new ErrorMsg()
             {
                 ClassName = "GpsPicDownData",
                 ErrorText = "下發消息指令時發生錯誤!"
             };
             this.log.WriteError(errorMsg, exception);
             num = (long)-1;
         }
     }
     return num;
 }
開發者ID:lexzh,項目名稱:Myproject,代碼行數:60,代碼來源:DownData.cs

示例2: JTBWirelessUpgradeCommand

 public JTBWirelessUpgradeCommand(CmdParam.OrderCode OrderCode)
 {
     this.InitializeComponent();
     base.OrderCode = OrderCode;
     this._appServerList = new AutoDropDown(this.lboxApnAccessMode);
     this.grpWatchProperty.Controls.Add(this._appServerList);
 }
開發者ID:lexzh,項目名稱:Myproject,代碼行數:7,代碼來源:JTBWirelessUpgradeCommand.cs

示例3: m2mCancleReport

 public m2mCancleReport(CmdParam.OrderCode OrderCode)
 {
     this.m_SimpleCmd = new SimpleCmd();
     this.m_sTitle = "";
     this.InitializeComponent();
     base.OrderCode = OrderCode;
 }
開發者ID:lexzh,項目名稱:Myproject,代碼行數:7,代碼來源:m2mCancleReport.cs

示例4: m2mSendMsg

 public m2mSendMsg(CmdParam.OrderCode OrderCode, int iMsgType)
 {
     this.m_SimpleCmd = new SimpleCmd();
     this.InitializeComponent();
     base.OrderCode = OrderCode;
     this.m_iMsgType = iMsgType;
 }
開發者ID:lexzh,項目名稱:Myproject,代碼行數:7,代碼來源:m2mSendMsg.cs

示例5: itmRealTimeImage

 public itmRealTimeImage(CmdParam.OrderCode OrderCode)
 {
     InitializeComponent();
     this.lblWatchTimeExplain.Text = string.Concat("(0-", Variable.sNumMaxPicMonitorTime, ")");
     this.numWatchTime.Maximum = decimal.Parse(Variable.sNumMaxPicMonitorTime);
     base.OrderCode = OrderCode;
 }
開發者ID:lexzh,項目名稱:Myproject,代碼行數:7,代碼來源:itmRealTimeImage.cs

示例6: JTBControlTerminalConnectBySMS

 public JTBControlTerminalConnectBySMS(CmdParam.OrderCode OrderCode)
 {
     this.InitializeComponent();
     base.OrderCode = OrderCode;
     this._appServerList = new AutoDropDown(this.lboxApnAccessMode);
     this.grpWatchProperty.Controls.Add(this._appServerList);
 }
開發者ID:lexzh,項目名稱:Myproject,代碼行數:7,代碼來源:JTBControlTerminalConnectBySMS.cs

示例7: m2mShootPhoto

 public m2mShootPhoto(CmdParam.OrderCode OrderCode)
 {
     this.InitializeComponent();
     base.OrderCode = OrderCode;
     this._worker.WorkerReportsProgress = true;
     this._worker.DoWork += new DoWorkEventHandler(this._worker_DoWork);
     this._worker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(this._worker_RunWorkerCompleted);
     this._worker.ProgressChanged += new ProgressChangedEventHandler(this._worker_ProgressChanged);
 }
開發者ID:lexzh,項目名稱:Myproject,代碼行數:9,代碼來源:m2mShootPhoto.cs

示例8: JTBitmSetPlatformPathAlarm

 public JTBitmSetPlatformPathAlarm(CmdParam.OrderCode OrderCode)
 {
     this.InitializeComponent();
     base.OrderCode = OrderCode;
     this._worker.WorkerReportsProgress = true;
     this._worker.DoWork += new DoWorkEventHandler(this._worker_DoWork);
     this._worker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(this._worker_RunWorkerCompleted);
     this._worker.ProgressChanged += new ProgressChangedEventHandler(this._worker_ProgressChanged);
 }
開發者ID:lexzh,項目名稱:Myproject,代碼行數:9,代碼來源:JTBitmSetPlatformPathAlarm.cs

示例9: PlatformcheckRoadSpeedAndRank

 public PlatformcheckRoadSpeedAndRank(CmdParam.OrderCode OrderCode)
 {
     this.InitializeComponent();
     base.OrderCode = OrderCode;
     this._worker.WorkerReportsProgress = true;
     this._worker.DoWork += new DoWorkEventHandler(this._worker_DoWork);
     this._worker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(this._worker_RunWorkerCompleted);
     this._worker.ProgressChanged += new ProgressChangedEventHandler(this._worker_ProgressChanged);
 }
開發者ID:lexzh,項目名稱:Myproject,代碼行數:9,代碼來源:PlatformcheckRoadSpeedAndRank.cs

示例10: JTBitmSetRegionAlarm

 public JTBitmSetRegionAlarm(CmdParam.OrderCode OrderCode)
 {
     this.InitializeComponent();
     base.OrderCode = OrderCode;
     this.dgvArea.NotMultiSelectedColumnName.Add("MainRegion");
     this._worker.WorkerReportsProgress = true;
     this._worker.DoWork += new DoWorkEventHandler(this._worker_DoWork);
     this._worker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(this._worker_RunWorkerCompleted);
     this._worker.ProgressChanged += new ProgressChangedEventHandler(this._worker_ProgressChanged);
 }
開發者ID:lexzh,項目名稱:Myproject,代碼行數:10,代碼來源:JTBitmSetRegionAlarm.cs

示例11: itmSetRegionAlarmEx

 public itmSetRegionAlarmEx(CmdParam.OrderCode OrderCode)
 {
     this.InitializeComponent();
     this.OrderCode = OrderCode;
     this.Text = "批量設置區域報警";
     this._worker.WorkerReportsProgress = true;
     this._worker.DoWork += new DoWorkEventHandler(this._worker_DoWork);
     this._worker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(this._worker_RunWorkerCompleted);
     this._worker.ProgressChanged += new ProgressChangedEventHandler(this._worker_ProgressChanged);
 }
開發者ID:lexzh,項目名稱:Myproject,代碼行數:10,代碼來源:itmSetRegionAlarmEx.cs

示例12: itmCancelRegionAlarm

 public itmCancelRegionAlarm(CmdParam.OrderCode OrderCode, string sTitle)
 {
     this.InitializeComponent();
     base.OrderCode = OrderCode;
     this.m_sTitle = sTitle;
     if ((OrderCode == CmdParam.OrderCode.取消報警區域值) && sTitle.Equals("取消多功能區域報警"))
     {
         this.iRegionFeature = 1;
     }
 }
開發者ID:lexzh,項目名稱:Myproject,代碼行數:10,代碼來源:itmCancelRegionAlarm.cs

示例13: itmCarOverTimeDrive

 public itmCarOverTimeDrive(CmdParam.OrderCode OrderCode)
 {
     this.InitializeComponent();
     base.OrderCode = OrderCode;
     if (WorkBench.SystemID == 1)
     {
         this.lblMinute1.Text = this.lblMinute4.Text = "分";
         this.numDriveTime.Maximum = this.numRestTime.Maximum = 4294967295M;
         this.label1.Visible = this.lblAlarmTime.Visible = this.numAlarmTime.Visible = this.lblMinute2.Visible = this.lblAlarmInterval.Visible = this.numAlarmInterval.Visible = this.lblMinute3.Visible = false;
     }
 }
開發者ID:lexzh,項目名稱:Myproject,代碼行數:11,代碼來源:itmCarOverTimeDrive.cs

示例14: icar_RemoteDial

 public Response icar_RemoteDial(CmdParam.ParamType paramType_0, string string_1, string string_2, CmdParam.CommMode commMode_0, RemoteDial remoteDial_0)
 {
     Response response = new Response();
     base.logMsg.FunctionName = "icar_RemoteDial";
     base.logMsg.Msg = "發送:類型-" + paramType_0.ToString() + ",車輛-" + string_1 + ",指令-" + remoteDial_0.OrderCode.ToString();
     string str = "電話號碼-" + remoteDial_0.strPhone + ",消息-" + remoteDial_0.strMsg;
     base.logMsg.Msg = base.logMsg.Msg + "," + str;
     base.log.WriteLog(base.logMsg);
     if (!base.CheckCar(paramType_0, string_1, string_2))
     {
         response.ErrorMsg = base.alarmMsg.AlarmText = base.ErrorMsg;
         base.log.WriteAlarm(base.alarmMsg);
         return response;
     }
     string strErrorMsg = string.Empty;
     if (remoteDial_0.CheckData(out strErrorMsg) != 0)
     {
         response.ErrorMsg = strErrorMsg;
         return response;
     }
     if (base.isStartCommon())
     {
         foreach (Bussiness.CarInfo info in base.carInfoList)
         {
             try
             {
                 int newOrderId = SendBase.CarCmdSend.GetNewOrderId();
                 base.SaveCmdParm(newOrderId.ToString() + "|" + info.CarId.ToString() + ";");
                 string orderIDParam = response.OrderIDParam;
                 response.OrderIDParam = orderIDParam + newOrderId.ToString() + "|" + info.CarId.ToString() + ";";
                 base.userInfo.DownCommd.AddCarNewLogData(newOrderId, info.CarNum, "發送", remoteDial_0.OrderCode.ToString(), "等待", "", str);
                 response.ResultCode = SendBase.CarCmdSend.icar_RemoteDial(base.WorkId, newOrderId, info.SimNum, remoteDial_0.Phone.ToString(), remoteDial_0.strMsg);
                 if (response.ResultCode != 0L)
                 {
                     base.alarmMsg.FunctionName = "icar_RemoteDial";
                     base.alarmMsg.AlarmText = string.Concat(new object[] { "workid-", base.WorkId, ",simNum-", info.SimNum, ",OrderCode-", remoteDial_0.OrderCode });
                     base.alarmMsg.Code = response.ResultCode.ToString();
                     base.log.WriteAlarm(base.alarmMsg);
                 }
                 response.ResultCode = 0L;
             }
             catch (Exception exception)
             {
                 base.errMsg.ErrorText = "下發消息指令時發生錯誤!";
                 response.ErrorMsg = base.ErrorMsg = base.errMsg.ErrorText;
                 base.log.WriteError(base.errMsg, exception);
             }
         }
         return response;
     }
     response.ErrorMsg = base.ErrorMsg;
     return response;
 }
開發者ID:lexzh,項目名稱:Myproject,代碼行數:53,代碼來源:DownData.cs

示例15: itmStopReport

 public itmStopReport(CmdParam.OrderCode OrderCode)
 {
     this.m_SimpleCmd = new SimpleCmd();
     this.m_CaptureEx = new CaptureEx();
     this.m_TxtMsg = new TxtMsg();
     this.m_SimpleCmd_Listen = new SimpleCmd();
     this.m_AlarmInfo = new TrafficALarmHandle();
     this.m_cmd = new ArrayList();
     this._toPlatformContent = "";
     this.platalarmType = -1;
     this.InitializeComponent();
     base.OrderCode = OrderCode;
 }
開發者ID:lexzh,項目名稱:Myproject,代碼行數:13,代碼來源:itmStopReport.cs


注:本文中的ParamLibrary.Application.CmdParam類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。