Пример #1
0
        //**************************************************************************
        ///    <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);
        }
Пример #2
0
        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));
        }
Пример #3
0
        //**************************************************************************
        ///    <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;
            }
        }
Пример #4
0
        //**************************************************************************
        ///    <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;
            }
        }
Пример #5
0
 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;
     }
 }
Пример #6
0
        //**************************************************************************
        ///    <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;
            }
        }
Пример #7
0
        public bool IsPeriodOverlap(object objPeriod)
        {
            Sys_PeriodDS dsPeriod = new Sys_PeriodDS();

            return(dsPeriod.IsPeriodOverlap(objPeriod));
        }
Пример #8
0
        //**************************************************************************
        ///    <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());
        }