/// <summary> /// 保存设备通讯信息 /// </summary> /// <param name="deviceName"></param> /// <param name="com"></param> /// <param name="intUsed"></param> /// <param name="Param"></param> /// <returns></returns> public bool SaveDeviceComInfo(string deviceName, string com = null, string intUsed = null, string Param = null) { if (com == null && intUsed == null && Param == null) { return(true); } DTDeviceInfo dt = new DTDeviceInfo(); dt.Name.Value = deviceName; DTDeviceInfo dtafter = new DTDeviceInfo(); if (com != null) { dtafter.Commuunication.Value = com; } if (intUsed != null) { dtafter.Used.Value = Convert.ToInt32(intUsed); } if (Param != null) { dtafter.Param.Value = Param; } bool rs = _DataServer.UpdateResult(dtafter, dt); return(rs); }