Exemple #1
0
 public override void InitModuleObjectList()
 {
     EmployeeOTsList.InitVinaList(this,
                                  TableName.HROverTimesTableName,
                                  TableName.HREmployeeOTsTableName,
                                  VinaList <HREmployeeOTsInfo> .cstRelationForeign);
     EmployeeOTsList.ItemTableForeignKey = "FK_HROverTimeID";
 }
Exemple #2
0
 public override void SetDefaultModuleObjectsList()
 {
     try
     {
         EmployeeOTsList.SetDefaultListAndRefreshGridControl();
     }
     catch (Exception)
     {
         return;
     }
 }
Exemple #3
0
        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;
                }
            }
        }
Exemple #4
0
 public override void InitGridControlInVinaList()
 {
     EmployeeOTsList.InitVinaListGridControl();
 }
Exemple #5
0
 public override void SaveModuleObjects()
 {
     EmployeeOTsList.SaveItemObjects();
 }