105
var rowMI =
(ProposalDataSet.PS_WS_MaterialItemRow)((DataRowView)pSWSMaterialItemB
indingSource.Current).Row;
rowMI.UsingCount++;
rowMN.ProposalID = propID;
rowMN.UnitID = rowM.UnitID;
rowMN.Description = rowM.Description;
rowMN.DeliveredCount = 0;
rowMN.Count = rowM.Count;
}
pS_WS_MaterialsItemsBindingSource.EndEdit();
pS_WS_MaterialsItemsBindingSource.Filter = "ProposalID = "
+ propID;
}
public void ChangeVisibleAndEnabledProperties(bool[]
VisibleSections, bool[] EnabledSections)
{
if (VisibleSections[0])
{
xtraTabPage1.PageVisible = true;
}
if (VisibleSections[1])
{
xtraTabPage2.PageVisible = true;
}
if (VisibleSections[2])
{
simpleButtonImportInfo.Visible = true;
simpleButtonClone.Visible = true;
}
if (EnabledSections[0] == false || _readonly == true)
{
OrdersearchLookUpEdit.Properties.ReadOnly = true;
OrdersearchLookUpEdit.Properties.Buttons[1].Enabled =
false;
lookUpEditProjects.Properties.ReadOnly = true;
lookUpEditProjects.Properties.Buttons[1].Enabled =
false;
searchLookUpEditGmil.Properties.ReadOnly = true;
dateEditDelivery.Properties.ReadOnly = true;
gridControlMaterials.UseEmbeddedNavigator = false;
}
if (EnabledSections[1] == false || _readonly == true)
{
gridView2.OptionsBehavior.Editable = false;
}
if (EnabledSections[2] == false || _readonly == true)
{
simpleButtonImportInfo.Enabled = false;
simpleButtonClone.Enabled = false;
}
if (_readonly)
{