Esempio n. 1
0
 /// <summary>
 /// 添加input列表
 /// </summary>
 private void AddInputs(AlipayParameterBuilder builder)
 {
     foreach (var item in builder.GetDictionary(true))
     {
         AddInput(item.Key, item.Value);
     }
 }
Esempio n. 2
0
 /// <summary>
 /// 添加属性列表
 /// </summary>
 private void AddProperties(AlipayParameterBuilder builder)
 {
     AddAttribute("id", FormId);
     AddAttribute("name", FormId);
     AddAttribute("action", builder.Config.GetGatewayUrl());
     AddAttribute("charset", builder.GetValue(AlipayConst.Charset));
     AddAttribute("method", "POST");
 }
Esempio n. 3
0
 /// <summary>
 /// 添加参数生成器
 /// </summary>
 /// <param name="builder">参数生成器</param>
 public FormBuilder AddParam(AlipayParameterBuilder builder)
 {
     builder.CheckNull(nameof(builder));
     AddProperties(builder);
     AddInputs(builder);
     AddSubmitButton();
     return(this);
 }