1—調取基礎資料
DynamicObject[] matBaseData=BusinessDataServiceHelper.Load(this.Context,new object[]{
materialId},
(MetaDataServiceHelper.Load(this.Context, "BD_MATERIAL") as FormMetadata).BusinessInfo.GetDynamicObjectType());
if(matBaseData==null ){
this.View.ShowErrMessage("PluginCalcu_ERR:提取物料基礎資料信息異常");
return;
}
//取物料的"固定提前期"字段
DynamicObjectCollection matBasePlan = matBaseData[0][53] as DynamicObjectCollection ;
string abc= matBasePlan[0]["FixLeadTime"].ToString();