public string GetCode() { var code = BusinessObject.CommonUsing() + codeTemplate; code = code.Replace("{流程名称}", GetFlowLogicClassName()); code = code.Replace("{主单转换占位符}", this.MasterConverter.DefaultLocation); code = code.Replace("{主单转换代码}", this.MasterConverter.Code.Code); code = code.Replace("{明细转换占位符}", this.ChildrenConverter.DefaultLocation); code = code.Replace("{明细转换代码}", this.ChildrenConverter.Code.Code); code = code.Replace("{来源主单类型}", this.From.Form); code = code.Replace("{来源主单参数名称}", "来源主单"); code = code.Replace("{目标主单类型}", this.To.Form); code = code.Replace("{目标主单参数名称}", "目标主单"); code = code.Replace("{来源明细类型}", this.ItemsType.FullName); code = code.Replace("{来源明细参数名称}", "来源明细"); code = code.Replace("{目标明细类型}", this.ToItemsType.FullName); code = code.Replace("{目标明细参数名称}", "item"); return(code); }
public static string GetCommonUsing() { return(BusinessObject.CommonUsing()); }