Xeku.ESign.Forms 0.0.0.7

dotnet add package Xeku.ESign.Forms --version 0.0.0.7
                    
NuGet\Install-Package Xeku.ESign.Forms -Version 0.0.0.7
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Xeku.ESign.Forms" Version="0.0.0.7" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Xeku.ESign.Forms" Version="0.0.0.7" />
                    
Directory.Packages.props
<PackageReference Include="Xeku.ESign.Forms" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Xeku.ESign.Forms --version 0.0.0.7
                    
#r "nuget: Xeku.ESign.Forms, 0.0.0.7"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Xeku.ESign.Forms@0.0.0.7
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Xeku.ESign.Forms&version=0.0.0.7
                    
Install as a Cake Addin
#tool nuget:?package=Xeku.ESign.Forms&version=0.0.0.7
                    
Install as a Cake Tool

Xeku.ESign.Forms

Pre-built XAF forms for common HR and accounting workflows, built on the Xeku.ESign framework.

繁體中文文檔

Features

  • Human Resource Forms:
    • Leave Application (請假單) - supports multiple vacation types
    • Travel Request (出差申請)
    • Overtime Application (加班申請)
    • Missed Clock-Out Report (忘刷卡申請)
  • Accounting Forms:
    • Cash Request (現金請款)
    • General Approval (一般簽呈)
  • Localization Ready: Traditional Chinese (zh-Hant-TW) translations included
  • Automatic Subject Generation: Smart subject formatting based on form data

Architecture

graph TB
    subgraph "Service/Logic (#fff4e1)"
        Core["Xeku.ESign (Core)"]
    end
    
    subgraph "Data/Entity (#e8f5e9)"
        FormBase["FormBase"]
    end
    
    subgraph "Forms Module (#f3e5f5)"
        HR["Human Resource"]
        Accounting["Accounting"]
        General["General"]
    end
    
    subgraph "HR Forms"
        Leave["LeaveForm"]
        Travel["TravelForm"]
        Overtime["WorkOvertimeForm"]
        MissedClock["MissedClockOutForm"]
    end
    
    subgraph "Accounting Forms"
        Cash["CashRequestForm"]
        Approval["Approval"]
    end
    
    HR --> Leave
    HR --> Travel
    HR --> Overtime
    HR --> MissedClock
    Accounting --> Cash
    General --> Approval
    
    Leave --> FormBase
    Travel --> FormBase
    Overtime --> FormBase
    MissedClock --> FormBase
    Cash --> FormBase
    Approval --> FormBase
    
    FormBase --> Core
    
    style Core fill:#fff4e1
    style FormBase fill:#e8f5e9
    style HR fill:#f3e5f5
    style Accounting fill:#f3e5f5
    style General fill:#f3e5f5
    style Leave fill:#e8f5e9
    style Travel fill:#e8f5e9
    style Overtime fill:#e8f5e9
    style MissedClock fill:#e8f5e9
    style Cash fill:#e8f5e9
    style Approval fill:#e8f5e9

Installation

1. NuGet Package

dotnet add package Xeku.ESign.Forms

2. Add Module Reference

// In your module constructor
RequiredModuleTypes.Add(typeof(Xeku.ESign.Forms.ESignFormsModule));

Included Forms

LeaveForm (請假單)

Manages employee leave requests with automatic hour calculation.

Property Description
VacationType Type of leave (Annual, Sick, Personal, etc.)
StartDate/EndDate Leave period
StartTime/EndTime Precise timing
LeaveHours Auto-calculated based on work hours
Attachments Supporting documents

Vacation Types Supported:

  • Personal Leave (事假)
  • Sick Leave (病假)
  • Annual Leave (特休年假)
  • Official Leave (公假)
  • Marriage Leave (婚假)
  • Maternity/Paternity Leave (產假/陪產假)
  • Parental Leave (育嬰假)
  • Funeral Leave (喪假)
  • Menstrual Leave (生理假)
  • Compensatory Leave (補休)

CashRequestForm (現金請款)

Handles cash advance and expense requests.

Property Description
DemandDate Date cash is needed
Amount Requested amount
Description Justification

TravelForm (出差申請)

Manages business travel and field work requests.

Property Description
TravelType Field Work or Business Trip
StartDate/EndDate Travel period
Destination Travel destination

Customizing Signing Steps

All forms implement IFixedSignStepObject. Override OnStepCreating to customize:

public class CustomLeaveForm : LeaveForm
{
    public CustomLeaveForm(Session session) : base(session) { }
    
    public override void OnStepCreating(ref CancelMessageEventArgs e)
    {
        // Custom approval chain
        SignStepManager.AddSingleSignStep(this, 1, "Direct Manager", 
            GetDirectManager());
        SignStepManager.AddSingleSignStep(this, 2, "HR Approval", 
            GetHRManager());
    }
}

AI Agent Integration

Use Cases

  • Automated Form Generation: AI can create leave/travel requests based on natural language
  • Workflow Automation: Trigger form submissions based on calendar events
  • Status Reporting: Query and report on pending approvals

API Integration

// Create and submit a leave request programmatically
var leave = objectSpace.CreateObject<LeaveForm>();
leave.VacationType = VacationType.AnnualLeave;
leave.StartDate = DateTime.Today.AddDays(7);
leave.EndDate = DateTime.Today.AddDays(8);
leave.StartTime = TimeSpan.Parse("08:30");
leave.EndTime = TimeSpan.Parse("17:30");

objectSpace.CommitChanges();

// Submit for approval
var result = SignStatusManager.Approve(leave);

Best Practices

  • Validation: Ensure all required fields are set before submission
  • Date Handling: Consider working hours when calculating leave duration
  • Localization: Use CaptionHelper.GetLocalizedText() for user-facing messages

License

MIT License

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.0.0.7 96 1/28/2026
0.0.0.6 88 1/21/2026