Epicor MES Start Production Activity

Yeah generally you should be able to call the business objects directly any time.


Jose C Gomez
Software Engineer


T: 904.469.1524 mobile


Quis custodiet ipsos custodes?


On Thu, Mar 27, 2014 at 1:53 PM, <cyrilz199@...> wrote:

 
<div>
  
  
  <p></p><p>Hello Jose, the company I work for wants to automate the&nbsp;Stop Activity&nbsp;once the end user provides the JobNum, Asembly Sequence&nbsp;and the Operation Sequence. I guess, If I wanted to customize the MES Screen, I should use my own controls and hide epicors built in controls and call the neccessary Business Objects to automate the stop and etc?</p>

 

Sincerely

COB

</div>
 


<div style="color:#fff;min-height:0;"></div>

Using the Epicor MES Start Production Activity, when the form loads, I will like to dynamically set the Job Number textbox via customization. I did reference the textbox by guid and it does not work. My code is below.

Do I have to use a user defined textbox to accomplish this?

 


public class Script
{
 // ** Wizard Insert Location - Do Not Remove 'Begin/End Wizard Added Module Level Variables' Comments! **
 // Begin Wizard Added Module Level Variables **

 // End Wizard Added Module Level Variables **

 // Add Custom Module Level Variables Here **
          Epicor.Mfg.UI.FrameWork.EpiTextBox txtJobNum;
         

 public void InitializeCustomCode()
 {
  // ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Variable Initialization' lines **
  // Begin Wizard Added Variable Initialization

  // End Wizard Added Variable Initialization

  // Begin Wizard Added Custom Method Calls

  // End Wizard Added Custom Method Calls

         this.txtJobNum = (Epicor.Mfg.UI.FrameWork.EpiTextBox)csm.GetNativeControlReference("2233c0f7-d359-4959-8387-2a9b8395149b");
 }

 public void DestroyCustomCode()
 {
  // ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Object Disposal' lines **
  // Begin Wizard Added Object Disposal

  // End Wizard Added Object Disposal

  // Begin Custom Code Disposal

  // End Custom Code Disposal
 }

 private void StartProdForm_Load(object sender, EventArgs args)
 {
        // Add Event Handler Code
       this.txtJobNum.Text = "215478";

 }
}

The code you have looks good, but in the case of a lot of these screens populating the key field in this fashion just isn’t going to work. What’s your end goal? What’s the full story on what you are trying to accomplish.

 

Joshua Giese

CIO

 

Direct:     920.593.8299

IT Dept:   920.437.6400 Ext. 337

Site ID:    27450-E905700B2-SQL64

Wisconsin Converting, Inc.

 

From: vantage@yahoogroups.com [mailto:vantage@yahoogroups.com] On Behalf Of cyrilz199@...
Sent: Thursday, March 27, 2014 8:31 AM
To: vantage@yahoogroups.com
Subject: [Vantage] Epicor MES Start Production Activity

 

 

Using the Epicor MES Start Production Activity, when the form loads, I will like to dynamically set the Job Number textbox via customization. I did reference the textbox by guid and it does not work. My code is below.

Do I have to use a user defined textbox to accomplish this?

 


public class Script
{
 // ** Wizard Insert Location - Do Not Remove 'Begin/End Wizard Added Module Level Variables' Comments! **
 // Begin Wizard Added Module Level Variables **

 // End Wizard Added Module Level Variables **

 // Add Custom Module Level Variables Here **
          Epicor.Mfg.UI.FrameWork.EpiTextBox txtJobNum;
         

 public void InitializeCustomCode()
 {
  // ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Variable Initialization' lines **
  // Begin Wizard Added Variable Initialization

  // End Wizard Added Variable Initialization

  // Begin Wizard Added Custom Method Calls

  // End Wizard Added Custom Method Calls

         this.txtJobNum = (Epicor.Mfg.UI.FrameWork.EpiTextBox)csm.GetNativeControlReference("2233c0f7-d359-4959-8387-2a9b8395149b");
 }

 public void DestroyCustomCode()
 {
  // ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Object Disposal' lines **
  // Begin Wizard Added Object Disposal

  // End Wizard Added Object Disposal

  // Begin Custom Code Disposal

  // End Custom Code Disposal
 }

 private void StartProdForm_Load(object sender, EventArgs args)
 {
        // Add Event Handler Code
       this.txtJobNum.Text = "215478";

 }
}

Hello Joshua, my end goal is to Customize the MES Screen that way the user can wand (scan) in the JobNumber, Asembly Sequence and Operation Sequence from the MES Menu ( the first screen)  and the application will automate Start  Production Activity and end it without futher clicks from the user.

 

Sincerely

COB.

This functionality is already supported if you just open the Start Activity screen and then use the wand to scan... what's the reason to do it in the main MES screen it seems like it won't save any time. Its literally one button push.


Jose C Gomez
Software Engineer



T: 904.469.1524 mobile


Quis custodiet ipsos custodes?


On Thu, Mar 27, 2014 at 10:04 AM, <cyrilz199@...> wrote:

 
<div>
  
  
  <p></p><p>Hello Joshua, my end goal is to Customize the MES Screen that way the user can wand (scan) in the JobNumber, Asembly Sequence and Operation Sequence from the MES Menu ( the first screen)&nbsp; and the application will automate&nbsp;Start&nbsp; Production Activity and end it without futher clicks from the user.</p>

 

Sincerely

COB.

</div>
 


<div style="color:#fff;min-height:0;"></div>

Hello Jose, the company I work for wants to automate the Stop Activity once the end user provides the JobNum, Asembly Sequence and the Operation Sequence. I guess, If I wanted to customize the MES Screen, I should use my own controls and hide epicors built in controls and call the neccessary Business Objects to automate the stop and etc?

 

Sincerely

COB