using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using SuperMap.RealEstate.CoreFrameWork; using SuperMap.RealEstate.Enums; using SuperMap.RealEstate.HighWay.Storage.Business; using SuperMap.RealEstate.Utility; using SuperMap.RealEstate.Web.UI.WebControls; using HighWayBusiness = SuperMap.RealEstate.HighWay.Storage.Business; namespace SuperMap.RealEstate.HighWay.CloudModule.CommoditySearch { public partial class ProinstSatatic : BasePage { protected void Page_Load(object sender, EventArgs e) { if (IsPostBack) return; //初始化并加载列表 GridViewEx1.SelectingWithInit(ObjectDataSource1, GridPageEx1, DictionaryHelper.GetDictionary("Division_Code"), DictionaryHelper.GetDictionary("ProInst_Type"), DictionaryHelper.GetDictionary("ProInst_State"), DictionaryHelper.GetDictionary("ActInst_Type"), DictionaryHelper.GetDictionary("ActInst_State")); //设置回车焦点按钮 //SetControlClientAction(ButtonSearch); } //翻页事件 protected void GridPageEx1_CallBackPageChanged(object src, ClientSetEventArgs e) { GridViewEx1.Pagging(ObjectDataSource1, GridPageEx1); //设置UI变化 e.SetValue(GridViewEx1); } //异步查询 protected void ButtonSearch_CallBackClick(object sender, ClientSetEventArgs e) { //设置UI变化 e.SetValue(GridViewEx1); e.SetValue(GridPageEx1); } //查询参数 protected void GridViewEx1_SelectMethodParameters(object sender, SelectMethodParametersArgs e) { //if (!string.IsNullOrEmpty(TextBox_Search.Text)) // e.AddOrParams(LayoutButton_Search, TextBox_Search.Text, CheckBoxExOrParams.Checked); e.AddAndParams("1", 1); if (Request["ID"]!="") { e.SetOtherUserCustomWhereSqlString = "PROINST_ID in (SELECT PROINST_ID FROM HIGHWAY_RUNNING.V_COMMODITY WHERE COMMODITY_ID=" + Request["ID"].ToDecrypt() + ")"; } //e.AddOrderByParams(LayoutButton_OrderBy, CheckBoxExOrderBy.Checked); e.AddOrderByParams("ProInst_StartDate", true); } //string _ColumnProInstCodeText = ""; protected void GridViewEx1_RowDataBound(object sender, GridViewRowEventArgs e) { if (e.Row.RowType == DataControlRowType.DataRow) { //未办结 if (!String.IsNullOrEmpty(GridViewEx1.DataKeys[e.Row.RowIndex]["ActInst_ID"].ToString())) e.Row.Attributes.Add("onclick", "return WorkFlowPlatform_Transact(event,\"?" + ("ActInst_ID=") + GridViewEx1.DataKeys[e.Row.RowIndex]["ActInst_ID"].ToEncrypt() + "\",false);"); else { //办结的调用本地 e.Row.Attributes.Add("onclick", GridViewEx1.GetOpenPopDialogClientScript( "../002_ProinstEx/Main.aspx?ProInst_ID=" + GridViewEx1.DataKeys[e.Row.RowIndex]["ProInst_ID"].ToEncrypt())); } } } } }