DocumentDestructor() { m_doc.Close(); m_doc.Dispose(); m_doc = null; m_vehInfo = null; m_asm = null; m_sds = null; m_ld = null; m_zyjs = null; m_docReady = false; m_obd = null; m_dev = null; }
InitData(string JCLSH, string connectionString = null) { RESULT_VEHICLE_INFO_BLL bllVehicleInfo = new RESULT_VEHICLE_INFO_BLL(); m_vehInfo = bllVehicleInfo.GetModel(JCLSH); INSPECTION_DEV_REG_INFO_BLL bllDev = new INSPECTION_DEV_REG_INFO_BLL(); var arrDevs = bllDev.GetModelList(string.Format(" JCXH = '{0}' ", m_vehInfo.JCXH)); m_dev = new List <INSPECTION_DEV_REG_INFO>(); foreach (var dev in arrDevs) { m_dev.Add(dev); } RESULT_OBD_BLL bllOBD = new RESULT_OBD_BLL(); RESULT_OBD[] obds = bllOBD.GetModelList("JCLSH='{0}'".FormatWith(JCLSH)); if (obds.Length > 0) { m_obd = obds[0]; } else { m_obd = null; } if (m_vehInfo.RLLBDH == "A" || m_vehInfo.RLLBDH == "E") { if (m_vehInfo.JYXM.Contains("X2")) { RESULT_ASM_BLL bllASM = new RESULT_ASM_BLL(); m_asm = bllASM.GetModel(JCLSH); } if (m_vehInfo.JYXM.Contains("X1")) { RESULT_SDS_BLL bllSDS = new RESULT_SDS_BLL(); m_sds = bllSDS.GetModel(JCLSH); } if (m_vehInfo.JYXM.Contains("X3")) { RESULT_VMAS_BLL bllVMAS = new RESULT_VMAS_BLL(); m_vmas = bllVMAS.GetModel(JCLSH); } m_ld = null; m_zyjs = null; } else if (m_vehInfo.RLLBDH == "B") { if (m_vehInfo.JYXM.Contains("X4")) { RESULT_LD_BLL bllLD = new RESULT_LD_BLL(); m_ld = bllLD.GetModel(JCLSH); } if (m_vehInfo.JYXM.Contains("X5")) { RESULT_ZYJS_BLL bllZYJS = new RESULT_ZYJS_BLL(); m_zyjs = bllZYJS.GetModel(JCLSH); } m_asm = null; m_sds = null; m_vmas = null; } }
/// <summary> /// 修改一条数据 SQL /// </summary> public string UpdateSQL(RESULT_LD model, string strJCLSH) { return(g_DAL.UpdateSQL(model, strJCLSH)); }
/// <summary> /// 添加一条数据 SQL /// </summary> public string InsertSQL(RESULT_LD model) { return(g_DAL.InsertSQL(model)); }
/// <summary> /// 添加一条数据 /// </summary> public bool Insert(RESULT_LD model) { return(g_DAL.Insert(model)); }
/// <summary> /// 修改全部数据 /// </summary> public bool UpdateAll(RESULT_LD model) { return(g_DAL.UpdateAll(model)); }
/// <summary> /// 修改全部数据 SQL /// </summary> public string UpdateAllSQL(RESULT_LD model) { return(g_DAL.UpdateAllSQL(model)); }
/// <summary> /// 修改一个集合 /// </summary> public bool UpdateRange(RESULT_LD model, string p_strWhere) { return(g_DAL.UpdateRange(model, p_strWhere)); }
/// <summary> /// 修改一个集合 SQL /// </summary> public string UpdateRangeSQL(RESULT_LD model, string p_strWhere) { return(g_DAL.UpdateRangeSQL(model, p_strWhere)); }
/// <summary> /// 修改一条数据 /// </summary> public bool Update(RESULT_LD model, string strJCLSH) { return(g_DAL.Update(model, strJCLSH)); }