var inn = this.getInnovator();
var niceFields = new List<KeyValuePair<string, string>>
{
new KeyValuePair<string, string>("part_number", "Part Number"),
new KeyValuePair<string, string>("uom_dd", "Unit of Measure"),
new KeyValuePair<string, string>("purch_man_dd", "Purchased / Manufactured"),
new KeyValuePair<string, string>("lot_serial_dd", "Lot / Serial"),
new KeyValuePair<string, string>("product_line_dd", "Product Line"),
new KeyValuePair<string, string>("ksup_dd", "KSUP"),
new KeyValuePair<string, string>("item_type_dd", "Item Type")
};
var lcState = this.getProperty("state");
if (lcState == "Awaiting Part Details")
{
foreach (var partField in niceFields)
{
if (this.getProperty(partField.Key, "") == "")
{
return inn.newError("Please fill out " + partField.Value);
}
}
}
return this;
var inn = this.getInnovator();
var niceFields = new List<KeyValuePair<string, string>>
{
new KeyValuePair<string, string>("part_number", "Part Number"),
new KeyValuePair<string, string>("uom_dd", "Unit of Measure"),
new KeyValuePair<string, string>("purch_man_dd", "Purchased / Manufactured"),
new KeyValuePair<string, string>("lot_serial_dd", "Lot / Serial"),
new KeyValuePair<string, string>("product_line_dd", "Product Line"),
new KeyValuePair<string, string>("ksup_dd", "KSUP"),
new KeyValuePair<string, string>("item_type_dd", "Item Type")
};
var lcState = this.getProperty("state");
if (lcState == "Awaiting Part Details")
{
foreach (var partField in niceFields)
{
if (this.getProperty(partField.Key, "") == "")
{
return inn.newError("Please fill out " + partField.Value);
}
}
}
return this;
Copyright © 2025 Aras. All rights reserved.