[Epicor 10] Assign a Resource in MES for Indirect Activities?

I did a UI customization; we only use one of a few resource groups with a single resource in it for collection of indirect activities.  I’m sure you can get more elaborate if needed.  This is the basics that will get you there tho.  Basically use the wizard, do an after field change event…

 

                private static void LaborDtl_AfterFieldChange(object sender, DataColumnChangeEventArgs args)

                {

                                // ** Argument Properties and Uses **

                                // args.Row["FieldName"]

                                // args.Column, args.ProposedValue, args.Row

                                // Add Event Handler Code

                                switch (args.Column.ColumnName)

                                {

                                                case "IndirectCode":

                                                                GetID();

                                                                break;

                                                default:

                                                                break;

                                }

                }

 

                private static void GetID()

                {

                                //EpiDataView edvSIA = (EpiDataView)oTrans.EpiDataViews("Start");

                                edvSIA = ((EpiDataView)(oTrans.EpiDataViews["Start"]));

                                string vIndCode = Convert.ToString(edvSIA.dataView[edvSIA.Row]["IndirectCode"]);

                                if (vIndCode == "STB") {

                                                edvSIA.dataView[edvSIA.Row]["ResourceGrpID"] = "STBHOURS";

                                } else if (vIndCode == "PMB") {

                                                edvSIA.dataView[edvSIA.Row]["ResourceGrpID"] = "PMBHOURS";

                                }

                                else

                                {

                                                edvSIA.dataView[edvSIA.Row]["ResourceGrpID"] = "UNACCT";

                                }

                }

 

Rob Bucek

Production Control Manager

D&S Manufacturing

301 E. Main St. | PO Box 279

Black River Falls, WI 54615

715-284-5376 Ext. 311

Mobile: 715-896-3119

rbucek@...

Visit our newly redesigned Website at www.dsmfg.com

 

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com]
Sent: Thursday, June 2, 2016 9:16 AM
To: vantage@yahoogroups.com
Subject: [Vantage] [Epicor 10] Assign a Resource in MES for Indirect Activities?

 

 

Hey all,

 

Is there a way to assign a resource when doing an indirect activity in MES?

I see that you can select a resource group and and indirect code, but nothing else.

When you hit okay, it shows the active transaction in MES and it selects the first resource in the list without the option to change it unless you use Time and Expense entry.

 

Would I have to customize the Start Indirect Activity form, add a text box, and bind it to LaborDtl.ResourceID?

Hey all,


Is there a way to assign a resource when doing an indirect activity in MES?

I see that you can select a resource group and and indirect code, but nothing else.

When you hit okay, it shows the active transaction in MES and it selects the first resource in the list without the option to change it unless you use Time and Expense entry.


Would I have to customize the Start Indirect Activity form, add a text box, and bind it to LaborDtl.ResourceID?