public override void InitModuleObjectList() { EmployeeOTsList.InitVinaList(this, TableName.HROverTimesTableName, TableName.HREmployeeOTsTableName, VinaList <HREmployeeOTsInfo> .cstRelationForeign); EmployeeOTsList.ItemTableForeignKey = "FK_HROverTimeID"; }
public override void SetDefaultModuleObjectsList() { try { EmployeeOTsList.SetDefaultListAndRefreshGridControl(); } catch (Exception) { return; } }
public override void InvalidateModuleObjects(int iObjectID) { HREmployeeOTsController objEmployeeOTsController = new HREmployeeOTsController(); DataSet ds = objEmployeeOTsController.GetAllDataByOverTimeID(iObjectID); EmployeeOTsList.Invalidate(ds); HREmployeesController objEmployeesController = new HREmployeesController(); foreach (var item in EmployeeOTsList) { HREmployeesInfo objEmployeesInfo = (HREmployeesInfo)objEmployeesController.GetObjectByID(item.FK_HREmployeeID); if (objEmployeesInfo != null) { item.HREmployeeCardNumber = objEmployeesInfo.HREmployeeCardNumber; } } }
public override void InitGridControlInVinaList() { EmployeeOTsList.InitVinaListGridControl(); }
public override void SaveModuleObjects() { EmployeeOTsList.SaveItemObjects(); }