Esempio n. 1
0
        private void toolAdd_Click(object sender, EventArgs e)
        {
            FormRetailUntreadRefundBillInput formRetailUntreadRefundBillInput = new FormRetailUntreadRefundBillInput();

            formRetailUntreadRefundBillInput.Tag   = "Add";
            formRetailUntreadRefundBillInput.Owner = this;
            formRetailUntreadRefundBillInput.ShowDialog();
        }
Esempio n. 2
0
 private void toolAmend_Click(object sender, EventArgs e)
 {
     if (dgvUntreadRefundBill.RowCount > 0)
     {
         if (GlobalProperty.OperatorCode != dgvUntreadRefundBill.CurrentRow.Cells["OperatorCode"].Value.ToString())
         {
             MessageBox.Show("非本记录的录入人员,不许允许修改!", "软件提示");
             return;
         }
         FormRetailUntreadRefundBillInput formRetailUntreadRefundBillInput = new FormRetailUntreadRefundBillInput();
         formRetailUntreadRefundBillInput.Tag   = "Edit";
         formRetailUntreadRefundBillInput.Owner = this;
         formRetailUntreadRefundBillInput.ShowDialog();
     }
 }
Esempio n. 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;
        }