ASPxGridView和Linq常用总结(2)(4)
catch (System.Exception ex)
{
return ex.Message;
}
}
[Ajax.AjaxMethod(Ajax.HttpSessionStateRequirement.Read)]
public string EidtDriver(int iDriverID, string sDriverName,string dFristLicenseDate)
{
try
{
Tb_Driver objDriver = linqData.Tb_Driver.SingleOrDefault(p => p.DriverID == iDriverID);
if (objDriver != null)
{
objDriver.DriverName = sDriverName;
objDriver.SFZH = sSFZH;
if (dFristLicenseDate != "")
{
objDriver.FristLicenseDate = Convert.ToDateTime(dFristLicenseDate);
}
linqData.SubmitChanges();
return "成功";
}
else
{
return "编辑失败,模块信息不存在!";
}
}
相关新闻>>
- 发表评论
-
- 最新评论 更多>>