private void toolAdd_Click(object sender, EventArgs e)
        {
            FormRetailUntreadGatherBillInput formRetailUntreadGatherBillInput = new FormRetailUntreadGatherBillInput();

            formRetailUntreadGatherBillInput.Tag   = "Add";
            formRetailUntreadGatherBillInput.Owner = this;
            formRetailUntreadGatherBillInput.ShowDialog();
        }
 private void toolAmend_Click(object sender, EventArgs e)
 {
     if (dgvUntreadGatherBill.RowCount > 0)
     {
         if (GlobalProperty.OperatorCode != dgvUntreadGatherBill.CurrentRow.Cells["OperatorCode"].Value.ToString())
         {
             MessageBox.Show("非本记录的录入人员,不许允许修改!", "软件提示");
             return;
         }
         FormRetailUntreadGatherBillInput formRetailUntreadGatherBillInput = new FormRetailUntreadGatherBillInput();
         formRetailUntreadGatherBillInput.Tag   = "Edit";
         formRetailUntreadGatherBillInput.Owner = this;
         formRetailUntreadGatherBillInput.ShowDialog();
     }
 }
Пример #3
0
        private void FormBrowseRetailUntreadBaseBillOther_Load(object sender, EventArgs e)
        {
            if (this.Owner.GetType() == typeof(FormRetailUntreadGatherBillInput))
            {
                formRetailUntreadGatherBillInput = (FormRetailUntreadGatherBillInput)this.Owner;
                chbIsGather.Visible = true;
            }
            if (this.Owner.GetType() == typeof(FormRetailUntreadRefundBillInput))
            {
                formRetailUntreadRefundBillInput = (FormRetailUntreadRefundBillInput)this.Owner;
                chbIsRefund.Visible = true;
            }
            ControlBindDataSource cbds = new ControlBindDataSource();

            cbds.BindDataSource(this);
            cbds.DataGridViewComboBoxColumnBindDataSource(GoodsTypeCode, "GoodsTypeCode", "GoodsTypeName", "Select * From GoodsType", "GoodsType");
            cbds.DataGridViewComboBoxColumnBindDataSource(GoodsSeriesCode, "GoodsSeriesCode", "GoodsSeriesName", "Select * From GoodsSeries", "GoodsSeries");
            cbds.DataGridViewComboBoxColumnBindDataSource(EmployeeCode1, "EmployeeCode", "EmployeeName", "Select * From Employee", "Employee");
            cbds.DataGridViewComboBoxColumnBindDataSource(OperatorCode, "OperatorCode", "OperatorName", "Select * From Operator", "Operator");
            useful.InitFormContros(this, null);
            dtpUntreadBillDate.Checked = false;
        }