示例#1
0
        public void InitializeProperty(IDataAccess sqlHelper, ICustomMessageBox messageBox)
        {
            showListWindow1.SqlHelper = sqlHelper;
            m_MessageBox   = messageBox;
            m_UsageBook    = new OrderUsageBook();
            m_FrenqucyBook = new OrderFrequencyBook();

            CreateSuiteTable(sqlHelper);
        }
示例#2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="app"></param>
        /// <param name="queryOnly">是否仅是查询功能(影响到初始化数据的处理)</param>
        public SuiteOrderHandle(IEmrHost app, bool queryOnly)
        {
            m_SqlExecutor  = app.SqlHelper;
            m_MessageBox   = app.CustomMessageBox;
            m_GenShortCode = new GenerateShortCode(app.SqlHelper);
            m_QueryOnly    = queryOnly;

            InsertMasterParas[3].Value = app.User.CurrentDeptId;
            InsertMasterParas[4].Value = app.User.CurrentWardId;
            InsertMasterParas[5].Value = app.User.DoctorId;

            //GenerateSuiteData();
            //InitializeTableSchema();
        }
示例#3
0
        public void InitializeOrderSuiteChoiceForm(IDataAccess sqlHelper, ICustomMessageBox messageBox, SuiteOrderHandle suiteHelper, bool editable)
        {
            CustomInitialize(_app);
            m_SqlExecutor = sqlHelper;
            m_MessageBox  = messageBox;

            m_SuiteHelper            = suiteHelper;
            Editable                 = editable;
            navCtrlOrderSuit.Enabled = editable;



            if (Editable)
            {
                navCtrlOrderSuit_ActiveGroupChanged(this, new NavBarGroupEventArgs(navGroupDept));
            }

            BindImageToNavGroup();
        }