You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
76 lines
3.2 KiB
76 lines
3.2 KiB
using System;
|
|
using System.Text;
|
|
|
|
|
|
namespace AutoFileCopyNet
|
|
{
|
|
public class LogDataAccess
|
|
{
|
|
//public string InsertLogSql(Model.EFailLog plog)
|
|
//{
|
|
|
|
// StringBuilder strSqllog = new StringBuilder();
|
|
// StringBuilder strFieldslog = new StringBuilder();
|
|
// StringBuilder strValueslog = new StringBuilder();
|
|
// strFieldslog.Append(" TID ,");
|
|
// strFieldslog.Append(" FCT_OPERTYPE ,");
|
|
// strFieldslog.Append(" FCT_NO, ");
|
|
// strFieldslog.Append(" FCT_REASON, ");
|
|
// strFieldslog.Append(" FCT_DATE, ");
|
|
// strFieldslog.Append(" FCT_OPER, ");
|
|
// strFieldslog.Append(" FLAGDEL ");
|
|
|
|
// //strValues.Append(" '" + pLog.LOGDATE + "',");
|
|
// strValueslog.Append("'" + plog.TID + "',");
|
|
// strValueslog.Append("'" + plog.FCT_OPERTYPE + "',");
|
|
// strValueslog.Append("'" + plog.FCT_NO + "',");
|
|
// strValueslog.Append("'" + plog.FCT_REASON + "',");
|
|
// strValueslog.Append("'" + plog.FCT_DATE + "',");
|
|
// strValueslog.Append("'" + plog.FCT_OPER + "',");
|
|
// strValueslog.Append("'0'");
|
|
|
|
// strSqllog.Append(" INSERT INTO T_DAS_FAILCODE ");
|
|
// strSqllog.Append(" (" + strFieldslog.ToString() + ")");
|
|
// strSqllog.Append(" VALUES ");
|
|
// strSqllog.Append(" (" + strValueslog.ToString() + ")");
|
|
// return strSqllog.ToString();
|
|
//}
|
|
//public void InsertLog(string p_fctno, string p_fct_reason)
|
|
//{
|
|
|
|
// EFailLog log = new EFailLog();
|
|
// log.TID = Guid.NewGuid().ToString();
|
|
// log.FCT_DATE = DateTime.Now;
|
|
// log.FCT_NO = p_fctno;
|
|
// log.FCT_OPER = QM.Account.UserBuffer.UserCode;
|
|
// log.FCT_OPERTYPE = 0;
|
|
// log.FCT_REASON = p_fct_reason;
|
|
|
|
// StringBuilder strSqllog = new StringBuilder();
|
|
// StringBuilder strFieldslog = new StringBuilder();
|
|
// StringBuilder strValueslog = new StringBuilder();
|
|
// strFieldslog.Append(" TID ,");
|
|
// strFieldslog.Append(" FCT_OPERTYPE ,");
|
|
// strFieldslog.Append(" FCT_NO, ");
|
|
// strFieldslog.Append(" FCT_REASON, ");
|
|
// strFieldslog.Append(" FCT_DATE, ");
|
|
// strFieldslog.Append(" FCT_OPER, ");
|
|
// strFieldslog.Append(" FLAGDEL ");
|
|
|
|
// //strValues.Append(" '" + pLog.LOGDATE + "',");
|
|
// strValueslog.Append("'" + log.TID + "',");
|
|
// strValueslog.Append("'" + log.FCT_OPERTYPE + "',");
|
|
// strValueslog.Append("'" + log.FCT_NO + "',");
|
|
// strValueslog.Append("'" + log.FCT_REASON + "',");
|
|
// strValueslog.Append("'" + log.FCT_DATE + "',");
|
|
// strValueslog.Append("'" + log.FCT_OPER + "',");
|
|
// strValueslog.Append("'0'");
|
|
|
|
// strSqllog.Append(" INSERT INTO T_DAS_FAILCODE ");
|
|
// strSqllog.Append(" (" + strFieldslog.ToString() + ")");
|
|
// strSqllog.Append(" VALUES ");
|
|
// strSqllog.Append(" (" + strValueslog.ToString() + ")");
|
|
// QM.Data.DBProvider.SqlServer.SqlHelper.ExecuteSql(strSqllog.ToString());
|
|
//}
|
|
}
|
|
}
|
|
|