con.Open();
str = "select MAX(flowstep) as fs from [treat] where usernum='" + lsusernum + " '";
OleDbCommand cmd = new OleDbCommand(str, con);
OleDbDataReader dr = cmd.ExecuteReader();
dr.Read();
lsfs = dr["fs"].ToString();
if (lsfs.Length !=0)
{
lsflowstep = Convert.ToInt32(lsfs)+1;
}
else
{
lsflowstep = 1;
}
dr.Close();
con.Close();
str = "select MAX(flowstep) as fs from [treat] where usernum='" + lsusernum + " '";
OleDbCommand cmd = new OleDbCommand(str, con);
OleDbDataReader dr = cmd.ExecuteReader();
dr.Read();
lsfs = dr["fs"].ToString();
if (lsfs.Length !=0)
{
lsflowstep = Convert.ToInt32(lsfs)+1;
}
else
{
lsflowstep = 1;
}
dr.Close();
con.Close();
浙公网安备 33010602011771号