// GET: api/PurchasingPlanQuoteDetail public string Get(int purchasiongPlanID, int vendorID, int PageIndex, int PageSize, string WechatID) { return(JSONHelper.ToJSONString(PagingHelper.GetPagedTable(BL.GetPurchasingPlanVendorQuoteDetail( purchasiongPlanID, vendorID), PageIndex, PageSize))); }
public string Get(int vendorID, string listIntBizTypeID, int PageIndex, int PageSize, string WechatID) { return(JSONHelper.ToJSONString(PagingHelper.GetPagedTable(BL.GetQuoteDetailList4Vendor2Quote( vendorID, DataHelper.GetListInt(listIntBizTypeID)), PageIndex, PageSize))); }
public string Get(int bizTypeID, DateTime?startTime, DateTime?endTime, int PageIndex, int PageSize, string WechatID) { return(JSONHelper.ToJSONString(PagingHelper.GetPagedTable(BL.GetGoodsQuoteDetailVendorPriceRange( bizTypeID, DataHelper.GetDateTime(startTime), DataHelper.GetDateTimeAddOneDay(endTime)), PageIndex, PageSize))); }
public string Get(int PageIndex, int PageSize, int ChargeBackID, int OrderID, int PlanID, string WechatID) { return(JSONHelper.ToJSONString(PagingHelper.GetPagedTable(BL.GetChargeBackDetailList( ChargeBackID, OrderID, PlanID), PageIndex, PageSize))); }
public string Get(int bizTypeId, DateTime?StartTime, DateTime?EndTime, string WechatID) { return(JSONHelper.ToJSONString(PagingHelper.GetPagedTable(BL.GetGoodsClassQuoteCount( bizTypeId, DataHelper.GetDateTime(StartTime), DataHelper.GetDateTimeAddOneDay(EndTime)), 0, 0))); }
public string GetPurchasingOrderList4Vendor(int bizTypeID, DateTime?startTime, DateTime?endTime, int vendorID, int PageIndex, int PageSize, string WechatID) { return(JSONHelper.ToJSONString(PagingHelper.GetPagedTable(BL.GetPurchasingOrderList4Vendor( bizTypeID, DataHelper.GetDateTime(startTime), DataHelper.GetDateTimeAddOneDay(endTime), vendorID), PageIndex, PageSize))); }
public string Get(bool?disable, int PageIndex, int PageSize) { disable = BaseSettings.IsGlobalSelectTableRecordDisableClosed ? disable : //关闭 全局查询状态 (disable == null) ? BaseSettings.DefualtDisableValue : disable; //开启 检查请求是否有该参数 (有则不干预,无则设置为默认值) return(JSONHelper.ToJSONString(PagingHelper.GetPagedTable(BL.GetVendors(disable), PageIndex, PageSize))); }
public string Get(bool?disable, string WechatID) { disable = BaseSettings.IsGlobalSelectTableRecordDisableClosed ? disable : //关闭 全局查询状态 (disable == null) ? BaseSettings.DefualtDisableValue : disable; //开启 检查请求是否有该参数 (有则不干预,无则设置为默认值) return(JSONHelper.ToJSONString(PagingHelper.GetPagedTable(BL.GetDepartments(disable), 0, 0))); }
public string Get(int PageIndex, int PageSize, string WechatID) { if (!string.IsNullOrWhiteSpace(WechatID)) { if (!Common.CheckPermission(WechatID, this.RouteData, null)) { return(BaseSettings.NoPermissionString); } } return(JSONHelper.ToJSONString(PagingHelper.GetPagedTable(BL.GetPurchasingPlanCount4Audit3(), PageIndex, PageSize))); }
public string Get(int purchasingPlanID, int purchasingOrderID) { //if (!string.IsNullOrWhiteSpace(WechatID)) //{ // if (!Common.CheckPermission(WechatID, this.RouteData, null)) // { // return BaseSettings.NoPermissionString; // } //} return(JSONHelper.ToJSONString(PagingHelper.GetPagedTable(BL.GetPAPOAuditList(purchasingPlanID, purchasingOrderID), 0, 0))); }
public string GetDetailByQuoteID(int quoteID, int PageIndex, int PageSize, string WechatID) { if (!string.IsNullOrWhiteSpace(WechatID)) { if (!Common.CheckPermission(WechatID, this.RouteData, null)) { return(BaseSettings.NoPermissionString); } } return(JSONHelper.ToJSONString(PagingHelper.GetPagedTable(BL.GetQuoteDetailListByQuoteID(quoteID), PageIndex, PageSize))); }
public string Get(string listBizTypeIDs, string listGoodsClassIDs, string listGoodsIDs, string listDeparmentIDs, string listVendorIDs, string listPOStateIDs, DateTime?startTime, DateTime?endTime, string WechatID) { return(JSONHelper.ToJSONString(PagingHelper.GetPagedTable(BL.GetStockByDept( DataHelper.GetListInt(listBizTypeIDs), DataHelper.GetListInt(listGoodsClassIDs), DataHelper.GetListInt(listGoodsIDs), DataHelper.GetListInt(listDeparmentIDs), DataHelper.GetListInt(listVendorIDs), DataHelper.GetListInt(listPOStateIDs), DataHelper.GetDateTime(startTime), DataHelper.GetDateTimeAddOneDay(endTime)), 0, 0))); }
public string Get(string listVendorIDs, string listBizTypeIDs, string listGoodsClassIDs, string listGoodsIDs, string listPOStateIDs, DateTime?startTime, DateTime?endTime, string WechatID) { if (string.IsNullOrWhiteSpace(listPOStateIDs)) { listPOStateIDs = BaseSettings.listDefualtPOStateIDs; } return(JSONHelper.ToJSONString(PagingHelper.GetPagedTable(BL.GetPurchasingOrderVendorSubtotal( DataHelper.GetListInt(listVendorIDs), DataHelper.GetListInt(listBizTypeIDs), DataHelper.GetListInt(listGoodsClassIDs), DataHelper.GetListInt(listGoodsIDs), DataHelper.GetListInt(listPOStateIDs), DataHelper.GetDateTime(startTime), DataHelper.GetDateTimeAddOneDay(endTime)), 0, 0))); }
public string Get(int PageIndex, int PageSize, DateTime?startTime, DateTime?endTime, string listStateIds, string listBizTypeIDs, string listDepartmentIDs, string listVendorIDs, string WechatID, string listQueryTypes) { if (!string.IsNullOrWhiteSpace(listStateIds)) { //前端参数传错了 特殊处理 if (listStateIds == "11,12,13,14,15") { listStateIds = "7,8,9,10"; } else if (listStateIds == "11") { listStateIds = "7"; } else if (listStateIds == "16") { listStateIds = "11"; } } List <int> listIntChargeBackStateIDs = DataHelper.GetListInt(listStateIds); if (!string.IsNullOrWhiteSpace(listQueryTypes)) { List <int> listIntQueryTypes = DataHelper.GetListInt(listQueryTypes); foreach (int item in listIntQueryTypes) { switch (item) { case (int)BaseSettings.QuoteQueryType.Commit: listIntChargeBackStateIDs.Add((int)BaseSettings.QuoteState.QuoteAwaitAudit1); break; case (int)BaseSettings.QuoteQueryType.Audit1: listIntChargeBackStateIDs.Add((int)BaseSettings.QuoteState.QuoteAudit1Pass); break; case (int)BaseSettings.QuoteQueryType.Audit2: listIntChargeBackStateIDs.Add((int)BaseSettings.QuoteState.QuoteAudit2Pass); break; } } } return(JSONHelper.ToJSONString(PagingHelper.GetPagedTable(BL.GetChargeBackList( DataHelper.GetListInt(listStateIds), DataHelper.GetListInt(listBizTypeIDs), DataHelper.GetListInt(listDepartmentIDs), DataHelper.GetListInt(listVendorIDs), DataHelper.GetDateTime(startTime), DataHelper.GetDateTimeAddOneDay(endTime)), PageIndex, PageSize))); }
public string Get(string listBizTypeIDs, string listGoodsClassIDs, string listGoodsIDs, string listDeparmentIDs, string listVendorIDs, string listPOStateIDs, DateTime?startTime, DateTime?endTime, int PageIndex, int PageSize, string WechatID) { if (string.IsNullOrWhiteSpace(listPOStateIDs)) { listPOStateIDs = BaseSettings.listDefualtPOStateIDs; } return(JSONHelper.ToJSONString(PagingHelper.GetPagedTable(BL.GetStock( DataHelper.GetListInt(listBizTypeIDs), DataHelper.GetListInt(listGoodsClassIDs), DataHelper.GetListInt(listGoodsIDs), DataHelper.GetListInt(listDeparmentIDs), DataHelper.GetListInt(listVendorIDs), DataHelper.GetListInt(listPOStateIDs), DataHelper.GetDateTime(startTime), DataHelper.GetDateTimeAddOneDay(endTime)), PageIndex, PageSize))); }
public string Get(bool?disable, DateTime?startTime, DateTime?endTime, string listQuoteStateIDs, int PageIndex, int PageSize, string WechatID, string listQueryTypes) { ////DateTime endTime = DateTime.Now; ////DateTime startTime = endTime.AddMonths(-3); ////disable = BaseSettines.IsGlobalSelectTableRecordDisableClosed ? //// disable : //关闭 全局查询状态 //// (disable == null) ? BaseSettines.DefualtDisableValue : disable;//开启 检查请求是否有该参数 (有则不干预,无则设置为默认值) /// if (!string.IsNullOrWhiteSpace(WechatID)) { if (!Common.CheckPermission(WechatID, this.RouteData, listQuoteStateIDs)) { return(BaseSettings.NoPermissionString); } } List <int> listIntQuoteStateIDs = DataHelper.GetListInt(listQuoteStateIDs); if (!string.IsNullOrWhiteSpace(listQueryTypes)) { List <int> listIntQueryTypes = DataHelper.GetListInt(listQueryTypes); foreach (int item in listIntQueryTypes) { switch (item) { case (int)BaseSettings.QuoteQueryType.Commit: listIntQuoteStateIDs.Add((int)BaseSettings.QuoteState.QuoteAwaitAudit1); break; case (int)BaseSettings.QuoteQueryType.Audit1: listIntQuoteStateIDs.Add((int)BaseSettings.QuoteState.QuoteAudit1Pass); break; case (int)BaseSettings.QuoteQueryType.Audit2: listIntQuoteStateIDs.Add((int)BaseSettings.QuoteState.QuoteAudit2Pass); break; } } } return(JSONHelper.ToJSONString(PagingHelper.GetPagedTable(BL.GetQuoteListAll( disable, //DataHelper.GetListInt(listQuoteStateIDs), listIntQuoteStateIDs, DataHelper.GetDateTime(startTime), DataHelper.GetDateTimeAddOneDay(endTime)), PageIndex, PageSize))); }
public string Get(int purchasingPlanID, int goodsClassID, string listIntGoodsIds, int PageIndex, int PageSize, string WechatID) { string result = null; if (goodsClassID == 0) { //按采购计划1对1选中 供应商列表 result = JSONHelper.ToJSONString(PagingHelper.GetPagedTable(BL.GetPurchasingPlanVendorQuetoSUM( purchasingPlanID, DataHelper.GetListInt(listIntGoodsIds)), PageIndex, PageSize)); } else { //按商品分类选中 供应商列表 result = JSONHelper.ToJSONString(PagingHelper.GetPagedTable(BL.GetPurchasingPlanGoodsClassVendorQuetoSUM( purchasingPlanID, goodsClassID, DataHelper.GetListInt(listIntGoodsIds)), PageIndex, PageSize)); } return(result); }
public string Get(int departmentID, string WechatID) { return(JSONHelper.ToJSONString(PagingHelper.GetPagedTable(BL.GetPurchasingPlanCount4Dept(departmentID), 0, 0))); }
public string Get(int purchasingOrderID, int PageIndex, int PageSize, string WechatID) { return(JSONHelper.ToJSONString(PagingHelper.GetPagedTable(BL.GetPurchasingOrderDetailList4Vendor(purchasingOrderID), PageIndex, PageSize))); }
public string Get(int departmentID, int PageIndex, int PageSize, string WechatID) { return(JSONHelper.ToJSONString(PagingHelper.GetPagedTable(BL.GetPurchasingOrderList4Dept(departmentID), PageIndex, PageSize))); }
public string Get(int purchasingPlanId, int PageIndex, int PageSize, string WechatID) { return(JSONHelper.ToJSONString(PagingHelper.GetPagedTable(BL.GetPurchasingPlanDetailList(purchasingPlanId), PageIndex, PageSize))); }
public string Get(int PurchasingPalnID, string WechatID) { return(JSONHelper.ToJSONString(PagingHelper.GetPagedTable(BL.GetPurchasingPlanGoodsClassListWithVendor(PurchasingPalnID), 0, 0))); }
// GET: api/PurchasingOrderDetailList4Dept public string Get(int orderID, string WechatID) { return(JSONHelper.ToJSONString(PagingHelper.GetPagedTable(BL.GetPurchasingOrderDetailList4Dept(orderID), 0, 0))); }
public string Get(string WechatID) { return(JSONHelper.ToJSONString(PagingHelper.GetPagedTable(BL.GetPurchasingPlanCount4All(), 0, 0))); }