Показать сообщение отдельно
Старый 13.01.2009, 14:22   #58  
pole is offline
pole
Участник
 
7 / 11 (1) +
Регистрация: 06.01.2009
Адрес: Уфа
Добавил заполнения атрибута типа Money
Вставлять в метод protected void CreateButton_Click(object sender, EventArgs e)
else if (currAttr.AttributeType.Value == AttributeType.Money)
{
decimal loadValue = 0;
if (decimal.TryParse(loadCell.Text, out loadValue))
{
CrmMoneyProperty currIntProp = new CrmMoneyProperty();
currIntProp.Name = currAttr.SchemaName.ToLower();
currIntProp.Value = new CRM_Web_Service.CrmSdk.CrmMoney();
currIntProp.Value.Value = loadValue;
arrofProperties = (Property[])CrmServiceUtility.ExpandCurrArray(arrofProperties, arrofProperties.Length + 1);
arrofProperties[arrofProperties.Length - 1] = currIntProp;
}
}

Чего не хватает:
1) сохранения настроек в файл
2) простановка атрибутов значениями по умолчанию (в принципе решается добавлением значений в колонки Ёксел таблицы)