private void Button_Click_22(object sender, RoutedEventArgs e)
        {
            List <borrowrecord> br = new List <borrowrecord>();

            for (int i = 0; i < 3; i++)
            {
                borrowrecord b = new borrowrecord()
                {
                    is_return = false, returnOperator = "张三", returnUser = "******", WrenchID = "1", guid = Guid.NewGuid().ToString()
                };
                br.Add(b);
            }
            MessageBox.Show(BorrowRecord.addmany(br).ToString());
        }
Example #2
0
        bool  addborrowrecode(string borrowid)
        {
            // string id = addborrow();
            List <borrowrecord> borrowrecorlist = new List <borrowrecord> ();

            foreach (ToolModel w in _wrenchlist)
            {
                borrowrecord br = new borrowrecord()
                {
                    //BorrowID =id,
                    WrenchID  = w.id.ToString(),
                    is_return = false, guid = Guid.NewGuid().ToString()
                };
                borrowrecorlist.Add(br);
            }
            return(BorrowRecord.addmany(borrowrecorlist));
        }