/// <summary>
        /// 获取入库主表内容
        /// </summary>
        /// <returns></returns>
        private clsDS_Instorage_VO m_objGetMainISVO()
        {
            clsDS_Instorage_VO m_objCurrentMain = new clsDS_Instorage_VO();

            m_objCurrentMain.m_datMAKEORDER_DAT = clsPub.CurrentDateTimeNow;
            m_objCurrentMain.m_strMAKERID_CHR   = this.m_objViewer.LoginInfo.m_strEmpID;
            m_objCurrentMain.m_intSTATUS        = 2;
            //1、请领入库 2、药房自身入库(来源部门是本药房)  3、药房借调(来源部门是其它药房) 4、科室借调(来源部门除了药房以外的部门) 5、盘盈,
            m_objCurrentMain.m_intFORMTYPE_INT = 1;
            clsDcl_MakeOutStorageOrder objmain = new clsDcl_MakeOutStorageOrder();
            int intTypeCode;

            objmain.m_lngGetTypeCodeByName(0, "正常入库", out intTypeCode);
            m_objCurrentMain.m_strTYPECODE_VCHR     = intTypeCode.ToString();
            m_objCurrentMain.m_strOUTSTORAGEID_VCHR = this.m_objViewer.m_dgvOutStorageMain.SelectedRows[0].Cells["m_txtOutStorageid"].Value.ToString();
            if (this.m_objViewer.m_dgvOutStorageMain.SelectedRows[0].Cells["instoreid_vchr"].Value != null)
            {
                m_objCurrentMain.m_strINDRUGSTOREID_VCHR = this.m_objViewer.m_dgvOutStorageMain.SelectedRows[0].Cells["instoreid_vchr"].Value.ToString();
            }
            m_objCurrentMain.m_datSTORAGEEXAM_DATE    = Convert.ToDateTime(this.m_objViewer.m_dgvOutStorageMain.SelectedRows[0].Cells["m_txtExamDate"].Value.ToString());
            m_objCurrentMain.m_datDRUGSTOREEXAM_DATE  = clsPub.CurrentDateTimeNow;
            m_objCurrentMain.m_strSTORAGEEXAMID_CHR   = this.m_objViewer.m_dgvOutStorageMain.SelectedRows[0].Cells["m_txtExamerid"].Value.ToString();
            m_objCurrentMain.m_strDRUGSTOREEXAMID_CHR = this.m_objViewer.LoginInfo.m_strEmpID;
            m_objCurrentMain.m_strDRUGSTOREID_INT     = this.m_objViewer.m_dgvOutStorageMain.SelectedRows[0].Cells["m_txtAskDeptid"].Value.ToString();
            m_objCurrentMain.m_strBORROWDEPT_CHR      = this.m_objViewer.m_dgvOutStorageMain.SelectedRows[0].Cells["m_txtStorageID"].Value.ToString();
            m_objCurrentMain.m_strASKID_VCHR          = this.m_objViewer.m_dgvOutStorageMain.SelectedRows[0].Cells["m_txtAskid"].Value.ToString();
            return(m_objCurrentMain);
        }
Beispiel #2
0
        /// <summary>
        /// 根据类型名称获取出入库类型ID
        /// </summary>
        /// <param name="p_intFlag">0-入库;1-出库</param>
        /// <param name="p_strTypeName">类型名称</param>
        /// <param name="p_intTypeCode"></param>
        internal static void m_lngGetTypeCodeByName(int p_intFlag, string p_strTypeName, out int p_intTypeCode)
        {
            p_intTypeCode = 0;
            clsDcl_MakeOutStorageOrder m_objDomain = new clsDcl_MakeOutStorageOrder();

            m_objDomain.m_lngGetTypeCodeByName(p_intFlag, p_strTypeName, out p_intTypeCode);
        }
 /// <summary>
 /// 构造函数
 /// </summary>
 public clsCtl_AskForMedManage()
 {
     m_objDomain           = new clsDcl_AskForMedicine();
     m_objDomainDetail     = new clsDcl_AskForMedDetail();
     m_objDomainOutStorage = new clsDcl_MakeOutStorageOrder();
     objDomainInStorage    = new clsDcl_Instorage();
 }