/// <summary> /// 添加字段 /// </summary> /// <param name="fieldname">字段名称</param> /// <param name="defaultValue">默认值</param> /// <param name="required">是否必填</param> /// <param name="fieldType">字段类型</param> /// <param name="validationFormula">验证公式</param> /// <param name="validationMessage">验证信息</param> public void AddField(string fieldname, string defaultValue, bool required, DCTFieldType fieldType, string validationFormula, string validationMessage) { ServiceProxy.SingleCall <IDCSStorageService>(binding, storageEndpointAddress, userBehavior, action => { action.DCMAddField(new DCTFieldInfo() { Title = fieldname, Required = required, ValueType = fieldType, DefaultValue = defaultValue, ValidationFormula = validationFormula, ValidationMessage = validationMessage }, false); }); }
/// <summary> /// 添加字段 /// </summary> /// <param name="fieldname">字段名称</param> /// <param name="defaultValue">默认值</param> /// <param name="required">是否必填</param> /// <param name="fieldType">字段类型</param> /// <param name="validationFormula">验证公式</param> /// <param name="validationMessage">验证信息</param> public void AddField(string fieldname, string defaultValue, bool required, DCTFieldType fieldType, string validationFormula, string validationMessage) { ServiceProxy.SingleCall<IDCSStorageService>(binding, storageEndpointAddress, userBehavior, action => { action.DCMAddField(new DCTFieldInfo() { Title = fieldname, Required = required, ValueType = fieldType, DefaultValue = defaultValue, ValidationFormula = validationFormula, ValidationMessage = validationMessage }, false); }); }