예제 #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);
        }
예제 #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);
 }
예제 #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);
        }
예제 #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);
        }
예제 #5
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public int Update(Model.Synergismlog model, ApiService.BLL.BaseOp op)
 {
     return(Update(model));
 }
예제 #6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="dt"></param>
 /// <returns></returns>
 public Model.Synergismlog GetModel(string autoid, ApiService.BLL.BaseOp op)
 {
     return(GetModel(autoid.ToString()));
 }
예제 #7
0
파일: TaskMain.cs 프로젝트: fightx/U8
 public int Update(Model.Synergismlog log, ApiService.BLL.BaseOp op)
 {
     return(op.Update(log));
 }
예제 #8
0
 /// <summary>
 /// 更新到数据库
 /// </summary>
 /// <param name="dt"></param>
 /// <returns></returns>
 public int Update(Model.Synergismlogdt dt, ApiService.BLL.BaseOp op)
 {
     return(dal.Update(dt));
 }