Exemplo n.º 1
0
        public Frmhwsz(MenuTag menuTag, string chineseName, Form mdiParent)
        {
            //
            // Windows 窗体设计器支持所必需的
            //
            InitializeComponent();
            _menuTag     = menuTag;
            _chineseName = chineseName;
            _mdiParent   = mdiParent;
            this.Text    = _chineseName;
            this.Text    = this.Text + " [" + InstanceForm._menuTag.Jgbm + "]";
            if (menuTag.Function_Name == "Fun_ts_yp_xtwh_kwsz")
            {
                Yp.AddcmbYjks(cmbyjks, DeptType.药库, InstanceForm.BDatabase, InstanceForm._menuTag.Jgbm);
            }
            else
            {
                Yp.AddcmbYjks(cmbyjks, DeptType.药房, InstanceForm.BDatabase, InstanceForm._menuTag.Jgbm);
            }

            if (InstanceForm.BCurrentUser.IsAdministrator == false)
            {
                cmbyjks.SelectedValue = InstanceForm.BCurrentDept.DeptId; cmbyjks.Enabled = false;
            }

            Yp.AddCmbYplx(true, Convert.ToInt32(Convertor.IsNull(cmbyjks.SelectedValue, "0")), cmbyplx, InstanceForm.BDatabase);
            Yp.AddcmbYpjx(true, Convert.ToInt32(Convertor.IsNull(cmbyplx.SelectedValue, "0")), cmbjx, InstanceForm.BDatabase);
            cmbyplx.Text = "全部";
            cmbjx.Text   = "全部";

            //
            // TODO: 在 InitializeComponent 调用后添加任何构造函数代码
            //
        }
Exemplo n.º 2
0
        private void cmbyplx_SelectedIndexChanged(object sender, System.EventArgs e)
        {
            if (this.cmbyplx.SelectedValue.GetType().ToString() != "System.Int32")
            {
                return;
            }
            int yplx = Convert.ToInt32(this.cmbyplx.SelectedValue);

            Yp.AddCmbYpzlx(Convert.ToInt32(Convertor.IsNull(cmbck.SelectedValue, "0")), yplx, this.cmbypzlx, InstanceForm.BDatabase);
            Yp.AddcmbYpjx(yplx, this.cmbypjx, InstanceForm.BDatabase);
        }
Exemplo n.º 3
0
 private void chkjx_CheckedChanged(object sender, System.EventArgs e)
 {
     cmbjx.Enabled = chkjx.Checked == true?true:false;
     Yp.AddcmbYpjx(Convert.ToInt32(Convertor.IsNull(cmbyplx.SelectedValue, "0")), this.cmbjx, InstanceForm.BDatabase);
 }
Exemplo n.º 4
0
 private void cmbyplx_SelectedIndexChanged(object sender, System.EventArgs e)
 {
     Yp.AddcmbYpjx(Convert.ToInt32(Convertor.IsNull(cmbyplx.SelectedValue, "0")), this.cmbjx, InstanceForm.BDatabase);
 }
Exemplo n.º 5
0
 private void cmbjx_DropDown(object sender, System.EventArgs e)
 {
     Yp.AddcmbYpjx(Convert.ToInt32(cmbyplx.SelectedValue), cmbjx, InstanceForm.BDatabase);
 }
Exemplo n.º 6
0
 private void cmbypzlx_DropDown(object sender, System.EventArgs e)
 {
     Yp.AddCmbYpzlx(InstanceForm.BCurrentDept.DeptId, Convert.ToInt32(Convertor.IsNull(cmbyplx.SelectedValue, "0")), this.cmbypzlx, InstanceForm.BDatabase);
     Yp.AddcmbYpjx(Convert.ToInt32(Convertor.IsNull(cmbyplx.SelectedValue, "0")), this.cmbjx, InstanceForm.BDatabase);
 }