1.修改处方报表中病历号字段由patient_no改为patient_id.
2.配置文件添加是否自动写标签数量AutoWriteNum,根据该字段标识开机后是否重写标签数量
This commit is contained in:
parent
102905d800
commit
cc88fca01d
|
@ -61,6 +61,8 @@
|
|||
<add key="fingerIp" value="192.168.50.201"/>
|
||||
<!--一个抽屉对应标签数-->
|
||||
<add key="labelCount" value="2"/>
|
||||
<!--是否自动写标签数量-->
|
||||
<add key="AutoWriteNum" value="true"/>
|
||||
|
||||
</appSettings>
|
||||
</configuration>
|
|
@ -301,7 +301,7 @@ namespace DM_Weight.Report
|
|||
});
|
||||
Report.LoadFromFile(new FileInfo(AppDomain.CurrentDomain.BaseDirectory) + "ReportTemp//account_book_order.grf");
|
||||
|
||||
SQL = $@"SELECT DISTINCT oi.recv_date,oi.p_name,oi.sex,oi.age,oi.id_number,oi.patient_no,oi.disease,dm.manu_no,od.Quantity,oi.doctor_name,oi.order_no,dm.reviewer,dm.operator,ul.user_name operatorName,ul2.user_name reviewerName
|
||||
SQL = $@"SELECT DISTINCT oi.recv_date,oi.p_name,oi.sex,oi.age,oi.id_number,oi.patient_no,oi.patient_id,oi.disease,dm.manu_no,od.Quantity,oi.doctor_name,oi.order_no,dm.reviewer,dm.operator,ul.user_name operatorName,ul2.user_name reviewerName
|
||||
,di.Drug_name,di.Drug_spec,di.big_unit,di.drug_id,dm.receivePerson
|
||||
from order_info oi inner join order_detail od on oi.order_no=od.Order_No
|
||||
LEFT JOIN dm_machine_record dm on oi.order_no=dm.invoice_id
|
||||
|
|
|
@ -43,7 +43,7 @@
|
|||
{
|
||||
"Name":"病历号",
|
||||
"Type":"Integer",
|
||||
"DBFieldName":"patient_no"
|
||||
"DBFieldName":"patient_id"
|
||||
},
|
||||
{
|
||||
"Name":"疾病名称",
|
||||
|
|
|
@ -88,9 +88,12 @@ namespace DM_Weight.ViewModels
|
|||
_regionManager.RequestNavigate("MainRegion", "BeforeLogin");
|
||||
|
||||
}));
|
||||
|
||||
string bAutoWriteNum = ConfigurationManager.AppSettings["AutoWriteNum"] ?? "false";
|
||||
if (bAutoWriteNum == "true")
|
||||
{
|
||||
Task.Factory.StartNew(() => BindStock());
|
||||
}
|
||||
}
|
||||
|
||||
void doMyPrismEvent2(AlertMsg msg)
|
||||
{
|
||||
|
@ -115,7 +118,8 @@ namespace DM_Weight.ViewModels
|
|||
.Where(cs => cs.DrugId != null)
|
||||
.Where(cs => cs.MachineId.Equals(ConfigurationManager.AppSettings["machineId"] ?? "DM1")).ToList();
|
||||
singleChannels = singleChannels.GroupBy(cs => new { cs.DrawerNo, cs.ColNo })
|
||||
.Select(cs => {
|
||||
.Select(cs =>
|
||||
{
|
||||
var ret = cs.First();
|
||||
ret.Quantity = cs.Sum(xt => xt.Quantity);
|
||||
return ret;
|
||||
|
|
Loading…
Reference in New Issue