Skip to content

Instantly share code, notes, and snippets.

View zxy0121's full-sized avatar

周子建 zxy0121

View GitHub Profile
.printtable {
width: 100%;
border-collapse: collapse;
}
.print-title{
text-align: center;
}
.table-text{
text-align: center;
@zxy0121
zxy0121 / Other.cs
Last active September 24, 2025 09:13
其他
// switch状态判断
//主要是这块
case var s when Regex.IsMatch(s, @"^N[B-Z]$"):
case var s when Regex.IsMatch(s, @"^N[A-Z]R$"):
// 获取办公室Id
await OfficeManage.GetOfficeId(entity.OrganizationUnitId)
await OfficeManage.GetOfficeId("", "", AbpSession.UserId.Value, entity.OrganizationUnitId)
// 查询当前用户
var employee = await DapperExtensions.QueryFirstOrDefaultAsync<T_Employee>(
using System.Collections.Generic;
using Abp.Application.Services.Dto;
using Saury.Web.Service.Common.Dto;
using Saury.Web.Service.Core.Office.Model;
using Saury.Web.Workflow;
namespace Saury.Web.Service.Service.Office.MyContract.Dto
{
public class GetForEditInput : MyContractDto
{
@zxy0121
zxy0121 / Audits.js
Created July 8, 2025 01:07
脚本(Base)
(function () {
$(function () {
var _personalAdjustmentService = abp.services.web.personalAdjustment;
var _$table;
var _$searchInput = {
pageNumber: 1,
pageSize: 10,
sorting: ' CreationTime desc'
@zxy0121
zxy0121 / Modal.js
Created July 8, 2025 01:06
脚本(Modals)
(function ($) {
app.modals.CreateOrEditModal = function () {
var _personalAdjustmentService = abp.services.web.personalAdjustment;
var _modalManager;
var _applyPersonalAdjustmentPage = new app.pages.ApplyPersonalAdjustmentPage();
this.init = function (modalManager) {
@zxy0121
zxy0121 / Audit.js
Created July 8, 2025 01:05
脚本(SlidePages)
$(function () {
$(function () {
var _personalAdjustmentService = abp.services.web.personalAdjustment;
var _personalAdjustmentInfoPage = new app.pages.PersonalAdjustmentInfoPage();
var _workflowLogsPage = new app.pages.WorkflowLogsPage();
var _auditPanel = $('#personalAdjustment-workflow-auditpanel');
var _$id = _auditPanel.find('#Id').val();
var _$auditForm = _auditPanel.find('form[name="AuditForm"]');
@zxy0121
zxy0121 / Apply.js
Last active September 24, 2025 08:47
脚本(Pages)
(function () {
$(function () {
var _personalAdjustmentService = abp.services.web.personalAdjustment;
var _$id = $('#Id').val();
var _$redirect = $('#Redirect').val();
var _applyPersonalAdjustmentPage = new app.pages.ApplyPersonalAdjustmentPage();
var _page = {
@zxy0121
zxy0121 / Audits.cshtml
Created July 8, 2025 01:03
页面(Base)
@using Saury.Authorization
@{
ViewBag.CurrentPageName = AppPermissions.Pages_Financial_PersonalAdjustment_Audits;
}
@section Scripts
{
<script abp-src="/view-resources/Areas/Financial/Views/PersonalAdjustment/Pages/_SearchFormPage.js" asp-append-version="true"></script>
<script abp-src="/view-resources/Areas/Financial/Views/PersonalAdjustment/Audits.js" asp-append-version="true"></script>
}
@zxy0121
zxy0121 / Modal.cshtml
Created July 8, 2025 01:01
页面(Modals)
@using Saury.Web.Models.Common.Modals
<script abp-src="/view-resources/Views/Common/_FileUploadPage.js" asp-append-version="true"></script>
<script type="text/javascript" abp-src="/view-resources/Areas/Financial/Views/PersonalAdjustment/Pages/_ApplyPersonalAdjustmentPage.js" asp-append-version="true"></script>
@await Html.PartialAsync("~/Views/Common/Modals/_ModalHeader.cshtml", new ModalHeaderViewModel("个账调整"))
<div class="modal-body p-t-5" id="PersonalAdjustmentModal">
<input type="hidden" value="@ViewBag.Id" id="KeyId" name="KeyId"/>
@await Html.PartialAsync("~/Areas/Financial/Views/PersonalAdjustment/Pages/_ApplyPersonalAdjustmentPage.cshtml")
</div>
@zxy0121
zxy0121 / Audit.cshtml
Created July 8, 2025 01:01
页面(SlidePages)
@using Saury.Authorization
<script type="text/javascript" abp-src="/view-resources/Areas/Financial/Views/PersonalAdjustment/Pages/_PersonalAdjustmentInfoPage.js" asp-append-version="true"></script>
<script type="text/javascript" abp-src="/view-resources/Areas/Financial/Views/PersonalAdjustment/SlidePages/Audit.js" asp-append-version="true"></script>
<div data-ref="workflow-auditpanel" style="padding-bottom:200px">
<div class="slidePanel-header p-x-15 p-y-5 bg-primary-600">
<div class="slidePanel-actions">
<button type="button" class="btn btn-pure btn-icon slidePanel-close ations-top icon md-close"></button>
</div>
<h4 class="white">@L(AppPermissions.Pages_Financial_PersonalAdjustment_Audits)</h4>