控件取值、赋值
更新时间: 2024-02-05 浏览次数: {{ hits }}

this.Request.BizObject["控件编码"]

 

示例:

加载表单页面初始化赋值

protected override void OnLoad(H3.SmartForm.LoadListViewResponse   response)

    {

          if(this.Request.IsCreateMode)    //判断是否为创建模式,赋值默认数值

        {

              this.Request.BizObject["F0000009"] = "默认";

        }

          base.OnLoad(response);

    }

 

提交时的赋值/取值      

protected override void OnSubmit(string actionName,   H3.SmartForm.SmartFormPostValue postValue,   H3.SmartForm.SubmitSmartFormResponse response)

    {

          this.Request.BizObject["F0000002"] = "赋值";

        string va =   this.Request.BizObject["F0000002"] + string.Empty;

          base.OnSubmit(actionName, postValue, response);

      }


通过sql获取关联表单多选控件的值:

select * from I_表单编码_关联表单多选控件编码;


序号        字段名                       字段描述

1          objectid                    表单数据Id

2          valueindex                本选择项是关联表单多选控件值的第几个(从0开始)

3          propertyvalue           关联表单多选控件值之一