Beispiel #1
0
        /// \brief This method Save
        /// \details <b>Details</b>
        /// This method will save plan info
        /// \return  void
        public bool Save()
        {
            bool flag = false;

            if (command == "UPDATE")
            {
                flag = new PlanInfoBizDAO().UpdatePlanInfo(this);
            }
            else if (command == "INSERT")
            {
                flag = new PlanInfoBizDAO().InsertPlanInfo(this);
            }

            return(flag);
        }
Beispiel #2
0
        /// \brief This method GetById
        /// \details <b>Details</b>
        /// This method will get ID by element
        /// \return  void
        public PlanInfo GetById(string planID)
        {
            var plans = new PlanInfoBizDAO().GetPlanInfos(planID);

            return(plans[0]);
        }
Beispiel #3
0
        public List <PlanInfo> GetPlanID(string pattern)
        {
            var planList = new PlanInfoBizDAO().GetPlanID(pattern);

            return(planList);
        }