예제 #1
0
        public frmBreakInput()
        {
            //
            // Windows 窗体设计器支持所必需的
            //
            InitializeComponent();

            //
            // TODO: 在 InitializeComponent 调用后添加任何构造函数代码
            //
            string m_strDeptID = "";
            string m_strEmpID  = this.LoginInfo.m_strEmpID;

            com.digitalwave.GUI_Base.clsController_Base         objCtlBase = new com.digitalwave.GUI_Base.clsController_Base();
            com.digitalwave.iCare.ValueObject.clsDepartmentVO[] objDept    = null;
            objCtlBase.m_objComInfo.m_mthGetDepartmentByUserID(m_strEmpID, out objDept);
            if (objDept != null)
            {
                for (int i = 0; i < objDept.Length; i++)
                {
                    if (objDept[i].intInPatientOrOutPatient == 0)
                    {
                        m_strDeptID = objDept[i].strDeptID;
                        break;
                    }
                }
            }

            m_objTemplate = new com.digitalwave.iCare.Template.Client.clsTemplateClient(this, this.LoginInfo.m_strEmpID, m_strDeptID);
        }
예제 #2
0
        private void frmMedicineUsageDetail_Load(object sender, System.EventArgs e)
        {
            if (m_blnPsFlag)
            {
                this.checkBox1.Enabled = true;
            }
            else
            {
                this.checkBox1.Enabled = false;
            }


            //if (lbeMedicine.Tag == null)
            //{
            //    MessageBox.Show("无传入项目ID");
            //    return;
            //}
            //this.Name = this.Name + lbeMedicine.Tag.ToString().Trim();
            //this.m_txtMedDetails.Name = this.m_txtMedDetails.Name + this.LoginInfo.m_strEmpID;

            clsDcl_DoctorWorkstation objSvc = new clsDcl_DoctorWorkstation();
//            long lngRes = objSvc.m_lngSetModeByItem(this.Name, "详细用法录入窗口", m_txtMedDetails.Name, "操作员(" + LoginInfo.m_strEmpName + ")详细用法模板");
            long lngRes = objSvc.m_lngSetModeByItem(this.Name, "详细用法录入窗口", m_txtMedDetails.Name, "详细用法模板");

            if (lngRes < 0)
            {
                MessageBox.Show("数据访问出错");
                return;
            }
            objSvc = null;

            #region mod
            string m_strDeptID = "";
            string m_strEmpID  = this.LoginInfo.m_strEmpID;

            com.digitalwave.GUI_Base.clsController_Base         objCtlBase = new com.digitalwave.GUI_Base.clsController_Base();
            com.digitalwave.iCare.ValueObject.clsDepartmentVO[] objDept    = null;
            objCtlBase.m_objComInfo.m_mthGetDepartmentByUserID(m_strEmpID, out objDept);
            if (objDept != null)
            {
                for (int i = 0; i < objDept.Length; i++)
                {
                    if (objDept[i].intInPatientOrOutPatient == 0)
                    {
                        m_strDeptID = objDept[i].strDeptID;
                        break;
                    }
                }
            }

            m_objTemplate = new com.digitalwave.iCare.Template.Client.clsTemplateClient(this, this.LoginInfo.m_strEmpID, m_strDeptID);
            #endregion
        }
예제 #3
0
파일: frmOPSApply.cs 프로젝트: iamwsx05/HIS
        private void frmOPSApply_Load(object sender, EventArgs e)
        {
            #region 模板
            string m_strDeptID = "";
            string m_strEmpID  = this.LoginInfo.m_strEmpID;
            com.digitalwave.GUI_Base.clsController_Base         objCtlBase = new com.digitalwave.GUI_Base.clsController_Base();
            com.digitalwave.iCare.ValueObject.clsDepartmentVO[] objDept    = null;
            objCtlBase.m_objComInfo.m_mthGetDepartmentByUserID(m_strEmpID, out objDept);
            if (objDept != null)
            {
                for (int i = 0; i < objDept.Length; i++)
                {
                    if (objDept[i].intInPatientOrOutPatient == 0)
                    {
                        m_strDeptID = objDept[i].strDeptID;
                        break;
                    }
                }
            }
            m_objTemplate = new com.digitalwave.iCare.Template.Client.clsTemplateClient(this, this.LoginInfo.m_strEmpID, m_strDeptID);
            #endregion
            this.txtAppHint.ContextMenu = this.contextMenu1;

            if (dirflag == 1)
            {
                btnFind.Enabled  = false;
                btnSave.Enabled  = false;
                btnPrint.Enabled = false;
            }
            else
            {
                ((clsCtl_OPSApply)this.objController).m_mthInit();
                ((clsCtl_OPSApply)this.objController).m_mthInitvalue();
                if (objOutops.chrgitem.Trim() != "")
                {
                    this.btnItem.Enabled = false;
                }
            }
        }