예제 #1
0
        /// <summary>
        /// 显示明细窗体
        /// </summary>
        /// <param name="intShowType">窗体显示类型0:新制,1:修改</param>
        public void m_mthFrmStoDetail(int intShowType)
        {
            frmStorageCheck_detail frmStoDetail = new frmStorageCheck_detail(m_objViewer.m_strStorageID);

            if (intShowType == 1)
            {
                if (m_objViewer.m_dgvMainInfo.SelectedRows.Count == 0)
                {
                    MessageBox.Show("请先选择一行盘点信息", "药品盘点", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    return;
                }
                DataRowView           drCurrent = m_objViewer.m_dgvMainInfo.SelectedRows[0].DataBoundItem as DataRowView;
                clsMS_StorageCheck_VO objMain   = m_objMain(drCurrent.Row);
                frmStoDetail.m_objMain = objMain;
                frmStoDetail.dtbStorageCheck_detail = dtbStorageCheck_detail;
            }
            else
            {
                frmStoDetail.m_objMain = null;

                frmStoDetail.dtbStorageCheck_detail = new DataTable();
            }
            frmStoDetail.intShowType = intShowType;
            frmStoDetail.FormClosed += new FormClosedEventHandler(frmStoDetail_FormClosed);
            frmStoDetail.ShowDialog();
        }
예제 #2
0
        /// <summary>
        /// 修改盘点主表
        /// </summary>
        /// <param name="p_objSCVO">盘点主表信息</param>
        /// <returns></returns>
        internal long m_lngMofifyStorageCheck(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_lngMofifyStorageCheck(objPrincipal, p_objSCVO);
            return(lngRes);
        }
예제 #3
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);
        }
예제 #4
0
        /// <summary>
        /// 获取当前主记录

        /// </summary>
        /// <param name="p_drmain">数据</param>
        /// <returns></returns>
        private clsMS_StorageCheck_VO m_objMain(DataRow p_drmain)
        {
            if (p_drmain == null)
            {
                return(null);
            }
            clsMS_StorageCheck_VO objMain = new clsMS_StorageCheck_VO();

            objMain.m_dtmAskDate_DAT   = Convert.ToDateTime(p_drmain["askdate_dat"]);
            objMain.m_intStatus_INT    = Convert.ToInt32(p_drmain["status"]);
            objMain.m_strStorageID_CHR = m_objViewer.m_strStorageID;
            objMain.m_strAskerID_CHR   = p_drmain["askerid_chr"].ToString();
            objMain.m_strAskerName     = p_drmain["askername"].ToString();
            objMain.m_lngSeriesID_INT  = Convert.ToInt64(p_drmain["seriesid_int"]);
            objMain.m_dtmCheckDate     = Convert.ToDateTime(p_drmain["checkdate_dat"]);
            objMain.m_strCheckID_CHR   = p_drmain["checkid_chr"].ToString();
            return(objMain);
        }