コード例 #1
0
ファイル: AluminiesLogic.cs プロジェクト: ramyothman/Qiyas
        public bool Insert(string AluminiFor, string Department, string FirstName, string MiddleName, string FamilyName, int YearofJoining, int YearofGraduation, string UniversityNumber, string Speciality, string Email, string Contact1, string Contact2, string Contact3, string MedicalSchool, string MedicalSchoolCity, string Sponsor, string CurrentPosition, string CurrentWorkPlace, string Certificates, string Photo, string ScannedDocument, string ScannedDocumentTitle, string ScannedDocumentTitle2, string ScannedDocument2, string ScannedDocumentTitle3, string ScannedDocument3, string ScannedDocumentTitle4, string ScannedDocument4, string ScannedDocumentTitle5, string ScannedDocument5, string FullName)
        {
            AluminiesDAC aluminiesComponent = new AluminiesDAC();
            int          Id = 0;

            return(aluminiesComponent.InsertNewAluminies(ref Id, AluminiFor, Department, FirstName, MiddleName, FamilyName, YearofJoining, YearofGraduation, UniversityNumber, Speciality, Email, Contact1, Contact2, Contact3, MedicalSchool, MedicalSchoolCity, Sponsor, CurrentPosition, CurrentWorkPlace, Certificates, Photo, ScannedDocument, ScannedDocumentTitle, ScannedDocumentTitle2, ScannedDocument2, ScannedDocumentTitle3, ScannedDocument3, ScannedDocumentTitle4, ScannedDocument4, ScannedDocumentTitle5, ScannedDocument5));
        }
コード例 #2
0
ファイル: AluminiesLogic.cs プロジェクト: ramyothman/Qiyas
        public bool Insert(Aluminies aluminies)
        {
            int          autonumber         = 0;
            AluminiesDAC aluminiesComponent = new AluminiesDAC();
            bool         endedSuccessfuly   = aluminiesComponent.InsertNewAluminies(ref autonumber, aluminies.AluminiFor, aluminies.Department, aluminies.FirstName, aluminies.MiddleName, aluminies.FamilyName, aluminies.YearofJoining, aluminies.YearofGraduation, aluminies.UniversityNumber, aluminies.Speciality, aluminies.Email, aluminies.Contact1, aluminies.Contact2, aluminies.Contact3, aluminies.MedicalSchool, aluminies.MedicalSchoolCity, aluminies.Sponsor, aluminies.CurrentPosition, aluminies.CurrentWorkPlace, aluminies.Certificates, aluminies.Photo, aluminies.ScannedDocument, aluminies.ScannedDocumentTitle, aluminies.ScannedDocumentTitle2, aluminies.ScannedDocument2, aluminies.ScannedDocumentTitle3, aluminies.ScannedDocument3, aluminies.ScannedDocumentTitle4, aluminies.ScannedDocument4, aluminies.ScannedDocumentTitle5, aluminies.ScannedDocument5);

            if (endedSuccessfuly)
            {
                aluminies.Id = autonumber;
            }
            return(endedSuccessfuly);
        }