Пример #1
0
        public static PayPlanCharge CreatePayPlanCharge(DateTime chargeDate, long patNum, long guarantor, long payplanNum, double prinicpal, long provNum
                                                        , long procNum, PayPlanChargeType chargeType)
        {
            PayPlanCharge ppc = new PayPlanCharge()
            {
                PayPlanNum = payplanNum,
                PatNum     = patNum,
                ChargeDate = chargeDate,
                Principal  = prinicpal,
                Guarantor  = guarantor,
                ProvNum    = provNum,
                ProcNum    = procNum,
                ChargeType = chargeType
            };

            PayPlanCharges.Insert(ppc);
            return(ppc);
        }
Пример #2
0
        ///<summary></summary>
        public static List <PayPlanCharge> GetChargesForPayPlanChargeType(long payPlanNum, PayPlanChargeType chargeType)
        {
            if (RemotingClient.RemotingRole == RemotingRole.ClientWeb)
            {
                return(Meth.GetObject <List <PayPlanCharge> >(MethodBase.GetCurrentMethod(), payPlanNum, chargeType));
            }
            string command = "SELECT * FROM payplancharge "
                             + "WHERE PayPlanNum=" + POut.Long(payPlanNum) + " "
                             + "AND ChargeType=" + POut.Int((int)chargeType);

            return(Crud.PayPlanChargeCrud.SelectMany(command));
        }
Пример #3
0
        public static PayPlanCharge CreateOne(long payPlanNum, long guarantor, long patNum, DateTime chargeDate, double principal, double interest,
                                              string note = "", long provNum = 0, long clinicNum = 0, PayPlanChargeType chargeType = PayPlanChargeType.Debit, long procNum = 0)
        {
            PayPlanCharge charge = new PayPlanCharge();

            charge.PayPlanNum = payPlanNum;
            charge.Guarantor  = guarantor;
            charge.PatNum     = patNum;
            charge.ChargeDate = chargeDate;
            charge.Principal  = principal;
            charge.Interest   = interest;
            charge.Note       = note;
            charge.ProvNum    = provNum;
            charge.ClinicNum  = clinicNum;
            charge.ChargeType = chargeType;
            charge.ProcNum    = procNum;
            PayPlanCharges.Insert(charge);
            return(charge);
        }