示例#1
0
        /// <summary>
        /// 添加销售合同
        /// </summary>
        /// <param name="sellChanceModel"></param>
        /// <param name="sellChancePushModel"></param>
        /// <returns>是否添加成功</returns>
        public static bool InsertOrder(Hashtable ht, SellContractModel sellContractModel,
                                       List <SellContractDetailModel> SellContractDetailModelList, out string strMsg)
        {
            bool   isSuc  = false;
            string remark = string.Empty;

            strMsg = "";
            try
            {
                isSuc = SellContractDBHelper.InsertOrder(ht, sellContractModel, SellContractDetailModelList, out strMsg);
                //设置操作成功标识
                remark = ConstUtil.LOG_PROCESS_SUCCESS;
            }
            catch (Exception ex)
            {
                //输出日志
                SellLogCommon.WriteSystemLog(ex, LogInfo.LogType.SYSTEM, LogInfo.SystemLogKind.SYSTEM_ERROR, ConstUtil.MODULE_ID_SELLCONTRANCT_ADD);
                //设置操作成功标识
                remark = ConstUtil.LOG_PROCESS_FAILED;
            }
            SellLogCommon.InsertLog(sellContractModel.ContractNo, ConstUtil.MODULE_ID_SELLCONTRANCT_ADD, ConstUtil.CODING_RULE_TABLE_SELLCONTRANCT, remark, ConstUtil.LOG_PROCESS_INSERT);

            return(isSuc);
        }