/// <summary> /// Set specific payment transaction no. to screen session /// </summary> /// <param name="paymentTranNo">payment transaction no.</param> /// <returns></returns> public ActionResult ICS081_SetPaymentTransNo(string paymentTranNo) { ObjectResultData res = new ObjectResultData(); res.MessageType = MessageModel.MESSAGE_TYPE.WARNING; try { if (CommonUtil.IsNullOrEmpty(ICS081_ScreenData)) { ICS081_ScreenData = new ICS081_ScreenParameter(); } ICS081_ScreenData.PaymentTransNo = paymentTranNo; //ResultFlag = Success; res.ResultData = "1"; return(Json(true)); } catch (Exception ex) { res = new ObjectResultData(); res.MessageType = MessageModel.MESSAGE_TYPE.INFORMATION; res.AddErrorMessage(ex); return(Json(res)); } }
/// <summary> /// Check screen authority and permission /// </summary> /// <param name="param"></param> /// <returns></returns> public ActionResult ICS081_Authority(ICS081_ScreenParameter param) { ObjectResultData res = new ObjectResultData(); res.MessageType = MessageModel.MESSAGE_TYPE.INFORMATION; try { if (IsSuspend(res)) { return(Json(res)); } if (!ICS081_IsAllowOperate(res)) { return(Json(res)); } } catch (Exception ex) { res.MessageType = MessageModel.MESSAGE_TYPE.INFORMATION; res.AddErrorMessage(ex); } return(InitialScreenEnvironment <ICS081_ScreenParameter>("ICS081", param, res)); }