Exemplo n.º 1
0
        public Frmxghtdw(Guid ghxxid)
        {
            InitializeComponent();

            FunAddComboBox.AddHtdwLx(false, cmbhtdwlx, InstanceForm.BDatabase);

            _ghxxid = ghxxid;

            string    ssql = "select * from vi_mz_ghxx where ghxxid='" + ghxxid + "'";
            DataTable tb   = InstanceForm.BDatabase.GetDataTable(ssql);

            if (tb.Rows.Count == 0)
            {
                butok.Enabled = false; return;
            }

            cmbhtdwlx.SelectedValue = Convertor.IsNull(tb.Rows[0]["htdwlx"].ToString(), "0");
            txthtdwmc.Tag           = Convertor.IsNull(tb.Rows[0]["htdwid"].ToString(), "0");
            txthtdwmc.Text          = Convertor.IsNull(InstanceForm.BDatabase.GetDataResult("select dwmc from jc_htdw where id=" + Convertor.IsNull(tb.Rows[0]["htdwid"].ToString(), "0") + " "), "");

            old_htdwlx = Convertor.IsNull(tb.Rows[0]["htdwlx"].ToString(), "0") == "0" ? "" : Convertor.IsNull(cmbhtdwlx.Text, "");
            old_htdwmc = Convertor.IsNull(txthtdwmc.Text, "");

            if (tb.Rows[0]["bqxghbz"].ToString() == "1")
            {
                butok.Enabled = false; return; groupBox1.Text = "修改  病人已退签不能修改";
            }
        }
Exemplo n.º 2
0
        public FrmBaseReportHtdw(MenuTag menuTag, string chineseName, Form mdiParent, string reportFilename)
        {
            InitializeComponent();

            FunAddComboBox.AddHtdwLx(false, cmbdwlx, InstanceForm.BDatabase);

            cmbdwlx.SelectedValue = 1;

            base.InitForm(menuTag, chineseName, mdiParent, reportFilename);
        }
Exemplo n.º 3
0
        private void Frmxjsrtj_Load(object sender, EventArgs e)
        {
            FunAddComboBox.AddOperator(true, cmbuser, InstanceForm.BDatabase);
            this.WindowState = FormWindowState.Maximized;

            dtp1.Value = Convert.ToDateTime(DateManager.ServerDateTimeByDBType(InstanceForm.BDatabase).ToShortDateString() + " 00:00:00");
            dtp2.Value = Convert.ToDateTime(DateManager.ServerDateTimeByDBType(InstanceForm.BDatabase).ToShortDateString() + " 23:59:59");

            FunAddComboBox.AddJgbm(true, cmbjgbm, InstanceForm.BDatabase);
            cmbjgbm.SelectedValue = TrasenFrame.Forms.FrmMdiMain.Jgbm;
            FunAddComboBox.AddHtdwLx(true, cmbhtdwlx, InstanceForm.BDatabase);
            butprint.Visible = true;
        }