public void Created() { var models = CaptionHelper.ApplicationModel.BOModel; var f = models.GetClass(ReflectionHelper.FindType(From.Form)); // (From as FlowChartFormNode).ModelClass; var t = models.GetClass(ReflectionHelper.FindType(To.Form)); // (To as FlowChartFormNode).ModelClass; var sb = new StringBuilder(); GenerateForm(f, t, sb, "来源主单", "目标主单"); MasterConverter = new MasterConverter(Session); MasterConverter.FlowAction = this; MasterConverter.称 = f.Caption + "TO" + t.Caption; MasterConverter.CodeName = MasterConverter.称; MasterConverter.SetCode(sb.ToString()); sb.Clear(); f = models.GetClass(ItemsType); t = models.GetClass(ToItemsType); GenerateForm(f, t, sb, "来源明细", "item"); ChildrenConverter = new ChildrenConverter(Session); ChildrenConverter.FlowAction = this; ChildrenConverter.称 = f.Caption + "TO" + t.Caption; ChildrenConverter.CodeName = ChildrenConverter.称; ChildrenConverter.SetCode(sb.ToString()); //SetCode(code); }
public void Created() { var models = CaptionHelper.ApplicationModel.BOModel; var f = models.GetClass(ReflectionHelper.FindType(From.Form));// (From as FlowChartFormNode).ModelClass; var t = models.GetClass(ReflectionHelper.FindType(To.Form));// (To as FlowChartFormNode).ModelClass; var sb = new StringBuilder(); GenerateForm(f, t, sb, "来源主单", "目标主单"); MasterConverter = new MasterConverter(Session); MasterConverter.FlowAction = this; MasterConverter.名称 = f.Caption + "TO" + t.Caption; MasterConverter.CodeName = MasterConverter.名称; MasterConverter.SetCode(sb.ToString()); sb.Clear(); f = models.GetClass(ItemsType); t = models.GetClass(ToItemsType); GenerateForm(f, t, sb, "来源明细", "item"); ChildrenConverter = new ChildrenConverter(Session); ChildrenConverter.FlowAction = this; ChildrenConverter.名称 = f.Caption + "TO" + t.Caption; ChildrenConverter.CodeName = ChildrenConverter.名称; ChildrenConverter.SetCode(sb.ToString()); //SetCode(code); }