コード例 #1
0
ファイル: AfterVisit_HQ.cs プロジェクト: JourneyChen88/SSMZ
        /// <summary>
        /// 赋值
        /// </summary>
        private void LodSQFS()
        {
            DataTable dt = _AfterVisitDal.GetAfterVisit_YS_byMzjldid(MzjldId);

            if (dt.Rows.Count > 0)
            {
                DataRow dr = dt.Rows[0];
                cmbmzfs.Text = dr["mzfs"].ToString();
                if (dr["Mzsj"].ToString() != "")
                {
                    txtMzsj.Text = dr["Mzsj"].ToString();
                }
                cmbYishi.Text   = dr["Yishi"].ToString();
                cmbHuxi.Text    = dr["Huxi"].ToString();
                cmbXunhuan.Text = dr["Xunhuan"].ToString();
                if (Convert.ToString(dr["Shzysx"]).Contains("1"))
                {
                    Shzysx1.Checked = true;
                }
                if (Convert.ToString(dr["Shzysx"]).Contains("2"))
                {
                    Shzysx2.Checked = true;
                }
                if (Convert.ToString(dr["Shzysx"]).Contains("3"))
                {
                    Shzysx3.Checked = true;
                }
                txtQt.Text      = dr["Qt"].ToString();
                cmbmzxgbfz.Text = dr["mzxgbfz"].ToString();
                txtMs.Text      = dr["Ms"].ToString();
                txtcl.Text      = dr["cl"].ToString();
                txtjg.Text      = dr["jg"].ToString();
                if (dr["Mzys"].ToString() != "")
                {
                    cmbMzys.Text = dr["Mzys"].ToString();
                }
                dtVisitDate.Text = dr["VisitDate"].ToString();
                if (Convert.ToString(dr["IsRead"]) == "0")
                {
                    btnSave.Enabled = true;
                    isRead          = false;
                }
                if (Convert.ToString(dr["IsRead"]) == "1")
                {
                    isRead          = true;
                    btnSave.Enabled = false;
                }
                UserRoleBll _UserRoleBll = new UserRoleBll();
                string      jurisdiction = _UserRoleBll.GetUserRole(Program.customer);
                if (jurisdiction.Contains("8"))
                {
                    btnJS.Visible = true;
                }
                else
                {
                    btnJS.Visible = false;
                }
            }
        }
コード例 #2
0
ファイル: MZZQTYS.cs プロジェクト: JourneyChen88/SSMZ
        /// <summary>
        /// 赋值
        /// </summary>
        private void LodSQFS()
        {
            DataTable dt = _MzzqtysDal.GetMZZQTYS_YS(PatId);

            if (dt.Rows.Count > 0)
            {
                DataRow dr = dt.Rows[0];
                txtYsjy.Text     = dr["Ysjy"].ToString();
                txtHuanb.Text    = dr["Huanb"].ToString();
                txtNxss.Text     = dr["Nxss"].ToString();
                txtTsfx.Text     = dr["Tsfx"].ToString();
                txtTsfx.Text     = dr["Tsfx"].ToString();
                cmbMzff.Text     = dr["Mzff"].ToString();
                txtHzqm1.Text    = dr["Hzqm1"].ToString();
                dtHzdate1.Text   = dr["Hzdate1"].ToString();
                cmbMzty.Text     = dr["Mzty"].ToString();
                txtHzqm2.Text    = dr["Hzqm2"].ToString();
                dtHzdate2.Text   = dr["Hzdate2"].ToString();
                txtJsqm.Text     = dr["Jsqm"].ToString();
                txtYhzgx.Text    = dr["Yhzgx"].ToString();
                dtJsdate.Text    = dr["Jsdate"].ToString();
                txtYsqm.Text     = dr["Ysqm"].ToString();
                dtQmrq.Text      = dr["Qmrq"].ToString();
                dtVisitDate.Text = dr["VisitDate"].ToString();
                if (Convert.ToString(dr["IsRead"]) == "0")
                {
                    btnSave.Enabled = true;
                    isRead          = false;
                }
                if (Convert.ToString(dr["IsRead"]) == "1")
                {
                    isRead          = true;
                    btnSave.Enabled = false;
                }
                UserRoleBll _UserRoleBll = new UserRoleBll();
                string      jurisdiction = _UserRoleBll.GetUserRole(Program.customer);
                if (jurisdiction.Contains("8"))
                {
                    btnJS.Visible = true;
                }
                else
                {
                    btnJS.Visible = false;
                }
            }
        }
コード例 #3
0
        /// <summary>
        /// 赋值
        /// </summary>
        private void LodAfterAnalgesia()
        {
            DataTable dt = _ShztDal.GetAfterAnalgesia(MZID);

            if (dt.Rows.Count > 0)
            {
                DataRow dr = dt.Rows[0];
                txtSsmc.Text     = dr["Ssmc"].ToString();
                cmbMzff.Text     = dr["Mzff"].ToString();
                cmbZtff.Text     = dr["Ztff"].ToString();
                txtZtpf.Text     = dr["Ztpf"].ToString();
                lineZTsj.Text    = dr["ZTsj"].ToString();
                lineZTGysd.Text  = dr["ZTGysd"].ToString();
                lineZTDczj.Text  = dr["ZTDczj"].ToString();
                lineZTSdsj.Text  = dr["ZTSdsj"].ToString();
                dtZTKssj.Text    = dr["ZTKssj"].ToString();
                dtZTjssj.Text    = dr["ZTjssj"].ToString();
                txtBfzcl.Text    = dr["Bfzcl"].ToString();
                dtVisitDate.Text = dr["VisitDate"].ToString();
                if (Convert.ToString(dr["IsRead"]) == "0")
                {
                    btnSave.Enabled = true;
                    isRead          = false;
                }
                if (Convert.ToString(dr["IsRead"]) == "1")
                {
                    isRead          = true;
                    btnSave.Enabled = false;
                }
                string jurisdiction = _UserRoleBll.GetUserRole(Program.customer);
                if (jurisdiction.Contains("8"))
                {
                    btnJS.Visible = true;
                }
                else
                {
                    btnJS.Visible = false;
                }
            }
        }
コード例 #4
0
ファイル: ZTZLZQTYS.cs プロジェクト: JourneyChen88/SSMZ
        /// <summary>
        /// 赋值
        /// </summary>
        private void LodSQFS()
        {
            DataTable dt = _ZtzltysDal.GetZTZLZQTYS_YS(_PatId);

            if (dt.Rows.Count > 0)
            {
                DataRow dr = dt.Rows[0];
                tbSQZD.Text      = dr["Zd"].ToString();
                txtZT.Text       = dr["ZTfs"].ToString();
                txtHzqm2.Text    = dr["Hzqm"].ToString();
                txtJsqm.Text     = dr["Jsqm"].ToString();
                txtYhzgx.Text    = dr["Yhzgx"].ToString();
                txtMZYsqm.Text   = dr["MZYsqm"].ToString();
                txtZLysqm.Text   = dr["ZLysqm"].ToString();
                dtVisitDate.Text = dr["VisitDate"].ToString();
                if (Convert.ToString(dr["IsRead"]) == "0")
                {
                    btnSave.Enabled = true;
                    isRead          = false;
                }
                if (Convert.ToString(dr["IsRead"]) == "1")
                {
                    isRead          = true;
                    btnSave.Enabled = false;
                }
                UserRoleBll _UserRoleBll = new UserRoleBll();
                string      jurisdiction = _UserRoleBll.GetUserRole(Program.customer);
                if (jurisdiction.Contains("8"))
                {
                    btnJS.Visible = true;
                }
                else
                {
                    btnJS.Visible = false;
                }
            }
        }
コード例 #5
0
        /// <summary>
        /// 窗体加载
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void main_Load(object sender, EventArgs e)
        {
            Application.AddMessageFilter(this);//禁止下拉框鼠标滚动

            this.Text += "(当前用户:  " + Program.customer.user_name + "+ 职称:" + Program.customer.position + ")";
            string jurisdiction = _UserRoleBll.GetUserRole(Program.customer);

            sqxxToolStripMenuItem.Visible = false;
            szxxToolStripMenuItem.Visible = false;
            shxxToolStripMenuItem.Visible = false;
            ypglToolStripMenuItem.Visible = false;
            ygxxToolStripMenuItem.Visible = false;
            xxcxToolStripMenuItem.Visible = false;
            sjwhToolStripMenuItem.Visible = false;
            qxglToolStripMenuItem.Visible = false;
            if (jurisdiction.Contains("0"))
            {
                sqxxToolStripMenuItem.Visible = true;
            }
            if (jurisdiction.Contains("1"))
            {
                szxxToolStripMenuItem.Visible = true;
            }
            if (jurisdiction.Contains("2"))
            {
                shxxToolStripMenuItem.Visible = true;
            }
            if (jurisdiction.Contains("3"))
            {
                ypglToolStripMenuItem.Visible = true;
            }
            if (jurisdiction.Contains("4"))
            {
                ygxxToolStripMenuItem.Visible = true;
            }
            if (jurisdiction.Contains("5"))
            {
                xxcxToolStripMenuItem.Visible = true;
            }
            if (jurisdiction.Contains("6"))
            {
                sjwhToolStripMenuItem.Visible = true;
            }
            if (jurisdiction.Contains("7"))
            {
                qxglToolStripMenuItem.Visible = true;
            }
            //if (!Program.jurisdiction[0]) { ((ToolStripMenuItem)menuStrip1.Items[0]).DropDownItems[0].Enabled = false; ((ToolStripMenuItem)menuStrip1.Items[0]).DropDownItems[0].Visible = false; }
            //if (!Program.jurisdiction[1]) { ((ToolStripMenuItem)menuStrip1.Items[0]).DropDownItems[1].Enabled = false; ((ToolStripMenuItem)menuStrip1.Items[0]).DropDownItems[1].Visible = false; }
            //if (!Program.jurisdiction[0] && !Program.jurisdiction[1])
            //{ menuStrip1.Items[0].Enabled = false; menuStrip1.Items[0].Visible = false; }
            //if (!Program.jurisdiction[2]) { ((ToolStripMenuItem)menuStrip1.Items[1]).DropDownItems[0].Enabled = false; ((ToolStripMenuItem)menuStrip1.Items[1]).DropDownItems[0].Visible = false; }
            //if (!Program.jurisdiction[3]) { ((ToolStripMenuItem)menuStrip1.Items[1]).DropDownItems[1].Enabled = false; ((ToolStripMenuItem)menuStrip1.Items[1]).DropDownItems[1].Visible = false; }
            //if (!Program.jurisdiction[4]) { ((ToolStripMenuItem)menuStrip1.Items[1]).DropDownItems[2].Enabled = false; ((ToolStripMenuItem)menuStrip1.Items[1]).DropDownItems[2].Visible = false; }
            //if (!Program.jurisdiction[2] && !Program.jurisdiction[3] && !Program.jurisdiction[4])
            //{ menuStrip1.Items[1].Enabled = false; menuStrip1.Items[1].Visible = false; }
            //if (!Program.jurisdiction[5]) { ((ToolStripMenuItem)menuStrip1.Items[2]).DropDownItems[0].Enabled = false; ((ToolStripMenuItem)menuStrip1.Items[2]).DropDownItems[0].Visible = false; }
            //if (!Program.jurisdiction[6]) { ((ToolStripMenuItem)menuStrip1.Items[2]).DropDownItems[1].Enabled = false; ((ToolStripMenuItem)menuStrip1.Items[2]).DropDownItems[1].Visible = false; }
            //if (!Program.jurisdiction[7]) { ((ToolStripMenuItem)menuStrip1.Items[2]).DropDownItems[2].Enabled = false; ((ToolStripMenuItem)menuStrip1.Items[2]).DropDownItems[2].Visible = false; }
            //if (!Program.jurisdiction[5] && !Program.jurisdiction[6] && !Program.jurisdiction[7])
            //{ menuStrip1.Items[2].Enabled = false; menuStrip1.Items[2].Visible = false; }
            //if (!Program.jurisdiction[8])
            //{ menuStrip1.Items[3].Enabled = false; menuStrip1.Items[3].Visible = false; }
            //((ToolStripMenuItem)menuStrip1.Items[4]).DropDownItems[0].Visible = false;
            //((ToolStripMenuItem)menuStrip1.Items[4]).DropDownItems[1].Visible = false;
            //((ToolStripMenuItem)menuStrip1.Items[4]).DropDownItems[2].Visible = false;
            //((ToolStripMenuItem)menuStrip1.Items[4]).DropDownItems[3].Visible = false;
            //((ToolStripMenuItem)menuStrip1.Items[4]).DropDownItems[4].Visible = false;
            //((ToolStripMenuItem)menuStrip1.Items[4]).DropDownItems[5].Visible = false;
            //((ToolStripMenuItem)menuStrip1.Items[4]).DropDownItems[6].Visible = false;
            //((ToolStripMenuItem)menuStrip1.Items[4]).DropDownItems[7].Visible = false;
            //((ToolStripMenuItem)menuStrip1.Items[4]).DropDownItems[8].Visible = false;
            //((ToolStripMenuItem)menuStrip1.Items[4]).DropDownItems[9].Visible = false;
            //((ToolStripMenuItem)menuStrip1.Items[8]).DropDownItems[0].Visible = false;
        }