示例#1
0
        public ActionResult UpDownMethod(int udg_id)
        {
            UpDownMethodModel  upDM             = new UpDownMethodModel();
            UpDownGroup        upDownGroup      = dbDrive.GetDownGroup(udg_id);
            UpDownExperiment   upDownExperiment = dbDrive.GetUpDownExperiment(upDownGroup.dudt_ExperimentId);
            List <UpDownGroup> upDownGroups     = dbDrive.GetUpDownGroups(upDownExperiment.id);
            var lr = LiftingPublic.SelectState(upDownExperiment);

            upDM.id                    = udg_id;
            upDM.ExperimentalId        = upDownGroup.dudt_ExperimentId;
            upDM.ExperimentalLabelName = lr.DistributionNameAndMethodStandardName();
            upDM.ProductName           = upDownExperiment.udt_ProdectName;
            upDM.Groupingstate         = upDownExperiment.udt_Groupingstate == 0 ? "不分组" : "多组试验";
            upDM.IsLastGroup           = upDownGroups[0].Id == udg_id ? true : false;
            int count = 0;

            for (int i = 0; i < upDownGroups.Count; i++)
            {
                count++;
                if (upDownGroups[i].Id == udg_id)
                {
                    break;
                }
            }
            upDM.GroupNumber = count;
            return(View(upDM));
        }