MIMS.Web/Controllers/PSS_InWarehouseController.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_InWarehouseController : Controller
    {
        IPSS_InWarehouseBLL ipss_inwarehousebll = new PSS_InWarehouseBLL();
        IPSS_InWarehouseDetailBLL ipss_inwarehousedetailbll = new PSS_InWarehouseDetailBLL();
        IPSS_InWarehouseModeBLL ipss_inwarehousemodebll = new PSS_InWarehouseModeBLL();
        IPHA_AccountsBLL ipha_accountsbll = new PHA_AccountsBLL();

        // GET: PSS_InWarehouse
        [RoleActionFilter]
        public ActionResult InWarehouse()
        {
            return View();
        }
        [HttpPost]
        public ActionResult LoadList()
        {
            return Json(ipss_inwarehousebll.GetList());
        }

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

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

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

AI 解读

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

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