Esempio n. 1
0
        private BaseModel ClientValidateEquipmentNum(ref string equipmentNum)
        {
            #region 非数据库端验证equipmentNum
            equipmentNum = equipmentNum == null ? "" : equipmentNum.Trim();
            if (!ValidateHelper.EquipmentNum(equipmentNum))
            {
                return(new BaseModel()
                {
                    Code = (int)CodeEnum.设备号格式错误, Msg = CodeMsgDAL.GetByCode((int)CodeEnum.设备号格式错误)
                });
            }
            #endregion

            return(new BaseModel()
            {
                Code = (int)CodeEnum.成功, Msg = string.Format(CodeMsgDAL.GetByCode((int)CodeEnum.成功), "成功")
            });
        }