红色部分是要给单选辅助资料赋值, 这个ysfsid 变量是辅助资料内码 ,为什么没有赋值成功呢?单选辅助资料应该怎么赋值?
MobileShowParameter parameter = new MobileShowParameter();
parameter.FormId = "ET_SJDDSRJM";
parameter.ParentPageId = this.View.PageId;
parameter.SyncCallBackAction = false;
this.View.ShowForm(parameter, new Action
(s =>
{
DynamicObject o = s.ReturnData as DynamicObject;
DynamicObject bw = o["FCOLYSFS_MF"] as DynamicObject;
string ysfsid = bw["Id"].ToString();
DynamicObject ysfs = this.View.Model.GetValue("FCOLYSFS_MF") as DynamicObject;
int count = this.View.Model.GetEntryRowCount("FMobileListViewEntity");
//this.Model.SetItemValueByID("基础资料标识", 内码123456,row)
//this.View.Model.SetItemValueByID("FCOLYSFS_MF", bw["Id"].ToString(), count -);
this.View.Model.SetValue("FCOLYSFS_MF", ysfsid, count );
this.View.UpdateView("FMobileListViewEntity");
})
);
this.View.GetControl("FMobileListViewEntity").SetCustomPropertyValue("listEditable", true);
//设置完要刷新下列表
this.View.UpdateView("FMobileListViewEntity");
break;
推荐阅读