//load写在submit后面
if(actionName == "Submit" && this.Request.ActivityCode == "Activity2") { H3.DataModel.BizObjectSchema jobschema = this.Request.Engine.BizObjectManager.GetPublishedSchema("D002033Snpy2feo624mk2vpb0g4b5wpn5"); H3.DataModel.BizObject sponsorTargetBo = H3.DataModel.BizObject.Load(this.Request.UserContext.UserId, this.Engine, this.Request.SchemaCode, this.Request.BizObjectId, false); string[] exectuors = (string[]) sponsorTargetBo["exectuors"];//将多人元控件保存为数组 foreach(string exectuor in exectuors) { H3.DataModel.BizObject jobtargetBo = new H3.DataModel.BizObject(this.Engine, jobschema, this.Request.UserContext.UserId); jobtargetBo["startTime"] = sponsorTargetBo["startTime"] + string.Empty; jobtargetBo["type"] = sponsorTargetBo["type"] + string.Empty; jobtargetBo["reportTime"] = sponsorTargetBo["reportTime"] + string.Empty; jobtargetBo["executeDepartment"] = sponsorTargetBo.OwnerDeptId; jobtargetBo.OwnerId = exectuor + string.Empty; jobtargetBo["joinTaskSuperviseType"] = sponsorTargetBo["joinTaskSuperviseType"] + string.Empty; jobtargetBo["performance"] = sponsorTargetBo["F0000001"] + string.Empty; jobtargetBo["cycle"] = sponsorTargetBo["cycle"] + string.Empty; jobtargetBo["joinStartWorkReport"] = sponsorTargetBo.ObjectId + string.Empty; jobtargetBo["TaskSupervisePerson"] = sponsorTargetBo["auditor"] + string.Empty; jobtargetBo["nextPlan"] = sponsorTargetBo["overviewofworkPlan"] + string.Empty; jobtargetBo.Create(); } }