Esempio n. 1
0
 ///<summary></summary>
 public static void Update(PayPlanLink payPlanLink)
 {
     if (RemotingClient.RemotingRole == RemotingRole.ClientWeb)
     {
         Meth.GetVoid(MethodBase.GetCurrentMethod(), payPlanLink);
         return;
     }
     Crud.PayPlanLinkCrud.Update(payPlanLink);
 }
Esempio n. 2
0
 ///<summary></summary>
 public static long Insert(PayPlanLink payPlanLink)
 {
     if (RemotingClient.RemotingRole == RemotingRole.ClientWeb)
     {
         payPlanLink.PayPlanLinkNum = Meth.GetLong(MethodBase.GetCurrentMethod(), payPlanLink);
         return(payPlanLink.PayPlanLinkNum);
     }
     return(Crud.PayPlanLinkCrud.Insert(payPlanLink));
 }
Esempio n. 3
0
 ///<summary>Construct a payplanproductionentry for an UNATTACHED adjustment (attached adjustments get treated as procedures).</summary>
 public PayPlanProductionEntry(Adjustment adj, PayPlanLink credit)
 {
     ProductionTag   = adj;
     LinkedCredit    = credit;
     ProductionDate  = adj.AdjDate;
     PriKey          = adj.AdjNum;
     ProvNum         = adj.ProvNum;
     ClinicNum       = adj.ClinicNum;
     PatNum          = adj.PatNum;
     AmountOriginal  = (decimal)adj.AdjAmt;
     AmountOverride  = (decimal)credit.AmountOverride;
     AmountRemaining = (AmountOverride == 0)?AmountOriginal:AmountOverride;        //Gets set when calculating
     CreditDate      = credit.SecDateTEntry;
     Description     = $"Adjustment - {Defs.GetName(DefCat.AdjTypes,adj.AdjType)}";
     LinkType        = PayPlanLinkType.Adjustment;
 }
Esempio n. 4
0
 ///<summary>Construct a payplanproductionentry item for a procedure. Calculates pat portion.</summary>
 public PayPlanProductionEntry(Procedure proc, PayPlanLink credit, List <ClaimProc> listClaimProcs, List <Adjustment> listAdjustments)
 {
     ProductionTag   = proc;
     LinkedCredit    = credit;
     ProductionDate  = proc.ProcDate;
     PriKey          = proc.ProcNum;
     ProvNum         = proc.ProvNum;
     ClinicNum       = proc.ClinicNum;
     PatNum          = proc.PatNum;
     AmountOriginal  = ClaimProcs.GetPatPortion(proc, listClaimProcs, listAdjustments);
     AmountOverride  = (decimal)credit.AmountOverride;
     AmountRemaining = (AmountOverride == 0)?AmountOriginal:AmountOverride;
     CreditDate      = credit.SecDateTEntry;
     Description     = $"{ProcedureCodes.GetStringProcCode(proc.CodeNum)} - {ProcedureCodes.GetLaymanTerm(proc.CodeNum)}";
     LinkType        = PayPlanLinkType.Procedure;
 }