public int CountMoney()
{
if (!DBNull.Value.Equals(Eval("LawyerMoney")) && !DBNull.Value.Equals(Eval("OtherMoney")))
{
int money1 = Convert.ToInt32(Eval("LawyerMoney"));
int money2 = Convert.ToInt32(Eval("OtherMoney"));
return money1 + money2;
}
if (!DBNull.Value.Equals(Eval("LawyerMoney")) && DBNull.Value.Equals(Eval("OtherMoney")))
{
int money1 = Convert.ToInt32(Eval("LawyerMoney"));
return money1;
}
if (DBNull.Value.Equals(Eval("LawyerMoney")) && !DBNull.Value.Equals(Eval("OtherMoney")))
{
int money2 = Convert.ToInt32(Eval("OtherMoney"));
return money2;
}
else
{
return 0;
}
}
DBNull 与 求和方法
免责声明:文章转载自《DBNull 与 求和方法》仅用于学习参考。如对内容有疑问,请及时联系本站处理。
上篇nginx四层代理Spring对外部属性文件指定的某个属性进行加密、解密下篇
宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=