コード例 #1
0
    //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 = "Брокерско друштво";
        }
    }
コード例 #2
0
 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);
     }
 }
コード例 #3
0
 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);
 }
コード例 #4
0
 protected void FilterControl1_Filter(object sender, EventArgs e)
 {
     GXGridView1.TotalRecords = PoliciesView.SelectFilterByFKCountCached("UserID", this.PageUser.ID, FilterControl1.FCFilterArgument);
 }
コード例 #5
0
 protected void SearchControl1_Search(object sender, EventArgs e)
 {
     GXGridView1.TotalRecords = PoliciesView.SelectSearchByFKCountCached("UserID", this.PageUser.ID, SearchControl1.SearchArguments);
     mvMain.SetActiveView(viewGrid);
 }