/// <summary> /// 审核盘点单 /// </summary> /// <returns></returns> public ActionResult Audite() { string SnNum = WebUtil.GetFormValue <string>("SnNum"); string CompanyID = WebUtil.GetFormValue <string>("CompanyID", string.Empty); int Status = WebUtil.GetFormValue <int>("Status", (int)EAudite.NotPass); string AuditUser = WebUtil.GetFormValue <string>("AuditUser", string.Empty); string Reason = WebUtil.GetFormValue <string>("Reason", string.Empty); int OperateType = WebUtil.GetFormValue <int>("OperateType", 0); string EquipmentNum = WebUtil.GetFormValue <string>("EquipmentNum"); string EquipmentCode = WebUtil.GetFormValue <string>("EquipmentCode"); string Remark = WebUtil.GetFormValue <string>("Remark"); InventoryOrderEntity entity = new InventoryOrderEntity(); entity.SnNum = SnNum; entity.CompanyID = CompanyID; entity.Status = Status; entity.AuditUser = AuditUser; entity.Reason = Reason; entity.OperateType = OperateType; entity.EquipmentNum = EquipmentNum; entity.EquipmentCode = EquipmentCode; entity.Remark = Remark; Bill <InventoryOrderEntity, InventoryDetailEntity> bill = new CheckOrder(CompanyID); string returnValue = bill.Audite(entity); DataResult result = new DataResult(); if ("1000" == returnValue) { result.Code = (int)EResponseCode.Success; result.Message = "操作成功"; } else if ("1001" == returnValue) { result.Code = (int)EResponseCode.Exception; result.Message = "盘点单不存在"; } else if ("1002" == returnValue) { result.Code = (int)EResponseCode.Exception; result.Message = "盘点单已经审核"; } return(Content(JsonHelper.SerializeObject(result))); }
public ActionResult Audite() { string OrderNum = WebUtil.GetFormValue <string>("OrderNum", string.Empty); int Status = WebUtil.GetFormValue <int>("Status", 0); string Reason = WebUtil.GetFormValue <string>("Reason", string.Empty); CheckStockEntity entity = new CheckStockEntity(); entity.Status = Status; entity.OrderNum = OrderNum; entity.AuditUser = this.LoginUser.UserCode; entity.Reason = Reason; entity.OperateType = (int)EOpType.PC; entity.EquipmentNum = string.Empty; entity.EquipmentCode = string.Empty; Bill <CheckStockEntity, CheckStockInfoEntity> bill = new CheckOrder(); string returnValue = bill.Audite(entity); this.ReturnJson.AddProperty("d", returnValue); return(Content(this.ReturnJson.ToString())); }
public ActionResult Audite() { string OrderNum = WebUtil.GetFormValue<string>("OrderNum", string.Empty); int Status = WebUtil.GetFormValue<int>("Status", 0); string Reason = WebUtil.GetFormValue<string>("Reason", string.Empty); CheckStockEntity entity = new CheckStockEntity(); entity.Status = Status; entity.OrderNum = OrderNum; entity.AuditUser = this.LoginUser.UserCode; entity.Reason = Reason; entity.OperateType = (int)EOpType.PC; entity.EquipmentNum = string.Empty; entity.EquipmentCode = string.Empty; Bill<CheckStockEntity, CheckStockInfoEntity> bill = new CheckOrder(); string returnValue = bill.Audite(entity); this.ReturnJson.AddProperty("d", returnValue); return Content(this.ReturnJson.ToString()); }