![]() |
#37 |
Участник
|
Добавил заполнения атрибута типа 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) простановка атрибутов значениями по умолчанию (в принципе решается добавлением значений в колонки Ёксел таблицы) |
|
|
|