/// <summary> /// 修改专题活动 /// </summary> /// <returns></returns> public bool Add(SaleHotStyleSpecialSubjectDetail specialSubject) { var req = Mapper.Map <SaleHotStyleSpecialSubjectDetail, AddSaleHotStyleSpeciaSubjectRequest>(specialSubject); var res = CMSClient.Send <AddSaleHotStyleSpeciaSubjectResponse>(req); return(res.DoFlag); }
/// <summary> /// 新增楼层配置 /// </summary> /// <param name="floorConfig"></param> /// <returns></returns> public bool AddFloorConfig(FloorConfigDetail floorConfig) { var req = Mapper.Map <FloorConfigDetail, AddFloorConfigRequest>(floorConfig); var res = CMSClient.Send <AddFloorConfigResponse>(req); return(res.DoFlag); }
//*****************操作FloorDetailConfig表****************************** #region 根据楼层配置Id查询相关联的楼层配置详细配置列表信息 /// <summary> /// 根据楼层配置Id查询相关联的楼层配置详细配置列表信息 /// </summary> /// <param name="floorDetail"></param> /// <returns></returns> public FloorDetailRefer QueryFloorDetail(FloorDetailRefer floorDetail) { var result = new FloorDetailRefer(); var req = new QueryFloorDetailConfigByFloorIdRequest(); if (floorDetail.SearchDetail != null) { req.FloorID = floorDetail.SearchDetail.FloorID; } req.PageIndex = floorDetail.PageIndex ?? 0; req.PageSize = floorDetail.PageSize ?? 0; var res = CMSClient.Send <QueryFloorDetailConfigByFloorIdResponse>(req); if (res.DoFlag) { result.List = Mapper.MappGereric <FloorDetailConfigExt, FloorDetailDetail>(res.FloorDetailDos); result.Total = res.Total; } result.SearchDetail = floorDetail.SearchDetail; result.PageIndex = floorDetail.PageIndex; result.PageSize = floorDetail.PageSize; return(result); }
/// <summary> /// 新增公告 /// </summary> /// <param name="bulletin"></param> /// <returns></returns> public bool AddWebBulletin(WebBulletinDetail bulletin) { var req = Mapper.Map <WebBulletinDetail, AddWebBulletinRequest>(bulletin); var res = CMSClient.Send <AddWebBulletinResponse>(req); return(res.DoFlag); }
/// <summary> /// 商品标签列表 /// </summary> /// <param name="productLabel"></param> /// <returns></returns> public ProductLabelRefer QueryBasetLabels(ProductLabelRefer productLabel) { var result = new ProductLabelRefer(); var req = new QueryBasetLabelsRequest(); if (productLabel.SearchDetail != null) { req.LabelName = productLabel.SearchDetail.LabelName; req.LabelcontentValue = productLabel.SearchDetail.LabelcontentValue; } req.PageIndex = productLabel.PageIndex; req.PageSize = productLabel.PageSize; var res = CMSClient.Send <QueryBasetLabelsResponse>(req); if (res.DoFlag) { result.List = Mapper.MappGereric <base_t_LabelsExt, ProductLabelDetail>(res.BaseTLabelsDos); result.Total = res.Total; } result.SearchDetail = productLabel.SearchDetail; result.PageIndex = productLabel.PageIndex; result.PageSize = productLabel.PageSize; return(result); }
/// <summary> /// 爆品列表 /// </summary> /// <param name="saleHotStyle"></param> /// <returns></returns> public SaleHotStyleRefer QuerySaleHotStyle(SaleHotStyleRefer saleHotStyle) { var result = new SaleHotStyleRefer(); var req = new QuerySaleHotStyleRequest(); if (saleHotStyle.SearchDetail != null) { req.ProductId = saleHotStyle.SearchDetail.ProductId; req.ProductName = saleHotStyle.SearchDetail.vchProductName; req.ApplyPlace = saleHotStyle.SearchDetail.ApplyPlace; req.IsEnable = saleHotStyle.SearchDetail.IsEnable; req.IsTop = saleHotStyle.SearchDetail.IsTop; req.isExpire = saleHotStyle.SearchDetail.isExpire ?? 0; } req.PageIndex = saleHotStyle.PageIndex; req.PageSize = saleHotStyle.PageSize; var res = CMSClient.Send <QuerySaleHotStyleResponse>(req); if (res.DoFlag) { result.List = Mapper.MappGereric <Sale_HotStyleExt, SaleHotStyleDetail>(res.PdtbaseInfoDos); result.Total = res.Total; } result.SearchDetail = saleHotStyle.SearchDetail; result.PageIndex = saleHotStyle.PageIndex; result.PageSize = saleHotStyle.PageSize; return(result); }
/// <summary> /// 活动专题列表 /// </summary> /// <param name="specialSubject"></param> /// <returns></returns> public SaleHotStyleSpecialSubjectRefer QuertSaleHotStyleSpeciaSubject(SaleHotStyleSpecialSubjectRefer specialSubject) { var result = new SaleHotStyleSpecialSubjectRefer(); var req = new QuerySaleHotStyleSpeciaSubjectRequest(); if (specialSubject.SearchDetail != null) { req.SubjectName = specialSubject.SearchDetail.SubjectName; req.IsEnable = specialSubject.SearchDetail.IsEnable; req.isExpire = specialSubject.SearchDetail.isExpire; req.ApplyPlace = specialSubject.SearchDetail.ApplyPlace; req.IsTop = specialSubject.SearchDetail.IsTop; } req.PageIndex = specialSubject.PageIndex; req.PageSize = specialSubject.PageSize; var res = CMSClient.Send <QuerySaleHotStyleSpeciaSubjectResponse>(req); if (res.DoFlag) { result.List = Mapper.MappGereric <Sale_HotStyle_SpecialSubjectExt, SaleHotStyleSpecialSubjectDetail>( res.HotStyleSpecialDos); result.Total = res.Total; } result.SearchDetail = specialSubject.SearchDetail; result.PageIndex = specialSubject.PageIndex; result.PageSize = specialSubject.PageSize; return(result); }
/// <summary> /// 新增商品标签 /// </summary> /// <param name="productLabel"></param> /// <returns></returns> public bool AddBasetLabels(ProductLabelDetail productLabel) { var req = Mapper.Map <ProductLabelDetail, AddBasetLabelsRequest>(productLabel); var res = CMSClient.Send <AddBasetLabelsResponse>(req); return(res.DoFlag); }
//*****************操作dbo.FloorConfig表****************************** #region 楼层配置列表 /// <summary> /// 楼层配置列表 /// </summary> /// <param name="floorConfig"></param> /// <returns></returns> public FloorConfigRefer QueryFloorConfigRefer(FloorConfigRefer floorConfig) { var result = new FloorConfigRefer(); var req = new QueryFloorConfigRequest(); if (floorConfig.SearchDetail != null) { req.FloorName = floorConfig.SearchDetail.FloorName; if (floorConfig.SearchDetail.TempFloorType <= 0) { req.FloorType = -1; } else { req.FloorType = floorConfig.SearchDetail.TempFloorType; } } req.PageIndex = floorConfig.PageIndex; req.PageSize = floorConfig.PageSize; var res = CMSClient.Send <QueryFloorConfigResponse>(req); if (res.DoFlag) { result.List = Mapper.MappGereric <FloorConfigExt, FloorConfigDetail>(res.FloorConfigDos); result.Total = res.Total; } result.SearchDetail = floorConfig.SearchDetail; result.PageIndex = floorConfig.PageIndex; result.PageSize = floorConfig.PageSize; return(result); }
/// <summary> /// 修改楼层配置相关信息 /// </summary> /// <param name="floorDetail"></param> /// <returns></returns> public bool UpdateFloorDetail(FloorDetailDetail floorDetail) { var req = Mapper.Map <FloorDetailDetail, UpdateFloorDetailConfigRequest>(floorDetail); var res = CMSClient.Send <UpdateFloorDetailConfigResponse>(req); return(res.DoFlag); }
/// <summary> /// 修改爆品商品 /// </summary> /// <param name="saleHotStyle"></param> /// <returns></returns> public bool UpdateSaleHotStyle(SaleHotStyleDetail saleHotStyle, out string str) { var req = Mapper.Map <SaleHotStyleDetail, UpdateSaleHotStyleRequest>(saleHotStyle); var res = CMSClient.Send <UpdateSaleHotStyleResponse>(req); str = res.DoResult; return(res.DoFlag); }
/// <summary> /// 删除公告 /// </summary> /// <param name="id"></param> /// <returns></returns> public bool DelWebBulletin(int id) { var req = new DelWebBulletinRequest(); req.IntBulletinID = id; var res = CMSClient.Send <DelWebBulletinResponse>(req); return(res.DoFlag); }
/// <summary> /// 删除商品标签 /// </summary> /// <param name="id"></param> /// <returns></returns> public bool DelBasetLabels(int id) { var req = new DelBasetLabelsRequest(); req.ID = id; var res = CMSClient.Send <DelBasetLabelsResponse>(req); return(res.DoFlag); }
/// <summary> /// 删除FloorLabelConfig /// </summary> /// <param name="id"></param> /// <returns></returns> public bool DelFloorLabel(int id) { var req = new DelFloorLabelConfigRequest(); req.SysNO = id; var res = CMSClient.Send <DelFloorLabelConfigResponse>(req); return(res.DoFlag); }
/// <summary> /// 修改专题活动排序 /// </summary> /// <param name="id"></param> /// <param name="sort"></param> /// <returns></returns> public bool UpdateSort(int id, int sort) { var req = new UpdateSaleHotStyleSpecialSubjectSortRequest(); req.Id = id; req.Sort = sort; var res = CMSClient.Send <UpdateSaleHotStyleSpecialSubjectSortResponse>(req); return(res.DoFlag); }
/// <summary> /// 删除爆品商品 /// </summary> /// <param name="id"></param> /// <returns></returns> public bool DelSaleHotStyle(int id) { var req = new DelSaleHotStyleRequest(); req.Id = id; req.IsDeleted = Convert.ToBoolean(0); var res = CMSClient.Send <DelSaleHotStyleResponse>(req); return(res.DoFlag); }
/// <summary> /// 取消爆品商品置顶信息 /// </summary> /// <param name="id"></param> /// <param name="istop"></param> /// <returns></returns> public bool CancelSaleHotStyleIsTop(int id) { var req = new CancelSaleHotStyleIsTopRequest(); req.Id = id; req.IsTop = 0; var res = CMSClient.Send <CancelSaleHotStyleIsTopResponse>(req); return(res.DoFlag); }
/// <summary> /// 修改专题活动状态 /// </summary> /// <param name="id"></param> /// <param name="state"></param> /// <returns></returns> public bool UpdateState(int id, int state) { var req = new UpdateSaleHotStyleSpeciaSubjectStateRequest(); req.Id = id; req.IsEnable = Convert.ToBoolean(state); var res = CMSClient.Send <UpdateSaleHotStyleSpeciaSubjectStateResponse>(req); return(res.DoFlag); }
/// <summary> /// 删除专题活动 /// </summary> /// <param name="id"></param> /// <returns></returns> public bool DelSaleHotStyleSpeciaSubject(int id) { var req = new DelSaleHotStyleSpeciaSubjectRequest(); req.Id = id; req.IsDeleted = true; var res = CMSClient.Send <DelSaleHotStyleSpeciaSubjectResponse>(req); return(res.DoFlag); }
/// <summary> /// 修改楼层配置相关信息排序 /// </summary> /// <param name="id"></param> /// <param name="sort"></param> /// <returns></returns> public bool UpdateDetailSort(int id, int sort) { var req = new UpdateFloorDetailConfigSortRequest(); req.SysNO = id; req.Sequence = sort; var res = CMSClient.Send <UpdateFloorDetailConfigSortResponse>(req); return(res.DoFlag); }
/// <summary> /// 修改公告排序 /// </summary> /// <param name="bulletin"></param> /// <returns></returns> public bool UpdateWebBulletinSort(int id, int sort) { var req = new UpdateWebBulletinSortRequest(); req.IntBulletinID = id; req.IntSort = sort; var res = CMSClient.Send <UpdateWebBulletinSortResponse>(req); return(res.DoFlag); }
/// <summary> /// 修改公告状态 /// </summary> /// <param name="bulletin"></param> /// <returns></returns> public bool UpdateWebBulletinState(int id, byte state) { var req = new UpdateWebBulletinStateRequest(); req.IntBulletinID = id; req.IntIsEnable = state; var res = CMSClient.Send <UpdateWebBulletinStateResponse>(req); return(res.DoFlag); }
/// <summary> /// 根据楼层配置Id查询单条信息 /// </summary> /// <param name="floorConfig"></param> /// <returns></returns> public FloorConfigDetail QueryFloorConfigById(int id) { var result = new FloorConfigDetail(); var req = new QueryFloorConfigByIdRequest(); req.SysNo = id; var res = CMSClient.Send <QueryFloorConfigByIdResponse>(req); result = Mapper.Map <FloorConfigExt, FloorConfigDetail>(res.FloorConfigDos); return(result); }
/// <summary> /// 楼层配置的类型 /// </summary> /// <param name="id"></param> /// <returns></returns> public IEnumerable <FloorItemsConfigDetail> QueryFloorItemsConfig(int id) { var req = new QueryFloorItemsConfigRequest(); req.FloorTypeID = id; var res = CMSClient.Send <QueryFloorItemsConfigResponse>(req); var result = Mapper.MappGereric <FloorItemsConfigExt, FloorItemsConfigDetail>(res.FloorItemsDos); return(result); }
/// <summary> /// 设置活动专题置顶/取消置顶 /// </summary> /// <param name="id"></param> /// <param name="top"></param> /// <param name="startDate"></param> /// <param name="endDate"></param> /// <returns></returns> public bool UpdateIsTop(int id, int top, Nullable <System.DateTime> startDate, Nullable <System.DateTime> endDate) { var req = new UpdateSaleHotStyleSpeciaSubjectTopRequest(); req.Id = id; req.IsTop = (short)top; req.TopBeginTime = startDate; req.TopEndTime = endDate; var res = CMSClient.Send <UpdateSaleHotStyleSpeciaSubjectTopResponse>(req); return(res.DoFlag); }
/// <summary> /// 设置爆品商品置顶信息 /// </summary> /// <param name="id"></param> /// <param name="istop"></param> /// <param name="startDate"></param> /// <param name="endDate"></param> /// <returns></returns> public bool UpdateSaleHotStyleIsTop(int id, short istop, DateTime startDate, DateTime endDate) { var req = new UpdateSaleHotStyleIsTopRequest(); req.Id = id; req.IsTop = istop; req.TopBeginTime = startDate; req.TopEndTime = endDate; var res = CMSClient.Send <UpdateSaleHotStyleIsTopResponse>(req); return(res.DoFlag); }
public static string GetCustomer(string customerId) { var wsHttpBinding = new WSHttpBinding(); wsHttpBinding.Security.Mode = SecurityMode.Transport; wsHttpBinding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Certificate; var client = new CMSClient(wsHttpBinding, new EndpointAddress(Cms.Uri)); var response = client.Customer(customerId); return response; }
/// <summary> /// 根据Id查询单条活动专题信息 /// </summary> /// <param name="id"></param> /// <returns></returns> public SaleHotStyleSpecialSubjectDetail QuertSaleHotStyleSpeciaSubjectById(int id) { var result = new SaleHotStyleSpecialSubjectDetail(); var req = new QuerySaleHotStyleSpeciaSubjectByIdRequest(); req.Id = id; var res = CMSClient.Send <QuerySaleHotStyleSpeciaSubjectByIdResponse>(req); if (res.DoFlag) { result = Mapper.Map <Sale_HotStyle_SpecialSubjectExt, SaleHotStyleSpecialSubjectDetail>(res.HotStyleSpecialDos); } return(result); }
/// <summary> /// 根据Id查询详细信息 /// </summary> /// <param name="id"></param> /// <returns></returns> public WebBulletinDetail QueryWebBulletinById(int id) { var result = new WebBulletinDetail(); var req = new QueryWebBulletinByIdRequest(); req.IntBulletinID = id; var res = CMSClient.Send <QueryWebBulletinByIdResponse>(req); if (res.DoFlag) { result = Mapper.Map <Web_BulletinExt, WebBulletinDetail>(res.BulletinDos); } return(result); }
/// <summary> /// 根据Id查询单条信息 /// </summary> /// <param name="saleHotStyle"></param> /// <returns></returns> public SaleHotStyleDetail QuerySaleHotStyleById(SaleHotStyleDetail saleHotStyle) { var result = new SaleHotStyleDetail(); var req = new QuerySaleHotStyleByIdRequest(); req.ID = saleHotStyle.Id ?? 0; var res = CMSClient.Send <QuerySaleHotStyleByIdResponse>(req); if (res.DoFlag) { result = Mapper.Map <Sale_HotStyleExt, SaleHotStyleDetail>(res.Item); } return(result); }
/// <summary> /// 应用位置列表 /// </summary> /// <returns></returns> public List <SaleHotStyleApplyPlaceDetail> QuerySaleHotStyleApplyPlace() { var result = new List <SaleHotStyleApplyPlaceDetail>(); var req = new QuerySaleHotStyleApplyPlaceRequest(); var res = CMSClient.Send <QuerySaleHotStyleApplyPlaceResponse>(req); if (res.DoFlag) { result = Mapper.MappGereric <Sale_HotStyle_ApplyPlaceExt, SaleHotStyleApplyPlaceDetail>( res.SaleHotStyleApplyDos); } return(result); }