/// <summary> /// 获取下一条s by fatherid /// </summary> /// <param name="dt"></param> /// <returns></returns> public List <Model.Synergismlogdt> GetNext(Model.Synergismlogdt dt, ApiService.BLL.BaseOp op) { List <Model.Synergismlogdt> ldt; string where = "fatherid=" + dt.Autoid; ldt = GetModelList(where); return(ldt); }
/// <summary> /// 取首结点 /// 默认首结点为完成 /// </summary> /// <param name="main"></param> /// <returns></returns> public Model.Synergismlogdt GetFrist(Model.Synergismlog main, ApiService.BLL.BaseOp op) { Model.Synergismlogdt detail = new U8.Interface.Bus.ApiService.Model.Synergismlogdt(); detail.Cvouchertype = main.Cvouchertype; detail.Ilineno = 1; detail.Id = main.Id.ToString(); detail.Cstatus = ApiService.DAL.Constant.SynergisnLogDT_Cstatus_Complete; return(detail); }
/// <summary> /// 获取上一条 by faherid /// </summary> /// <param name="dt"></param> /// <returns></returns> public Model.Synergismlogdt GetPrevious(Model.Synergismlogdt dt, ApiService.BLL.BaseOp op) { List <Model.Synergismlogdt> ldt; string where = " autoid=" + dt.Fatherid; ldt = GetModelList(where); if (ldt.Count == 1) { return(ldt[0]); } return(null); }
/// <summary> /// 获取第一条数据byfatherid /// </summary> /// <param name="log"></param> /// <returns></returns> public Model.Synergismlogdt GetFrist(Model.Synergismlog log, ApiService.BLL.BaseOp op) { List <Model.Synergismlogdt> ldt; string where = " fatherid is null and d.id=" + log.Id; ldt = GetModelList(where); if (ldt.Count == 1) { return(ldt[0]); } return(null); }
/// <summary> /// 更新一条数据 /// </summary> public int Update(Model.Synergismlog model, ApiService.BLL.BaseOp op) { return(Update(model)); }
/// <summary> /// /// </summary> /// <param name="dt"></param> /// <returns></returns> public Model.Synergismlog GetModel(string autoid, ApiService.BLL.BaseOp op) { return(GetModel(autoid.ToString())); }
public int Update(Model.Synergismlog log, ApiService.BLL.BaseOp op) { return(op.Update(log)); }
/// <summary> /// 更新到数据库 /// </summary> /// <param name="dt"></param> /// <returns></returns> public int Update(Model.Synergismlogdt dt, ApiService.BLL.BaseOp op) { return(dal.Update(dt)); }