示例#1
0
        /// <summary>
        /// 获取盘点明细表信息
        /// </summary>
        /// <param name="p_lngSeriesId">主表序列号</param>
        /// <param name="dtbStorageCheck_detail">明细表信息</param>
        /// <returns></returns>
        internal long m_lngGetStorageCheck_detail(long p_lngSeriesId, out DataTable dtbStorageCheck_detail)
        {
            long lngRes = 0;

            com.digitalwave.iCare.middletier.MedicineStoreService.clsStorageCheckSVC objSvc =
                (com.digitalwave.iCare.middletier.MedicineStoreService.clsStorageCheckSVC)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.MedicineStoreService.clsStorageCheckSVC));
            lngRes = objSvc.m_lngGetStorageCheck_detail(objPrincipal, p_lngSeriesId, out dtbStorageCheck_detail);
            return(lngRes);
        }
示例#2
0
        /// <summary>
        /// 入帐
        /// </summary>
        /// <param name="p_lngMainSEQ">主表序列</param>
        /// <param name="p_strCheckID">盘点单据号</param>
        /// <param name="p_strEmpID">员工ID</param>
        /// <param name="p_dtmAccountDate">盘点日期</param>
        /// <param name="p_strStorage">仓库ID</param>
        /// <returns></returns>
        internal long m_lngInAccount(long p_lngMainSEQ, string p_strCheckID, string p_strEmpID, DateTime p_dtmAccountDate, string p_strStorage)
        {
            long lngRes = 0;

            com.digitalwave.iCare.middletier.MedicineStoreService.clsStorageCheckSVC objSvc =
                (com.digitalwave.iCare.middletier.MedicineStoreService.clsStorageCheckSVC)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.MedicineStoreService.clsStorageCheckSVC));
            lngRes = objSvc.m_lngInAccount(objPrincipal, p_lngMainSEQ, p_strCheckID, p_strEmpID, p_dtmAccountDate, p_strStorage);
            return(lngRes);
        }
示例#3
0
        /// <summary>
        /// 获取盘点主表信息
        /// </summary>
        /// <param name="p_strStarDate">查询开始时间</param>
        /// <param name="p_strEndDate">查询结束时间</param>
        /// <param name="p_strStorage">仓库ID</param>
        /// <param name="dtbStorageCheck">返回数据</param>
        /// <returns></returns>
        internal long m_lngGetStorageCheck(DateTime p_strStarDate, DateTime p_strEndDate, string p_strStorage, out DataTable dtbStorageCheck)
        {
            long lngRes = 0;

            com.digitalwave.iCare.middletier.MedicineStoreService.clsStorageCheckSVC objSvc =
                (com.digitalwave.iCare.middletier.MedicineStoreService.clsStorageCheckSVC)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.MedicineStoreService.clsStorageCheckSVC));
            lngRes = objSvc.m_lngGetStorageCheck(objPrincipal, p_strStarDate, p_strEndDate, p_strStorage, out dtbStorageCheck);
            return(lngRes);
        }
示例#4
0
        /// <summary>
        /// 删除盘点信息
        /// </summary>
        /// <param name="p_lngSEQ">主表序列</param>
        /// <returns></returns>
        internal long m_lngDeleteStorageCheck(long p_lngSEQ)
        {
            long lngRes = 0;

            com.digitalwave.iCare.middletier.MedicineStoreService.clsStorageCheckSVC objSvc =
                (com.digitalwave.iCare.middletier.MedicineStoreService.clsStorageCheckSVC)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.MedicineStoreService.clsStorageCheckSVC));
            lngRes = objSvc.m_lngDeleteStorageCheck(objPrincipal, p_lngSEQ);
            return(lngRes);
        }
示例#5
0
        /// <summary>
        /// 修改盘点明细信息
        /// </summary>
        /// <param name="p_objSCVOArr">盘点明细</param>
        /// <returns></returns>
        internal long m_lngModifyStorageCheckDetail(clsMS_StorageCheckDetail_VO[] p_objSCVOArr)
        {
            long lngRes = 0;

            com.digitalwave.iCare.middletier.MedicineStoreService.clsStorageCheckSVC objSvc =
                (com.digitalwave.iCare.middletier.MedicineStoreService.clsStorageCheckSVC)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.MedicineStoreService.clsStorageCheckSVC));
            lngRes = objSvc.m_lngModifyStorageCheckDetail(objPrincipal, p_objSCVOArr);
            return(lngRes);
        }
示例#6
0
        /// <summary>
        /// 获取有出库记录的盘盈药品
        /// </summary>
        /// <param name="p_strCheckID">盘点ID</param>
        /// <param name="p_dtbOut">出库药品</param>
        /// <returns></returns>
        internal long m_lngGetHasOutCheckMedicine(string p_strCheckID, out DataTable p_dtbOut)
        {
            long lngRes = 0;

            com.digitalwave.iCare.middletier.MedicineStoreService.clsStorageCheckSVC objSvc =
                (com.digitalwave.iCare.middletier.MedicineStoreService.clsStorageCheckSVC)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.MedicineStoreService.clsStorageCheckSVC));
            lngRes = objSvc.m_lngGetHasOutCheckMedicine(objPrincipal, p_strCheckID, out p_dtbOut);
            return(lngRes);
        }
示例#7
0
        /// <summary>
        /// 设置审核人及日期
        /// </summary>
        /// <param name="p_strEmpID">审核人ID</param>
        /// <param name="p_lngSeq">审核记录的序列</param>
        /// <returns></returns>
        internal long m_lngSetCommitUser(string p_strEmpID, long p_lngSeq)
        {
            long lngRes = 0;

            com.digitalwave.iCare.middletier.MedicineStoreService.clsStorageCheckSVC objSvc =
                (com.digitalwave.iCare.middletier.MedicineStoreService.clsStorageCheckSVC)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.MedicineStoreService.clsStorageCheckSVC));
            lngRes = objSvc.m_lngSetCommitUser(objPrincipal, p_strEmpID, p_lngSeq);
            return(lngRes);
        }
示例#8
0
        /// <summary>
        /// 删除指定药品
        /// </summary>
        /// <param name="p_objMedicneSt">药品库存信息</param>
        /// <param name="p_strCheckID">盘点ID</param>
        /// <param name="p_lngSubSEQ">盘点明细序列</param>
        /// <param name="p_blnIsCommit">是否保存即审核</param>
        /// <returns></returns>
        internal long m_lngDeleteStorageCheckMedicine(clsMS_StorageDetail p_objMedicneSt, string p_strCheckID, long p_lngSubSEQ, bool p_blnIsCommit)
        {
            long lngRes = 0;

            com.digitalwave.iCare.middletier.MedicineStoreService.clsStorageCheckSVC objSvc =
                (com.digitalwave.iCare.middletier.MedicineStoreService.clsStorageCheckSVC)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.MedicineStoreService.clsStorageCheckSVC));
            lngRes = objSvc.m_lngDeleteStorageCheckMedicine(objPrincipal, p_objMedicneSt, p_strCheckID, p_lngSubSEQ, p_blnIsCommit);
            return(lngRes);
        }
示例#9
0
        /// <summary>
        /// 添加盘点主表
        /// </summary>
        /// <param name="p_objSCVO">盘点明细</param>
        /// <returns></returns>
        internal long m_lngAddNewStorageCheckMain(ref clsMS_StorageCheck_VO p_objSCVO)
        {
            long lngRes = 0;

            com.digitalwave.iCare.middletier.MedicineStoreService.clsStorageCheckSVC objSvc =
                (com.digitalwave.iCare.middletier.MedicineStoreService.clsStorageCheckSVC)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.MedicineStoreService.clsStorageCheckSVC));
            lngRes = objSvc.m_lngAddNewStorageCheckMain(objPrincipal, ref p_objSCVO);
            return(lngRes);
        }
示例#10
0
        /// <summary>
        /// 修改库存主表药品当前数量
        /// </summary>
        /// <param name="p_strMedicineIDArr">药品ID</param>
        /// <param name="p_strStorageID">仓库ID</param>
        /// <returns></returns>
        internal long m_lngUpdateStorageGross(string[] p_strMedicineIDArr, string p_strStorageID)
        {
            long lngRes = 0;

            com.digitalwave.iCare.middletier.MedicineStoreService.clsStorageCheckSVC objSvc =
                (com.digitalwave.iCare.middletier.MedicineStoreService.clsStorageCheckSVC)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.MedicineStoreService.clsStorageCheckSVC));
            lngRes = objSvc.m_lngUpdateStorageGross(objPrincipal, p_strMedicineIDArr, p_strStorageID);
            return(lngRes);
        }
示例#11
0
        /// <summary>
        /// 将旧有的盘盈记录设为无效
        /// </summary>
        /// <param name="p_strCheckID">盘点ID</param>
        /// <param name="p_strMedicineID">药品ID</param>
        /// <param name="p_strLotNO">批号</param>
        /// <param name="p_strInStorageID">入库单据号</param>
        /// <param name="p_dtmValiDate">有效期</param>
        /// <param name="p_dblInPrice">购入价</param>
        /// <returns></returns>
        internal long m_lngDeleteInStorage(string p_strCheckID, string p_strMedicineID, string p_strLotNO, string p_strInStorageID, DateTime p_dtmValiDate, double p_dblInPrice)
        {
            long lngRes = 0;

            com.digitalwave.iCare.middletier.MedicineStoreService.clsStorageCheckSVC objSvc =
                (com.digitalwave.iCare.middletier.MedicineStoreService.clsStorageCheckSVC)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.MedicineStoreService.clsStorageCheckSVC));
            lngRes = objSvc.m_lngDeleteInStorage(objPrincipal, p_strCheckID, p_strMedicineID, p_strLotNO, p_strInStorageID, p_dtmValiDate, p_dblInPrice);
            return(lngRes);
        }
示例#12
0
        /// <summary>
        /// 保存盘亏数据至出库表
        /// </summary>
        /// <param name="p_objOutMain">出库主表信息</param>
        /// <param name="p_objOutDetail">出库明细信息</param>
        /// <returns></returns>
        internal long m_lngSaveCheckToOutStorage(clsMS_OutStorage_VO p_objOutMain, clsMS_OutStorageDetail_VO p_objOutDetail)
        {
            long lngRes = 0;

            com.digitalwave.iCare.middletier.MedicineStoreService.clsStorageCheckSVC objSvc =
                (com.digitalwave.iCare.middletier.MedicineStoreService.clsStorageCheckSVC)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.MedicineStoreService.clsStorageCheckSVC));
            lngRes = objSvc.m_lngSaveCheckToOutStorage(objPrincipal, p_objOutMain, p_objOutDetail);
            return(lngRes);
        }
示例#13
0
        /// <summary>
        /// 审核盘点
        /// </summary>
        /// <param name="p_lngMainSEQ">主表序列</param>
        /// <param name="p_objDefCheckDetail">盘亏明细</param>
        /// <param name="p_objSufCheckDetail">盘盈明细</param>
        /// <param name="p_objStDetail">盘点药品相关库存明细</param>
        /// <param name="p_strMedicineIDArr">盘点药品ID</param>
        /// <param name="p_strEmpID">审核人ID</param>
        /// <param name="p_dtmCommitDate">审核日期</param>
        /// <param name="p_strCheckID">盘点ID</param>
        /// <param name="p_strCreatorID">盘点人ID</param>
        /// <param name="p_dtmCheckDate">盘点日期</param>
        /// <param name="p_strStorageID">仓库ID</param>
        /// <param name="p_blnIsImmAccount">是否盘点即审核</param>
        /// <returns></returns>
        internal long m_lngCommitStorageCheck(long p_lngMainSEQ, clsMS_StorageCheckDetail_VO[] p_objDefCheckDetail, clsMS_StorageCheckDetail_VO[] p_objSufCheckDetail, clsMS_StorageDetail[] p_objStDetail, string[] p_strMedicineIDArr, string p_strEmpID, DateTime p_dtmCommitDate,
                                              string p_strCheckID, string p_strCreatorID, DateTime p_dtmCheckDate, string p_strStorageID, bool p_blnIsImmAccount)
        {
            long lngRes = 0;

            com.digitalwave.iCare.middletier.MedicineStoreService.clsStorageCheckSVC objSvc =
                (com.digitalwave.iCare.middletier.MedicineStoreService.clsStorageCheckSVC)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.MedicineStoreService.clsStorageCheckSVC));
            lngRes = objSvc.m_lngCommitStorageCheck(objPrincipal, p_lngMainSEQ, p_objDefCheckDetail, p_objSufCheckDetail, p_objStDetail, p_strMedicineIDArr, p_strEmpID, p_dtmCommitDate, p_strCheckID, p_strCreatorID, p_dtmCheckDate, p_strStorageID, p_blnIsImmAccount);
            return(lngRes);
        }
示例#14
0
        /// <summary>
        /// 保存盘点
        /// </summary>
        /// <param name="p_objMain">主表记录</param>
        /// <param name="p_objOldStDetial">旧的盘点药品库存信息</param>
        /// <param name="p_objModifyDetaiArr">修改过的盘点记录</param>
        /// <param name="p_objNewDetailArr">新增的盘点记录</param>
        /// <param name="p_objDefCheckDetail">盘亏药品</param>
        /// <param name="p_objSufCheckDetail">盘盈药品</param>
        /// <param name="p_objStDetail">盘点药品相关库存明细</param>
        /// <param name="p_strMedicineIDArr">盈亏药品ID</param>
        /// <param name="p_strEmpID">员工ID</param>
        /// <param name="p_strStorageID">仓库ID</param>
        /// <param name="p_blnIsAddNew">是否新增</param>
        /// <param name="p_blnIsCommit">是否保存即审核</param>
        /// <param name="p_lngNewSubSEQArr">新增盘点记录明细序列</param>
        /// <returns></returns>
        internal long m_lngSaveStorageCheck(ref clsMS_StorageCheck_VO p_objMain, clsMS_StorageDetail[] p_objOldStDetial, clsMS_StorageCheckDetail_VO[] p_objModifyDetaiArr, clsMS_StorageCheckDetail_VO[] p_objNewDetailArr, clsMS_StorageCheckDetail_VO[] p_objDefCheckDetail, clsMS_StorageCheckDetail_VO[] p_objSufCheckDetail,
                                            clsMS_StorageDetail[] p_objStDetail, string[] p_strMedicineIDArr, string p_strEmpID, string p_strStorageID, bool p_blnIsAddNew, bool p_blnIsCommit, out long[] p_lngNewSubSEQArr)
        {
            long lngRes = 0;

            com.digitalwave.iCare.middletier.MedicineStoreService.clsStorageCheckSVC objSvc =
                (com.digitalwave.iCare.middletier.MedicineStoreService.clsStorageCheckSVC)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.MedicineStoreService.clsStorageCheckSVC));
            lngRes = objSvc.m_lngSaveStorageCheck(objPrincipal, ref p_objMain, p_objOldStDetial, p_objModifyDetaiArr, p_objNewDetailArr, p_objDefCheckDetail, p_objSufCheckDetail, p_objStDetail, p_strMedicineIDArr, p_strEmpID, p_strStorageID, p_blnIsAddNew, p_blnIsCommit, out p_lngNewSubSEQArr);
            return(lngRes);
        }