示例#1
0
 public static bool InsertProviderInfo(ProviderInfoModel model, out string ID)
 {
     try
     {
         bool         succ     = false;
         LogInfoModel logModel = InitLogInfo(model.CustNo);
         logModel.Element = ConstUtil.LOG_PROCESS_INSERT;
         //设置模块ID 模块ID请在ConstUtil中定义,以便维护
         logModel.ModuleID = ConstUtil.MODULE_ID_PROVIDERINFO_ADD;
         succ = ProviderInfoDBHelper.InsertProviderInfo(model, out ID);
         if (!succ)
         {
             logModel.Remark = ConstUtil.LOG_PROCESS_FAILED;
         }
         else
         {
             logModel.Remark = ConstUtil.LOG_PROCESS_SUCCESS;
         }
         LogDBHelper.InsertLog(logModel);
         return(succ);
     }
     catch (System.Exception ex)
     {
         throw ex;
     }
 }