using System; using System.Collections.Generic; using System.Data; using System.Data.OracleClient; using WX.CRM.Common; namespace WX.CRM.DAL.Util { public class GGImport_DAL { public void UpdateData(ref ValidationErrors erros, decimal importId, string tableName) { try { var param = new List { new OracleParameter() { ParameterName = "v_importId", OracleType = OracleType.Number, Value =importId }, new OracleParameter() { ParameterName = "v_tableName",OracleType=OracleType.NVarChar, Value =tableName }, }; OracleHelper.ExecuteNonQuery(CommandType.StoredProcedure, "PACK_GG_IMPORT.import_updateData_sync", param.ToArray()); } catch (Exception ex) { erros.Add("----" + tableName + "生成业务数据出现错误:" + ex.ToString()); } } public void GG_AllPosition_cumpute(DateTime tradingDay) { try { var param = new List { new OracleParameter() { ParameterName = "v_tradingDay",OracleType=OracleType.DateTime, Value =tradingDay }, }; OracleHelper.ExecuteNonQuery(CommandType.StoredProcedure, "PACK_GG_IMPORT.GG_AllPosition_cumpute", param.ToArray()); } catch (Exception ex) { LogHelper.Error("建仓和平仓单 计算生成业务数据失败!" + ex.ToString()); } } } }