public JsonResult Shengdan(string ID) { try { if (currentUser == null) { return(Json(new { state = false, obj = "Cookie失效,重新登陆!" }, JsonRequestBehavior.AllowGet)); } //获取全部的生单明细 T_OutStockCreateInfo createModel = new T_OutStockCreateInfo(); string strErrMsg = ""; string cHeaderID = string.Empty; List <T_OutStockCreateInfo> lstCreate = new List <T_OutStockCreateInfo>(); ID = ID.TrimEnd(','); createModel.SelectHeaderID = ID; DividPage _serverPage = new DividPage(); _serverPage.CurrentPageShowCounts = 100000; if (!tfunc_OutStockCreate.GetModelListByPage(ref lstCreate, currentUser, createModel, ref _serverPage, ref strErrMsg)) { return(Json(new { state = false, obj = strErrMsg }, JsonRequestBehavior.AllowGet)); } lstCreate.ForEach(t => t.OKSelect = true); if (!tfunc_OutStockCreate.SaveModelListBySqlToDB(currentUser, lstCreate, ref strErrMsg)) { return(Json(new { state = false, obj = strErrMsg }, JsonRequestBehavior.AllowGet)); } else { return(Json(new { state = true, obj = "拣货单生成成功!" }, JsonRequestBehavior.AllowGet)); } } catch (Exception ex) { return(Json(new { state = false, obj = ex.ToString() }, JsonRequestBehavior.AllowGet)); } }
public bool UpdateT_OutStockCreateStatus(UserInfo user, ref T_OutStockCreateInfo t_outstockdetail, int NewStatus, ref string strError) { T_OutStockCreate_Func tfunc = new T_OutStockCreate_Func(); return(tfunc.UpdateModelStatus(user, ref t_outstockdetail, NewStatus, ref strError)); }
public bool GetT_OutStockCreateListByPage(ref List <T_OutStockCreateInfo> modelList, UserInfo user, T_OutStockCreateInfo t_outstockdetail, ref DividPage page, ref string strError) { T_OutStockCreate_Func tfunc = new T_OutStockCreate_Func(); return(tfunc.GetModelListByPage(ref modelList, user, t_outstockdetail, ref page, ref strError)); }
public bool GetT_OutStockCreateByID(ref T_OutStockCreateInfo model, ref string strError) { T_OutStockCreate_Func tfunc = new T_OutStockCreate_Func(); return(tfunc.GetModelByID(ref model, ref strError)); }
public bool DeleteT_OutStockCreateByModel(UserInfo user, T_OutStockCreateInfo model, ref string strError) { T_OutStockCreate_Func tfunc = new T_OutStockCreate_Func(); return(tfunc.DeleteModelByModel(user, model, ref strError)); }
public bool SaveT_OutStockCreate(UserInfo user, ref T_OutStockCreateInfo t_outstockdetail, ref string strError) { T_OutStockCreate_Func tfunc = new T_OutStockCreate_Func(); return(tfunc.SaveModelBySqlToDB(user, ref t_outstockdetail, ref strError)); }