private bool cboGoodsState_Restore() { oGoodState.ClearError(); if (oGoodState.FillData()) { cboGoodsState.ValueMember = oGoodState.ColumnID; cboGoodsState.DisplayMember = oGoodState.ColumnName; cboGoodsState.Restore(oGoodState.MainTable); } return(oGoodState.ErrorNumber == 0); }
private bool cboGoodsState_Restore() { oGoodState.ClearError(); if (oGoodState.FillData()) { cboGoodsState.DataSource = new DataView(oGoodState.MainTable); cboGoodsState.ValueMember = oGoodState.ColumnID; cboGoodsState.DisplayMember = "Name"; cboGoodsState.Restore(); } return(oPartner.ErrorNumber == 0); }
private bool cboGoodsState_Restore() { oGoodState.ClearError(); if (nGoodStateID > 0) { oGoodState.IDList = nGoodStateID.ToString(); // только полученное значение } if (oGoodState.FillData()) { cboGoodsState.ValueMember = oGoodState.ColumnID; cboGoodsState.DisplayMember = oGoodState.ColumnName; cboGoodsState.Restore(oGoodState.MainTable); } return(oGoodState.ErrorNumber == 0); }