public static int Update(DEVICE_STATUS_CLEAN parameterObject, string tableName) { Hashtable inparam = new Hashtable(); if (parameterObject != null) { if (parameterObject.aDatetime != null) { inparam.Add("aDatetime", parameterObject.aDatetime); } if (parameterObject.GPSIndex != null) { inparam.Add("GPSIndex", parameterObject.GPSIndex); } if (parameterObject.Height != null) { inparam.Add("Height", parameterObject.Height); } if (parameterObject.Hspeed != null) { inparam.Add("Hspeed", parameterObject.Hspeed); } if (parameterObject.Style != null) { inparam.Add("Style", parameterObject.Style); } if (parameterObject.X != null) { inparam.Add("X", parameterObject.X); } if (parameterObject.XSpeed != null) { inparam.Add("XSpeed", parameterObject.XSpeed); } if (parameterObject.Y != null) { inparam.Add("Y", parameterObject.Y); } if (parameterObject.YSpeed != null) { inparam.Add("YSpeed", parameterObject.YSpeed); } } inparam.Add("tableName", tableName); return(BaseDA.Update2("UpdateDEVICE_STATUS_CLEAN", inparam)); }
public static int Update(DEVICE_STATUS parameterObject, string tableName) { Hashtable inparam = new Hashtable(); if (parameterObject != null) { if (parameterObject.aDatetime != null) { inparam.Add("aDatetime", parameterObject.aDatetime); } if (parameterObject.dltaH != null) { inparam.Add("dltaH", parameterObject.dltaH); } if (parameterObject.dltaX != null) { inparam.Add("dltaX", parameterObject.dltaX); } if (parameterObject.dltaY != null) { inparam.Add("dltaY", parameterObject.dltaY); } if (parameterObject.GPSIndex != null) { inparam.Add("GPSIndex", parameterObject.GPSIndex); } if (parameterObject.Height != null) { inparam.Add("Height", parameterObject.Height); } if (parameterObject.X != null) { inparam.Add("X", parameterObject.X); } if (parameterObject.Y != null) { inparam.Add("Y", parameterObject.Y); } } inparam.Add("tableName", tableName); return(BaseDA.Update2("UpdateDEVICE_STATUS", inparam)); }