1
This commit is contained in:
@@ -27,6 +27,23 @@ namespace Gatedge.K3.Pilot.PlugIn.BOSPlugIn.BD_CustPrice
|
||||
SetBillContral(limitCustomer == 1);
|
||||
}
|
||||
|
||||
public override void BeforeF7Select(BeforeF7SelectEventArgs e)
|
||||
{
|
||||
base.BeforeF7Select(e);
|
||||
}
|
||||
/// <summary>
|
||||
/// 下拉框根据编号取值前事件
|
||||
/// </summary>
|
||||
/// <param name="e"></param>
|
||||
public override void BeforeSetItemValueByNumber(BeforeSetItemValueByNumberArgs e)
|
||||
{
|
||||
base.BeforeSetItemValueByNumber(e);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 值更新事件
|
||||
/// </summary>
|
||||
/// <param name="e"></param>
|
||||
public override void DataChanged(DataChangedEventArgs e)
|
||||
{
|
||||
base.DataChanged(e);
|
||||
@@ -36,28 +53,6 @@ namespace Gatedge.K3.Pilot.PlugIn.BOSPlugIn.BD_CustPrice
|
||||
SetBillContral(val == 1);
|
||||
}
|
||||
|
||||
if (e.Field.Key.EqualsIgnoreCase("FCustID"))
|
||||
{
|
||||
var custId_Id = e.NewValue.Long2Int();
|
||||
if (custId_Id > 0)
|
||||
{
|
||||
var custId = this.View.Model.GetValue("FCustID", e.Row) as DynamicObject;
|
||||
//KHXYFL013
|
||||
var creditClassificationId = custId["F_CreditClassification_Id"];
|
||||
if (!creditClassificationId.IsNullOrEmptyOrWhiteSpace())
|
||||
{
|
||||
var creditClassification = custId["F_CreditClassification"] as DynamicObject;
|
||||
var number = creditClassification["Number"].ToString();
|
||||
|
||||
this.View.Model.SetValue("FIsBigCust", number.EqualsIgnoreCase("KHXYFL013"), e.Row);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.View.Model.SetValue("FIsBigCust", false, e.Row);
|
||||
}
|
||||
}
|
||||
|
||||
if (e.Field.Key.EqualsIgnoreCase("FMaterialId"))
|
||||
{
|
||||
var materialId_Id = e.NewValue.Long2Int();
|
||||
@@ -85,6 +80,7 @@ namespace Gatedge.K3.Pilot.PlugIn.BOSPlugIn.BD_CustPrice
|
||||
|
||||
this.View.GetControl("F_MaterialModelGroup").Visible = !visible;
|
||||
this.View.GetControl("F_BigCustSettlePrice").Visible = !visible;
|
||||
this.View.GetControl("F_BigCustDiscRate").Visible = !visible;
|
||||
|
||||
this.View.GetControl("FMaterialId").Visible = visible;
|
||||
this.View.GetControl("FMaterialName").Visible = visible;
|
||||
|
||||
Reference in New Issue
Block a user