Beispiel #1
0
        private void Frmxd_Load(object sender, System.EventArgs e)
        {
            cmbmb.Enabled = false;
            //添加模板
            YP_PDMB.AddCmbMb(InstanceForm.BCurrentDept.DeptId, cmbmb, InstanceForm.BDatabase);


            //判断是否已开始盘存
            if (BegionPd() == true)
            {
                //this.rdobegin.Enabled = false;
                //this.cmbmb.Enabled = true;
                //this.rdomb.Enabled = true;
                //this.rdomb.Checked = true;
                //this.rdozy.Enabled = true;
                //this.chkdel.Visible=true;
            }
            //else
            //{
            //this.rdobegin.Enabled=true;
            //this.rdobegin.Checked=true;
            //this.cmbmb.Enabled=false;
            //this.rdomb.Enabled=false;
            //this.rdozy.Enabled=false;
            //this.rdozy.Enabled = true;
            //this.chkdel.Visible=false;
            //}


            if (_menuTag.Function_Name == "Fun_ts_yp_pdlr_sczcb_yf" && YpConfig.是否药库(InstanceForm.BCurrentDept.DeptId, InstanceForm.BDatabase) == true)
            {
                butsc.Enabled   = false;
                butusc.Enabled  = false;
                butdown.Enabled = false;
            }

            if (_menuTag.Function_Name == "Fun_ts_yp_pdlr_sczcb" && YpConfig.是否药库(InstanceForm.BCurrentDept.DeptId, InstanceForm.BDatabase) == false)
            {
                butsc.Enabled   = false;
                butusc.Enabled  = false;
                butdown.Enabled = false;
            }
            int deptid = InstanceForm.BCurrentDept.DeptId;
        }
Beispiel #2
0
 private void Frmxd2_Load(object sender, System.EventArgs e)
 {
     YP_PDMB.AddCmbMb(Deptid, cmbmb, InstanceForm.BDatabase);
 }