47 lines
904 B
Dart
47 lines
904 B
Dart
|
|
import 'package:star_lock/tools/baseGetXController.dart';
|
|
import '../../../../network/api_repository.dart';
|
|
import 'checkingInAddStaff_state.dart';
|
|
|
|
class CheckingInAddStaffLogic extends BaseGetXController{
|
|
CheckingInAddStaffState state = CheckingInAddStaffState();
|
|
|
|
// 添加员工
|
|
void addStaffLoadData() async{
|
|
var entity = await ApiRepository.to.addStaffData(
|
|
attendanceType: '',
|
|
attendanceWay: '',
|
|
companyId: state.companyId.value,
|
|
have: '',
|
|
staffName: '',
|
|
countryCode: '',
|
|
usernameType: '',
|
|
);
|
|
if(entity.errorCode!.codeIsSuccessful){
|
|
|
|
}
|
|
}
|
|
|
|
@override
|
|
void onReady() {
|
|
// TODO: implement onReady
|
|
super.onReady();
|
|
print("onReady()");
|
|
|
|
}
|
|
|
|
@override
|
|
void onInit() {
|
|
// TODO: implement onInit
|
|
super.onInit();
|
|
print("onInit()");
|
|
|
|
}
|
|
|
|
@override
|
|
void onClose() {
|
|
// TODO: implement onClose
|
|
|
|
}
|
|
|
|
} |