多人员生成表单
作者:互联网
//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(); } }
标签:string,H3,表单,Request,sponsorTargetBo,人员,jobtargetBo,生成,Empty 来源: https://www.cnblogs.com/FaustDream/p/16263955.html