public FileOutQueryResultItem(ThrPartyDBParamterExOut param, string sourceName, bool redundancyFlag) { RedundancyFlag = redundancyFlag; TargetField = param.FieldName; SourceField = sourceName; _paramter = param; }
public static string BuildOutFieldFileName(ThrPartyDBParamterExOut param) { if (_FileOutAdapterConfig == null) { throw new Exception("System cannot initialized!"); } string sFilePath = param.FileFieldParam.FilePath; string sFilePrefix = param.FileFieldParam.FilePrefix; string sFileSuffix = param.FileFieldParam.FileSuffix; string sDatetime = DateTime.Now.ToString(param.FileFieldParam.FileDtFormat); if (sFilePath.Trim() == "") { sFilePath = Application.StartupPath + "\\fielddata\\"; } if (!Directory.Exists(sFilePath)) { Directory.CreateDirectory(sFilePath); } sFilePath = sFilePath.Trim(); if (sFilePath.Substring(sFilePath.Length - 1, 1) != "\\") { sFilePath = sFilePath + "\\"; } if (sFilePrefix.Trim().ToUpper() == ("[%FieldName%]").ToUpper()) { sFilePrefix = param.FieldName; } if (sFileSuffix.IndexOf(".") < 0) { sFileSuffix = "." + sFileSuffix; } string sFileName; for (int i = 0; i < Int32.MaxValue; i++) { if (i == 0) { sFileName = sFilePath + sFilePrefix + sDatetime + sFileSuffix; } else { sFileName = sFilePath + sFilePrefix + sDatetime + i.ToString() + sFileSuffix; } if (!File.Exists(sFileName)) { return(sFileName); } } throw new Exception("Cannot build outfilename, extract out int32.maxvalue!"); }
public FileOutQueryResultItem(ThrPartyDBParamterExOut param, GWDataDBField sourceField) { TargetField = param.FieldName; SourceField = sourceField.GetFullFieldName(); GWDataDBField = sourceField; _paramter = param; }
public FileOutQueryResultItem(GWDataDBField targetfield, ThrPartyDBParamterExOut param) { TargetField = targetfield.GetFullFieldName(); SourceField = param.FieldName; GWDataDBField = targetfield; _paramter = param; }
public FileOutQueryResultItem(ThrPartyDBParamterExOut param, GWDataDBField sourceField, bool redundancyFlag) { RedundancyFlag = redundancyFlag; TargetField = param.FieldName; SourceField = sourceField.GetFullFieldName(); GWDataDBField = sourceField; _paramter = param; }
new public ThrPartyDBParamterExOut Clone() { ThrPartyDBParamterExOut pex = new ThrPartyDBParamterExOut(); base.Clone(pex); pex.FileFieldFlag = this.FileFieldFlag; pex.FileFieldParam = this.FileFieldParam.Clone(); pex.FileFieldTemplate = this.FileFieldTemplate; foreach (GWDataDBField f in this.FileFields) { pex.FileFields.Add(f); } return(pex); }
public FileOutQueryResultItem(ThrPartyDBParamterExOut param, string sourceName) { TargetField = param.FieldName; SourceField = sourceName; _paramter = param; }
public FileOutQueryResultItem(string targetName, ThrPartyDBParamterExOut param) { TargetField = targetName; SourceField = param.FieldName; _paramter = param; }