/// <summary>
        /// 属性窗口初始化
        /// </summary>
        void InitXPorps()
        {
            #region 基本信息
            //用户组名称
            _userGroupName.Category    = CATEGORY_GROUPNAME_TITLE;
            _userGroupName.Name        = "用户组名称";
            _userGroupName.Description = "用户组唯一身份标识,不能重复";
            _userGroupName.ReadOnly    = true;
            _userGroupName.ProType     = typeof(string);
            _userGroupName.Visible     = true;
            _userGroupName.Converter   = null;
            _props.Add(_userGroupName);

            //用户组成员数
            _userCount.Category    = CATEGORY_USERCOUNT_TITLE;
            _userCount.Name        = "用户组成员数";
            _userCount.Description = "用户组成员数不可编辑";
            _userCount.ReadOnly    = true;
            _userCount.ProType     = typeof(string);
            _userCount.Visible     = true;
            _userCount.Converter   = null;
            _props.Add(_userCount);

            //备注
            _remarks.Category    = CATEGORY_REMARKS_TITLE;
            _remarks.Name        = "备注";
            _remarks.Description = "备注若无,则无需添加";
            _remarks.ReadOnly    = true;
            _remarks.ProType     = typeof(string);
            _remarks.Visible     = true;
            _remarks.Converter   = null;
            _props.Add(_remarks);
            #endregion
        }
예제 #2
0
        private void InitXPorps()
        {
            #region 基本信息

            _ruleCodeId.Category    = CATEGORY_BASICINFO_TITLE;
            _ruleCodeId.Name        = "ID";
            _ruleCodeId.Description = "预警规则ID";
            _ruleCodeId.ReadOnly    = true;
            _ruleCodeId.ProType     = typeof(int);
            _ruleCodeId.Visible     = false;
            _ruleCodeId.Converter   = null;
            _props.Add(_ruleCodeId);

            //规则编码
            _ruleCodeProp.Category    = CATEGORY_BASICINFO_TITLE;
            _ruleCodeProp.Name        = "规则编码";
            _ruleCodeProp.Description = "预警规则唯一标识,规则编码不能重复";
            _ruleCodeProp.ReadOnly    = true;
            _ruleCodeProp.ProType     = typeof(string);
            _ruleCodeProp.Visible     = true;
            _ruleCodeProp.Converter   = null;
            _props.Add(_ruleCodeProp);
            //规则类别
            _ruleType.Category    = CATEGORY_BASICINFO_TITLE;
            _ruleType.Name        = "规则类别";
            _ruleType.Description = "瓦斯、煤层赋存、通风、采掘影响、防突措施、日常预测、管理因素、其他";
            _ruleType.ReadOnly    = true;
            _ruleType.ProType     = typeof(string);
            _ruleType.Visible     = true;
            _ruleType.Converter   = null;
            _props.Add(_ruleType);
            //预警类型
            _warningType.Category    = CATEGORY_BASICINFO_TITLE;
            _warningType.Name        = "预警类型";
            _warningType.Description = "趋势预警、状态预警";
            _warningType.ReadOnly    = true;
            _warningType.ProType     = typeof(string);
            _warningType.Visible     = true;
            _warningType.Converter   = null;
            _props.Add(_warningType);

            //预警级别
            _warningLevel.Category    = CATEGORY_BASICINFO_TITLE;
            _warningLevel.Name        = "预警级别";
            _warningLevel.Description = "红色预警、黄色预警";
            _warningLevel.ReadOnly    = true;
            _warningLevel.ProType     = typeof(string);
            _warningLevel.Visible     = true;
            _warningLevel.Converter   = null;
            _props.Add(_warningLevel);

            //适用位置
            _suitableLocation.Category    = CATEGORY_BASICINFO_TITLE;
            _suitableLocation.Name        = "适用位置";
            _suitableLocation.Description = "掘进工作面、回采工作面、掘进和回采工作面、整个矿井";
            _suitableLocation.ReadOnly    = true;
            _suitableLocation.ProType     = typeof(string);
            _suitableLocation.Visible     = true;
            _suitableLocation.Converter   = null;
            _props.Add(_suitableLocation);

            #endregion

            #region 规则参数

            //参数个数
            _paramCnt.Category    = CATEGORY_RULE_PARAMS_TITLE;
            _paramCnt.Name        = "参数个数";
            _paramCnt.Description = "预警规则对应的参数个数";
            _paramCnt.ReadOnly    = true;
            _paramCnt.ProType     = typeof(string);
            _paramCnt.Visible     = true;
            _paramCnt.Converter   = null;
            _props.Add(_paramCnt);

            //比较符
            _operator.Category    = CATEGORY_OPERATOR_TYPE_TITLE; //MARK FILED
            _operator.Name        = "比较符";
            _operator.Description = ">,≥,<,≤,=,≠;多个比较符用逗号分隔,比较符个数与参数一一对应";
            _operator.ReadOnly    = true;
            _operator.ProType     = typeof(string);
            _operator.Visible     = true;
            _operator.Converter   = null;
            _props.Add(_operator);

            #endregion

            #region 指标类型

            _indicatorType.Category    = CATEGORY_INDICATORR_TYPE_TITLE;
            _indicatorType.Name        = "指标类型";
            _indicatorType.Description = "定性指标、定量指标";
            _indicatorType.ReadOnly    = true;
            _indicatorType.ProType     = typeof(string);
            _indicatorType.Visible     = true;
            _indicatorType.Converter   = null;
            _props.Add(_indicatorType);

            #endregion

            #region 其他

            //修改时间
            _dateProp.Category    = CATEGORY_OTHERS_TITLE;
            _dateProp.Name        = "修改时间";
            _dateProp.Description = "预警规则最近修改时间";
            _dateProp.ReadOnly    = true;
            _dateProp.ProType     = typeof(string);
            _dateProp.Visible     = true;
            _dateProp.Converter   = null;
            _props.Add(_dateProp);

            //备注
            _remarks.Category    = CATEGORY_OTHERS_TITLE;
            _remarks.Name        = "备注";
            _remarks.Description = "备注信息";
            _remarks.ReadOnly    = true;
            _remarks.ProType     = typeof(string);
            _remarks.Visible     = true;
            _remarks.Converter   = null;
            _props.Add(_remarks);

            #endregion

            #region 组合规则中绑定的单一规则

            _IsMultiRules.Category    = CATEGORY_MULTIRULES_BINDING_SINGLERULE_TITLE;
            _IsMultiRules.Name        = "是否是组合规则";
            _IsMultiRules.Description = "该规则是否属于组合规则编码";
            _IsMultiRules.ReadOnly    = true;
            _IsMultiRules.ProType     = typeof(string);
            _IsMultiRules.Visible     = true;
            _IsMultiRules.Converter   = null;
            _props.Add(_IsMultiRules);

            _multiRulesBindingSingleRule.Category    = CATEGORY_MULTIRULES_BINDING_SINGLERULE_TITLE;
            _multiRulesBindingSingleRule.Name        = "相关规则";
            _multiRulesBindingSingleRule.Description = "组合规则中绑定的单一规则编码";
            _multiRulesBindingSingleRule.ReadOnly    = true;
            _multiRulesBindingSingleRule.ProType     = typeof(string);
            _multiRulesBindingSingleRule.Visible     = true;
            _multiRulesBindingSingleRule.Converter   = null;
            _props.Add(_multiRulesBindingSingleRule);

            #endregion
        }
        void InitXPorps()
        {
            #region 基本信息
            //登陆名
            _userLoginName.Category    = CATEGORY_LOGINNAME_TITLE;
            _userLoginName.Name        = "登陆名";
            _userLoginName.Description = "用户唯一身份标识,登陆名称不能重复";
            _userLoginName.ReadOnly    = true;
            _userLoginName.ProType     = typeof(string);
            _userLoginName.Visible     = true;
            _userLoginName.Converter   = null;
            _props.Add(_userLoginName);

            //用户密码
            _userPassWord.Category    = CATEGORY_LOGINNAME_TITLE;
            _userPassWord.Name        = "用户密码";
            _userPassWord.Description = "用户密码若无,则无需添加";
            _userPassWord.ReadOnly    = true;
            _userPassWord.ProType     = typeof(string);
            _userPassWord.Visible     = true;
            _userPassWord.Converter   = null;
            _props.Add(_userPassWord);

            //所属用户组
            _userGroup.Category    = CATEGORY_GROUP_TYPE_TITLE;
            _userGroup.Name        = "所属用户组";
            _userGroup.Description = "所属用户组若无,则无需添加";
            _userGroup.ReadOnly    = true;
            _userGroup.ProType     = typeof(string);
            _userGroup.Visible     = true;
            _userGroup.Converter   = null;
            _props.Add(_userGroup);

            //所属部门
            _userDepartment.Category    = CATEGORY_DEPARTMENT_TYPE_TITLE;
            _userDepartment.Name        = "所属部门";
            _userDepartment.Description = "所属部门组若无,则无需添加";
            _userDepartment.ReadOnly    = true;
            _userDepartment.ProType     = typeof(string);
            _userDepartment.Visible     = true;
            _userDepartment.Converter   = null;
            _props.Add(_userDepartment);

            //姓名
            _userName.Category    = CATEGORY_NAME_TYPE_TITLE;
            _userName.Name        = "用户姓名";
            _userName.Description = "所属部门组若无,则无需添加";
            _userName.ReadOnly    = true;
            _userName.ProType     = typeof(string);
            _userName.Visible     = true;
            _userName.Converter   = null;
            _props.Add(_userName);

            //电子邮箱
            _userEmail.Category    = CATEGORY_EMAIL_TYPE_TITLE;
            _userEmail.Name        = "电子邮箱";
            _userEmail.Description = "电子邮箱若无,则无需添加";
            _userEmail.ReadOnly    = true;
            _userEmail.ProType     = typeof(string);
            _userEmail.Visible     = true;
            _userEmail.Converter   = null;
            _props.Add(_userEmail);

            //电话号码
            _userTel.Category    = CATEGORY_TEL_TYPE_TITLE;
            _userTel.Name        = "电话号码";
            _userTel.Description = "电话号码若无,则无需添加";
            _userTel.ReadOnly    = true;
            _userTel.ProType     = typeof(string);
            _userTel.Visible     = true;
            _userTel.Converter   = null;
            _props.Add(_userTel);

            //手机号码
            _userPhone.Category    = CATEGORY_PHONE_TYPE_TITLE;
            _userPhone.Name        = "手机号码";
            _userPhone.Description = "手机号码若无,则无需添加";
            _userPhone.ReadOnly    = true;
            _userPhone.ProType     = typeof(string);
            _userPhone.Visible     = true;
            _userPhone.Converter   = null;
            _props.Add(_userPhone);

            //权限
            _userPermission.Category    = CATEGORY_PERMISSION_TYPE_TITLE;
            _userPermission.Name        = "权限";
            _userPermission.Description = "权限若无,则无需添加";
            _userPermission.ReadOnly    = true;
            _userPermission.ProType     = typeof(string);
            _userPermission.Visible     = true;
            _userPermission.Converter   = null;
            _props.Add(_userPermission);

            //备注
            _remarks.Category    = CATEGORY_REMARKS_TITLE;
            _remarks.Name        = "备注";
            _remarks.Description = "备注若无,则无需添加";
            _remarks.ReadOnly    = true;
            _remarks.ProType     = typeof(string);
            _remarks.Visible     = true;
            _remarks.Converter   = null;
            _props.Add(_remarks);
            #endregion
        }