예제 #1
0
        protected override void ShowData(int StoredProcedureLogRawId)
        {
            var data = new Framework.Components.LogAndTrace.StoredProcedureLogRawDataModel();

            data.StoredProcedureLogRawId = StoredProcedureLogRawId;

            var dt = Framework.Components.LogAndTrace.StoredProcedureLogRawDataManager.GetStoredProcedureLogRaws(data, SessionVariables.RequestProfile);

            if (dt.Rows.Count == 1)
            {
                var row = dt.Rows[0];

                lblStoredProcedureLogRawId.Text = Convert.ToString(row[Framework.Components.LogAndTrace.StoredProcedureLogRawDataModel.DataColumns.StoredProcedureLogRawId]);
                lblStoredProcedureLogId.Text    = Convert.ToString(row[Framework.Components.LogAndTrace.StoredProcedureLogRawDataModel.DataColumns.StoredProcedureLogId]);
                lblInputParameters.Text         = Convert.ToString(row[Framework.Components.LogAndTrace.StoredProcedureLogRawDataModel.DataColumns.InputParameters]);
                lblInputValues.Text             = Convert.ToString(row[Framework.Components.LogAndTrace.StoredProcedureLogRawDataModel.DataColumns.InputValues]);

                //oHistoryList.Setup((int)Framework.Components.DataAccess.SystemEntity.StoredProcedureLogRaw, StoredProcedureLogRawId, "StoredProcedureLogRaw");
                dynAuditHistory.Visible = PerferenceUtility.GetUserPreferenceByKeyAsBoolean(ApplicationCommon.HistoryGridVisibilityKey, "StoredProcedureLogRaw");
            }
            else
            {
                Clear();
            }
        }
예제 #2
0
        private DataTable GetData(string StoredProcedureLog)
        {
            var data = new Framework.Components.LogAndTrace.StoredProcedureLogRawDataModel();

            data.StoredProcedureLogId = int.Parse(StoredProcedureLog);

            var dt = Framework.Components.LogAndTrace.StoredProcedureLogRawDataManager.Search(data, SessionVariables.RequestProfile);

            return(dt);
        }
예제 #3
0
        protected void btnDelete_Click(object sender, EventArgs e)
        {
            try
            {
                string indexes = Request.QueryString["DeleteIds"].ToString();

                string[] deleteindexlist = indexes.Split(',');
                foreach (string index in deleteindexlist)
                {
                    var data = new Framework.Components.LogAndTrace.StoredProcedureLogRawDataModel();
                    data.StoredProcedureLogRawId = int.Parse(index);

                    Framework.Components.LogAndTrace.StoredProcedureLogRawDataManager.Delete(data, SessionVariables.RequestProfile);
                }
                Response.Redirect("Default.aspx?Deleted=" + true, false);
                //ShowData();
            }
            catch (Exception ex)
            {
                Response.Write(ex.Message);
            }
        }