public static List<GoodsDoc> GetGoodsDocByOrderID(string orderid,string taskid, EnumDocType type, string clientid) { DataSet ds = StockDAL.BaseProvider.GetGoodsDocByOrderID(orderid,taskid, (int)type, clientid); List<GoodsDoc> list = new List<GoodsDoc>(); foreach (DataRow dr in ds.Tables["Doc"].Rows) { GoodsDoc model = new GoodsDoc(); model.FillData(dr); if (!string.IsNullOrEmpty(model.ExpressID)) { model.Express = ExpressCompanyBusiness.GetExpressCompanyDetail(model.ExpressID); } model.CreateUser = OrganizationBusiness.GetUserByUserID(model.CreateUserID, clientid); model.StatusStr = GetDocStatusStr(model.DocType, model.Status); model.Details = new List<GoodsDocDetail>(); if (ds.Tables.Contains("Details")) { foreach (DataRow detail in ds.Tables["Details"].Select("DocID='" + model.DocID + "'")) { GoodsDocDetail goodsDetailModel = new GoodsDocDetail(); goodsDetailModel.FillData(detail); model.Details.Add(goodsDetailModel); } } list.Add(model); } return list; }
public static List <StorageDoc> GetStorageDocList(string userid, EnumDocType type, EnumDocStatus status, string keywords, string begintime, string endtime, string wareid, string providerid, int pageSize, int pageIndex, ref int totalCount, ref int pageCount, string clientID) { DataSet ds = StockDAL.GetStorageDocList(userid, (int)type, (int)status, keywords, begintime, endtime, wareid, providerid, pageSize, pageIndex, ref totalCount, ref pageCount, clientID); List <StorageDoc> list = new List <StorageDoc>(); foreach (DataRow dr in ds.Tables[0].Rows) { StorageDoc model = new StorageDoc(); model.FillData(dr); model.UserName = OrganizationBusiness.GetUserByUserID(model.CreateUserID, clientID).Name; model.StatusStr = GetDocStatusStr(model.DocType, model.Status); model.Details = new List <StorageDetail>(); if (ds.Tables.Contains("Details")) { foreach (DataRow detail in ds.Tables["Details"].Select("DocID='" + model.DocID + "'")) { StorageDetail dModel = new StorageDetail(); dModel.FillData(detail); if ((int)type == 3 || (int)type == 4) { if (!string.IsNullOrEmpty(dModel.DepotID) && !string.IsNullOrEmpty(dModel.WareID)) { dModel.DepotCode = SystemBusiness.BaseBusiness.GetDepotByID(dModel.DepotID, dModel.WareID, clientID).DepotCode; } } model.Details.Add(dModel); } } list.Add(model); } return(list); }
public static List<StorageDoc> GetStorageDocList(string userid, EnumDocType type, EnumDocStatus status, string keywords, string begintime, string endtime, string wareid, string providerid, int pageSize, int pageIndex, ref int totalCount, ref int pageCount, string clientID) { DataSet ds = StockDAL.GetStorageDocList(userid, (int)type, (int)status, keywords, begintime, endtime, wareid, providerid, pageSize, pageIndex, ref totalCount, ref pageCount, clientID); List<StorageDoc> list = new List<StorageDoc>(); foreach (DataRow dr in ds.Tables[0].Rows) { StorageDoc model = new StorageDoc(); model.FillData(dr); model.StatusStr = GetDocStatusStr(model.DocType, model.Status); model.Details = new List<StorageDetail>(); if (ds.Tables.Contains("Details")) { foreach (DataRow detail in ds.Tables["Details"].Select("DocID='" + model.DocID + "'")) { StorageDetail dModel = new StorageDetail(); dModel.FillData(detail); model.Details.Add(dModel); } } list.Add(model); } return list; }
public static bool AddShoppingCartBatchIn(string productid, string detailsid, decimal quantity, EnumDocType ordertype, string remark, string guid, string userid, string operateip) { if (string.IsNullOrEmpty(guid)) { guid = userid; } return ShoppingCartDAL.AddShoppingCartBatchIn(productid, detailsid, quantity, (int)ordertype, remark, guid, userid, operateip); }
/// <summary> /// 加入购物车 /// </summary> /// <returns></returns> public static bool AddShoppingCart(EnumDocType ordertype, string productid, string detailsid, decimal quantity, string unitid, string depotid, string taskid, string remark, string guid, string orderAttrID, string userid, string operateip) { if (string.IsNullOrEmpty(guid)) { guid = userid; } return(ShoppingCartDAL.AddShoppingCart((int)ordertype, productid, detailsid, quantity, unitid, depotid, taskid, remark, guid, orderAttrID, userid, operateip)); }
public JsonResult AddShoppingCart(EnumDocType ordertype, string productid, string detailsid, int quantity, string unitid, string name, string remark = "", string guid = "") { var bl = ShoppingCartBusiness.AddShoppingCart(ordertype, guid, productid, detailsid, name, unitid, quantity, remark, CurrentUser.UserID, OperateIP, CurrentUser.AgentID, CurrentUser.ClientID); JsonDictionary.Add("Status", bl); return new JsonResult { Data = JsonDictionary, JsonRequestBehavior = JsonRequestBehavior.AllowGet }; }
/// <summary> /// 获取购物车产品数 /// </summary> /// <param name="ordertype"></param> /// <returns></returns> public JsonResult GetShoppingCartCount(EnumDocType ordertype) { var count = OrdersBusiness.GetShoppingCartCount(ordertype, CurrentUser.UserID); JsonDictionary.Add("Quantity", count); return new JsonResult { Data = JsonDictionary, JsonRequestBehavior = JsonRequestBehavior.AllowGet }; }
/// <summary> /// 加入到购物车 /// </summary> /// <param name="productid"></param> /// <param name="detailsid"></param> /// <param name="quantity"></param> /// <param name="ordertype"></param> /// <returns></returns> public JsonResult AddShoppingCart(string productid, string detailsid, decimal quantity, string unitid, int isBigUnit, EnumDocType ordertype, string remark = "", string guid = "") { var bl = ShoppingCartBusiness.AddShoppingCart(productid, detailsid, quantity, unitid, isBigUnit, ordertype, remark, guid, CurrentUser.UserID, OperateIP); JsonDictionary.Add("Status", bl); return new JsonResult { Data = JsonDictionary, JsonRequestBehavior = JsonRequestBehavior.AllowGet }; }
/// <summary> /// 获取购物车产品 /// </summary> /// <param name="ordertype"></param> /// <returns></returns> public JsonResult GetShoppingCart(EnumDocType ordertype) { var list = OrdersBusiness.GetShoppingCart(ordertype, CurrentUser.UserID); JsonDictionary.Add("Items", list); return(new JsonResult { Data = JsonDictionary, JsonRequestBehavior = JsonRequestBehavior.AllowGet }); }
/// <summary> /// 获取购物车列表 /// </summary> public static List<ProductDetail> GetShoppingCart(EnumDocType ordertype, string guid) { DataTable dt = ShoppingCartDAL.GetShoppingCart((int)ordertype, guid); List<ProductDetail> list = new List<ProductDetail>(); foreach (DataRow dr in dt.Rows) { ProductDetail model = new ProductDetail(); model.FillData(dr); list.Add(model); } return list; }
public static int GetShoppingCartCount(EnumDocType ordertype, string guid) { if (ordertype == EnumDocType.Order) { object obj = CommonBusiness.Select("OrderDetail", "count(0)", "[OrderID]='" + guid + "'"); return Convert.ToInt32(obj); } else { object obj = CommonBusiness.Select("ShoppingCart", "count(0)", "ordertype=" + (int)ordertype + " and [GUID]='" + guid + "'"); return Convert.ToInt32(obj); } }
public static int GetShoppingCartCount(EnumDocType ordertype, string guid) { if (ordertype == EnumDocType.Order) { object obj = CommonBusiness.Select("OrderDetail", "count(0)", "[OrderID]='" + guid + "'"); return(Convert.ToInt32(obj)); } else { object obj = CommonBusiness.Select("ShoppingCart", "count(0)", "ordertype=" + (int)ordertype + " and [GUID]='" + guid + "'"); return(Convert.ToInt32(obj)); } }
/// <summary> /// 获取购物车列表 /// </summary> public static List <ProductDetail> GetShoppingCart(EnumDocType ordertype, string guid, string userid) { DataTable dt = ShoppingCartDAL.GetShoppingCart((int)ordertype, guid, userid); List <ProductDetail> list = new List <ProductDetail>(); foreach (DataRow dr in dt.Rows) { ProductDetail model = new ProductDetail(); model.FillData(dr); list.Add(model); } return(list); }
/// <summary> /// 获取购物车产品数 /// </summary> /// <param name="ordertype"></param> /// <returns></returns> public JsonResult GetShoppingCartCount(EnumDocType ordertype, string guid = "") { if (string.IsNullOrEmpty(guid)) { guid = CurrentUser.UserID; } var count = ShoppingCartBusiness.GetShoppingCartCount(ordertype, guid); JsonDictionary.Add("Quantity", count); return(new JsonResult { Data = JsonDictionary, JsonRequestBehavior = JsonRequestBehavior.AllowGet }); }
/// <summary> /// 获取购物车产品 /// </summary> /// <param name="ordertype"></param> /// <returns></returns> public JsonResult GetShoppingCart(EnumDocType ordertype, string guid = "") { if (string.IsNullOrEmpty(guid)) { guid = CurrentUser.UserID; } var list = ShoppingCartBusiness.GetShoppingCart(ordertype, guid); JsonDictionary.Add("Items", list); return new JsonResult { Data = JsonDictionary, JsonRequestBehavior = JsonRequestBehavior.AllowGet }; }
/// <summary> /// 获取购物车列表 /// </summary> public static List<ProductDetail> GetShoppingCart(EnumDocType ordertype, string guid, string userid) { DataTable dt = ShoppingCartDAL.GetShoppingCart((int)ordertype, guid, userid); List<ProductDetail> list = new List<ProductDetail>(); foreach (DataRow dr in dt.Rows) { ProductDetail model = new ProductDetail(); model.FillData(dr); if (!string.IsNullOrEmpty(model.UnitID)) { model.UnitName = new ProductsBusiness().GetUnitByID(model.UnitID).UnitName; } list.Add(model); } return list; }
/// <summary> /// 加入到购物车 /// </summary> /// <param name="productid"></param> /// <param name="detailsid"></param> /// <param name="quantity"></param> /// <param name="ordertype"></param> /// <returns></returns> public JsonResult AddShoppingCart(EnumDocType ordertype, string productid, string detailsid, decimal quantity, string unitid, string depotid, string taskid, string remark = "", string guid = "", string attrid = "") { if (string.IsNullOrEmpty(guid)) { guid = CurrentUser.UserID; } var bl = ShoppingCartBusiness.AddShoppingCart(ordertype, productid, detailsid, quantity, unitid, depotid, taskid, remark, guid, attrid, CurrentUser.UserID, OperateIP); JsonDictionary.Add("Status", bl); return(new JsonResult { Data = JsonDictionary, JsonRequestBehavior = JsonRequestBehavior.AllowGet }); }
/// <summary> /// 获取单据列表 /// </summary> /// <param name="userid">创建人(拥有者)</param> /// <param name="type">类型</param> /// <param name="status">状态</param> /// <param name="keywords">关键词</param> /// <param name="pageSize">页Size</param> /// <param name="pageIndex">页码</param> /// <param name="totalCount">总数</param> /// <param name="pageCount"><总页/param> /// <param name="clientID">客户端ID</param> /// <returns></returns> public static List <StorageDoc> GetStorageDocList(string userid, EnumDocType type, EnumDocStatus status, string keywords, int pageSize, int pageIndex, ref int totalCount, ref int pageCount, string clientID) { DataSet ds = OrdersDAL.GetStorageDocList(userid, (int)type, (int)status, keywords, pageSize, pageIndex, ref totalCount, ref pageCount, clientID); List <StorageDoc> list = new List <StorageDoc>(); foreach (DataRow dr in ds.Tables[0].Rows) { StorageDoc model = new StorageDoc(); model.FillData(dr); model.CreateUser = OrganizationBusiness.GetUserByUserID(model.CreateUserID, clientID); model.StatusStr = GetDocStatusStr(model.DocType, model.Status); list.Add(model); } return(list); }
public static List<StorageDoc> GetStorageDocList(string userid, EnumDocType type, EnumDocStatus status, string keywords, string begintime, string endtime, string wareid, string providerid, int pageSize, int pageIndex, ref int totalCount, ref int pageCount, string agentid, string clientid) { DataSet ds = StockDAL.GetStorageDocList(userid, (int)type, (int)status, keywords, begintime, endtime, wareid, providerid, pageSize, pageIndex, ref totalCount, ref pageCount, clientid); List<StorageDoc> list = new List<StorageDoc>(); foreach (DataRow dr in ds.Tables[0].Rows) { StorageDoc model = new StorageDoc(); model.FillData(dr); model.CreateUser = OrganizationBusiness.GetUserByUserID(model.CreateUserID, agentid); model.StatusStr = GetDocStatusStr(model.DocType, model.Status); model.WareHouse = SystemBusiness.BaseBusiness.GetWareByID(model.WareID, model.ClientID); list.Add(model); } return list; }
/// <summary> /// 获取购物车列表 /// </summary> public static List <ProductDetail> GetShoppingCart(EnumDocType ordertype, string guid, string userid) { DataTable dt = ShoppingCartDAL.GetShoppingCart((int)ordertype, guid, userid); List <ProductDetail> list = new List <ProductDetail>(); foreach (DataRow dr in dt.Rows) { ProductDetail model = new ProductDetail(); model.FillData(dr); if (!string.IsNullOrEmpty(model.UnitID)) { model.UnitName = new ProductsBusiness().GetUnitByID(model.UnitID).UnitName; } list.Add(model); } return(list); }
public static bool AddShoppingCart(EnumDocType ordertype, string guid, string productid, string detailsid, string name, string unitid, int quantity, string remark, string userid, string operateip, string agentid, string clientid) { if (string.IsNullOrEmpty(guid)) { guid = userid; } bool bl = ShoppingCartDAL.AddShoppingCart((int)ordertype, guid, productid, detailsid, quantity, remark, userid, operateip); if (bl) { string msg = "添加产品:" + name + " " + remark + " " + quantity + ProductsBusiness.BaseBusiness.GetUnitByID(unitid, clientid).UnitName; if (ordertype == EnumDocType.Opportunity) { LogBusiness.AddLog(guid, EnumLogObjectType.Opportunity, msg, userid, operateip, userid, agentid, clientid); } else if (ordertype == EnumDocType.Order) { LogBusiness.AddLog(guid, EnumLogObjectType.Orders, msg, userid, operateip, userid, agentid, clientid); } } return bl; }
public static List <StorageDoc> GetStorageDocList(string userid, EnumDocType type, EnumDocStatus status, string keywords, string begintime, string endtime, string wareid, string providerid, int pageSize, int pageIndex, ref int totalCount, ref int pageCount, string clientID) { DataSet ds = StockDAL.GetStorageDocList(userid, (int)type, (int)status, keywords, begintime, endtime, wareid, providerid, pageSize, pageIndex, ref totalCount, ref pageCount, clientID); List <StorageDoc> list = new List <StorageDoc>(); foreach (DataRow dr in ds.Tables[0].Rows) { StorageDoc model = new StorageDoc(); model.FillData(dr); model.CreateUser = OrganizationBusiness.GetUserByUserID(model.CreateUserID, clientID); model.StatusStr = GetDocStatusStr(model.DocType, model.Status); model.WareHouse = SystemBusiness.BaseBusiness.GetWareByID(model.WareID, model.ClientID); if (!string.IsNullOrEmpty(model.ProviderID)) { model.ProviderName = BaseBusiness.GetProviderByID(model.ProviderID).Name; } list.Add(model); } return(list); }
public static List <GoodsDoc> GetGoodsDocByOrderID(string orderid, string taskid, EnumDocType type, string clientid) { DataSet ds = StockDAL.BaseProvider.GetGoodsDocByOrderID(orderid, taskid, (int)type, clientid); List <GoodsDoc> list = new List <GoodsDoc>(); foreach (DataRow dr in ds.Tables["Doc"].Rows) { GoodsDoc model = new GoodsDoc(); model.FillData(dr); if (!string.IsNullOrEmpty(model.ExpressID)) { model.Express = ExpressCompanyBusiness.GetExpressCompanyDetail(model.ExpressID); } model.CreateUser = OrganizationBusiness.GetUserCacheByUserID(model.CreateUserID, clientid); if (!string.IsNullOrEmpty(model.OwnerID)) { model.Owner = OrganizationBusiness.GetUserCacheByUserID(model.OwnerID, clientid); } model.Details = new List <GoodsDocDetail>(); if (ds.Tables.Contains("Details")) { foreach (DataRow detail in ds.Tables["Details"].Select("DocID='" + model.DocID + "'")) { GoodsDocDetail goodsDetailModel = new GoodsDocDetail(); goodsDetailModel.FillData(detail); model.Details.Add(goodsDetailModel); } } list.Add(model); } return(list); }
/// <summary> /// 设置协同范围 /// </summary> /// <param name="docId">文件或文件夹ID</param> /// <param name="type">文件类型:1文件 2文件夹</param> /// <param name="departList">新的部门范围列表</param> /// <param name="profileList">新的个人范围列表</param> /// <returns></returns> public TheResult <string> setShareRange(string docId, EnumDocType type, StatusList Model) { return(WebApiUtil.PostAPI <TheResult <string> >( $"api/docV1/setShareRange?Token={Token}&docId={docId}&type={type}", Model)); }
public static bool DeleteCart(EnumDocType ordertype, string guid, string productid, string name, string userid, string ip, string agentid, string clientid) { bool bl = ShoppingCartDAL.DeleteCart(guid, productid, (int)ordertype, userid); if (bl) { string msg = "移除产品:" + name; if (ordertype == EnumDocType.Opportunity) { LogBusiness.AddLog(guid, EnumLogObjectType.Opportunity, msg, userid, ip, userid, agentid, clientid); } else if (ordertype == EnumDocType.Order) { LogBusiness.AddLog(guid, EnumLogObjectType.Orders, msg, userid, ip, userid, agentid, clientid); } } return bl; }
public static bool AddShoppingCartBatchIn(string productid, string detailsid, int quantity, EnumDocType ordertype, string remark, string guid, string userid, string operateip) { if (string.IsNullOrEmpty(guid)) { guid = userid; } return(ShoppingCartDAL.AddShoppingCartBatchIn(productid, detailsid, quantity, (int)ordertype, remark, guid, userid, operateip)); }
public TheResult <string> SetNewStatus(string docId, EnumDocType type, EnumDocStatusType newStatus) { return(WebApiUtil.GetAPI <TheResult <string> >( $"api/docV1/setDocStatus?Token={Token}&docId={docId}&type={type}&newStatus={newStatus}")); }
/// <summary> /// 加入到购物车 /// </summary> /// <param name="productid"></param> /// <param name="detailsid"></param> /// <param name="quantity"></param> /// <param name="ordertype"></param> /// <returns></returns> public JsonResult AddShoppingCart(string productid, string detailsid, int quantity, string unitid, int isBigUnit, EnumDocType ordertype, string remark) { var bl = OrdersBusiness.AddShoppingCart(productid, detailsid, quantity, unitid, isBigUnit, ordertype, remark, CurrentUser.UserID, OperateIP); JsonDictionary.Add("Status", bl); return(new JsonResult { Data = JsonDictionary, JsonRequestBehavior = JsonRequestBehavior.AllowGet }); }
/// <summary> /// 检测重名 /// </summary> /// <param name="catalogId">父级文件夹ID</param> /// <param name="name">文件或文件夹名(喊后缀)</param> /// <param name="type">文件类型:1文件 2文件夹</param> /// <returns></returns> public TheResult <string> HasSameName(string catalogId, string name, EnumDocType type, string FilePath = "") { return(WebApiUtil.GetAPI <TheResult <string> >( $"api/docV1/hasSame?Token={Token}&catalogId={catalogId}&name={name}&type={type}&FilePath={FilePath}")); }
/// <summary> /// 源文档共享协作范围是否超过目标文件夹(用于共享文件移动前检验) /// </summary> /// <param name="sourceId">源文档ID</param> /// <param name="targetCatalogId">目标文件夹ID</param> /// <param name="type">源文档类型</param> /// <returns></returns> public TheResult <bool> IsOverRange(string sourceId, string targetCatalogId, EnumDocType type) { return(WebApiUtil.GetAPI <TheResult <bool> >($"api/docV1/IsOverRange?Token={Token}&sourceId={sourceId}&targetCatalogId={targetCatalogId}&type={type}")); }
/// <summary> /// 获取单据列表 /// </summary> /// <param name="userid">创建人(拥有者)</param> /// <param name="type">类型</param> /// <param name="status">状态</param> /// <param name="keywords">关键词</param> /// <param name="pageSize">页Size</param> /// <param name="pageIndex">页码</param> /// <param name="totalCount">总数</param> /// <param name="pageCount"><总页/param> /// <param name="clientID">客户端ID</param> /// <returns></returns> public static List<StorageDoc> GetStorageDocList(string userid, EnumDocType type, EnumDocStatus status, string keywords, int pageSize, int pageIndex, ref int totalCount, ref int pageCount, string clientID) { DataSet ds = OrdersDAL.GetStorageDocList(userid, (int)type, (int)status, keywords, pageSize, pageIndex, ref totalCount, ref pageCount, clientID); List<StorageDoc> list = new List<StorageDoc>(); foreach (DataRow dr in ds.Tables[0].Rows) { StorageDoc model = new StorageDoc(); model.FillData(dr); model.CreateUser = OrganizationBusiness.GetUserByUserID(model.CreateUserID, clientID); model.StatusStr = GetDocStatusStr(model.DocType, model.Status); list.Add(model); } return list; }
/// <summary> /// /// </summary> /// <param name="ordertype">订单类型</param> /// <param name="userid">操作员</param> /// <returns></returns> public static int GetShoppingCartCount(EnumDocType ordertype, string userid) { object obj = CommonBusiness.Select("ShoppingCart", "count(0)", "ordertype=" + (int)ordertype + " and UserID='" + userid + "'"); return Convert.ToInt32(obj); }
/// <summary> /// /// </summary> /// <param name="ordertype">订单类型</param> /// <param name="userid">操作员</param> /// <returns></returns> public static int GetShoppingCartCount(EnumDocType ordertype, string userid) { object obj = CommonBusiness.Select("ShoppingCart", "count(0)", "ordertype=" + (int)ordertype + " and UserID='" + userid + "'"); return(Convert.ToInt32(obj)); }
/// <summary> /// 移动文件或文件夹 /// </summary> /// <param name="sourceId">被移动的文件或文件夹ID</param> /// <param name="sourceName">被移动的文件或文件夹名(带后缀)</param> /// <param name="targetCatalogId">目标文件夹ID</param> /// <param name="type">被移动的文件类型:1文件 2文件夹</param> /// <param name="isCover">是否覆盖(覆盖时,同命文件不会失败,直接覆盖)</param> /// <returns></returns> public TheResult <string> MoveDoc(string sourceId, string sourceName, string targetCatalogId, EnumDocType type, bool isCover, bool isClearRange) { return(WebApiUtil.GetAPI <TheResult <string> >( $"api/docV1/moveDoc?Token={Token}&sourceId={sourceId}&sourceName={sourceName}&targetCatalogId={targetCatalogId}&type={type}&isCover={isCover}&isClearRange={isClearRange}")); }
/// <summary> /// 加入购物车 /// </summary> /// <param name="productid">产品ID</param> /// <param name="detailsid">产品详情ID</param> /// <param name="quantity">数量</param> /// <param name="unitid">单位</param> /// <param name="isBigUnit">是否大单位</param> /// <param name="ordertype">订单类型</param> /// <param name="remark">备注</param> /// <param name="userid">操作员</param> /// <param name="operateip">操作IP</param> /// <returns></returns> public static bool AddShoppingCart(string productid, string detailsid, int quantity, string unitid, int isBigUnit, EnumDocType ordertype, string remark, string userid, string operateip) { return OrdersDAL.AddShoppingCart(productid, detailsid, quantity, unitid, isBigUnit, (int)ordertype, remark, userid, operateip); }
/// <summary> /// 加入购物车 /// </summary> /// <param name="productid">产品ID</param> /// <param name="detailsid">产品详情ID</param> /// <param name="quantity">数量</param> /// <param name="unitid">单位</param> /// <param name="isBigUnit">是否大单位</param> /// <param name="ordertype">订单类型</param> /// <param name="remark">备注</param> /// <param name="userid">操作员</param> /// <param name="operateip">操作IP</param> /// <returns></returns> public static bool AddShoppingCart(string productid, string detailsid, int quantity, string unitid, int isBigUnit, EnumDocType ordertype, string remark, string userid, string operateip) { return(OrdersDAL.AddShoppingCart(productid, detailsid, quantity, unitid, isBigUnit, (int)ordertype, remark, userid, operateip)); }
public JsonResult DeleteCart(EnumDocType ordertype, string guid, string productid, string name) { var bl = ShoppingCartBusiness.DeleteCart(ordertype, guid, productid, name, CurrentUser.UserID, OperateIP, CurrentUser.AgentID, CurrentUser.ClientID); JsonDictionary.Add("status", bl); return new JsonResult { Data = JsonDictionary, JsonRequestBehavior = JsonRequestBehavior.AllowGet }; }