public ActionResult Barter(Int64?detail_id, Int64?work_id, string sku, Int64?id) { OrderQuery_ShopResult com = new OrderQuery_ShopResult(); try { if (detail_id == 0 || work_id == 0 || id == 0) { com.Msg = "参数错误!"; com.success = false; return(Json(com)); } if (string.IsNullOrWhiteSpace(sku)) { com.Msg = "请输入sku!"; com.success = false; return(Json(com)); } com = _service.Barter(detail_id, work_id, sku, id); return(Json(com)); } catch (Exception ex) { com.Msg = ex.ToString(); com.success = false; return(Json(com)); } }
public ActionResult Save(List <busi_sendorder> lists) { OrderQuery_ShopResult com = new OrderQuery_ShopResult(); try { com.success = true; com = _service.Save(lists); return(Json(com)); } catch (Exception ex) { com.Msg = ex.ToString(); com.success = false; return(Json(com)); } }
public ActionResult GetpageE(Int64?custorder_id) { OrderQuery_ShopResult com = new OrderQuery_ShopResult(); string exmsg = string.Empty; List <OrderQuery_ShopModelE> mylist = _service.GetOrderQuery_ShopEList(out exmsg, custorder_id.Value); if (!string.IsNullOrEmpty(exmsg)) { com.Msg = exmsg; com.success = false; return(Json(com)); } else { OrderQuery_ShopViewModelE mylistview = new OrderQuery_ShopViewModelE(); mylistview.supplist = mylist; com.DataResult = mylistview; com.success = true; return(Json(com)); } }
public ActionResult Getpage(string pagenum, string onepagecount, Int64?shop_id, DateTime?create_time, string order_code, string custorder_code, string emp_name, int?state, int?day, int?usedepot, int?orderstate) { OrderQuery_ShopResult com = new OrderQuery_ShopResult(); if (!Regex.IsMatch(pagenum, @"(?i)^[0-9a-z\u4e00-\u9fa5]+$") && !string.IsNullOrEmpty(pagenum)) { com.Msg = "页数不正确"; com.success = false; return(Json(com)); } if (!Regex.IsMatch(onepagecount, @"(?i)^[0-9a-z\u4e00-\u9fa5]+$") && !string.IsNullOrEmpty(onepagecount)) { com.Msg = "每页数量不正确"; com.success = false; return(Json(com)); } int totil = 0; int totilpage = 0; string exmsg = string.Empty; List <OrderQuery_ShopModel> mylist = _service.GetOrderQuery_ShopList(Convert.ToInt32(pagenum), Convert.ToInt32(onepagecount), out totil, out totilpage, out exmsg, shop_id, create_time, order_code, custorder_code, emp_name, state, day, usedepot, orderstate); if (!string.IsNullOrEmpty(exmsg)) { com.Msg = exmsg; com.success = false; return(Json(com)); } else { OrderQuery_ShopViewModel mylistview = new OrderQuery_ShopViewModel(); mylistview.supplist = mylist; mylistview.totil = totil.ToString(); mylistview.totilcount = totilpage.ToString(); com.DataResult = mylistview; com.success = true; return(Json(com)); } }
public ActionResult Delpackge(string packgecode) { OrderQuery_ShopResult com = new OrderQuery_ShopResult(); try { if (string.IsNullOrEmpty(packgecode)) { com.Msg = "参数错误!"; com.success = false; return(Json(com)); } com = _service.Delpackge(packgecode); return(Json(com)); } catch (Exception ex) { com.Msg = ex.ToString(); com.success = false; return(Json(com)); } }
public ActionResult Del(Int64?detail_id, Int64?work_id, Int64?id) { OrderQuery_ShopResult com = new OrderQuery_ShopResult(); try { if (detail_id == 0 || work_id == 0 || id == 0) { com.Msg = "参数错误!"; com.success = false; return(Json(com)); } com = _service.Del(detail_id, work_id, id); return(Json(com)); } catch (Exception ex) { com.Msg = ex.ToString(); com.success = false; return(Json(com)); } }