public void Start() { DataConvert EDI = E_EDI(); //文件拼接 string fileData = EDI.file_sb.ToString(); //脚本拼接 string sql = EDI.upLinks_sql.ToString(); if (string.IsNullOrEmpty(sql)) { MainFile.WriteFile_(filePath, fileName, fileData); return; } SqlCommand cmd = SQLHelper.GetTransactionSqlCommand(connStr); SQLHelper.ExecuteNonQuery(ref cmd, sql); if (MainFile.WriteFile_(filePath, fileName, fileData)) { cmd.Transaction.Commit(); } else { cmd.Transaction.Rollback(); } cmd.Connection.Close(); }
public void Start() { DataConvert SalesForce = S_SalesForce(); //文件拼接 string fileData = SalesForce.file_sb.ToString(); MainFile.WriteFile_(filePath, fileName, fileData); // return; }