コード例 #1
0
        public IActionResult Index(int pid)
        {
            var v = new Models.p41PreviewViewModel();

            v.Rec = Factory.p41TaskBL.Load(pid);
            if (v.Rec == null)
            {
                return(RecNotFound(v));
            }
            else
            {
                var tg = Factory.o51TagBL.GetTagging("p41", pid);
                v.Rec.TagHtml = tg.TagHtml;
                if (v.Rec.p52ID > 0)
                {
                    v.RecP52 = Factory.p52OrderItemBL.Load(v.Rec.p52ID);
                    v.RecP51 = Factory.p51OrderBL.Load(v.RecP52.p51ID);
                }

                if (v.Rec.p41SuccessorID > 0)
                {
                    v.RecSuccessor = Factory.p41TaskBL.Load(v.Rec.p41SuccessorID);
                }
                v.RecPredecessor = Factory.p41TaskBL.LoadSuccessor(pid);


                return(View(v));
            }
        }
コード例 #2
0
        public IActionResult p45List(int pid)
        {
            var v = new Models.p41PreviewViewModel();

            v.Rec = Factory.p41TaskBL.Load(pid);
            if (v.Rec == null)
            {
                return(RecNotFound(v));
            }
            else
            {
                return(View(v));
            }
        }