if(R.isEmpty(this.state.company))returnalert("Nama perusahaan harus diisi.");
if(R.isEmpty(this.state.company))returnalert("Nama perusahaan harus diisi.");
if(R.isEmpty(this.state.unitBisnis))returnalert("Unit Bisnis is Required.");
if(R.isEmpty(this.state.parentCompany))returnalert("Parent Company is Required.");
if(R.isEmpty(this.state.totalReport))returnalert("Total Report is Required.");
if(R.isEmpty(this.state.totalReport))returnalert("Total Report is Required.");
if(!R.isEmpty(this.state.startDate)&&!R.isEmpty(this.state.endDate)&&(this.state.startDate>this.state.endDate))returnalert("Masa Berlaku Tidak Boleh Kurang Dari Tanggal Mulai");
if(!R.isEmpty(this.state.startDate)&&!R.isEmpty(this.state.endDate)&&(this.state.startDate>this.state.endDate))returnalert("Masa Berlaku Tidak Boleh Kurang Dari Tanggal Mulai");
if(R.isEmpty(this.state.startDate))returnalert("Tanggal Mulai is Required.");
if(R.isEmpty(this.state.startDate))returnalert("Tanggal Mulai is Required.");
if(R.isEmpty(this.state.endDate))returnalert("Tanggal Berakhir is Required.");
if(R.isEmpty(this.state.endDate))returnalert("Tanggal Berakhir is Required.");
if(R.isEmpty(this.state.name))returnalert("Unit Bisnis Name is Required.");
if(R.isEmpty(this.state.name)){
if(!R.isEmpty(this.state.startDate)&&!R.isEmpty(this.state.endDate)&&(this.state.startDate>this.state.endDate))returnalert("Masa Berlaku Tidak Boleh Kurang Dari Tanggal Mulai");
this.setState({errorName:true,msgErrorName:'Unit Bisnis tidak boleh kosong'})
if(R.isEmpty(this.state.startDate))returnalert("Tanggal Mulai is Required.");
}elseif(R.isEmpty(this.state.startDate)){
if(R.isEmpty(this.state.endDate))returnalert("Tanggal Berakhir is Required.");
this.setState({errorStartDate:true,msgErrorStartDate:'Tanggal Mulai tidak boleh kosong'})