Пример #1
0
        /// <summary>
        /// 记录日志--普通
        /// </summary>
        public void WriteLog(string form, string str_error, string czy)
        {
            string logbz = xt.GetXtCsz("writelogpt");

            if (logbz == "1")  //记录
            {
                base.SqlDBAgent.WriteLog(form, str_error, czy, "操作类日志");
            }
            else   //不记录
            {
            }
        }
Пример #2
0
        private void Form_login_zycmp_Load(object sender, EventArgs e)
        {
            string str_tjdw = xtbiz.GetXtCsz("TjDwMc");//单位名称

            Program.reg_dwmc = str_tjdw;
            Program.sfzc     = true;
        }
Пример #3
0
        private void MainForm_Load(object sender, EventArgs e)
        {
            this.BackgroundImage = Image.FromFile(Application.StartupPath + @"\img\main.jpg");
            //pictureBox1.Image = Image.FromFile(Application.StartupPath + @"\img\main.jpg");
            this.BackgroundImageLayout = ImageLayout.Stretch;

            //获取系统标题栏名称
            xtBiz  xtbiz  = new xtBiz();
            string xtxsmc = xtbiz.GetXtCsz("Xtdlxsmc");

            if (xtxsmc.Trim() == "" || xtxsmc == null)
            {
                xtxsmc = "体检管理信息平台";
            }

            if (!Program.sfzc)
            {
                Form frm = new Form_reg();
                frm.ShowDialog();
            }
            else
            {
                this.Text = "【" + Program.yljgmc + "】" + xtxsmc;
            }
            //toolStripStatusLabel1.Text = toolStripStatusLabel1.Text + Program.ksmc;
            toolStripStatusLabel2.Text = toolStripStatusLabel2.Text + Program.username;
            toolStripStatusLabel3.Text = toolStripStatusLabel3.Text + DateTime.Now;
            addMenu(this);
        }
Пример #4
0
        /// <summary>
        /// 赋值系统共用参数
        /// </summary>
        private void BindData()
        {
            DataTable dt = new DataTable();

            dt = loginbiz.GetCzyInfo(txt_username.Text.Trim());

            //ksid
            Program.czybm    = dt.Rows[0]["czybm"].ToString();
            Program.czylx    = dt.Rows[0]["rysx"].ToString().Trim();
            Program.username = dt.Rows[0]["czymc"].ToString().Trim();
            Program.userid   = dt.Rows[0]["czyid"].ToString().Trim();
            Program.password = dt.Rows[0]["mm"].ToString();
            Program.yhzid    = Convert.ToInt32(dt.Rows[0]["yhzid"]);
            Program.ksid     = dt.Rows[0]["ksid"].ToString();
            //Program.ksmc = dt.Rows[0]["ksmc"].ToString().Trim();
            //Program.kssx = dt.Rows[0]["kssx"].ToString().Trim();
            Program.yljgmc   = xtbiz.GetXtCsz("TjDwMc");
            Program.hostname = ma.HostName();                         //主机名
            Program.hostip   = GetIP();                               //IP
        }
Пример #5
0
 public RdlcPrint()
 {
     if (Program.sfzc)
     {
         strTitle = xtBiz.GetXtCsz("TjDwMc");
     }
 }