public Document(string id, string namedb, string speed, string opr, string spo, string sdivision, string spfname) { ID = id; SPFNUM = sdivision; SPEED_FL = speed.Trim(); OPR_TYPE = opr.Trim(); SPO_TYPE = spo; SPF = spfname.Replace("\"", "").Replace("\\", "").Replace("/", "").Replace("<", "").Replace(">", "").Replace("*", "").Replace("?", "").Replace(":", "").Replace("|", ""); NameDB = namedb.Replace("\"", "").Replace("\\", "").Replace("/", "").Replace("<", "").Replace(">", "").Replace("*", "").Replace("?", "").Replace(":", "").Replace("|", ""); int i = NameDB.LastIndexOf('.'); if (i > 0) { NameHF = SPF + "_" + ID + NameDB.Substring(NameDB.LastIndexOf('.')); } else { NameHF = SPF + "_" + ID; } NameXML = SPF + "_" + ID + ".xml"; AnnexPages = new List <Annex>(); Swift = new List <Swift>(); SwiftLists = new List <SwiftList>(); }
public Annex(string id, string parent_id, string namedb, string SPF) { ID = id; PID = parent_id; NameDB = namedb.Replace("\"", "").Replace("\\", "").Replace("/", "").Replace("<", "").Replace(">", "").Replace("*", "").Replace("?", "").Replace(":", "").Replace("|", ""); int i = NameDB.LastIndexOf('.'); if (i > 0) { NameHF = SPF + "_" + PID + "_" + ID + NameDB.Substring(NameDB.LastIndexOf('.')); } else { NameHF = SPF + "_" + PID + "_" + ID; } }