Beispiel #1
0
        private static claim_batch GetDailyBatch(clsClaimEnums.SentMethods batchSendMethod, string batchInfo, string serverName = "")
        {
            claim_batch toReturn = new claim_batch();

            DataTable matches = toReturn.Search("SELECT * FROM claim_batch WHERE handling = '" + batchSendMethod + "' AND " +
                                                "DateDiff(batch_date, NOW()) = 0");

            if (matches.Rows.Count > 0)
            {
                toReturn.Load(matches.Rows[0]);
            }
            else
            {
                toReturn.handling   = batchSendMethod;
                toReturn.batch_date = DateTime.Now;
                toReturn.source     = 0;
                toReturn.batch_info = batchInfo;
                if (serverName == string.Empty)
                {
                    toReturn.server_name = C_DentalClaimTracker.General.RegistryData.LocalComputerName;
                }
                else
                {
                    toReturn.server_name = serverName;
                }
                toReturn.Save();
            }

            return(toReturn);
        }
Beispiel #2
0
        internal void CreateSentHistory(clsClaimEnums.SentMethods sentMethod, bool isResend)
        {
            claim_sent_history csh = new claim_sent_history();

            csh.claim_id  = id;
            csh.sent_date = DateTime.Now;
            csh.send_type = sentMethod;
            csh.is_resend = isResend;
            csh.Save();
        }