//private int PolicyID { // get { // if (_policy == null) { // return 0; // } // return _policy.ID; // } // set { // _policy.ID = value; // } //} protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { GXGridView1.TotalRecords = PoliciesView.SelectByFKCountCached("UserID", this.PageUser.ID); mvMain.SetActiveView(viewGrid); reportControl.BranchName = BrokerHouseInformation.GetBrokerHouseNameByCode(BrokerHouseInformation.FIRST_ROW); reportControl.CompanyName = "Брокерско друштво"; } }
protected void FilterControl1_Filter(object sender, EventArgs e) { if (this.PageUser.Role.Name == RolesInfo.BROKERAdmin) { GXGridView1.TotalRecords = PoliciesView.SelectFilterCountCached(FilterControl1.FCFilterArgument); } else { GXGridView1.TotalRecords = PoliciesView.SelectFilterByFKCountCached("UserID", this.PageUser.ID, FilterControl1.FCFilterArgument); } }
protected void SearchControl1_Search(object sender, EventArgs e) { if (this.PageUser.Role.Name == RolesInfo.BROKERAdmin) { GXGridView1.TotalRecords = PoliciesView.SelectSearchCountCached(SearchControl1.SearchArguments); } else { GXGridView1.TotalRecords = PoliciesView.SelectSearchByFKCountCached("UserID", this.PageUser.ID, SearchControl1.SearchArguments); } mvMain.SetActiveView(viewGrid); }
protected void FilterControl1_Filter(object sender, EventArgs e) { GXGridView1.TotalRecords = PoliciesView.SelectFilterByFKCountCached("UserID", this.PageUser.ID, FilterControl1.FCFilterArgument); }
protected void SearchControl1_Search(object sender, EventArgs e) { GXGridView1.TotalRecords = PoliciesView.SelectSearchByFKCountCached("UserID", this.PageUser.ID, SearchControl1.SearchArguments); mvMain.SetActiveView(viewGrid); }