aa
This commit is contained in:
@@ -26,38 +26,37 @@ namespace UseGetFmaterialData
|
||||
{
|
||||
base.BeforeSave(e);
|
||||
|
||||
if (this.Model.DataObject["Id"].Long2Int() == 0)
|
||||
if (OrgIdCheck())
|
||||
if (OrgIdCheck())
|
||||
{
|
||||
Entity details = null;
|
||||
|
||||
//其他出库单 明细表
|
||||
if (this.View.UserParameterKey.Equals("STK_MisDelivery"))
|
||||
details = this.View.BusinessInfo.GetEntity("FEntity");
|
||||
|
||||
//直接调拨单 明细表
|
||||
if (this.View.UserParameterKey.Equals("STK_TransferDirect"))
|
||||
details = this.View.BusinessInfo.GetEntity("FBillEntry");
|
||||
|
||||
if (details != null)
|
||||
{
|
||||
Entity details = null;
|
||||
var entrys = this.View.Model.GetEntityDataObject(details);
|
||||
|
||||
//其他出库单 明细表
|
||||
if (this.View.UserParameterKey.Equals("STK_MisDelivery"))
|
||||
details = this.View.BusinessInfo.GetEntity("FEntity");
|
||||
|
||||
//直接调拨单 明细表
|
||||
if (this.View.UserParameterKey.Equals("STK_TransferDirect"))
|
||||
details = this.View.BusinessInfo.GetEntity("FBillEntry");
|
||||
|
||||
if (details != null)
|
||||
if (entrys != null && entrys.Any())
|
||||
{
|
||||
var entrys = this.View.Model.GetEntityDataObject(details);
|
||||
|
||||
if (entrys != null && entrys.Any())
|
||||
var tempValue2 = this.View.Model.GetValue("FDATE");
|
||||
var dateValue = tempValue2.IsNullOrEmptyOrWhiteSpace() ? string.Empty : tempValue2.ToString();
|
||||
foreach (var entry in entrys)
|
||||
{
|
||||
var tempValue2 = this.View.Model.GetValue("FDATE");
|
||||
var dateValue = tempValue2.IsNullOrEmptyOrWhiteSpace() ? string.Empty : tempValue2.ToString();
|
||||
foreach (var entry in entrys)
|
||||
{
|
||||
var rowIndex = this.View.Model.GetRowIndex(details, entry);
|
||||
var tempValue = entry["MaterialId_Id"];
|
||||
var rowValue = tempValue.IsNullOrEmptyOrWhiteSpace() ? string.Empty : tempValue.ToString();
|
||||
UpdReferPriceAndExplain(dateValue, rowValue, rowIndex);
|
||||
}
|
||||
TotalReferAmount(entrys, details);
|
||||
var rowIndex = this.View.Model.GetRowIndex(details, entry);
|
||||
var tempValue = entry["MaterialId_Id"];
|
||||
var rowValue = tempValue.IsNullOrEmptyOrWhiteSpace() ? string.Empty : tempValue.ToString();
|
||||
UpdReferPriceAndExplain(dateValue, rowValue, rowIndex);
|
||||
}
|
||||
TotalReferAmount(entrys, details);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -151,7 +150,7 @@ namespace UseGetFmaterialData
|
||||
////小数类型参考金额控件
|
||||
//this.View.Model.SetValue("FReferAmountM", 0, row);
|
||||
//参考方向
|
||||
this.View.Model.SetValue("FExplain", "", row);
|
||||
this.View.Model.SetValue("FExplain", "没有找到价格", row);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -186,7 +185,7 @@ namespace UseGetFmaterialData
|
||||
//小数类型参考金额控件
|
||||
//this.View.Model.SetValue("FReferAmountM", 0, row);
|
||||
//参考方向
|
||||
this.View.Model.SetValue("FExplain", "", row);
|
||||
this.View.Model.SetValue("FExplain", "没有找到价格", row);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user