SVN-Revision: r438
This commit is contained in:
wyf
2025-04-02 10:57:30 +00:00
parent 60dc0f954d
commit f32e7b52a1
+1 -10
View File
@@ -500,15 +500,7 @@ namespace Lskj.PubBomImport
FileInfo childInfo = new FileInfo(dirPath);
if (childInfo != null)
{
DataTable childTable = new DataTable();
foreach (GridColumn gridColumn in frmBillInfo.GcMainView.Columns)
{
if (!childTable.Columns.Contains(gridColumn.FieldName))
{
childTable.Columns.Add(gridColumn.FieldName, gridColumn.ColumnType);
}
}
frmBillInfo.GcMainView.GridControl.DataSource = childTable;
frmBillInfo.OnBillAdd();
SetProcessBar(0, 0);
SetProcessMsg($"正在导入:{Path.GetFileName(childInfo.FullName)}");
DataTable detailTable = new DataTable();
@@ -522,7 +514,6 @@ namespace Lskj.PubBomImport
detailRow["tamount"] = 1;
detailRow["amount"] = lastAmount;
}
frmBillInfo.GcMainView.GridControl.DataSource = detailTable;
SetProcessBar(20, 0);
string billMasterSql = $"select (select top 1 billdocument_id from bom_BillTab where productid='{productCode}') as billdocument_id,'0' affirmer,'0' rtagid,'{productCode}' as productid";
billMasterSql = ReplaceHelper.ReplaceRowParam(Model.MaintabFocusedRow, billMasterSql);