Пример #1
0
        /// <summary>
        /// 资源类别名称帮助后
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ResTypeNameHelped(object sender, DictEntryPickedEventArgs e)
        {
            DictEntry dic = e.DictEntry; //获取多值帮助选择的数据

            if (dic == null)             //没有选中任何值 "确定"
            {
                return;
            }
            else if (dic.Row == null) //"取消"
            {
                return;
            }

            var id   = dic.ID;
            var code = dic.Code;
            var name = dic.Name;

            //编号赋值
            GetCurRow()[ResLbbh] = code;
            var resCode = GetResCodeByType(code);

            //给列表模型赋值
            GetCurRow()[ResZybh] = resCode;
            GetCurRow()[ResKpbh] = resCode;
            GetCurRow()[ResLbmc] = name;
            GetCurRow()[ResLbbh] = code;

            //给卡片赋值
            GetRightCardDataTable()[ResZybh] = resCode;
            GetRightCardDataTable()[ResKpbh] = resCode;
            GetRightCardDataTable()[ResLbmc] = name;
            GetRightCardDataTable()[ResLbbh] = code;
        }
Пример #2
0
        /// <summary>
        /// 使用状况帮助后事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void ResSyzkHelped(object sender, DictEntryPickedEventArgs e)
        {
            DictEntry dic = e.DictEntry; //获取多值帮助选择的数据

            if (dic == null)             //没有选中任何值 "确定"
            {
                return;
            }
            else if (dic.Row == null) //"取消"
            {
                return;
            }

            var id = dic.ID;

            //id赋值
            GetCurRow()[ResSyzkId] = id;
        }