private void LoadQuanity(SPListItem listItem)
        {
            if (listItem[EmployeeRequirementSheetsList.Fields.Quantity] != null)
            {
                this.txtQuantity.Text = listItem[EmployeeRequirementSheetsList.Fields.Quantity].ToString();
            }
            else
            {
                this.txtQuantity.Text = ConfigurationDAL.GetValue(this.SiteUrl, RecruitmentForm_NumberOfDefaultQuantity_Key);
            }

            this.txtQuantity.Enabled = this.isEditable;
        }
        /// <summary>
        /// SendEmail
        /// </summary>
        /// <param name="toEmployeeIds"></param>
        /// <returns></returns>
        private bool SendEmail(List <int> toEmployeeIds)
        {
            var res = false;

            string subjectEmail = ConfigurationDAL.GetValue(this.SiteUrl, DelegationEmailTemplateSubjectKey);
            string delegationBodyEmailTemplate = ConfigurationDAL.GetValue(this.SiteUrl, DelegationEmailTemplateKey);
            DelegationEmailTemplate delegationEmailTemplate = InitDelegationEmailTemplateObject();
            string body = BuildBodyEmail(delegationEmailTemplate, delegationBodyEmailTemplate);

            res = SendEmail(toEmployeeIds, subjectEmail, body);

            return(res);
        }
        /// <summary>
        /// GetNumberOfStandardizedDaysBeforeSubmission
        /// </summary>
        /// <returns></returns>
        private int GetNumberOfStandardizedDaysBeforeSubmission()
        {
            // Set default value.
            int    res = 15;
            string numberOfStandardizedDaysBeforeSubmission = ConfigurationDAL.GetValue(this.SiteUrl, NumberOfStandardizedDaysBeforesubmission_Key);

            if (!string.IsNullOrEmpty(numberOfStandardizedDaysBeforeSubmission))
            {
                int.TryParse(numberOfStandardizedDaysBeforeSubmission, out res);
            }

            return(res);
        }