/// <summary>
        /// 获得数据列表
        /// </summary>
        public List <MobileSoft.Model.Sys.Tb_Sys_TakePicContractFeesDetail> DataTableToList(DataTable dt)
        {
            List <MobileSoft.Model.Sys.Tb_Sys_TakePicContractFeesDetail> modelList = new List <MobileSoft.Model.Sys.Tb_Sys_TakePicContractFeesDetail>();
            int rowsCount = dt.Rows.Count;

            if (rowsCount > 0)
            {
                MobileSoft.Model.Sys.Tb_Sys_TakePicContractFeesDetail model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model = new MobileSoft.Model.Sys.Tb_Sys_TakePicContractFeesDetail();
                    //model.DetailID=dt.Rows[n]["DetailID"].ToString();
                    if (dt.Rows[n]["CommID"].ToString() != "")
                    {
                        model.CommID = int.Parse(dt.Rows[n]["CommID"].ToString());
                    }
                    model.OrganCode    = dt.Rows[n]["OrganCode"].ToString();
                    model.ContTypeName = dt.Rows[n]["ContTypeName"].ToString();
                    model.ContSign     = dt.Rows[n]["ContSign"].ToString();
                    model.ContName     = dt.Rows[n]["ContName"].ToString();
                    model.CustName     = dt.Rows[n]["CustName"].ToString();
                    model.CostName     = dt.Rows[n]["CostName"].ToString();
                    if (dt.Rows[n]["FeesDueDate"].ToString() != "")
                    {
                        model.FeesDueDate = DateTime.Parse(dt.Rows[n]["FeesDueDate"].ToString());
                    }
                    if (dt.Rows[n]["DebtsAmount"].ToString() != "")
                    {
                        model.DebtsAmount = decimal.Parse(dt.Rows[n]["DebtsAmount"].ToString());
                    }
                    modelList.Add(model);
                }
            }
            return(modelList);
        }
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public void Update(MobileSoft.Model.Sys.Tb_Sys_TakePicContractFeesDetail model)
 {
     dal.Update(model);
 }
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int  Add(MobileSoft.Model.Sys.Tb_Sys_TakePicContractFeesDetail model)
 {
     return(dal.Add(model));
 }