string ssql = "exec furja_2015..jk_zjg_委外原料领用_1 '" + skinWaterTextBox1.Text + "','" + str + GetOrderNO() + "'";
DataSet rows = DBSql.Query(ssql);
fpSpread1.Sheets[0].DataSource = rows;
if (fpSpread1.Sheets[0].RowCount > 0)
{
fpSpread1.Sheets[0].RowCount = rows.Tables[0].Rows.Count + 6;
fpSpread1.Sheets[0].Rows[fpSpread1.Sheets[0].RowCount - 4].Visible = false;
fpSpread1.Sheets[0].Rows[fpSpread1.Sheets[0].RowCount - 2].Locked = true;
SetQty();
FarPoint.Win.Spread.CellType.TextCellType textCellType4 = new FarPoint.Win.Spread.CellType.TextCellType();
fpSpread1.Sheets[0].Rows[fpSpread1.Sheets[0].RowCount-1].CellType = textCellType4;
}
就根据用户输入数据点保存,把数据保存到数据库,然后调用存储过程显示数据,但是数据已经写到了数据库,数据也是正常的 |