SVN r438
SVN-Revision: r438
This commit is contained in:
@@ -500,15 +500,7 @@ namespace Lskj.PubBomImport
|
|||||||
FileInfo childInfo = new FileInfo(dirPath);
|
FileInfo childInfo = new FileInfo(dirPath);
|
||||||
if (childInfo != null)
|
if (childInfo != null)
|
||||||
{
|
{
|
||||||
DataTable childTable = new DataTable();
|
frmBillInfo.OnBillAdd();
|
||||||
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;
|
|
||||||
SetProcessBar(0, 0);
|
SetProcessBar(0, 0);
|
||||||
SetProcessMsg($"正在导入:{Path.GetFileName(childInfo.FullName)}");
|
SetProcessMsg($"正在导入:{Path.GetFileName(childInfo.FullName)}");
|
||||||
DataTable detailTable = new DataTable();
|
DataTable detailTable = new DataTable();
|
||||||
@@ -522,7 +514,6 @@ namespace Lskj.PubBomImport
|
|||||||
detailRow["tamount"] = 1;
|
detailRow["tamount"] = 1;
|
||||||
detailRow["amount"] = lastAmount;
|
detailRow["amount"] = lastAmount;
|
||||||
}
|
}
|
||||||
frmBillInfo.GcMainView.GridControl.DataSource = detailTable;
|
|
||||||
SetProcessBar(20, 0);
|
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";
|
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);
|
billMasterSql = ReplaceHelper.ReplaceRowParam(Model.MaintabFocusedRow, billMasterSql);
|
||||||
|
|||||||
Reference in New Issue
Block a user