protected virtual XVar doCommonAssignments() { this.xt.assign(new XVar("id"), (XVar)(this.id)); if (this.mode == Constants.EXPORT_SIMPLE) { this.body.InitAndSetArrayItem(CommonFunctions.GetBaseScriptsForPage(new XVar(false)), "begin"); this.body.InitAndSetArrayItem(XTempl.create_method_assignment(new XVar("assignBodyEnd"), this), "end"); this.xt.assignbyref(new XVar("body"), (XVar)(this.body)); } else { this.xt.assign(new XVar("cancel_button"), new XVar(true)); } this.xt.assign(new XVar("groupExcel"), new XVar(true)); this.xt.assign(new XVar("exportlink_attrs"), (XVar)(MVCFunctions.Concat("id=\"saveButton", this.id, "\""))); if ((XVar)(this.pSet.checkExportFieldsSelection()) && (XVar)(isBootstrap())) { this.xt.assign(new XVar("choosefields"), new XVar(true)); this.xt.assign(new XVar("exportFieldsCtrl"), (XVar)(getChooseFieldsCtrlMarkup())); } if ((XVar)(!(XVar)(this.selection)) || (XVar)(!(XVar)(MVCFunctions.count(this.selection)))) { this.xt.assign(new XVar("rangeheader_block"), new XVar(true)); this.xt.assign(new XVar("range_block"), new XVar(true)); } if (this.textFormattingType == Constants.EXPORT_BOTH) { this.xt.assign(new XVar("exportformat"), new XVar(true)); } return(null); }
public virtual XVar doCommonAssignments() { this.body["begin"] = MVCFunctions.Concat(this.body["begin"], CommonFunctions.GetBaseScriptsForPage(new XVar(false))); this.body.InitAndSetArrayItem(XTempl.create_method_assignment(new XVar("assignBodyEnd"), this), "end"); this.xt.assignbyref(new XVar("body"), (XVar)(this.body)); this.xt.assign(new XVar("grid_block"), new XVar(true)); this.xt.assign(new XVar("page_number"), new XVar(true)); if (XVar.Pack(!(XVar)(this.splitByRecords))) { this.xt.assign(new XVar("divideintopages_block"), new XVar(true)); } if ((XVar)(!(XVar)(this.pdfMode)) && (XVar)((XVar)(!(XVar)(this.splitByRecords)) || (XVar)(this.pSet.isPrinterPagePDF()))) { this.xt.assign(new XVar("printbuttons"), new XVar(true)); } this.xt.assign(new XVar("printheader"), new XVar(true)); if (1 < MVCFunctions.count(this.gridTabs)) { dynamic curTabId = null; curTabId = XVar.Clone(getCurrentTabId()); this.xt.assign(new XVar("printtabheader"), new XVar(true)); this.xt.assign(new XVar("printtabheader_text"), (XVar)(getTabTitle((XVar)(curTabId)))); } return(null); }
public override XVar addCommonHtml() { this.body["begin"] = MVCFunctions.Concat(this.body["begin"], CommonFunctions.GetBaseScriptsForPage((XVar)(this.isDisplayLoading))); base.addCommonHtml(); this.body.InitAndSetArrayItem(XTempl.create_method_assignment(new XVar("assignBodyEnd"), this), "end"); return(null); }
public virtual XVar addCommonHtml() { this.body.InitAndSetArrayItem(CommonFunctions.GetBaseScriptsForPage(new XVar(false)), "begin"); this.body.InitAndSetArrayItem(XTempl.create_method_assignment(new XVar("assignBodyEnd"), this), "end"); this.xt.assignbyref(new XVar("body"), (XVar)(this.body)); return(null); }
protected override XVar assignBody() { this.body["begin"] = MVCFunctions.Concat(this.body["begin"], CommonFunctions.GetBaseScriptsForPage(new XVar(false))); this.body.InitAndSetArrayItem(XTempl.create_method_assignment(new XVar("assignBodyEnd"), this), "end"); this.xt.assignbyref(new XVar("body"), (XVar)(this.body)); return(null); }
protected virtual XVar buildDetails(dynamic _param_data) { #region pass-by-value parameters dynamic data = XVar.Clone(_param_data); #endregion dynamic details = XVar.Array(), multipleDetails = null; details = XVar.Clone(XVar.Array()); multipleDetails = XVar.Clone(1 < MVCFunctions.count(this.detailTables)); foreach (KeyValuePair <XVar, dynamic> dt in this.detailTables.GetEnumerator()) { dynamic dTable = null, dtableArrParams = XVar.Array(), mkeys = XVar.Array(), tSet = null, tType = null; dTable = XVar.Clone(CommonFunctions.GetTableByShort((XVar)(dt.Value))); mkeys = XVar.Clone(this.pSet.getMasterKeysByDetailTable((XVar)(dTable))); if (XVar.Pack(!(XVar)(mkeys))) { continue; } tSet = XVar.Clone(this.pSet.getTable((XVar)(dTable))); tType = XVar.Clone(tSet.getTableType()); dtableArrParams = XVar.Clone(XVar.Array()); dtableArrParams = XVar.Clone(XVar.Array()); dtableArrParams.InitAndSetArrayItem(1, "id"); dtableArrParams.InitAndSetArrayItem(new XTempl(), "xt"); dtableArrParams.InitAndSetArrayItem(dTable, "tName"); dtableArrParams.InitAndSetArrayItem(multipleDetails, "multipleDetails"); if (tType == Constants.PAGE_REPORT) { dynamic i = null; dtableArrParams.InitAndSetArrayItem(Constants.PAGE_RPRINT, "pageType"); dtableArrParams.InitAndSetArrayItem(true, "isDetail"); dtableArrParams.InitAndSetArrayItem(this.tName, "masterTable"); dtableArrParams.InitAndSetArrayItem(XVar.Array(), "masterKeysReq"); i = new XVar(0); foreach (KeyValuePair <XVar, dynamic> mkey in mkeys.GetEnumerator()) { i++; dtableArrParams.InitAndSetArrayItem(data[mkey.Value], "masterKeysReq", i); } } else { dtableArrParams.InitAndSetArrayItem(Constants.PAGE_PRINT, "pageType"); dtableArrParams.InitAndSetArrayItem(this.tName, "printMasterTable"); dtableArrParams.InitAndSetArrayItem(XVar.Array(), "printMasterKeys"); foreach (KeyValuePair <XVar, dynamic> mkey in mkeys.GetEnumerator()) { dtableArrParams.InitAndSetArrayItem(data[mkey.Value], "printMasterKeys", null); } } details.InitAndSetArrayItem(new XVar("details", XTempl.create_method_assignment(new XVar("showDetails"), this, (XVar)(dtableArrParams))), null); } return(details); }
public virtual XVar addCommonHtml() { this.body.InitAndSetArrayItem(CommonFunctions.GetBaseScriptsForPage(new XVar(false)), "begin"); if (XVar.Pack(!(XVar)(mobileTemplateMode()))) { this.body["begin"] = MVCFunctions.Concat(this.body["begin"], "<div id=\"search_suggest\" class=\"search_suggest\"></div>"); } this.body.InitAndSetArrayItem(XTempl.create_method_assignment(new XVar("assignBodyEnd"), this), "end"); this.xt.assignbyref(new XVar("body"), (XVar)(this.body)); return(null); }
protected override XVar assignBody() { this.body["begin"] = MVCFunctions.Concat(this.body["begin"], CommonFunctions.GetBaseScriptsForPage(new XVar(false))); this.body.InitAndSetArrayItem(XTempl.create_method_assignment(new XVar("assignBodyEnd"), this), "end"); this.xt.assignbyref(new XVar("body"), (XVar)(this.body)); this.xt.assign(new XVar("grid_block"), new XVar(true)); this.xt.assign(new XVar("grid_header"), new XVar(true)); if ((XVar)(this.format) && (XVar)(this.format != "pdf")) { this.body.InitAndSetArrayItem("", "begin"); this.body.InitAndSetArrayItem("", "end"); this.xt.assignbyref(new XVar("body"), (XVar)(this.body)); } return(null); }
public virtual XVar assign_method(dynamic _param_name, dynamic var_object, dynamic _param_method, dynamic _param_params = null) { #region default values if (_param_params as Object == null) { _param_params = new XVar(); } #endregion #region pass-by-value parameters dynamic name = XVar.Clone(_param_name); dynamic method = XVar.Clone(_param_method); dynamic var_params = XVar.Clone(_param_params); #endregion this.xt_vars.InitAndSetArrayItem(XTempl.create_method_assignment((XVar)(method), (XVar)(var_object), (XVar)(var_params)), name); return(null); }
public virtual XVar doCommonAssignments() { this.xt.assign(new XVar("id"), (XVar)(this.id)); this.xt.assign(new XVar("searchPanel"), new XVar(true)); if (XVar.Pack(isShowMenu())) { this.xt.assign(new XVar("menu_block"), new XVar(true)); } setLangParams(); this.xt.assign(new XVar("chart_block"), new XVar(true)); this.xt.assign(new XVar("asearch_link"), new XVar(true)); this.xt.assign(new XVar("exportpdflink_attrs"), new XVar("onclick='chart.saveAsPDF();'")); this.xt.assign(new XVar("advsearchlink_attrs"), (XVar)(MVCFunctions.Concat("id=\"advButton", this.id, "\""))); if (XVar.Pack(!(XVar)(CommonFunctions.GetChartXML((XVar)(this.shortTableName))))) { this.xt.assign(new XVar("chart_block"), new XVar(false)); } this.xt.assign(new XVar("message_block"), new XVar(true)); if ((XVar)((XVar)((XVar)(this.mode == Constants.CHART_SIMPLE) || (XVar)(this.mode == Constants.CHART_DASHBOARD)) && (XVar)(this.pSet.noRecordsOnFirstPage())) && (XVar)(!(XVar)(this.searchClauseObj.isSearchFunctionalityActivated()))) { this.show_message_block = new XVar(true); hideElement(new XVar("chart")); this.xt.assign(new XVar("chart_block"), new XVar(false)); this.xt.assign(new XVar("message"), (XVar)(noRecordsMessage())); this.xt.assign(new XVar("message_class"), new XVar("alert-warning")); } if (XVar.Pack(!(XVar)(this.show_message_block))) { hideElement(new XVar("message")); } if (XVar.Pack(mobileTemplateMode())) { this.xt.assign(new XVar("tableinfomobile_block"), new XVar(true)); } assignChartElement(); this.body["begin"] = MVCFunctions.Concat(this.body["begin"], CommonFunctions.GetBaseScriptsForPage((XVar)(this.isDisplayLoading))); if ((XVar)(!(XVar)(isDashboardElement())) && (XVar)(!(XVar)(mobileTemplateMode()))) { this.body["begin"] = MVCFunctions.Concat(this.body["begin"], "<div id=\"search_suggest\" class=\"search_suggest\"></div>"); } this.body.InitAndSetArrayItem(XTempl.create_method_assignment(new XVar("assignBodyEnd"), this), "end"); this.xt.assignbyref(new XVar("body"), (XVar)(this.body)); return(null); }