Exemple #1
0
        /// <summary>
        /// Set StatementLineDate - Callout
        /// </summary>
        /// <param name="oldStatementLineDate">old</param>
        /// <param name="newStatementLineDate">new</param>
        /// <param name="windowNo"window no></param>
        /// @UICallout
        public void SetStatementLineDate(String oldStatementLineDate, String newStatementLineDate, int windowNo)
        {
            if (newStatementLineDate == null || newStatementLineDate.Length == 0)
            {
                return;
            }
            DateTime statementLineDate = Convert.ToDateTime(PO.ConvertToTimestamp(newStatementLineDate));

            if (statementLineDate == null)
            {
                return;
            }
            SetStatementLineDate(statementLineDate);
        }
        }       //	setDateDoc

        /// <summary>
        /// Set Acct Date - Callout.	Sets Period
        /// </summary>
        /// <param name="oldDateAcct">old</param>
        /// <param name="newDateAcct">new</param>
        /// <param name="windowNo">window no</param>
        public void SetDateAcct(String oldDateAcct,
                                String newDateAcct, int windowNo)
        {
            if (newDateAcct == null || newDateAcct.Length == 0)
            {
                return;
            }
            DateTime?dateAcct = PO.ConvertToTimestamp(newDateAcct);

            if (dateAcct == null)
            {
                return;
            }
            SetDateAcct(dateAcct.Value);
        }       //	setDateAcct
        }       //	getPeriod

        /// <summary>
        /// Set Doc Date - Callout.Sets also acct date and period
        /// </summary>
        /// <param name="oldDateDoc">old</param>
        /// <param name="newDateDoc">new</param>
        /// <param name="windowNo">window no</param>
        public void SetDateDoc(String oldDateDoc,
                               String newDateDoc, int windowNo)
        {
            if (newDateDoc == null || newDateDoc.Length == 0)
            {
                return;
            }
            DateTime?dateDoc = Utility.Util.GetValueOfDateTime(PO.ConvertToTimestamp(newDateDoc));

            if (dateDoc == null)
            {
                return;
            }
            SetDateDoc(dateDoc);
            SetDateAcct(dateDoc);
        }       //	SetDateDoc