优化样品管理

This commit is contained in:
2026-05-08 15:08:20 +08:00
parent a28bfb9198
commit 06a5f9707d
9 changed files with 215 additions and 72 deletions

View File

@@ -9,7 +9,7 @@ using System.Threading.Tasks;
namespace SamplePre.Models.Ext
{
public class tube_input_ext : tube_input,INotifyPropertyChanged
public class tube_input_ext : sample_input,INotifyPropertyChanged
{
//public bool isChecked { get; set; } = false;

View File

@@ -1,12 +1,13 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SamplePre.Models.Models
{
public class sample_exec
public class sample_exec :INotifyPropertyChanged
{
public string id { get; set; }
public string standrad_id { get; set; }
@@ -14,9 +15,22 @@ namespace SamplePre.Models.Models
public string cmd_content2 { get; set; }
public string qrcodes { get; set; }
public int sample_count { get; set; }
public string exec_state { get; set; }
//public string exec_state { get; set; }
private string _exec_state;
public string exec_state
{
get { return _exec_state; }
set { _exec_state = value;
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(exec_state)));
}
}
public DateTime exec_date { get; set; }
public event PropertyChangedEventHandler? PropertyChanged;
}
}

View File

@@ -7,7 +7,7 @@ using System.Threading.Tasks;
namespace Models.Models
{
public class tube_input
public class sample_input
{
public string qrcode { get; set; }
public string item_name { get; set; }
@@ -20,5 +20,11 @@ namespace Models.Models
public int tube_count { get; set; }
public string bach_no { get; set; }
public string exec_state { get; set; }
public DateTime exec_date { get; set; }
public string exec_id { get; set; }
}
}