protected void BindTransactionsComments() { try { if (Request.QueryString["TransID"] != null) { BCommon objBCommon = new BCommon(); BECommon objBECommon = new BECommon(); objBECommon.IntTransID = Convert.ToInt64(AppSecurity.Decrypt(Request.QueryString["TransID"].ToString())); objBECommon.IntUserID = Convert.ToInt32(Session[EnumPageSessions.USERID]); objBCommon.BGetTransactionComments(objBECommon); gvComments.DataSource = objBECommon.DtResult; ViewState["ALERTS"] = objBECommon.DtResult; } } catch (Exception) { // ErrorLog.WriteError(Ex); } }
protected void LoadData() { try { //if (Session[BaseClass.EnumPageSessions.TransID] != null) //{ // gvComments.DataSource = null; // BCommon objBCommon = new BCommon(); // BECommon objBECommon = new BECommon(); // objBECommon.IntTransID = Convert.ToInt32(AppSecurity.Decrypt(Session[BaseClass.EnumPageSessions.TransID].ToString())); // objBCommon.BGetTransactionComments(objBECommon); // if(objBECommon.DtResult!=null && objBECommon.DtResult.Rows.Count>0) // gvComments.DataSource = objBECommon.DtResult; // else // gvComments.DataSource = new object[] { }; //} if (Session[BaseClass.EnumPageSessions.TransID] != null) { BCommon objBCommon = new BCommon(); BECommon objBECommon = new BECommon(); objBECommon.IntTransID = Convert.ToInt64(AppSecurity.Decrypt(Session[BaseClass.EnumPageSessions.TransID].ToString())); objBECommon.IntUserID = Convert.ToInt32(Session[EnumPageSessions.USERID]); objBCommon.BGetTransactionComments(objBECommon); if (objBECommon.DtResult != null && objBECommon.DtResult.Rows.Count > 0) { gvComments.DataSource = objBECommon.DtResult; } else { gvComments.DataSource = new object[] { } }; ViewState["ALERTS"] = objBECommon.DtResult; } } catch (Exception Ex) { throw Ex; } }
protected void BindTransactionsComments() { try { BCommon objBCommon = new BCommon(); BECommon objBECommon = new BECommon(); objBECommon.IntTransID = Convert.ToInt64(AppSecurity.Decrypt(Request.QueryString["TransID"].ToString())); objBECommon.IntUserID = Convert.ToInt32(Session[EnumPageSessions.USERID]); objBCommon.BGetTransactionComments(objBECommon); if (objBECommon.DtResult.Rows.Count > 0 && objBECommon.DtResult != null) { gvComments.DataSource = objBECommon.DtResult; } else { gvComments.DataSource = new object[] { } }; } catch (Exception Ex) { throw Ex; } }
protected void BindTransactionsComments() { try { //if (Request.QueryString["TransID"] != null) //{ // BCommon objBCommon = new BCommon(); // BECommon objBECommon = new BECommon(); // objBECommon.IntTransID = Convert.ToInt32(AppSecurity.Decrypt(Request.QueryString["TransID"].ToString())); // objBCommon.BGetTransactionComments(objBECommon); // gvComments.DataSource = objBECommon.DtResult; //} if (Request.QueryString["TransID"] != null) { gvComments.DataSource = null; BCommon objBCommon = new BCommon(); BECommon objBECommon = new BECommon(); objBECommon.IntTransID = Convert.ToInt64(AppSecurity.Decrypt(Request.QueryString["TransID"].ToString())); objBECommon.IntUserID = Convert.ToInt32(Session[EnumPageSessions.USERID]); objBCommon.BGetTransactionComments(objBECommon); if (objBECommon.DtResult != null && objBECommon.DtResult.Rows.Count > 0) { gvComments.DataSource = objBECommon.DtResult; } else { gvComments.DataSource = new object[] { } }; } } catch (Exception) { // ErrorLog.WriteError(Ex); } }