示例#1
0
        public string DynamicVipPropertySave(string pRequest)
        {
            var clientBussinessDefinedBLL = new ClientBussinessDefinedBLL(PrivateLoggingSessionInfo);

            var rd = new EmptyRD();
            var rp = pRequest.DeserializeJSONTo <APIRequest <JIT.CPOS.BS.BLL.ClientBussinessDefinedBLL.DynamicVipPropertySaveRP> >();

            rp.Parameters.Validate();

            string result = clientBussinessDefinedBLL.DynamicVipPropertySave(rp.Parameters);

            var rsp = new SuccessResponse <IAPIResponseData>(rd);

            if (result == "3")
            {
                rsp.Message    = "添加属性失败,属性名称已经存在.";
                rsp.ResultCode = 201;
            }
            else if (result == "2")
            {
                rsp.Message    = "添加属性失败,最多添加50个.";
                rsp.ResultCode = 201;
            }
            return(rsp.ToJSON());
        }
示例#2
0
        /// <summary>
        /// 查询正在使用的动态属性
        /// Add by wen wu 20140928
        /// </summary>
        /// <param name="ptype"></param>
        /// <param name="pRequest"></param>
        /// <returns></returns>
        public string DynamicControlDisplaySave(string ptype, string pRequest)
        {
            var clientBussinessDefinedBLL = new ClientBussinessDefinedBLL(PrivateLoggingSessionInfo);
            var rd = new EmptyRD();
            var rp = pRequest.DeserializeJSONTo <APIRequest <JIT.CPOS.BS.BLL.ClientBussinessDefinedBLL.DynamicControlDisplayListRP> >();

            rp.Parameters.Validate();
            string result = clientBussinessDefinedBLL.DynamicControlDisplaySave(rp.Parameters);
            var    rsp    = new SuccessResponse <IAPIResponseData>(rd);

            if (result != "1")
            {
                rsp.Message    = "保存属性失败.";
                rsp.ResultCode = 201;
            }
            return(rsp.ToJSON());
        }