本文整理汇总了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;
}
示例2: JTBWirelessUpgradeCommand
public JTBWirelessUpgradeCommand(CmdParam.OrderCode OrderCode)
{
this.InitializeComponent();
base.OrderCode = OrderCode;
this._appServerList = new AutoDropDown(this.lboxApnAccessMode);
this.grpWatchProperty.Controls.Add(this._appServerList);
}
示例3: m2mCancleReport
public m2mCancleReport(CmdParam.OrderCode OrderCode)
{
this.m_SimpleCmd = new SimpleCmd();
this.m_sTitle = "";
this.InitializeComponent();
base.OrderCode = OrderCode;
}
示例4: m2mSendMsg
public m2mSendMsg(CmdParam.OrderCode OrderCode, int iMsgType)
{
this.m_SimpleCmd = new SimpleCmd();
this.InitializeComponent();
base.OrderCode = OrderCode;
this.m_iMsgType = iMsgType;
}
示例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;
}
示例6: JTBControlTerminalConnectBySMS
public JTBControlTerminalConnectBySMS(CmdParam.OrderCode OrderCode)
{
this.InitializeComponent();
base.OrderCode = OrderCode;
this._appServerList = new AutoDropDown(this.lboxApnAccessMode);
this.grpWatchProperty.Controls.Add(this._appServerList);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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;
}
}
示例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;
}
}
示例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;
}
示例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;
}