Beispiel #1
0
        private void BindMatSpecialInf()
        {
            DataSet dataSet = new DataSet();

            specialMatTeamEntity = new SpecialMatTeamEntity();
            dataSet = specialMatTeamEntity.GetMatSpecialInf();
            if (dataSet != null)
            {
                grdCrtlCode.MainView   = gridViewCode;
                grdCrtlCode.DataSource = dataSet.Tables[0];
                gridViewCode.BestFitColumns();
            }
        }
Beispiel #2
0
        private void gridViewCode_RowClick(object sender, RowClickEventArgs e)
        {
            CtrlState = ControlState.Edit;

            specialMatTeamEntity              = new SpecialMatTeamEntity(this.gridViewCode.GetRowCellValue(e.RowHandle, "ORDER_NUMBER").ToString(), this.gridViewCode.GetRowCellValue(e.RowHandle, "MATERIAL_CODE").ToString(), this.gridViewCode.GetRowCellValue(e.RowHandle, "MATKL").ToString());
            this.cmbWorkOrder.Text            = this.gridViewCode.GetRowCellValue(e.RowHandle, "ORDER_NUMBER").ToString();
            this.lueMat.EditValue             = this.gridViewCode.GetRowCellValue(e.RowHandle, "MATERIAL_CODE").ToString();
            this.txtDesc.Text                 = this.gridViewCode.GetRowCellValue(e.RowHandle, "DESCRIPTION").ToString();
            this.lueParamer.EditValue         = this.gridViewCode.GetRowCellValue(e.RowHandle, "MATKL").ToString();
            this.lblCode.Text                 = this.gridViewCode.GetRowCellValue(e.RowHandle, "EXTENSION_KEY").ToString();
            specialMatTeamEntity.WorkOrderNum = this.cmbWorkOrder.Text;
            specialMatTeamEntity.Mat          = this.lueMat.Text;
            specialMatTeamEntity.ParamerTeam  = this.lueParamer.Text;
            specialMatTeamEntity.ResetDirtyList();
        }
Beispiel #3
0
 private void tsbRefresh_Click(object sender, EventArgs e)
 {
     specialMatTeamEntity = new SpecialMatTeamEntity();
     CtrlState            = ControlState.New;
 }