Ejemplo n.º 1
0
        /// <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);
        }
Ejemplo n.º 2
0
 /// <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);
 }
Ejemplo n.º 3
0
        /// <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);
        }
Ejemplo n.º 4
0
        /// <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);
        }
Ejemplo n.º 5
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public int Update(Model.Synergismlog model, ApiService.BLL.BaseOp op)
 {
     return(Update(model));
 }
Ejemplo n.º 6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="dt"></param>
 /// <returns></returns>
 public Model.Synergismlog GetModel(string autoid, ApiService.BLL.BaseOp op)
 {
     return(GetModel(autoid.ToString()));
 }
Ejemplo n.º 7
0
 public int Update(Model.Synergismlog log, ApiService.BLL.BaseOp op)
 {
     return(op.Update(log));
 }
Ejemplo n.º 8
0
 /// <summary>
 /// 更新到数据库
 /// </summary>
 /// <param name="dt"></param>
 /// <returns></returns>
 public int Update(Model.Synergismlogdt dt, ApiService.BLL.BaseOp op)
 {
     return(dal.Update(dt));
 }