示例#1
0
        private void FillModel(AC_BalanceUsageList m)
        {
            if (m == null)
            {
                return;
            }

            ID          = m.ID;
            TradeClient = m.TradeClient;
            Amount      = m.Amount;
            Balance     = m.Balance;
            DeliveryId  = m.DeliveryId;
            CashFlowId  = m.CashFlowId;
            Remark      = m.Remark;
            InsertTime  = m.InsertTime;
            InsertStaff = m.InsertStaff;

            if (m.TradeClient > 0)
            {
                CM_Client c = new CM_ClientBLL(m.TradeClient).Model;
                if (c != null)
                {
                    TradeClientName = c.FullName;
                }
            }

            if (m.InsertStaff > 0)
            {
                Org_Staff s = new Org_StaffBLL(m.InsertStaff).Model;
                if (s != null)
                {
                    InsertStaffName = s.RealName;
                }
            }
        }
示例#2
0
 public BalanceUsageInfo(AC_BalanceUsageList m)
 {
     if (m != null)
     {
         FillModel(m);
     }
 }