private void FillModel(PBM_DeliveryPayInfo m)
            {
                ID = m.ID;
                PayMode = m.PayMode;
                Amount = m.Amount;
                Remark = m.Remark;
                ApproveFlag = m.ApproveFlag;

                #region 获取字典表名称
                try
                {
                    if (m.PayMode > 0)
                    {
                        Dictionary_Data dic = DictionaryBLL.GetDicCollections("PBM_AC_PayMode")[m.PayMode.ToString()];
                        if (dic != null) PayModeName = dic.Name;
                    }
                }
                catch (System.Exception err)
                {
                    LogWriter.WriteLog("MCSFramework.WSI.DeliveryPayInfo", err);
                }
                #endregion
            }
 public DeliveryPayInfo(PBM_DeliveryPayInfo m)
 {
     if (m != null) FillModel(m);
 }