fix some bugs
This commit is contained in:
@@ -295,7 +295,7 @@ namespace ServiceHost.Areas.Client.Pages.Company.RollCall
|
||||
HasUploadedImage = rollCallEmployee?.HasUploadedImage == "true"
|
||||
};
|
||||
|
||||
if (res.HasUploadedImage)
|
||||
if (res.HasUploadedImage && res.EmployeeSettings != null)
|
||||
{
|
||||
return Partial("ModalTakeImagesEdit", res);
|
||||
}
|
||||
@@ -467,7 +467,7 @@ namespace ServiceHost.Areas.Client.Pages.Company.RollCall
|
||||
var employeeSettings =
|
||||
_customizeWorkshopSettingsApplication.GetByEmployeeIdAndWorkshopIdIncludeGroupSettings(
|
||||
_workshopId, hasRollCallEmployee.EmployeeId);
|
||||
if (employeeSettings.Id == 0)
|
||||
if (employeeSettings == null || employeeSettings.Id == 0)
|
||||
{
|
||||
return new JsonResult(new
|
||||
{
|
||||
|
||||
@@ -13,6 +13,7 @@ var rollCallStatusIdTemp;
|
||||
$(document).ready(function () {
|
||||
|
||||
$("#next-step").on("click", function () {
|
||||
debugger;
|
||||
if ($("#step-form2").is(":visible") && !hasUploadedImage) {
|
||||
|
||||
if ($("#workshopSettingSelect").val() === "0") {
|
||||
@@ -387,7 +388,7 @@ async function set() {
|
||||
let pic2 = $("#pic2").attr('src');
|
||||
const img1 = document.getElementById('pic1');
|
||||
const img2 = document.getElementById('pic2');
|
||||
|
||||
debugger;
|
||||
let workshopId = Number($('#workshopId').val());
|
||||
let employeeId = Number($('#employeeId').val());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user