添加报表信息录入及报表导出
This commit is contained in:
parent
9c3da430ce
commit
f4de7f9529
|
@ -42,7 +42,7 @@
|
||||||
<!-- 无操作退出录像时间,单位秒,为0时不退出录像 -->
|
<!-- 无操作退出录像时间,单位秒,为0时不退出录像 -->
|
||||||
<add key="stopRecord" value="0"/>
|
<add key="stopRecord" value="0"/>
|
||||||
|
|
||||||
<add key="gridConnectionString" value="MYSQL; Database=xiangxiang; Password=root; Port=3306; Server=127.0.0.1; User=root;"/>
|
<add key="gridConnectionString" value="MYSQL; Database=xiangxiang_xianchang; 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-->
|
||||||
|
@ -73,9 +73,9 @@
|
||||||
<!--温度查询定时执行时间-->
|
<!--温度查询定时执行时间-->
|
||||||
<add key="Interval" value="60000"/>
|
<add key="Interval" value="60000"/>
|
||||||
<!--冰箱状态1关闭;0打开-->
|
<!--冰箱状态1关闭;0打开-->
|
||||||
<add key="FridgeState" value="0"/>
|
<add key="FridgeState" value="1"/>
|
||||||
<!--报警状态1关闭;0打开-->
|
<!--报警状态1关闭;0打开-->
|
||||||
<add key="AlarmState" value="0"/>
|
<add key="AlarmState" value="1"/>
|
||||||
<!--冰箱不在区间超时时间(超过指定的时间仍不在区间则提示)单位分-->
|
<!--冰箱不在区间超时时间(超过指定的时间仍不在区间则提示)单位分-->
|
||||||
<add key="OutRangeTime" value="20"/>
|
<add key="OutRangeTime" value="20"/>
|
||||||
<!--冰箱是否异常状态,0正常1异常--><!--
|
<!--冰箱是否异常状态,0正常1异常--><!--
|
||||||
|
@ -120,5 +120,8 @@
|
||||||
<!--海康威视密码-->
|
<!--海康威视密码-->
|
||||||
<add key="HIKPassword" value="HKC123456"/>
|
<add key="HIKPassword" value="HKC123456"/>
|
||||||
|
|
||||||
|
<!--报表药品9种(写全称,与数据库中完全一致)-->
|
||||||
|
<add key="DrugNames" value="'枸橼酸舒芬太尼注射液(医5)','盐酸麻黄碱注射液(医)','咪达唑仑注射液(医)(国基)','盐酸纳布啡注射液(医限5)','盐酸曲马多注射液(医)'"/>
|
||||||
|
|
||||||
</appSettings>
|
</appSettings>
|
||||||
</configuration>
|
</configuration>
|
|
@ -248,6 +248,9 @@ namespace DM_Weight
|
||||||
containerRegistry.RegisterForNavigation<ChangeShiftsDialog, ChangeShiftsDialogViewModel>();
|
containerRegistry.RegisterForNavigation<ChangeShiftsDialog, ChangeShiftsDialogViewModel>();
|
||||||
|
|
||||||
containerRegistry.RegisterForNavigation<AccountWindow,AccountWindowViewModel>();
|
containerRegistry.RegisterForNavigation<AccountWindow,AccountWindowViewModel>();
|
||||||
|
|
||||||
|
//报表信息录入
|
||||||
|
containerRegistry.RegisterForNavigation<AddReportDate, AddReportDateViewModel>();
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 系统设置
|
#region 系统设置
|
||||||
|
|
|
@ -135,6 +135,9 @@
|
||||||
<None Update="ReportTemp\use_jiaojie.grf">
|
<None Update="ReportTemp\use_jiaojie.grf">
|
||||||
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
</None>
|
</None>
|
||||||
|
<None Update="ReportTemp\use_jiaojie_New.grf">
|
||||||
|
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
|
||||||
|
</None>
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
|
@ -90,7 +90,7 @@ namespace DM_Weight.Models
|
||||||
public int? StockQuantity { get; set; }
|
public int? StockQuantity { get; set; }
|
||||||
|
|
||||||
private DrugBase _base;
|
private DrugBase _base;
|
||||||
[Navigate(NavigateType.OneToOne, nameof(DrugBase.DrugId), nameof(DrugId))]
|
[Navigate(NavigateType.OneToOne, nameof(DrugBase.DrugId), nameof(DrugId), whereSql: "machine_id='DM3'")]
|
||||||
public DrugBase drugBase
|
public DrugBase drugBase
|
||||||
{
|
{
|
||||||
get=> _base;
|
get=> _base;
|
||||||
|
|
|
@ -100,5 +100,20 @@ namespace DM_Weight.Models
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[SugarColumn(ColumnName = "DrawerNo")]
|
[SugarColumn(ColumnName = "DrawerNo")]
|
||||||
public int DrawerNo { get; set; }
|
public int DrawerNo { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// 日消耗总计--安瓿
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "useBottle")]
|
||||||
|
public int UseBottle { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// 日消耗总计--处方
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "useOrderNo")]
|
||||||
|
public int UseOrderNo { get; set; }
|
||||||
|
/// <summary>
|
||||||
|
/// 日消耗总计--补充
|
||||||
|
/// </summary>
|
||||||
|
[SugarColumn(ColumnName = "useAdd")]
|
||||||
|
public int UseAdd { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@ namespace DM_Weight.Models
|
||||||
///
|
///
|
||||||
///</summary>
|
///</summary>
|
||||||
[SugarTable("user_list")]
|
[SugarTable("user_list")]
|
||||||
public class UserList
|
public class UserList:ICloneable
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
|
@ -69,6 +69,11 @@ namespace DM_Weight.Models
|
||||||
[SugarColumn(ColumnName="sign" )]
|
[SugarColumn(ColumnName="sign" )]
|
||||||
public byte[] Sign { get; set; }
|
public byte[] Sign { get; set; }
|
||||||
|
|
||||||
|
public object Clone()
|
||||||
|
{
|
||||||
|
return this.MemberwiseClone();
|
||||||
|
}
|
||||||
|
|
||||||
public override string ToString()
|
public override string ToString()
|
||||||
{
|
{
|
||||||
return "userList = [UserName:" + Nickname + ", UserId:" + UserName + "]";
|
return "userList = [UserName:" + Nickname + ", UserId:" + UserName + "]";
|
||||||
|
|
|
@ -366,23 +366,26 @@ namespace DM_Weight.Report
|
||||||
Report.PrintPreview(true);
|
Report.PrintPreview(true);
|
||||||
|
|
||||||
}
|
}
|
||||||
public static void RejectionReport(string date)
|
public static void RejectionReport(DateTime? startDate, DateTime? endDate)
|
||||||
{
|
{
|
||||||
// 定义Grid++Report报表主对象
|
// 定义Grid++Report报表主对象
|
||||||
GridppReport Report = new GridppReport();
|
GridppReport Report = new GridppReport();
|
||||||
//DateTime? p_startDate = startDate ?? Convert.ToDateTime("2010-1-1");
|
string p_startDate = startDate==null? DateTime.Now.ToString("yyyy-MM-dd"): ((DateTime)startDate).ToString("yyyy-MM-dd") ;
|
||||||
//DateTime? p_endDate = endDate ?? DateTime.Now.AddDays(1);
|
string p_endDate = endDate == null ? DateTime.Now.AddDays(1).ToString("yyyy-MM-dd") : ((DateTime)endDate).ToString("yyyy-MM-dd");
|
||||||
string p_machine_id = (ConfigurationManager.AppSettings["machineId"] ?? "DM1");
|
string p_machine_id = (ConfigurationManager.AppSettings["machineId"] ?? "DM3");
|
||||||
string SQL = string.Empty;
|
string SQL = string.Empty;
|
||||||
|
|
||||||
Report.LoadFromFile(new FileInfo(AppDomain.CurrentDomain.BaseDirectory) + "ReportTemp//" + "use_jiaojie.grf");
|
Report.LoadFromFile(new FileInfo(AppDomain.CurrentDomain.BaseDirectory) + "ReportTemp//" + "use_jiaojie_New.grf");
|
||||||
SQL = $@"
|
SQL = $@"
|
||||||
SELECT YEAR(operationtime) as DMYear,MONTH(operationtime) DMMonth,DAY(operationtime) DMDay, 0 as TotalBaseNum,
|
SELECT ID,DATE_FORMAT(Senddate,'%Y/%m/%d') as SenddateMonthDay,YEAR(Senddate) as DMYear,MONTH(Senddate) DMMonth,DAY(Senddate) DMDay, 0 as TotalBaseNum,
|
||||||
DATE_FORMAT(Senddate,'%Y/%m/%d %H:%i:%s') as Senddate,SendUser as SendUser,receiveuser as ReceiveUser,realnum as SendNum,infactnum as InfactNum,emptynum as EmptyNum,
|
DATE_FORMAT(Senddate,'%Y/%m/%d %H:%i:%s') as Senddate,SendUser as SendUser,receiveuser as ReceiveUser,realnum as SendNum,infactnum as InfactNum,emptynum as EmptyNum,
|
||||||
IF(returnTime is null,'',DATE_FORMAT(returnTime,'%H:%i')) as ReturnDate,returnuser as ReturnUser,returnreceiveuser as ReturnReceiveUser,
|
returnTime as ReturnDate,returnuser as ReturnUser,returnreceiveuser as ReturnReceiveUser,
|
||||||
adduser as AddUser,addcheckuser as AddCheckUser,DATE_FORMAT(operationtime,'%Y/%m/%d %H:%i:%s') as OperationTime,drugid as drugId,drugname as drugName,drugspec,basenum as TotalNum,drawerno
|
IF(adduser is null,'',adduser) as AddUser,IF(addcheckuser is null,'',addcheckuser) as AddCheckUser,DATE_FORMAT(operationtime,'%Y/%m/%d %H:%i:%s') as OperationTime,drugid as drugId,drugname as drugName,drugspec,basenum as TotalNum,drawerno
|
||||||
from rejection_report -- where DATE_FORMAT(operationtime,'%Y-%m-%d')= '2024-09-19'
|
|
||||||
GROUP BY Senddate,drugId order by Senddate,drugId";
|
from rejection_report ";// -- where DATE_FORMAT(operationtime,'%Y-%m-%d')= '2024-09-19'
|
||||||
|
//-- GROUP BY Senddate,drugId order by Senddate,drugId";
|
||||||
|
SQL += $" where DATE_FORMAT(Senddate,'%Y-%m-%d')>= '{p_startDate}' and DATE_FORMAT(Senddate,'%Y-%m-%d')<= '{p_endDate}'";
|
||||||
|
SQL += " GROUP BY Senddate,returnTime,drugId order by Senddate,returnTime,drugId";
|
||||||
|
|
||||||
Dictionary<string, List<Dictionary<string, object>>> records = new Dictionary<string, List<Dictionary<string, object>>>();
|
Dictionary<string, List<Dictionary<string, object>>> records = new Dictionary<string, List<Dictionary<string, object>>>();
|
||||||
List<Dictionary<string, object>> tableList=SqlSugarHelper.Db.SqlQueryable<dynamic>(SQL).ToDictionaryList();
|
List<Dictionary<string, object>> tableList=SqlSugarHelper.Db.SqlQueryable<dynamic>(SQL).ToDictionaryList();
|
||||||
|
|
|
@ -1,561 +0,0 @@
|
||||||
{
|
|
||||||
"Version":"6.8.1.1",
|
|
||||||
"Font":{
|
|
||||||
"Name":"宋体",
|
|
||||||
"Size":105000,
|
|
||||||
"Weight":400,
|
|
||||||
"Charset":134
|
|
||||||
},
|
|
||||||
"Printer":{
|
|
||||||
"Oriention":"Landscape",
|
|
||||||
"LeftMargin":1,
|
|
||||||
"TopMargin":1.42875,
|
|
||||||
"RightMargin":1,
|
|
||||||
"BottomMargin":1.8
|
|
||||||
},
|
|
||||||
"DetailGrid":{
|
|
||||||
"CenterView":true,
|
|
||||||
"IsCrossTab":true,
|
|
||||||
"FixCols":2,
|
|
||||||
"AppendBlankRow":true,
|
|
||||||
"Recordset":{
|
|
||||||
"Field":[
|
|
||||||
{
|
|
||||||
"Name":"DMYear",
|
|
||||||
"Type":"Integer"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Name":"DMMonth",
|
|
||||||
"Type":"Integer"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Name":"DMDay",
|
|
||||||
"Type":"Integer"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Name":"TotalNum",
|
|
||||||
"Type":"Integer"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Name":"Senddate",
|
|
||||||
"Type":"DateTime",
|
|
||||||
"Format":"HH:mm"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Name":"SendUser"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Name":"ReceiveUser"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Name":"SendNum",
|
|
||||||
"Type":"Integer"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Name":"InfactNum",
|
|
||||||
"Type":"Integer"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Name":"EmptyNum",
|
|
||||||
"Type":"Integer"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Name":"ReturnTime",
|
|
||||||
"Type":"DateTime",
|
|
||||||
"Format":"HH:mm"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Name":"ReturnUser"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Name":"ReturnReceiveUser"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Name":"AddUser"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Name":"AddCheckUser"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Name":"drugId"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Name":"drugName"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Name":"drugSpec"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Name":"drawerno",
|
|
||||||
"Type":"Integer"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"Column":[
|
|
||||||
{
|
|
||||||
"Name":"Column4"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Name":"Column6"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Name":"Column31"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Name":"Column14"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Name":"Column19"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Name":"Column20"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Name":"Column22"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Name":"Column23"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Name":"Column24"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"ColumnContent":{
|
|
||||||
"Height":2.19604,
|
|
||||||
"ColumnContentCell":[
|
|
||||||
{
|
|
||||||
"Column":"Column4",
|
|
||||||
"TextAlign":"MiddleCenter",
|
|
||||||
"DataField":"Senddate"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Column":"Column6",
|
|
||||||
"TextAlign":"MiddleCenter",
|
|
||||||
"DataField":"SendUser"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Column":"Column31",
|
|
||||||
"TextAlign":"MiddleCenter",
|
|
||||||
"DataField":"ReceiveUser"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Column":"Column14",
|
|
||||||
"TextAlign":"MiddleCenter",
|
|
||||||
"DataField":"SendNum"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Column":"Column19",
|
|
||||||
"TextAlign":"MiddleCenter",
|
|
||||||
"DataField":"InfactNum"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Column":"Column20",
|
|
||||||
"TextAlign":"MiddleCenter",
|
|
||||||
"DataField":"EmptyNum"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Column":"Column22",
|
|
||||||
"TextAlign":"MiddleCenter",
|
|
||||||
"DataField":"ReturnTime"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Column":"Column23",
|
|
||||||
"TextAlign":"MiddleCenter",
|
|
||||||
"DataField":"ReturnUser"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Column":"Column24",
|
|
||||||
"DataField":"ReturnReceiveUser"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"ColumnTitle":{
|
|
||||||
"Height":4.10104,
|
|
||||||
"RepeatStyle":"OnGroupHeaderPage",
|
|
||||||
"ColumnTitleCell":[
|
|
||||||
{
|
|
||||||
"GroupTitle":true,
|
|
||||||
"Name":"Column3",
|
|
||||||
"ColumnTitleCell":[
|
|
||||||
{
|
|
||||||
"GroupTitle":true,
|
|
||||||
"Name":"Column12",
|
|
||||||
"ColumnTitleCell":[
|
|
||||||
{
|
|
||||||
"GroupTitle":true,
|
|
||||||
"Name":"Column25",
|
|
||||||
"ColumnTitleCell":[
|
|
||||||
{
|
|
||||||
"GroupTitle":true,
|
|
||||||
"Name":"Column26",
|
|
||||||
"ColumnTitleCell":[
|
|
||||||
{
|
|
||||||
"GroupTitle":false,
|
|
||||||
"Column":"Column4",
|
|
||||||
"TextAlign":"BottomCenter",
|
|
||||||
"Text":"发药\r\n时间"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"GroupTitle":false,
|
|
||||||
"Column":"Column6",
|
|
||||||
"TextAlign":"BottomCenter",
|
|
||||||
"Text":"发药者"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"TextAlign":"MiddleRight",
|
|
||||||
"Text":"交接状态",
|
|
||||||
"BorderCustom":true,
|
|
||||||
"Border":{
|
|
||||||
"Styles":"[DrawBottom]"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"TextAlign":"MiddleCenter",
|
|
||||||
"Text":"药品信息",
|
|
||||||
"BorderCustom":true,
|
|
||||||
"Border":{
|
|
||||||
"Styles":"[DrawRight]"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"BorderCustom":true,
|
|
||||||
"Border":{
|
|
||||||
"Styles":"[DrawRight]"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"GroupTitle":true,
|
|
||||||
"Name":"Column27",
|
|
||||||
"ColumnTitleCell":[
|
|
||||||
{
|
|
||||||
"GroupTitle":true,
|
|
||||||
"Name":"Column28",
|
|
||||||
"ColumnTitleCell":[
|
|
||||||
{
|
|
||||||
"GroupTitle":true,
|
|
||||||
"Name":"Column29",
|
|
||||||
"ColumnTitleCell":[
|
|
||||||
{
|
|
||||||
"GroupTitle":true,
|
|
||||||
"Name":"Column30",
|
|
||||||
"ColumnTitleCell":[
|
|
||||||
{
|
|
||||||
"GroupTitle":false,
|
|
||||||
"Column":"Column31",
|
|
||||||
"TextAlign":"BottomCenter",
|
|
||||||
"Text":"领药者"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"TextAlign":"MiddleCenter",
|
|
||||||
"Text":"总基数"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"TextAlign":"MiddleCenter",
|
|
||||||
"Text":"规格"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"TextAlign":"MiddleCenter",
|
|
||||||
"Text":"品名"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"GroupTitle":true,
|
|
||||||
"Name":"Column32",
|
|
||||||
"ColumnTitleCell":[
|
|
||||||
{
|
|
||||||
"GroupTitle":true,
|
|
||||||
"Name":"Column33",
|
|
||||||
"ColumnTitleCell":[
|
|
||||||
{
|
|
||||||
"GroupTitle":true,
|
|
||||||
"Name":"Column34",
|
|
||||||
"ColumnTitleCell":[
|
|
||||||
{
|
|
||||||
"GroupTitle":true,
|
|
||||||
"Name":"发药",
|
|
||||||
"ColumnTitleCell":[
|
|
||||||
{
|
|
||||||
"GroupTitle":false,
|
|
||||||
"Column":"Column14",
|
|
||||||
"TextAlign":"BottomCenter",
|
|
||||||
"Text":"实发数"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"TextAlign":"MiddleCenter",
|
|
||||||
"Text":"发药"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"GroupTitle":true,
|
|
||||||
"Name":"Column35",
|
|
||||||
"ColumnTitleCell":[
|
|
||||||
{
|
|
||||||
"GroupTitle":false,
|
|
||||||
"Column":"Column19",
|
|
||||||
"TextAlign":"BottomCenter",
|
|
||||||
"Text":"实物数"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"GroupTitle":false,
|
|
||||||
"Column":"Column20",
|
|
||||||
"TextAlign":"BottomCenter",
|
|
||||||
"Text":"空安瓿"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"TextAlign":"MiddleCenter",
|
|
||||||
"Text":"还药"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"TextAlign":"MiddleCenter",
|
|
||||||
"Text":"[#TotalNum#]"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"TextAlign":"MiddleCenter",
|
|
||||||
"Text":"[#drugSpec#]"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"TextAlign":"MiddleCenter",
|
|
||||||
"Text":"[#drugName#]"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"GroupTitle":false,
|
|
||||||
"Column":"Column22",
|
|
||||||
"TextAlign":"BottomCenter",
|
|
||||||
"Text":"还药\r\n时间"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"GroupTitle":false,
|
|
||||||
"Column":"Column23",
|
|
||||||
"TextAlign":"BottomCenter",
|
|
||||||
"Text":"还药者"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"GroupTitle":false,
|
|
||||||
"Column":"Column24",
|
|
||||||
"TextAlign":"BottomCenter",
|
|
||||||
"Text":"接收者"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"Group":[
|
|
||||||
{
|
|
||||||
"Name":"Group1",
|
|
||||||
"GroupHeader":{
|
|
||||||
"Height":0.79375,
|
|
||||||
"PrintGridBorder":false,
|
|
||||||
"Control":[
|
|
||||||
{
|
|
||||||
"Type":"MemoBox",
|
|
||||||
"Name":"MemoBox7",
|
|
||||||
"AlignColumnSide":"Right",
|
|
||||||
"Left":19.394,
|
|
||||||
"Top":0.211667,
|
|
||||||
"Width":7.59354,
|
|
||||||
"Height":0.396875,
|
|
||||||
"TextAlign":"MiddleRight",
|
|
||||||
"Text":"[#DMMonth#]月[#DMDay#]日"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"GroupFooter":{
|
|
||||||
"Height":2,
|
|
||||||
"Control":[
|
|
||||||
{
|
|
||||||
"Type":"StaticBox",
|
|
||||||
"Name":"StaticBox4",
|
|
||||||
"AlignColumn":"Column31",
|
|
||||||
"AlignColumnEx":"Column4",
|
|
||||||
"Width":8.96938,
|
|
||||||
"Height":2,
|
|
||||||
"Border":{
|
|
||||||
"Styles":"[DrawRight]"
|
|
||||||
},
|
|
||||||
"TextAlign":"MiddleCenter",
|
|
||||||
"Text":"日消耗总计(支)"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Type":"StaticBox",
|
|
||||||
"Name":"StaticBox5",
|
|
||||||
"AlignColumn":"Column14",
|
|
||||||
"Left":8.96938,
|
|
||||||
"Width":2.98979,
|
|
||||||
"Height":1,
|
|
||||||
"Border":{
|
|
||||||
"Styles":"[DrawRight|DrawBottom]"
|
|
||||||
},
|
|
||||||
"TextAlign":"BottomCenter",
|
|
||||||
"Text":"安瓿"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Type":"StaticBox",
|
|
||||||
"Name":"StaticBox6",
|
|
||||||
"AlignColumn":"Column19",
|
|
||||||
"Left":11.9592,
|
|
||||||
"Width":2.99,
|
|
||||||
"Height":1,
|
|
||||||
"Border":{
|
|
||||||
"Styles":"[DrawRight|DrawBottom]"
|
|
||||||
},
|
|
||||||
"TextAlign":"BottomCenter",
|
|
||||||
"Text":"处方"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Type":"StaticBox",
|
|
||||||
"Name":"StaticBox7",
|
|
||||||
"AlignColumn":"Column20",
|
|
||||||
"Left":14.949,
|
|
||||||
"Width":2.99,
|
|
||||||
"Height":1,
|
|
||||||
"Border":{
|
|
||||||
"Styles":"[DrawRight|DrawBottom]"
|
|
||||||
},
|
|
||||||
"TextAlign":"BottomCenter",
|
|
||||||
"Text":"补充"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Type":"MemoBox",
|
|
||||||
"Name":"MemoBox2",
|
|
||||||
"AlignColumn":"Column14",
|
|
||||||
"Left":8.96938,
|
|
||||||
"Top":1.00542,
|
|
||||||
"Width":2.9898,
|
|
||||||
"Height":1,
|
|
||||||
"Border":{
|
|
||||||
"Styles":"[DrawRight]"
|
|
||||||
},
|
|
||||||
"TextAlign":"MiddleCenter",
|
|
||||||
"Text":"[#Sum(EmptyNum)#]"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Type":"MemoBox",
|
|
||||||
"Name":"MemoBox3",
|
|
||||||
"AlignColumn":"Column19",
|
|
||||||
"Left":11.9592,
|
|
||||||
"Top":1.0054,
|
|
||||||
"Width":2.98979,
|
|
||||||
"Height":1,
|
|
||||||
"Border":{
|
|
||||||
"Styles":"[DrawRight]"
|
|
||||||
},
|
|
||||||
"TextAlign":"MiddleCenter",
|
|
||||||
"Text":"[#Sum(SendNum-InfactNum)#]"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Type":"MemoBox",
|
|
||||||
"Name":"MemoBox4",
|
|
||||||
"AlignColumn":"Column20",
|
|
||||||
"Left":14.949,
|
|
||||||
"Top":1.0054,
|
|
||||||
"Width":2.98979,
|
|
||||||
"Height":1,
|
|
||||||
"Border":{
|
|
||||||
"Styles":"[DrawRight]"
|
|
||||||
},
|
|
||||||
"TextAlign":"MiddleCenter",
|
|
||||||
"Text":"[#Sum(SendNum-InfactNum)#]"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Type":"StaticBox",
|
|
||||||
"Name":"StaticBox8",
|
|
||||||
"AlignColumn":"Column23",
|
|
||||||
"AlignColumnEx":"Column22",
|
|
||||||
"Left":17.9388,
|
|
||||||
"Width":5.95313,
|
|
||||||
"Height":1,
|
|
||||||
"Border":{
|
|
||||||
"Styles":"[DrawBottom]"
|
|
||||||
},
|
|
||||||
"TextAlign":"BottomCenter",
|
|
||||||
"Text":"补充者"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Type":"StaticBox",
|
|
||||||
"Name":"StaticBox9",
|
|
||||||
"AlignColumn":"Column24",
|
|
||||||
"Left":23.8919,
|
|
||||||
"Width":3.01625,
|
|
||||||
"Height":1,
|
|
||||||
"Border":{
|
|
||||||
"Styles":"[DrawLeft|DrawRight|DrawBottom]"
|
|
||||||
},
|
|
||||||
"TextAlign":"BottomCenter",
|
|
||||||
"Text":"核对者"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Type":"MemoBox",
|
|
||||||
"Name":"MemoBox5",
|
|
||||||
"AlignColumn":"Column23",
|
|
||||||
"AlignColumnEx":"Column22",
|
|
||||||
"Left":17.9388,
|
|
||||||
"Top":1.0054,
|
|
||||||
"Width":5.95313,
|
|
||||||
"Height":1,
|
|
||||||
"TextAlign":"MiddleCenter",
|
|
||||||
"Text":"[#AddUser#]"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Type":"MemoBox",
|
|
||||||
"Name":"MemoBox6",
|
|
||||||
"AlignColumn":"Column24",
|
|
||||||
"Left":23.8919,
|
|
||||||
"Top":1.00542,
|
|
||||||
"Width":3.01625,
|
|
||||||
"Height":1,
|
|
||||||
"Border":{
|
|
||||||
"Styles":"[DrawLeft|DrawRight]"
|
|
||||||
},
|
|
||||||
"TextAlign":"MiddleCenter",
|
|
||||||
"Text":"[#AddCheckUser#]"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"CrossTab":{
|
|
||||||
"PercentFormat":"0.##%",
|
|
||||||
"HCrossFields":"drugId",
|
|
||||||
"VCrossFields":"Senddate",
|
|
||||||
"ListCols":3,
|
|
||||||
"TotalCols":3
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"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":217500,
|
|
||||||
"Bold":true,
|
|
||||||
"Charset":134
|
|
||||||
},
|
|
||||||
"ShrinkFontToFit":true,
|
|
||||||
"TextAlign":"MiddleCenter",
|
|
||||||
"Text":"麻醉科小药箱麻醉、精神药品(注射剂)使用与交接记录([#DMYear#])年"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"RepeatOnPage":true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
|
@ -280,7 +280,7 @@
|
||||||
"GroupTitle":false,
|
"GroupTitle":false,
|
||||||
"Column":"Column14",
|
"Column":"Column14",
|
||||||
"TextAlign":"BottomCenter",
|
"TextAlign":"BottomCenter",
|
||||||
"Text":"实发数"
|
"Text":"实\r\n发\r\n数"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"TextAlign":"MiddleCenter",
|
"TextAlign":"MiddleCenter",
|
||||||
|
@ -294,13 +294,13 @@
|
||||||
"GroupTitle":false,
|
"GroupTitle":false,
|
||||||
"Column":"Column19",
|
"Column":"Column19",
|
||||||
"TextAlign":"BottomCenter",
|
"TextAlign":"BottomCenter",
|
||||||
"Text":"实物数"
|
"Text":"实\r\n物\r\n数"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupTitle":false,
|
"GroupTitle":false,
|
||||||
"Column":"Column20",
|
"Column":"Column20",
|
||||||
"TextAlign":"BottomCenter",
|
"TextAlign":"BottomCenter",
|
||||||
"Text":"空安瓿"
|
"Text":"空\r\n安\r\n瓿"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"TextAlign":"MiddleCenter",
|
"TextAlign":"MiddleCenter",
|
||||||
|
|
|
@ -18,6 +18,7 @@
|
||||||
"IsCrossTab":true,
|
"IsCrossTab":true,
|
||||||
"FixCols":2,
|
"FixCols":2,
|
||||||
"AppendBlankRow":true,
|
"AppendBlankRow":true,
|
||||||
|
"AppendBlankRowAtLast":true,
|
||||||
"Recordset":{
|
"Recordset":{
|
||||||
"Field":[
|
"Field":[
|
||||||
{
|
{
|
||||||
|
@ -86,6 +87,36 @@
|
||||||
{
|
{
|
||||||
"Name":"drawerno",
|
"Name":"drawerno",
|
||||||
"Type":"Integer"
|
"Type":"Integer"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name":"安瓿",
|
||||||
|
"Type":"Integer",
|
||||||
|
"DBFieldName":"usebottle"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name":"处方",
|
||||||
|
"Type":"Integer",
|
||||||
|
"DBFieldName":"useorderno"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name":"补充",
|
||||||
|
"Type":"Integer",
|
||||||
|
"DBFieldName":"useadd"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name":"补充者",
|
||||||
|
"DBFieldName":"AddUser"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name":"核对者",
|
||||||
|
"DBFieldName":"AddCheckUser"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name":"SenddateMonthDay"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name":"ID",
|
||||||
|
"DBFieldName":" ID"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
@ -103,7 +134,8 @@
|
||||||
"Name":"Column14"
|
"Name":"Column14"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Name":"Column19"
|
"Name":"Column19",
|
||||||
|
"Width":3.01625
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Name":"Column20"
|
"Name":"Column20"
|
||||||
|
@ -280,7 +312,7 @@
|
||||||
"GroupTitle":false,
|
"GroupTitle":false,
|
||||||
"Column":"Column14",
|
"Column":"Column14",
|
||||||
"TextAlign":"BottomCenter",
|
"TextAlign":"BottomCenter",
|
||||||
"Text":"实发数"
|
"Text":"实\r\n发\r\n数"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"TextAlign":"MiddleCenter",
|
"TextAlign":"MiddleCenter",
|
||||||
|
@ -294,13 +326,13 @@
|
||||||
"GroupTitle":false,
|
"GroupTitle":false,
|
||||||
"Column":"Column19",
|
"Column":"Column19",
|
||||||
"TextAlign":"BottomCenter",
|
"TextAlign":"BottomCenter",
|
||||||
"Text":"实物数"
|
"Text":"实\r\n物\r\n数"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"GroupTitle":false,
|
"GroupTitle":false,
|
||||||
"Column":"Column20",
|
"Column":"Column20",
|
||||||
"TextAlign":"BottomCenter",
|
"TextAlign":"BottomCenter",
|
||||||
"Text":"空安瓿"
|
"Text":"空\r\n安\r\n瓿"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"TextAlign":"MiddleCenter",
|
"TextAlign":"MiddleCenter",
|
||||||
|
@ -341,15 +373,16 @@
|
||||||
"Group":[
|
"Group":[
|
||||||
{
|
{
|
||||||
"Name":"Group1",
|
"Name":"Group1",
|
||||||
|
"ByFields":"SenddateMonthDay",
|
||||||
"GroupHeader":{
|
"GroupHeader":{
|
||||||
"Height":0.79375,
|
"Height":0.79375,
|
||||||
"PrintGridBorder":false,
|
"PrintGridBorder":false,
|
||||||
"Control":[
|
"Control":[
|
||||||
{
|
{
|
||||||
"Type":"MemoBox",
|
"Type":"MemoBox",
|
||||||
"Name":"MemoBox7",
|
"Name":"MemoBox17",
|
||||||
"AlignColumnSide":"Right",
|
"AlignColumnSide":"Right",
|
||||||
"Left":19.394,
|
"Left":19.3675,
|
||||||
"Top":0.211667,
|
"Top":0.211667,
|
||||||
"Width":7.59354,
|
"Width":7.59354,
|
||||||
"Height":0.396875,
|
"Height":0.396875,
|
||||||
|
@ -360,6 +393,7 @@
|
||||||
},
|
},
|
||||||
"GroupFooter":{
|
"GroupFooter":{
|
||||||
"Height":2,
|
"Height":2,
|
||||||
|
"RepeatOnPage":true,
|
||||||
"Control":[
|
"Control":[
|
||||||
{
|
{
|
||||||
"Type":"StaticBox",
|
"Type":"StaticBox",
|
||||||
|
@ -372,7 +406,7 @@
|
||||||
"Styles":"[DrawRight]"
|
"Styles":"[DrawRight]"
|
||||||
},
|
},
|
||||||
"TextAlign":"MiddleCenter",
|
"TextAlign":"MiddleCenter",
|
||||||
"Text":"日消耗总计(支)"
|
"Text":"日消耗总计(支)"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Type":"StaticBox",
|
"Type":"StaticBox",
|
||||||
|
@ -392,7 +426,7 @@
|
||||||
"Name":"StaticBox6",
|
"Name":"StaticBox6",
|
||||||
"AlignColumn":"Column19",
|
"AlignColumn":"Column19",
|
||||||
"Left":11.9592,
|
"Left":11.9592,
|
||||||
"Width":2.99,
|
"Width":3.01625,
|
||||||
"Height":1,
|
"Height":1,
|
||||||
"Border":{
|
"Border":{
|
||||||
"Styles":"[DrawRight|DrawBottom]"
|
"Styles":"[DrawRight|DrawBottom]"
|
||||||
|
@ -404,8 +438,8 @@
|
||||||
"Type":"StaticBox",
|
"Type":"StaticBox",
|
||||||
"Name":"StaticBox7",
|
"Name":"StaticBox7",
|
||||||
"AlignColumn":"Column20",
|
"AlignColumn":"Column20",
|
||||||
"Left":14.949,
|
"Left":14.9754,
|
||||||
"Width":2.99,
|
"Width":2.98979,
|
||||||
"Height":1,
|
"Height":1,
|
||||||
"Border":{
|
"Border":{
|
||||||
"Styles":"[DrawRight|DrawBottom]"
|
"Styles":"[DrawRight|DrawBottom]"
|
||||||
|
@ -413,13 +447,43 @@
|
||||||
"TextAlign":"BottomCenter",
|
"TextAlign":"BottomCenter",
|
||||||
"Text":"补充"
|
"Text":"补充"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"Type":"StaticBox",
|
||||||
|
"Name":"StaticBox9",
|
||||||
|
"Anchor":"[Left|Top|Right]",
|
||||||
|
"ShiftMode":"Never",
|
||||||
|
"AlignColumn":"Column24",
|
||||||
|
"Left":23.9448,
|
||||||
|
"Width":2.98979,
|
||||||
|
"Height":1,
|
||||||
|
"Border":{
|
||||||
|
"Styles":"[DrawRight|DrawBottom]"
|
||||||
|
},
|
||||||
|
"TextAlign":"BottomCenter",
|
||||||
|
"Text":"核对者"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Type":"FieldBox",
|
||||||
|
"Name":"FieldBox5",
|
||||||
|
"ShiftMode":"Never",
|
||||||
|
"AlignColumn":"Column24",
|
||||||
|
"Left":23.9448,
|
||||||
|
"Top":1.00542,
|
||||||
|
"Width":2.98979,
|
||||||
|
"Height":1,
|
||||||
|
"Border":{
|
||||||
|
"Styles":"[DrawRight]"
|
||||||
|
},
|
||||||
|
"TextAlign":"MiddleCenter",
|
||||||
|
"DataField":"核对者"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"Type":"MemoBox",
|
"Type":"MemoBox",
|
||||||
"Name":"MemoBox2",
|
"Name":"MemoBox18",
|
||||||
"AlignColumn":"Column14",
|
"AlignColumn":"Column14",
|
||||||
"Left":8.96938,
|
"Left":8.96938,
|
||||||
"Top":1.00542,
|
"Top":1.00542,
|
||||||
"Width":2.9898,
|
"Width":2.99,
|
||||||
"Height":1,
|
"Height":1,
|
||||||
"Border":{
|
"Border":{
|
||||||
"Styles":"[DrawRight]"
|
"Styles":"[DrawRight]"
|
||||||
|
@ -429,99 +493,98 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"Type":"MemoBox",
|
"Type":"MemoBox",
|
||||||
"Name":"MemoBox3",
|
"Name":"MemoBox19",
|
||||||
"AlignColumn":"Column19",
|
"AlignColumn":"Column19",
|
||||||
"Left":11.9592,
|
"Left":11.9592,
|
||||||
"Top":1.0054,
|
|
||||||
"Width":2.98979,
|
|
||||||
"Height":1,
|
|
||||||
"Border":{
|
|
||||||
"Styles":"[DrawRight]"
|
|
||||||
},
|
|
||||||
"TextAlign":"MiddleCenter",
|
|
||||||
"Text":"[#Sum(SendNum-InfactNum)#]"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Type":"MemoBox",
|
|
||||||
"Name":"MemoBox4",
|
|
||||||
"AlignColumn":"Column20",
|
|
||||||
"Left":14.949,
|
|
||||||
"Top":1.0054,
|
|
||||||
"Width":2.98979,
|
|
||||||
"Height":1,
|
|
||||||
"Border":{
|
|
||||||
"Styles":"[DrawRight]"
|
|
||||||
},
|
|
||||||
"TextAlign":"MiddleCenter",
|
|
||||||
"Text":"[#Sum(SendNum-InfactNum)#]"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Type":"StaticBox",
|
|
||||||
"Name":"StaticBox8",
|
|
||||||
"Anchor":"[Left|Top|Right|Bottom]",
|
|
||||||
"AlignColumn":"Column36",
|
|
||||||
"AlignColumnEx":"Column23",
|
|
||||||
"Left":17.9388,
|
|
||||||
"Width":5.95313,
|
|
||||||
"Height":1,
|
|
||||||
"Border":{
|
|
||||||
"Styles":"[DrawRight|DrawBottom]"
|
|
||||||
},
|
|
||||||
"TextAlign":"BottomCenter",
|
|
||||||
"Text":"补充者"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Type":"StaticBox",
|
|
||||||
"Name":"StaticBox9",
|
|
||||||
"AlignColumn":"Column24",
|
|
||||||
"Left":23.8919,
|
|
||||||
"Width":3.01625,
|
|
||||||
"Height":1,
|
|
||||||
"Border":{
|
|
||||||
"Styles":"[DrawLeft|DrawRight|DrawBottom]"
|
|
||||||
},
|
|
||||||
"TextAlign":"BottomCenter",
|
|
||||||
"Text":"核对者"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Type":"MemoBox",
|
|
||||||
"Name":"MemoBox5",
|
|
||||||
"AlignColumn":"Column36",
|
|
||||||
"AlignColumnEx":"Column23",
|
|
||||||
"Left":17.9388,
|
|
||||||
"Top":1.0054,
|
|
||||||
"Width":5.95313,
|
|
||||||
"Height":1,
|
|
||||||
"Border":{
|
|
||||||
"Styles":"[DrawRight]"
|
|
||||||
},
|
|
||||||
"TextAlign":"MiddleCenter",
|
|
||||||
"Text":"[#AddUser#]"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"Type":"MemoBox",
|
|
||||||
"Name":"MemoBox6",
|
|
||||||
"AlignColumn":"Column24",
|
|
||||||
"Left":23.8919,
|
|
||||||
"Top":1.00542,
|
"Top":1.00542,
|
||||||
"Width":3.01625,
|
"Width":3.01625,
|
||||||
"Height":1,
|
"Height":1,
|
||||||
"Border":{
|
"Border":{
|
||||||
"Styles":"[DrawLeft|DrawRight]"
|
"Styles":"[DrawRight]"
|
||||||
},
|
},
|
||||||
"TextAlign":"MiddleCenter",
|
"TextAlign":"MiddleCenter",
|
||||||
"Text":"[#AddCheckUser#]"
|
"Text":"[#Sum(EmptyNum)#]"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Type":"MemoBox",
|
||||||
|
"Name":"MemoBox20",
|
||||||
|
"AlignColumn":"Column20",
|
||||||
|
"Left":14.9754,
|
||||||
|
"Top":1.00542,
|
||||||
|
"Width":2.98979,
|
||||||
|
"Height":1,
|
||||||
|
"Border":{
|
||||||
|
"Styles":"[DrawRight]"
|
||||||
|
},
|
||||||
|
"TextAlign":"MiddleCenter",
|
||||||
|
"Text":"[#Sum(EmptyNum)#]"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Type":"StaticBox",
|
||||||
|
"Name":"StaticBox17",
|
||||||
|
"Anchor":"[]",
|
||||||
|
"ShiftMode":"Never",
|
||||||
|
"AlignColumn":"Column36",
|
||||||
|
"AlignColumnEx":"Column23",
|
||||||
|
"Left":17.9652,
|
||||||
|
"Width":5.95313,
|
||||||
|
"Height":1.00542,
|
||||||
|
"Border":{
|
||||||
|
"Styles":"[DrawBottom]"
|
||||||
|
},
|
||||||
|
"TextAlign":"BottomRight",
|
||||||
|
"Text":"补充者"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Type":"FieldBox",
|
||||||
|
"Name":"FieldBox6",
|
||||||
|
"ShiftMode":"Never",
|
||||||
|
"AlignColumn":"Column36",
|
||||||
|
"AlignColumnEx":"Column23",
|
||||||
|
"Left":17.9652,
|
||||||
|
"Top":1.00542,
|
||||||
|
"Width":5.95313,
|
||||||
|
"Height":1.01,
|
||||||
|
"TextAlign":"MiddleRight",
|
||||||
|
"DataField":"补充者"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Type":"MemoBox",
|
||||||
|
"Name":"MemoBox21",
|
||||||
|
"AlignColumn":"Column23",
|
||||||
|
"Left":20.955,
|
||||||
|
"Width":2.98979,
|
||||||
|
"Height":1.01,
|
||||||
|
"Border":{
|
||||||
|
"Styles":"[DrawRight|DrawBottom]"
|
||||||
|
},
|
||||||
|
"TextAlign":"MiddleCenter"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Type":"StaticBox",
|
||||||
|
"Name":"StaticBox18",
|
||||||
|
"AlignColumn":"Column23",
|
||||||
|
"Left":20.955,
|
||||||
|
"Top":1.00542,
|
||||||
|
"Width":2.98979,
|
||||||
|
"Height":1.01,
|
||||||
|
"Border":{
|
||||||
|
"Styles":"[DrawRight]"
|
||||||
|
},
|
||||||
|
"TextAlign":"MiddleCenter"
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"AppendBlankRowExclude":true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"CrossTab":{
|
"CrossTab":{
|
||||||
"PercentFormat":"0.##%",
|
"PercentFormat":"0.##%",
|
||||||
"HCrossFields":"drugId;ReturnDate;ReturnUser;ReturnReceiveUser;AddUser;AddCheckUser",
|
"HCrossFields":"drugId",
|
||||||
"VCrossFields":"Senddate;drawerno",
|
"VCrossFields":"Senddate;ReturnDate",
|
||||||
"ListCols":3,
|
"ListCols":3,
|
||||||
"TotalCols":3
|
"TotalCols":3,
|
||||||
|
"TotalExcludeColumns":"Column36;Column23;Column24"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Parameter":[
|
"Parameter":[
|
||||||
|
@ -559,6 +622,184 @@
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"RepeatOnPage":true
|
"RepeatOnPage":true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Name":"ReportHeader2",
|
||||||
|
"Height":0,
|
||||||
|
"Control":[
|
||||||
|
{
|
||||||
|
"Type":"MemoBox",
|
||||||
|
"Name":"MemoBox7",
|
||||||
|
"AlignColumnSide":"Right",
|
||||||
|
"Left":19.394,
|
||||||
|
"Top":0.211667,
|
||||||
|
"Width":7.59354,
|
||||||
|
"Height":0.396875,
|
||||||
|
"TextAlign":"MiddleRight",
|
||||||
|
"Text":"[#DMMonth#]月[#DMDay#]日"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"ReportFooter":[
|
||||||
|
{
|
||||||
|
"Name":"ReportFooter1",
|
||||||
|
"Visible":false,
|
||||||
|
"KeepTogether":false,
|
||||||
|
"Height":0,
|
||||||
|
"Control":[
|
||||||
|
{
|
||||||
|
"Type":"StaticBox",
|
||||||
|
"Name":"StaticBox11",
|
||||||
|
"AlignColumn":"Column31",
|
||||||
|
"AlignColumnEx":"Column4",
|
||||||
|
"Width":8.99583,
|
||||||
|
"Height":2,
|
||||||
|
"Border":{
|
||||||
|
"Styles":"[DrawLeft|DrawRight|DrawBottom]"
|
||||||
|
},
|
||||||
|
"TextAlign":"MiddleCenter",
|
||||||
|
"Text":"日消耗总计(支)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Type":"StaticBox",
|
||||||
|
"Name":"StaticBox12",
|
||||||
|
"AlignColumn":"Column24",
|
||||||
|
"Left":23.9448,
|
||||||
|
"Width":3.01625,
|
||||||
|
"Height":1,
|
||||||
|
"Border":{
|
||||||
|
"Styles":"[DrawLeft|DrawRight|DrawBottom]"
|
||||||
|
},
|
||||||
|
"TextAlign":"BottomCenter",
|
||||||
|
"Text":"核对者"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Type":"StaticBox",
|
||||||
|
"Name":"StaticBox13",
|
||||||
|
"AlignColumn":"Column14",
|
||||||
|
"Left":8.99583,
|
||||||
|
"Width":2.98979,
|
||||||
|
"Height":1,
|
||||||
|
"Border":{
|
||||||
|
"Styles":"[DrawRight|DrawBottom]"
|
||||||
|
},
|
||||||
|
"TextAlign":"BottomCenter",
|
||||||
|
"Text":"安瓿"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Type":"MemoBox",
|
||||||
|
"Name":"MemoBox12",
|
||||||
|
"AlignColumn":"Column14",
|
||||||
|
"Left":8.99583,
|
||||||
|
"Top":1.00542,
|
||||||
|
"Width":2.9898,
|
||||||
|
"Height":1,
|
||||||
|
"Border":{
|
||||||
|
"Styles":"[DrawRight|DrawBottom]"
|
||||||
|
},
|
||||||
|
"TextAlign":"MiddleCenter",
|
||||||
|
"Text":"[#安瓿#]"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Type":"StaticBox",
|
||||||
|
"Name":"StaticBox14",
|
||||||
|
"AlignColumn":"Column19",
|
||||||
|
"Left":11.9856,
|
||||||
|
"Width":3.01625,
|
||||||
|
"Height":1,
|
||||||
|
"Border":{
|
||||||
|
"Styles":"[DrawRight|DrawBottom]"
|
||||||
|
},
|
||||||
|
"TextAlign":"BottomCenter",
|
||||||
|
"Text":"处方"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Type":"MemoBox",
|
||||||
|
"Name":"MemoBox13",
|
||||||
|
"AlignColumn":"Column19",
|
||||||
|
"Left":11.9856,
|
||||||
|
"Top":1.00542,
|
||||||
|
"Width":3.01625,
|
||||||
|
"Height":1,
|
||||||
|
"Border":{
|
||||||
|
"Styles":"[DrawRight|DrawBottom]"
|
||||||
|
},
|
||||||
|
"TextAlign":"MiddleCenter",
|
||||||
|
"Text":"[#处方#]"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Type":"StaticBox",
|
||||||
|
"Name":"StaticBox15",
|
||||||
|
"AlignColumn":"Column20",
|
||||||
|
"Left":15.0019,
|
||||||
|
"Width":2.98979,
|
||||||
|
"Height":1,
|
||||||
|
"Border":{
|
||||||
|
"Styles":"[DrawRight|DrawBottom]"
|
||||||
|
},
|
||||||
|
"TextAlign":"BottomCenter",
|
||||||
|
"Text":"补充"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Type":"MemoBox",
|
||||||
|
"Name":"MemoBox14",
|
||||||
|
"AlignColumn":"Column20",
|
||||||
|
"Left":15.0019,
|
||||||
|
"Top":1.00542,
|
||||||
|
"Width":2.98979,
|
||||||
|
"Height":1,
|
||||||
|
"Border":{
|
||||||
|
"Styles":"[DrawRight|DrawBottom]"
|
||||||
|
},
|
||||||
|
"TextAlign":"MiddleCenter",
|
||||||
|
"Text":"[#补充#]"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Type":"StaticBox",
|
||||||
|
"Name":"StaticBox16",
|
||||||
|
"AlignColumn":"Column36",
|
||||||
|
"AlignColumnEx":"Column23",
|
||||||
|
"Left":17.9917,
|
||||||
|
"Width":5.95313,
|
||||||
|
"Height":1,
|
||||||
|
"Border":{
|
||||||
|
"Styles":"[DrawBottom]"
|
||||||
|
},
|
||||||
|
"TextAlign":"BottomCenter",
|
||||||
|
"Text":"补充者"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Type":"MemoBox",
|
||||||
|
"Name":"MemoBox15",
|
||||||
|
"AlignColumn":"Column36",
|
||||||
|
"AlignColumnEx":"Column23",
|
||||||
|
"Left":17.9917,
|
||||||
|
"Top":1.00542,
|
||||||
|
"Width":5.95313,
|
||||||
|
"Height":1,
|
||||||
|
"Border":{
|
||||||
|
"Styles":"[DrawBottom]"
|
||||||
|
},
|
||||||
|
"TextAlign":"MiddleCenter",
|
||||||
|
"Text":"[#补充者#]"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"Type":"MemoBox",
|
||||||
|
"Name":"MemoBox16",
|
||||||
|
"AlignColumn":"Column24",
|
||||||
|
"Left":23.9448,
|
||||||
|
"Top":1.00542,
|
||||||
|
"Width":3.02,
|
||||||
|
"Height":1,
|
||||||
|
"Border":{
|
||||||
|
"Styles":"[DrawLeft|DrawRight|DrawBottom]"
|
||||||
|
},
|
||||||
|
"TextAlign":"MiddleCenter",
|
||||||
|
"Text":"[#核对者#]"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"CenterWithDetailGrid":false
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
|
@ -0,0 +1,735 @@
|
||||||
|
using DM_Weight.Models;
|
||||||
|
using DM_Weight.msg;
|
||||||
|
using DM_Weight.Port;
|
||||||
|
using DM_Weight.Report;
|
||||||
|
using DM_Weight.select;
|
||||||
|
using DM_Weight.util;
|
||||||
|
using Prism.Commands;
|
||||||
|
using Prism.Events;
|
||||||
|
using Prism.Mvvm;
|
||||||
|
using Prism.Regions;
|
||||||
|
using System;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Configuration;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace DM_Weight.ViewModels
|
||||||
|
{
|
||||||
|
public class AddReportDateViewModel : BindableBase, IConfirmNavigationRequest, IRegionMemberLifetime
|
||||||
|
{
|
||||||
|
//private int _pageNum = 1;
|
||||||
|
//public int PageNum
|
||||||
|
//{
|
||||||
|
// get => _pageNum;
|
||||||
|
// set
|
||||||
|
// {
|
||||||
|
// SetProperty(ref _pageNum, value);
|
||||||
|
// RequestData();
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
|
||||||
|
//private int _pageCount = 1;
|
||||||
|
//public int PageCount
|
||||||
|
//{
|
||||||
|
// get => _pageCount;
|
||||||
|
// set
|
||||||
|
// {
|
||||||
|
// SetProperty(ref _pageCount, value);
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
|
||||||
|
//private int _pageSize = 8;
|
||||||
|
//public int PageSize
|
||||||
|
//{
|
||||||
|
// get => _pageSize;
|
||||||
|
// set
|
||||||
|
// {
|
||||||
|
// SetProperty(ref _pageSize, value);
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
|
||||||
|
//private int _totalCount = 0;
|
||||||
|
//public int TotalCount
|
||||||
|
//{
|
||||||
|
// get => _totalCount;
|
||||||
|
// set
|
||||||
|
// {
|
||||||
|
// SetProperty(ref _totalCount, value);
|
||||||
|
// }
|
||||||
|
|
||||||
|
//查询9种药品
|
||||||
|
|
||||||
|
|
||||||
|
private List<RejectionReport> _rejectionReportList = new List<RejectionReport>();//= staticRejectionReportList;
|
||||||
|
public List<RejectionReport> RejectionReportList
|
||||||
|
{
|
||||||
|
get => _rejectionReportList;
|
||||||
|
set
|
||||||
|
{
|
||||||
|
SetProperty(ref _rejectionReportList, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//public static AddReportDateViewModel vm;
|
||||||
|
//操作人(第一个人)
|
||||||
|
private List<UserList> _sendUserList = new List<UserList>();
|
||||||
|
public List<UserList> SendUserList
|
||||||
|
{
|
||||||
|
get => _sendUserList;
|
||||||
|
set
|
||||||
|
{
|
||||||
|
SetProperty(ref _sendUserList, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
private UserList _sendUser = new UserList();
|
||||||
|
public UserList SendUser
|
||||||
|
{
|
||||||
|
get => _sendUser;
|
||||||
|
set
|
||||||
|
{
|
||||||
|
SetProperty(ref _sendUser, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//复核人(第二个人)
|
||||||
|
private List<UserList> _sendUserCheckList = new List<UserList>();
|
||||||
|
public List<UserList> SendUserCheckList
|
||||||
|
{
|
||||||
|
get => _sendUserCheckList;
|
||||||
|
set
|
||||||
|
{
|
||||||
|
SetProperty(ref _sendUserCheckList, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
private UserList _sendUserCheck = new UserList();
|
||||||
|
public UserList SendUserCheck
|
||||||
|
{
|
||||||
|
get => _sendUserCheck;
|
||||||
|
set
|
||||||
|
{
|
||||||
|
SetProperty(ref _sendUserCheck, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//还药人
|
||||||
|
private List<UserList> _returnUserList = new List<UserList>();
|
||||||
|
public List<UserList> ReturnUserList
|
||||||
|
{
|
||||||
|
get => _returnUserList;
|
||||||
|
set
|
||||||
|
{
|
||||||
|
SetProperty(ref _returnUserList, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
private UserList _returnUser = new UserList();
|
||||||
|
public UserList ReturnUser
|
||||||
|
{
|
||||||
|
get => _returnUser;
|
||||||
|
set
|
||||||
|
{
|
||||||
|
SetProperty(ref _returnUser, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//还药(第二个人)接收者
|
||||||
|
private List<UserList> _returnUserCheckList = new List<UserList>();
|
||||||
|
public List<UserList> ReturnUserCheckList
|
||||||
|
{
|
||||||
|
get => _returnUserCheckList;
|
||||||
|
set
|
||||||
|
{
|
||||||
|
SetProperty(ref _returnUserCheckList, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
private UserList _returnUserCheck = new UserList();
|
||||||
|
public UserList ReturnUserCheck
|
||||||
|
{
|
||||||
|
get => _returnUserCheck;
|
||||||
|
set
|
||||||
|
{
|
||||||
|
SetProperty(ref _returnUserCheck, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//补充者
|
||||||
|
private List<UserList> _addUserList = new List<UserList>();
|
||||||
|
public List<UserList> AddUserList
|
||||||
|
{
|
||||||
|
get => _addUserList;
|
||||||
|
set
|
||||||
|
{
|
||||||
|
SetProperty(ref _addUserList, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
private UserList _addUser = new UserList();
|
||||||
|
public UserList AddUser
|
||||||
|
{
|
||||||
|
get => _addUser;
|
||||||
|
set
|
||||||
|
{
|
||||||
|
SetProperty(ref _addUser, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//补充者(第二个人)核对者
|
||||||
|
private List<UserList> _addUserCheckList = new List<UserList>();
|
||||||
|
public List<UserList> AddUserCheckList
|
||||||
|
{
|
||||||
|
get => _addUserCheckList;
|
||||||
|
set
|
||||||
|
{
|
||||||
|
SetProperty(ref _addUserCheckList, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
private UserList _addUserCheck = new UserList();
|
||||||
|
public UserList AddUserCheck
|
||||||
|
{
|
||||||
|
get => _addUserCheck;
|
||||||
|
set
|
||||||
|
{
|
||||||
|
SetProperty(ref _addUserCheck, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//private RejectionReport _Report = new RejectionReport() { SendDate = DateTime.Now, ReturnTime = DateTime.Now.ToString(), };
|
||||||
|
//public RejectionReport RejReport
|
||||||
|
//{
|
||||||
|
// get => _Report;
|
||||||
|
// set
|
||||||
|
// {
|
||||||
|
// SetProperty(ref _Report, value);
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
IEventAggregator _eventAggregator;
|
||||||
|
public AddReportDateViewModel(IEventAggregator eventAggregator)
|
||||||
|
{
|
||||||
|
_eventAggregator = eventAggregator;
|
||||||
|
//vm = this;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//private List<DrugInfo> _drugInfos;
|
||||||
|
//public List<DrugInfo> DrugInfos
|
||||||
|
//{
|
||||||
|
// get { return _drugInfos; }
|
||||||
|
// set { SetProperty(ref _drugInfos, value); }
|
||||||
|
//}
|
||||||
|
|
||||||
|
//private DrugInfo _selectedDrug = new();
|
||||||
|
//public DrugInfo SelectedDrug
|
||||||
|
//{
|
||||||
|
// get
|
||||||
|
// {
|
||||||
|
// return _selectedDrug;
|
||||||
|
// }
|
||||||
|
// set
|
||||||
|
// {
|
||||||
|
|
||||||
|
// if (value != null)
|
||||||
|
// {
|
||||||
|
// SetProperty(ref _selectedDrug, value);
|
||||||
|
// GetManuNos();
|
||||||
|
// }
|
||||||
|
// else
|
||||||
|
// {
|
||||||
|
// SetProperty(ref _selectedDrug, new());
|
||||||
|
// Manunos = null;
|
||||||
|
// SelectedDrug.drugBase = new();
|
||||||
|
// }
|
||||||
|
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
//public static List<OrderTakeSelect> StaticSelects = new()
|
||||||
|
//{
|
||||||
|
// new OrderTakeSelect
|
||||||
|
// {
|
||||||
|
// Code = "DrugName",
|
||||||
|
// Name = "药品名称"
|
||||||
|
// },
|
||||||
|
// new OrderTakeSelect
|
||||||
|
// {
|
||||||
|
// Code = "PyCode",
|
||||||
|
// Name = "拼音码"
|
||||||
|
// },
|
||||||
|
// new OrderTakeSelect
|
||||||
|
// {
|
||||||
|
// Code = "DrugBarcode",
|
||||||
|
// Name = "药品条码"
|
||||||
|
// },
|
||||||
|
// new OrderTakeSelect
|
||||||
|
// {
|
||||||
|
// Code = "DrugId",
|
||||||
|
// Name = "药品编码"
|
||||||
|
// }
|
||||||
|
//};
|
||||||
|
|
||||||
|
//private List<OrderTakeSelect> _selects = StaticSelects;
|
||||||
|
|
||||||
|
//public List<OrderTakeSelect> Selects
|
||||||
|
//{
|
||||||
|
// get { return _selects; }
|
||||||
|
// set
|
||||||
|
// {
|
||||||
|
// SetProperty(ref _selects, value);
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
|
||||||
|
//private OrderTakeSelect _selectedItem = StaticSelects[0];
|
||||||
|
///// <summary>
|
||||||
|
///// 查询条件 查询字段
|
||||||
|
///// </summary>
|
||||||
|
//public OrderTakeSelect SelectedItem
|
||||||
|
//{
|
||||||
|
// get { return _selectedItem; }
|
||||||
|
// set
|
||||||
|
// {
|
||||||
|
// SetProperty(ref _selectedItem, value);
|
||||||
|
// RequestData();
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
|
||||||
|
//private string? _searchValue;
|
||||||
|
|
||||||
|
///// <summary>
|
||||||
|
///// 查询条件 查询字段值
|
||||||
|
///// </summary>
|
||||||
|
//public string? SearchValue
|
||||||
|
//{
|
||||||
|
// get { return _searchValue; }
|
||||||
|
// set
|
||||||
|
// {
|
||||||
|
// SetProperty(ref _searchValue, value);
|
||||||
|
// RequestData();
|
||||||
|
// }
|
||||||
|
//}
|
||||||
|
|
||||||
|
|
||||||
|
private List<DrugManuNo> _manunos;
|
||||||
|
public List<DrugManuNo> Manunos
|
||||||
|
{
|
||||||
|
get { return _manunos; }
|
||||||
|
set { SetProperty(ref _manunos, value); }
|
||||||
|
}
|
||||||
|
|
||||||
|
private DrugManuNo _selectedManuno = new DrugManuNo();
|
||||||
|
public DrugManuNo SelectedManuno
|
||||||
|
{
|
||||||
|
get { return _selectedManuno; }
|
||||||
|
set { SetProperty(ref _selectedManuno, value ?? new()); }
|
||||||
|
}
|
||||||
|
|
||||||
|
public bool KeepAlive => false;
|
||||||
|
|
||||||
|
private DateTime? _startDate = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day);
|
||||||
|
|
||||||
|
public DateTime? StartDate
|
||||||
|
{
|
||||||
|
get => _startDate;
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if (value != null)
|
||||||
|
{
|
||||||
|
SetProperty(ref _startDate, new DateTime(value?.Year ?? 0, value?.Month ?? 0, value?.Day ?? 0));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SetProperty(ref _startDate, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//发药时间
|
||||||
|
private DateTime _sendDate = DateTime.Now;
|
||||||
|
|
||||||
|
public DateTime SendDate
|
||||||
|
{
|
||||||
|
get => _sendDate;
|
||||||
|
set
|
||||||
|
{
|
||||||
|
SetProperty(ref _sendDate, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//还药时间
|
||||||
|
private string _returnTime = string.Empty;
|
||||||
|
public string ReturnTime
|
||||||
|
{
|
||||||
|
get => _returnTime;
|
||||||
|
set
|
||||||
|
{
|
||||||
|
SetProperty(ref _returnTime, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private DateTime? _endDate = new DateTime(DateTime.Now.Year, DateTime.Now.Month, DateTime.Now.Day, 23, 59, 59);
|
||||||
|
|
||||||
|
public DateTime? EndDate
|
||||||
|
{
|
||||||
|
get => _endDate;
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if (value != null)
|
||||||
|
{
|
||||||
|
TimeSpan ershisi = new TimeSpan(23, 59, 59);
|
||||||
|
SetProperty(ref _endDate, new DateTime(value?.Year ?? 0, value?.Month ?? 0, value?.Day ?? 0, 23, 59, 59));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
SetProperty(ref _endDate, value);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public DelegateCommand Download
|
||||||
|
{
|
||||||
|
get => new DelegateCommand(() =>
|
||||||
|
{
|
||||||
|
GridReportUtil.RejectionReport(StartDate, EndDate);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
////发药数据添加
|
||||||
|
//public DelegateCommand AddSendReportDateCommand
|
||||||
|
//{
|
||||||
|
// get => new DelegateCommand(() =>
|
||||||
|
// {
|
||||||
|
// if (SelectedDrug != null)
|
||||||
|
// {
|
||||||
|
// int iRet=SqlSugarHelper.Db.Insertable(new RejectionReport()
|
||||||
|
// {
|
||||||
|
// SendDate = DateTime.Parse(RejReport.SendDate.ToString("yyyy-MM-dd HH:mm")),
|
||||||
|
// SendUser = SendUser.Nickname,
|
||||||
|
// ReceiveUser = SendUserCheck.Nickname,//Jiaojie_ChannelStocks
|
||||||
|
// RealNum= RejReport.RealNum,
|
||||||
|
// DrugId = SelectedDrug.DrugId,
|
||||||
|
// DrugName = SelectedDrug.DrugName,
|
||||||
|
// DrugSpec = SelectedDrug.DrugSpec,
|
||||||
|
// BaseNum = SelectedDrug.drugBase.BaseQuantity + "支",//总基数
|
||||||
|
// OperationTime=DateTime.Now,
|
||||||
|
|
||||||
|
// }).ExecuteCommand();
|
||||||
|
// if (iRet > 0)
|
||||||
|
// {
|
||||||
|
// AlertMsg alertMsg = new AlertMsg
|
||||||
|
// {
|
||||||
|
// Message = "保存成功",
|
||||||
|
// Type = MsgType.INFO
|
||||||
|
// };
|
||||||
|
// _eventAggregator.GetEvent<SnackbarEvent>().Publish(alertMsg);
|
||||||
|
|
||||||
|
// }
|
||||||
|
// else
|
||||||
|
// {
|
||||||
|
// AlertMsg alertMsg = new AlertMsg
|
||||||
|
// {
|
||||||
|
// Message = "发药数据保存失败,数据异常",
|
||||||
|
// Type = MsgType.ERROR
|
||||||
|
// };
|
||||||
|
// _eventAggregator.GetEvent<SnackbarEvent>().Publish(alertMsg);
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// else
|
||||||
|
// {
|
||||||
|
// AlertMsg alertMsg = new AlertMsg
|
||||||
|
// {
|
||||||
|
// Message = "请先选择药品",
|
||||||
|
// Type = MsgType.ERROR
|
||||||
|
// };
|
||||||
|
// _eventAggregator.GetEvent<SnackbarEvent>().Publish(alertMsg);
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
//}
|
||||||
|
////还药数据添加
|
||||||
|
//public DelegateCommand AddReturnReportDateCommand
|
||||||
|
//{
|
||||||
|
// get => new DelegateCommand(() =>
|
||||||
|
// {
|
||||||
|
// if (SelectedDrug != null)
|
||||||
|
// {
|
||||||
|
// int iRet= SqlSugarHelper.Db.Insertable(new RejectionReport()
|
||||||
|
// {
|
||||||
|
// ReturnTime = DateTime.Parse(RejReport.ReturnTime).ToString("yyyy-MM-dd HH:mm"),
|
||||||
|
// ReturnUser = User.UserName,
|
||||||
|
// ReturnReceiveUser = UserCheck.Nickname,//Jiaojie_ChannelStocks
|
||||||
|
// InfactNum= RejReport.InfactNum,
|
||||||
|
// EmptyNum= RejReport.EmptyNum,
|
||||||
|
// DrugId = SelectedDrug.DrugId,
|
||||||
|
// DrugName = SelectedDrug.DrugName,
|
||||||
|
// DrugSpec = SelectedDrug.DrugSpec,
|
||||||
|
// BaseNum = SelectedDrug + "支",
|
||||||
|
// }).ExecuteCommand();
|
||||||
|
// if (iRet > 0)
|
||||||
|
// {
|
||||||
|
// AlertMsg alertMsg = new AlertMsg
|
||||||
|
// {
|
||||||
|
// Message = "保存成功",
|
||||||
|
// Type = MsgType.INFO
|
||||||
|
// };
|
||||||
|
// _eventAggregator.GetEvent<SnackbarEvent>().Publish(alertMsg);
|
||||||
|
|
||||||
|
// }
|
||||||
|
// else
|
||||||
|
// {
|
||||||
|
// AlertMsg alertMsg = new AlertMsg
|
||||||
|
// {
|
||||||
|
// Message = "还药数据保存失败,数据异常",
|
||||||
|
// Type = MsgType.ERROR
|
||||||
|
// };
|
||||||
|
// _eventAggregator.GetEvent<SnackbarEvent>().Publish(alertMsg);
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// else
|
||||||
|
// {
|
||||||
|
// AlertMsg alertMsg = new AlertMsg
|
||||||
|
// {
|
||||||
|
// Message = "请先选择药品",
|
||||||
|
// Type = MsgType.ERROR
|
||||||
|
// };
|
||||||
|
// _eventAggregator.GetEvent<SnackbarEvent>().Publish(alertMsg);
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
//}
|
||||||
|
////日消耗数据添加
|
||||||
|
//public DelegateCommand AddUseReportDateCommand
|
||||||
|
//{
|
||||||
|
// get => new DelegateCommand(() =>
|
||||||
|
// {
|
||||||
|
// if (SelectedDrug != null)
|
||||||
|
// {
|
||||||
|
// int iRet= SqlSugarHelper.Db.Insertable(new RejectionReport()
|
||||||
|
// {
|
||||||
|
// //ReturnTime = DateTime.Parse(RejReport.ReturnTime).ToString("yyyy-MM-dd HH:mm"),
|
||||||
|
// AddUser = User.UserName,
|
||||||
|
// AddCheckUser = UserCheck.Nickname,//Jiaojie_ChannelStocks
|
||||||
|
// UseBottle = RejReport.UseBottle,
|
||||||
|
// UseOrderNo = RejReport.UseOrderNo,
|
||||||
|
// UseAdd=RejReport.UseAdd,
|
||||||
|
// DrugId = SelectedDrug.DrugId,
|
||||||
|
// DrugName = SelectedDrug.DrugName,
|
||||||
|
// DrugSpec = SelectedDrug.DrugSpec,
|
||||||
|
// BaseNum = SelectedDrug + "支",
|
||||||
|
// }).ExecuteCommand();
|
||||||
|
// if(iRet>0)
|
||||||
|
// {
|
||||||
|
// AlertMsg alertMsg = new AlertMsg
|
||||||
|
// {
|
||||||
|
// Message = "保存成功",
|
||||||
|
// Type = MsgType.INFO
|
||||||
|
// };
|
||||||
|
// _eventAggregator.GetEvent<SnackbarEvent>().Publish(alertMsg);
|
||||||
|
|
||||||
|
// }
|
||||||
|
// else
|
||||||
|
// {
|
||||||
|
// AlertMsg alertMsg = new AlertMsg
|
||||||
|
// {
|
||||||
|
// Message = "日消耗保存失败,数据异常",
|
||||||
|
// Type = MsgType.ERROR
|
||||||
|
// };
|
||||||
|
// _eventAggregator.GetEvent<SnackbarEvent>().Publish(alertMsg);
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// else
|
||||||
|
// {
|
||||||
|
// AlertMsg alertMsg = new AlertMsg
|
||||||
|
// {
|
||||||
|
// Message = "请先选择药品",
|
||||||
|
// Type = MsgType.ERROR
|
||||||
|
// };
|
||||||
|
// _eventAggregator.GetEvent<SnackbarEvent>().Publish(alertMsg);
|
||||||
|
// }
|
||||||
|
// });
|
||||||
|
//}
|
||||||
|
public DelegateCommand AddReportDateCommand
|
||||||
|
{
|
||||||
|
get => new DelegateCommand(() =>
|
||||||
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
var f = SqlSugarHelper.Db.UseTran(() =>
|
||||||
|
{
|
||||||
|
if (RejectionReportList != null && RejectionReportList.Count > 0)
|
||||||
|
{
|
||||||
|
int iRet = 0;
|
||||||
|
for (int i = 0; i < RejectionReportList.Count; i++)
|
||||||
|
{
|
||||||
|
RejectionReport report = RejectionReportList[i];
|
||||||
|
iRet = SqlSugarHelper.Db.Insertable(new RejectionReport()
|
||||||
|
{
|
||||||
|
SendDate = SendDate,
|
||||||
|
SendUser = SendUser.Nickname,
|
||||||
|
ReceiveUser = SendUserCheck.Nickname,//Jiaojie_ChannelStocks
|
||||||
|
RealNum = report.RealNum,
|
||||||
|
ReturnTime = ReturnTime,
|
||||||
|
ReturnUser = ReturnUser.UserName,
|
||||||
|
ReturnReceiveUser = ReturnUserCheck.Nickname,//Jiaojie_ChannelStocks
|
||||||
|
InfactNum = report.InfactNum,
|
||||||
|
EmptyNum = report.EmptyNum,
|
||||||
|
AddUser = AddUser.UserName,
|
||||||
|
AddCheckUser = AddUserCheck.Nickname,//Jiaojie_ChannelStocks
|
||||||
|
UseBottle = report.UseBottle,
|
||||||
|
UseOrderNo = report.UseOrderNo,
|
||||||
|
UseAdd = report.UseAdd,
|
||||||
|
DrugId = report.DrugId,
|
||||||
|
DrugName = report.DrugName,
|
||||||
|
DrugSpec = report.DrugSpec,
|
||||||
|
BaseNum = report.BaseNum + "支",
|
||||||
|
OperationTime = DateTime.Now
|
||||||
|
}).ExecuteCommand();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
AlertMsg alertMsg = new AlertMsg
|
||||||
|
{
|
||||||
|
Message = "请输入数据",
|
||||||
|
Type = MsgType.ERROR
|
||||||
|
};
|
||||||
|
_eventAggregator.GetEvent<SnackbarEvent>().Publish(alertMsg);
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
});
|
||||||
|
if (f.Data)
|
||||||
|
{
|
||||||
|
AlertMsg alertMsg = new AlertMsg
|
||||||
|
{
|
||||||
|
Message = "保存成功",
|
||||||
|
Type = MsgType.INFO
|
||||||
|
};
|
||||||
|
_eventAggregator.GetEvent<SnackbarEvent>().Publish(alertMsg);
|
||||||
|
}
|
||||||
|
if (!f.IsSuccess)
|
||||||
|
{
|
||||||
|
AlertMsg alertMsg = new AlertMsg
|
||||||
|
{
|
||||||
|
Message = "日消耗保存失败,数据异常",
|
||||||
|
Type = MsgType.ERROR
|
||||||
|
};
|
||||||
|
_eventAggregator.GetEvent<SnackbarEvent>().Publish(alertMsg);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
catch (Exception ex)
|
||||||
|
{
|
||||||
|
AlertMsg alertMsg = new AlertMsg
|
||||||
|
{
|
||||||
|
Message = "日消耗保存失败,抛出异常",
|
||||||
|
Type = MsgType.ERROR
|
||||||
|
};
|
||||||
|
_eventAggregator.GetEvent<SnackbarEvent>().Publish(alertMsg);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
//这个方法用于拦截请求,continuationCallback(true)就是不拦截,continuationCallback(false)拦截本次操作
|
||||||
|
public void ConfirmNavigationRequest(NavigationContext navigationContext, Action<bool> continuationCallback)
|
||||||
|
{
|
||||||
|
continuationCallback(true);
|
||||||
|
}
|
||||||
|
//public void UpdateComboBoxItems(string text)
|
||||||
|
//{
|
||||||
|
// string str = @"SELECT d.drug_id,d.py_code,d.drug_barcode,d.drug_name,d.drug_brand_name,d.drug_spec,d.dosage,d.pack_unit,
|
||||||
|
// d.manufactory,d.max_stock,CONCAT(drug_name,' / ',drug_spec,' / ',manufactory) as drug_name_spec FROM `drug_info` d";
|
||||||
|
// if (string.IsNullOrEmpty(text))
|
||||||
|
// {
|
||||||
|
// DrugInfos = SqlSugarHelper.Db.SqlQueryable<DrugInfo>(str).OrderBy(di => di.DrugName).OrderBy(di => di.DrugId).ToList();
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
// if (DrugInfos != null)
|
||||||
|
// {
|
||||||
|
// DrugInfos.Clear();
|
||||||
|
// }
|
||||||
|
// DrugInfos = SqlSugarHelper.Db.SqlQueryable<DrugInfo>(str).Where(di => di.DrugName.Contains(text) || di.PyCode.Contains(text)).OrderBy(di => di.DrugName).OrderBy(di => di.DrugId).ToList();
|
||||||
|
//}
|
||||||
|
|
||||||
|
//接收导航传过来的参数
|
||||||
|
public void OnNavigatedTo(NavigationContext navigationContext)
|
||||||
|
{
|
||||||
|
//查询表格数据
|
||||||
|
//RequestData();
|
||||||
|
//获取用户数据
|
||||||
|
GetUsers();
|
||||||
|
GetAllDrugInfos();
|
||||||
|
}
|
||||||
|
private void GetAllDrugInfos()
|
||||||
|
{
|
||||||
|
//var list = SqlSugarHelper.Db.Queryable<DrugInfo>().Includes<DrugManuNo>(di => di.DrugManuNos).OrderBy(di => di.DrugId).ToList();
|
||||||
|
//DrugInfos = list;
|
||||||
|
string str = "SELECT d.drug_id,d.drug_barcode,d.drug_name,d.drug_brand_name,d.drug_spec,d.dosage,d.pack_unit,d.manufactory,d.max_stock,CONCAT(drug_name,' / ',drug_spec,' / ',manufactory) as drug_name_spec,db.baseQuantity as PyCode FROM `drug_info` d left join drug_base db on d.drug_id=db.drugid and db.machine_id='DM3'";
|
||||||
|
if (ConfigurationManager.AppSettings["DrugNames"] != null)
|
||||||
|
{
|
||||||
|
str += " where d.drug_name in (" + ConfigurationManager.AppSettings["DrugNames"] + ")";
|
||||||
|
}
|
||||||
|
List<DrugInfo> DrugInfos = SqlSugarHelper.Db.SqlQueryable<DrugInfo>(str).OrderBy(di => di.DrugName).OrderBy(di => di.DrugId).ToList();
|
||||||
|
if (DrugInfos != null && DrugInfos.Count > 0)
|
||||||
|
{
|
||||||
|
for (int i = 0; i < DrugInfos.Count; i++)
|
||||||
|
{
|
||||||
|
RejectionReport report = new RejectionReport();
|
||||||
|
report.DrugId = DrugInfos[i].DrugId;
|
||||||
|
report.DrugName = DrugInfos[i].DrugName;
|
||||||
|
report.DrugSpec = DrugInfos[i].DrugSpec;
|
||||||
|
report.InfactNum = 0;
|
||||||
|
report.RealNum = 0;
|
||||||
|
report.BaseNum = DrugInfos[i].PyCode;
|
||||||
|
RejectionReportList.Add(report);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//void GetManuNos()
|
||||||
|
//{
|
||||||
|
// Manunos = SqlSugarHelper.Db.Queryable<DrugManuNo>()
|
||||||
|
// .WhereIF(SelectedDrug != null, (di) => di.DrugId.Equals(SelectedDrug.DrugId))
|
||||||
|
// .Select(di => di)
|
||||||
|
// .ToList();
|
||||||
|
//}
|
||||||
|
|
||||||
|
//void RequestData()
|
||||||
|
//{
|
||||||
|
// int totalCount = 0;
|
||||||
|
// DrugInfos = SqlSugarHelper.Db.Queryable<DrugInfo>()
|
||||||
|
// .Includes(di => di.drugBase)
|
||||||
|
// .WhereIF(!String.IsNullOrEmpty(SearchValue) && SelectedItem.Code.Equals("DrugId"), (di) => di.DrugId.ToString().Contains(SearchValue))
|
||||||
|
// .WhereIF(!String.IsNullOrEmpty(SearchValue) && SelectedItem.Code.Equals("DrugName"), (di) => di.DrugName.Contains(SearchValue))
|
||||||
|
// .WhereIF(!String.IsNullOrEmpty(SearchValue) && SelectedItem.Code.Equals("PyCode"), (di) => di.PyCode.Contains(SearchValue))
|
||||||
|
// .WhereIF(!String.IsNullOrEmpty(SearchValue) && SelectedItem.Code.Equals("DrugBarcode"), (di) => di.DrugBarcode.Contains(SearchValue))
|
||||||
|
// //.Select(di => di)
|
||||||
|
// .ToPageList(PageNum, PageSize, ref totalCount);
|
||||||
|
// foreach (DrugInfo di in DrugInfos)
|
||||||
|
// {
|
||||||
|
|
||||||
|
// if (di.drugBase == null)
|
||||||
|
// {
|
||||||
|
// di.drugBase = new DrugBase();
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
|
||||||
|
// TotalCount = totalCount;
|
||||||
|
// PageCount = (int)Math.Ceiling((double)TotalCount / PageSize);
|
||||||
|
//}
|
||||||
|
|
||||||
|
void GetUsers()
|
||||||
|
{
|
||||||
|
//获取用户数据
|
||||||
|
SendUserList = SqlSugarHelper.Db.Queryable<UserList>()
|
||||||
|
.Where(u => u.MachineId.Equals(ConfigurationManager.AppSettings["machineId"]))
|
||||||
|
.ToList();
|
||||||
|
//获取用户数据
|
||||||
|
SendUserCheckList = SendUserList.Select(item => (UserList)item.Clone()).ToList();
|
||||||
|
|
||||||
|
ReturnUserList = SendUserList.Select(item => (UserList)item.Clone()).ToList();
|
||||||
|
|
||||||
|
ReturnUserCheckList = SendUserList.Select(item => (UserList)item.Clone()).ToList();
|
||||||
|
|
||||||
|
AddUserList = SendUserList.Select(item => (UserList)item.Clone()).ToList();
|
||||||
|
|
||||||
|
AddUserCheckList = SendUserList.Select(item => (UserList)item.Clone()).ToList();
|
||||||
|
}
|
||||||
|
|
||||||
|
//每次导航的时候,该实列用不用重新创建,true是不重新创建,false是重新创建
|
||||||
|
public bool IsNavigationTarget(NavigationContext navigationContext)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
//这个方法用于拦截请求
|
||||||
|
public void OnNavigatedFrom(NavigationContext navigationContext)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -399,12 +399,12 @@ namespace DM_Weight.ViewModels
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public DelegateCommand RejectReport_Download
|
//public DelegateCommand RejectReport_Download
|
||||||
{
|
//{
|
||||||
get => new DelegateCommand(() => {
|
// get => new DelegateCommand(() => {
|
||||||
GridReportUtil.RejectionReport("");
|
// GridReportUtil.RejectionReport("");
|
||||||
});
|
// });
|
||||||
}
|
//}
|
||||||
public DelegateCommand Account_Download
|
public DelegateCommand Account_Download
|
||||||
{
|
{
|
||||||
get => new DelegateCommand(() =>
|
get => new DelegateCommand(() =>
|
||||||
|
|
|
@ -25,6 +25,7 @@ using DM_Weight.msg;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using DM_Weight.Common;
|
using DM_Weight.Common;
|
||||||
using System.Windows.Media;
|
using System.Windows.Media;
|
||||||
|
using MaterialDesignThemes.Wpf;
|
||||||
|
|
||||||
namespace DM_Weight.ViewModels
|
namespace DM_Weight.ViewModels
|
||||||
{
|
{
|
||||||
|
@ -589,6 +590,8 @@ namespace DM_Weight.ViewModels
|
||||||
stop();
|
stop();
|
||||||
System.Windows.Application.Current.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Send, new Action(() =>
|
System.Windows.Application.Current.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Send, new Action(() =>
|
||||||
{
|
{
|
||||||
|
|
||||||
|
DialogHost.Close("RootDialog");
|
||||||
_regionManager.RequestNavigate("MainRegion", "LoginWindow");
|
_regionManager.RequestNavigate("MainRegion", "LoginWindow");
|
||||||
}));
|
}));
|
||||||
//});
|
//});
|
||||||
|
|
|
@ -525,12 +525,19 @@ namespace DM_Weight.ViewModels
|
||||||
PremissionName = "账册",
|
PremissionName = "账册",
|
||||||
PremissionPath = "AccountWindow",
|
PremissionPath = "AccountWindow",
|
||||||
};
|
};
|
||||||
|
PremissionDm kuguan7 = new PremissionDm
|
||||||
|
{
|
||||||
|
Id = 47,
|
||||||
|
PremissionName = "报表数据录入",
|
||||||
|
PremissionPath = "AddReportDate",
|
||||||
|
};
|
||||||
kuguanChild.Add(kuguan1);
|
kuguanChild.Add(kuguan1);
|
||||||
kuguanChild.Add(kuguan2);
|
kuguanChild.Add(kuguan2);
|
||||||
kuguanChild.Add(kuguan4);
|
kuguanChild.Add(kuguan4);
|
||||||
kuguanChild.Add(kuguan6);
|
kuguanChild.Add(kuguan6);
|
||||||
kuguanChild.Add(kuguan3);
|
kuguanChild.Add(kuguan3);
|
||||||
kuguanChild.Add(kuguan5);
|
kuguanChild.Add(kuguan5);
|
||||||
|
kuguanChild.Add(kuguan7);
|
||||||
kuguan.Children = kuguanChild;
|
kuguan.Children = kuguanChild;
|
||||||
defaultAll.Add(kuguan);
|
defaultAll.Add(kuguan);
|
||||||
#endregion
|
#endregion
|
||||||
|
|
|
@ -0,0 +1,727 @@
|
||||||
|
<UserControl x:Class="DM_Weight.Views.AddReportDate"
|
||||||
|
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
||||||
|
xmlns:pagination="clr-namespace:DM_Weight.Components.pagination"
|
||||||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||||
|
xmlns:local="clr-namespace:DM_Weight.Views"
|
||||||
|
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
|
||||||
|
xmlns:prism="http://prismlibrary.com/"
|
||||||
|
mc:Ignorable="d" >
|
||||||
|
<Grid>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="9*" />
|
||||||
|
<!--<ColumnDefinition Width="5*" />-->
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid Margin="0 6 0 6" Grid.Row="0">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="1.5*" />
|
||||||
|
<ColumnDefinition Width="1.5*" />
|
||||||
|
<ColumnDefinition Width="2*" />
|
||||||
|
<ColumnDefinition Width="5*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<DatePicker
|
||||||
|
Grid.Column="0"
|
||||||
|
SelectedDate="{Binding StartDate, TargetNullValue=''}"
|
||||||
|
Margin="6 0 0 0"
|
||||||
|
materialDesign:HintAssist.Hint="开始时间"
|
||||||
|
Style="{StaticResource MaterialDesignOutlinedDatePicker}"
|
||||||
|
/>
|
||||||
|
<DatePicker
|
||||||
|
Grid.Column="1"
|
||||||
|
SelectedDate="{Binding EndDate}"
|
||||||
|
Margin="6 0 0 0"
|
||||||
|
materialDesign:HintAssist.Hint="结束时间"
|
||||||
|
Style="{StaticResource MaterialDesignOutlinedDatePicker}"
|
||||||
|
/>
|
||||||
|
<StackPanel Grid.Column="3" Orientation="Horizontal" HorizontalAlignment="Right">
|
||||||
|
<Button
|
||||||
|
Margin="0 0 6 0"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
Style="{StaticResource MaterialDesignOutlinedLightButton}"
|
||||||
|
ToolTip="导出" Command="{Binding Download}">
|
||||||
|
<StackPanel Orientation="Horizontal">
|
||||||
|
<materialDesign:PackIcon Kind="download" />
|
||||||
|
<TextBlock Text="导出报表" />
|
||||||
|
</StackPanel>
|
||||||
|
</Button>
|
||||||
|
</StackPanel>
|
||||||
|
</Grid>
|
||||||
|
<!--<Grid Grid.Column="0">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="Auto" />
|
||||||
|
<RowDefinition />
|
||||||
|
<RowDefinition Height="Auto" />
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
|
||||||
|
<Grid Margin="0 6 0 6" Grid.Row="0">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="110" />
|
||||||
|
<ColumnDefinition Width="180" />
|
||||||
|
<ColumnDefinition />
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<ComboBox
|
||||||
|
Grid.Column="0"
|
||||||
|
Margin="6 0 0 0"
|
||||||
|
Style="{StaticResource MaterialDesignOutlinedComboBox}"
|
||||||
|
SelectedItem="{Binding SelectedItem}"
|
||||||
|
DisplayMemberPath="Name"
|
||||||
|
ItemsSource="{Binding Selects}"
|
||||||
|
/>
|
||||||
|
<TextBox
|
||||||
|
Grid.Column="1"
|
||||||
|
Text="{Binding SearchValue}"
|
||||||
|
materialDesign:HintAssist.Hint="{Binding SelectedItem.Name}"
|
||||||
|
Margin="6 0 0 0"
|
||||||
|
Style="{StaticResource MaterialDesignOutlinedTextBox}"/>
|
||||||
|
|
||||||
|
<StackPanel Grid.Column="2" Orientation="Horizontal" HorizontalAlignment="Right">
|
||||||
|
|
||||||
|
<Button
|
||||||
|
Margin="0 0 6 0"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
Style="{StaticResource MaterialDesignOutlinedLightButton}"
|
||||||
|
ToolTip="刷新" Command="{Binding Query}">
|
||||||
|
<materialDesign:PackIcon
|
||||||
|
Kind="Refresh" />
|
||||||
|
</Button>
|
||||||
|
</StackPanel>
|
||||||
|
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
<ListView
|
||||||
|
Grid.Row="1"
|
||||||
|
ItemsSource="{Binding DrugInfos}"
|
||||||
|
SelectedItem="{Binding SelectedDrug}"
|
||||||
|
materialDesign:ListViewAssist.HeaderRowBackground="#31ccec"
|
||||||
|
materialDesign:DataGridAssist.ColumnHeaderPadding="10"
|
||||||
|
materialDesign:ListViewAssist.ListViewItemPadding="13">
|
||||||
|
<ListView.Resources>
|
||||||
|
<Style TargetType="{x:Type GridViewColumnHeader}" BasedOn="{StaticResource {x:Type GridViewColumnHeader}}">
|
||||||
|
<Setter Property="Foreground" Value="White" />
|
||||||
|
</Style>
|
||||||
|
</ListView.Resources>
|
||||||
|
<ListView.View>
|
||||||
|
<GridView>
|
||||||
|
-->
|
||||||
|
<!--<GridViewColumn
|
||||||
|
Header="药品编码"
|
||||||
|
DisplayMemberBinding="{Binding DrugId}"/>-->
|
||||||
|
<!--
|
||||||
|
<GridViewColumn
|
||||||
|
Header="药品名称"
|
||||||
|
DisplayMemberBinding="{Binding DrugName}"/>
|
||||||
|
<GridViewColumn
|
||||||
|
Header="规格"
|
||||||
|
DisplayMemberBinding="{Binding DrugSpec}"
|
||||||
|
/>
|
||||||
|
<GridViewColumn
|
||||||
|
Header="厂家"
|
||||||
|
DisplayMemberBinding="{Binding Manufactory}"
|
||||||
|
/>
|
||||||
|
<GridViewColumn
|
||||||
|
Header="拼音码"
|
||||||
|
DisplayMemberBinding="{Binding PyCode}"
|
||||||
|
/>
|
||||||
|
<GridViewColumn
|
||||||
|
Header="单位"
|
||||||
|
DisplayMemberBinding="{Binding PackUnit}"
|
||||||
|
/>
|
||||||
|
<GridViewColumn
|
||||||
|
Header="基数"
|
||||||
|
DisplayMemberBinding="{Binding drugBase.BaseQuantity}"
|
||||||
|
/>
|
||||||
|
</GridView>
|
||||||
|
</ListView.View>
|
||||||
|
</ListView>
|
||||||
|
<pagination:Pagination Grid.Row="2"
|
||||||
|
CurrentPage="{Binding PageNum}"
|
||||||
|
PageSize="{Binding PageSize}"
|
||||||
|
TotalPages="{Binding TotalCount}"
|
||||||
|
InfoTextIsEnabel="True"
|
||||||
|
/>
|
||||||
|
</Grid>-->
|
||||||
|
<!--<materialDesign:Card Grid.Column="1" Margin="6" Grid.Row="1">
|
||||||
|
<TabControl HorizontalContentAlignment="Center" Style="{StaticResource MaterialDesignFilledTabControl}">
|
||||||
|
<TabItem Header="录入报表数据">
|
||||||
|
<Grid Margin="6">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="3*"/>
|
||||||
|
<ColumnDefinition Width="3*"/>
|
||||||
|
<ColumnDefinition Width="3*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<ComboBox
|
||||||
|
Margin="6" Grid.ColumnSpan="3"
|
||||||
|
materialDesign:HintAssist.Hint="药品名称/拼音码"
|
||||||
|
Style="{StaticResource MaterialDesignOutlinedComboBox}"
|
||||||
|
IsEditable="True"
|
||||||
|
ItemsSource="{Binding DrugInfos}"
|
||||||
|
SelectedItem="{Binding SelectedDrug}"
|
||||||
|
DisplayMemberPath="drug_name_spec" IsEnabled="True" IsTextSearchEnabled="False" KeyUp="ComboBox_KeyUp"
|
||||||
|
/>
|
||||||
|
<DatePicker
|
||||||
|
Grid.Row="1" Grid.Column="0"
|
||||||
|
SelectedDate="{Binding RejReport.SendDate,UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
SelectedDateFormat="Short"
|
||||||
|
Margin="6 0 0 0"
|
||||||
|
materialDesign:HintAssist.Hint="发药时间"
|
||||||
|
Style="{StaticResource MaterialDesignOutlinedDatePicker}" />
|
||||||
|
<ComboBox
|
||||||
|
Margin="8 8 8 0"
|
||||||
|
Grid.Row="1" Grid.Column="1"
|
||||||
|
Style="{StaticResource MaterialDesignOutlinedComboBox}"
|
||||||
|
materialDesign:HintAssist.Hint="发药者"
|
||||||
|
ItemsSource="{Binding SendUserList}"
|
||||||
|
SelectedValue="{Binding SendUser}"
|
||||||
|
DisplayMemberPath="Nickname"/>
|
||||||
|
<ComboBox
|
||||||
|
Margin="8 8 8 0"
|
||||||
|
Grid.Row="1" Grid.Column="2"
|
||||||
|
Style="{StaticResource MaterialDesignOutlinedComboBox}"
|
||||||
|
materialDesign:HintAssist.Hint="领药者"
|
||||||
|
ItemsSource="{Binding SendUserCheckList}"
|
||||||
|
SelectedValue="{Binding SendUserCheck}"
|
||||||
|
DisplayMemberPath="Nickname"/>
|
||||||
|
<TextBox
|
||||||
|
Grid.Row="2" Grid.Column="0"
|
||||||
|
Text="{Binding RejReport.RealNum, UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
materialDesign:HintAssist.Hint="实发数"
|
||||||
|
Margin="12 6"
|
||||||
|
Style="{StaticResource MaterialDesignOutlinedTextBox}"/>
|
||||||
|
|
||||||
|
-->
|
||||||
|
<!--<StackPanel Grid.Row="5" Orientation="Horizontal" HorizontalAlignment="Center" Margin="12">
|
||||||
|
<Button Margin="6" Content="保存" Command="{Binding AddSendReportDateCommand}" />
|
||||||
|
-->
|
||||||
|
<!--<Button Margin="6" Content="修改" Command="{Binding EditDrugCommand}"/>-->
|
||||||
|
<!--
|
||||||
|
</StackPanel>-->
|
||||||
|
<!--
|
||||||
|
|
||||||
|
|
||||||
|
<DatePicker
|
||||||
|
Grid.Row="3" Grid.Column="0"
|
||||||
|
SelectedDate="{Binding RejReport.ReturnTime,UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
SelectedDateFormat="Short"
|
||||||
|
Margin="6 0 0 0"
|
||||||
|
materialDesign:HintAssist.Hint="还药时间"
|
||||||
|
Style="{StaticResource MaterialDesignOutlinedDatePicker}" />
|
||||||
|
<ComboBox
|
||||||
|
Margin="8 8 8 0"
|
||||||
|
Grid.Row="3" Grid.Column="1"
|
||||||
|
Style="{StaticResource MaterialDesignOutlinedComboBox}"
|
||||||
|
materialDesign:HintAssist.Hint="还药者"
|
||||||
|
ItemsSource="{Binding ReturnUserList}"
|
||||||
|
SelectedValue="{Binding ReturnUser}"
|
||||||
|
DisplayMemberPath="Nickname"/>
|
||||||
|
<ComboBox
|
||||||
|
Margin="8 8 8 0"
|
||||||
|
Grid.Row="3" Grid.Column="2"
|
||||||
|
Style="{StaticResource MaterialDesignOutlinedComboBox}"
|
||||||
|
materialDesign:HintAssist.Hint="接收者"
|
||||||
|
ItemsSource="{Binding ReturnUserCheckList}"
|
||||||
|
SelectedValue="{Binding ReturnUserCheck}"
|
||||||
|
DisplayMemberPath="Nickname"/>
|
||||||
|
<TextBox
|
||||||
|
Grid.Row="4" Grid.Column="0"
|
||||||
|
Text="{Binding RejReport.InfactNum, UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
materialDesign:HintAssist.Hint="实物数"
|
||||||
|
Margin="12 6"
|
||||||
|
Style="{StaticResource MaterialDesignOutlinedTextBox}"/>
|
||||||
|
<TextBox
|
||||||
|
Grid.Row="4" Grid.Column="1"
|
||||||
|
Text="{Binding RejReport.EmptyNum, UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
materialDesign:HintAssist.Hint="空安瓿"
|
||||||
|
Margin="12 6"
|
||||||
|
Style="{StaticResource MaterialDesignOutlinedTextBox}"/>
|
||||||
|
|
||||||
|
-->
|
||||||
|
<!--<StackPanel Grid.Row="6" Orientation="Horizontal" HorizontalAlignment="Center" Margin="12">
|
||||||
|
<Button Margin="6" Content="保存" Command="{Binding AddReturnReportDateCommand}" />
|
||||||
|
-->
|
||||||
|
<!--<Button Margin="6" Content="修改" Command="{Binding EditDrugCommand}"/>-->
|
||||||
|
<!--
|
||||||
|
</StackPanel>-->
|
||||||
|
|
||||||
|
<!--<DatePicker
|
||||||
|
Grid.Row="4" Grid.Column="2"
|
||||||
|
SelectedDate="{Binding RejReport.ReturnTime,UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
SelectedDateFormat="Short"
|
||||||
|
Margin="6 0 0 0"
|
||||||
|
materialDesign:HintAssist.Hint="日期"
|
||||||
|
Style="{StaticResource MaterialDesignOutlinedDatePicker}" />-->
|
||||||
|
<!--
|
||||||
|
<ComboBox
|
||||||
|
Margin="8 8 8 0"
|
||||||
|
Grid.Row="5" Grid.Column="0"
|
||||||
|
Style="{StaticResource MaterialDesignOutlinedComboBox}"
|
||||||
|
materialDesign:HintAssist.Hint="补充者"
|
||||||
|
ItemsSource="{Binding AddUserList}"
|
||||||
|
SelectedValue="{Binding AddUser}"
|
||||||
|
DisplayMemberPath="Nickname"/>
|
||||||
|
<ComboBox
|
||||||
|
Margin="8 8 8 0"
|
||||||
|
Grid.Row="5" Grid.Column="1"
|
||||||
|
Style="{StaticResource MaterialDesignOutlinedComboBox}"
|
||||||
|
materialDesign:HintAssist.Hint="核对者"
|
||||||
|
ItemsSource="{Binding AddUserCheckList}"
|
||||||
|
SelectedValue="{Binding AddUserCheck}"
|
||||||
|
DisplayMemberPath="Nickname"/>
|
||||||
|
<TextBox
|
||||||
|
Grid.Row="5" Grid.Column="2"
|
||||||
|
Text="{Binding RejReport.UseBottle, UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
materialDesign:HintAssist.Hint="安瓿"
|
||||||
|
Margin="12 6"
|
||||||
|
Style="{StaticResource MaterialDesignOutlinedTextBox}"/>
|
||||||
|
<TextBox
|
||||||
|
Grid.Row="6" Grid.Column="0"
|
||||||
|
Text="{Binding RejReport.UseOrderNo, UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
materialDesign:HintAssist.Hint="处方"
|
||||||
|
Margin="12 6"
|
||||||
|
Style="{StaticResource MaterialDesignOutlinedTextBox}"/>
|
||||||
|
<TextBox
|
||||||
|
Grid.Row="6" Grid.Column="1"
|
||||||
|
Text="{Binding RejReport.UseAdd, UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
materialDesign:HintAssist.Hint="补充"
|
||||||
|
Margin="12 6"
|
||||||
|
Style="{StaticResource MaterialDesignOutlinedTextBox}"/>
|
||||||
|
<StackPanel Grid.Row="10" Grid.ColumnSpan="3" Orientation="Horizontal" HorizontalAlignment="Center" Margin="12">
|
||||||
|
<Button Margin="7" Content="保存" Command="{Binding AddReportDateCommand}" />
|
||||||
|
-->
|
||||||
|
<!--<Button Margin="6" Content="修改" Command="{Binding EditDrugCommand}"/>-->
|
||||||
|
<!--
|
||||||
|
</StackPanel>
|
||||||
|
</Grid>
|
||||||
|
</TabItem>
|
||||||
|
</TabControl>
|
||||||
|
</materialDesign:Card>-->
|
||||||
|
|
||||||
|
<!--<ScrollViewer Grid.Row="1" Margin="6">
|
||||||
|
<ItemsControl
|
||||||
|
ItemsSource="{Binding DrugInfos}"
|
||||||
|
Grid.IsSharedSizeScope="True">
|
||||||
|
<ItemsControl.ItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<Grid>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="200"/>
|
||||||
|
<ColumnDefinition/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Border BorderBrush="White" BorderThickness="1">
|
||||||
|
<StackPanel Orientation="Horizontal" Background="#31ccec" Grid.Column="0">
|
||||||
|
|
||||||
|
<Grid>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition/>
|
||||||
|
<RowDefinition/>
|
||||||
|
<RowDefinition/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="200"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<TextBlock TextWrapping="Wrap" Grid.Row="0" HorizontalAlignment="Center" VerticalAlignment="Center" Padding="0 10 0 0 " Text="{Binding DrugName}"/>
|
||||||
|
|
||||||
|
<TextBlock TextWrapping="Wrap" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center" Padding="0 0 0 1 " Text="{Binding DrugSpec}"/>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
|
||||||
|
</StackPanel>
|
||||||
|
</Border>
|
||||||
|
<DataGrid
|
||||||
|
Margin="0"
|
||||||
|
Grid.Column="1"
|
||||||
|
materialDesign:DataGridAssist.ColumnHeaderPadding="15"
|
||||||
|
ItemsSource="{Binding report}"
|
||||||
|
materialDesign:DataGridAssist.EnableEditBoxAssist="False"
|
||||||
|
materialDesign:DataGridAssist.CellPadding="13"
|
||||||
|
SelectionUnit="Cell"
|
||||||
|
CanUserAddRows="False"
|
||||||
|
AutoGenerateColumns="False">
|
||||||
|
<DataGrid.Resources>
|
||||||
|
<Style TargetType="{x:Type DataGridColumnHeader}" BasedOn="{StaticResource MaterialDesignDataGridColumnHeader}">
|
||||||
|
<Setter Property="Background" Value="#31ccec" />
|
||||||
|
<Setter Property="Foreground" Value="white" />
|
||||||
|
<Setter Property="Height" Value="56" />
|
||||||
|
<Setter Property="BorderBrush" Value="white"/>
|
||||||
|
<Setter Property="BorderThickness" Value="0.6"/>
|
||||||
|
<Setter Property="HorizontalContentAlignment" Value="Center"/>
|
||||||
|
|
||||||
|
</Style>
|
||||||
|
<Style TargetType="{x:Type DataGridCell}" BasedOn="{StaticResource MaterialDesignDataGridCell}">
|
||||||
|
<Style.Triggers>
|
||||||
|
<Trigger Property="IsReadOnly" Value="True">
|
||||||
|
<Setter Property="BorderBrush" Value="Transparent" />
|
||||||
|
<Setter Property="HorizontalAlignment" Value="Center"/>
|
||||||
|
</Trigger>
|
||||||
|
</Style.Triggers>
|
||||||
|
</Style>
|
||||||
|
</DataGrid.Resources>
|
||||||
|
<DataGrid.Columns>
|
||||||
|
<DataGridTemplateColumn Width="100" Header="实发数">
|
||||||
|
<DataGridTemplateColumn.CellTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBox Style="{StaticResource MaterialDesignDataGridTextColumnEditingStyle}">
|
||||||
|
<TextBox.Text>
|
||||||
|
<Binding Path="RealNum" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged">
|
||||||
|
|
||||||
|
</Binding>
|
||||||
|
</TextBox.Text>
|
||||||
|
</TextBox>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTemplateColumn.CellTemplate>
|
||||||
|
</DataGridTemplateColumn>
|
||||||
|
|
||||||
|
<DataGridTemplateColumn Width="100" Header="实物数">
|
||||||
|
<DataGridTemplateColumn.CellTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBox Style="{StaticResource MaterialDesignDataGridTextColumnEditingStyle}">
|
||||||
|
<TextBox.Text>
|
||||||
|
<Binding Path="InfactNum" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged">
|
||||||
|
|
||||||
|
</Binding>
|
||||||
|
</TextBox.Text>
|
||||||
|
</TextBox>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTemplateColumn.CellTemplate>
|
||||||
|
</DataGridTemplateColumn>
|
||||||
|
<DataGridTemplateColumn Width="100" Header="空安瓿">
|
||||||
|
<DataGridTemplateColumn.CellTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBox Style="{StaticResource MaterialDesignDataGridTextColumnEditingStyle}">
|
||||||
|
<TextBox.Text>
|
||||||
|
<Binding Path="EmptyNum" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged">
|
||||||
|
|
||||||
|
</Binding>
|
||||||
|
</TextBox.Text>
|
||||||
|
</TextBox>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTemplateColumn.CellTemplate>
|
||||||
|
</DataGridTemplateColumn>
|
||||||
|
<DataGridTemplateColumn Width="100" Header="还药时间">
|
||||||
|
<DataGridTemplateColumn.CellTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<DatePicker
|
||||||
|
Grid.Row="3" Grid.Column="0"
|
||||||
|
SelectedDate="{Binding ReturnTime,UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
SelectedDateFormat="Short"
|
||||||
|
Margin="6 0 0 0"
|
||||||
|
materialDesign:HintAssist.Hint="还药时间"
|
||||||
|
Style="{StaticResource MaterialDesignOutlinedDatePicker}" />
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTemplateColumn.CellTemplate>
|
||||||
|
</DataGridTemplateColumn>
|
||||||
|
<DataGridTemplateColumn Width="150" IsReadOnly="True" Header="还药者">
|
||||||
|
<DataGridTemplateColumn.CellTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<ComboBox
|
||||||
|
Style="{StaticResource MaterialDesignDataGridComboBox}"
|
||||||
|
ItemsSource="{Binding ReturnUser}"
|
||||||
|
SelectedItem="{Binding drugManuNo,UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
DisplayMemberPath="ManuNo"
|
||||||
|
IsEnabled="{Binding Quantity,Converter={StaticResource QuantityCountConverter}}">
|
||||||
|
|
||||||
|
|
||||||
|
</ComboBox>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTemplateColumn.CellTemplate>
|
||||||
|
</DataGridTemplateColumn>
|
||||||
|
<DataGridTemplateColumn Width="150" IsReadOnly="True" Header="接收者">
|
||||||
|
<DataGridTemplateColumn.CellTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<ComboBox
|
||||||
|
Style="{StaticResource MaterialDesignDataGridComboBox}"
|
||||||
|
ItemsSource="{Binding ReturnReceiveUser}"
|
||||||
|
SelectedItem="{Binding drugManuNo,UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
DisplayMemberPath="ManuNo"
|
||||||
|
IsEnabled="{Binding Quantity,Converter={StaticResource QuantityCountConverter}}">
|
||||||
|
</ComboBox>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTemplateColumn.CellTemplate>
|
||||||
|
</DataGridTemplateColumn>
|
||||||
|
<DataGridTemplateColumn Width="100" Header="安瓿">
|
||||||
|
<DataGridTemplateColumn.CellTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBox Style="{StaticResource MaterialDesignDataGridTextColumnEditingStyle}">
|
||||||
|
<TextBox.Text>
|
||||||
|
<Binding Path="UseBottle" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged">
|
||||||
|
|
||||||
|
</Binding>
|
||||||
|
</TextBox.Text>
|
||||||
|
</TextBox>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTemplateColumn.CellTemplate>
|
||||||
|
</DataGridTemplateColumn>
|
||||||
|
<DataGridTemplateColumn Width="100" Header="处方">
|
||||||
|
<DataGridTemplateColumn.CellTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBox Style="{StaticResource MaterialDesignDataGridTextColumnEditingStyle}">
|
||||||
|
<TextBox.Text>
|
||||||
|
<Binding Path="UseOrderNo" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged">
|
||||||
|
<Binding.ValidationRules>
|
||||||
|
<ExceptionValidationRule />
|
||||||
|
</Binding.ValidationRules>
|
||||||
|
</Binding>
|
||||||
|
</TextBox.Text>
|
||||||
|
</TextBox>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTemplateColumn.CellTemplate>
|
||||||
|
</DataGridTemplateColumn>
|
||||||
|
<DataGridTemplateColumn Width="100" Header="补充">
|
||||||
|
<DataGridTemplateColumn.CellTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBox Style="{StaticResource MaterialDesignDataGridTextColumnEditingStyle}">
|
||||||
|
<TextBox.Text>
|
||||||
|
<Binding Path="UseAdd" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged">
|
||||||
|
<Binding.ValidationRules>
|
||||||
|
<ExceptionValidationRule />
|
||||||
|
</Binding.ValidationRules>
|
||||||
|
</Binding>
|
||||||
|
</TextBox.Text>
|
||||||
|
</TextBox>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTemplateColumn.CellTemplate>
|
||||||
|
</DataGridTemplateColumn>
|
||||||
|
<DataGridTemplateColumn Width="150" IsReadOnly="True" Header="补充者">
|
||||||
|
<DataGridTemplateColumn.CellTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<ComboBox
|
||||||
|
Style="{StaticResource MaterialDesignDataGridComboBox}"
|
||||||
|
ItemsSource="{Binding ReturnReceiveUser}"
|
||||||
|
SelectedItem="{Binding drugManuNo,UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
DisplayMemberPath="ManuNo"
|
||||||
|
IsEnabled="{Binding Quantity,Converter={StaticResource QuantityCountConverter}}">
|
||||||
|
|
||||||
|
|
||||||
|
</ComboBox>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTemplateColumn.CellTemplate>
|
||||||
|
</DataGridTemplateColumn>
|
||||||
|
<DataGridTemplateColumn Width="150" IsReadOnly="True" Header="核对者">
|
||||||
|
<DataGridTemplateColumn.CellTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<ComboBox
|
||||||
|
Style="{StaticResource MaterialDesignDataGridComboBox}"
|
||||||
|
ItemsSource="{Binding ReturnReceiveUser}"
|
||||||
|
SelectedItem="{Binding drugManuNo,UpdateSourceTrigger=PropertyChanged}"
|
||||||
|
DisplayMemberPath="ManuNo"
|
||||||
|
IsEnabled="{Binding Quantity,Converter={StaticResource QuantityCountConverter}}">
|
||||||
|
</ComboBox>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTemplateColumn.CellTemplate>
|
||||||
|
</DataGridTemplateColumn>
|
||||||
|
</DataGrid.Columns>
|
||||||
|
</DataGrid>
|
||||||
|
</Grid>
|
||||||
|
</DataTemplate>
|
||||||
|
</ItemsControl.ItemTemplate>
|
||||||
|
</ItemsControl>
|
||||||
|
</ScrollViewer>-->
|
||||||
|
<DataGrid
|
||||||
|
Padding="0 6 0 0"
|
||||||
|
Grid.Row="1"
|
||||||
|
materialDesign:DataGridAssist.ColumnHeaderPadding="15"
|
||||||
|
ItemsSource="{Binding RejectionReportList}"
|
||||||
|
materialDesign:DataGridAssist.EnableEditBoxAssist="False"
|
||||||
|
materialDesign:DataGridAssist.CellPadding="13"
|
||||||
|
SelectionUnit="Cell"
|
||||||
|
CanUserAddRows="False"
|
||||||
|
AutoGenerateColumns="False">
|
||||||
|
<DataGrid.Resources>
|
||||||
|
<Style TargetType="{x:Type DataGridColumnHeader}" BasedOn="{StaticResource MaterialDesignDataGridColumnHeader}">
|
||||||
|
<Setter Property="Background" Value="#31ccec" />
|
||||||
|
<Setter Property="Foreground" Value="white" />
|
||||||
|
<Setter Property="Height" Value="56" />
|
||||||
|
<Setter Property="BorderBrush" Value="white"/>
|
||||||
|
<Setter Property="BorderThickness" Value="0.6"/>
|
||||||
|
<Setter Property="HorizontalContentAlignment" Value="Center"/>
|
||||||
|
|
||||||
|
</Style>
|
||||||
|
<Style TargetType="{x:Type DataGridCell}" BasedOn="{StaticResource MaterialDesignDataGridCell}">
|
||||||
|
<Style.Triggers>
|
||||||
|
<Trigger Property="IsReadOnly" Value="True">
|
||||||
|
<Setter Property="BorderBrush" Value="Transparent" />
|
||||||
|
<Setter Property="HorizontalAlignment" Value="Center"/>
|
||||||
|
</Trigger>
|
||||||
|
</Style.Triggers>
|
||||||
|
</Style>
|
||||||
|
</DataGrid.Resources>
|
||||||
|
<DataGrid.Columns>
|
||||||
|
<DataGridTextColumn Width="181"
|
||||||
|
Binding="{Binding DrugName}"
|
||||||
|
Header="药品信息"
|
||||||
|
IsReadOnly="True"
|
||||||
|
ElementStyle="{StaticResource MaterialDesignDataGridTextColumnStyle}"/>
|
||||||
|
<DataGridTextColumn Width="100"
|
||||||
|
Binding="{Binding DrugSpec}"
|
||||||
|
Header="规格"
|
||||||
|
IsReadOnly="True"
|
||||||
|
ElementStyle="{StaticResource MaterialDesignDataGridTextColumnStyle}"/>
|
||||||
|
<DataGridTextColumn Width="100"
|
||||||
|
Binding="{Binding BaseNum}"
|
||||||
|
Header="总基数"
|
||||||
|
IsReadOnly="True"
|
||||||
|
ElementStyle="{StaticResource MaterialDesignDataGridTextColumnStyle}"/>
|
||||||
|
<DataGridTemplateColumn Width="100" Header="实发数">
|
||||||
|
<DataGridTemplateColumn.CellTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBox Style="{StaticResource MaterialDesignDataGridTextColumnEditingStyle}">
|
||||||
|
<TextBox.Text>
|
||||||
|
<Binding Path="RealNum" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged">
|
||||||
|
</Binding>
|
||||||
|
</TextBox.Text>
|
||||||
|
</TextBox>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTemplateColumn.CellTemplate>
|
||||||
|
</DataGridTemplateColumn>
|
||||||
|
<DataGridTemplateColumn Width="100" Header="实物数">
|
||||||
|
<DataGridTemplateColumn.CellTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBox Style="{StaticResource MaterialDesignDataGridTextColumnEditingStyle}">
|
||||||
|
<TextBox.Text>
|
||||||
|
<Binding Path="InfactNum" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged">
|
||||||
|
</Binding>
|
||||||
|
</TextBox.Text>
|
||||||
|
</TextBox>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTemplateColumn.CellTemplate>
|
||||||
|
</DataGridTemplateColumn>
|
||||||
|
<DataGridTemplateColumn Width="100" Header="空安瓿">
|
||||||
|
<DataGridTemplateColumn.CellTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBox Style="{StaticResource MaterialDesignDataGridTextColumnEditingStyle}">
|
||||||
|
<TextBox.Text>
|
||||||
|
<Binding Path="EmptyNum" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged">
|
||||||
|
</Binding>
|
||||||
|
</TextBox.Text>
|
||||||
|
</TextBox>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTemplateColumn.CellTemplate>
|
||||||
|
</DataGridTemplateColumn>
|
||||||
|
<!--<DataGridTemplateColumn Width="100" Header="还药时间">
|
||||||
|
<DataGridTemplateColumn.CellTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<TextBox Style="{StaticResource MaterialDesignDataGridTextColumnEditingStyle}">
|
||||||
|
<TextBox.Text>
|
||||||
|
<Binding Path="ReturnTime" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged">
|
||||||
|
</Binding>
|
||||||
|
</TextBox.Text>
|
||||||
|
</TextBox>
|
||||||
|
</DataTemplate>
|
||||||
|
</DataGridTemplateColumn.CellTemplate>
|
||||||
|
</DataGridTemplateColumn>-->
|
||||||
|
</DataGrid.Columns>
|
||||||
|
</DataGrid>
|
||||||
|
<Grid Grid.Row="2" Margin="0 6 0 6">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="2*" />
|
||||||
|
<ColumnDefinition Width="2*" />
|
||||||
|
<ColumnDefinition Width="2*" />
|
||||||
|
<ColumnDefinition Width="2*" />
|
||||||
|
<ColumnDefinition Width="*" />
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="3*"/>
|
||||||
|
<RowDefinition Height="3*"/>
|
||||||
|
<RowDefinition Height="3*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<DatePicker Grid.Row="0"
|
||||||
|
Grid.Column="0"
|
||||||
|
SelectedDate="{Binding SendDate, TargetNullValue=''}"
|
||||||
|
Margin="6 0 0 0"
|
||||||
|
materialDesign:HintAssist.Hint="发药时间"
|
||||||
|
Style="{StaticResource MaterialDesignOutlinedDatePicker}"
|
||||||
|
/>
|
||||||
|
<ComboBox
|
||||||
|
Margin="8 8 8 0"
|
||||||
|
Grid.Row="0" Grid.Column="1"
|
||||||
|
Style="{StaticResource MaterialDesignOutlinedComboBox}"
|
||||||
|
materialDesign:HintAssist.Hint="发药者"
|
||||||
|
ItemsSource="{Binding SendUserList}"
|
||||||
|
SelectedValue="{Binding SendUser}"
|
||||||
|
DisplayMemberPath="Nickname"/>
|
||||||
|
<ComboBox
|
||||||
|
Margin="8 8 8 0"
|
||||||
|
Grid.Row="0" Grid.Column="2"
|
||||||
|
Style="{StaticResource MaterialDesignOutlinedComboBox}"
|
||||||
|
materialDesign:HintAssist.Hint="领药者"
|
||||||
|
ItemsSource="{Binding SendUserCheckList}"
|
||||||
|
SelectedValue="{Binding SendUserCheck}"
|
||||||
|
DisplayMemberPath="Nickname"/>
|
||||||
|
|
||||||
|
<!--<DatePicker Grid.Row="1"
|
||||||
|
Grid.Column="1"
|
||||||
|
SelectedDate="{Binding SendDate, TargetNullValue=''}"
|
||||||
|
Margin="6 0 0 0"
|
||||||
|
materialDesign:HintAssist.Hint="还药时间"
|
||||||
|
Style="{StaticResource MaterialDesignOutlinedDatePicker}"
|
||||||
|
/>-->
|
||||||
|
<TextBox Grid.Row="1"
|
||||||
|
Grid.Column="0"
|
||||||
|
Text="{Binding ReturnTime}"
|
||||||
|
materialDesign:HintAssist.Hint="还药时间"
|
||||||
|
Margin="6 0 0 0"
|
||||||
|
Style="{StaticResource MaterialDesignOutlinedTextBox}"/>
|
||||||
|
<ComboBox
|
||||||
|
Margin="8 8 8 0"
|
||||||
|
Grid.Row="1" Grid.Column="1"
|
||||||
|
Style="{StaticResource MaterialDesignOutlinedComboBox}"
|
||||||
|
materialDesign:HintAssist.Hint="还药者"
|
||||||
|
ItemsSource="{Binding ReturnUserList}"
|
||||||
|
SelectedValue="{Binding ReturnUser}"
|
||||||
|
DisplayMemberPath="Nickname"/>
|
||||||
|
<ComboBox
|
||||||
|
Margin="8 8 8 0"
|
||||||
|
Grid.Row="1" Grid.Column="2"
|
||||||
|
Style="{StaticResource MaterialDesignOutlinedComboBox}"
|
||||||
|
materialDesign:HintAssist.Hint="接收者"
|
||||||
|
ItemsSource="{Binding ReturnUserCheckList}"
|
||||||
|
SelectedValue="{Binding ReturnUserCheck}"
|
||||||
|
DisplayMemberPath="Nickname"/>
|
||||||
|
<ComboBox
|
||||||
|
Margin="8 8 8 0"
|
||||||
|
Grid.Row="2" Grid.Column="0"
|
||||||
|
Style="{StaticResource MaterialDesignOutlinedComboBox}"
|
||||||
|
materialDesign:HintAssist.Hint="补充者"
|
||||||
|
ItemsSource="{Binding AddUserList}"
|
||||||
|
SelectedValue="{Binding AddUser}"
|
||||||
|
DisplayMemberPath="Nickname"/>
|
||||||
|
<ComboBox
|
||||||
|
Margin="8 8 8 0"
|
||||||
|
Grid.Row="2" Grid.Column="1"
|
||||||
|
Style="{StaticResource MaterialDesignOutlinedComboBox}"
|
||||||
|
materialDesign:HintAssist.Hint="核对者"
|
||||||
|
ItemsSource="{Binding AddUserCheckList}"
|
||||||
|
SelectedValue="{Binding AddUserCheck}"
|
||||||
|
DisplayMemberPath="Nickname"/>
|
||||||
|
<StackPanel Grid.Row="1" Grid.ColumnSpan="3" Grid.Column="3" Margin="8" Orientation="Horizontal" HorizontalAlignment="Left">
|
||||||
|
<Button Width="100"
|
||||||
|
Margin="0 0 6 0"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
Style="{StaticResource MaterialDesignOutlinedLightButton}"
|
||||||
|
Content="保存" Command="{Binding AddReportDateCommand}">
|
||||||
|
</Button>
|
||||||
|
</StackPanel>
|
||||||
|
</Grid>
|
||||||
|
</Grid>
|
||||||
|
</UserControl>
|
|
@ -0,0 +1,48 @@
|
||||||
|
using DM_Weight.ViewModels;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
using System.Windows;
|
||||||
|
using System.Windows.Controls;
|
||||||
|
using System.Windows.Data;
|
||||||
|
using System.Windows.Documents;
|
||||||
|
using System.Windows.Input;
|
||||||
|
using System.Windows.Media;
|
||||||
|
using System.Windows.Media.Imaging;
|
||||||
|
using System.Windows.Navigation;
|
||||||
|
using System.Windows.Shapes;
|
||||||
|
|
||||||
|
namespace DM_Weight.Views
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// AddReportDate.xaml 的交互逻辑
|
||||||
|
/// </summary>
|
||||||
|
public partial class AddReportDate : UserControl
|
||||||
|
{
|
||||||
|
//AddReportDateViewModel vms;
|
||||||
|
public AddReportDate()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
//vms = AddReportDateViewModel.vm;
|
||||||
|
}
|
||||||
|
|
||||||
|
///// <summary>
|
||||||
|
///// 药品名称触发事件
|
||||||
|
///// </summary>
|
||||||
|
///// <param name="sender"></param>
|
||||||
|
///// <param name="e"></param>
|
||||||
|
//private void ComboBox_KeyUp(object sender, KeyEventArgs e)
|
||||||
|
//{
|
||||||
|
// ComboBox comboBox = sender as ComboBox;
|
||||||
|
// vms.UpdateComboBoxItems(comboBox.Text);
|
||||||
|
// if (this.vms.DrugInfos.Count > 0)
|
||||||
|
// {
|
||||||
|
// comboBox.IsDropDownOpen = true;
|
||||||
|
// }
|
||||||
|
// TextBox textBox = (TextBox)comboBox.Template.FindName("PART_EditableTextBox", comboBox);
|
||||||
|
// textBox.SelectionStart = textBox.Text.Length;
|
||||||
|
//}
|
||||||
|
}
|
||||||
|
}
|
|
@ -58,7 +58,7 @@
|
||||||
Style="{StaticResource MaterialDesignOutlinedLightButton}"
|
Style="{StaticResource MaterialDesignOutlinedLightButton}"
|
||||||
Content="取消" />-->
|
Content="取消" />-->
|
||||||
|
|
||||||
<Button
|
<!--<Button
|
||||||
Margin="3 0 3 0"
|
Margin="3 0 3 0"
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
Command="{Binding RejectReport_Download}"
|
Command="{Binding RejectReport_Download}"
|
||||||
|
@ -70,7 +70,7 @@
|
||||||
VerticalAlignment="Center"
|
VerticalAlignment="Center"
|
||||||
Command="{Binding Account_Download}"
|
Command="{Binding Account_Download}"
|
||||||
Style="{StaticResource MaterialDesignOutlinedLightButton}"
|
Style="{StaticResource MaterialDesignOutlinedLightButton}"
|
||||||
Content="账册报表" />
|
Content="账册报表" />-->
|
||||||
|
|
||||||
<Button
|
<Button
|
||||||
Margin="3 0 3 0"
|
Margin="3 0 3 0"
|
||||||
|
|
Loading…
Reference in New Issue