change createjobe modal

This commit is contained in:
SamSys
2025-10-12 00:04:33 +03:30
parent 4a956a1397
commit e9c3176dfc
3 changed files with 2307 additions and 1 deletions

View File

@@ -77,4 +77,28 @@ public class EditClassificationGroupJob : CreateClassificationGroupJob
/// ای دی شغل
/// </summary>
public long Id { get; set; }
}
}
/// <summary>
/// ایجاد یا ویرایش مشاغل
/// </summary>
public class CreateOrEditGroupJobs
{
/// <summary>
/// آی دی گروه
/// </summary>
public long GroupId { get; set; }
/// <summary>
/// شماره گروه
/// استرینگ
/// </summary>
public string GroupNo { get; set; }
/// <summary>
/// آی دی مشاغل
/// </summary>
public List<long> JobIdList { get; set; }
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,71 @@
@model CompanyManagment.App.Contracts.ClassificationScheme.ClassificationGroupAndJobModel
@{
int index = 1;
}
<div class="modal-header">
<h5 class="modal-title"> @Model.GroupNo تعیین مشاغل گروه </h5>
<button type="button" class="close" data-dismiss="modal" aria-label="بستن">
<span aria-hidden="true">&times;</span>
</button>
</div>
<form asp-page="./ClassificationScheme" asp-page-handler="CreateScheme" method="post" autocomplete="off"
data-ajax="true" data-action="Refresh" enctype="multipart/form-data">
<div class="modal-body">
<div class="row">
</div>
<div class="row fw-bold mb-2 head-table">
<div class="col-2 col-md-1">ردیف</div>
<div class="col-10 col-md-3">نام شغل</div>
<div class="col-12 col-md-3" style="float:left; direction:ltr">عملیات</div>
</div>
@foreach (var item in Model.EditClassificationGroupJob)
{
<div class="row align-items-center mb-2 p-2 tr-table">
<div class="col-2 col-md-1">
<div class="row-number">@index</div></div>
<div class="col-10 col-md-3">@item.JobName</div>
@{
index++;
}
<div class="col-12 col-md-3 align-items-center" style="float:left; direction:ltr">
<a style="border-radius:5px;" href="#showmodal=@Url.Page("./ClassificationScheme", "CreateScheme", new { workshopId = @Model.WorkshopId })">
<span class="icon-span" style="background-color:#ddd3e0">
<svg width="19" height="18" fill="none" xmlns="http://www.w3.org/2000/svg">
<rect width="18.5047" height="18.5047" transform="translate(0.523438 0.523438)" fill="#DDD3E0"></rect>
<path d="M7.84814 11.7031L7.84814 9.39004" stroke="#BF3737" stroke-linecap="round"></path>
<path d="M11.7031 11.7031L11.7031 9.39004" stroke="#BF3737" stroke-linecap="round"></path>
<path d="M2.83643 5.53125H16.7149V5.53125C16.0652 5.53125 15.7403 5.53125 15.4745 5.60604C14.8039 5.79477 14.2799 6.31884 14.0911 6.98943C14.0163 7.25518 14.0163 7.58007 14.0163 8.22985V11.5546C14.0163 13.4402 14.0163 14.383 13.4305 14.9688C12.8448 15.5546 11.902 15.5546 10.0163 15.5546H9.53502C7.64941 15.5546 6.7066 15.5546 6.12081 14.9688C5.53502 14.383 5.53502 13.4402 5.53502 11.5546V8.22985C5.53502 7.58007 5.53502 7.25518 5.46023 6.98943C5.27151 6.31884 4.74744 5.79477 4.07685 5.60604C3.8111 5.53125 3.48621 5.53125 2.83643 5.53125V5.53125Z" stroke="#BF3737" stroke-linecap="round"></path>
<path d="M7.84799 3.22434C7.84799 3.22434 8.2335 2.45312 9.77556 2.45312C11.3176 2.45312 11.7031 3.22415 11.7031 3.22415" stroke="#BF3737" stroke-linecap="round"></path>
</svg>
</span>
</a>
</div>
</div>
}
</div>
<input type="hidden" asp-for="WorkshopId" value="@Model.GroupId" />
<div class="modal-footer border-0">
<button type="submit" class="btn btn-success px-4 rounded-pill">ذخیره</button>
<button type="button" class="btn btn-outline-secondary px-4 rounded-pill" data-dismiss="modal">بستن</button>
</div>
</form>
<script language="javascript" src="~/AdminTheme/js/city.js"></script>