多处方取药添加取药人;指纹登录添加machinid字段验证,去掉启动软件写标签数量功能。
This commit is contained in:
parent
27d5886dda
commit
336531bb2a
|
@ -28,7 +28,7 @@
|
||||||
<!-- 自动退出时间,单位秒,为0时不自动退出 -->
|
<!-- 自动退出时间,单位秒,为0时不自动退出 -->
|
||||||
<add key="autoExit" value="0"/>
|
<add key="autoExit" value="0"/>
|
||||||
<!--报表数据库连接-->
|
<!--报表数据库连接-->
|
||||||
<add key="gridConnectionString" value="MYSQL; Database=sanya_xianchang2; Password=root; Port=3306; Server=127.0.0.1; User=root;"/>
|
<add key="gridConnectionString" value="MYSQL; Database=sanya_xx; Password=root; Port=3306; Server=127.0.0.1; User=root;"/>
|
||||||
<!-- 查询处方是orderNo还是orderGroupNo -->
|
<!-- 查询处方是orderNo还是orderGroupNo -->
|
||||||
<add key="OrderNoName" value="orderNo" />
|
<add key="OrderNoName" value="orderNo" />
|
||||||
<!-- 后门耗材板地址 没有则填写0-->
|
<!-- 后门耗材板地址 没有则填写0-->
|
||||||
|
|
|
@ -545,6 +545,7 @@ namespace DM_Weight.Port
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Thread.Sleep(50);
|
||||||
// 灯在闪烁继续监听状态
|
// 灯在闪烁继续监听状态
|
||||||
GetBackDoorState();
|
GetBackDoorState();
|
||||||
}
|
}
|
||||||
|
@ -581,6 +582,7 @@ namespace DM_Weight.Port
|
||||||
});
|
});
|
||||||
logger.Info($"储物箱打开成功");
|
logger.Info($"储物箱打开成功");
|
||||||
}
|
}
|
||||||
|
Thread.Sleep(50);
|
||||||
// 灯在闪烁继续监听状态
|
// 灯在闪烁继续监听状态
|
||||||
GetBackDoorState();
|
GetBackDoorState();
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,444 @@
|
||||||
|
{
|
||||||
|
"Version":"6.8.1.1",
|
||||||
|
"Font":{
|
||||||
|
"Name":"宋体",
|
||||||
|
"Size":105000,
|
||||||
|
"Weight":400,
|
||||||
|
"Charset":134
|
||||||
|
},
|
||||||
|
"Printer":{
|
||||||
|
"Oriention":"Landscape",
|
||||||
|
"LeftMargin":1,
|
||||||
|
"TopMargin":1.4287,
|
||||||
|
"RightMargin":1,
|
||||||
|
"BottomMargin":1.8
|
||||||
|
},
|
||||||
|
"DetailGrid":{
|
||||||
|
"CenterView":true,
|
||||||
|
"Recordset":{
|
||||||
|
"Field":[
|
||||||
|
{
|
||||||
|
"Name":"日期",
|
||||||
|
"Type":"DateTime",
|
||||||
|
"Format":"yyyy/MM/dd",
|
||||||
|
"DBFieldName":"opt_date"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name":"品名",
|
||||||
|
"DBFieldName":"drug_name"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name":"规格",
|
||||||
|
"DBFieldName":"drug_spec"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name":"上班结存数",
|
||||||
|
"Type":"Integer",
|
||||||
|
"DBFieldName":"beforenum"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name":"领用数",
|
||||||
|
"Type":"Integer",
|
||||||
|
"DBFieldName":"getnum"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name":"消耗数",
|
||||||
|
"Type":"Integer",
|
||||||
|
"DBFieldName":"usenum"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name":"批号",
|
||||||
|
"DBFieldName":"manu_no"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name":"余",
|
||||||
|
"Type":"Integer",
|
||||||
|
"DBFieldName":"surplus"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name":"交班人",
|
||||||
|
"DBFieldName":"fromoperator"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name":"接班人",
|
||||||
|
"DBFieldName":"tooperator"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"Column":[
|
||||||
|
{
|
||||||
|
"Name":"品名",
|
||||||
|
"Width":4.60375
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name":"规格",
|
||||||
|
"Width":2.59292
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name":"单位"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name":"基数数量"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name":"现存数量"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name":"处方数量"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name":"空安瓿数"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name":"交接班时间"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name":"上班结存数",
|
||||||
|
"Width":1.4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name":"领用数",
|
||||||
|
"Width":1.4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name":"消耗数",
|
||||||
|
"Width":1.4
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name":"批号",
|
||||||
|
"Width":1.98438
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name":"余",
|
||||||
|
"Width":0.608542
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name":"交班人",
|
||||||
|
"Width":2.80458
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name":"接班人",
|
||||||
|
"Width":2.35479
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name":"备注"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"ColumnContent":{
|
||||||
|
"Height":0.85,
|
||||||
|
"ColumnContentCell":[
|
||||||
|
{
|
||||||
|
"Column":"品名",
|
||||||
|
"DataField":"品名"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Column":"规格",
|
||||||
|
"TextAlign":"MiddleCenter",
|
||||||
|
"DataField":"规格"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Column":"单位"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Column":"基数数量"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Column":"现存数量"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Column":"处方数量"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Column":"空安瓿数"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Column":"交接班时间"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Column":"上班结存数",
|
||||||
|
"TextAlign":"MiddleCenter",
|
||||||
|
"DataField":"上班结存数"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Column":"领用数",
|
||||||
|
"TextAlign":"MiddleCenter",
|
||||||
|
"DataField":"领用数"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Column":"消耗数",
|
||||||
|
"TextAlign":"MiddleCenter",
|
||||||
|
"DataField":"消耗数"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Column":"批号",
|
||||||
|
"TextAlign":"MiddleCenter",
|
||||||
|
"DataField":"批号"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Column":"余",
|
||||||
|
"TextAlign":"MiddleCenter",
|
||||||
|
"DataField":"余"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Column":"交班人",
|
||||||
|
"TextAlign":"MiddleCenter",
|
||||||
|
"DataField":"交班人"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Column":"接班人",
|
||||||
|
"TextAlign":"MiddleCenter",
|
||||||
|
"DataField":"接班人"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Column":"备注"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"ColumnTitle":{
|
||||||
|
"Height":1.00542,
|
||||||
|
"RepeatStyle":"OnPage",
|
||||||
|
"ColumnTitleCell":[
|
||||||
|
{
|
||||||
|
"GroupTitle":false,
|
||||||
|
"Column":"品名",
|
||||||
|
"Font":{
|
||||||
|
"Name":"宋体",
|
||||||
|
"Size":105000,
|
||||||
|
"Bold":true,
|
||||||
|
"Charset":134
|
||||||
|
},
|
||||||
|
"TextAlign":"MiddleCenter",
|
||||||
|
"Text":"品名"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupTitle":false,
|
||||||
|
"Column":"规格",
|
||||||
|
"Font":{
|
||||||
|
"Name":"宋体",
|
||||||
|
"Size":105000,
|
||||||
|
"Bold":true,
|
||||||
|
"Charset":134
|
||||||
|
},
|
||||||
|
"TextAlign":"MiddleCenter",
|
||||||
|
"Text":"规格"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupTitle":false,
|
||||||
|
"Column":"单位",
|
||||||
|
"Font":{
|
||||||
|
"Name":"宋体",
|
||||||
|
"Size":105000,
|
||||||
|
"Bold":true,
|
||||||
|
"Charset":134
|
||||||
|
},
|
||||||
|
"TextAlign":"MiddleCenter",
|
||||||
|
"Text":"单位"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupTitle":false,
|
||||||
|
"Column":"基数数量",
|
||||||
|
"Font":{
|
||||||
|
"Name":"宋体",
|
||||||
|
"Size":105000,
|
||||||
|
"Bold":true,
|
||||||
|
"Charset":134
|
||||||
|
},
|
||||||
|
"TextAlign":"MiddleCenter",
|
||||||
|
"Text":"基数数量"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupTitle":false,
|
||||||
|
"Column":"现存数量",
|
||||||
|
"Font":{
|
||||||
|
"Name":"宋体",
|
||||||
|
"Size":105000,
|
||||||
|
"Bold":true,
|
||||||
|
"Charset":134
|
||||||
|
},
|
||||||
|
"TextAlign":"MiddleCenter",
|
||||||
|
"Text":"现存数量"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupTitle":false,
|
||||||
|
"Column":"处方数量",
|
||||||
|
"Font":{
|
||||||
|
"Name":"宋体",
|
||||||
|
"Size":105000,
|
||||||
|
"Bold":true,
|
||||||
|
"Charset":134
|
||||||
|
},
|
||||||
|
"TextAlign":"MiddleCenter",
|
||||||
|
"Text":"处方数量"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupTitle":false,
|
||||||
|
"Column":"空安瓿数",
|
||||||
|
"Font":{
|
||||||
|
"Name":"宋体",
|
||||||
|
"Size":105000,
|
||||||
|
"Bold":true,
|
||||||
|
"Charset":134
|
||||||
|
},
|
||||||
|
"TextAlign":"MiddleCenter",
|
||||||
|
"Text":"空安瓿数"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupTitle":false,
|
||||||
|
"Column":"交接班时间",
|
||||||
|
"Font":{
|
||||||
|
"Name":"宋体",
|
||||||
|
"Size":105000,
|
||||||
|
"Bold":true,
|
||||||
|
"Charset":134
|
||||||
|
},
|
||||||
|
"TextAlign":"MiddleCenter",
|
||||||
|
"Text":"交接班时间"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupTitle":false,
|
||||||
|
"Column":"上班结存数",
|
||||||
|
"Font":{
|
||||||
|
"Name":"宋体",
|
||||||
|
"Size":105000,
|
||||||
|
"Bold":true,
|
||||||
|
"Charset":134
|
||||||
|
},
|
||||||
|
"WordWrap":true,
|
||||||
|
"TextAlign":"MiddleCenter",
|
||||||
|
"Text":"上班\r\n结存数"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupTitle":false,
|
||||||
|
"Column":"领用数",
|
||||||
|
"Font":{
|
||||||
|
"Name":"宋体",
|
||||||
|
"Size":105000,
|
||||||
|
"Bold":true,
|
||||||
|
"Charset":134
|
||||||
|
},
|
||||||
|
"WordWrap":true,
|
||||||
|
"TextAlign":"MiddleCenter",
|
||||||
|
"Text":"领用数"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupTitle":false,
|
||||||
|
"Column":"消耗数",
|
||||||
|
"Font":{
|
||||||
|
"Name":"宋体",
|
||||||
|
"Size":105000,
|
||||||
|
"Bold":true,
|
||||||
|
"Charset":134
|
||||||
|
},
|
||||||
|
"WordWrap":true,
|
||||||
|
"TextAlign":"MiddleCenter",
|
||||||
|
"Text":"消耗数"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupTitle":false,
|
||||||
|
"Column":"批号",
|
||||||
|
"Font":{
|
||||||
|
"Name":"宋体",
|
||||||
|
"Size":105000,
|
||||||
|
"Bold":true,
|
||||||
|
"Charset":134
|
||||||
|
},
|
||||||
|
"TextAlign":"MiddleCenter",
|
||||||
|
"Text":"批号"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupTitle":false,
|
||||||
|
"Column":"余",
|
||||||
|
"Font":{
|
||||||
|
"Name":"宋体",
|
||||||
|
"Size":105000,
|
||||||
|
"Bold":true,
|
||||||
|
"Charset":134
|
||||||
|
},
|
||||||
|
"TextAlign":"MiddleCenter",
|
||||||
|
"Text":"余"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupTitle":false,
|
||||||
|
"Column":"交班人",
|
||||||
|
"Font":{
|
||||||
|
"Name":"宋体",
|
||||||
|
"Size":105000,
|
||||||
|
"Bold":true,
|
||||||
|
"Charset":134
|
||||||
|
},
|
||||||
|
"TextAlign":"MiddleCenter",
|
||||||
|
"Text":"交班人"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupTitle":false,
|
||||||
|
"Column":"接班人",
|
||||||
|
"Font":{
|
||||||
|
"Name":"宋体",
|
||||||
|
"Size":105000,
|
||||||
|
"Bold":true,
|
||||||
|
"Charset":134
|
||||||
|
},
|
||||||
|
"TextAlign":"MiddleCenter",
|
||||||
|
"Text":"接班人"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"GroupTitle":false,
|
||||||
|
"Column":"备注",
|
||||||
|
"TextAlign":"MiddleCenter",
|
||||||
|
"Text":"备注"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"Group":[
|
||||||
|
{
|
||||||
|
"Name":"Group1",
|
||||||
|
"ByFields":"日期",
|
||||||
|
"GroupHeader":{
|
||||||
|
"Height":0,
|
||||||
|
"PrintGridBorder":false,
|
||||||
|
"NewPageColumn":"Before"
|
||||||
|
},
|
||||||
|
"GroupFooter":{
|
||||||
|
"Visible":false,
|
||||||
|
"PrintGridBorder":false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"Parameter":[
|
||||||
|
{
|
||||||
|
"Name":"machine_id"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name":"startDate",
|
||||||
|
"DataType":"DateTime"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name":"endDate",
|
||||||
|
"DataType":"DateTime"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"ReportHeader":[
|
||||||
|
{
|
||||||
|
"Name":"ReportHeader1",
|
||||||
|
"Height":1.79917,
|
||||||
|
"Control":[
|
||||||
|
{
|
||||||
|
"Type":"MemoBox",
|
||||||
|
"Name":"MemoBox1",
|
||||||
|
"Dock":"Fill",
|
||||||
|
"Center":"Both",
|
||||||
|
"Font":{
|
||||||
|
"Name":"宋体",
|
||||||
|
"Size":262500,
|
||||||
|
"Bold":true,
|
||||||
|
"Charset":134
|
||||||
|
},
|
||||||
|
"TextAlign":"MiddleCenter",
|
||||||
|
"Text":"麻醉药品、第一类精神药品交接班记录"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"RepeatOnPage":true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
|
@ -331,12 +331,14 @@ namespace DM_Weight.ViewModels
|
||||||
{
|
{
|
||||||
if (Status == 0)
|
if (Status == 0)
|
||||||
{
|
{
|
||||||
|
logger.Info("开始盘点");
|
||||||
enumerable = ChannelStocks.GroupBy(cs => cs.DrawerNo, cs => cs);
|
enumerable = ChannelStocks.GroupBy(cs => cs.DrawerNo, cs => cs);
|
||||||
//enumerable = ChannelStocks.GroupBy(cs => cs.Location, cs => cs);
|
//enumerable = ChannelStocks.GroupBy(cs => cs.Location, cs => cs);
|
||||||
enumerator = enumerable.GetEnumerator();
|
enumerator = enumerable.GetEnumerator();
|
||||||
enumerator.MoveNext();
|
enumerator.MoveNext();
|
||||||
Status = 1;
|
Status = 1;
|
||||||
OpenOneByOne();
|
OpenOneByOne();
|
||||||
|
logger.Info("结束盘点");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -343,7 +343,7 @@ _exitCommand ??= new DelegateCommand(Exit);
|
||||||
{
|
{
|
||||||
UserList userList = SqlSugarHelper.Db.Queryable<UserList>()
|
UserList userList = SqlSugarHelper.Db.Queryable<UserList>()
|
||||||
.Includes<RoleDm>(u => u.Role)
|
.Includes<RoleDm>(u => u.Role)
|
||||||
.First(u => u.Id == msg.Id);
|
.First(u => u.Id == msg.Id&& ConfigurationManager.AppSettings["machineId"].ToString().Equals(u.MachineId));
|
||||||
|
|
||||||
//UserList userList = new UserService().CheckUserByFingerPrinter(msg.Id);
|
//UserList userList = new UserService().CheckUserByFingerPrinter(msg.Id);
|
||||||
|
|
||||||
|
|
|
@ -88,11 +88,11 @@ namespace DM_Weight.ViewModels
|
||||||
_regionManager.RequestNavigate("MainRegion", "BeforeLogin");
|
_regionManager.RequestNavigate("MainRegion", "BeforeLogin");
|
||||||
|
|
||||||
}));
|
}));
|
||||||
string bAutoWriteNum = ConfigurationManager.AppSettings["AutoWriteNum"] ?? "false";
|
//string bAutoWriteNum = ConfigurationManager.AppSettings["AutoWriteNum"] ?? "false";
|
||||||
if (bAutoWriteNum == "true")
|
//if (bAutoWriteNum == "true")
|
||||||
{
|
//{
|
||||||
Task.Factory.StartNew(() => BindStock());
|
// Task.Factory.StartNew(() => BindStock());
|
||||||
}
|
//}
|
||||||
}
|
}
|
||||||
|
|
||||||
void doMyPrismEvent2(AlertMsg msg)
|
void doMyPrismEvent2(AlertMsg msg)
|
||||||
|
|
|
@ -31,6 +31,14 @@ namespace DM_Weight.ViewModels
|
||||||
private static readonly DateTime Jan1st1970 = new DateTime
|
private static readonly DateTime Jan1st1970 = new DateTime
|
||||||
(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
|
(1970, 1, 1, 0, 0, 0, DateTimeKind.Utc);
|
||||||
|
|
||||||
|
//取药人(科室)
|
||||||
|
private string receivePerson;
|
||||||
|
public string ReceivePerson
|
||||||
|
{
|
||||||
|
get => receivePerson;
|
||||||
|
set => SetProperty(ref receivePerson, value);
|
||||||
|
}
|
||||||
|
|
||||||
private PortUtil _portUtil;
|
private PortUtil _portUtil;
|
||||||
IEventAggregator _eventAggregator;
|
IEventAggregator _eventAggregator;
|
||||||
IDialogService _dialogService;
|
IDialogService _dialogService;
|
||||||
|
@ -412,7 +420,12 @@ namespace DM_Weight.ViewModels
|
||||||
OperationTime = DateTime.Now,
|
OperationTime = DateTime.Now,
|
||||||
Quantity = orderTakeQuantity,
|
Quantity = orderTakeQuantity,
|
||||||
Type = 2,
|
Type = 2,
|
||||||
InvoiceId = InvoiceId
|
InvoiceId = InvoiceId,
|
||||||
|
StockQuantity = nowChannels.Sum(it => it.Quantity),
|
||||||
|
ManunoQuantity = nowChannels.FindAll(it2 => it2.ManuNo == it.ManuNo).Sum(it => it.Quantity),
|
||||||
|
SupplierDept = ConfigurationManager.AppSettings["receiveDept"].ToString(),
|
||||||
|
ReceiveDept = OrderInfo[0].DeptName,
|
||||||
|
ReceivePerson = ReceivePerson
|
||||||
//,StockQuantity = nowChannels.Sum(it => it.Quantity)
|
//,StockQuantity = nowChannels.Sum(it => it.Quantity)
|
||||||
}).ExecuteCommand();
|
}).ExecuteCommand();
|
||||||
}
|
}
|
||||||
|
|
|
@ -149,6 +149,10 @@
|
||||||
Content="取药"
|
Content="取药"
|
||||||
Command="{Binding OpenDrawer}">
|
Command="{Binding OpenDrawer}">
|
||||||
</Button>-->
|
</Button>-->
|
||||||
|
<TextBox Margin="6" Width="110"
|
||||||
|
Style="{StaticResource MaterialDesignOutlinedTextBox}"
|
||||||
|
VerticalAlignment="Top" Text="{Binding ReceivePerson}"
|
||||||
|
materialDesign:HintAssist.Hint="取药人(科室)" />
|
||||||
<Button
|
<Button
|
||||||
Margin="2"
|
Margin="2"
|
||||||
Style="{StaticResource MaterialDesignRaisedAccentButton}"
|
Style="{StaticResource MaterialDesignRaisedAccentButton}"
|
||||||
|
|
Loading…
Reference in New Issue