Changing Plant when using BO

Hi all,

E9.05.702A

We are processing time entries that are captured in a 3rd party system and creating labor entries in Epicor.
We are using a C# program to perform the sync.
We are multi-plant so the associated job can only exist in one plant.
We are using the Labor BO to create the Epicor entries.
My question is, how do I change plants?
Do I just sent Session.PlantID accordingly before instantiating the BO?

JOE ROJAS
Epicor Applications Manager
VENTION MEDICAL
A NORDSON COMPANY

261 Cedar Hill Street | Marlborough, MA 01752
DIRECT: 508.597.1392 x1625 | MOBILE: 774.826.9245
EMAIL: JoRojas@ventionmedical.commailto:JoRojas@ventionmedical.com | WEB: ventionmedical.com http://www.ventionmedical.com/

This communication may contain information that is confidential, proprietary or exempt from disclosure, and is intended only for the use of the individual and/or entity it is addressed to. If you are not the intended recipient, please note that any other dissemination, distribution, use or copying of this communication is strictly prohibited. If you have received this message in error, please notify the sender immediately by telephone or by return e-mail, and delete this information from your computer.

It appears you just change it as you mentioned. (in E10 at least)

// Ice.Core.Session
public string PlantID
{
	get
	{
		return this.plantID;
	}
	set
	{
		if (string.Equals(value, this.plantID, StringComparison.OrdinalIgnoreCase))
		{
			return;
		}
		this.sessionMod.SetPlant(value, out this.plantName);
		this.plantID = value;
		this.OnSessionChanged(Session.SessionChangedItem.Plant);
	}

Could you kindly give me an example on how you can change user’s current site on on a custom button click event? or a epiCombo after update event? I need to be able to change current site on hand held. Thanks

I dont know the code, but I know someone had added a button on the MES Screen to change plants.

I would think that you can run a trace on the Office Version and go to Actions and CHange Plant.

Epicor.Mfg.BO.Plant GetList Epicor.Mfg.BO.PlantListDataSet 3/13/2018 09:13:53:3005248 AM 15 Epicor.Mfg.Lib.SessionMod Handshake void 3/13/2018 09:13:55:9017849 AM 6 Epicor.Mfg.Lib.SessionMod Sync void 3/13/2018 09:13:56:0097957 AM 8 Epicor.Mfg.BO.UserFile GetByID Epicor.Mfg.BO.UserFileDataSet 3/13/2018 09:13:56:0277975 AM 17 Epicor.Mfg.BO.UserFile GetDefaults void 3/13/2018 09:13:56:0467994 AM 6 Epicor.Mfg.Lib.SessionMod GetSessionState void 3/13/2018 09:13:56:0558003 AM 5 Epicor.Mfg.Lib.SessionMod GetCountryGroupCode void 3/13/2018 09:13:56:0628010 AM 6 Epicor.Mfg.Lib.BOReader GetList System.Data.DataSet 3/13/2018 09:13:56:0718019 AM 10 Epicor.Mfg.Lib.SessionMod SetLanguage void 3/13/2018 09:13:56:0828030 AM 5 Epicor.Mfg.Lib.SessionMod SetPlant void 3/13/2018 09:13:56:0928040 AM 7 Epicor.Mfg.Lib.SessionMod GetModuleAccess void 3/13/2018 09:13:56:1098057 AM 8

FYI, I am on E10