if
(properties[
"AutoRefreshEnabled"
] ==
"True"
) {
document.getElementById(
'<%= CheckBox1.ClientID %>'
).checked =
true
;
$find(
"<%= RadNumericTextBox1.ClientID %>"
).set_value(properties[
"AutoRefreshInterval"
]);
$find(
"<%= RadNumericTextBox1.ClientID %>"
).enable();
}
protected
override void RaisePostBackEvent(IPostBackEventHandler source, string eventArgument)
{
try
{
base.RaisePostBackEvent(source, eventArgument);
if (source == this.grdADInbox && eventArgument.IndexOf("RowDblClicked") != -1)
{
Session[
"strApproveUrl"] = null;
Session[
"strRejectUrl"] = null;
Session[
"TranType"] = null;
RadGrid rg = (RadGrid)source;
int index = int.Parse(eventArgument.Split(':')[1]);
mvTransaction.ActiveViewIndex = 0;
rtsADItem.SelectedIndex = 0;
divAction.Visible =
true;
Decimal transaction_Key = Convert.ToDecimal(rg.Items[index].OwnerTableView.DataKeyValues[index]["Tran_Key"]);
hdnTranKey.Value =
Convert.ToString(transaction_Key);
hdnTranType.Value = (
string) rg.Items[index].OwnerTableView.DataKeyValues[index]["TransactionType"];
Session[
"TranType"] = hdnTranType.Value;
//load attachment
LoadAttachment();
ViewState[
"islinkkVisible"] = true;
//load transaction detail
LoadTransactionDetail();
Session[
"strApproveUrl"] = "ApproveAction.aspx?action=Approve&&Tran_Key=" + transaction_Key + "&&Current_Step=" + rg.Items[index]["CurrentStep"].Text;
Session[
"strRejectUrl"] = "ApproveAction.aspx?action=Reject&&Tran_Key=" + transaction_Key + "&&Current_Step=" + rg.Items[index]["CurrentStep"].Text;
btnApprove.Attributes.Add(
"onclick", "return ShowApprovalPopUp('" + Convert.ToString(Session["strApproveUrl"]) + "');");
btnReject.Attributes.Add(
"onclick", "return ShowApprovalPopUp('" + Convert.ToString(Session["strRejectUrl"]) + "');");
}
}
catch (Exception ex) {
throw ex;}
}