修改交接柜用户同时修改毒麻柜用户
This commit is contained in:
parent
336ddb3f6f
commit
3554a2e824
|
|
@ -255,7 +255,6 @@
|
||||||
);
|
);
|
||||||
logger.Info($"抽屉打开失败");
|
logger.Info($"抽屉打开失败");
|
||||||
RestData();
|
RestData();
|
||||||
PortUtil.Operate = false;
|
|
||||||
stop();
|
stop();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -277,7 +276,6 @@
|
||||||
await GetWeightQuantity();
|
await GetWeightQuantity();
|
||||||
}
|
}
|
||||||
this.status = 3;
|
this.status = 3;
|
||||||
PortUtil.Operate = false;
|
|
||||||
stop();
|
stop();
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
@ -357,7 +355,8 @@
|
||||||
|
|
||||||
void RestData()
|
void RestData()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
PortUtil.Operate = false;
|
||||||
PortUtil.speechSynthesizer.SpeakAsyncCancelAll();
|
PortUtil.speechSynthesizer.SpeakAsyncCancelAll();
|
||||||
this.status = 0;
|
this.status = 0;
|
||||||
this.BeforeQuantity = new int[9];
|
this.BeforeQuantity = new int[9];
|
||||||
|
|
|
||||||
|
|
@ -712,6 +712,7 @@
|
||||||
void RestData()
|
void RestData()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
PortUtil.Operate = false;
|
||||||
PortUtil.speechSynthesizer.SpeakAsyncCancelAll();
|
PortUtil.speechSynthesizer.SpeakAsyncCancelAll();
|
||||||
this.status = 0;
|
this.status = 0;
|
||||||
this.BeforeQuantity = new int[9];
|
this.BeforeQuantity = new int[9];
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,7 @@
|
||||||
@page "/"
|
@page "/"
|
||||||
|
@using MasaBlazorApp3.Pojo.Config
|
||||||
@using MasaBlazorApp3.Util
|
@using MasaBlazorApp3.Util
|
||||||
|
@using Microsoft.Extensions.Options
|
||||||
@using log4net
|
@using log4net
|
||||||
@layout EmptyLayout
|
@layout EmptyLayout
|
||||||
|
|
||||||
|
|
@ -189,6 +191,7 @@
|
||||||
|
|
||||||
Timer timer;
|
Timer timer;
|
||||||
@inject PortUtil _portUtil;
|
@inject PortUtil _portUtil;
|
||||||
|
@inject IOptions<DrawerConfig> drawerSetting;
|
||||||
private readonly ILog logger = LogManager.GetLogger(typeof(Home));
|
private readonly ILog logger = LogManager.GetLogger(typeof(Home));
|
||||||
@inject Microsoft.Extensions.Options.IOptions<Pojo.Config.SettingConfig> setting;
|
@inject Microsoft.Extensions.Options.IOptions<Pojo.Config.SettingConfig> setting;
|
||||||
bool currentPage = true;
|
bool currentPage = true;
|
||||||
|
|
@ -321,10 +324,16 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
void logout()
|
async void logout()
|
||||||
{
|
{
|
||||||
if (globalStateService.Operator != null)
|
if (globalStateService.Operator != null)
|
||||||
{
|
{ //查询所有标签抽屉,设置标签灯为灭灯
|
||||||
|
int[] labels = drawerSetting.Value.label;
|
||||||
|
for (int i = 0; i < labels.Length; i++)
|
||||||
|
{
|
||||||
|
await _portUtil.setOffLight(labels[i]);
|
||||||
|
}
|
||||||
|
PortUtil.speechSynthesizer.SpeakAsyncCancelAll();
|
||||||
globalStateService.Operator = null;
|
globalStateService.Operator = null;
|
||||||
globalStateService.Reviewer = null;
|
globalStateService.Reviewer = null;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -189,6 +189,7 @@
|
||||||
|
|
||||||
async Task CancelOpera()
|
async Task CancelOpera()
|
||||||
{
|
{
|
||||||
|
PortUtil.Operate = false;
|
||||||
PortUtil.speechSynthesizer.SpeakAsyncCancelAll();
|
PortUtil.speechSynthesizer.SpeakAsyncCancelAll();
|
||||||
status = 0;
|
status = 0;
|
||||||
dialogService.Close(false);
|
dialogService.Close(false);
|
||||||
|
|
@ -261,6 +262,7 @@
|
||||||
var b = await PortUtil.OpenDrawerStatusForErZhong(drawerNo);
|
var b = await PortUtil.OpenDrawerStatusForErZhong(drawerNo);
|
||||||
if (b)
|
if (b)
|
||||||
{
|
{
|
||||||
|
PortUtil.Operate = true;
|
||||||
PortUtil.speechSynthesizer.SpeakAsyncCancelAll();
|
PortUtil.speechSynthesizer.SpeakAsyncCancelAll();
|
||||||
PortUtil.SpeakAsync($"{drawerNo}号抽屉已经打开,请,加药");
|
PortUtil.SpeakAsync($"{drawerNo}号抽屉已经打开,请,加药");
|
||||||
options._data = 1;
|
options._data = 1;
|
||||||
|
|
@ -421,7 +423,7 @@
|
||||||
|
|
||||||
void RestData()
|
void RestData()
|
||||||
{
|
{
|
||||||
|
PortUtil.Operate = true;
|
||||||
this.status = 0;
|
this.status = 0;
|
||||||
_flagList.Clear();
|
_flagList.Clear();
|
||||||
this.ColNos.Clear();
|
this.ColNos.Clear();
|
||||||
|
|
|
||||||
|
|
@ -213,6 +213,7 @@
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
PortUtil.Operate = true;
|
||||||
var b = await PortUtil.OpenDrawerStatusForErZhong(drawerNo);
|
var b = await PortUtil.OpenDrawerStatusForErZhong(drawerNo);
|
||||||
if (b)
|
if (b)
|
||||||
{
|
{
|
||||||
|
|
@ -381,7 +382,7 @@
|
||||||
|
|
||||||
void RestData()
|
void RestData()
|
||||||
{
|
{
|
||||||
|
PortUtil.Operate=false;
|
||||||
PortUtil.speechSynthesizer.SpeakAsyncCancelAll();
|
PortUtil.speechSynthesizer.SpeakAsyncCancelAll();
|
||||||
this.status = 0;
|
this.status = 0;
|
||||||
this.BeforeQuantity = new int[9];
|
this.BeforeQuantity = new int[9];
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
@page "/loginDialog"
|
@page "/loginDialog";
|
||||||
@using MasaBlazorApp3.Pojo.Config;
|
@using MasaBlazorApp3.Pojo.Config;
|
||||||
@using MasaBlazorApp3.Pojo.Vo;
|
@using MasaBlazorApp3.Pojo.Vo;
|
||||||
@using MasaBlazorApp3.Util;
|
@using MasaBlazorApp3.Util;
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
@namespace MasaBlazorApp3
|
@namespace MasaBlazorApp3
|
||||||
@using MasaBlazorApp3.Pojo.Config
|
@using MasaBlazorApp3.Pojo.Config
|
||||||
@using MasaBlazorApp3.Util
|
@using MasaBlazorApp3.Util
|
||||||
@using Microsoft.Extensions.Options
|
@using Microsoft.Extensions.Options;
|
||||||
@using log4net
|
@using log4net;
|
||||||
@inherits LayoutComponentBase
|
@inherits LayoutComponentBase;
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.my-tab-menu {
|
.my-tab-menu {
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@
|
||||||
//"drawerProtocol": 485,
|
//"drawerProtocol": 485,
|
||||||
"scanCodePortPath": "COM1",
|
"scanCodePortPath": "COM1",
|
||||||
"canBusExsit": true,
|
"canBusExsit": true,
|
||||||
"canBusPortPath": "COM33",
|
"canBusPortPath": "COM2",
|
||||||
"totalDrawerCount": 16,
|
"totalDrawerCount": 16,
|
||||||
"canBusTwoExsit": true,
|
"canBusTwoExsit": true,
|
||||||
"StorageCan": 1,
|
"StorageCan": 1,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue