protected void ASPxGridViewNomina_CustomDataCallback(object sender, ASPxGridViewCustomDataCallbackEventArgs e)
        {
            DevExpress.Web.ASPxGridView grid = (DevExpress.Web.ASPxGridView)sender;
            object employeeID = e.Parameters;
            string clave      = employeeID.ToString().Trim();

            //se obtiene el empleado mediante el ID
            EmployeeBusinessObject _EmployeeBAL  = new EmployeeBusinessObject();
            EmployeeEntityOnject   _EmployeeInfo = _EmployeeBAL.GetEmployee(clave);

            if (_EmployeeInfo != null)
            {
                e.Result = new string[] { _EmployeeInfo.Clave, _EmployeeInfo.NombreCompleto };
            }
        }
        protected void ASPxGridViewNomina_RowInserting(object sender, DevExpress.Web.Data.ASPxDataInsertingEventArgs e)
        {
            ASPxGridView grid = (ASPxGridView)sender;
            ASPxComboBox cmb  = (ASPxComboBox)grid.FindEditRowCellTemplateControl((GridViewDataColumn)grid.Columns["ClaveTrabajador"], "cmbEmployee");

            e.NewValues["ClaveTrabajador"] = cmb.Text;
            e.NewValues["ClaveConcepto"]   = ((ASPxGridView)sender).GetMasterRowKeyValue();

            //se obtiene la empresa del trabajador seleccionado
            EmployeeBusinessObject _EmployeeBAL  = new EmployeeBusinessObject();
            EmployeeEntityOnject   _EmployeeInfo = _EmployeeBAL.GetEmployee(e.NewValues["ClaveTrabajador"].ToString());

            PeriodoBusinessObject _PeriodoBAL  = new PeriodoBusinessObject();
            PeriodoEntityObject   _PeriodoInfo = _PeriodoBAL.GetPeriodoActualByNominaEmpresa(_EmployeeInfo.ClaveNomina, _EmployeeInfo.Empresa.Clave);

            e.NewValues["Empresa"] = _EmployeeInfo.Empresa.Clave;
            e.NewValues["Periodo"] = _PeriodoInfo.ClavePeriodo;
        }