|
@@ -11,6 +11,7 @@ using UniformMaterialManagementSystem.Services;
|
|
using UniformMaterialManagementSystem.Views;
|
|
using UniformMaterialManagementSystem.Views;
|
|
using UniformMaterialManagementSystem.Utils;
|
|
using UniformMaterialManagementSystem.Utils;
|
|
using DocumentFormat.OpenXml.Office2016.Drawing.ChartDrawing;
|
|
using DocumentFormat.OpenXml.Office2016.Drawing.ChartDrawing;
|
|
|
|
+using UniformMaterialManagementSystem.Models;
|
|
|
|
|
|
namespace UniformMaterialManagementSystem.ViewModels
|
|
namespace UniformMaterialManagementSystem.ViewModels
|
|
{
|
|
{
|
|
@@ -18,16 +19,10 @@ namespace UniformMaterialManagementSystem.ViewModels
|
|
{
|
|
{
|
|
|
|
|
|
[ObservableProperty]
|
|
[ObservableProperty]
|
|
- private ObservableCollection<InspectionReport> _inspectionReports = [];
|
|
|
|
|
|
+ private ObservableCollection<InspectionReportModel> _inspectionReports = [];
|
|
|
|
|
|
[ObservableProperty]
|
|
[ObservableProperty]
|
|
- private InspectionReport? _selectedInspectionReport;
|
|
|
|
-
|
|
|
|
- [ObservableProperty]
|
|
|
|
- private string? _purchaseCompanyNames;
|
|
|
|
-
|
|
|
|
- [ObservableProperty]
|
|
|
|
- private string? _contractNos;
|
|
|
|
|
|
+ private InspectionReportModel? _selectedInspectionReport;
|
|
|
|
|
|
[ObservableProperty]
|
|
[ObservableProperty]
|
|
private List<int> _years = [];
|
|
private List<int> _years = [];
|
|
@@ -85,7 +80,7 @@ namespace UniformMaterialManagementSystem.ViewModels
|
|
private void LoadData()
|
|
private void LoadData()
|
|
{
|
|
{
|
|
//询问是否保存
|
|
//询问是否保存
|
|
- AskIsSave();
|
|
|
|
|
|
+ //AskIsSave();
|
|
|
|
|
|
var inspectionReports = _inspectionReportService.Query()
|
|
var inspectionReports = _inspectionReportService.Query()
|
|
.Include(x => x.InspectionReportDetails)
|
|
.Include(x => x.InspectionReportDetails)
|
|
@@ -99,37 +94,49 @@ namespace UniformMaterialManagementSystem.ViewModels
|
|
InspectionReports.Clear();
|
|
InspectionReports.Clear();
|
|
foreach (var report in inspectionReports)
|
|
foreach (var report in inspectionReports)
|
|
{
|
|
{
|
|
- InspectionReports.Add(report);
|
|
|
|
|
|
+ InspectionReports.Add(new InspectionReportModel(report));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
- /// 判断单据是否有修改
|
|
|
|
|
|
+ ///判断单据是否有修改,true:已修改 false:未修改
|
|
/// </summary>
|
|
/// </summary>
|
|
- private bool IsSelectedChanged()
|
|
|
|
|
|
+ private bool IsCurrentReportChanged(InspectionReportModel inspectionReportModel)
|
|
{
|
|
{
|
|
- if (SelectedInspectionReport == null) return false;
|
|
|
|
- var state = _inspectionReportService.Entry(SelectedInspectionReport);
|
|
|
|
- if (state != EntityState.Unchanged) return true;
|
|
|
|
-
|
|
|
|
- var reportDetails = SelectedInspectionReport.InspectionReportDetails;
|
|
|
|
- var existDetails = _inspectionReportDetailService.Query(x => x.InspectionReportGuid == SelectedInspectionReport.Guid).ToList();
|
|
|
|
-
|
|
|
|
- foreach (var detail in reportDetails) //新增行或修改行操作
|
|
|
|
|
|
+ var inspectionReport = _inspectionReportService.Get(x => x.Guid == inspectionReportModel.Guid);
|
|
|
|
+ if (inspectionReport == null) //新增
|
|
|
|
+ {
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
|
|
+ else
|
|
{
|
|
{
|
|
- var detailState = _inspectionReportDetailService.Entry(detail);
|
|
|
|
- if (detailState != EntityState.Unchanged)
|
|
|
|
|
|
+ inspectionReportModel.ModifyInspectionReport(inspectionReport);
|
|
|
|
+ var state = _inspectionReportService.Entry(inspectionReport);
|
|
|
|
+ if (state == EntityState.Modified)
|
|
{
|
|
{
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
- }
|
|
|
|
|
|
|
|
- foreach (var detail in existDetails) //删除行操作
|
|
|
|
- {
|
|
|
|
- var detailState = _inspectionReportDetailService.Entry(detail);
|
|
|
|
- if (detailState == EntityState.Deleted)
|
|
|
|
|
|
+ //判断明细表是否新增、修改或删除
|
|
|
|
+ var reportDetails = inspectionReportModel.InspectionReportDetails;
|
|
|
|
+ var existDetails = _inspectionReportDetailService.Query(x => x.InspectionReportGuid == inspectionReportModel.Guid).ToList();
|
|
|
|
+
|
|
|
|
+ foreach (var detail in reportDetails) //新增行或修改行操作
|
|
{
|
|
{
|
|
- return true;
|
|
|
|
|
|
+ var detailState = _inspectionReportDetailService.Entry(detail);
|
|
|
|
+ if (detailState != EntityState.Unchanged)
|
|
|
|
+ {
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ foreach (var detail in existDetails) //删除行操作
|
|
|
|
+ {
|
|
|
|
+ var detailState = _inspectionReportDetailService.Entry(detail);
|
|
|
|
+ if (detailState == EntityState.Deleted)
|
|
|
|
+ {
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -139,57 +146,57 @@ namespace UniformMaterialManagementSystem.ViewModels
|
|
/// <summary>
|
|
/// <summary>
|
|
/// 选择行改变事件
|
|
/// 选择行改变事件
|
|
/// </summary>
|
|
/// </summary>
|
|
- [RelayCommand]
|
|
|
|
- private void InspectionReportSelectionChanged(InspectionReport inspectionReport)
|
|
|
|
- {
|
|
|
|
- AskIsSave();
|
|
|
|
|
|
+ //[RelayCommand]
|
|
|
|
+ //private void InspectionReportSelectionChanged(InspectionReport inspectionReport)
|
|
|
|
+ //{
|
|
|
|
+ // AskIsSave();
|
|
|
|
|
|
- /* 绑定当前行数据*/
|
|
|
|
- SelectedInspectionReport = inspectionReport;
|
|
|
|
|
|
+ // /* 绑定当前行数据*/
|
|
|
|
+ // SelectedInspectionReport = inspectionReport;
|
|
|
|
|
|
- //获取合同信息
|
|
|
|
- var dictionary = GetContractInformation(SelectedInspectionReport);
|
|
|
|
|
|
+ // //获取合同信息
|
|
|
|
+ // var dictionary = GetContractInformation(SelectedInspectionReport);
|
|
|
|
|
|
- PurchaseCompanyNames = dictionary.ContainsKey("CompanyNames") ? dictionary["CompanyNames"] : string.Empty;
|
|
|
|
|
|
+ // PurchaseCompanyNames = dictionary.ContainsKey("CompanyNames") ? dictionary["CompanyNames"] : string.Empty;
|
|
|
|
|
|
- ContractNos = dictionary.ContainsKey("ContractNos") ? dictionary["ContractNos"] : string.Empty;
|
|
|
|
- }
|
|
|
|
|
|
+ // ContractNos = dictionary.ContainsKey("ContractNos") ? dictionary["ContractNos"] : string.Empty;
|
|
|
|
+ //}
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
/// 询问是否保存更改
|
|
/// 询问是否保存更改
|
|
/// </summary>
|
|
/// </summary>
|
|
- private void AskIsSave()
|
|
|
|
- {
|
|
|
|
- var changed = IsSelectedChanged();
|
|
|
|
- if (changed)
|
|
|
|
- {
|
|
|
|
- var result = MessageBox.Show($"检验报告编号【{SelectedInspectionReport?.ReportNo}】已修改,是否保存修改?", "提示", MessageBoxButton.YesNo, MessageBoxImage.Question);
|
|
|
|
- if (result == MessageBoxResult.Yes)
|
|
|
|
- {
|
|
|
|
- //保存上一行的修改
|
|
|
|
- SaveInspectionReport();
|
|
|
|
- }
|
|
|
|
- else
|
|
|
|
- {
|
|
|
|
- //放弃更改
|
|
|
|
- var state = _inspectionReportService.Entry(SelectedInspectionReport);
|
|
|
|
- if (state == EntityState.Detached) //新增行直接移除
|
|
|
|
- {
|
|
|
|
- InspectionReports.Remove(SelectedInspectionReport);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- _inspectionReportService.SetEntryState(SelectedInspectionReport, EntityState.Unchanged);
|
|
|
|
-
|
|
|
|
- var details = _inspectionReportDetailService.GetAll(x => x.InspectionReportGuid == SelectedInspectionReport.Guid).ToList();
|
|
|
|
- SelectedInspectionReport.InspectionReportDetails.Clear();
|
|
|
|
- foreach (var detail in details) //重新将数据库的数据赋值过来,并设置跟踪状态Unchanged
|
|
|
|
- {
|
|
|
|
- SelectedInspectionReport.InspectionReportDetails.Add(detail);
|
|
|
|
- _inspectionReportDetailService.SetEntryState(detail, EntityState.Unchanged);
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
|
|
+ //private void AskIsSave()
|
|
|
|
+ //{
|
|
|
|
+ // var changed = IsCurrentReportChanged();
|
|
|
|
+ // if (changed)
|
|
|
|
+ // {
|
|
|
|
+ // var result = MessageBox.Show($"检验报告编号【{SelectedInspectionReport?.ReportNo}】已修改,是否保存修改?", "提示", MessageBoxButton.YesNo, MessageBoxImage.Question);
|
|
|
|
+ // if (result == MessageBoxResult.Yes)
|
|
|
|
+ // {
|
|
|
|
+ // //保存上一行的修改
|
|
|
|
+ // SaveInspectionReport();
|
|
|
|
+ // }
|
|
|
|
+ // else
|
|
|
|
+ // {
|
|
|
|
+ // //放弃更改
|
|
|
|
+ // var state = _inspectionReportService.Entry(SelectedInspectionReport);
|
|
|
|
+ // if (state == EntityState.Detached) //新增行直接移除
|
|
|
|
+ // {
|
|
|
|
+ // InspectionReports.Remove(SelectedInspectionReport);
|
|
|
|
+ // }
|
|
|
|
+
|
|
|
|
+ // _inspectionReportService.SetEntryState(SelectedInspectionReport, EntityState.Unchanged);
|
|
|
|
+
|
|
|
|
+ // var details = _inspectionReportDetailService.GetAll(x => x.InspectionReportGuid == SelectedInspectionReport.Guid).ToList();
|
|
|
|
+ // SelectedInspectionReport.InspectionReportDetails.Clear();
|
|
|
|
+ // foreach (var detail in details) //重新将数据库的数据赋值过来,并设置跟踪状态Unchanged
|
|
|
|
+ // {
|
|
|
|
+ // SelectedInspectionReport.InspectionReportDetails.Add(detail);
|
|
|
|
+ // _inspectionReportDetailService.SetEntryState(detail, EntityState.Unchanged);
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ //}
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
/// 根据检验申请-合同信息拼接采购机构名称
|
|
/// 根据检验申请-合同信息拼接采购机构名称
|
|
@@ -218,7 +225,7 @@ namespace UniformMaterialManagementSystem.ViewModels
|
|
[RelayCommand]
|
|
[RelayCommand]
|
|
public void AddInspectionReport()
|
|
public void AddInspectionReport()
|
|
{
|
|
{
|
|
- AskIsSave();
|
|
|
|
|
|
+ //AskIsSave();
|
|
|
|
|
|
/* 打开窗口,展示检验报告状态未生成的检验申请列表,选择检验申请,携带检验申请数据 */
|
|
/* 打开窗口,展示检验报告状态未生成的检验申请列表,选择检验申请,携带检验申请数据 */
|
|
SelectInspectApplyWindowViewModel viewModel =
|
|
SelectInspectApplyWindowViewModel viewModel =
|
|
@@ -235,6 +242,7 @@ namespace UniformMaterialManagementSystem.ViewModels
|
|
InspectionReport inspectionReport = new InspectionReport
|
|
InspectionReport inspectionReport = new InspectionReport
|
|
{
|
|
{
|
|
InspectApply = inspectApply,
|
|
InspectApply = inspectApply,
|
|
|
|
+ InspectApplyGuid = inspectApply.Guid,
|
|
ReportNo = inspectApply.ApplyNo.Replace("申请", ""),
|
|
ReportNo = inspectApply.ApplyNo.Replace("申请", ""),
|
|
Department = App.CurrentUser!.SupervisionUnit.Name,
|
|
Department = App.CurrentUser!.SupervisionUnit.Name,
|
|
ReportTime = DateTime.Now,
|
|
ReportTime = DateTime.Now,
|
|
@@ -244,10 +252,11 @@ namespace UniformMaterialManagementSystem.ViewModels
|
|
InspectionReportDetails = []
|
|
InspectionReportDetails = []
|
|
};
|
|
};
|
|
|
|
|
|
- InspectionReports.Add(inspectionReport);
|
|
|
|
|
|
+ InspectionReportModel model = new InspectionReportModel(inspectionReport);
|
|
|
|
+ InspectionReports.Add(model);
|
|
|
|
|
|
//选中当前行
|
|
//选中当前行
|
|
- InspectionReportSelectionChanged(inspectionReport);
|
|
|
|
|
|
+ SelectedInspectionReport = model;
|
|
}
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
@@ -307,30 +316,54 @@ namespace UniformMaterialManagementSystem.ViewModels
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
|
|
|
|
- var state = _inspectionReportService.Entry(SelectedInspectionReport);
|
|
|
|
- switch (state)
|
|
|
|
|
|
+ var inspectionReport = _inspectionReportService.Get(x => x.Guid == SelectedInspectionReport.Guid);
|
|
|
|
+ if (inspectionReport == null) //新增行
|
|
{
|
|
{
|
|
- case EntityState.Detached:
|
|
|
|
- case EntityState.Added:
|
|
|
|
- _inspectionReportService.Insert(SelectedInspectionReport);
|
|
|
|
- break;
|
|
|
|
-
|
|
|
|
- case EntityState.Modified:
|
|
|
|
- _inspectionReportService.Update(SelectedInspectionReport);
|
|
|
|
- break;
|
|
|
|
|
|
+ InspectionReport newInspectionReport = new InspectionReport();
|
|
|
|
+ SelectedInspectionReport.ModifyInspectionReport(newInspectionReport);
|
|
|
|
+ _inspectionReportService.Insert(newInspectionReport);
|
|
}
|
|
}
|
|
-
|
|
|
|
- //处理明细表新增行(无法跟踪明细表的新增行)
|
|
|
|
- var existReportDetails = _inspectionReportDetailService.GetAll(x => x.InspectionReportGuid == SelectedInspectionReport.Guid).ToList();
|
|
|
|
- foreach (var detail in SelectedInspectionReport.InspectionReportDetails)
|
|
|
|
|
|
+ else //判断是否修改
|
|
{
|
|
{
|
|
- var existDetail = existReportDetails.FirstOrDefault(x => x.Guid == detail.Guid);
|
|
|
|
- if (existDetail == null)
|
|
|
|
|
|
+ SelectedInspectionReport.ModifyInspectionReport(inspectionReport);
|
|
|
|
+ var state = _inspectionReportService.Entry(inspectionReport);//主表修改状态
|
|
|
|
+
|
|
|
|
+ ////处理明细表新增行(无法跟踪明细表的新增行)
|
|
|
|
+ var existReportDetails = _inspectionReportDetailService.GetAll(x => x.InspectionReportGuid == inspectionReport.Guid).ToList();
|
|
|
|
+ foreach (var detail in SelectedInspectionReport.InspectionReportDetails)
|
|
{
|
|
{
|
|
- _inspectionReportDetailService.Insert(detail);
|
|
|
|
|
|
+ var existDetail = existReportDetails.FirstOrDefault(x => x.Guid == detail.Guid);
|
|
|
|
+ if (existDetail == null)
|
|
|
|
+ {
|
|
|
|
+ _inspectionReportDetailService.Insert(detail);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ //var state = _inspectionReportService.Entry(SelectedInspectionReport);
|
|
|
|
+ //switch (state)
|
|
|
|
+ //{
|
|
|
|
+ // case EntityState.Detached:
|
|
|
|
+ // case EntityState.Added:
|
|
|
|
+ // _inspectionReportService.Insert(SelectedInspectionReport);
|
|
|
|
+ // break;
|
|
|
|
+
|
|
|
|
+ // case EntityState.Modified:
|
|
|
|
+ // _inspectionReportService.Update(SelectedInspectionReport);
|
|
|
|
+ // break;
|
|
|
|
+ //}
|
|
|
|
+
|
|
|
|
+ ////处理明细表新增行(无法跟踪明细表的新增行)
|
|
|
|
+ //var existReportDetails = _inspectionReportDetailService.GetAll(x => x.InspectionReportGuid == SelectedInspectionReport.Guid).ToList();
|
|
|
|
+ //foreach (var detail in SelectedInspectionReport.InspectionReportDetails)
|
|
|
|
+ //{
|
|
|
|
+ // var existDetail = existReportDetails.FirstOrDefault(x => x.Guid == detail.Guid);
|
|
|
|
+ // if (existDetail == null)
|
|
|
|
+ // {
|
|
|
|
+ // _inspectionReportDetailService.Insert(detail);
|
|
|
|
+ // }
|
|
|
|
+ //}
|
|
|
|
+
|
|
/* 反写检验申请单的检验报告状态为true */
|
|
/* 反写检验申请单的检验报告状态为true */
|
|
var inpecApply = _inspectApplyService.Get(x => x.Guid == SelectedInspectionReport.InspectApplyGuid);
|
|
var inpecApply = _inspectApplyService.Get(x => x.Guid == SelectedInspectionReport.InspectApplyGuid);
|
|
if (inpecApply != null)
|
|
if (inpecApply != null)
|
|
@@ -345,6 +378,8 @@ namespace UniformMaterialManagementSystem.ViewModels
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+
|
|
|
|
+
|
|
/// <summary>
|
|
/// <summary>
|
|
/// 导出检验报告
|
|
/// 导出检验报告
|
|
/// </summary>
|
|
/// </summary>
|
|
@@ -353,6 +388,13 @@ namespace UniformMaterialManagementSystem.ViewModels
|
|
{
|
|
{
|
|
if (SelectedInspectionReport == null) return;
|
|
if (SelectedInspectionReport == null) return;
|
|
|
|
|
|
|
|
+ bool isChanged = IsCurrentReportChanged(SelectedInspectionReport);
|
|
|
|
+ if (isChanged)
|
|
|
|
+ {
|
|
|
|
+ MessageBox.Show($"检验报告编号【{SelectedInspectionReport.ReportNo}】未保存,请保存后再导出!","提示",MessageBoxButton.OK,MessageBoxImage.Warning);
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
|
|
+
|
|
const string templateFilePath = "Template\\军需物资质量监督检验报告模板.docx";
|
|
const string templateFilePath = "Template\\军需物资质量监督检验报告模板.docx";
|
|
SaveFileDialog saveFileDialog = new SaveFileDialog()
|
|
SaveFileDialog saveFileDialog = new SaveFileDialog()
|
|
{
|
|
{
|
|
@@ -364,7 +406,7 @@ namespace UniformMaterialManagementSystem.ViewModels
|
|
var destinationFile = saveFileDialog.FileName;
|
|
var destinationFile = saveFileDialog.FileName;
|
|
|
|
|
|
var dictionary = CreateDictionary(SelectedInspectionReport);
|
|
var dictionary = CreateDictionary(SelectedInspectionReport);
|
|
- var tempFile = "Template\\temp.docx";
|
|
|
|
|
|
+ var tempFile = $"Template\\temp_{WordUtil.GenerateFileSerialNumber()}.docx";
|
|
|
|
|
|
WordUtil.GenerateWordByTemplate(templateFilePath, tempFile, dictionary);
|
|
WordUtil.GenerateWordByTemplate(templateFilePath, tempFile, dictionary);
|
|
WordUtil.SaveWordToPdf(tempFile, destinationFile);
|
|
WordUtil.SaveWordToPdf(tempFile, destinationFile);
|
|
@@ -373,12 +415,9 @@ namespace UniformMaterialManagementSystem.ViewModels
|
|
File.Delete(tempFile);
|
|
File.Delete(tempFile);
|
|
|
|
|
|
MessageBox.Show("文档已生成!");
|
|
MessageBox.Show("文档已生成!");
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- private Dictionary<string, string> CreateDictionary(InspectionReport inspectionReport)
|
|
|
|
|
|
+ private Dictionary<string, string> CreateDictionary(InspectionReportModel inspectionReport)
|
|
{
|
|
{
|
|
Dictionary<string, string> dictionary = new Dictionary<string, string>();
|
|
Dictionary<string, string> dictionary = new Dictionary<string, string>();
|
|
dictionary.Add("ReportNo", inspectionReport.ReportNo);
|
|
dictionary.Add("ReportNo", inspectionReport.ReportNo);
|
|
@@ -403,15 +442,15 @@ namespace UniformMaterialManagementSystem.ViewModels
|
|
dictionary.Add("ProductName", inspectionReport.InspectApply.ProductName);
|
|
dictionary.Add("ProductName", inspectionReport.InspectApply.ProductName);
|
|
dictionary.Add("Company", inspectionReport.InspectApply.Company);
|
|
dictionary.Add("Company", inspectionReport.InspectApply.Company);
|
|
dictionary.Add("InspQuantity", inspectionReport.InspectApply.InspQuantity + inspectionReport.InspectApply.Material.MeasureUnit);
|
|
dictionary.Add("InspQuantity", inspectionReport.InspectApply.InspQuantity + inspectionReport.InspectApply.Material.MeasureUnit);
|
|
- dictionary.Add("ProductDate", inspectionReport.InspectApply.StartProductDate.ToString("yyyy-MM") + "至" + inspectionReport.InspectApply.EndProductDate.ToString("yyyy-MM"));
|
|
|
|
|
|
+ dictionary.Add("ProductDate", inspectionReport.InspectApply.StartProductDate.ToString("yyyy-MM-dd") + "至" + inspectionReport.InspectApply.EndProductDate.ToString("yyyy-MM-dd"));
|
|
|
|
|
|
//采购机构、合同号
|
|
//采购机构、合同号
|
|
StringBuilder purchaseCompanies = new StringBuilder();
|
|
StringBuilder purchaseCompanies = new StringBuilder();
|
|
StringBuilder contractNos = new StringBuilder();
|
|
StringBuilder contractNos = new StringBuilder();
|
|
foreach (var detail in inspectionReport.InspectApply.InspectApplyContractDetails)
|
|
foreach (var detail in inspectionReport.InspectApply.InspectApplyContractDetails)
|
|
{
|
|
{
|
|
- purchaseCompanies.Append(detail.PurchaseCompanyShortName).Append("、");
|
|
|
|
- contractNos.Append(detail.ContractNo).Append("、");
|
|
|
|
|
|
+ purchaseCompanies.Append(detail.PurchaseCompanyShortName).Append(" ");
|
|
|
|
+ contractNos.Append(detail.ContractNo).Append(";");
|
|
}
|
|
}
|
|
dictionary.Add("PurchaseCompany", purchaseCompanies.ToString().Substring(0, purchaseCompanies.Length - 1));
|
|
dictionary.Add("PurchaseCompany", purchaseCompanies.ToString().Substring(0, purchaseCompanies.Length - 1));
|
|
dictionary.Add("ContractNumber", contractNos.ToString().Substring(0, contractNos.Length - 1));
|
|
dictionary.Add("ContractNumber", contractNos.ToString().Substring(0, contractNos.Length - 1));
|