Beispiel #1
0
 private void FormSaleCDRecord_Load(object sender, EventArgs e)
 {
     formRetailSaleConsignBillInput = (FormRetailSaleConsignBillInput)this.Owner;
     intSaleConsignBillId           = formRetailSaleConsignBillInput.SaleConsignBillId;
     bsSaleCDRecord.DataSource      = scdr.GetDataTable("SaleCDRecord", " Where SaleConsignBillId = " + intSaleConsignBillId);
     dgvSaleCDRecord.DataSource     = bsSaleCDRecord;
 }
Beispiel #2
0
        private void toolAdd_Click(object sender, EventArgs e)
        {
            FormRetailSaleConsignBillInput formRetailSaleConsignBillInput = new FormRetailSaleConsignBillInput();

            formRetailSaleConsignBillInput.Tag   = "Add";
            formRetailSaleConsignBillInput.Owner = this;
            formRetailSaleConsignBillInput.ShowDialog();
        }
Beispiel #3
0
 private void toolAmend_Click(object sender, EventArgs e)
 {
     if (dgvSaleConsignBill.RowCount > 0)
     {
         if (GlobalProperty.OperatorCode != dgvSaleConsignBill.CurrentRow.Cells["OperatorCode"].Value.ToString())
         {
             MessageBox.Show("非本记录的录入人员,不许允许修改!", "软件提示");
             return;
         }
         FormRetailSaleConsignBillInput formRetailSaleConsignBillInput = new FormRetailSaleConsignBillInput();
         formRetailSaleConsignBillInput.Tag   = "Edit";
         formRetailSaleConsignBillInput.Owner = this;
         formRetailSaleConsignBillInput.ShowDialog();
     }
 }
        private void FormBrowseRetailSaleOrderBill_Load(object sender, EventArgs e)
        {
            if (this.Owner.GetType() == typeof(FormRetailSaleTradeBillInput))
            {
                formRetailSaleTradeBillInput = (FormRetailSaleTradeBillInput)this.Owner;
                chbIsTrade.Visible           = true;
                strJoinTag = "Inner";
            }
            if (this.Owner.GetType() == typeof(FormRetailSaleOrderBill))
            {
                lbSaleBillNo.Visible    = true;
                txtSaleBillNo.Visible   = true;
                formRetailSaleOrderBill = (FormRetailSaleOrderBill)this.Owner;
                strJoinTag = "Left";
                this.Text  = "用户和订单信息";
            }
            if (this.Owner.GetType() == typeof(FormRetailSaleConsignBillInput))
            {
                chbConsign.Visible             = true;
                formRetailSaleConsignBillInput = (FormRetailSaleConsignBillInput)this.Owner;
                strJoinTag = "Inner";
            }
            if (this.Owner.GetType() == typeof(FormRetailUntreadBaseBillInput))
            {
                txtSaleBillNo.Visible          = true;
                lbSaleBillNo.Visible           = true;
                formRetailUntreadBaseBillInput = (FormRetailUntreadBaseBillInput)this.Owner;
                strJoinTag = "Inner";
            }
            if (this.Owner.GetType() == typeof(FormRetailBarterBaseBillInput))
            {
                formRetailBarterBaseBillInput = (FormRetailBarterBaseBillInput)this.Owner;
                strJoinTag = "Left";
                this.Text  = "用户和订单信息";
            }


            ControlBindDataSource cbds = new ControlBindDataSource();

            cbds.ComboBoxBindDataSource(cbxProvinceCode, "ProvinceCode", "ProvinceName", "Select * From Province", "Province");
            cbds.DataGridViewComboBoxColumnBindDataSource(GoodsTypeCode, "GoodsTypeCode", "GoodsTypeName", "Select * From GoodsType", "GoodsType");
            cbds.DataGridViewComboBoxColumnBindDataSource(GoodsSeriesCode, "GoodsSeriesCode", "GoodsSeriesName", "Select * From GoodsSeries", "GoodsSeries");
            cbds.DataGridViewComboBoxColumnBindDataSource(EmployeeCode, "EmployeeCode", "EmployeeName", "Select * From Employee", "Employee");
            cbxProvinceCode.SelectedIndex = -1;
        }