Пример #1
0
 private void RecordDB(String result, MessageData msg)
 {
     if (msg != null)
     {
         TTRD_AIDSYS_MSG_LOG logrow = new TTRD_AIDSYS_MSG_LOG();
         logrow.M_ID = msg.MessageID.ToString();
         logrow.M_ERROR = result;
         logrow.M_STATE = "1";
         logrow.M_S_CONTENT = msg.CurrentReqPackage.PackageMessage;
         logrow.M_SUBID = msg.CurrentReqPackage.PackageID;
         logrow.M_SERIALNO = msg.BizMsgID;
         logrow.M_ISSINGLE = msg.IsMultiPackage ? "0" : "1";
         logrow.M_PLATTYPE = (int)msg.TragetPlatform;
         logrow.M_SENDDATE = msg.FirstTime.ToString("yyyy-MM-dd HH:mm:ss");
         TTRD_AIDSYS_MSG_LOG_Manager manager = new TTRD_AIDSYS_MSG_LOG_Manager();
         manager.LogInsert(logrow);
     }
 }
Пример #2
0
        private void DBActionTest(MessageData msgdata)
        {
            String ouno = textBoxOrgNO.Text.TrimStart();
            String tellno = textBoxTellerNO.Text.TrimStart();
            String internalID = textBoxInternalID.Text.TrimStart();

            TTRD_AIDSYS_MSG_LOG row = new TTRD_AIDSYS_MSG_LOG();
            row.M_ID = msgdata.MessageID.ToString();
            row.M_S_CONTENT = msgdata.CurrentReqPackage.PackageMessage;
            row.M_ISSINGLE = msgdata.IsMultiPackage ? "0" : "1";
            row.M_ERROR = "Test DB msg";
            row.M_SENDDATE = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            row.M_STATE = "1";
            row.M_SUBID = 1;
            row.I_ID = ouno;
            row.U_ID = tellno;
            row.M_PLATTYPE = (int)msgdata.TragetPlatform;
            TTRD_AIDSYS_MSG_LOG_Manager manager = new TTRD_AIDSYS_MSG_LOG_Manager();
            manager.LogInsert(row);

        }