public String ToScriptString() { MakeJqScript makeScript = new MakeJqScript() { GetObject = this }; makeScript.ItemNotMake.Add("callbacks"); //Fine Upload的事處理格式另訂如下 makeScript.ItemNoDot.Add("element"); StringBuilder ls_CallbacksScript = null; if (this.callbacks != null) { ls_CallbacksScript = new StringBuilder(); PropertyInfo[] propertyInfos = this.callbacks.GetType().GetProperties(); foreach (PropertyInfo propertyInfo in propertyInfos) { Object tempObjValue = propertyInfo.GetValue(this.callbacks, null); if (tempObjValue != null) { if (tempObjValue.GetType() == typeof(funcMethodModule)) { funcMethodModule fM = (funcMethodModule)tempObjValue; ls_CallbacksScript.AppendLine(".on('" + propertyInfo.Name + "'," + fM.ToScriptString() + ")"); } } } } if (ls_CallbacksScript != null) { return "$(" + this.jqId.ToOptionString() + ").fineUploader(" + makeScript.MakeScript() + ")" + ls_CallbacksScript.ToString() + ";"; } else { return "$(" + this.jqId.ToOptionString() + ").fineUploader(" + makeScript.MakeScript() + ");"; } }
public String ToScriptString() { MakeJqScript createJsonString = new MakeJqScript() { GetObject = this.Options }; return(this.jqId.IDPack() + "datepicker(" + createJsonString.MakeScript() + ");"); }
public String ToScriptString() { MakeJqScript c = new MakeJqScript() { GetObject = this.Options }; return(this.jqId.IDPack() + "autocomplete(" + c.MakeScript() + ");"); }
public String ToOptionString() { MakeJqScript createJsonString = new MakeJqScript() { GetObject = this, needBrace = false }; return(createJsonString.MakeScript()); }
public String ToScriptString() { MakeJqScript CreateJson = new MakeJqScript() { needBrace = false, GetObject = this, FalseNotCreate = true }; return(CreateJson.MakeScript()); }
public String ToOptionString() { MakeJqScript createJsonString = new MakeJqScript() { GetObject = this.Options }; return(createJsonString.MakeScript().Replace("Dot_", "-")); }
public String ToScriptString() { MakeJqScript jqScript = new MakeJqScript() { GetObject = this }; jqScript.ItemNotMake.Add("relation_element"); return(jqScript.MakeScript()); }
/// <summary> /// 未包括ax = $.ajax({{ {0} }});ajaxRequest.push(ax); /// </summary> /// <returns></returns> public virtual String ToScriptString() { MakeJqScript c = new MakeJqScript() { GetObject = this, needBrace = false }; c.ItemRename.Add("data_Func", "data"); c.ItemNotMake.Add("deferred"); String s = c.MakeScript(); return(s); }
public String ToScriptString() { MakeJqScript CreateJson = new MakeJqScript() { needBrace = false, GetObject = jsTree, FalseNotCreate = true }; String s = String.Empty; foreach (JSBind jb in this.jsBind) { s += "." + jb.ToScriptString(); } String tpl = "jQuery(\"#{0}\").jstree(\r\n\t{{\r\n\t\t{1}\r\n\t}}\r\n){2};"; return(String.Format(tpl, Id, CreateJson.MakeScript(), s)); }
public String ToScriptString() { MakeJqScript createJsonString = new MakeJqScript() { GetObject = this, needBrace = true }; createJsonString.ItemNoDot = new List <String>(); createJsonString.ItemNoDot.Add("async"); createJsonString.ItemNoDot.Add("callback"); createJsonString.ItemNoDot.Add("check"); createJsonString.ItemNoDot.Add("data"); createJsonString.ItemNoDot.Add("edit"); createJsonString.ItemNoDot.Add("view"); String r = createJsonString.MakeScript(); return(r); }
public String ToScriptString() { MakeJqScript createJsonString = new MakeJqScript() {GetObject = this.Options }; return this.jqId.IDPack() + "datepicker(" + createJsonString.MakeScript() + ");"; }
public String ToScriptString() { MakeJqScript makeScript = new MakeJqScript() { GetObject = this, needBrace = false }; return makeScript.MakeScript(); }
public String ToScriptString() { MakeJqScript jqOption = new MakeJqScript() { GetObject = this, needBrace = false }; jqOption.ItemNameStop.Add("navOption"); jqOption.ItemNameStop.Add("Add"); jqOption.ItemNameStop.Add("Edit"); jqOption.ItemNameStop.Add("Del"); return jqOption.MakeScript(); }
public String ToScriptString() { MakeJqScript jqOption = new MakeJqScript() { GetObject = this, needBrace = false }; return jqOption.MakeScript(); }
public String ToScriptString() { MakeJqScript jqOptions = new MakeJqScript() { GetObject = this.options }; return "$(" + this.jqId.ToOptionString() + ").button(" + jqOptions.MakeScript() + ");"; }
public String ToScriptString() { MakeJqScript createJsonString = new MakeJqScript() { GetObject = this, needBrace = false }; return createJsonString.MakeScript(); }
public String ToScriptString() { MakeJqScript createJsonString = new MakeJqScript() { GetObject = this, needBrace = true }; createJsonString.ItemNoDot = new List<String>(); createJsonString.ItemNoDot.Add("async"); createJsonString.ItemNoDot.Add("callback"); createJsonString.ItemNoDot.Add("check"); createJsonString.ItemNoDot.Add("data"); createJsonString.ItemNoDot.Add("edit"); createJsonString.ItemNoDot.Add("view"); String r = createJsonString.MakeScript(); return r; }
public String ToOptionString() { MakeJqScript createJsonString = new MakeJqScript() { GetObject = this }; return createJsonString.MakeScript(); }
/// <summary> /// 未包括ax = $.ajax({{ {0} }});ajaxRequest.push(ax); /// </summary> /// <returns></returns> public virtual String ToScriptString() { MakeJqScript c = new MakeJqScript() { GetObject = this, needBrace = false }; c.ItemRename.Add("data_Func", "data"); c.ItemNotMake.Add("deferred"); String s = c.MakeScript(); return s; }
public String ToScriptString() { MakeJqScript jqOptions = new MakeJqScript() { GetObject = this, needBrace = false }; return jqOptions.MakeScript(); }
public String ToScriptString() { MakeJqScript jqOption = new MakeJqScript() { GetObject = this, needBrace = false }; jqOption.ItemRename.Add("formatterstring", "formatter"); return jqOption.MakeScript(); }
public String ToScriptString() { MakeJqScript CreateJson = new MakeJqScript() { needBrace = false, GetObject = jsTree, FalseNotCreate = true }; String s = String.Empty; foreach (JSBind jb in this.jsBind) { s += "." + jb.ToScriptString(); } String tpl = "jQuery(\"#{0}\").jstree(\r\n\t{{\r\n\t\t{1}\r\n\t}}\r\n){2};"; return String.Format(tpl, Id, CreateJson.MakeScript(), s); }
public String ToScriptString() { MakeJqScript c = new MakeJqScript() { GetObject = this.Options }; return this.jqId.IDPack() + "autocomplete(" + c.MakeScript() + ");"; }
public String ToScriptString() { MakeJqScript jqOption = new MakeJqScript() { GetObject = this, needBrace = false }; jqOption.ItemNotMake.Add("AssignFormatter"); jqOption.ItemNoDot.Add("pager"); return jqOption.MakeScript(); }
public virtual String ToScriptString() { MakeJqScript createJsonStrig = new MakeJqScript() { GetObject = this.options, needBrace = true }; String returnScript = String.Empty; jqElementEvent returnButton = new jqElementEvent(new jqSelector() { IdName = this.ReturnElementId }) { jqRaiseEvent = jqEventStyle.normal }; if (this.UseReturnButton == true) { returnButton.events.Add(new jqElementEvent.jqEvents() { htmlElementEvent = HtmlObjectEvent.click, funcString = "document.location.href = '" + this.ReturnUrl + @"?' + $('#returnQueryString').val();" }); } String tplStr = @" {0}; {1}; $('#{7}').{8}(function () {{ {9} }}); $('#" + this.Id + @"').submit(function () {{$(this).ajaxSubmit(options);return false;}}); var options = {2}; {3}; {4}; {5}; {6};"; String f = String.Format(tplStr, AppendScriptBefore, returnButton.ToScriptString(), createJsonStrig.MakeScript() , options.beforeSubmit.ToScriptString(funcMethodModule.funcMakeStyle.complete), options.success.ToScriptString(funcMethodModule.funcMakeStyle.complete), UseFormVlidate == true ? formValidate.ToScriptString() : "", AppendScriptAfter, SubmitElementId, SubmitEvent, SubmitFunctionString); return(f.ToJqueryDocumentReady()); }
public virtual String ToScriptString() { MakeJqScript createJsonStrig = new MakeJqScript() { GetObject = this.options, needBrace = true }; String returnScript = String.Empty; jqElementEvent returnButton = new jqElementEvent(new jqSelector() { IdName = this.ReturnElementId }) { jqRaiseEvent = jqEventStyle.normal }; if (this.UseReturnButton == true) returnButton.events.Add(new jqElementEvent.jqEvents() { htmlElementEvent = HtmlObjectEvent.click, funcString = "document.location.href = '" + this.ReturnUrl + @"?' + $('#returnQueryString').val();" }); String tplStr = @" {0}; {1}; $('#{7}').{8}(function () {{ {9} }}); $('#" + this.Id + @"').submit(function () {{$(this).ajaxSubmit(options);return false;}}); var options = {2}; {3}; {4}; {5}; {6};"; String f = String.Format(tplStr, AppendScriptBefore, returnButton.ToScriptString(), createJsonStrig.MakeScript() , options.beforeSubmit.ToScriptString(funcMethodModule.funcMakeStyle.complete), options.success.ToScriptString(funcMethodModule.funcMakeStyle.complete), UseFormVlidate == true ? formValidate.ToScriptString() : "", AppendScriptAfter, SubmitElementId, SubmitEvent, SubmitFunctionString); return f.ToJqueryDocumentReady(); }
public String ToScriptString() { MakeJqScript CreateJson = new MakeJqScript() { needBrace = false, GetObject = this, FalseNotCreate = true }; return CreateJson.MakeScript(); }
public String ToScriptString() { MakeJqScript jqScript = new MakeJqScript() { GetObject = this}; jqScript.ItemNotMake.Add("relation_element"); return jqScript.MakeScript(); }