[AjaxPro.AjaxMethod]
public int getTimeHH(string cardID)
{
int result = 0;
DataSet ds = bll.getTimeHH(cardID);
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
{
result += Convert.ToInt32(ds.Tables[0].Rows[i]["服务时间"].ToString());
}
return result;
}
[AjaxPro.AjaxMethod]
public int getTimeHH(int teamID,string cardID)
{
int result = 0;
DataSet ds = bll.getTimeHH(teamID,cardID);
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
{
result += Convert.ToInt32(ds.Tables[0].Rows[i]["服务时间"].ToString());
}
return result;
}
js代码:function a()
{
var a=VoluntaryDemo.VoluntaryInfo.getTimeHH(ds.Tables[0].Rows[i].CCardNo).value;
}
原文链接:https://www.f2er.com/ajax/166065.html