/// <summary> /// 获取仓库名称 /// </summary> /// <param name="p_strStorageID">仓库ID</param> /// <param name="p_strStorageName"></param> /// <returns></returns> internal long m_lngGetStoreRoomName(string p_strStorageID, out string p_strStorageName) { long lngRes = 0; com.digitalwave.iCare.middletier.MedicineStoreService.clsMiddletier_InStorageMedicineWithdrawSVC objSvc = (com.digitalwave.iCare.middletier.MedicineStoreService.clsMiddletier_InStorageMedicineWithdrawSVC)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.MedicineStoreService.clsMiddletier_InStorageMedicineWithdrawSVC)); lngRes = objSvc.m_lngGetStoreRoomName(objPrincipal, p_strStorageID, out p_strStorageName); return(lngRes); }
/// <summary> /// 退审 /// </summary> /// <param name="p_objStGross">药品库存信息</param> /// <param name="p_lngInSEQ">内退主表序列</param> /// <param name="p_strInStorageID">内退单据号</param> /// <returns></returns> public long m_lngUnCommit(clsMS_StorageDetail[] p_objStGross, long p_lngInSEQ, string p_strInStorageID) { long lngRes = 0; com.digitalwave.iCare.middletier.MedicineStoreService.clsMiddletier_InStorageMedicineWithdrawSVC objSvc = (com.digitalwave.iCare.middletier.MedicineStoreService.clsMiddletier_InStorageMedicineWithdrawSVC)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.MedicineStoreService.clsMiddletier_InStorageMedicineWithdrawSVC)); lngRes = objSvc.m_lngUnCommit(objPrincipal, p_objStGross, p_lngInSEQ, p_strInStorageID); return(lngRes); }
/// <summary> /// 保存内退 /// </summary> /// <param name="p_objMain">主表记录</param> /// <param name="p_objOldDetailArr">旧记录药品信息</param> /// <param name="p_objNewDetailArr">新增药品</param> /// <param name="p_objModifyDetailArr">修改药品</param> /// <param name="p_objAccDetailArr">帐本明细</param> /// <param name="p_objStDetailArr">当前药品库存信息</param> /// <param name="p_blnIsAddNew">是否新增</param> /// <param name="p_blnHasCommit">是否已审核</param> /// <param name="p_blnIsCommit">是否保存即审核</param> /// <param name="p_blnIsImmAccount">是否审核即入帐</param> /// <param name="p_lngMainSEQ">主表序列</param> /// <param name="p_strInStorageID">内退单据号</param> /// <returns></returns> public long m_lngSave(clsMS_InStorage_VO p_objMain, clsMS_StorageDetail[] p_objOldDetailArr, ref clsMS_InStorageDetail_VO[] p_objNewDetailArr, clsMS_InStorageDetail_VO[] p_objModifyDetailArr, clsMS_AccountDetail_VO[] p_objAccDetailArr, clsMS_StorageDetail[] p_objStDetailArr, bool p_blnIsAddNew, bool p_blnHasCommit, bool p_blnIsCommit, bool p_blnIsImmAccount, out long p_lngMainSEQ, out string p_strInStorageID) { long lngRes = 0; com.digitalwave.iCare.middletier.MedicineStoreService.clsMiddletier_InStorageMedicineWithdrawSVC objSvc = (com.digitalwave.iCare.middletier.MedicineStoreService.clsMiddletier_InStorageMedicineWithdrawSVC)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.MedicineStoreService.clsMiddletier_InStorageMedicineWithdrawSVC)); lngRes = objSvc.m_lngSaveMedicine(objPrincipal, p_objMain, p_objOldDetailArr, ref p_objNewDetailArr, p_objModifyDetailArr, p_objAccDetailArr, p_objStDetailArr, p_blnIsAddNew, p_blnHasCommit, p_blnIsCommit, p_blnIsImmAccount, out p_lngMainSEQ, out p_strInStorageID); return(lngRes); }
//获取内退明细表 (报表打印) public long m_lngGetOutStorageDetailData_report(string id, out DataTable dtb) { long lngRes = 0; com.digitalwave.iCare.middletier.MedicineStoreService.clsMiddletier_InStorageMedicineWithdrawSVC objSvc = (com.digitalwave.iCare.middletier.MedicineStoreService.clsMiddletier_InStorageMedicineWithdrawSVC)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.MedicineStoreService.clsMiddletier_InStorageMedicineWithdrawSVC)); lngRes = objSvc.m_lngGetOutStorageDetailData_report(id, out dtb); return(lngRes); }
/// <summary> /// 审核内退 /// </summary> /// <param name="p_objStGross">库存信息</param> /// <param name="p_objAccDetailArr">药品入帐明细</param> /// <param name="p_strEmpID">员工ID</param> /// <param name="p_dtmCommitDate">审核日期</param> /// <param name="p_lngInSEQ">主表序列</param> /// <param name="p_strInStorageID">内退单据号</param> /// <param name="p_blnIsImmAccount">是否审核即入帐</param> /// <returns></returns> public long m_lngCommit(clsMS_StorageDetail[] p_objStGross, clsMS_AccountDetail_VO[] p_objAccDetailArr, string p_strEmpID, DateTime p_dtmCommitDate, long p_lngInSEQ, string p_strInStorageID, bool p_blnIsImmAccount) { long lngRes = 0; com.digitalwave.iCare.middletier.MedicineStoreService.clsMiddletier_InStorageMedicineWithdrawSVC objSvc = (com.digitalwave.iCare.middletier.MedicineStoreService.clsMiddletier_InStorageMedicineWithdrawSVC)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.MedicineStoreService.clsMiddletier_InStorageMedicineWithdrawSVC)); lngRes = objSvc.m_lngCommit(objPrincipal, p_objStGross, p_objAccDetailArr, p_strEmpID, p_dtmCommitDate, p_lngInSEQ, p_strInStorageID, p_blnIsImmAccount); return(lngRes); }
public long m_lngGetResultByMedicineType(out clsValue_MedicineType_VO[] p_objData) { long lngRes = 0; //com.digitalwave.iCare.middletier.HIS.clsDemoMiddleTierSVC objSvc =(com.digitalwave.iCare.middletier.HIS.clsDemoMiddleTierSVC)clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.HIS.clsDemoMiddleTierSVC)); //创建中间件COM对象 com.digitalwave.iCare.middletier.MedicineStoreService.clsMiddletier_InStorageMedicineWithdrawSVC objSvc = (com.digitalwave.iCare.middletier.MedicineStoreService.clsMiddletier_InStorageMedicineWithdrawSVC)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.MedicineStoreService.clsMiddletier_InStorageMedicineWithdrawSVC)); lngRes = objSvc.m_lngGetMedicineTypeData(objPrincipal, out p_objData); return(lngRes); }
/// <summary> /// 删除选定药品 /// </summary> /// <param name="p_lngSEQ">明细表序列</param> /// <param name="p_strMedicineID">药品ID</param> /// <param name="p_strLotNO">药品批号</param> /// <param name="p_strInStorageID">入库单据号</param> /// <param name="p_strStorageID">仓库ID</param> /// <param name="p_strVendorID">供应商ID</param> /// <param name="p_dcmCallPrice">购入单价</param> /// <param name="p_blnIsCommit">是否保存即审核</param> /// <returns></returns> internal long m_lngDeleteInStorage(long p_lngSEQ, string p_strMedicineID, string p_strLotNO, string p_strInStorageID, string p_strStorageID, string p_strVendorID, decimal p_dcmCallPrice, bool p_blnIsCommit) { long lngRes = 0; com.digitalwave.iCare.middletier.MedicineStoreService.clsMiddletier_InStorageMedicineWithdrawSVC objSvc = (com.digitalwave.iCare.middletier.MedicineStoreService.clsMiddletier_InStorageMedicineWithdrawSVC)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.MedicineStoreService.clsMiddletier_InStorageMedicineWithdrawSVC)); lngRes = objSvc.m_lngDelete(objPrincipal, p_lngSEQ, p_strMedicineID, p_strLotNO, p_strInStorageID, p_strStorageID, p_strVendorID, p_dcmCallPrice, p_blnIsCommit); return(lngRes); }
/// <summary> /// 退审时获取当前库存、实际库存、可用库存 /// </summary> /// <param name="objvalue_Param"></param> /// <param name="dtbResult"></param> /// <returns></returns> internal long m_lngDclGetMedicineGross(ref clsMs_MedicineWithdrawNumQueryCondition_VO objvalue_Param, ref DataTable dtbResult) { long lngRes = 0; com.digitalwave.iCare.middletier.MedicineStoreService.clsMiddletier_InStorageMedicineWithdrawSVC objSvc = (com.digitalwave.iCare.middletier.MedicineStoreService.clsMiddletier_InStorageMedicineWithdrawSVC)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.MedicineStoreService.clsMiddletier_InStorageMedicineWithdrawSVC)); lngRes = objSvc.m_lngGetMedicineGross(objPrincipal, ref objvalue_Param, ref dtbResult); return(lngRes); }
/// <summary> /// 审核时获取药品内退明细数据 /// </summary> /// <param name="objvalue_Param">查询条件D</param> /// <param name="dtbResult">结果集</param> /// <returns></returns> internal long m_lngDclGetWithdrawDetailData(long lngSEQ, ref DataTable dtbResult) { long lngRes = 0; com.digitalwave.iCare.middletier.MedicineStoreService.clsMiddletier_InStorageMedicineWithdrawSVC objSvc = (com.digitalwave.iCare.middletier.MedicineStoreService.clsMiddletier_InStorageMedicineWithdrawSVC)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.MedicineStoreService.clsMiddletier_InStorageMedicineWithdrawSVC)); lngRes = objSvc.m_lngGetWithdrawDetailData(objPrincipal, lngSEQ, ref dtbResult); return(lngRes); }
/// <summary> /// 获取指定日期内的金额 /// </summary> /// <param name="p_dtmBegin">查询开始时间</param> /// <param name="p_dtmEnd">查询结束时间</param> /// <param name="p_strStorageID">仓库ID</param> /// <param name="p_intFormID">单据类型</param> /// <param name="p_dtbMoney">金额</param> /// <returns></returns> internal long m_lngGetAllInMoney(DateTime p_dtmBegin, DateTime p_dtmEnd, string p_strStorageID, int p_intFormID, out DataTable p_dtbMoney) { long lngRes = 0; com.digitalwave.iCare.middletier.MedicineStoreService.clsMiddletier_InStorageMedicineWithdrawSVC objSvc = (com.digitalwave.iCare.middletier.MedicineStoreService.clsMiddletier_InStorageMedicineWithdrawSVC)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.MedicineStoreService.clsMiddletier_InStorageMedicineWithdrawSVC)); lngRes = objSvc.m_lngGetAllInMoney(objPrincipal, p_dtmBegin, p_dtmEnd, p_strStorageID, p_intFormID, out p_dtbMoney); return(lngRes); }