Example #1
0
        /// <summary>
        /// 保存收款数据
        /// </summary>
        public void SaveDataSet()
        {
            DataTable tb1 = TW_Payment.GetChanges();

            if (tb1 != null)
            {
                tb1.TableName = "TW_Payment";
            }
            if (tb1 != null)
            {
                DataSet dst = new DataSet();
                dst.Tables.Add(tb1);
                DBHelper.BasicSer.SaveDataSet(dst);
            }
            else
            {
                throw new Exception("收款数据出错,请重新收款!");
            }
        }
Example #2
0
        /// <summary>
        /// 保存收款数据
        /// </summary>
        public void SaveDataSet()
        {
            DataTable tbm = this.TW_PaymentMain.GetChanges();

            if (tbm != null)
            {
                tbm.TableName = "TW_PaymentMain";
            }


            DataTable tb1 = TW_Payment.GetChanges();

            if (tb1 != null)
            {
                tb1.TableName = "TW_Payment";
            }

            DataTable tb2 = TW_PaymentDetail.GetChanges();

            if (tb2 != null)
            {
                tb2.TableName = "TW_PaymentDetail";
            }


            DataSet dst = new DataSet();

            if (tbm != null)
            {
                dst.Tables.Add(tbm);
            }
            if (tb1 != null)
            {
                dst.Tables.Add(tb1);
            }
            if (tb2 != null)
            {
                dst.Tables.Add(tb2);
            }
            //dst.Tables[0].GetChanges(DataRowState.)
            DBHelper.BasicSer.SaveDataSet(dst);
        }