spc-kiosk-pb/Agent/OLEDevice/DeviceOurHome.cs
2019-06-16 14:12:09 +09:00

106 lines
4.1 KiB
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Cosmos.Common;
using Cosmos.UserFrame;
/*-----------------------------------------------------------------------------------------------*/
// 설 명 : 아워홈
// 작 성 자 :
// 변경 이력 :
/*-----------------------------------------------------------------------------------------------*/
namespace Cosmos.OLEDevice
{
public class DeviceOurHome : IOurHome
{
#region
/// <summary>
/// StateServer Object (StateServer 객체)
/// </summary>
public StateServer StateObject = (StateServer)StateServer.GetInstance();
/// <summary>
/// 아워홈 OCX form 객체
/// </summary>
frmDeviceOurHome frmOurHome = null;
#endregion
#region
/// <summary>
/// 생성자
/// </summary>
public DeviceOurHome()
{
try
{
frmOurHome = new frmDeviceOurHome();
}
catch(Exception ex)
{
UserLog.WriteLogFile(UserCom.LOG_IOS,
System.Reflection.Assembly.GetExecutingAssembly().ManifestModule.Name, // Project Name (프로젝트명)
System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.Name + "." + // Class Name (Class Name (클래스명))
System.Reflection.MethodBase.GetCurrentMethod().Name + "()", // Function Name (Function Name (함수명))
ex.Message);
}
}
#endregion
#region
/// <summary>
/// 고객정보 조회
/// </summary>
/// <param name="sStoreCD"></param>
/// <param name="sRFNo"></param>
/// <param name="sRFType"></param>
/// <returns></returns>
public string Rf_EmpInfo(string sStoreCD, string sRFNo, string sRFType)
{
string sResult = "9^Not Connect DataBase!!!";
try
{
sResult = frmOurHome.Rf_EmpInfo(sStoreCD, sRFNo, sRFType);
}
catch (Exception ex)
{
UserLog.WriteLogFile(UserCom.LOG_IOS,
System.Reflection.Assembly.GetExecutingAssembly().ManifestModule.Name, // Project Name (프로젝트명)
System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.Name + "." + // Class Name (Class Name (클래스명))
System.Reflection.MethodBase.GetCurrentMethod().Name + "()", // Function Name (Function Name (함수명))
ex.Message);
}
return sResult;
}
#endregion
#region
/// <summary>
/// 결제
/// </summary>
/// <param name="sStoreCD"></param>
/// <param name="sTranData"></param>
/// <param name="sRfType"></param>
/// <returns></returns>
public string Rf_TransData(string sStoreCD, string sTranData, string sRfType)
{
string sResult = "9^Not Connect DataBase!!!";
try
{
sResult = frmOurHome.Rf_TransData(sStoreCD, sTranData, sRfType);
}
catch (Exception ex)
{
UserLog.WriteLogFile(UserCom.LOG_IOS,
System.Reflection.Assembly.GetExecutingAssembly().ManifestModule.Name, // Project Name (프로젝트명)
System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.Name + "." + // Class Name (Class Name (클래스명))
System.Reflection.MethodBase.GetCurrentMethod().Name + "()", // Function Name (Function Name (함수명))
ex.Message);
}
return sResult;
}
#endregion
}
}