Exemplo n.º 1
0
        private void Frmxtdz_Load(object sender, System.EventArgs e)
        {
            //初始化
            FunBase.CsDataGrid(this.myDataGrid1, this.myDataGrid1.TableStyles[0], "Tb");

            //初始化
            FunBase.CsDataGrid(this.myDataGrid2, this.myDataGrid2.TableStyles[0], "Tb1");

            SystemCfg cfg = new SystemCfg(8026);

            if (cfg.Config == "1")
            {
                butmodif.Enabled = true;
            }
            else
            {
                butmodif.Enabled = false;
            }

            int deptid = Convert.ToInt32(InstanceForm.BCurrentDept.DeptId);

            bpcgl = Yp.BPcgl(deptid, InstanceForm.BDatabase);
            if (!bpcgl)
            {
                col_批次号.Width = 0;
                col_批号.Width  = 0;

                c批次号.Width    = 0;
                c批号.Width     = 0;
                c上期进货金额.Width = 0;
                c本期进货金额.Width = 0;
                c库存进货金额.Width = 0;
                c进货金额差值.Width = 0;
            }
        }
Exemplo n.º 2
0
        public bool bpcgl;//是否进行批次管理
        private void cmbyjks_SelectedIndexChanged(object sender, EventArgs e)
        {
            int deptid = Convert.ToInt32(Convertor.IsNull(cmbyjks.SelectedValue, "0"));

            bpcgl = Yp.BPcgl(deptid, InstanceForm.BDatabase);
            if (bpcgl)
            {
                //checkBox2.Visible = false;
                //checkBox2.Checked = true;
                //checkBox2.Text = "显示零售金额";
                checkBox2.Checked = true;
            }
        }
Exemplo n.º 3
0
        public bool bpcgl;//是否进行批次管理
        private void cmbck_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (Convert.ToInt32(cmbck.SelectedValue) > 0)
            {
                Yp.AddcmbYear(Convert.ToInt32(cmbck.SelectedValue), cmbyear, InstanceForm.BDatabase);
            }
            int deptid = Convert.ToInt32(Convertor.IsNull(cmbck.SelectedValue, "0"));

            bpcgl = Yp.BPcgl(deptid, InstanceForm.BDatabase);
            //if (bpcgl)
            //{
            //    checkBox2.Visible = false;
            //    checkBox2.Checked = true;
            //}
            if (bpcgl)
            {
                checkBox2.Checked = true;
            }
        }
Exemplo n.º 4
0
        private void cmbbs1_SelectedIndexChanged(object sender, EventArgs e)
        {
            try
            {
                DataTable tbmx = (DataTable)dgvMx.DataSource;
                if (tbmx != null)
                {
                    tbmx.Clear();
                }

                DataTable tb = (DataTable)dgvHz.DataSource;
                if (tb != null)
                {
                    tb.Clear();
                }

                lblfyrq.Text = "发药日期";
                int deptid = Convert.ToInt32(Convertor.IsNull(cmbyjks.SelectedValue, "0"));
                bpcgl = Yp.BPcgl(deptid, InstanceForm.BDatabase);
            }
            catch (System.Exception err)
            {
            }
        }
Exemplo n.º 5
0
        private void cmbck_SelectedIndexChanged(object sender, EventArgs e)
        {
            int deptid = Convert.ToInt32(Convertor.IsNull(cmbck.SelectedValue, "0"));

            bpcgl = Yp.BPcgl(deptid, InstanceForm.BDatabase);
        }