Пример #1
0
        /// <summary>
        /// 启用物资科室
        /// </summary>
        /// <param name="deptID">科室Id</param>
        public void StartDept(int deptID)
        {
            MW_DeptDic deptDic = NewObject <MW_DeptDic>();

            deptDic.StopFlag = 0;
            deptDic.save();
        }
Пример #2
0
        public ServiceResponseData AddDrugDept()
        {
            MW_DeptDic deptdic = requestData.GetData <MW_DeptDic>(0);

            this.BindDb(deptdic);
            int retVal = deptdic.save();

            responseData.AddData(retVal);
            return(responseData);
        }
Пример #3
0
        public ServiceResponseData DeleteDeptDic()
        {
            int        deptDicID = requestData.GetData <int>(0);
            MW_DeptDic model     = (MW_DeptDic)NewObject <MW_DeptDic>().getmodel(deptDicID);

            string where = "DeptID=" + model.DeptID;
            DataTable dtStoage = ((MW_Storage)NewObject <MW_Storage>()).gettable(where);

            if (dtStoage.Rows.Count > 0)
            {
                throw new Exception("当前科室已经发生业务,无法删除,只能停用");
            }

            int retVal = NewObject <MaterialDeptMgr>().DeleteDeptDic(deptDicID);

            responseData.AddData(retVal);
            return(responseData);
        }