Exemple #1
0
        public bool Insert(string WardCode, string WardDescription, int BedsNumber, int WardCapacity, int RoomsNumber, string WardType, string WardPhone, string WardColor, int WardOrder)
        {
            WardDAC wardComponent = new WardDAC();
            int     WardId        = 0;

            return(wardComponent.InsertNewWard(ref WardId, WardCode, WardDescription, BedsNumber, WardCapacity, RoomsNumber, WardType, WardPhone, WardColor, WardOrder));
        }
Exemple #2
0
        public bool Insert(Ward ward)
        {
            int     autonumber       = 0;
            WardDAC wardComponent    = new WardDAC();
            bool    endedSuccessfuly = wardComponent.InsertNewWard(ref autonumber, ward.WardCode, ward.WardDescription, ward.BedsNumber, ward.WardCapacity, ward.RoomsNumber, ward.WardType, ward.WardPhone, ward.WardColor, ward.WardOrder);

            if (endedSuccessfuly)
            {
                ward.WardId = autonumber;
            }
            return(endedSuccessfuly);
        }