Exemple #1
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));
        }
Exemple #2
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);
        }