public static void modifiedFieldPost(XppPrePostArgs _args)
{
SalesTable salesTable = _args.getThis();
FieldId fieldId = _args.getArg("_fieldId");
ACT_TeamBuyerTable teamBuyerTable;
switch (fieldId)
{
case fieldNum(salesTable,ACT_Teambuyer):
select firstOnly teamBuyerTable
where teamBuyerTable.recid == salesTable.act_teamBuyer;
salesTable.ACT_Division = ACT_Division::find(teamBuyerTable.DivisionId).RecId;
salesTable.ACT_Department = ACT_Department::find(teamBuyerTable.DepartmentId).RecId;
salesTable.ACT_Category = ACT_Category::find(teamBuyerTable.CategoryId).RecId;
salesTable.ACT_ProductType = ACT_ProductType::find(teamBuyerTable.ProductTypeId).RecId;
salesTable.TEX_BAS_LabelId = TEX_BAS_Label::find(teamBuyerTable.TEX_BAS_LabelId).RecId;
break;
}
}
public static void validateFieldPost(XppPrePostArgs _args)
{
SalesTable salesTable = _args.getThis();
CustTable custTable;
FieldId fieldId = _args.getArg("_fieldId");
boolean ret = _args.getReturnValue();
TEX_BAS_Label TEX_BAS_Label;
TEX_BAS_Season TEX_BAS_Season;
ACT_Category ACT_Category;
ACT_Division ACT_Division;
ACT_Department ACT_department;
ACT_ProductType ACT_ProductType;
;
custTable = custTable::find(salesTable.CustAccount);
switch (fieldId)
{
case fieldNum(salesTable,TEX_BAS_LabelId):
if (salesTable.TEX_BAS_LabelId == 0)
return;
TEX_BAS_Label = TEX_BAS_Label::findRecId(salesTable.TEX_BAS_LabelId);
ret = ACT_BuyerFilterSetup::validateSelectionByCust(custTable.RecId,TEX_BAS_Label);
break;
case fieldNum(salesTable,TEX_BAS_SeasonCode):
if (salesTable.TEX_BAS_SeasonCode == 0)
return;
TEX_BAS_Season = TEX_BAS_Season::findRecId(salesTable.TEX_BAS_SeasonCode);
ret = ACT_BuyerFilterSetup::validateSelectionByCust(custTable.RecId,TEX_BAS_Season);
break;
case fieldNum(salesTable,ACT_Category):
if (salesTable.ACT_Category == 0)
return;
ACT_Category = ACT_Category::findRecId(salesTable.ACT_Category);
ret = ACT_BuyerFilterSetup::validateSelectionByCust(custTable.RecId,ACT_Category);
break;
case fieldNum(salesTable,ACT_Division):
if (salesTable.ACT_Division == 0)
return;
ACT_Division = ACT_Division::findRecId(salesTable.ACT_Division);
ret = ACT_BuyerFilterSetup::validateSelectionByCust(custTable.RecId,ACT_Division);
break;
case fieldNum(salesTable,ACT_department):
if (salesTable.ACT_department == 0)
return;
ACT_department = ACT_department::findRecId(salesTable.ACT_department);
ret = ACT_BuyerFilterSetup::validateSelectionByCust(custTable.RecId,ACT_department);
break;
case fieldNum(salesTable,ACT_ProductType):
if (salesTable.act_productType == 0)
return;
ACT_ProductType = ACT_ProductType::findRecId(salesTable.ACT_ProductType);
ret = ACT_BuyerFilterSetup::validateSelectionByCust(custTable.RecId,ACT_ProductType);
break;
}
_args.setReturnValue(ret);
}
ACT contex- modify and verify field
?著作權歸作者所有,轉載或內容合作請聯(lián)系作者
- 文/潘曉璐 我一進店門义图,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人召烂,你說我怎么就攤上這事碱工。” “怎么了奏夫?”我有些...
- 正文 為了忘掉前任麻削,我火速辦了婚禮蒸痹,結果婚禮上,老公的妹妹穿的比我還像新娘呛哟。我一直安慰自己叠荠,他們只是感情好,可當我...
- 文/花漫 我一把揭開白布扫责。 她就那樣靜靜地躺著榛鼎,像睡著了一般。 火紅的嫁衣襯著肌膚如雪公给。 梳的紋絲不亂的頭發(fā)上借帘,一...
- 文/蒼蘭香墨 我猛地睜開眼吐葱,長吁一口氣:“原來是場噩夢啊……” “哼街望!你這毒婦竟也來了?” 一聲冷哼從身側響起弟跑,我...
- 正文 年R本政府宣布叶圃,位于F島的核電站,受9級特大地震影響践图,放射性物質發(fā)生泄漏盗似。R本人自食惡果不足惜,卻給世界環(huán)境...
- 文/蒙蒙 一平项、第九天 我趴在偏房一處隱蔽的房頂上張望赫舒。 院中可真熱鬧,春花似錦闽瓢、人聲如沸接癌。這莊子的主人今日做“春日...
- 文/蒼蘭香墨 我抬頭看了看天上的太陽缺猛。三九已至,卻和暖如春椭符,著一層夾襖步出監(jiān)牢的瞬間荔燎,已是汗流浹背。 一陣腳步聲響...
推薦閱讀更多精彩內容
- 辨別不可避免的事并做出相對應的行動 人能弘道渣叛,非道弘人 每天分享一句美好的話,每周分享一個美好的人或事
- 申明: 這個故事基本真實盯捌,但也不完全真實淳衙。留言里有問“然后”的讀者。然后啊然后,世上哪有那么多然后绑锱省筷狼!如果我們盡情...
- 跑步前看了一點兒文秋芳.應用語言學研究方法與論文寫作中文版,第一章 有關研究的定義匠童、過程和分類。課后題提到找一篇國...
- 11.A Strengths and Limitations of Different Types of Mode...