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()); }
/// <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()); }