コード例 #1
0
        public bool Insert(string SpecialityCode, string SpecialityName, string SpecialityAbbreviation)
        {
            SpecialityDAC specialityComponent = new SpecialityDAC();
            int           SpecialityId        = 0;

            return(specialityComponent.InsertNewSpeciality(ref SpecialityId, SpecialityCode, SpecialityName, SpecialityAbbreviation));
        }
コード例 #2
0
        public bool Insert(string SpecialityCode, string SpecialityName, string BedDisplayCode)
        {
            SpecialityDAC specialityComponent = new SpecialityDAC();
            int           SpecialityId        = 0;

            return(specialityComponent.InsertNewSpeciality(ref SpecialityId, SpecialityCode, SpecialityName, BedDisplayCode));
        }
コード例 #3
0
        public bool Insert(Speciality speciality)
        {
            int           autonumber          = 0;
            SpecialityDAC specialityComponent = new SpecialityDAC();
            bool          endedSuccessfuly    = specialityComponent.InsertNewSpeciality(ref autonumber, speciality.SpecialityCode, speciality.SpecialityName, speciality.SpecialityAbbreviation);

            if (endedSuccessfuly)
            {
                speciality.SpecialityId = autonumber;
            }
            return(endedSuccessfuly);
        }