コード例 #1
0
        private void getStakeKeyLogdata()
        {
            try
            {
                StakeInfoBLL stakeInfo = new StakeInfoBLL();
                DataTable dt = new DataTable();
                if ((string) LumexSessionManager.Get("UserGroupId") == "UG003")
                {
                    dt = stakeInfo.getStakeKeyLogdatabyUser((string) LumexSessionManager.Get("ActiveUserId"));
                    GridViewStakeLog.DataSource = dt;
                    GridViewStakeLog.DataBind();
                    if (dt.Rows.Count < 1)
                    {
                        msgbox.Attributes.Add("Class", "alert alert-warning"); msgbox.Visible = true; msgTitleLabel.Text = "Data Not Found!!!"; msgDetailLabel.Text = "";
                    }
                    GridviewHeadStyle();
                }
                else
                {
                    dt = stakeInfo.getStakeKeyLogdataAll();
                    GridViewStakeLog.DataSource = dt;
                    GridViewStakeLog.DataBind();
                    if (dt.Rows.Count < 1)
                    {
                        msgbox.Attributes.Add("Class", "alert alert-warning"); msgbox.Visible = true; msgTitleLabel.Text = "Data Not Found!!!"; msgDetailLabel.Text = "";
                    }
                    GridviewHeadStyle();
                }

            }
            catch (Exception)
            {

                throw;
            }
        }