public static string[] GetBillParas(string cfile, string ensStrs, Entity en) { string[] paras = Bill_Cash[cfile + "Para"] as string[]; if (paras != null) { return(paras); } paras = Cash.GetBillParas_Gener(cfile, en.EnMap.Attrs); _Bill_Cash[cfile + "Para"] = paras; return(paras); }
public static string[] GetBillParas(string cfile, string ensStrs, Entities ens) { string[] paras = Bill_Cash[cfile + "Para"] as string[]; if (paras != null) { return(paras); } Attrs attrs = new Attrs(); foreach (Entity en in ens) { string perKey = en.ToString(); Attrs enAttrs = en.EnMap.Attrs; foreach (Attr attr in enAttrs) { Attr attrN = new Attr(); attrN.Key = perKey + "." + attr.Key; //attrN.Key = attrN.Key.Replace("\\f2",""); //attrN.Key = attrN.Key.Replace("\\f3", ""); if (attr.IsRefAttr) { attrN.Field = perKey + "." + attr.Key + "Text"; } attrN.MyDataType = attr.MyDataType; attrN.MyFieldType = attr.MyFieldType; attrN.UIBindKey = attr.UIBindKey; attrN.Field = attr.Field; attrs.Add(attrN); } } paras = Cash.GetBillParas_Gener(cfile, attrs); _Bill_Cash[cfile + "Para"] = paras; return(paras); }