Пример #1
0
        protected void ViewButton_Click(object sender, EventArgs e)
        {
            try
            {

                UserAccountBLL accountBll = new UserAccountBLL();
                DataTable dt = new DataTable();
                if ((string)LumexSessionManager.Get("UserGroupId") == "UG003")
                {
                    dt = accountBll.getMatchingCommissionListbyDateRangeByUserId(fromDateTextBox.Text, toDateTextBox.Text, (string)LumexSessionManager.Get("ActiveUserId"));
                }
                else
                {
                    dt = accountBll.getMatchingCommissionListbyDateRange(fromDateTextBox.Text, toDateTextBox.Text);

                }
                GridMatchCommissionGenerate.DataSource = dt;
                GridMatchCommissionGenerate.DataBind();
                if (GridMatchCommissionGenerate.Rows.Count > 0)
                {
                    // btnTodayBonusGenerate.Visible = true;
                    GridMatchCommissionGenerate.UseAccessibleHeader = true;
                    GridMatchCommissionGenerate.HeaderRow.TableSection = TableRowSection.TableHeader;
                }

            }
            catch (Exception ex)
            {
                string message = ex.Message;
                if (ex.InnerException != null) { message += " --> " + ex.InnerException.Message; }
                MyAlertBox("ErrorAlert(\"" + ex.GetType() + "\", \"" + message + "\", \"\");");
            }
            finally
            {
                //  MyAlertBox("MyOverlayStop();");
            }
        }