Esempio n. 1
0
 private void BindTypesSource()
 {
     _ItsView.WorkTypeSource           = WorkType.GetAll();
     _ItsView.WorkType                 = WorkType.Contract.Id.ToString();
     _ItsView.SocialSecurityTypeSource = SocialSecurityTypeEnum.GetAll();
     _ItsView.SocialSecurityType       = SocialSecurityTypeEnum.Null;
 }
Esempio n. 2
0
        private void SetGridViewRowddSocialSecurityTypeDisplay(int rowIndex)
        {
            DropDownList ddSocialSecurityType =
                (DropDownList)gvEmployeeWelfare.Rows[rowIndex].FindControl("ddSocialSecurityType");

            if (ddSocialSecurityType != null)
            {
                ddSocialSecurityType.DataSource     = SocialSecurityTypeEnum.GetAll();
                ddSocialSecurityType.DataValueField = "Id";
                ddSocialSecurityType.DataTextField  = "Name";
                ddSocialSecurityType.DataBind();
                ddSocialSecurityType.SelectedValue =
                    EmployeeWelfareList[rowIndex + PageIndex * gvEmployeeWelfare.PageSize].SocialSecurity.Type.Id.ToString
                        ();
            }
        }