Exemplo n.º 1
0
        private void UpdateRow(HRM_EMPLOYEE item)
        {
            BandedGridView bandedGridView   = this.gbList;
            int            focusedRowHandle = this.gbList.FocusedRowHandle;

            bandedGridView.SetRowCellValue(focusedRowHandle, "SubsidiaryCode", item.SubsidiaryCode);
            bandedGridView.SetRowCellValue(focusedRowHandle, "BranchCode", item.BranchCode);
            bandedGridView.SetRowCellValue(focusedRowHandle, "DepartmentCode", item.DepartmentCode);
            bandedGridView.SetRowCellValue(focusedRowHandle, "GroupCode", item.GroupCode);
            bandedGridView.SetRowCellValue(focusedRowHandle, "EmployeeCode", item.EmployeeCode);
            bandedGridView.SetRowCellValue(focusedRowHandle, "FirstName", item.FirstName);
            bandedGridView.SetRowCellValue(focusedRowHandle, "LastName", item.LastName);
            bandedGridView.SetRowCellValue(focusedRowHandle, "BirthdayDay", item.BirthdayDay);
            bandedGridView.SetRowCellValue(focusedRowHandle, "BirthdayMonth", item.BirthdayMonth);
            bandedGridView.SetRowCellValue(focusedRowHandle, "BirthdayYear", item.BirthdayYear);
            bandedGridView.SetRowCellValue(focusedRowHandle, "BirthPlace", item.BirthPlace);
            bandedGridView.SetRowCellValue(focusedRowHandle, "Sex", item.Sex);
            bandedGridView.SetRowCellValue(focusedRowHandle, "CellPhone", item.CellPhone);
            bandedGridView.SetRowCellValue(focusedRowHandle, "HomePhone", item.HomePhone);
            bandedGridView.SetRowCellValue(focusedRowHandle, "MainAddress", item.MainAddress);
            bandedGridView.SetRowCellValue(focusedRowHandle, "ContactAddress", item.ContactAddress);
            bandedGridView.SetRowCellValue(focusedRowHandle, "Position", item.Position);
            bandedGridView.SetRowCellValue(focusedRowHandle, "IDCard", item.IDCard);
            bandedGridView.SetRowCellValue(focusedRowHandle, "IDCardPlace", item.IDCardPlace);
            bandedGridView.SetRowCellValue(focusedRowHandle, "IDCardDate", item.IDCardDate);
            bandedGridView.SetRowCellValue(focusedRowHandle, "Status", item.Status);
            bandedGridView.SetRowCellValue(focusedRowHandle, "TestFromDate", item.TestFromDate);
            bandedGridView.SetRowCellValue(focusedRowHandle, "TestToDate", item.TestToDate);
            bandedGridView.SetRowCellValue(focusedRowHandle, "BeginDate", item.BeginDate);
            bandedGridView.SetRowCellValue(focusedRowHandle, "EndDate", item.EndDate);
            bandedGridView.SetRowCellValue(focusedRowHandle, "Photo", item.Photo);
            bandedGridView.SetRowCellValue(focusedRowHandle, "Email", item.Email);
            bandedGridView.SetRowCellValue(focusedRowHandle, "Nationality", item.Nationality);
            bandedGridView.SetRowCellValue(focusedRowHandle, "Ethnic", item.Ethnic);
            bandedGridView.SetRowCellValue(focusedRowHandle, "Religion", item.Religion);
            bandedGridView.SetRowCellValue(focusedRowHandle, "Education", item.Education);
            bandedGridView.SetRowCellValue(focusedRowHandle, "Language", item.Language);
            bandedGridView.SetRowCellValue(focusedRowHandle, "Informatic", item.Informatic);
            bandedGridView.SetRowCellValue(focusedRowHandle, "Professional", item.Professional);
            bandedGridView.SetRowCellValue(focusedRowHandle, "Marriage", item.Marriage);
            bandedGridView.SetRowCellValue(focusedRowHandle, "InsuranceCode", item.InsuranceCode);
            bandedGridView.SetRowCellValue(focusedRowHandle, "InsuranceDate", item.InsuranceDate);
            bandedGridView.SetRowCellValue(focusedRowHandle, "BasicSalary", item.BasicSalary);
            bandedGridView.SetRowCellValue(focusedRowHandle, "InsuranceSalary", item.InsuranceSalary);
            bandedGridView.SetRowCellValue(focusedRowHandle, "DateSalary", item.DateSalary);
            bandedGridView.SetRowCellValue(focusedRowHandle, "Health", item.Health);
            bandedGridView.SetRowCellValue(focusedRowHandle, "Weight", item.Weight);
            bandedGridView.SetRowCellValue(focusedRowHandle, "Height", item.Height);
            bandedGridView.SetRowCellValue(focusedRowHandle, "ContractCode", item.ContractCode);
            bandedGridView.SetRowCellValue(focusedRowHandle, "ContractType", item.ContractType);
            bandedGridView.SetRowCellValue(focusedRowHandle, "ContractSignDate", item.ContractSignDate);
            bandedGridView.SetRowCellValue(focusedRowHandle, "ContractFromDate", item.ContractFromDate);
            bandedGridView.SetRowCellValue(focusedRowHandle, "ContractToDate", item.ContractToDate);
            bandedGridView.SetRowCellValue(focusedRowHandle, "EnrollNumber", item.EnrollNumber);
            bandedGridView.SetRowCellValue(focusedRowHandle, "Description", item.Description);
            bandedGridView.UpdateCurrentRow();
        }