Aggiunta interfacce + registrazione x controllers
This commit is contained in:
@@ -5,9 +5,11 @@ using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.Web.Mvc;
|
||||
|
||||
using MP_IO.Interfaces;
|
||||
|
||||
namespace MP_IO.Controllers
|
||||
{
|
||||
public class BENCHController : Controller
|
||||
public class BENCHController : Controller, IBENCHService
|
||||
{
|
||||
/// <summary>
|
||||
/// Oggetto datalayer specifico
|
||||
|
||||
@@ -4,9 +4,11 @@ using System.Linq;
|
||||
using System.Web;
|
||||
using System.Web.Mvc;
|
||||
|
||||
using MP_IO.Interfaces;
|
||||
|
||||
namespace MP_IO.Controllers
|
||||
{
|
||||
public class HomeController : Controller
|
||||
public class HomeController : Controller, IHomeService
|
||||
{
|
||||
#region Public Methods
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@ using System.Web.Mvc;
|
||||
|
||||
namespace MP_IO.Controllers
|
||||
{
|
||||
public class IOBController : Controller
|
||||
public class IOBController : Controller, IIOBService
|
||||
{
|
||||
#region Public Methods
|
||||
|
||||
@@ -2798,4 +2798,4 @@ namespace MP_IO.Controllers
|
||||
|
||||
#endregion Private Methods
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
namespace MP_IO.Interfaces
|
||||
{
|
||||
public interface IBENCHService
|
||||
{
|
||||
/// <summary>
|
||||
/// GET: IOB (è un check alive)
|
||||
/// </summary>
|
||||
string Index();
|
||||
|
||||
/// <summary>
|
||||
/// GET BENCH/RCLEAN/100
|
||||
/// </summary>
|
||||
string RCLEAN(int? id);
|
||||
|
||||
/// <summary>
|
||||
/// GET BENCH/RSETUP/100
|
||||
/// </summary>
|
||||
string RSETUP(int? id);
|
||||
|
||||
/// <summary>
|
||||
/// GET BENCH/RSH/100
|
||||
/// </summary>
|
||||
string RSH(int? id);
|
||||
|
||||
/// <summary>
|
||||
/// GET BENCH/DTMAC/SIMUL_01
|
||||
/// </summary>
|
||||
string DTMAC(string id);
|
||||
|
||||
/// <summary>
|
||||
/// GET BENCH/CNTKEY/test
|
||||
/// </summary>
|
||||
string CNTKEY(string id);
|
||||
|
||||
/// <summary>
|
||||
/// GET BENCH/tSMI/60
|
||||
/// </summary>
|
||||
string tSMI(int? id);
|
||||
|
||||
/// <summary>
|
||||
/// GET BENCH/fSMI/18?idxMS=1&valore=1
|
||||
/// </summary>
|
||||
string fSMI(int? id, int? idxMS, int? valore);
|
||||
|
||||
/// <summary>
|
||||
/// GET BENCH/INSEN/2004
|
||||
/// </summary>
|
||||
string INSEN(string id);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
namespace MP_IO.Interfaces
|
||||
{
|
||||
public interface IHomeService
|
||||
{
|
||||
/// <summary>
|
||||
/// GET: Home
|
||||
/// </summary>
|
||||
string Index();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,51 @@
|
||||
namespace MP_IO.Interfaces
|
||||
{
|
||||
public interface IIOBService
|
||||
{
|
||||
string addOptPar(string id, string pName, string pValue);
|
||||
string addTask2Exe(string id, string taskName, string taskVal);
|
||||
bool askCloseODL(string id, int idxOdl);
|
||||
bool closeODL(string id, int idxOdl, string dtEve = "", string dtCurr = "");
|
||||
bool closePODL(string id, int idxPOdl, string dtEve = "", string dtCurr = "");
|
||||
string enabled(string id);
|
||||
string evListJson(string id);
|
||||
string fixDailyDossier(string id);
|
||||
string fixDailyOdl(string id);
|
||||
string fixDailyOdlConfPzCount(string id);
|
||||
string flog(string id, string flux, string valore, string dtEve, string dtCurr, string cnt, string disabKA = "false");
|
||||
string flogJson(string id, string disabKA = "false");
|
||||
int forceCreatePOdl(string id, string CodArt, string CodGruppo, int numPz);
|
||||
string forceSplitOdl(string id);
|
||||
string forceSplitOdlFull(string id, bool doConfirm, bool qtyFromLast, int? roundStep, string keyRichiesta = "", int matrOpr = 0);
|
||||
string forceStartPOdl(string id, int idxPODL, string dtEve = "", string dtCurr = "", int matrOpr = 0);
|
||||
string getArtCurrPODL();
|
||||
string getArtNum(string id, string CodArt = "");
|
||||
string getArtUsed();
|
||||
string getCounter(string id);
|
||||
string getCounterTCRec(string id);
|
||||
string getCurrData(string id);
|
||||
string getCurrODL(string id);
|
||||
int getCurrOdlQtaReq(string id);
|
||||
string getCurrOdlRow(string id);
|
||||
string getCurrOdlStart(string id);
|
||||
string getCurrPODL(string id);
|
||||
string getCurrStatoRow(string id);
|
||||
string getFiles(string id);
|
||||
int getIdlePeriod(string id);
|
||||
string getIob2call(string GWIP);
|
||||
string getLastArtByMacc(string id);
|
||||
string getLastDossArt(string id);
|
||||
string getLastDossByMacc(string id);
|
||||
string getLastDossPODL();
|
||||
string getListValByTable(string id);
|
||||
string getM2IOB(string id);
|
||||
string getObjItems(string id);
|
||||
string getObjItems2Write(string id);
|
||||
string getOptPar(string id);
|
||||
string getPOdlNext(string id);
|
||||
string getTask2Exe(string id);
|
||||
bool insDisab(string id, bool stato);
|
||||
string processInput(string id, int valore, string dtEve, string dtCurr, string cnt);
|
||||
string setProg(string id, string prog, string art, string comm, string disabKA = "false");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user