private void SetOrderValue(Order order) { //参数名必须和列大、小写一致 orderSqlInfo.ResetDbParamValue(); orderSqlInfo.SetDbParamValue("ID", order.ID); orderSqlInfo.SetDbParamValue("CPXH", order.cpxh); orderSqlInfo.SetDbParamValue("DDH", order.ddh); orderSqlInfo.SetDbParamValue("ACInput", order.acinput); orderSqlInfo.SetDbParamValue("PFileName", order.pfilename); orderSqlInfo.SetDbParamValue("YJPZCSM", order.YJPZCSM); orderSqlInfo.SetDbParamValue("User", order.user); orderSqlInfo.SetDbParamValue("ParamContent", order.paramcontent); orderSqlInfo.SetDbParamValue("StartTime", order.starttime); orderSqlInfo.SetDbParamValue("EndTime", order.endtime); }
private void SetOrderDataValue(OrderData file) { orderDataSqlInfo.ResetDbParamValue(); orderDataSqlInfo.SetDbParamValue("ID", file.OrderID); orderDataSqlInfo.SetDbParamValue("OrderID", file.OrderID); orderDataSqlInfo.SetDbParamValue("TC", file.TC); orderDataSqlInfo.SetDbParamValue("Layer", file.Layer); orderDataSqlInfo.SetDbParamValue("UUTCode", file.UUTCode); orderDataSqlInfo.SetDbParamValue("Time", file.Time); orderDataSqlInfo.SetDbParamValue("Content", file.Content); orderDataSqlInfo.SetDbParamValue("SysTime", file.SysTime); }