Exemplo n.º 1
0
        public void HandleState(object sender, string oldState, string uiEvent, string newState, System.Collections.Generic.Dictionary <string, object> data, xap.rui.engine.BaseContext baseContext)
        {
            var action = sender as XBroadcastAction;

            switch (uiEvent)
            {// UIEvent.LOAD事件统一放到OpActionStatusHandler中处理
            case UIEvent.LOAD:
                //action.Visible = false;
                break;
            }
        }
Exemplo n.º 2
0
        public void HandleState(object sender, string oldState, string uiEvent, string newState, System.Collections.Generic.Dictionary <string, object> data, xap.rui.engine.BaseContext baseContext)
        {
            var action = sender as XBroadcastAction;

            switch (uiEvent)
            {
            case UIEvent.LOAD:
                action.Visible = true;
                break;

            case OpActionConstant.OP_CANCEL_REVERT_VISIBLE_ACTION:
                string strParam = data[OpActionConstant.OP_CANCEL_REVERT_VISIBLE_ACTION] as string;
                action.Visible = "10".Equals(strParam);
                break;

            default:
                break;
            }
        }
Exemplo n.º 3
0
        public void HandleState(object sender, string oldState, string uiEvent, string newState, System.Collections.Generic.Dictionary <string, object> data, xap.rui.engine.BaseContext baseContext)
        {
            var action = sender as XBroadcastAction;

            switch (uiEvent)
            {
            case UIEvent.LOAD:
                action.Visible = true;
                break;

            case OpActionConstant.OP_CANCEL_REVERT_ENABLE_ACTION:
                Dictionary <string, bool> dicParam = data[OpActionConstant.OP_CANCEL_REVERT_ENABLE_ACTION] as Dictionary <string, bool>;
                action.Enabled = dicParam[OpActionConstant.OpCurrOrderDeleteAction];
                break;

            default:
                break;
            }
        }
        public void HandleState(object sender, string oldState, string uiEvent, string newState, System.Collections.Generic.Dictionary <string, object> data, xap.rui.engine.BaseContext baseContext)
        {
            var action = sender as XBroadcastAction;

            switch (uiEvent)
            {
            case UIEvent.LOAD:
                action.Visible = true;
                break;

            case OpActionConstant.OP_CANCEL_REVERT_VISIBLE_ACTION:
                string strParam = data[OpActionConstant.OP_CANCEL_REVERT_VISIBLE_ACTION] as string;
                action.Visible = !String.IsNullOrEmpty(strParam) && strParam.StartsWith("1");
                break;

            case OpActionConstant.OP_CANCEL_REVERT_ENABLE_ACTION:
                Dictionary <string, bool> dicParam = data[OpActionConstant.OP_CANCEL_REVERT_ENABLE_ACTION] as Dictionary <string, bool>;
                action.Enabled = dicParam[OpActionConstant.OpAllOrderCancelCopyAction];
                break;

            default:
                break;
            }
        }
Exemplo n.º 5
0
        public void HandleState(object sender, string oldState, string uiEvent, string newState, System.Collections.Generic.Dictionary <string, object> data, xap.rui.engine.BaseContext baseContext)
        {
            var action = sender as XBroadcastAction;

            switch (uiEvent)
            {// UIEvent.LOAD事件统一放到OpActionStatusHandler中处理
            case UIEvent.LOAD:
                action.Visible = true;
                break;

            case OpActionConstant.OP_CANCEL_REVERT_VISIBLE_ACTION:
                string strParam = data[OpActionConstant.OP_CANCEL_REVERT_VISIBLE_ACTION] as string;
                action.Visible = String.IsNullOrEmpty(strParam) || "00".Equals(strParam);
                break;

            case Event_Enable_UnSign:
                action.Enabled = true;
                break;

            case Event_Disable_UnSign:

                action.Enabled = false;
                break;

            case "ListSelected":
                action.Enabled = true;
                break;

            default:
                break;
            }
        }
Exemplo n.º 6
0
        public void HandleState(object sender, string oldState, string uiEvent, string newState, System.Collections.Generic.Dictionary <string, object> data, xap.rui.engine.BaseContext baseContext)
        {
            var action = sender as XBroadcastAction;

            switch (uiEvent)
            {
            case UIEvent.LOAD:
                action.Visible = true;
                break;

            case OpActionConstant.OP_CANCEL_REVERT_VISIBLE_ACTION:
                string strParam = SysParamUtils.getSysParam().SYS_PARAM_OpOrSysncro2MrHandleMode.DeptParam;
                action.Visible = "1".Equals(strParam);
                break;

            default:
                break;
            }
        }
Exemplo n.º 7
0
        public void HandleState(object sender, string oldState, string uiEvent, string newState, System.Collections.Generic.Dictionary <string, object> data, xap.rui.engine.BaseContext baseContext)
        {
            var action = sender as XBroadcastAction;

            switch (uiEvent)
            {
            default:
                action.Visible = false;
                break;
            }
        }
Exemplo n.º 8
0
        public void HandleState(object sender, string oldState, string uiEvent, string newState, System.Collections.Generic.Dictionary <string, object> data, xap.rui.engine.BaseContext baseContext)
        {
            var action = sender as XBroadcastAction;

            switch (uiEvent)
            {// UIEvent.LOAD事件统一放到OpActionStatusHandler中处理
            case UIEvent.LOAD:
                break;

            case Event_Enable_Sign:

                action.Enabled = true;
                break;

            case Event_Disable_Sign:

                action.Enabled = false;
                break;

            default:
                break;
            }
        }