public static string GetAlertCode(string name, ControlLibrary.Web.Language.ILanguageComponent lang) { AlertConst ac = new AlertConst(lang); return(ac.GetCode(name)); }
protected override void Grid_ClickCell(UltraGridCell cell) { base.Grid_ClickCell(cell); if (isResourceNG) { string billid = cell.Row.Cells[1].Text.Trim(); string itemcode = cell.Row.Cells.FromKey("AlertItemValue").Text.Trim(); string alerttype = AlertType_Old.ResourceNG; string alertitem = AlertMsg.GetAlertCode(cell.Row.Cells.FromKey("AlertItem").Text.Trim(), this.languageComponent1); string rescode = (cell.Row.Cells.FromKey("AlertRes") != null) ? cell.Row.Cells.FromKey("AlertRes").Text.Trim() : string.Empty; string ecg2ec = (cell.Row.Cells.FromKey("ECG2EC") != null) ? cell.Row.Cells.FromKey("ECG2EC").Text.Trim() : string.Empty; if (cell.Column.Key == "Notifier") { SaveQuery(); Response.Redirect(this.MakeRedirectUrl("FNotifierQP.aspx", new string[] { "billid", "itemcode", "alerttype", "alertitem", "rescode", "ecg2ec" }, new string[] { billid, itemcode, alerttype, alertitem, rescode, ecg2ec })); } if (this.gridHelper.IsClickEditColumn(cell)) { SaveQuery(); Response.Redirect(this.MakeRedirectUrl("FAlertBillEP.aspx", new string[] { "billid", "itemcode", "alerttype", "alertitem", "rescode", "ecg2ec" }, new string[] { billid, itemcode, alerttype, alertitem, rescode, ecg2ec })); } } else { if (cell.Column.Key == "Notifier") { SaveQuery(); Response.Redirect(this.MakeRedirectUrl("FNotifierQP.aspx", new string[] { "billid", "alerttype" }, new string[] { cell.Row.Cells[1].Text.Trim(), _alertConst.GetCode(cell.Row.Cells.FromKey("AlertType").Text.Trim()) })); } if (this.gridHelper.IsClickEditColumn(cell)) { SaveQuery(); Response.Redirect(this.MakeRedirectUrl("FAlertBillEP.aspx", new string[] { "billid", "alerttype" }, new string[] { cell.Row.Cells[1].Text.Trim(), _alertConst.GetCode(cell.Row.Cells.FromKey("AlertType").Text.Trim()) })); } } }