Пример #1
0
        //添加新行
        private void AddNewRow(StructSale sale)
        {
            DataRow row = this.mainDataTable.NewRow();

            this.mainDataTable.Rows.Add(row);
            row[TitleList.IndentNumber.ToString()] = sale.Orderid;
            row[TitleList.Name.ToString()]         = sale.Username;
            row[TitleList.IdNumber.ToString()]     = sale.Cardnumber;
            row[TitleList.Area.ToString()]         = sale.Areaname;
            row[TitleList.ProductName.ToString()]  = sale.Goodsname;
            row[TitleList.Num.ToString()]          = sale.Num;
            row[TitleList.IndentMoney.ToString()]  = sale.Money;
            row[TitleList.IndentTime.ToString()]   = sale.Addtime;
            row[TitleList.PayChannel.ToString()]   = sale.Paymode;
        }
Пример #2
0
        //添加新行
        private void AddNewRow(StructSale sale)
        {
            DataRow row = this.mainDataTable.NewRow();

            this.mainDataTable.Rows.Add(row);
        }