110,534
社区成员
发帖
与我相关
我的任务
分享
public int Add(Model.FCEngineData model)
{
StringBuilder InsertString = new StringBuilder();
InsertString.Append("insert tbFCEngineData(AircraftFlightRecordID,EngineID,PositionDesc,FCParamterGroupID,ParamterID,ParamterValue)");
InsertString.Append("select " + model.AircraftFlightRecordID + "," + "'" + model.EngineIDleft + "'" + "," + "'" + model.PositionDescleft + "'" + "," + model.FCParamterGroupID + "," + 9 + "," + model.Qygd + " union all ");
InsertString.Append("select " + model.AircraftFlightRecordID + "," + "'" + model.EngineIDleft + "'" + "," + "'" + model.PositionDescleft + "'" + "," + model.FCParamterGroupID + "," + 6 + "," + model.Dqwd + " union all ");
InsertString.Append("select " + model.AircraftFlightRecordID + "," + "'" + model.EngineIDleft + "'" + "," + "'" + model.PositionDescleft + "'" + "," + model.FCParamterGroupID + "," + 5 + "," + model.TemLeft + " union all ");
InsertString.Append("select " + model.AircraftFlightRecordID + "," + "'" + model.EngineIDleft + "'" + "," + "'" + model.PositionDescleft + "'" + "," + model.FCParamterGroupID + "," + 4 + "," + model.RevLeft + " union all ");
InsertString.Append("select " + model.AircraftFlightRecordID + "," + "'" + model.EngineIDleft + "'" + "," + "'" + model.PositionDescleft + "'" + "," + model.FCParamterGroupID + "," + 18 + "," + model.MaxtemLeft + " union all ");
InsertString.Append("select " + model.AircraftFlightRecordID + "," + "'" + model.EngineIDleft + "'" + "," + "'" + model.PositionDescleft + "'" + "," + model.FCParamterGroupID + "," + 17 + "," + model.MaxrevLeft + " union all ");
InsertString.Append("select " + model.AircraftFlightRecordID + "," + "'" + model.EngineIDright + "'" + "," + "'" + model.PositionDescright + "'" + "," + model.FCParamterGroupID + "," + 9 + "," + model.Qygd + " union all ");
InsertString.Append("select " + model.AircraftFlightRecordID + "," + "'" + model.EngineIDright + "'" + "," + "'" + model.PositionDescright + "'" + "," + model.FCParamterGroupID + "," + 6 + "," + model.Dqwd + " union all ");
InsertString.Append("select " + model.AircraftFlightRecordID + "," + "'" + model.EngineIDright + "'" + "," + "'" + model.PositionDescright + "'" + "," + model.FCParamterGroupID + "," + 5 + "," + model.TemRight + " union all ");
InsertString.Append("select " + model.AircraftFlightRecordID + "," + "'" + model.EngineIDright + "'" + "," + "'" + model.PositionDescright + "'" + "," + model.FCParamterGroupID + "," + 4 + "," + model.RevRight + " union all ");
InsertString.Append("select " + model.AircraftFlightRecordID + "," + "'" + model.EngineIDright + "'" + "," + "'" + model.PositionDescright + "'" + "," + model.FCParamterGroupID + "," + 18 + "," + model.MaxtemRight + " union all ");
InsertString.Append("select " + model.AircraftFlightRecordID + "," + "'" + model.EngineIDright + "'" + "," + "'" + model.PositionDescright + "'" + "," + model.FCParamterGroupID + "," + 17 + "," + model.MaxrevRight );
string sql = InsertString.ToString();
int count = DbHelperSQL.ExecuteSql(sql);
return count;
}