Esempio n. 1
0
        /// <summary>
        /// 插入发票变更记录
        /// </summary>
        /// <param name="invoiceChange"></param>
        /// <returns></returns>
        public int InsertInvoiceChange(InvoiceChange invoiceChange)
        {
            string sql = string.Empty;//插入SQL语句

            if (this.Sql.GetSql("Fee.InvoiceService.InsertInvoiceChange.1", ref sql) == -1)
            {
                this.Err = "没有找到索引为:Fee.InvoiceService.InsertInvoiceChange.1的SQL语句";

                return(-1);
            }

            return(this.ExecNoQuery(sql, this.GetInvoiceChangeParms(invoiceChange)));
        }
Esempio n. 2
0
        /// <summary>
        /// 获得发票变更参数数组
        /// </summary>
        /// <param name="invoiceChange"></param>
        /// <returns></returns>
        private string[] GetInvoiceChangeParms(InvoiceChange invoiceChange)
        {
            string[] args =
            {
                invoiceChange.HappenNO.ToString(),
                invoiceChange.GetOper.ID,
                invoiceChange.InvoiceType.ID.ToString(),
                invoiceChange.InvoiceType.Name,

                invoiceChange.BeginNO,
                invoiceChange.EndNO,
                invoiceChange.ShiftType,
                invoiceChange.Oper.ID,
                invoiceChange.Memo.ToString()
            };

            return(args);
        }