/// <summary> /// 新增出库主表 /// </summary> /// <param name="chuku"></param> /// <returns></returns> public static int AddChuKu(StockRemoval zhu) { StorageEntities ent = new StorageEntities(); ent.StockRemoval.Add(zhu); return(ent.SaveChanges()); }
/// <summary> /// 审核出库单 /// </summary> /// <param name="danhao"></param> /// <param name="state"></param> /// <returns></returns> public static int ChuKuShenHe(string danhao, int state) { StorageEntities ent = new StorageEntities(); StockRemoval obj = ent.StockRemoval.Find(danhao); obj.State = state; return(ent.SaveChanges()); }
/// <summary> ///添加出库主表 /// </summary> /// <param name="zhu"></param> /// <returns></returns> public ActionResult ChuKuAddZhu(StockRemoval zhu) { zhu.State = 2; zhu.OperationType = "电脑"; zhu.CreationTime = DateTime.Now; zhu.DataState = true; return(Json(BLL.XBY.StockRemovalManager.AddChuKu(zhu), JsonRequestBehavior.AllowGet)); }
/// <summary> /// 删除出库单 /// </summary> /// <param name="id"></param> /// <returns></returns> public static int ShanChuChuKu(string id) { StorageEntities ent = new StorageEntities(); StockRemoval obj = ent.StockRemoval.Find(id); obj.DataState = false; return(ent.SaveChanges()); }
/// <summary> /// 新增出库主表 /// </summary> /// <param name="chuku"></param> /// <returns></returns> public static int AddChuKu(StockRemoval zhu) { return(DAL.XBY.StockRemovalService.AddChuKu(zhu)); }