Exemplo n.º 1
0
        /// <summary>
        /// 行单击事件
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void gridViewCode_RowClick(object sender, RowClickEventArgs e)
        {
            CtrlState = ControlState.Edit;

            _bomMaterialBandEntity = new BomMaterialBandEntity(this.gridViewCode.GetRowCellValue(e.RowHandle, "MATERIAL_CODE").ToString());
            this.txtCode.EditValue = this.gridViewCode.GetRowCellValue(e.RowHandle, "MATERIAL_CODE").ToString();
            this.txtName.Text      = this.gridViewCode.GetRowCellValue(e.RowHandle, "MATERIAL_NAME").ToString();
            this.txtBarcode.Text   = this.gridViewCode.GetRowCellValue(e.RowHandle, "BARCODE").ToString();
            this.txtDesc.Text      = this.gridViewCode.GetRowCellValue(e.RowHandle, "MATERIAL_SPEC").ToString();

            _bomMaterialBandEntity.Code    = this.txtCode.Text;
            _bomMaterialBandEntity.Name    = this.txtName.Text;
            _bomMaterialBandEntity.BarCode = this.txtBarcode.Text;
            _bomMaterialBandEntity.Desc    = this.txtBarcode.Text;
            _bomMaterialBandEntity.ResetDirtyList();
        }
Exemplo n.º 2
0
 private void tsbNew_Click(object sender, EventArgs e)
 {
     _bomMaterialBandEntity = new BomMaterialBandEntity();
     CtrlState = ControlState.New;
 }