|  | 
 
                                                                谭文
发表于 2020-4-4 13:55:36 
| 参考如下方式: 
 复制代码  protected override void OnLoad(H3.SmartForm.LoadSmartFormResponse response)
    {
        base.OnLoad(response);
        if(当前用户在角色中)
        {
            Dictionary < string, object > TaskObjects = (Dictionary<string, object>) response.ReturnData["D000779F1c5e3a8257754ba590761c1b5dca0884"].Value;
            Dictionary < string, H3.SmartForm.SmartFormResponseDataItem > taskobject = (Dictionary<string, H3.SmartForm.SmartFormResponseDataItem>) TaskObjects["T"];
            taskobject["D000779F1c5e3a8257754ba590761c1b5dca0884.F0000003"].DisplayRule = string.Empty; //字段隐藏规则在表单设计器中设置为TURE
            taskobject["D000779F1c5e3a8257754ba590761c1b5dca0884.F0000003"].Editable = false;
        }
    }
 | 
 |