示例#1
0
 public PrFieldUpload(PrForm form, string fieldKey, string label)
     : base(form, fieldKey)
 {
     Label = new Escaper().EscapeJavaScript(label);
     Required = false;
     Hidden = false;
     MergeWithNext = false;
 }
示例#2
0
 public PrFieldLabel(PrForm form, string fieldKey, string label)
     : base(form, fieldKey)
 {
     Label = new Escaper().EscapeJavaScript(label);
     Hidden = false;
     DefaultValue = string.Empty;
     MergeWithNext = false;
 }
示例#3
0
 public PrFieldButton(PrForm form, string fieldKey, string buttonText)
     : base(form, fieldKey)
 {
     Label = " ";
     ButtonText = new Escaper().EscapeJavaScript(buttonText);
     Hidden = false;
     MergeWithNext = false;
 }
示例#4
0
 public PrFieldGridView(PrForm form, string fieldKey, DataTable dt, string tableLabel)
     : base(form, fieldKey)
 {
     ClientSide = true;
     Data = dt;
     MergeWithNext = false;
     FieldLabel = "";
     TableLabel = new Escaper().EscapeJavaScript(tableLabel);
     MultipleSelection = false;
     Required = false;
 }
示例#5
0
        public PrFieldFree(PrForm form, string fieldKey, string label, string source)
            : base(form, fieldKey)
        {
            Label = new Escaper().EscapeJavaScript(label);
            Required = false;
            Hidden = false;
            DefaultValue = string.Empty;
            MergeWithNext = false;

            GetValueFunction = "return [''];";
            SetValueFunction = "return;";
            Source = source;
        }
示例#6
0
 public PrFieldRadios(PrForm form, string fieldKey, string label, List<KeyValue> data)
     : base(form, fieldKey)
 {
     Label = new Escaper().EscapeJavaScript(label);
     Data = data;
     if (Data == null)
     {
         Data = new List<KeyValue>();
     }
     Required = false;
     Hidden = false;
     DefaultValue = string.Empty;
     MergeWithNext = false;
 }
示例#7
0
        public PrFieldGridView(PrForm form, string fieldKey, string actionKey, FormService formService, bool clientSide, string tableLabel)
            : base(form, fieldKey)
        {
            ActionKey = actionKey;
            ClientSide = clientSide;

            if (ClientSide)
            {
                Data = formService.GetDataTableAll(actionKey, null);
            }
            else
            {
                Data = formService.GetDataTableZero(actionKey, null);
            }
            MergeWithNext = false;
            FieldLabel = "";
            TableLabel = new Escaper().EscapeJavaScript(tableLabel);
            MultipleSelection = false;
            Required = false;
        }
示例#8
0
 public PrFieldRadios SetDefaultValue(string value)
 {
     DefaultValue = new Escaper().EscapeJavaScript(value);
     return this;
 }
示例#9
0
 public PrFieldButton SetFieldLabel(string fieldLabel)
 {
     Label = new Escaper().EscapeJavaScript(fieldLabel);
     return this;
 }
示例#10
0
 public PrFieldGridView SetFieldLabel(string fieldLabel)
 {
     FieldLabel = new Escaper().EscapeJavaScript(fieldLabel);
     return this;
 }