/// <summary> /// 新增一条记录 /// </summary> /// <param name="qcRecord">质检实体</param> /// <returns></returns> public static bool InsertOneQCRecord(ManagementStrategyRecord qcRecord) { bool rbool = true; using (DCCarManagementDataContext db = new DCCarManagementDataContext()) { try { rbool = LinQBaseDao.InsertOne(db, qcRecord); } catch { rbool = false; } finally { db.Connection.Close(); } } return(rbool); }
/// <summary> /// 添加一条数据 /// </summary> /// <param name="pLED">LED实体</param> /// <returns>返回执行结果 true or false</returns> public static bool InsertVoiceCalls(VoiceCalls vc) { bool rbool = false; using (DCCarManagementDataContext dc = new DCCarManagementDataContext()) { try { rbool = LinQBaseDao.InsertOne <VoiceCalls>(dc, vc); } catch { rbool = false; } finally { dc.Connection.Close(); } } return(rbool); }
/// <summary> /// 添加 /// </summary> /// <param name="pr">实体</param> /// <returns>返回执行结果 true or false</returns> public static bool InsertPrint(PrintRecord pr) { bool rbool = false; using (DCCarManagementDataContext dc = new DCCarManagementDataContext()) { try { rbool = LinQBaseDao.InsertOne <PrintRecord>(dc, pr); } catch { rbool = false; } finally { dc.Connection.Close(); } } return(rbool); }
/// <summary> /// 添加一条数据 /// </summary> /// <param name="pLED">LED实体</param> /// <returns>返回执行结果 true or false</returns> public static bool InsertPositionVoice(PositionVoice pv) { bool rbool = false; using (DCCarManagementDataContext dc = new DCCarManagementDataContext()) { try { rbool = LinQBaseDao.InsertOne <PositionVoice>(dc, pv); } catch { rbool = false; } finally { dc.Connection.Close(); } } return(rbool); }
/// <summary> /// 新增一条记录 /// </summary> /// <param name="qcRecord">质检实体</param> /// <returns></returns> public static bool InsertOneDevice(DeviceControl dcl) { bool rbool = true; using (DCCarManagementDataContext db = new DCCarManagementDataContext()) { try { rbool = LinQBaseDao.InsertOne(db, dcl); } catch { rbool = false; } finally { db.Connection.Close(); } } return(rbool); }
/// <summary> /// 新增一条记录 /// </summary> /// <param name="qcRecord">实体</param> /// <returns></returns> public static bool InsertOneLogInfo(LogInfo loginfo) { bool rbool = true; using (DCCarManagementDataContext db = new DCCarManagementDataContext()) { try { rbool = LinQBaseDao.InsertOne(db, loginfo); } catch { rbool = false; } finally { db.Connection.Close(); } } return(rbool); }
/// <summary> /// 新增一条质检记录 /// </summary> /// <param name="qcRecord">质检实体</param> /// <returns></returns> public static bool InsertOneCamera(WeighInfo eh_Fvn) { bool rbool = true; using (DCCarManagementDataContext db = new DCCarManagementDataContext()) { try { rbool = LinQBaseDao.InsertOne(db, eh_Fvn); } catch { rbool = false; } finally { db.Connection.Close(); } } return(rbool); }
/// <summary> /// 新增一条记录 /// </summary> /// <param name="qcRecord">质检实体</param> /// <returns></returns> public static bool InsertOneICCardType(ICCardType qcICCardType) { bool rbool = true; using (DCCarManagementDataContext db = new DCCarManagementDataContext()) { try { rbool = LinQBaseDao.InsertOne(db, qcICCardType); } catch { rbool = false; } finally { db.Connection.Close(); } } return(rbool); }
/// <summary> /// 添加一条LED信息 /// </summary> /// <param name="pLED">LED实体</param> /// <returns>返回执行结果 true or false</returns> public static bool InsertPositionLED(PositionLED pLED) { bool rbool = true; using (DCCarManagementDataContext db = new DCCarManagementDataContext()) { try { rbool = LinQBaseDao.InsertOne(db, pLED); } catch { rbool = false; } finally { db.Connection.Close(); } } return(rbool); }
public static bool InsertOneQCRecord(MenuType qcRecord, out int rint) { rint = 0; bool rbool = true; using (DCCarManagementDataContext db = new DCCarManagementDataContext()) { try { rbool = LinQBaseDao.InsertOne(db, qcRecord); rint = db.UserInfo.Max(p => p.UserId); } catch { rbool = false; } finally { db.Connection.Close(); } } return(rbool); }
/// <summary> /// 新增一条质检记录 /// </summary> /// <param name="qcRecord">用户实体</param> /// /// <param name="rint">新增后自动增长编号</param> /// <returns></returns> public static bool InsertOneQCRecord(DrivewayStrategyRecord qcRecord, out int rint) { rint = 0; bool rbool = true; using (DCCarManagementDataContext db = new DCCarManagementDataContext()) { try { rbool = LinQBaseDao.InsertOne(db, qcRecord); rint = db.DrivewayStrategyRecord.Max(p => p.DrivewayStrategyRecord_ID); } catch { rbool = false; } finally { db.Connection.Close(); } } return(rbool); }
/// <summary> /// 添加一条LED信息 /// </summary> /// <param name="pLED">LED实体</param> /// <returns>返回执行结果 true or false</returns> public static bool InsertUnusualRecord(UnusualRecord pLED) { return(LinQBaseDao.InsertOne <UnusualRecord>(dc, pLED)); }