62,046
社区成员
发帖
与我相关
我的任务
分享
protected int ReadSFMS(string xxdm)
{
SqlParameter[] para = {
new SqlParameter("@xx_dm",SqlDbType.Char,5)
};
para[0].Value = xxdm;
if (xxdm.Trim() != "")
{
try
{
MyAcc.RunProcForDataReader("Pre_School_Search", para, out MyRead);
if (MyRead.Read())
{
if (MyRead["qr_end_t"].ToString().Trim() != "")
{
return 2;//不需要面试
}
else
{
return 1;//需要面试
}
}
else
{
return 1;
}
}
catch (Exception err)
{
MyAcc.Show(err.Message);
}
finally
{
MyRead.Close();
}
}
else
{
return 1;
}
}
public int ReadSFMS()
{
int result=0;
if(false)
{
result=1;
}
else
{
if(true)
{
result=2;
}
else
{
result=3;
}
}
return result;
}