/// <summary> /// InsertInfo /// </summary> /// <param name="info"></param> /// <returns></returns> public long InsertInfo(ContractInfo info) { int cnt = dal.GetCounts("[CONTRACT_NO] = N'" + info.ContractNo + "'"); if (cnt > 0) { throw new Exception("MC:0x00000109");///合同编号不允许重复 } return(dal.Add(info)); }
/// <summary> /// 更新一条数据 /// </summary> public bool Add(ContractModel model) { return(dal.Add(model)); }