//************************************************************************** /// <Description> /// This method uses to update all data from sys_Period /// </Description> /// <Inputs> /// /// </Inputs> /// <Outputs> /// void /// </Outputs> /// <Returns> /// DataSet /// </Returns> /// <Authors> /// Trada /// </Authors> /// <History> /// May, 5 2005 /// </History> /// <Notes> /// </Notes> //************************************************************************** public void Update(object pObjectDetail) { Sys_PeriodDS dsPeriod = new Sys_PeriodDS(); Sys_PeriodVO voPeriod = (Sys_PeriodVO)pObjectDetail; if (voPeriod.Activate) { dsPeriod.CloseAllPeriod(voPeriod); } dsPeriod.Update(pObjectDetail); }
public int AddAndReturnID(object pObjectDetail) { Sys_PeriodDS dsPeriod = new Sys_PeriodDS(); Sys_PeriodVO voPeriod = (Sys_PeriodVO)pObjectDetail; if (voPeriod.Activate) { dsPeriod.CloseAllPeriod(voPeriod); } return(dsPeriod.AddAndReturnID(pObjectDetail)); }
//************************************************************************** /// <Description> /// This method uses to get all data from sys_Period /// </Description> /// <Inputs> /// /// </Inputs> /// <Outputs> /// DataSet /// </Outputs> /// <Returns> /// DataSet /// </Returns> /// <Authors> /// Trada /// </Authors> /// <History> /// May, 5 2005 /// </History> /// <Notes> /// </Notes> //************************************************************************** public DataSet ListPeriod() { try { Sys_PeriodDS dsPeriod = new Sys_PeriodDS(); return(dsPeriod.List()); } catch (PCSDBException ex) { throw ex; } catch (Exception ex) { throw ex; } }
//************************************************************************** /// <Description> /// This method uses to get all data from sys_Period /// </Description> /// <Inputs> /// /// </Inputs> /// <Outputs> /// DataSet /// </Outputs> /// <Returns> /// DataSet /// </Returns> /// <Authors> /// Trada /// </Authors> /// <History> /// May, 5 2005 /// </History> /// <Notes> /// </Notes> //************************************************************************** public void Delete(int pintPeriodID) { // TODO: try { Sys_PeriodDS dsPeriod = new Sys_PeriodDS(); dsPeriod.Delete(pintPeriodID); } catch (PCSDBException ex) { throw ex; } catch (Exception ex) { throw ex; } }
public void Add(object pObjectDetail) { // TODO: try { Sys_PeriodDS dsPeriod = new Sys_PeriodDS(); dsPeriod.Add(pObjectDetail); } catch (PCSException ex) { throw ex; } catch (Exception ex) { throw ex; } }
//************************************************************************** /// <Description> /// This method uses to update all data from sys_Period /// </Description> /// <Inputs> /// /// </Inputs> /// <Outputs> /// DataSet /// </Outputs> /// <Returns> /// DataSet /// </Returns> /// <Authors> /// Trada /// </Authors> /// <History> /// May, 5 2005 /// </History> /// <Notes> /// </Notes> //************************************************************************** public void ChangeStatusOfActivate(object pObjectDetail) { // TODO: try { Sys_PeriodDS dsPeriod = new Sys_PeriodDS(); dsPeriod.ChangeStatusOfActivate(pObjectDetail); } catch (PCSDBException ex) { throw ex; } catch (Exception ex) { throw ex; } }
public bool IsPeriodOverlap(object objPeriod) { Sys_PeriodDS dsPeriod = new Sys_PeriodDS(); return(dsPeriod.IsPeriodOverlap(objPeriod)); }
//************************************************************************** /// <Description> /// This method uses to get all data from sys_Period /// </Description> /// <Inputs> /// /// </Inputs> /// <Outputs> /// DataSet /// </Outputs> /// <Returns> /// DataSet /// </Returns> /// <Authors> /// Trada /// </Authors> /// <History> /// May, 5 2005 /// </History> /// <Notes> /// </Notes> //************************************************************************** public object GetPeriod() { Sys_PeriodDS dsPeriod = new Sys_PeriodDS(); return(dsPeriod.GetObjectVO()); }