Exemplo n.º 1
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);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 保存出库记录
        /// </summary>
        /// <param name="p_objMain">出库主表内容</param>
        /// <param name="p_objOldDetailArr">旧出库明细</param>
        /// <param name="p_objNewDetailArr">新出库明细</param>
        /// <param name="p_blnIsCommit">是否保存即审核</param>
        /// <param name="p_lngIsAddNew">是否新添记录</param>
        /// <param name="p_blnIsImmAccount">是否审核即入帐</param>
        /// <returns></returns>
        internal long m_lngSaveOutStorage(ref clsMS_OutStorage_VO p_objMain, clsMS_OutStorageDetail_VO[] p_objOldDetailArr, ref clsMS_OutStorageDetail_VO[] p_objNewDetailArr, bool p_blnIsCommit, bool p_lngIsAddNew, bool p_blnIsImmAccount)
        {
            long lngRes = 0;

            com.digitalwave.iCare.middletier.MedicineStoreService.clsOutStorageSVC objSvc =
                (com.digitalwave.iCare.middletier.MedicineStoreService.clsOutStorageSVC)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.MedicineStoreService.clsOutStorageSVC));
            lngRes = objSvc.m_lngSaveOutStorage(objPrincipal, ref p_objMain, p_objOldDetailArr, ref p_objNewDetailArr, p_blnIsCommit, p_lngIsAddNew, p_blnIsImmAccount);
            return(lngRes);
        }
Exemplo n.º 3
0
        /// <summary>
        ///  修改药品出库信息(主表)
        /// </summary>
        /// <param name="p_objMain">主表内容</param>
        /// <returns></returns>
        internal long m_lngModifyOutStorage(clsMS_OutStorage_VO p_objMain)
        {
            long lngRes = 0;

            com.digitalwave.iCare.middletier.MedicineStoreService.clsOutStorageSVC objSvc =
                (com.digitalwave.iCare.middletier.MedicineStoreService.clsOutStorageSVC)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.MedicineStoreService.clsOutStorageSVC));
            lngRes = objSvc.m_lngModifyOutStorage(objPrincipal, p_objMain);
            return(lngRes);
        }
Exemplo n.º 4
0
        /// <summary>
        /// 获取主表内容
        /// </summary>
        /// <param name="p_drData">数据</param>
        /// <param name="p_dtmNewDate">制单日期</param>
        /// <param name="p_strCheckID">盘点号</param>
        /// <param name="p_strCreatorID">创建者ID</param>
        /// <param name="p_dtmCheckDate">盘点日期</param>
        /// <returns></returns>
        private clsMS_OutStorage_VO m_objGetMainOSVO(DataRow p_drData, DateTime p_dtmNewDate, string p_strCheckID, string p_strCreatorID, DateTime p_dtmCheckDate)
        {
            clsMS_OutStorage_VO objOutMain = new clsMS_OutStorage_VO();

            objOutMain.m_dtmASKDATE_DAT = p_dtmNewDate;
            objOutMain.m_intSTATUS      = 2;

            objOutMain.m_strASKDEPT_CHR        = string.Empty;
            objOutMain.m_intOutStorageTYPE_INT = 1;
            objOutMain.m_intFORMTYPE_INT       = 3;
            objOutMain.m_strASKERID_CHR        = p_strCreatorID;
            objOutMain.m_strCOMMENT_VCHR       = p_drData["CHECKREASON_VCHR"].ToString();
            objOutMain.m_strSTORAGEID_CHR      = m_objViewer.m_strStorageID;
            objOutMain.m_dtmOutStorageDate     = p_dtmCheckDate;
            objOutMain.m_strOUTSTORAGEID_VCHR  = p_strCheckID;
            return(objOutMain);
        }
        private void m_cmdPrint_Click(object sender, EventArgs e)
        {
            clsMS_OutStorage_VO m_objCurrentSubArr = null;

            ((clsCtl_ForeignRetreatOutStorageDetail)objController).getOutStorageDetail_VO(out m_objCurrentSubArr);
            frmForeignRetreatOutStorageDetailRep frmRet = new frmForeignRetreatOutStorageDetailRep();

            frmRet.strOutputOrder     = m_txtOutputOrder.Text;
            frmRet.m_objCurrentSubArr = m_objCurrentSubArr;

            ((clsCtl_ForeignRetreatOutStorageDetail)objController).m_lngGetPrinType(out intPrintType);

            frmRet.i_showType  = intPrintType;
            frmRet.strBug      = m_lblBugMoney.Text;
             frmRet.strOutDate = m_dtpDate.Text;
            frmRet.strVENDOR   = m_txtVendor.Text;

            frmRet.ShowDialog();
        }
Exemplo n.º 6
0
        private void frmStorageExam_FormClosing(object sender, FormClosingEventArgs e)
        {
            frmMakeOutStorageOrder frmStorageExam = sender as frmMakeOutStorageOrder;

            if (frmStorageExam.m_lngMainSEQ > 0)
            {
                //((clsCtl_AskForMedManage)this.objController).m_mthExamAskInfo(3);
                clsMS_OutStorage_VO vo       = ((clsCtl_MakeOutStorageOrder)frmStorageExam.objController).m_objCurrentMain;
                DataTable           dtSource = (DataTable)this.m_dgvOutStorageMain.DataSource;
                DataRow             TempRow;
                TempRow = dtSource.NewRow();
                TempRow["SERIESID_INT"]       = vo.m_lngSERIESID_INT;
                TempRow["askdate_dat"]        = vo.m_dtmASKDATE_DAT;
                TempRow["askstatus_int"]      = 3;
                TempRow["askstatusname"]      = "药库审核";
                TempRow["askerid_chr"]        = vo.m_strASKERID_CHR;
                TempRow["askername"]          = vo.m_strASKERName;
                TempRow["askdept_chr"]        = vo.m_strASKDEPT_CHR;
                TempRow["askdeptname"]        = vo.m_strASKDEPTName;
                TempRow["EXPORTDEPT_CHR"]     = vo.m_strEXPORTDEPT_CHR;
                TempRow["storagename"]        = vo.m_strEXPORTDEPTName;
                TempRow["askid_vchr"]         = vo.m_strASKID_VCHR;
                TempRow["outstorageid_vchr"]  = vo.m_strOUTSTORAGEID_VCHR;
                TempRow["comment_vchr"]       = vo.m_strCOMMENT_VCHR;
                TempRow["outstoragedate_dat"] = vo.m_dtmOutStorageDate;
                TempRow["examerid_chr"]       = vo.m_strEXAMERID_CHR;
                TempRow["examername"]         = vo.m_strEXAMERName;
                TempRow["examdate_dat"]       = vo.m_dtmEXAMDATE_DAT;
                TempRow["askseriesid_int"]    = frmStorageExam.m_lngAskSeq;
                dtSource.Rows.Add(TempRow);
                dtSource.AcceptChanges();
                if (dtSource.Rows.Count > 0)
                {
                    this.m_dgvOutStorageMain.Rows[dtSource.Rows.Count - 1].Selected = true;
                    this.m_dgvOutStorageMain.CurrentCell = this.m_dgvOutStorageMain.Rows[dtSource.Rows.Count - 1].Cells["m_txtOutStorageid"];
                }
                this.m_btnReturn.PerformClick();
            }
        }
Exemplo n.º 7
0
        private void m_cmdModifyPage1_Click(object sender, EventArgs e)
        {
            clsMS_OutStorage_VO objMain = null;

            clsMS_OutStorageDetail_VO[] objDetail = null;
            ((clsCtl_OutStorage)objController).m_mthModifyPage1(out objMain, out objDetail);

            if (objMain == null)
            {
                return;
            }

            int intSelectedSubRow = 0;

            if (m_dgvSubPage1.SelectedRows != null && m_dgvSubPage1.SelectedRows.Count > 0)
            {
                intSelectedSubRow = m_dgvSubPage1.SelectedRows[0].Index;
            }
            frmMedicineOut frmMO = new frmMedicineOut(m_strStorageID, objMain.m_intOutStorageTYPE_INT, objMain.m_intFORMTYPE_INT, objMain, objDetail, intSelectedSubRow);

            frmMO.FormClosed += new FormClosedEventHandler(frmMO_FormClosed);
            frmMO.ShowDialog();
        }
Exemplo n.º 8
0
        private void m_cmdModify_Click(object sender, EventArgs e)
        {
            clsMS_OutStorage_VO objMain = null;

            clsMS_OutStorageDetail_VO[] objDetail = null;
            ((clsCtl_RejectOutStorage_Main)objController).m_mthModify(out objMain, out objDetail);

            if (objMain == null)
            {
                return;
            }

            int intSelectedSubRow = 0;

            if (m_dgvSubInfo.SelectedRows != null && m_dgvSubInfo.SelectedRows.Count > 0)
            {
                intSelectedSubRow = m_dgvSubInfo.SelectedRows[0].Index;
            }
            frmRejectOutStorage frmRO = new frmRejectOutStorage(m_strStorageID, m_strReportName, objMain, objDetail, intSelectedSubRow);

            frmRO.FormClosed += new FormClosedEventHandler(frmRO_FormClosed);
            frmRO.ShowDialog();
        }
Exemplo n.º 9
0
        private void m_cmdModify_Click(object sender, EventArgs e)
        {
            clsMS_OutStorage_VO objMain = null;

            clsMS_OutStorageDetail_VO[] objDetail = null;
            ((clsCtl_ForeignRetreatOutStorage)objController).m_mthModify(out objMain, out objDetail);

            if (objMain == null)
            {
                return;
            }

            int intSelectedSubRow = 0;

            if (m_dgvDetail.SelectedRows != null && m_dgvDetail.SelectedRows.Count > 0)
            {
                intSelectedSubRow = m_dgvDetail.SelectedRows[0].Index;
            }
            frmForeignRetreatOutStorageDetail frmMO = new frmForeignRetreatOutStorageDetail(m_strStorageID, objMain, objDetail, intSelectedSubRow);

            frmMO.FormClosed += new FormClosedEventHandler(frmMO_FormClosed);
            if (objDetail != null)
            {
                frmMO.m_txtVendor.Enabled = false;
            }

            if (objMain.m_intFORMTYPE_INT == 5)
            {
                frmMO.intInitial = 1;
            }
            else
            {
                frmMO.intInitial = 0;
            }

            frmMO.ShowDialog();
        }
Exemplo n.º 10
0
 /// <summary>
 /// 药品外退
 /// </summary>
 /// <param name="p_strStorageID">仓库ID</param>
 /// <param name="p_objMain">主表内容</param>
 /// <param name="p_objDetailArr">子表内容</param>
 /// <param name="p_intSelectedRow">子表选中行索引</param>
 public frmForeignRetreatOutStorageDetail(string p_strStorageID, clsMS_OutStorage_VO p_objMain, clsMS_OutStorageDetail_VO[] p_objDetailArr, int p_intSelectedRow)
     : this(p_strStorageID)
 {
     ((clsCtl_ForeignRetreatOutStorageDetail)objController).m_mthSetOutStorageToUI(p_objMain, p_objDetailArr, p_intSelectedRow);
 }
Exemplo n.º 11
0
 /// <summary>
 /// 报废出库
 /// </summary>
 /// <param name="p_strStorageID">仓库ID</param>
 /// <param name="p_objMain">主表内容</param>
 /// <param name="p_objDetailArr">子表内容</param>
 /// <param name="p_intSelectedRow">子表选中行索引</param>
 public frmRejectOutStorage(string p_strStorageID, string p_strReportName, clsMS_OutStorage_VO p_objMain, clsMS_OutStorageDetail_VO[] p_objDetailArr, int p_intSelectedRow)
     : this(p_strStorageID, p_strReportName)
 {
     ((clsCtl_RejectOutStorage)objController).m_mthSetOutStorageToUI(p_objMain, p_objDetailArr, p_intSelectedRow);
 }
        /// <summary>
        ///打开预览窗体
        /// </summary>
        internal long m_OutPurchasePrint(clsMS_OutStorage_VO m_objCurrentSubArr)
        {
            if (m_objCurrentSubArr == null)
            {
                MessageBox.Show("抱歉,没有数据可打印!", "药品入库", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                return(-1);
            }
            DataTable p_OutDtbVal = new DataTable();

            this.m_objDomain.m_lngGetOutStorageDetailReport(m_objCurrentSubArr.m_lngSERIESID_INT, m_objViewer.i_showType, out p_OutDtbVal, "");
            DataRow   dro;
            DataTable dtb    = new DataTable();
            int       i_temp = 0;

            string RoomName;

            this.m_objDomain.m_lngGetStoreRoomName(m_objCurrentSubArr.m_strSTORAGEID_CHR, out RoomName);
            if (m_objViewer.i_showType == 0)
            {
                dtb = p_OutDtbVal.Clone();

                //DataView dtv = new DataView();
                //dtv = dtb.DefaultView;
                //dtv.Sort = "medicinetypeid_chr,medicineid_chr";
                //dtb = dtv.ToTable();

                for (int i_low = 0; i_low < p_OutDtbVal.Rows.Count; i_low++)
                {
                    i_temp++;
                    dtb.ImportRow(p_OutDtbVal.Rows[i_low]);
                    //药品和材料分开两张打


                    if (((i_low + 1) >= p_OutDtbVal.Rows.Count) || ((p_OutDtbVal.Rows[i_low]["medicinetypesetid"].ToString()) != (p_OutDtbVal.Rows[i_low + 1]["medicinetypesetid"].ToString())))
                    {
                        int ros        = 8 - i_temp % 8;
                        int i_valCount = dtb.Rows.Count + ros;
                        for (int i = 0; i < ros; i++)
                        {
                            dro = dtb.NewRow();
                            dtb.Rows.Add(dro);
                        }
                        i_temp = 0;
                    }
                }

                m_objViewer.datWindow.DataWindowObject = "foreignretreatoutstorage_lj";
                m_objViewer.datWindow.Modify("t_titel.text='" + m_objComInfo.m_strGetHospitalTitle() + "退药出库单" + "'");
            }
            else
            {
                dtb = p_OutDtbVal.Copy();
                m_objViewer.datWindow.DataWindowObject = "foreignretreatoutstorage_cs";
                m_objViewer.datWindow.Modify("t_titel.text='" + m_objComInfo.m_strGetHospitalTitle() + "退货单(" + RoomName + ")'");
                m_objViewer.datWindow.Modify("t_OUTSTORAGEID.text='" + m_objViewer.strOutputOrder + "'");
            }
            decimal decBug = Convert.ToDecimal(m_objViewer.strBug);
            string  mmm    = new Money(decBug).ToString();

            m_objViewer.datWindow.Modify("t_bug.text='" + mmm + "'");
            m_objViewer.datWindow.Modify("t_outDate.text='" + m_objViewer.strOutDate + "'");
            m_objViewer.datWindow.Modify("t_VENDOR.text='" + m_objViewer.strVENDOR + "'");
            m_objViewer.datWindow.Modify("m_txtroom.text='" + RoomName + "'");
            m_objViewer.datWindow.Modify("m_txtman2.text='" + m_objCurrentSubArr.m_strASKERName + "'");
            m_objViewer.datWindow.Modify("m_txtman.text='" + m_objCurrentSubArr.m_strASKERName + "'");

            int m_intShow;
            clsDcl_Purchase_DetailReport m_objDon = new clsDcl_Purchase_DetailReport();

            m_objDon.m_lngGetIfShowInfo(out m_intShow);
            if (m_intShow == 0)
            {
                m_objViewer.datWindow.Modify("t_info.text=''");
            }

            m_objViewer.dtb = dtb;
            return(1);
        }
Exemplo n.º 13
0
        /// <summary>
        /// 保存入库(即入即出)
        /// </summary>
        /// <param name="p_objPrincipal"></param>
        /// <param name="p_objMain">入库主记录</param>
        /// <param name="p_objNewDetailArr">新增的入库明细</param>
        /// <param name="p_objModifyDetailArr">修改的入库明细</param>
        /// <param name="p_objAllDetailArr">所有入库明细</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>
        /// <param name="p_objOutMain">出库主表内容</param>
        /// <param name="p_objOldDetailArr">旧出库明细</param>
        /// <param name="p_objNewOutDetailArr">新出库明细</param>
        /// <param name="p_lngIsAddNew">是否新添记录</param>
        /// <returns></returns>
        internal long m_lngSaveInStorage(clsMS_InStorage_VO p_objMain, ref clsMS_InStorageDetail_VO[] p_objNewDetailArr, clsMS_InStorageDetail_VO[] p_objModifyDetailArr, clsMS_InStorageDetail_VO[] p_objAllDetailArr,
                                         clsMS_StorageDetail[] p_objStDetailArr, bool p_blnIsAddNew, bool p_blnHasCommit, bool p_blnIsCommit, bool p_blnIsImmAccount, out long p_lngMainSEQ, out string p_strInStorageID, ref clsMS_OutStorage_VO p_objOutMain, clsMS_OutStorageDetail_VO[] p_objOldDetailArr, ref clsMS_OutStorageDetail_VO[] p_objNewOutDetailArr, bool p_lngIsAddNew)
        {
            long lngRes = 0;

            com.digitalwave.iCare.middletier.MedicineStoreService.clsInStorageSVC objSvc =
                (com.digitalwave.iCare.middletier.MedicineStoreService.clsInStorageSVC)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.MedicineStoreService.clsInStorageSVC));
            lngRes = objSvc.m_lngSaveInStorage(objPrincipal, p_objMain, ref p_objNewDetailArr, p_objModifyDetailArr, p_objAllDetailArr, p_objStDetailArr, p_blnIsAddNew, p_blnHasCommit, p_blnIsCommit, p_blnIsImmAccount, out p_lngMainSEQ, out p_strInStorageID, ref p_objOutMain, p_objOldDetailArr, ref p_objNewOutDetailArr, p_lngIsAddNew);
            return(lngRes);
        }
Exemplo n.º 14
0
        /// <summary>
        /// 修改出库
        /// </summary>
        internal void m_mthModify(out clsMS_OutStorage_VO p_objMain, out clsMS_OutStorageDetail_VO[] p_objDetail)
        {
            p_objMain   = null;
            p_objDetail = null;

            #region 主表
            clsMS_OutStorage_VO objMain = null;
            if (m_objViewer.m_dgvMainInfo.SelectedRows.Count == 1)
            {
                DataRowView drvMain = m_objViewer.m_dtvCurrentMainVienPage1[m_objViewer.m_dgvMainInfo.SelectedRows[0].Index];
                objMain = new clsMS_OutStorage_VO();
                DateTime dtmTemp = DateTime.MinValue;
                if (DateTime.TryParse(drvMain["ASKDATE_DAT"].ToString(), out dtmTemp))
                {
                    objMain.m_dtmASKDATE_DAT = dtmTemp;
                }
                if (DateTime.TryParse(drvMain["OUTSTORAGEDATE_DAT"].ToString(), out dtmTemp))
                {
                    objMain.m_dtmOutStorageDate = dtmTemp;
                }
                else
                {
                    objMain.m_dtmOutStorageDate = DateTime.Now;
                }
                if (DateTime.TryParse(drvMain["EXAMDATE_DAT"].ToString(), out dtmTemp))
                {
                    objMain.m_dtmEXAMDATE_DAT = dtmTemp;
                }
                if (DateTime.TryParse(drvMain["INACCOUNTDATE_DAT"].ToString(), out dtmTemp))
                {
                    objMain.m_dtmINACCOUNTDATE_DAT = dtmTemp;
                }
                objMain.m_intFORMTYPE_INT       = Convert.ToInt32(drvMain["FORMTYPE"]);
                objMain.m_intOutStorageTYPE_INT = Convert.ToInt32(drvMain["OUTSTORAGETYPE_INT"]);
                objMain.m_intSTATUS             = Convert.ToInt32(drvMain["STATUS"]);
                objMain.m_lngSERIESID_INT       = Convert.ToInt64(drvMain["SERIESID_INT"]);
                objMain.m_strASKDEPT_CHR        = drvMain["ASKDEPT_CHR"].ToString().Trim();
                objMain.m_strASKDEPTName        = drvMain["askdeptname"].ToString();
                objMain.m_strASKERID_CHR        = drvMain["ASKERID_CHR"].ToString();
                objMain.m_strASKERName          = drvMain["askername"].ToString();
                objMain.m_strASKID_VCHR         = drvMain["ASKID_VCHR"].ToString();
                objMain.m_strCOMMENT_VCHR       = drvMain["COMMENT_VCHR"].ToString();
                objMain.m_strEXAMERID_CHR       = drvMain["EXAMERID_CHR"].ToString();
                objMain.m_strEXAMERName         = drvMain["examername"].ToString();
                objMain.m_strEXPORTDEPT_CHR     = drvMain["EXPORTDEPT_CHR"].ToString();
                objMain.m_strINACCOUNTID_CHR    = drvMain["INACCOUNTID_CHR"].ToString();
                objMain.m_strOUTSTORAGEID_VCHR  = drvMain["OUTSTORAGEID_VCHR"].ToString();
                objMain.m_strPARENTNID          = drvMain["PARENTNID"].ToString();
                objMain.m_strSTORAGEID_CHR      = m_objViewer.m_strStorageID;
            }

            if (objMain == null)
            {
                return;
            }
            p_objMain = objMain;
            #endregion

            #region 子表
            clsMS_OutStorageDetail_VO[] objDetailArr = null;
            DataView dvSub = m_objViewer.m_dgvSubInfo.DataSource as DataView;
            if (dvSub != null && dvSub.Count > 0)
            {
                DataRowView drvTemp = null;
                objDetailArr = new clsMS_OutStorageDetail_VO[dvSub.Count];

                for (int iRow = 0; iRow < dvSub.Count; iRow++)
                {
                    drvTemp            = dvSub[iRow];
                    objDetailArr[iRow] = new clsMS_OutStorageDetail_VO();
                    objDetailArr[iRow].m_dblNETAMOUNT_INT      = Convert.ToDouble(drvTemp["NETAMOUNT_INT"]);
                    objDetailArr[iRow].m_dcmCALLPRICE_INT      = Convert.ToDecimal(drvTemp["CALLPRICE_INT"]);
                    objDetailArr[iRow].m_dcmRETAILPRICE_INT    = Convert.ToDecimal(drvTemp["RETAILPRICE_INT"]);
                    objDetailArr[iRow].m_dcmWHOLESALEPRICE_INT = Convert.ToDecimal(drvTemp["WHOLESALEPRICE_INT"]);
                    objDetailArr[iRow].m_dtmINSTORAGEDATE_DAT  = Convert.ToDateTime(drvTemp["instoragedate_dat"]);
                    objDetailArr[iRow].m_dtmValidperiod_dat    = Convert.ToDateTime(drvTemp["validperiod_dat"]);
                    objDetailArr[iRow].m_lngSERIESID_INT       = Convert.ToInt64(drvTemp["SERIESID_INT"]);
                    objDetailArr[iRow].m_lngSERIESID2_INT      = Convert.ToInt64(drvTemp["SERIESID2_INT"]);
                    objDetailArr[iRow].m_strINSTORAGEID_VCHR   = drvTemp["INSTORAGEID_VCHR"].ToString();
                    objDetailArr[iRow].m_strLOTNO_VCHR         = drvTemp["LOTNO_VCHR"].ToString();
                    objDetailArr[iRow].m_strMEDICINEID_CHR     = drvTemp["MEDICINEID_CHR"].ToString();
                    objDetailArr[iRow].m_strMEDICINENAME_VCH   = drvTemp["MEDICINENAME_VCH"].ToString();
                    objDetailArr[iRow].m_strMEDSPEC_VCHR       = drvTemp["MEDSPEC_VCHR"].ToString();
                    objDetailArr[iRow].m_strOPUNIT_CHR         = drvTemp["OPUNIT_CHR"].ToString();
                    objDetailArr[iRow].m_strProductorID_chr    = drvTemp["productorid_chr"].ToString();
                    objDetailArr[iRow].m_strVENDORID_CHR       = drvTemp["VENDORID_CHR"].ToString();
                    objDetailArr[iRow].m_strVendorName         = drvTemp["vendorname_vchr"].ToString();
                    if (drvTemp["askamount"] != DBNull.Value)
                    {
                        objDetailArr[iRow].m_dblAskAmount = Convert.ToDouble(drvTemp["askamount"]);
                    }
                    //if (drvTemp["inmoney"] != DBNull.Value)
                    //{
                    //    objDetailArr[iRow].m_dcmBuyInMoney = Convert.ToDecimal(drvTemp["inmoney"]);
                    //}
                    //if (drvTemp["retailmoney"] != DBNull.Value)
                    //{
                    //    objDetailArr[iRow].m_dcmRetailMoney = Convert.ToDecimal(drvTemp["retailmoney"]);
                    //}
                    if (drvTemp["realgross_int"] != DBNull.Value)
                    {
                        objDetailArr[iRow].m_dblRealGross = Convert.ToDouble(drvTemp["realgross_int"]);
                    }
                    if (drvTemp["availagross_int"] != DBNull.Value)
                    {
                        objDetailArr[iRow].m_dblAvailaGross = Convert.ToDouble(drvTemp["availagross_int"]);
                    }
                    objDetailArr[iRow].m_strStorageUnit        = drvTemp["storageunit"].ToString();
                    objDetailArr[iRow].m_strMEDICINECode       = drvTemp["assistcode_chr"].ToString();
                    objDetailArr[iRow].m_strRejectReason       = drvTemp["REJECTREASON"].ToString();
                    objDetailArr[iRow].m_strMedicineTypeID_chr = drvTemp["medicinetypeid_chr"].ToString();
                    objDetailArr[iRow].m_decPackQty            = Convert.ToDecimal(drvTemp["packqty_dec"]);
                }
            }
            p_objDetail = objDetailArr;
            #endregion
        }
Exemplo n.º 15
0
        /// <summary>
        /// 审核入库单
        /// </summary>
        /// <param name="p_objStDetailArr">库存明细表内容</param>
        /// <param name="p_strEmpID">审核人ID</param>
        /// <param name="p_dtmCommitDate">审核日期</param>
        /// <param name="p_lngOutSEQ">入库主表序列</param>
        /// <param name="p_intFormType">入库类型</param>
        /// <param name="p_strInStorageID">入库单据号</param>
        /// <param name="p_blnIsImmAccount">是否审核即入帐</param>
        /// <returns></returns>
        internal long m_lngCommitInStorage(clsMS_StorageDetail[] p_objStDetailArr, string p_strEmpID, DateTime p_dtmCommitDate, long p_lngOutSEQ, int p_intFormType, string p_strInStorageID, bool p_blnIsImmAccount, ref clsMS_OutStorage_VO p_objOutMain, clsMS_OutStorageDetail_VO[] p_objOldDetailArr, ref clsMS_OutStorageDetail_VO[] p_objNewOutDetailArr, bool p_lngIsAddNew)
        {
            long lngRes = 0;

            com.digitalwave.iCare.middletier.MedicineStoreService.clsInStorageSVC objSvc =
                (com.digitalwave.iCare.middletier.MedicineStoreService.clsInStorageSVC)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.MedicineStoreService.clsInStorageSVC));
            lngRes = objSvc.m_lngCommitInStorage(objPrincipal, p_objStDetailArr, p_strEmpID, p_dtmCommitDate, p_lngOutSEQ, p_intFormType, p_strInStorageID, p_blnIsImmAccount, ref p_objOutMain, null, ref p_objNewOutDetailArr, p_lngIsAddNew);
            return(lngRes);
        }
Exemplo n.º 16
0
 /// <summary>
 /// 药库出库
 /// </summary>
 /// <param name="p_strStorageID">仓库ID</param>
 /// <param name="p_intOutStorageType">出库类型</param>
 /// <param name="p_intFormType">单据类型</param>
 /// <param name="p_objMain">主表内容</param>
 /// <param name="p_objDetailArr">子表内容</param>
 /// <param name="p_intSelectedRow">子表选中行索引</param>
 public frmMedicineOut(string p_strStorageID, int p_intOutStorageType, int p_intFormType, clsMS_OutStorage_VO p_objMain, clsMS_OutStorageDetail_VO[] p_objDetailArr, int p_intSelectedRow)
     : this(p_strStorageID, p_intOutStorageType, p_intFormType)
 {
     ((clsCtl_MedicineOut)objController).m_mthSetOutStorageToUI(p_objMain, p_objDetailArr, p_intSelectedRow);
 }
Exemplo n.º 17
0
        /// <summary>
        /// 审核时新增到药库入库单

        /// </summary>
        /// <param name="objMainTable"></param>
        /// <param name="objSubTable"></param>
        internal void m_mthAddNewDrugStore(clsMS_OutStorage_VO objMainTable, clsMS_OutStorageDetail_VO[] objSubTable)
        {
            com.digitalwave.iCare.middletier.MedicineStoreService.clsOutStorageSVC objSvc =
                (com.digitalwave.iCare.middletier.MedicineStoreService.clsOutStorageSVC)com.digitalwave.iCare.common.clsObjectGenerator.objCreatorObjectByType(typeof(com.digitalwave.iCare.middletier.MedicineStoreService.clsOutStorageSVC));
            objSvc.m_lngAddNewDrugStore(objPrincipal, objMainTable, objSubTable);
        }