前台定义按钮
1 <epoint:WebToolBar runat="server" ID="WebToolBar1" AddTarget="top" RelationName="培训信息" 2 EnableUpdate="false" OnCommandClick="WebToolBar1_CommandClick" GridBelongPlaceHolder="cphContent" TargetGrid="DataGrid1" 3 HideSelectValueBelongPlaceHolder="cphToolBar" HideSelectValueID="hidSelectedFields" EnableDelete="false" EnableAdd="false" EnableExport="false"> 4 <Commands> 5 <epoint:ToolCommand CausesValidation="true" CommandName="bmExcel" CommandType="Normal" Text="导出" /> 6 </Commands> 7 </epoint:WebToolBar>
后台隐藏方法
1 WebToolBar1.Commands.GetNamedItem("按钮名字").Visible = false;
获取前台传过来的值:
1 public string PiCi 2 { 3 get 4 { 5 if (Request.QueryString["PiCi"] != null) 6 { 7 return Request.QueryString["PiCi"].ToString(); 8 } 9 else 10 { 11 return ""; 12 } 13 } 14 }
后台根据代码项的值获取代码项文本:
1 new Epoint.MisBizLogic2.BL.CodeMain().GetCodeText_FromHash("PX_培训形式", mplan.PXForm);
前台根据代码项的值获取代码项的文本:
1 <%#new Epoint.MisBizLogic2.BL.CodeMain().GetCodeText_FromHash("PX_性别",Convert.ToString( DataBinder.Eval(Container, "DataItem.Sex")))%>
时间: 2024-11-05 11:31:31