/// <summary> /// 添加分店客户 /// </summary> /// <param name="model"></param> /// <returns></returns> public static bool SubStorageCustAdd(SubSellCustInfoModel model) { UserInfoUtil userInfo = (UserInfoUtil)SessionUtil.Session["UserInfo"]; try { bool result = false; LogInfoModel logModel = InitLogInfo(model.CustName); logModel.Element = ConstUtil.LOG_PROCESS_INSERT; result = SubSellOrderDBHelper.SubStorageCustAdd(model); if (!result) { logModel.Remark = ConstUtil.LOG_PROCESS_FAILED; } else { logModel.Remark = ConstUtil.LOG_PROCESS_SUCCESS; model.ID = IDIdentityUtil.GetIDIdentity("officedba.SubSellCustInfo").ToString(); } LogDBHelper.InsertLog(logModel); return(result); } catch (Exception ex) { WriteSystemLog(userInfo, ex); return(false); } }