예제 #1
0
파일: BuSchedule.cs 프로젝트: qq5013/JXNG
 public int Insert(BaseEntitie ent, IDbTransaction TRANS)
 {
     StringBuilder insSQL = new StringBuilder(" Insert Into BuSchedule (");
     bool isFirstValue = true;
     StringBuilder sp = new StringBuilder();
     ColumnCollection _column = ent.Column;
     for (int i = 0; i < _column.Count; i++)
     {
         if (isFirstValue)
         {
             isFirstValue = false;
             insSQL.Append(_column[i].FieldName);
             sp.Append("@" + _column[i].FieldName);
         }
         else
         {
             insSQL.Append("," + _column[i].FieldName);
             sp.Append(",@" + _column[i].FieldName);
         }
     }
     insSQL.Append(") values (" + sp.ToString() + ")");
     return RunCommandWithTransatcion((BuSchedule)ent, insSQL.ToString(), TRANS);
 }
예제 #2
0
 public bool Delete(BaseEntitie ent)
 {
     return dao.Delete(ent, null) > 0;
 }
예제 #3
0
파일: BuSchedule.cs 프로젝트: qq5013/JXNG
 protected virtual void GetEntityDeleteParameter(System.Data.IDbCommand CM, BaseEntitie ent)
 {
     ColumnCollection _column = ent.Column;
     for (int i = 0; i < _column.Count; i++)
     {
         System.Data.IDbDataParameter sParameter = CM.CreateParameter();
         sParameter.ParameterName = _column[i].FieldName;
         sParameter.Value = _column[i].FieldValue;
         sParameter.DbType = _column[i].FieldType;
         CM.Parameters.Add(sParameter);
     }
 }
예제 #4
0
파일: BuSchedule.cs 프로젝트: qq5013/JXNG
 public int Delete(BaseEntitie ent, IDbTransaction TRANS)
 {
     string s_DelSQL = " Delete From BuSchedule Where ScheduleId = @ScheduleId";
     return RunCommandWithTransatcion((BuSchedule)ent, s_DelSQL, TRANS);
 }
예제 #5
0
 public int Delete(BaseEntitie ent, IDbTransaction TRANS)
 {
     string s_DelSQL = " Delete From BuGastankInfo Where TankNumber = @TankNumber";
     return RunCommandWithTransatcion((BuGastankInfo)ent, s_DelSQL, TRANS);
 }
예제 #6
0
파일: BuSchedule.cs 프로젝트: qq5013/JXNG
 public int Update(BaseEntitie ent, IDbTransaction TRANS)
 {
     StringBuilder s_UpdSQL = new StringBuilder(" Update BuSchedule Set ");
     bool isFirstValue = true;
     ColumnCollection _column = ent.Column;//entity.TableFieldsName;
     for (int i = 0; i < _column.Count; i++)
     {
         if (isFirstValue)
         {
             isFirstValue = false;
             s_UpdSQL.Append(_column[i].FieldName);
             s_UpdSQL.Append("=");
             s_UpdSQL.Append("@" + _column[i].FieldName);
         }
         else
         {
             s_UpdSQL.Append("," + _column[i].FieldName);
             s_UpdSQL.Append("=");
             s_UpdSQL.Append("@" + _column[i].FieldName);
         }
     }
     s_UpdSQL.Append(" WHERE ScheduleId = @ScheduleId");
     return RunCommandWithTransatcion((BuSchedule)ent, s_UpdSQL.ToString(), TRANS);
 }
예제 #7
0
파일: BuWFProcess.cs 프로젝트: qq5013/JXNG
 public int Delete(BaseEntitie ent, IDbTransaction TRANS)
 {
     string s_DelSQL = " Delete From BuWFProcess Where ProcessId = @ProcessId";
     return RunCommandWithTransatcion((BuWFProcess)ent, s_DelSQL, TRANS);
 }
예제 #8
0
파일: BuCityInfo.cs 프로젝트: qq5013/JXNG
 public int Delete(BaseEntitie ent, IDbTransaction TRANS)
 {
     string s_DelSQL = " Delete From BuCityInfo Where CityCode = @CityCode";
     return RunCommandWithTransatcion((BuCityInfo)ent, s_DelSQL, TRANS);
 }
예제 #9
0
파일: TranAction.cs 프로젝트: qq5013/JXNG
 public void Add(BaseEntitie obj)
 {
     sqlColltion.Add(obj);
     return;
 }
예제 #10
0
 public int Delete(BaseEntitie ent, IDbTransaction TRANS)
 {
     string s_DelSQL = " Delete From BuGastankRepair Where GasRepairId = @GasRepairId";
     return RunCommandWithTransatcion((BuGastankRepair)ent, s_DelSQL, TRANS);
 }
예제 #11
0
파일: BuGPSLog.cs 프로젝트: qq5013/JXNG
 public int Delete(BaseEntitie ent, IDbTransaction TRANS)
 {
     string s_DelSQL = " Delete From BuGPSLog Where GPSLogId = @GPSLogId";
     return RunCommandWithTransatcion((BuGPSLog)ent, s_DelSQL, TRANS);
 }
예제 #12
0
 public int Delete(BaseEntitie ent, IDbTransaction TRANS)
 {
     string s_DelSQL = " Delete From BuWFRelationship Where RelationshipId = @RelationshipId";
     return RunCommandWithTransatcion((BuWFRelationship)ent, s_DelSQL, TRANS);
 }
예제 #13
0
파일: BuWorkFlow.cs 프로젝트: qq5013/JXNG
 public int Delete(BaseEntitie ent, IDbTransaction TRANS)
 {
     string s_DelSQL = " Delete From BuWorkFlow Where WorkflowGUID = @WorkflowGUID";
     return RunCommandWithTransatcion((BuWorkFlow)ent, s_DelSQL, TRANS);
 }
예제 #14
0
 public bool Insert(BaseEntitie ent)
 {
     return dao.Insert(ent, null) > 0;
 }
예제 #15
0
 public int Delete(BaseEntitie ent, IDbTransaction TRANS)
 {
     string s_DelSQL = " Delete From BuBigStationInfo Where BigStationId = @BigStationId";
     return RunCommandWithTransatcion((BuBigStationInfo)ent, s_DelSQL, TRANS);
 }
예제 #16
0
 public bool Update(BaseEntitie ent)
 {
     return dao.Update(ent, null) > 0;
 }
예제 #17
0
파일: syslogDao.cs 프로젝트: qq5013/JXNG
 public int Delete(BaseEntitie ent, IDbTransaction TRANS)
 {
     string s_DelSQL = " DELETE FROM syslog   WHERE  ID=@ID ";
     return RunCommandWithTransatcion((syslogInfo)ent, s_DelSQL, TRANS);
 }