private void btnRegister_Click(object sender, EventArgs e)
 {
     //temporary disabled this function as i am not sure will this be abusable.
     StaffRegistrationForm form = new StaffRegistrationForm();
     form.Show();
     this.Close();
 }
        private void btnStaffRegister_Click(object sender, EventArgs e)
        {
            StaffRegistrationForm form = new StaffRegistrationForm();

            form.Show();
            this.Close();
        }
Exemple #3
0
        private void btnRegister_Click(object sender, EventArgs e)
        {
            //temporary disabled this function as i am not sure will this be abusable.
            StaffRegistrationForm form = new StaffRegistrationForm();

            form.Show();
            this.Close();
        }
Exemple #4
0
        public string DriverRegistrationService(StaffRegistrationForm registrationFormData, List <Files> fileDetail, IFormFileCollection FileCollection)
        {
            string StaffUid = "";

            if (!string.IsNullOrEmpty(registrationFormData.StaffMemberUid))
            {
                StaffUid = registrationFormData.StaffMemberUid;
            }

            DbParam[] param = new DbParam[]
            {
                new DbParam(StaffUid, typeof(System.String), "_StaffMemberUid"),
                new DbParam(userDetail.schooltenentId, typeof(System.String), "_schooltenentid"),
                new DbParam(registrationFormData.FirstName, typeof(System.String), "_FirstName"),
                new DbParam(registrationFormData.LastName, typeof(System.String), "_LastName"),
                new DbParam(registrationFormData.Gender, typeof(System.Boolean), "_Gender"),
                new DbParam(registrationFormData.Dob, typeof(System.DateTime), "_Dob"),
                new DbParam(registrationFormData.MobileNumber, typeof(System.String), "_MobileNumber"),
                new DbParam(registrationFormData.AlternetNumber, typeof(System.String), "_AlternetNumber"),
                new DbParam(registrationFormData.Email, typeof(System.String), "_Email"),
                new DbParam(registrationFormData.Address, typeof(System.String), "_Address"),
                new DbParam(registrationFormData.State, typeof(System.String), "_State"),
                new DbParam(registrationFormData.City, typeof(System.String), "_City"),
                new DbParam(registrationFormData.Pincode, typeof(System.Int64), "_Pincode"),
                new DbParam(registrationFormData.University, typeof(System.String), "_SchoolUniversityName"),
                new DbParam(registrationFormData.ProofOfDocumentationPath, typeof(System.String), "_ProofOfDocumentationPath"),
                new DbParam(registrationFormData.DegreeName, typeof(System.String), "_DegreeName"),
                new DbParam(registrationFormData.Grade, typeof(System.String), "_Grade"),
                new DbParam(null, typeof(System.String), "_Position"),
                new DbParam(registrationFormData.Marks, typeof(System.Double), "_MarksObtain"),
                new DbParam(null, typeof(System.String), "_Title"),
                new DbParam(registrationFormData.ExprienceInYear, typeof(System.String), "_ExprienceInYear"),
                new DbParam(registrationFormData.ExperienceInMonth, typeof(System.String), "_ExperienceInMonth"),
                new DbParam(registrationFormData.ImageUrl, typeof(System.String), "_ImageUrl"),
                new DbParam(userDetail.UserId, typeof(System.String), "_AdminId"),
                new DbParam(registrationFormData.VehicleTypeId, typeof(System.String), "_VehicleTypeId"),
                new DbParam(registrationFormData.VehicleNumber, typeof(System.String), "_VehicleNumber"),
                new DbParam(registrationFormData.VehicleRegistrationNo, typeof(System.String), "_VehicleRegistrationNo"),
                new DbParam(false, typeof(System.Boolean), "_IsAdmin"),
                new DbParam(registrationFormData.VehicleDetailId, typeof(System.String), "_vehicledetailid")
            };

            var output = db.ExecuteNonQuery("sp_DriverAndVehicleRegistration_InsUpd", param, true);

            if (output == "Registration done successfully")
            {
                if (FileCollection.Count > 0 && !string.IsNullOrEmpty(registrationFormData.ImageUrl))
                {
                    string FolderPath = Path.Combine(this.beanContext.GetContentRootPath(),
                                                     this.currentSession.FileUploadFolderName,
                                                     "Staff",
                                                     registrationFormData.MobileNumber);
                    this.fileService.SaveFile(FolderPath, fileDetail, FileCollection, registrationFormData.ImageUrl);
                }
            }
            return(output.ToString());
        }