public string update(paibanbiao_detail updateList) { try { us = new UserInfoService(); string quanxian_save1 = us.new_quanxian("upd", "排班明细"); if (quanxian_save1 != null && quanxian_save1.Length > 0 && quanxian_save1 == "是") { } else { return(ResultUtil.error("没有权限!")); } pds = new PaiBanDetailService(); if (pds.update(updateList)) { return(ResultUtil.success("修改成功")); } else { return(ResultUtil.error("修改失败")); } } catch (ErrorUtil err) { return(ResultUtil.fail(401, err.Message)); } catch { return(ResultUtil.error("修改失败")); } }
/// <summary> /// 修改人员信息 /// </summary> /// <param name="orderInfo"></param> /// <returns></returns> public Boolean update(paibanbiao_detail detailList) { return(pbd.update <paibanbiao_detail>(detailList)); }