Exemplo n.º 1
0
        public Frmjmypcx(MenuTag menuTag, string chineseName, Form mdiParent)
            : this()
        {
            _menuTag     = menuTag;
            _chineseName = chineseName;
            _mdiParent   = mdiParent;
            this.Text    = chineseName;

            Yp.AddcmbWardDept(cmbbs1, 1, 0, InstanceForm.BDatabase, InstanceForm._menuTag.Jgbm);
            Yp.AddcmbYjks(true, cmbyjks, DeptType.药房, InstanceForm.BDatabase, InstanceForm._menuTag.Jgbm);

            cmbyjks.SelectedValue = InstanceForm.BCurrentDept.DeptId.ToString();
            if (cmbyjks.SelectedIndex == -1)
            {
                cmbyjks.SelectedIndex = 0;
            }

            //CshMxGrid(this.myDataGrid1);
            //CshHzGrid(this.myDataGrid2);

            this.dtprq1.Value = Convert.ToDateTime(DateManager.ServerDateTimeByDBType(InstanceForm.BDatabase).ToShortDateString() + " 00:00:00");
            this.dtprq2.Value = Convert.ToDateTime(DateManager.ServerDateTimeByDBType(InstanceForm.BDatabase).ToShortDateString() + " 23:59:59");
        }