Пример #1
0
 public JsonResult AuditHandOutDoc(string docid)
 {
     int result = 0;
     string errinfo = "";//使用报损逻辑
     var bl = new StockBusiness().AuditDamagedDoc(docid, CurrentUser.UserID, OperateIP, CurrentUser.ClientID, ref result, ref errinfo);
     JsonDictionary.Add("result", result);
     JsonDictionary.Add("errinfo", errinfo);
     return new JsonResult
     {
         Data = JsonDictionary,
         JsonRequestBehavior = JsonRequestBehavior.AllowGet
     };
 }
Пример #2
0
        public JsonResult DeleteHandOutDoc(string docid)
        {
            var bl = new StockBusiness().DeleteDoc(docid, CurrentUser.UserID, OperateIP, CurrentUser.ClientID);
            JsonDictionary.Add("status", bl);

            return new JsonResult
            {
                Data = JsonDictionary,
                JsonRequestBehavior = JsonRequestBehavior.AllowGet
            };
        }
Пример #3
0
        public JsonResult UpdateStorageDetailBatch(string docid, string autoid, string batch)
        {
            var bl = new StockBusiness().UpdateStorageDetailBatch(docid, autoid, batch, CurrentUser.UserID, OperateIP, CurrentUser.ClientID);
            JsonDictionary.Add("status", bl);

            return new JsonResult
            {
                Data = JsonDictionary,
                JsonRequestBehavior = JsonRequestBehavior.AllowGet
            };
        }
Пример #4
0
 /// <summary>
 /// 审核上架
 /// </summary>
 /// <param name="ids"></param>
 /// <returns></returns>
 public JsonResult AuditPurchase(string docid, int doctype, int isover, string details, string remark)
 {
     int result = 0;
     string errinto = "";
     bool bl = new StockBusiness().AuditStorageIn(docid, doctype, isover, details, remark, CurrentUser.UserID, OperateIP, CurrentUser.AgentID, CurrentUser.ClientID, ref result, ref errinto);
     JsonDictionary.Add("status", bl);
     return new JsonResult
     {
         Data = JsonDictionary,
         JsonRequestBehavior = JsonRequestBehavior.AllowGet
     };
 }
Пример #5
0
        /// <summary>
        /// 更换入库仓库和货位
        /// </summary>
        /// <param name="autoid"></param>
        /// <param name="wareid"></param>
        /// <param name="depotid"></param>
        /// <returns></returns>
        public JsonResult UpdateStorageDetailWare(string docid,string autoid, string wareid, string depotid)
        {
            var bl = new StockBusiness().UpdateStorageDetailWare(docid, autoid, wareid, depotid, CurrentUser.UserID, OperateIP, CurrentUser.ClientID);
            JsonDictionary.Add("Status", bl);

            return new JsonResult
            {
                Data = JsonDictionary,
                JsonRequestBehavior = JsonRequestBehavior.AllowGet
            };
        }
Пример #6
0
        /// <summary>
        /// 作废单据
        /// </summary>
        /// <param name="docid"></param>
        /// <returns></returns>
        public JsonResult InvalidPurchase(string docid)
        {
            var bl = new StockBusiness().InvalidDoc(docid, CurrentUser.UserID, OperateIP, CurrentUser.ClientID);
            JsonDictionary.Add("Status", bl);

            return new JsonResult
            {
                Data = JsonDictionary,
                JsonRequestBehavior = JsonRequestBehavior.AllowGet
            };
        }