///<summary> /// Method Invocation of wrapper classes ///<summary> protected static FR_L5DO_GASIfSP_1537 Invoke(DbConnection Connection, DbTransaction Transaction, string ConnectionString, P_L5DO_GASIfSP_1537 Parameter, CSV2Core.SessionSecurity.SessionSecurityTicket securityTicket = null) { bool cleanupConnection = Connection == null; bool cleanupTransaction = Transaction == null; FR_L5DO_GASIfSP_1537 functionReturn = new FR_L5DO_GASIfSP_1537(); try { if (cleanupConnection == true) { Connection = CSV2Core_MySQL.Support.DBSQLSupport.CreateConnection(ConnectionString); Connection.Open(); } if (cleanupTransaction == true) { Transaction = Connection.BeginTransaction(); } functionReturn = Execute(Connection, Transaction, Parameter, securityTicket); #region Cleanup Connection/Transaction //Commit the transaction if (cleanupTransaction == true) { Transaction.Commit(); } //Close the connection if (cleanupConnection == true) { Connection.Close(); } #endregion } catch (Exception ex) { try { if (cleanupTransaction == true && Transaction != null) { Transaction.Rollback(); } } catch { } try { if (cleanupConnection == true && Connection != null) { Connection.Close(); } } catch { } throw new Exception("Exception occured in method cls_Get_All_Shipment_Information_for_ShipmentPositionID", ex); } return(functionReturn); }
protected static FR_L5DO_GASIfSP_1537 Execute(DbConnection Connection, DbTransaction Transaction, P_L5DO_GASIfSP_1537 Parameter, CSV2Core.SessionSecurity.SessionSecurityTicket securityTicket = null) { #region UserCode var returnValue = new FR_L5DO_GASIfSP_1537(); //Put your code here returnValue.Result = new L5DO_GASIfSP_1537(); returnValue.Result.ShipmentInformation = new L3S_GSIfSP_1437(); P_L3S_GSIfSP_1437 parameter = new P_L3S_GSIfSP_1437(); parameter.ShipmentPositionID = Parameter.ShipmentPositionID; parameter.LanguageID = Parameter.LanguageID; var shipmentInformation = cls_Get_Shipment_Information_for_ShipmentPositionID.Invoke(Connection, Transaction, parameter, securityTicket).Result; P_L3S_GOPfSbSP_1458 parameterPos = new P_L3S_GOPfSbSP_1458(); parameterPos.ShipmentHeaderID = Parameter.ShipmentHeaderID; parameterPos.LanguageID = Parameter.LanguageID; var shipmentPositions = cls_Get_ShipmentPositions_for_Shipment_by_ShipmentHeaderID.Invoke(Connection, Transaction, parameterPos, securityTicket).Result; P_L3S_GSHSfSP_1536 paremeterHis = new P_L3S_GSHSfSP_1536(); paremeterHis.ShipmentHeaderID = Parameter.ShipmentHeaderID; paremeterHis.LanguageID = Parameter.LanguageID; var shipmentStatusHistory = cls_Get_Shipment_History_Statuses_for_ShipmentPositionID.Invoke(Connection, Transaction, paremeterHis, securityTicket).Result; returnValue.Result.ShipmentInformation = shipmentInformation; returnValue.Result.ShipmentPositions = shipmentPositions; returnValue.Result.ShipmentStatusHistory = shipmentStatusHistory; return(returnValue); #endregion UserCode }