MIMS.Web/Controllers/PSS_ExWarehouseController.cs

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Collections;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MIMS.IBusiness;
using MIMS.Business;
using MIMS.Entity;
using Newtonsoft.Json;
using MIMS.Entity.Model;
using MIMS.Entity.Dtos;

namespace MIMS.Web.Controllers
{
    public class PSS_ExWarehouseController : Controller
    {
        IPSS_ExWarehouseBLL ipss_exwarehousebll = new PSS_ExWarehouseBLL();
        IPSS_ExWarehouseDetailBLL ipss_exwarehousedetailbll = new PSS_ExWarehouseDetailBLL();
        IPSS_ExWarehouseModeBLL ipss_exwarehousemodebll = new PSS_ExWarehouseModeBLL();
        IPHA_AccountsBLL ipha_accountsbll = new PHA_AccountsBLL();
        // GET: PSS_ExWarehouse
        [RoleActionFilter]
        public ActionResult ExWarehouse()
        {
            return View();
        }
        [HttpPost]
        public ActionResult LoadList()
        {
            return Json(ipss_exwarehousebll.GetList());
        }

        [HttpPost]
        public ActionResult LoadForm(string id)
        {
            if (!string.IsNullOrEmpty(id))
                return Json(ipss_exwarehousebll.GetEntity(id));
            else
                return null;
        }

        [HttpPost]
        public ActionResult AcceptClick(PSS_ExWarehouse obj)
        {
            string key = Request["key"];
            int old_isew = default(int);
            int.TryParse(Request["old_isew"], out old_isew);
            int isOk = default(int);
            //key表示是否编辑的标识,1表示处于编辑状态 0表示增加状态
            if (key == "1")
            {
                //由于出库状态是不可逆的,所以由未出库到出库时,会减少库存事务
                if (obj.IsEW == 1 && old_isew == 0)
                {
                    //添加出库时间
                    obj.EWDate = DateTime.Now.ToString("G");
                    //通过记录获得对应的出库药品信息
                    Hashtable ht = new Hashtable();
                    ht.Add("EWID", obj.EWID);
后面还有 43 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。