コード例 #1
0
        static ResellAcctRow mapToResellAcctRow(ResellAccountDto pResellAccount)
        {
            var _resellAcctRow = new ResellAcctRow
            {
                Resell_acct_id   = pResellAccount.ResellAccountId,
                Customer_acct_id = pResellAccount.CustomerAcctId,
                Partner_id       = pResellAccount.PartnerId,
                Person_id        = pResellAccount.PersonId,
                CommisionType    = pResellAccount.CommisionType,
                Fee_per_call     = pResellAccount.FeePerCall,
                Fee_per_minute   = pResellAccount.FeePerMinute,
                Markup_dollar    = pResellAccount.MarkupDollar,
                Markup_percent   = pResellAccount.MarkupPercent,
                PerRoute         = pResellAccount.PerRoute
            };

            return(_resellAcctRow);
        }
コード例 #2
0
        internal static void UpdateResellAccount(Rbr_Db pDb, ResellAccountDto pResellAccount)
        {
            var _resellAcctRow = mapToResellAcctRow(pResellAccount);

            pDb.ResellAcctCollection.Update(_resellAcctRow);
        }
コード例 #3
0
        internal static void AddResellAccount(Rbr_Db pDb, ResellAccountDto pResellAccount)
        {
            var _resellAcctRow = mapToResellAcctRow(pResellAccount);

            pDb.ResellAcctCollection.Insert(_resellAcctRow);
        }