123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687 |
- @page "/UploadData"
- @using System.ComponentModel.DataAnnotations;
- @using System.Text.Json;
- @using System.ComponentModel
- @using AntDesign.TableModels
- @using AntDesign.Form
-
- <style>
- .steps-content {
- margin-top: 16px;
- border: 1px dashed #e9e9e9;
- border-radius: 6px;
- background-color: #fafafa;
- min-height: 200px;
- text-align: center;
- padding-top: 80px;
- }
- .steps-action {
- margin-top: 24px;
- }
- </style>
- <Form Model="@model" LabelColSpan="10" WrapperColSpan="16" style="margin-left: 50px;margin-right:50px;">
-
- <wispro.sp.web.Share.SPStep CurrentStep="0" />
- <div class=" ant-upload ant-upload-select-text ant-upload-drag ant-upload-select">
- <FormItem>
- <p />
- </FormItem>
- <FormItem Label="绩效月份" LabelColSpan="10" WrapperColSpan="5">
- <DatePicker TValue="DateTime?" Picker="@DatePickerType.Month" @bind-Value="@context.Month" />
- </FormItem>
- <div tabindex="0" class="ant-upload" style="position:relative;" data-fileid="5c8e2c2b-92b2-4b57-bac4-89c3f44c64d4" role="button" _bl_1728="">
- <Upload Action="" Name="file">
- <p class="ant-upload-drag-icon">
- <Icon Type="upload" />
- </p>
- <p class="ant-upload-text">请选择包括绩效事项记录的Excel文件</p>
- <p class="ant-upload-hint">
- 请从维德流程管理系统中导出上月的申请案件完成事项报表文件,并将其上传到系统开始绩效核算流程
- </p>
- </Upload>
- </div>
- <p />
- <FormItem LabelColSpan="20" WrapperColSpan="16">
- <Button Type="@ButtonType.Primary" HtmlType="submit">
- 上传
- </Button>
- </FormItem>
- </div>
- </Form>
- @code {
- public class Model
- {
- public DateTime? Month { get; set; } = DateTime.Now.AddMonths(-1);
- }
-
- private Model model = new Model();
- private void OnFinish(EditContext editContext)
- {
- //Console.WriteLine($"Success:{JsonSerializer.Serialize(model)}");
- }
- private void OnFinishFailed(EditContext editContext)
- {
- //Console.WriteLine($"Failed:{JsonSerializer.Serialize(model)}");
- }
- }
|